/* Chess Arena — the home page (Nov 28): a scroll film made of the game's own
   art. You scroll and the camera moves: into the hall, across eight of the 24
   tables, to the four premium sets. home.js turns the scroll position into
   the --p of each stage; everything else is here. Built by tools/build_site.js;
   the pictures by tools/build_home_art.py. The text pages still use site.css. */

@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 'Alegreya'; src: url('fonts/alegreya-latin-ext-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 'Alegreya'; src: url('fonts/alegreya-latin-ext-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-cyrillic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 'Alegreya'; src: url('fonts/alegreya-latin-ext-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-cyrillic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #0A0605;
  --ink-2: #120B07;
  --gold: #F2C765;
  --gold-hi: #FFE9A8;
  --gold-deep: #B9821F;
  --ivory: #F5EBD8;
  --ivory-dim: #CDBB98;
  --line: rgba(232, 182, 92, 0.38);
  --display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --body: 'Alegreya', 'Georgia', 'Times New Roman', serif;
  --pad: clamp(20px, 5vw, 84px);
  --vh: 100vh;
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mh { margin: 0; background: var(--ink); color: var(--ivory); font: 400 1.06rem/1.55 var(--body); overflow-x: hidden; overflow-x: clip; }
.mh img, .mh video { display: block; max-width: 100%; }
.mh a { color: var(--gold); text-underline-offset: 3px; }
.mh a:hover { color: var(--gold-hi); }
.mh :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.mh h1, .mh h2, .mh h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 0.95; letter-spacing: -0.015em; text-wrap: balance; }
.mh p { margin: 0; }
/* gold words. The colour is a background cut to the letters, and a background stops at the edge of
   its box: with a tight line the tails of y, g and p hung below the box and were cut off (Ivan, Nov
   29). The padding gives them room, the equal negative margin keeps the layout where it was. */
.mh .gold-t { background: linear-gradient(180deg, #FFF6D2 0%, #F8D77E 36%, #D9A13C 64%, #F3CF79 84%, #B57A1F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0.1em 0.06em 0.26em; margin: -0.1em -0.06em -0.26em; }
.kick { font: 500 0.8rem/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the bar at the top: clear over the film, solid once you scroll ---- */
.mh-top { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s; }
.mh-top.solid { background: rgba(10, 6, 5, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); padding-block: 10px; box-shadow: 0 1px 0 rgba(232, 182, 92, 0.18); }
.mh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mh-brand img { width: 40px; height: 40px; }
.mh-brand b { font: 900 1.12rem/1 var(--display); letter-spacing: 0.16em; color: var(--ivory); white-space: nowrap; }
.mh-nav { display: flex; align-items: center; gap: 30px; }
.mh-nav a { font: 500 0.95rem/1 var(--body); letter-spacing: 0.08em; color: var(--ivory); text-decoration: none; opacity: 0.86; }
.mh-nav a:hover { opacity: 1; color: var(--gold-hi); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px; font: 700 1rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; cursor: pointer; border: 0; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn-gold { color: #2A1703 !important; background: linear-gradient(180deg, #FFE7A0, #F2C765 45%, #C98F2A); box-shadow: 0 6px 24px rgba(242, 199, 101, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(242, 199, 101, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-line { color: var(--ivory) !important; background: rgba(10, 6, 5, 0.35); box-shadow: inset 0 0 0 1.5px var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-hi) !important; }
.mh-top .btn { padding: 11px 22px; font-size: 0.95rem; }
.btn .tri { width: 0.7em; height: 0.82em; fill: currentColor; }

/* ---- a stage: a tall section whose inside stays on screen while you scroll
   through it. home.js writes --p (0 at its start, 1 at its end) on it. ---- */
.st { position: relative; height: calc(var(--len, 3) * var(--vh)); }
.pin { position: sticky; top: 0; height: var(--vh); overflow: hidden; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- 1. the film: the hall, then eight tables. The pictures lie on top of
   each other; home.js grows and dissolves the top one (--s, opacity) ---- */
/* a wide screen shows only the hall; the eight tables follow on a screen held upright (below) */
.st-film { --len: 1.9; background: #000; }
@media (max-aspect-ratio: 4/5) { .st-film { --len: 8.4; } }
@media (min-aspect-ratio: 4/5) { .scene:not(.hero), .cap, .ticks { display: none !important; } }
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; will-change: opacity; }
.scene.on { visibility: visible; }
.scene img { transform: scale(var(--s, 1)); transform-origin: 50% 46%; will-change: transform; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 6, 5, 0.78) 0%, rgba(10, 6, 5, 0.3) 34%, rgba(10, 6, 5, 0) 56%, rgba(10, 6, 5, 0) 80%, rgba(10, 6, 5, 0.6) 100%), radial-gradient(ellipse 70% 60% at 0% 12%, rgba(10, 6, 5, 0.55), rgba(10, 6, 5, 0) 70%); }
.scene.hero img { transform-origin: 62% 36%; }
.scene.hero::after { background: radial-gradient(ellipse at 50% 46%, rgba(10, 6, 5, 0.22) 0%, rgba(10, 6, 5, 0.42) 50%, rgba(10, 6, 5, 0.88) 100%), linear-gradient(180deg, rgba(10, 6, 5, 0.6) 0%, rgba(10, 6, 5, 0) 26%, rgba(10, 6, 5, 0) 62%, rgba(10, 6, 5, 0.92) 100%); }
.hero-in { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; text-align: center; padding: 84px var(--pad) 28px; will-change: transform, opacity; }
.hero-in h1 { font-size: clamp(3.6rem, min(13.2vw, 23vh), 16rem); letter-spacing: -0.03em; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
.hero-in h1 span { display: block; }
.hero-in .kick { margin-bottom: clamp(14px, 2.4vh, 28px); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.hero-in .lede { margin-top: clamp(16px, 2.6vh, 30px); max-width: 36ch; font-size: clamp(1.12rem, 1.6vw, 1.5rem); line-height: 1.35; color: var(--ivory); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 18px #000, 0 0 40px rgba(0, 0, 0, 0.8); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(22px, 3.6vh, 40px); }
/* the word Scroll stands in the column under the buttons (Ivan, Nov 30: it lay on top of them in a low window) */
.cue { margin-top: clamp(16px, 3vh, 34px); display: grid; justify-items: center; gap: 10px; font: 500 0.72rem/1 var(--body); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory); pointer-events: none; }
.cue i { width: 1px; height: clamp(22px, 4.4vh, 40px); background: linear-gradient(180deg, var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.cap { position: absolute; left: var(--pad); right: calc(var(--pad) + 30px); top: clamp(92px, 15vh, 150px); z-index: 20; visibility: hidden; opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 40px)); will-change: transform, opacity; }
.cap .no { font: 500 0.82rem/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.cap h2 { margin-top: 14px; font-size: clamp(2.9rem, 9.6vw, 12rem); letter-spacing: -0.03em; color: var(--ivory); text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55); }
.cap .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: clamp(12px, 2vh, 22px); font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--ivory); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.cap .meta b { font-family: var(--display); font-weight: 700; color: var(--gold-hi); }
.cap .meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.coin { display: inline-block; width: 1.05em; height: 1.05em; margin-left: 0.3em; vertical-align: -0.16em; background: url('img/icons/coin.webp') center / contain no-repeat; }
.ticks { position: absolute; right: calc(var(--pad) - 6px); top: 50%; z-index: 21; transform: translateY(-50%); display: grid; gap: 4px; opacity: 0; }
.ticks i { display: block; width: 14px; height: 34px; cursor: pointer; background: linear-gradient(rgba(245, 235, 216, 0.35), rgba(245, 235, 216, 0.35)) center / 2px 100% no-repeat; transition: background-size 0.3s, filter 0.3s; }
.ticks i.on { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 3px 100%; filter: drop-shadow(0 0 6px rgba(242, 199, 101, 0.9)); }

/* ---- all 24, drifting past ---- */
.all { position: relative; padding: clamp(70px, 12vh, 130px) 0 clamp(60px, 10vh, 110px); background: linear-gradient(180deg, var(--ink), var(--ink-2)); overflow: hidden; }
.all-head { padding: 0 var(--pad); display: grid; gap: 16px; max-width: 1100px; }
.all-head h2 { font-size: clamp(2.3rem, 6vw, 5.4rem); }
.all-head p { max-width: 52ch; color: var(--ivory-dim); font-size: clamp(1rem, 1.25vw, 1.2rem); }
.rail { display: flex; gap: 18px; width: max-content; margin-top: clamp(30px, 5vh, 54px); padding-left: var(--pad); animation: rail 80s linear infinite; }
.rail:hover { animation-play-state: paused; }
.rail + .rail { margin-top: 18px; animation-duration: 95s; animation-direction: reverse; }
@keyframes rail { to { transform: translateX(-50%); } }
.card { position: relative; flex: none; background: #1a110b; width: clamp(230px, 25vw, 460px); aspect-ratio: 16 / 10; margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(232, 182, 92, 0.22), 0 14px 34px rgba(0, 0, 0, 0.5); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover img { transform: scale(1.07); }
.card figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; background: linear-gradient(180deg, transparent, rgba(8, 4, 3, 0.9)); }
.card b { display: block; font: 700 clamp(1.02rem, 1.3vw, 1.35rem)/1.15 var(--display); color: var(--ivory); }
.card span { font-size: 0.86rem; color: var(--gold); }

/* ---- 3. the sets: four kings in a row; the one you pick steps forward ---- */
.st-sets { --len: 4.6; background: var(--ink); }
.sets-in { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: clamp(78px, 10.5vh, 110px) var(--pad) clamp(12px, 2vh, 26px); }
/* a glow behind each side, in that side's colour (home.js sets --tint-a / --tint-b) */
.glow { position: absolute; top: 20%; width: 44%; height: 60%; border-radius: 50%; filter: blur(90px); opacity: 0.5; transition: background 0.7s; pointer-events: none; }
.glow.a { left: 4%; background: var(--tint-a, #b7c4ff); }
.glow.b { right: 4%; background: var(--tint-b, #3d52e0); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.set-head { position: relative; text-align: center; }
.set-names { display: grid; justify-items: center; margin-top: clamp(8px, 1.6vh, 16px); }
.set-names > div { grid-area: 1 / 1; opacity: 0; transform: translateY(20px); transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.set-names > div.on { opacity: 1; transform: none; pointer-events: auto; }
.set-names h3 { font-size: clamp(2.1rem, min(5.8vw, 9.5vh), 6.6rem); letter-spacing: -0.03em; }
.set-names p { margin-top: clamp(6px, 1.2vh, 12px); font-size: clamp(1rem, min(1.4vw, 2.4vh), 1.5rem); color: var(--ivory); }
/* the two sides of the set face each other: light on the left, dark on the right */
.duel { position: relative; display: grid; min-height: 0; }
.pair { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(8px, 5vw, 110px); align-items: end; justify-content: center; min-height: 0; padding-bottom: clamp(6px, 1.4vh, 16px); visibility: hidden; transition: visibility 0s 0.45s; }
.pair.on { visibility: visible; transition-delay: 0s; }
.side { display: grid; justify-items: center; align-content: end; gap: clamp(4px, 1.2vh, 14px); min-width: 0; opacity: 0; transition: opacity 0.45s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.side.light { justify-self: end; transform: translateX(-70px); }
.side.dark { justify-self: start; transform: translateX(70px); }
.pair.on .side { opacity: 1; transform: none; }
.side .k { height: min(38vh, 500px); width: auto; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.6)); animation: bob 6s ease-in-out infinite; }
.side.dark .k { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.army { display: flex; align-items: flex-end; justify-content: center; gap: clamp(1px, 0.8vw, 14px); height: clamp(40px, 12vh, 140px); }
.army img { height: 100%; width: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55)); opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pair.on .army img { opacity: 1; transform: none; }
.pair.on .army img:nth-child(1) { transition-delay: 0.14s; }
.pair.on .army img:nth-child(2) { transition-delay: 0.2s; }
.pair.on .army img:nth-child(3) { transition-delay: 0.26s; }
.pair.on .army img:nth-child(4) { transition-delay: 0.32s; }
.pair.on .army img:nth-child(5) { transition-delay: 0.38s; }
.side .lbl { font: 500 0.78rem/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
/* a wide screen has the room to stand each army beside its king, so the kings can be larger */
@media (min-width: 1100px) and (min-aspect-ratio: 3/2) {
  .side { grid-template-columns: auto auto; grid-template-rows: 1fr auto; column-gap: clamp(10px, 1.8vw, 36px); row-gap: clamp(6px, 1.2vh, 14px); align-items: end; }
  .side.light { grid-template-areas: "army k" "lbl k"; }
  .side.dark { grid-template-areas: "k army" "k lbl"; }
  .side .k { grid-area: k; height: min(50vh, 23vw); }
  .side .army { grid-area: army; height: min(15vh, 7vw); }
  .side .lbl { grid-area: lbl; justify-self: center; }
}
.pick { display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 22px); padding-top: clamp(8px, 1.6vh, 18px); border-top: 1px solid rgba(232, 182, 92, 0.2); }
.pick button { display: grid; justify-items: center; gap: 6px; width: clamp(74px, 12vw, 170px); padding: 6px 6px 2px; background: none; border: 0; cursor: pointer; color: var(--ivory-dim); font: 500 0.76rem/1.15 var(--body); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.5; transition: opacity 0.3s, transform 0.3s, color 0.3s; }
.pick .duo { display: flex; align-items: flex-end; justify-content: center; height: clamp(40px, 8.4vh, 84px); }
.pick .duo img { height: 100%; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.pick .duo img + img { margin-left: -18%; }
.pick button:hover { opacity: 0.9; }
.pick button.on { opacity: 1; color: var(--gold-hi); transform: translateY(-6px); }

/* ---- 4. living boards ---- */
.live { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 5vw, 90px); padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--ink-2); overflow: hidden; }
.live h2, .feat h2, .get h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
.live .txt p { margin-top: 20px; max-width: 40ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--ivory-dim); }
.live .txt .kick { margin-bottom: 18px; }
.phones { position: relative; display: flex; justify-content: center; gap: clamp(14px, 2.6vw, 40px); }
.ph { position: relative; flex: none; margin: 0; width: min(44%, 340px); aspect-ratio: 720 / 1566; border-radius: clamp(18px, 2.4vw, 34px); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(232, 182, 92, 0.4), 0 0 0 7px #17100b, 0 0 0 8px rgba(232, 182, 92, 0.25), 0 40px 80px rgba(0, 0, 0, 0.65); transform: translateY(var(--y, 0)) rotate(var(--r, -3deg)); will-change: transform; }
.ph + .ph { --r: 3deg; margin-top: 9%; }
.ph video, .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 14px; text-align: center; font: 700 0.95rem/1.2 var(--display); color: var(--ivory); background: linear-gradient(180deg, transparent, rgba(6, 3, 2, 0.88)); }

/* ---- 5. two wide pictures: puzzles, game review ---- */
.feat { position: relative; min-height: 92vh; display: grid; align-items: end; padding: clamp(90px, 16vh, 180px) var(--pad) clamp(50px, 9vh, 100px); overflow: hidden; }
.feat .bg { transform: translateY(var(--y, 0)) scale(1.16); will-change: transform; }
.feat::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ink-2) 0%, rgba(10, 6, 5, 0.05) 20%, rgba(10, 6, 5, 0.1) 50%, rgba(10, 6, 5, 0.92) 100%), linear-gradient(90deg, rgba(10, 6, 5, 0.66) 0%, rgba(10, 6, 5, 0) 60%); }
.feat.right::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 6, 5, 0) 20%, rgba(10, 6, 5, 0) 50%, rgba(10, 6, 5, 0.9) 100%), linear-gradient(270deg, rgba(10, 6, 5, 0.55) 0%, rgba(10, 6, 5, 0) 60%); }
.feat .txt { position: relative; z-index: 2; max-width: 620px; }
.feat.right .bg { filter: brightness(1.35) saturate(1.1); }
.feat.right .txt { justify-self: end; text-align: right; }
.feat .txt .kick { margin-bottom: 18px; }
.feat .txt p { margin-top: 18px; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--ivory); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feat.right .chips { justify-content: flex-end; }
.chips span { padding: 9px 16px; border-radius: 999px; font: 500 0.9rem/1 var(--body); letter-spacing: 0.04em; color: var(--ivory); background: rgba(10, 6, 5, 0.5); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* the game review: Ivan's two analysis screens stand beside the words */
.feat > picture { display: contents; }   /* the backdrop is not a cell of the section's grid ... */
.feat > picture > source { display: none; }   /* ... and neither is its <source>, which browsers lay out as an empty box */
.feat.review { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(24px, 4vw, 80px); align-items: center; padding-top: clamp(110px, 15vh, 160px); padding-bottom: clamp(60px, 10vh, 120px); }
.feat.review .an2 { grid-area: 1 / 1; justify-self: center; width: 100%; }
.feat.review .txt { grid-area: 1 / 2; }
.feat.review::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 6, 5, 0.35) 20%, rgba(10, 6, 5, 0.45) 60%, rgba(10, 6, 5, 0.92) 100%); }
.an2 { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 28px); max-width: 940px; }
.an { margin: 0; min-width: 0; border-radius: clamp(10px, 1.2vw, 20px); overflow: hidden; background: #1c0f07; box-shadow: 0 0 0 1px rgba(232, 182, 92, 0.45), 0 30px 60px rgba(0, 0, 0, 0.65); }
.an.a { flex: 566 1 0; }      /* widths in the proportion of the two pictures' shapes, so both stand equally tall */
.an.b { flex: 667 1 0; }
.an img { width: 100%; height: auto; }

/* ---- more in the arena: four of the game's own store posters (website/img/shots) ---- */
.more { padding: clamp(80px, 13vh, 150px) var(--pad) clamp(70px, 11vh, 130px); background: var(--ink); border-top: 1px solid rgba(232, 182, 92, 0.16); }
.more-head { display: grid; gap: 16px; max-width: 1100px; }
.more-head h2 { font-size: clamp(2.3rem, 6vw, 5.4rem); }
.more-head p { max-width: 54ch; color: var(--ivory-dim); font-size: clamp(1rem, 1.25vw, 1.2rem); }
.posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 44px); max-width: 1360px; margin-top: clamp(34px, 6vh, 70px); }
.poster { margin: 0; display: grid; gap: 16px; align-content: start; }
.poster .pic { border-radius: clamp(12px, 1.4vw, 22px); overflow: hidden; background: #0c0806; box-shadow: 0 0 0 1px rgba(232, 182, 92, 0.28), 0 24px 50px rgba(0, 0, 0, 0.55); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s; }
.poster img { width: 100%; height: auto; }
.poster:hover .pic { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(242, 199, 101, 0.6), 0 34px 60px rgba(0, 0, 0, 0.6); }
.poster figcaption { color: var(--ivory-dim); font-size: clamp(0.95rem, 1.1vw, 1.1rem); }

/* things that rise into place when they come on screen */
.rise { opacity: 0; transform: translateY(34px); transition: opacity 0.8s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: 0.1s; } .rise.d2 { transition-delay: 0.2s; } .rise.d3 { transition-delay: 0.3s; }

/* ---- 6. take your seat ---- */
.get { position: relative; display: grid; justify-items: center; text-align: center; padding: clamp(100px, 18vh, 200px) var(--pad) clamp(80px, 13vh, 150px); background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(242, 199, 101, 0.16), transparent 70%), var(--ink); }
.get h2 { font-size: clamp(3rem, 10vw, 9rem); letter-spacing: -0.03em; }
.get p.lede { margin-top: 22px; max-width: 44ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--ivory); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 5vh, 50px); }
.store { display: inline-flex; align-items: center; gap: 14px; min-width: 250px; padding: 17px 28px 17px 22px; border-radius: 16px; text-align: left; text-decoration: none; color: var(--ivory) !important; background: rgba(18, 11, 7, 0.8); box-shadow: inset 0 0 0 1.5px var(--line), 0 12px 30px rgba(0, 0, 0, 0.4); transition: transform 0.2s, box-shadow 0.2s; }
a.store:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--gold), 0 16px 40px rgba(0, 0, 0, 0.5); }
.store svg { width: 34px; height: 34px; flex: none; fill: var(--gold); }
.store small { display: block; font: 500 0.74rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-dim); }
.store b { display: block; margin-top: 6px; font: 700 1.38rem/1 var(--display); color: var(--ivory); }
.store.soon { opacity: 0.92; }
.get .note { margin-top: 26px; font-size: 0.95rem; color: var(--ivory-dim); }

/* ---- the foot ---- */
.mh-foot { padding: 44px var(--pad) 56px; background: #070403; border-top: 1px solid rgba(232, 182, 92, 0.2); display: grid; grid-template-columns: auto 1fr auto; gap: 20px 44px; align-items: start; font-size: 0.95rem; color: var(--ivory-dim); }
.mh-foot .mh-brand b { font-size: 1rem; }
.mh-foot .legal { max-width: 62ch; }
.mh-foot .links { display: grid; gap: 8px; justify-items: end; text-align: right; }
.mh-foot .links div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.mh-foot a { color: var(--ivory); text-decoration: none; }
.mh-foot a:hover { color: var(--gold-hi); }

/* ---- the Download box and the cookie banner (shared with the text pages) ---- */
.dl-box { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4,2,1,0.78); }
.dl-box[hidden] { display: none; }
.dl-art { position: relative; width: min(640px, 100%); }
.dl-art img { display: block; width: 100%; height: auto; }
.dl-hot { position: absolute; display: block; border-radius: 999px; background: none; border: 0; padding: 0; cursor: pointer; }
.dl-hot:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.dl-hot:active { background: rgba(255, 230, 160, 0.08); }
.dl-x { border-radius: 50%; }

/* ---- cookie banner (Nov 12): nothing measured until Accept ---- */
.ck { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(760px, calc(100vw - 32px)); }
.ck[hidden] { display: none; }
.ck-in {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 26px; align-items: center;
  padding: 18px 24px; border-radius: 14px; background: linear-gradient(180deg, rgba(20,11,5,0.97), rgba(9,5,2,0.98));
  border: 2px solid #F0C566; box-shadow: 0 0 0 1px #3B250A, 0 0 26px rgba(255,195,90,0.4), 0 12px 40px rgba(0,0,0,0.6);
}
.ck-in::before { content: ''; position: absolute; inset: 4px; border-radius: 10px; border: 1px solid rgba(255,225,150,0.55); pointer-events: none; }
.ck-t { grid-column: 1; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--gold); }
.ck-x { grid-column: 1; margin: 0; color: var(--ivory); font-size: 0.98rem; line-height: 1.45; }
.ck-x a { color: var(--gold); }
.ck-b { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; }
.ck-b button, .ck-open {
  min-width: 112px; padding: 11px 18px; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--gold); background: rgba(10,6,3,0.9); border: 1.5px solid #F0C566; position: relative; z-index: 1;
}
.ck-b button:hover, .ck-open:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
@media (max-width: 640px) {
  .ck { bottom: 12px; }
  .ck-in { grid-template-columns: 1fr; padding: 16px 18px; }
  .ck-b { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .ck-b button { flex: 1; min-width: 0; }
}

/* a middling width: the bar at the top has no room for the browser game's button */
@media (max-width: 1080px) { .mh-top .wide-only { display: none; } }

/* ---- phones ---- */
@media (max-width: 820px) {
  .mh-nav a.hide-m { display: none; }
  .mh-brand b { font-size: 0.98rem; letter-spacing: 0.12em; }
  .mh-brand img { width: 34px; height: 34px; }
  .mh-top { gap: 14px; }
  .mh-top .btn { padding: 10px 16px; font-size: 0.86rem; }
  .scene.hero::after { background: radial-gradient(ellipse at 50% 44%, rgba(10, 6, 5, 0.34) 0%, rgba(10, 6, 5, 0.3) 46%, rgba(10, 6, 5, 0.72) 100%), linear-gradient(180deg, rgba(10, 6, 5, 0.6) 0%, rgba(10, 6, 5, 0) 22%, rgba(10, 6, 5, 0) 66%, rgba(10, 6, 5, 0.9) 100%); }
  .hero-in h1 { font-size: clamp(4rem, 23vw, 7rem); }
  .hero-in .kick { font-size: 0.7rem; letter-spacing: 0.2em; }
  .hero-in { padding-bottom: 24px; }
  .scene img, .scene.hero img { transform-origin: 50% 44%; }
  .scene::after { background: linear-gradient(180deg, rgba(10, 6, 5, 0.8) 0%, rgba(10, 6, 5, 0.25) 36%, rgba(10, 6, 5, 0) 52%, rgba(10, 6, 5, 0) 82%, rgba(10, 6, 5, 0.6) 100%); }
  .ticks { right: 4px; }
  .ticks i { height: 24px; }
  .cap { top: clamp(84px, 12vh, 120px); right: 30px; }
  .cap .no { font-size: 0.72rem; letter-spacing: 0.18em; }
  .feat.review { grid-template-columns: 1fr; row-gap: 34px; padding-top: 96px; }
  .feat.review .txt { grid-area: 2 / 1; }
  .wide-only { display: none !important; }
  .posters { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .poster { gap: 10px; }
  .poster figcaption { font-size: 0.9rem; line-height: 1.4; }
  .st-sets { --len: 4.2; }
  .sets-in { padding-top: 72px; }
  .glow { top: 24%; width: 60%; height: 40%; filter: blur(60px); }
  .glow.a { left: -10%; } .glow.b { right: -10%; }
  .side .k { height: min(27vh, 300px); }
  .side.light { transform: translateX(-40px); } .side.dark { transform: translateX(40px); }
  .army { height: clamp(34px, 6.6vh, 64px); gap: 0; }
  .side .lbl { font-size: 0.68rem; }
  .pick .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pick .duo { height: clamp(40px, 7.4vh, 64px); }
  .ph { width: min(46%, 250px); }
  .ph figcaption { font-size: 0.74rem; padding: 22px 8px 10px; }
  .live { grid-template-columns: 1fr; text-align: center; }
  .live .txt p { margin-inline: auto; }
  .feat { min-height: 84vh; }
  .feat.right .txt { justify-self: start; text-align: left; }
  .feat.right .chips { justify-content: flex-start; }
  .feat::before, .feat.right::before { background: linear-gradient(180deg, var(--ink-2) 0%, rgba(10, 6, 5, 0.25) 24%, rgba(10, 6, 5, 0.45) 46%, rgba(10, 6, 5, 0.96) 100%); }
  .store { min-width: min(100%, 300px); }
  .mh-foot { grid-template-columns: 1fr; }
  .mh-foot .links, .mh-foot .links div { justify-items: start; justify-content: flex-start; text-align: left; }
}

/* ---- no motion wanted: every stage is laid out flat, nothing is pinned ---- */
.rm .st { height: auto; }
.rm .pin { position: relative; height: auto; overflow: visible; }
.rm .st-film { background: var(--ink); }
.rm .st-film .pin { display: grid; }
.rm .scene { position: relative; inset: auto; height: 72vh; opacity: 1; visibility: visible; overflow: hidden; }
.rm .scene.hero { height: var(--vh); }
.rm .hero-in { height: var(--vh); inset: 0 0 auto 0; }
.rm .cue i { animation: none; }
.rm .cap { position: relative; inset: auto; visibility: visible; opacity: 1; transform: none; margin: -68vh var(--pad) 0; height: 68vh; }
.rm .ticks { display: none; }
.rm .rail { animation: none; flex-wrap: wrap; width: auto; padding-right: var(--pad); }
.rm .st-sets .pin { height: var(--vh); overflow: hidden; }
.rm .rise { opacity: 1; transform: none; transition: none; }
.rm .side .k { animation: none; }
.rm .ph, .rm .feat .bg { transform: none; }

/* narrow phones */
@media (max-width: 400px) {
  .mh-brand { gap: 8px; }
  .mh-brand b { font-size: 0.86rem; letter-spacing: 0.1em; }
  .mh-brand img { width: 30px; height: 30px; }
  .mh-top .btn { padding: 9px 13px; font-size: 0.8rem; }
  .hero-cta .btn { padding: 12px 18px; font-size: 0.92rem; }
}
