/* StoneForge Labs — studio site, směr „Arcade Lab 07“
 * Levý rail + úvod se smyčkou laboratoře + velký panel hry + spodní dělení
 * 2 : 1 (More from the lab / Growing into a full game) + stránky her.
 * Herní bloky i stránky her generuje scripts/build_web.py (plán HQ-17).
 */

/* ============ shell ============ */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--sf-play); color: var(--sf-on-play);
  padding: 10px 16px; border-radius: var(--sf-radius-control); font-weight: 700;
}
.skip-link:focus { left: 8px; color: var(--sf-on-play); }

.shell {
  display: grid;
  grid-template-columns: var(--sf-rail-width) minmax(0, 1fr);
  min-height: 100vh;
}
.main-col { min-width: 0; display: flex; flex-direction: column; }
.main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--sf-content-max) + 2 * var(--sf-pad));
  margin: 0 auto;
  padding: 28px var(--sf-pad) 0;
}
/* kotvy pod sticky lištou na mobilu */
[id] { scroll-margin-top: 16px; }

/* ============ rail ============ */
.rail {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 28px 10px 24px;
  background: var(--sf-rail);
  border-right: 1px solid var(--sf-border-subtle);
}
.rail__bar { padding: 0 14px 32px; }

.brand {
  display: inline-flex; flex-direction: column; gap: 6px;
  color: var(--sf-text); line-height: 1;
}
.brand:hover { color: var(--sf-text); }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 25px; letter-spacing: -0.02em;
}
.brand__labs {
  font-family: var(--font-display); font-weight: 500;
  font-size: 12px; letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--sf-text-secondary); padding-left: 2px;
}

.rail__toggle {
  display: none;
  align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  font: 600 15px/1 var(--font-body);
  color: var(--sf-text); background: transparent;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-control);
  cursor: pointer;
}
.rail__toggle[hidden] { display: none !important; }
.rail__toggle:hover { background: var(--sf-surface-hover); }

.rail__nav { flex: 1; display: flex; flex-direction: column; }
.rail__list { display: flex; flex-direction: column; gap: 6px; }
.rail__link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 10px 0 13px;
  border: 1px solid transparent; border-radius: var(--sf-radius-control);
  color: var(--sf-text-secondary); font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
  transition: background-color var(--sf-duration) var(--sf-ease), color var(--sf-duration) var(--sf-ease);
}
.rail__link svg { color: var(--sf-lavender); flex: none; }
.rail__link:hover { background: var(--sf-surface); color: var(--sf-text); }
.rail__link[aria-current="page"] {
  background: var(--sf-surface);
  border-color: var(--sf-border-subtle);
  color: var(--sf-text);
}
/* aktuální položka: pruh vlevo + plocha, ne jen barva */
.rail__link[aria-current="page"]::before {
  content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 2px; background: var(--sf-play);
}
.rail__link[aria-current="page"] svg { color: var(--sf-play); }

/* In the lab: tichý rejstřík her se stavem */
.rail__lab { margin-top: 26px; }
.rail__eyebrow {
  padding: 0 10px 8px 13px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--sf-text-muted);
}
.rail__games { display: flex; flex-direction: column; gap: 2px; }
.rail__game {
  display: flex; align-items: center; gap: 14px;
  min-height: 36px; padding: 0 10px 0 19px;
  border-radius: var(--sf-radius-control);
  color: var(--sf-text-secondary); font-size: 14px; font-weight: 600;
}
a.rail__game:hover { color: var(--sf-text); background: var(--sf-surface); }
.rail__game[aria-current="page"] { color: var(--sf-text); background: var(--sf-surface); }
.rail__gname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rail__tool {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 10px 0 13px;
  color: var(--sf-text-secondary); font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.rail__tool svg { color: var(--sf-text-muted); flex: none; }
.rail__tool:hover { color: var(--sf-text); }
.rail__ext { margin-left: -4px; }

/* ============ intro ============ */
.intro { position: relative; padding: 8px 0 22px; }
.intro__title {
  position: relative; z-index: 1;
  font-size: clamp(40px, 3.85vw, 60px);
  line-height: 1.04; letter-spacing: -0.03em;
}
.intro__title span { display: block; }
.intro__title .intro__accent { color: var(--sf-lavender); }
.intro__lede {
  position: relative; z-index: 1;
  margin-top: 14px;
  font-size: clamp(18px, 1.5vw, 23px); font-weight: 500;
  color: var(--sf-text-secondary);
}
/* dekorativní mřížka vpravo nahoře, skoro neviditelná */
.intro__grid {
  position: absolute; top: -28px; right: 0;
  width: min(44%, 560px); height: calc(100% + 28px);
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(184, 165, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 165, 255, .07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 55% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 55% 35%, #000 25%, transparent 78%);
}
.intro__grid::before, .intro__grid::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  background:
    linear-gradient(var(--sf-lavender), var(--sf-lavender)) center / 1px 100% no-repeat,
    linear-gradient(var(--sf-lavender), var(--sf-lavender)) center / 100% 1px no-repeat;
  opacity: .45;
}
.intro__grid::before { left: 92px; top: 76px; }
.intro__grid::after { left: 196px; top: 128px; opacity: .6; }

/* smyčka laboratoře: BUILD → PLAY → LEARN → SELECT → DEVELOP */
.lab-loop { position: relative; z-index: 1; margin-top: 22px; }
.lab-loop__steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sf-text);
}
.lab-loop__steps li { display: inline-flex; align-items: center; }
.lab-loop__steps li + li::before {
  content: "→"; content: "→" / "";
  margin: 0 12px; letter-spacing: 0; color: var(--sf-lavender);
}
.lab-loop__note { margin-top: 8px; font-size: 15px; color: var(--sf-text-secondary); max-width: 62ch; }

/* ============ status chip ============ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--sf-border); border-radius: 14px;
  background: rgba(11, 16, 32, .78);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  line-height: 1.3; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sf-text);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--sf-play); }
.chip--dev .chip__dot { background: var(--sf-lavender); }

/* stav hry: tečka podle stavu (čip i rail) — obrys = experiment, limetková = teď se testuje,
   plná levandulová = vybraná, kosočtverec = ve vývoji, bílá = vydaná */
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip--experiment .chip__dot, .sdot--experiment { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sf-lavender); }
.chip--testing .chip__dot, .sdot--testing { background: var(--sf-play); animation: sf-pulse 2.4s ease-out infinite; }
.chip--selected .chip__dot, .sdot--selected { background: var(--sf-lavender); }
.chip--in_development .chip__dot, .sdot--in_development {
  width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--sf-lavender);
}
.chip--released .chip__dot, .sdot--released { background: var(--sf-text); }
.chip--coming_next .chip__dot, .sdot--coming_next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sf-text-muted); }
.chip--coming_next { color: var(--sf-text-secondary); }
@keyframes sf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 246, 91, .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(199, 246, 91, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .chip--testing .chip__dot, .sdot--testing { animation: none; }
}
.chip--onimage {
  position: absolute; left: 12px; top: 12px; right: 12px; width: max-content;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ============ actions ============ */
.actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 20px; margin-top: 18px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--sf-radius-control);
  font: 700 15px/1.2 var(--font-body);
  white-space: nowrap;
  transition: background-color var(--sf-duration) var(--sf-ease),
              border-color var(--sf-duration) var(--sf-ease),
              color var(--sf-duration) var(--sf-ease);
}
.btn--play { background: var(--sf-play); color: var(--sf-on-play); padding: 0 22px 0 20px; }
.btn--play:hover { background: var(--sf-play-hover); color: var(--sf-on-play); }
.btn__glyph { flex: none; }
.btn--outline { border-color: #77749f; color: var(--sf-text); background: rgba(11, 16, 32, .55); }
.btn--outline:hover { border-color: var(--sf-lavender); background: var(--sf-surface-hover); color: var(--sf-text); }
.btn--outline svg { color: var(--sf-text-secondary); }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
button.btn { cursor: pointer; }

/* I want more — tichá druhá akce, nikdy limetková (ta patří Play) */
.btn--want { border-color: var(--sf-border); color: var(--sf-text); background: rgba(11, 16, 32, .55); }
.btn--want svg { color: var(--sf-lavender); flex: none; }
.btn--want:hover { border-color: var(--sf-lavender); background: var(--sf-surface-hover); color: var(--sf-text); }
.btn--want[aria-pressed="true"] {
  border-color: var(--sf-border-subtle); background: transparent;
  color: var(--sf-text-secondary); cursor: default;
}
.btn--want[aria-pressed="true"] svg { display: none; }
.btn--want[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn--want.is-nudged { border-color: var(--sf-lavender); }
.want-next { margin-top: 10px; }
.btn--quiet { min-height: 40px; padding: 0 12px; border-color: transparent; background: transparent; font-size: 14.5px; color: var(--sf-text-secondary); }
.btn--quiet:hover { border-color: var(--sf-border); background: transparent; }
.actions--quiet { margin-top: 8px; }
.actions--links { margin-top: 6px; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  color: var(--sf-text-secondary); font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--sf-duration) var(--sf-ease), text-decoration-color var(--sf-duration) var(--sf-ease);
}
.textlink:hover { color: var(--sf-text); text-decoration-color: currentColor; }
.textlink svg { flex: none; }

/* ============ featured game ============ */
.feature {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: 316px;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-panel);
  overflow: hidden;
  background: var(--sf-sunken);
}
.feature__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(11, 16, 32, .97) 0%, rgba(11, 16, 32, .94) 38%,
    rgba(11, 16, 32, .7) 52%, rgba(11, 16, 32, .2) 64%, rgba(11, 16, 32, 0) 74%);
}
.feature__copy { padding: 28px 30px; max-width: 46%; min-width: 0; }
.feature__title {
  margin-top: 14px;
  font-size: clamp(32px, 2.8vw, 44px); letter-spacing: -0.025em;
}
.feature__tagline { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--sf-text); max-width: 34ch; }
.feature__link, .game__title a { color: var(--sf-text); }
.feature__link:hover, .game__title a:hover {
  color: var(--sf-text); text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 2px;
}

/* ============ lower split ============ */
.lower {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--sf-gap);
  margin-top: var(--sf-gap);
  align-items: stretch;
}
.lower--solo { grid-template-columns: minmax(0, 1fr); }

.panel {
  min-width: 0;
  display: flex; flex-direction: column;
  padding: 20px;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-panel);
  background: #0e1427;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel__title { font-size: clamp(24px, 2vw, 30px); letter-spacing: -0.02em; }
.panel__lede { margin-top: 6px; color: var(--sf-text-secondary); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game { min-width: 0; display: flex; flex-direction: column; }
.game__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sf-border-subtle); border-radius: var(--sf-radius-card);
  overflow: hidden; background: var(--sf-sunken);
}
.game__art { width: 100%; height: 100%; object-fit: cover; }
.game__medialink { display: block; height: 100%; }
.game__medialink .game__art { transition: transform var(--sf-duration) var(--sf-ease); }
.game__medialink:hover .game__art { transform: scale(1.02); }
.game__body { min-width: 0; }
.game__title { margin-top: 14px; font-size: 24px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.game__tagline { margin-top: 6px; color: var(--sf-text-secondary); font-size: 16px; }
.game .actions { margin-top: 14px; }
.game .game__tagline {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* jediná karta: obrázek vlevo, text vpravo, aby panel nebyl poloprázdný */
.cards--single { grid-template-columns: minmax(0, 1fr); flex: 1; align-content: center; }
.cards--single .game {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px; align-items: center;
}
.cards--single .game__title { margin-top: 0; font-size: 28px; }

/* náhrada za chybějící obrázek — poctivě prázdná, ne vymyšlená */
.art-placeholder {
  width: 100%; height: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(to right, rgba(184, 165, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(184, 165, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--sf-sunken);
}
.art-placeholder span {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: var(--sf-text-muted); text-align: center; padding: 0 16px;
}

/* ============ spotlight ============ */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--sf-text-secondary);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--sf-border); }
.spotlight__head .panel__title { margin-top: 10px; font-size: clamp(22px, 1.7vw, 26px); }
.spotlight .panel__lede { color: var(--sf-lavender); }
.spotlight__media { margin-top: 14px; }
.spotlight__art {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--sf-border-subtle); border-radius: var(--sf-radius-card);
}
.spotlight__titlerow {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 12px; margin-top: 14px;
}
.spotlight__titlerow .game__title { margin-top: 0; }
.spotlight__link { display: inline-flex; align-items: center; gap: 8px; color: var(--sf-text); }
.spotlight__link svg { color: var(--sf-lavender); transition: transform var(--sf-duration) var(--sf-ease); }
.spotlight__link:hover { color: var(--sf-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.spotlight__link:hover svg { transform: translateX(3px); }
@media (min-width: 1200px) {
  .spotlight__art { aspect-ratio: 2.2 / 1; }
}
/* spotlight sám (bez panelu vlevo): obrázek vlevo, text vpravo — ne obří obrázek přes celou šířku */
@media (min-width: 600px) {
  .lower--solo .spotlight {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "head head" "media body";
    gap: 0 28px; align-items: center;
  }
  .lower--solo .spotlight__head { grid-area: head; }
  .lower--solo .spotlight__media { grid-area: media; }
  .lower--solo .spotlight__body { grid-area: body; }
  .lower--solo .spotlight__art { aspect-ratio: 16 / 9; }
}

/* ============ catalog ============ */
.catalog { margin-top: 48px; }
.catalog__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px 16px; margin-top: 16px;
}

/* ============ about ============ */
.about {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 48px;
  margin-top: 56px; padding: 32px 0 8px;
  border-top: 1px solid var(--sf-border-subtle);
}
.about h2 { font-size: clamp(24px, 2vw, 30px); }
.about__copy p { margin-top: 12px; color: var(--sf-text-secondary); max-width: 60ch; }
.about__copy .about__promise { color: var(--sf-text); font-weight: 600; }
.about__side { display: grid; gap: 20px; align-content: start; }
.about__side h3 {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sf-text-muted);
}
.about__side p { margin-top: 4px; color: var(--sf-text-secondary); }
.linklist { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; }
.linklist a, .about__side a { font-weight: 600; }
.linklist a { display: inline-flex; align-items: center; min-height: 40px; }

/* ============ footer ============ */
.footer {
  width: 100%;
  max-width: calc(var(--sf-content-max) + 2 * var(--sf-pad));
  margin: 40px auto 0;
  padding: 20px var(--sf-pad) 28px;
  font-size: 13px; color: var(--sf-text-muted);
  border-top: 1px solid var(--sf-border-subtle);
}
.footer p + p { margin-top: 4px; }
.footer a { color: var(--sf-text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--sf-text); }

/* ============ game page (Marble Mill) ============ */
.ghero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
  padding: 28px;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-panel);
  background: #0e1427;
}
.ghero h1 { margin-top: 14px; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -0.025em; }
.ghero__lede { margin-top: 12px; font-size: 17px; color: var(--sf-text-secondary); max-width: 52ch; }
.ghero__art {
  width: 100%; border-radius: var(--sf-radius-card);
  border: 1px solid var(--sf-border-subtle);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--sf-border-subtle); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--sf-text-secondary);
  background: var(--sf-surface);
}

.section { margin-top: 48px; }
.section__title { font-size: clamp(24px, 2vw, 30px); }
.section__note { margin-top: 6px; color: var(--sf-text-secondary); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 20px;
}
.fact {
  padding: 18px 20px;
  border: 1px solid var(--sf-border-subtle); border-radius: var(--sf-radius-card);
  background: var(--sf-surface);
}
.fact__head { display: flex; align-items: center; gap: 10px; color: var(--sf-lavender); }
.fact__head span { font-weight: 800; font-size: 15px; color: var(--sf-text); }
.fact__text { margin-top: 6px; font-size: 14.5px; color: var(--sf-text-secondary); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.prose { color: var(--sf-text-secondary); font-size: 16px; line-height: 1.65; }
.prose + .prose { margin-top: 10px; }
.prose strong { color: var(--sf-text); font-weight: 700; }
.num { font-family: var(--font-mono); font-feature-settings: 'tnum'; color: var(--sf-text); }

.materials { display: flex; flex-direction: column; gap: 10px; }
.material {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--sf-border-subtle); border-radius: var(--sf-radius-card);
  background: var(--sf-surface);
}
.material__swatch { width: 32px; height: 32px; border-radius: 50%; flex: none; border: 2px solid rgba(255, 255, 255, .15); }
.material__name { font-weight: 800; width: 76px; }
.material__note { font-family: var(--font-mono); color: var(--sf-lavender); width: 20px; }
.material__desc { font-size: 14.5px; color: var(--sf-text-secondary); }

.note {
  padding: 24px 28px;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-panel);
  background: #0e1427;
}
.note h2 { font-size: 24px; }
.note p { margin-top: 10px; color: var(--sf-text-secondary); max-width: 70ch; }

/* ============ stránka hry (generovaná, HQ-17) ============ */
.gpage {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
}
.gpage__media {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-panel);
  overflow: hidden; background: var(--sf-sunken);
}
.gpage__video, .gpage__still, .gpage__art { display: block; width: 100%; height: 100%; object-fit: cover; }
.gpage__still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gpage__video { display: none; }
  .gpage__still { display: block; }
}
.gpage__title { margin-top: 14px; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -0.03em; }
.gpage__tagline { margin-top: 10px; font-size: 18px; font-weight: 600; max-width: 36ch; }
.gpage__facts {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sf-text-muted);
}
.gpage__note { margin-top: 6px; font-size: 14px; color: var(--sf-text-secondary); max-width: 44ch; }
.gabout { margin-top: 40px; }
.gabout .prose { max-width: 68ch; font-size: 17px; }
.gabout .textlink { margin-top: 6px; }

/* kde hra je ve smyčce laboratoře */
.stage-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0 0; padding: 0; list-style: none;
}
.stage-track__step {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sf-text-muted);
}
.stage-track__step::before {
  content: ""; position: absolute; top: 6px; left: 13px; right: 0;
  height: 1px; background: var(--sf-border);
}
.stage-track__step:last-child::before { display: none; }
.stage-track__dot {
  position: relative; z-index: 1;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--sf-border); background: var(--sf-bg);
}
.stage-track__step.is-done { color: var(--sf-text-secondary); }
.stage-track__step.is-done::before { background: var(--sf-lavender); }
.stage-track__step.is-done .stage-track__dot { border-color: var(--sf-lavender); background: var(--sf-lavender); }
.stage-track__step.is-current { color: var(--sf-text); }
.stage-track__step.is-current .stage-track__dot {
  border-color: var(--sf-play); background: var(--sf-play);
  box-shadow: 0 0 0 4px rgba(199, 246, 91, .18);
}
.stage .section__note { margin-top: 16px; }

/* From the lab: malé karty dalších her */
.more-lab { margin-top: 56px; }
.more-lab__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px; margin-top: 16px;
}
.game--mini .game__title { margin-top: 12px; font-size: 20px; }
.game--mini .game__tagline { font-size: 15px; }
.game--mini .actions { margin-top: 12px; }
.game--mini .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ============ textová stránka (Privacy) ============ */
.doc { max-width: 72ch; padding-bottom: 8px; }
.doc h1 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -0.025em; }
.doc h2 { margin-top: 32px; font-size: 22px; }
.doc p, .doc li { margin-top: 10px; color: var(--sf-text-secondary); line-height: 1.65; }
.doc strong { color: var(--sf-text); font-weight: 700; }
.doc ul { margin-top: 10px; padding-left: 20px; list-style: disc; }
.doc li { margin-top: 6px; }
.doc__lede { font-size: 18px; color: var(--sf-text) !important; }
.doc__updated { margin-top: 28px !important; font-size: 14px; color: var(--sf-text-muted) !important; }

/* ============ 900–1199 px ============ */
@media (max-width: 1199.98px) {
  :root { --sf-pad: 24px; }
  .intro__title { font-size: clamp(40px, 4.6vw, 48px); }
  .feature__copy { max-width: 58%; }
  .feature::before {
    background: linear-gradient(90deg,
      rgba(11, 16, 32, .97) 0%, rgba(11, 16, 32, .9) 40%,
      rgba(11, 16, 32, .55) 62%, rgba(11, 16, 32, .1) 85%);
  }
  .lower { grid-template-columns: minmax(0, 1fr); }
  .spotlight {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "head head" "media body";
    gap: 0 24px; align-items: center;
  }
  .spotlight__head { grid-area: head; }
  .spotlight__media { grid-area: media; }
  .spotlight__body { grid-area: body; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

/* ============ < 900 px: horní lišta místo railu ============ */
@media (max-width: 899.98px) {
  :root { --sf-pad: 22px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    z-index: 40;
    height: auto; overflow: visible;
    padding: 0 var(--sf-pad);
    border-right: 0; border-bottom: 1px solid var(--sf-border-subtle);
    background: rgba(13, 17, 34, .96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .rail__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 64px; padding: 0;
  }
  .brand { flex-direction: row; align-items: baseline; gap: 10px; }
  .brand__name { font-size: 21px; }
  .brand__labs { font-size: 11px; letter-spacing: .35em; }
  .rail__toggle { display: inline-flex; }
  .rail__nav { padding: 4px 0 16px; }
  .rail__nav.is-collapsed { display: none; }
  .rail__tool { margin-top: 6px; }
  [id] { scroll-margin-top: 80px; }

  .main { padding-top: 24px; }
  .intro { padding-top: 0; }
  .intro__title { font-size: clamp(34px, 6.2vw, 44px); }
  .intro__title span { display: inline; }
  .intro__grid { display: none; }
  .ghero, .split, .gpage { grid-template-columns: minmax(0, 1fr); }
  .gpage { gap: 20px; }
  .rail__lab { margin-top: 14px; }
  .rail__eyebrow { padding-left: 13px; }
}

/* ============ < 600 px ============ */
@media (max-width: 599.98px) {
  :root { --sf-pad: 16px; }
  .intro__title { font-size: clamp(30px, 9vw, 36px); }
  .intro__lede { font-size: 17px; }

  .feature { display: block; min-height: 0; }
  .feature__art {
    position: static; height: auto;
    aspect-ratio: 16 / 10; object-position: 72% center;
  }
  .feature::before { display: none; }
  .feature__copy { max-width: none; padding: 18px 18px 20px; }
  .feature__title { font-size: 28px; }
  .feature__tagline { font-size: 17px; }

  .panel { padding: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cards--single .game { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cards--single .game__title { margin-top: 14px; font-size: 24px; }
  .spotlight { display: block; }
  .chip { font-size: 10.5px; letter-spacing: .04em; padding: 5px 10px; }
  .ghero { padding: 20px; }
  .note { padding: 20px; }
  .material { flex-wrap: wrap; }
  .material__desc { flex: 1 0 100%; }

  .lab-loop__steps { font-size: 10.5px; letter-spacing: .12em; }
  .lab-loop__steps li + li::before { margin: 0 6px; }
  .gpage__title { font-size: 32px; }
  .gpage__tagline { font-size: 17px; }
  .more-lab__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stage-track { grid-template-columns: minmax(0, 1fr); }
  .stage-track__step { flex-direction: row; align-items: center; gap: 12px; min-height: 34px; }
  .stage-track__step::before { top: 50%; left: 6px; right: auto; width: 1px; height: 100%; }
}
