/* ═══════════════════════════════════════════════════════════════
   Деревянная мастерская — site styles
   Warm-dark palette echoing the Cozy Puzzles game (no cool grays).
   ═══════════════════════════════════════════════════════════════ */

/* ─── Self-hosted fonts ───────────────────────────────────── */
/*  Cormorant Garamond — display. Serves 500 & 600 weights from
    the same upright file (Google ships them identically), plus a
    dedicated italic 500 for the hero accent. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-italic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-italic-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/*  Inter — UI. Variable font, one file covers 100..900 weights. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* Surfaces */
  --bg-deep:       #160e07;
  --bg-paper:      #1f1409;
  --bg-paper-2:    #271810;
  --bg-card:       #2d1d12;
  --bg-card-edge:  #3a261a;

  /* Ink */
  --ink:           #f5e8d0;
  --ink-soft:      #d6c2a4;
  --ink-mute:      #a88f6c;   /* WCAG AA on --bg-deep: ~5.6:1 */
  --ink-rule:      #4a3522;

  /* Accents */
  --gold:          #e8b76c;
  --gold-deep:     #c08a3e;
  --gold-glow:     rgba(232,183,108,.35);
  --rust:          #b6532a;
  --moss:          #88c089;

  /* Type */
  --font-display:  "Cormorant Garamond", "Times New Roman", serif;
  --font-ui:       "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter:        clamp(20px, 4.5vw, 64px);
  --max:           1240px;
  --radius:        20px;
  --radius-sm:     10px;

  /* Motion */
  --ease-out:      cubic-bezier(.2,.7,.25,1);
}

/* ─── Reset (just enough) ──────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font-ui);
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Wood-grain canvas, drawn entirely in CSS so the page stays light.
   Promoted to its own compositor layer so scroll stays smooth on mobile. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% -10%, rgba(232,183,108,.10), transparent 60%),
    repeating-linear-gradient(
      92deg,
      rgba(255,255,255,.012) 0 2px,
      transparent 2px 7px
    ),
    repeating-linear-gradient(
      88deg,
      rgba(0,0,0,.05) 0 1px,
      transparent 1px 4px
    ),
    radial-gradient(120% 80% at 50% 110%, #0e0904 0%, transparent 55%);
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #2a1808; }

/* ─── Masthead ─────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .015em;
  color: var(--ink);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--gold);
  background:
    radial-gradient(circle at 30% 30%, #3a261a, #1c1208 70%);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -2px 4px rgba(0,0,0,.4),
    0 1px 2px rgba(0,0,0,.5);
}

.masthead__nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.masthead__nav a {
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease-out);
}
.masthead__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .masthead { padding: 18px var(--gutter) 4px; }
  .masthead__nav { display: none; }
  .brand { font-size: 18px; }
  .brand__mark { width: 36px; height: 36px; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 90px) var(--gutter) clamp(48px, 8vw, 120px);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  width: 56px; height: 1px;
  background: var(--gold);
  opacity: .45;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  color: var(--gold);
  font-style: italic;
  margin-left: clamp(20px, 4vw, 64px);  /* visually hung indent */
}
.hero__title-line--accent em {
  font-style: italic;
  color: var(--ink);
  position: relative;
}
.hero__title-line--accent em::after {
  /* tiny carved underline under "собранные" */
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: -.05em;
  height: 3px;
  background: var(--gold-deep);
  border-radius: 2px;
  opacity: .55;
}

.hero__lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 14px/1 var(--font-ui);
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease-out),
              box-shadow .25s var(--ease-out),
              background .25s var(--ease-out),
              color .25s var(--ease-out);
}
.btn--primary {
  color: #2a1808;
  background: linear-gradient(180deg, #f0c280 0%, #d39849 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 6px 18px -6px rgba(232,183,108,.55),
    0 1px 2px rgba(0,0,0,.4);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 10px 24px -6px rgba(232,183,108,.7),
    0 2px 4px rgba(0,0,0,.4);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink-rule);
}
.btn--ghost:hover {
  background: rgba(232,183,108,.06);
  border-color: var(--gold-deep);
}
.btn--lg { padding: 17px 28px; font-size: 15px; }

/* ─── Hero collage (a real jigsaw of 5 pieces) ────────────── */
.hero__collage {
  margin: 0;
  position: relative;
}
.collage {
  /*
    Each piece is positioned absolutely so we can place "knobs" precisely
    at the seams. Container holds aspect ratio.
  */
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
  transform: rotate(-2deg);
  transition: transform .8s var(--ease-out);
}
.collage:hover { transform: rotate(0deg); }

.collage__piece {
  position: absolute;
  object-fit: cover;
  background: #1c1208;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 1px 0 rgba(0,0,0,.4);
}
/* Per-piece tile placement – overlapping so they look snapped. */
.collage__piece--a { top:  0%;  left: 0%;  width: 58%; height: 42%; transform: rotate(-1deg); }
.collage__piece--b { top:  4%;  right: 0%; width: 40%; height: 30%; transform: rotate( 2deg); }
.collage__piece--c { top: 36%;  right: 0%; width: 46%; height: 38%; transform: rotate(-1.5deg); }
.collage__piece--d { top: 44%;  left: 0%;  width: 40%; height: 34%; transform: rotate( 1.5deg); }
.collage__piece--e { bottom: 0%; left: 18%; width: 64%; height: 28%; transform: rotate(-.5deg); }

/* Wooden knobs at seams to sell the jigsaw */
.knob {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #c08a3e, #6b3d18 70%, #1c0d04 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.25),
    inset 0 -2px 3px rgba(0,0,0,.5),
    0 1px 2px rgba(0,0,0,.6);
  z-index: 2;
}
.knob--ab { top: 18%; left: 55%; }
.knob--bc { top: 35%; right: 18%; }
.knob--ad { top: 42%; left: 32%; }
.knob--de { bottom: 25%; left: 50%; }

.collage__caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero__title-line--accent { margin-left: 0; }
  .collage { max-width: 380px; transform: rotate(-1deg); }
}

/* ─── Section heads ────────────────────────────────────────── */
.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.section-head__rule {
  display: block;
  height: 1px;
  width: 64px;
  background: var(--gold);
  opacity: .55;
  margin-bottom: 4px;
}
.section-head__kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.005em;
}

/* ─── Now playing — teaser card (links to /games/<slug>/) ──── */
.now-playing { padding: 30px 0 80px; }

/* Compact section head — no big <h2>; the title lives inside the card */
.section-head--compact { margin-bottom: 20px; padding-bottom: 0; }
.section-head--compact .section-head__rule { margin-bottom: 12px; }

.teaser {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  margin-inline: var(--gutter);
  padding: clamp(20px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-paper-2) 100%);
  border: 1px solid var(--bg-card-edge);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 24px 48px -24px rgba(0,0,0,.7),
    0 4px 12px -6px rgba(0,0,0,.5);
  transition: transform .4s var(--ease-out), border-color .3s var(--ease-out);
}
@media (min-width: 880px) {
  .teaser { margin-left: auto; margin-right: auto; }
}
.teaser:hover,
.teaser:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-deep);
  outline: none;
}
.teaser:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 3px var(--gold-glow),
    0 24px 48px -24px rgba(0,0,0,.7);
}

/* Stamped corner — like a workshop seal */
.teaser::before {
  content: "№ 01";
  position: absolute;
  top: -14px; right: 28px;
  padding: 5px 12px;
  font: 500 11px/1 var(--font-ui);
  letter-spacing: .2em;
  color: var(--gold);
  background: var(--bg-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
}

/* ── Media board: cover crossfading into gameplay carousel ── */
.teaser__board {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-deep);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.4),
    0 18px 36px -18px rgba(0,0,0,.7);
}
.teaser__shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s var(--ease-out);
  will-change: opacity;
}
.teaser__shot.is-active { opacity: 1; }
.teaser__shot--cover { filter: saturate(.98) brightness(.96); }
/* Optional shots that haven't loaded are removed by JS — but as belt-and-braces,
   never let a broken-image icon flash through if the file is missing. */
.teaser__shot:not([src]),
.teaser__shot[src=""] { display: none; }

/* ── Body column ── */
.teaser__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-block: clamp(8px, 1.5vw, 20px);
}
.teaser__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
}
.teaser__meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--gold));
  box-shadow: 0 0 10px var(--dot, var(--gold));
}

.teaser__lede {
  margin: 0;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* Faux-button CTA. The whole .teaser is the actual <a>, so this is a styled
   <span> — clicking it bubbles to the parent link. role="presentation" keeps
   AT from announcing it as a separate control. */
.teaser__cta {
  align-self: flex-start;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font: 600 16px/1 var(--font-ui);
  letter-spacing: .01em;
  color: #2a1808;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 12px 24px -10px rgba(232,183,108,.45),
    0 4px 8px -4px rgba(0,0,0,.5);
  transition:
    transform .3s var(--ease-out),
    box-shadow .3s var(--ease-out),
    filter .3s var(--ease-out);
}
.teaser__cta-arrow { transition: transform .3s var(--ease-out); }

.teaser:hover .teaser__cta,
.teaser:focus-visible .teaser__cta {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 18px 32px -10px rgba(232,183,108,.6),
    0 6px 10px -4px rgba(0,0,0,.6);
}
.teaser:hover .teaser__cta-arrow { transform: translateX(4px); }

.teaser__sub {
  margin-top: 10px;
  font: 400 13px/1 var(--font-ui);
  color: var(--ink-mute);
  letter-spacing: .02em;
}

@media (max-width: 880px) {
  .teaser {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 24px;
  }
  .teaser::before { right: 16px; }
  .teaser__title { font-size: clamp(32px, 8vw, 44px); }
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--ink-rule);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer__brand   { margin: 0; font-family: var(--font-display); font-size: 16px; color: var(--ink-soft); }
.footer__contact { margin: 0; }
.footer__contact a { color: var(--gold); }
.footer__contact a:hover { text-decoration: underline; }
.footer__tech    { margin: 0; }
.footer__tech a  { color: var(--gold); }
.footer__tech a:hover { text-decoration: underline; }

/* ─── Game page ────────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px var(--gutter) 0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 10px;
  align-items: center;
}
.breadcrumbs a {
  color: var(--ink-mute);
  transition: color .2s var(--ease-out);
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

.game-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(24px, 4vw, 48px);
}
.game-hero__title {
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.01em;
}
.game-hero__lede {
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: 18px;
  color: var(--ink-soft);
}
.game-hero__numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 22px 0;
  border-top: 1px dashed var(--ink-rule);
  border-bottom: 1px dashed var(--ink-rule);
}
.game-hero__numbers dt {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.game-hero__numbers dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--gold);
  line-height: 1;
}
@media (max-width: 640px) {
  .game-hero__numbers { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}

/* Embedded game frame — takes its own place on the page, not a modal. */
.game-frame {
  max-width: var(--max);
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding: 0 var(--gutter);
}
.game-frame__shell {
  border: 1px solid var(--bg-card-edge);
  border-radius: var(--radius);
  background: #0c0703;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 24px 48px -24px rgba(0,0,0,.7),
    0 4px 12px -6px rgba(0,0,0,.5);
}
.game-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--ink-rule);
  min-height: 52px;
  flex-wrap: wrap;
}
.game-frame__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.game-frame__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 8px var(--moss);
}
.game-frame__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.game-frame__mount {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 820px;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
}
.game-frame__mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.game-frame__loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  margin: 0;
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  pointer-events: none;
}
.game-frame__loading::before {
  content: "";
  position: absolute;
  width: 38px; height: 38px;
  border: 2px solid var(--ink-rule);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translateY(-40px);
}
@keyframes spin { to { transform: translateY(-40px) rotate(360deg); } }
@media (max-width: 640px) {
  .game-frame__mount { aspect-ratio: 3 / 4; }
}

/* About the game */
.about-game {
  padding: 10px 0 60px;
}
.about-game__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.about-game__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink-soft);
}
.about-game__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-soft);
}
.about-game__bullets li {
  position: relative;
  padding-left: 22px;
}
.about-game__bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 9px; height: 9px;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  transform: rotate(45deg);
}
.about-game__bullets strong { color: var(--gold); font-weight: 600; }
@media (max-width: 880px) {
  .about-game__grid { grid-template-columns: 1fr; }
}

/* Specs table */
.specs { padding: 40px 0 60px; }
.specs__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
}
.specs__grid > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: baseline;
}
.specs__grid dt {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.specs__grid dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .specs__grid { grid-template-columns: 1fr; gap: 0; }
}

/* Gallery */
.gallery { padding: 40px 0 60px; }
.gallery__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery__item { margin: 0; }
.gallery__item figure { margin: 0; }
.gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-rule);
  background: var(--bg-paper);
  transition: transform .5s var(--ease-out), border-color .3s var(--ease-out);
}
.gallery__item:hover img {
  transform: scale(1.02);
  border-color: var(--gold-deep);
}
.gallery__item figcaption {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

/* FAQ */
.faq { padding: 40px 0 80px; }
.faq__list {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  gap: 10px;
}
.faq__item details {
  background: var(--bg-paper);
  border: 1px solid var(--ink-rule);
  border-radius: var(--radius-sm);
  padding: 2px 20px;
  transition: border-color .3s var(--ease-out);
}
.faq__item details[open] { border-color: var(--gold-deep); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
  transition: transform .3s var(--ease-out);
}
.faq__item details[open] summary::after { content: "−"; }
.faq__item summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -.005em;
  color: var(--ink);
  display: inline;
}
.faq__item details p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ─── Scroll-in animations ────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-anim].is-in {
  opacity: 1;
  transform: none;
}
/* No-JS fallback: don't hide content if the observer never runs. */
html.no-js [data-anim] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim],
  .collage,
  .teaser,
  .teaser__shot,
  .teaser__cta,
  .btn,
  .masthead__nav a::after,
  .gallery__item img,
  .teaser__cta-arrow { transition: none !important; transform: none !important; }

  .btn:hover,
  .teaser:hover,
  .teaser:hover .teaser__cta,
  .gallery__item:hover img,
  .teaser:hover .teaser__cta-arrow { transform: none !important; }

  .game-frame__loading::before { animation: none !important; }
}

/* ─── Tighten on tall narrow screens ──────────────────────── */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero__lede       { font-size: 16px; }
  .teaser__lede     { font-size: 15px; }
  .game-hero__lede  { font-size: 16px; }
}
