/* ═══════════════════════════════════════════════════════════════
   Деревянная мастерская — 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:      #8c7559;
  --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. */
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;
}

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;
  background: var(--bg) center/cover, #1c1208;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 22px rgba(0,0,0,.35),
    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 — game card ──────────────────────────────── */
.now-playing { padding: 30px 0 80px; }

.game-card {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-paper-2) 100%);
  border: 1px solid var(--bg-card-edge);
  border-radius: var(--radius);
  margin-inline: var(--gutter);
  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);
  overflow: visible;
}
@media (min-width: 880px) {
  .game-card { margin-inline: var(--gutter); max-width: var(--max); }
  .game-card { margin-left: auto; margin-right: auto; }
}

/* Stamped corner — like a workshop seal */
.game-card::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;
}

.game-card__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
}
.game-card__art img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 22px 30px rgba(0,0,0,.55))
    drop-shadow(0 0 18px rgba(232,183,108,.18));
  transform: rotate(-6deg);
  transition: transform .9s var(--ease-out);
}
.game-card:hover .game-card__art img { transform: rotate(-1deg) scale(1.02); }
.game-card__art-glow {
  position: absolute;
  inset: 8% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  z-index: -1;
  filter: blur(20px);
}

.game-card__meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  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));
}

.game-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.game-card__sub {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 50ch;
}

.game-card__bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.game-card__bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}
.game-card__bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: .65em;
  width: 9px; height: 9px;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  transform: rotate(45deg);
}
.game-card__bullets strong { color: var(--gold); font-weight: 600; }

.game-card__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 26px;
}
.game-card__sla {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.game-card__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px dashed var(--ink-rule);
}
.game-card__strip dt {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.game-card__strip dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 880px) {
  .game-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .game-card__art { max-width: 220px; margin: 0 auto; }
  .game-card__strip { grid-template-columns: 1fr; gap: 12px; }
  .game-card::before { right: 16px; }
}

/* ─── Workshop rail ────────────────────────────────────────── */
.workshop { padding: 60px 0 80px; }

.workshop__rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.slot {
  position: relative;
  padding: 28px 22px 26px;
  background: var(--bg-paper);
  border: 1px solid var(--ink-rule);
  border-radius: var(--radius-sm);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out);
}
.slot:hover { transform: translateY(-3px); border-color: var(--gold-deep); }
.slot__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  opacity: .75;
}
.slot__title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.005em;
  color: var(--ink);
}
.slot__status {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.slot--filled { border-color: var(--gold-deep); }
.slot--filled::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-sm);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(232,183,108,.10) 0%, transparent 60%);
}

.slot--wip .slot__status::before {
  content: "▲ ";
  color: var(--rust);
}

.slot--empty {
  border-style: dashed;
  background: transparent;
  color: var(--ink-mute);
}
.slot--empty .slot__title { color: var(--ink-mute); font-style: italic; }
.slot--empty .slot__no { opacity: .35; }

@media (max-width: 880px) {
  .workshop__rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .workshop__rail { grid-template-columns: 1fr; }
}

/* ─── About ────────────────────────────────────────────────── */
.about {
  padding: 30px 0 100px;
}
.about__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.about__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-soft);
}
.about__principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.about__principles li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-rule);
}
.about__principles span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ─── 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__tech  { margin: 0; }
.footer__tech a { color: var(--gold); }
.footer__tech a:hover { text-decoration: underline; }

/* ─── Play modal ───────────────────────────────────────────── */
.play-modal {
  padding: 0;
  border: none;
  width: min(1240px, 100vw);
  height: min(820px, 100vh);
  max-width: 100vw;
  max-height: 100vh;
  background: #0c0703;
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
}
.play-modal::backdrop {
  background: rgba(8,5,2,.85);
  backdrop-filter: blur(6px);
}
.play-modal[open] {
  animation: pop .35s var(--ease-out);
}
@keyframes pop {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.play-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--ink-rule);
  height: 52px;
}
.play-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.play-modal__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 8px var(--moss);
}
.play-modal__close {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--ink-rule);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.play-modal__close:hover {
  color: var(--ink);
  border-color: var(--gold-deep);
  background: rgba(232,183,108,.08);
}

.play-modal__mount {
  position: relative;
  width: 100%;
  height: calc(100% - 52px);
  background: var(--bg-deep);
  display: grid;
  place-items: center;
}
.play-modal__mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.play-modal__mount .loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  pointer-events: none;
}
.play-modal__mount .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); } }

/* ─── 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;
}
@media (prefers-reduced-motion: reduce) {
  [data-anim],
  .collage,
  .game-card__art img { transition: none !important; transform: none !important; }
  .play-modal[open] { animation: none; }
}

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