/* 30 dni dla Siebie - publiczny index R7310
   Warstwa tylko dla nowej narracji i galerii gier. Bez zmian w silnikach Czelendży. */

body.home-refresh-r1 .home-hero-promise{
  margin:12px 0 0;
  max-width:680px;
  color:var(--text);
  font-size:clamp(15px,1.25vw,18px);
  line-height:1.55;
}
body.home-refresh-r1 .home-hero-promise strong{color:var(--orange)}
body.home-refresh-r1 .home-beta-short a{color:var(--orange);font-weight:800;text-decoration-thickness:1.5px;text-underline-offset:3px}
body.home-refresh-r1 .home-platform-definition{
  max-width:980px;
  margin:22px auto 0;
  padding:18px 20px;
  border:1px solid color-mix(in srgb,var(--orange) 18%,var(--border));
  border-radius:18px;
  background:color-mix(in srgb,var(--orange) 4%,var(--surface));
  color:var(--text);
  font-size:14px;
  line-height:1.7;
  text-align:center;
}
body.home-refresh-r1 .home-projects-heading{text-align:center;margin:0 auto 18px}
body.home-refresh-r1 .home-projects-heading p{margin:8px auto 0;color:var(--muted);font-size:12px;line-height:1.55}

/* Druga galeria - Puzzlownia. Osobny moduł, wizualnie zgodny z galerią platformy. */
.home-game-gallery{
  margin:26px 0 24px;
  padding:26px 28px 22px;
  border:1px solid var(--border);
  border-radius:26px;
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow:0 22px 58px rgba(17,24,39,.07);
}
.home-game-gallery__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px}
.home-game-gallery__head h3{margin:3px 0 0;color:var(--text);font-size:clamp(24px,2.6vw,34px);line-height:1.08;letter-spacing:-.035em}
.home-game-gallery__head>p{max-width:520px;margin:0;color:var(--muted);font-size:12px;line-height:1.65}
.home-game-gallery__tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 11px;margin-bottom:12px}
.home-game-gallery__tabs::-webkit-scrollbar{display:none}
.home-game-gallery__tabs button{
  flex:0 0 auto;
  min-height:35px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  background:var(--surface-2);
  color:var(--muted);
  font:800 10px/1 Manrope,sans-serif;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
}
.home-game-gallery__tabs button:hover{border-color:color-mix(in srgb,var(--orange) 55%,var(--border));transform:translateY(-1px)}
.home-game-gallery__tabs button.is-active{border-color:var(--orange);background:var(--orange);color:#fff}
.home-game-gallery__shots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-height:118px}
.home-game-gallery__shot{
  position:relative;
  min-width:0;
  padding:0;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:var(--surface-2);
  aspect-ratio:1/1;
  cursor:zoom-in;
  box-shadow:0 8px 20px rgba(17,24,39,.055);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.home-game-gallery__shot:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--orange) 58%,var(--border));box-shadow:0 14px 28px rgba(17,24,39,.1)}
.home-game-gallery__shot img{display:block;width:100%;height:100%;object-fit:contain;background:var(--surface-2)}
.home-game-gallery__shot span{position:absolute;right:7px;bottom:7px;min-width:25px;padding:4px 6px;border-radius:999px;background:rgba(10,13,18,.72);color:#fff;font-size:8px;font-weight:800;text-align:center;backdrop-filter:blur(5px)}
.home-game-gallery__shot.is-missing img{display:none}
.home-game-gallery__shot.is-missing::before{content:'Podgląd niedostępny';display:grid;place-items:center;height:100%;padding:10px;color:var(--muted);font-size:9px;font-weight:800;text-align:center}
.home-game-gallery__foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;color:var(--muted);font-size:10px;font-weight:800}

.home-game-gallery-modal{width:min(1120px,calc(100vw - 28px));max-width:1120px;max-height:calc(100vh - 28px);padding:0;border:1px solid var(--border);border-radius:24px;background:var(--surface);color:var(--text);box-shadow:0 28px 90px rgba(0,0,0,.38);overflow:hidden}
.home-game-gallery-modal::backdrop{background:rgba(10,13,18,.72);backdrop-filter:blur(5px)}
.home-game-gallery-modal__dialog{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 30px)}
.home-game-gallery-modal__top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border-bottom:1px solid var(--border)}
.home-game-gallery-modal__top h2{margin:2px 0 0;font-size:22px;line-height:1.1;letter-spacing:-.025em}
.home-game-gallery-modal__stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:center;min-height:0;padding:14px 16px}
.home-game-gallery-modal__image{display:flex;align-items:center;justify-content:center;min-width:0;height:min(73vh,760px);border:1px solid var(--border);border-radius:18px;overflow:hidden;background:color-mix(in srgb,var(--bg) 76%,var(--surface))}
.home-game-gallery-modal__image img{display:block;width:100%;height:100%;object-fit:contain}
.home-game-gallery-modal__arrow{width:42px;height:42px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text);font:800 28px/1 Manrope,sans-serif;cursor:pointer}
.home-game-gallery-modal__arrow:hover{border-color:var(--orange);color:var(--orange)}
.home-game-gallery-modal__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 16px;color:var(--muted);font-size:10px;font-weight:800}
html.home-game-gallery-open{overflow:hidden}

@media(max-width:900px){
  .home-game-gallery{padding:20px 18px;border-radius:22px}
  .home-game-gallery__head{align-items:flex-start;flex-direction:column;gap:7px}
  .home-game-gallery__head>p{max-width:none}
  .home-game-gallery__shots{grid-template-columns:repeat(5,minmax(145px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px;scrollbar-width:thin}
  .home-game-gallery__shot{scroll-snap-align:start}
}
@media(max-width:620px){
  body.home-refresh-r1 .home-platform-definition{margin-top:16px;padding:15px 14px;border-radius:16px;font-size:12px;line-height:1.62;text-align:left}
  .home-game-gallery{margin:20px 0;padding:16px 13px 14px;border-radius:19px}
  .home-game-gallery__head h3{font-size:25px}
  .home-game-gallery__head>p{font-size:10px;line-height:1.55}
  .home-game-gallery__tabs{margin:0 -3px 10px;padding-inline:3px}
  .home-game-gallery__tabs button{min-height:32px;padding:7px 10px;font-size:9px}
  .home-game-gallery__shots{grid-template-columns:repeat(5,60vw);gap:7px;margin:0 -4px;padding:0 4px 6px}
  .home-game-gallery__shot{border-radius:13px;aspect-ratio:302/600}
  .home-game-gallery__shot img{object-fit:contain}
  .home-game-gallery__foot{align-items:flex-start;flex-direction:column;margin-top:10px}
  .home-game-gallery-modal{width:calc(100vw - 10px);max-height:calc(100vh - 10px);border-radius:17px}
  .home-game-gallery-modal__dialog{max-height:calc(100vh - 12px)}
  .home-game-gallery-modal__top{padding:10px 11px}
  .home-game-gallery-modal__top h2{font-size:17px}
  .home-game-gallery-modal__stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:5px;padding:8px}
  .home-game-gallery-modal__arrow{width:31px;height:31px;font-size:21px}
  .home-game-gallery-modal__image{height:min(72vh,720px);border-radius:13px}
  .home-game-gallery-modal__foot{padding:0 10px 10px;font-size:9px}
}


/* =========================================================
   R7310 - dopracowanie wizytówki bez zmian w silnikach
   ========================================================= */

/* HERO: lewa część komunikuje, prawa pozostaje otwartą planszą dla żywych puzzli. */
@media (min-width:821px){
  body.home-refresh-r1 .home-refresh-hero{min-height:780px;padding-top:42px;padding-bottom:56px}
  body.home-refresh-r1 .home-refresh-hero__inner{
    display:grid;
    grid-template-columns:minmax(0,48%) minmax(0,52%);
    grid-template-rows:auto auto auto;
    column-gap:clamp(28px,4vw,64px);
    align-content:start;
    min-height:680px;
  }
  body.home-refresh-r1 .home-refresh-hero__visual{
    grid-column:1;grid-row:1;
    width:100%!important;min-height:0!important;
    margin:0 0 -2px!important;
    justify-content:flex-start!important;
    align-items:flex-end!important;
  }
  body.home-refresh-r1 .home-refresh-hero__visual img{
    width:min(410px,92%)!important;
    max-height:335px;
    object-fit:contain;
    object-position:left bottom;
  }
  body.home-refresh-r1 .home-refresh-hero__brand{
    grid-column:1;grid-row:2;
    width:min(410px,92%)!important;
    margin:0 0 14px!important;
    text-align:center;
    font-size:clamp(35px,3.55vw,48px);
  }
  body.home-refresh-r1 .home-refresh-hero__copy{
    grid-column:1;grid-row:3;
    width:100%!important;
    max-width:620px;
  }
  body.home-refresh-r1 .home-refresh-hero__copy h1{
    font-size:clamp(42px,4.2vw,58px);
    max-width:600px;
    margin-top:7px;
  }
  /* Nie dokładamy nic do prawej kolumny. To świadomie wolne pole dla home-puzzle-story. */
}
@media (min-width:821px) and (max-width:1040px){
  body.home-refresh-r1 .home-refresh-hero__inner{grid-template-columns:minmax(0,51%) minmax(0,49%);column-gap:22px}
  body.home-refresh-r1 .home-refresh-hero__visual img{width:min(350px,92%)!important;max-height:290px}
  body.home-refresh-r1 .home-refresh-hero__brand{width:min(350px,92%)!important;font-size:36px}
  body.home-refresh-r1 .home-refresh-hero__copy h1{font-size:44px}
}
@media (max-width:820px){
  body.home-refresh-r1 .home-refresh-hero{padding-top:18px;padding-bottom:50px}
  body.home-refresh-r1 .home-refresh-hero__visual{min-height:0!important;margin:0 auto 0!important}
  body.home-refresh-r1 .home-refresh-hero__visual img{width:min(300px,78vw)!important;max-height:255px;object-fit:contain}
  body.home-refresh-r1 .home-refresh-hero__brand{font-size:clamp(31px,8vw,38px)!important;margin:0 0 14px!important}
  body.home-refresh-r1 .home-refresh-hero__copy h1{font-size:clamp(36px,9.8vw,47px)!important}
}

/* Definicja platformy jako pełnoprawny piąty element sekcji, nie przypis SEO. */
body.home-refresh-r1 .home-platform-definition{
  width:100%;max-width:none;margin:16px 0 0;padding:18px 21px;
  border:1px solid var(--border);border-radius:22px;
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow:0 14px 34px rgba(17,24,39,.04);
  text-align:left;
}

/* Katalog na wizytówce: tylko osiem kart, czyli 2 x 4 na desktopie. */
body.home-refresh-r1 #homeChallengePagedGrid>*:nth-child(n+9){display:none!important}
body.home-refresh-r1 .home-refresh-catalogue .home-challenge-pagination{display:none!important}
body.home-refresh-r1 .home-refresh-catalogue__all{display:flex;justify-content:center;margin:18px 0 0}
@media (min-width:821px){body.home-refresh-r1 .home-refresh-challenge-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Archiwum jako wąski pas. */
body.home-refresh-r1 .home-refresh-archive--compact{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;
  padding:22px 28px!important;border-radius:22px!important;
}
body.home-refresh-r1 .home-refresh-archive--compact .home-refresh-archive__copy{max-width:none}
body.home-refresh-r1 .home-refresh-archive--compact h2{font-size:clamp(27px,3vw,38px)!important;margin:4px 0 7px!important}
body.home-refresh-r1 .home-refresh-archive--compact p{margin:0!important;max-width:820px;line-height:1.55!important}
body.home-refresh-r1 .home-refresh-archive--compact>.btn{white-space:nowrap}
@media(max-width:720px){
  body.home-refresh-r1 .home-refresh-archive--compact{grid-template-columns:1fr;gap:15px;padding:20px 17px!important}
  body.home-refresh-r1 .home-refresh-archive--compact>.btn{width:100%}
}

/* Galeria gier korzysta z dokładnie tego samego języka co "Zajrzyj do środka". */
body.home-refresh-r1 .home-game-platform-gallery{width:100%!important;margin:24px 0 30px!important}
body.home-refresh-r1 .home-game-platform-gallery .home-gallery-head h3{font-size:clamp(30px,4vw,48px);letter-spacing:-.045em;margin:4px 0 0}
body.home-refresh-r1 .home-game-platform-gallery .home-gallery-thumb img{object-fit:contain;background:var(--surface-2)}
body.home-refresh-r1 .home-game-platform-gallery__cta{display:flex;justify-content:flex-end;margin-top:12px}
body.home-refresh-r1 .home-game-platform-gallery .home-gallery-page-arrow:disabled{opacity:.22}
@media(max-width:820px){
  body.home-refresh-r1 .home-game-platform-gallery{padding:18px 14px!important;border-radius:22px!important}
  body.home-refresh-r1 .home-game-platform-gallery__cta .btn{width:100%}
}

/* FAQ: dwanaście pytań, 6 + 6, bez sztucznego zwijania połowy listy. */
body.home-refresh-r1 .home-refresh-faq .home-faq.is-columns{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
body.home-refresh-r1 .home-refresh-faq .home-faq__col{display:grid!important;gap:10px;align-content:start}
body.home-refresh-r1 .home-refresh-faq .home-faq__col details{display:block!important;margin:0!important}
@media(max-width:820px){
  body.home-refresh-r1 .home-refresh-faq .home-faq.is-columns{display:block!important}
  body.home-refresh-r1 .home-refresh-faq .home-faq__col{display:contents!important}
}

/* Autopromocja: do lewej, szeroko, ale wyraźnie niższa. */
body.home-refresh-r1 .home-promo-section{max-width:1180px!important;width:calc(100% - 28px);padding-top:36px;padding-bottom:42px}
body.home-refresh-r1 .home-projects-heading{text-align:left!important;margin:0 0 15px!important}
body.home-refresh-r1 .home-projects-heading p{margin:7px 0 0!important;max-width:680px}
body.home-refresh-r1 .home-brand-promo--compact{min-height:150px!important}
body.home-refresh-r1 .home-brand-promo--compact .home-brand-promo__half{min-height:150px!important}
body.home-refresh-r1 .home-brand-promo--compact .home-brand-promo__inner{padding:22px 30px!important}
body.home-refresh-r1 .home-brand-promo--compact .home-brand-promo__inner strong{font-size:clamp(25px,3vw,38px)}
@media(max-width:620px){
  body.home-refresh-r1 .home-promo-section{width:calc(100% - 18px)}
  body.home-refresh-r1 .home-brand-promo--compact .home-brand-promo__half{min-height:118px!important}
  body.home-refresh-r1 .home-brand-promo--compact .home-brand-promo__inner{padding:20px!important}
}
