/* Gridwright app landing. The store's look pushed loud: the night scene from our own packs, pixel type, gold and violet
   fields, hard pixel edges. Motion only with html.motion (set before paint when the visitor allows motion); without
   script or with reduced motion every section shows its finished state. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/pixelify-sans-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/pixelify-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/pixelify-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-002F, U+003A-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/pixelify-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #060818; --bg: #0e0e17; --surface: #1b1b26; --raised: #262636; --line: #34344a; --edge: #050509;
  --ink: #f2f1f8; --muted: #b4b2c8; --dim: #64627e;
  --gold: #ffd95a; --gold-hi: #fff0b0; --gold-lo: #b48a14; --gold-deep: #3a2d00;
  --violet: #6447e0; --violet-hi: #9b84ff; --violet-lo: #2e1d6b;
  --coral: #ff6a55; --coral-lo: #8f2416;
  --paper: #f3f1ea; --ink-dark: #17151f;
  /* The pixel face misreads in digits at text size (3 as 8, 7 as 1), so the everyday pixel face (--fd) has no digits of its
     own: numbers in buttons, labels and small headings fall to the text face. Only display-size type (--fdd) keeps pixel digits. */
  --fd: "Pixelify Text", "IBM Plex Sans", system-ui, sans-serif;
  --fdd: "Pixelify Sans", "IBM Plex Sans", system-ui, sans-serif;
  --ft: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 56px); --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --s: 2; --steps: 1280; --ws: 3;
  --bar-h: 64px;
}
@media (min-width: 640px) { :root { --s: 3; --steps: 1920; } }
@media (min-width: 1024px) { :root { --s: 4; --steps: 2560; } }

*, *::before, *::after { box-sizing: border-box; }
/* the hidden attribute always hides: a class that sets display (a button, a card, a grid) must not bring the element back */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); interpolate-size: allow-keywords; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--ft); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fd); font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--ink-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.frame { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.gold { color: var(--gold); }
.loss { color: var(--coral); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--ink-dark); font-weight: 600; }
.skip:focus { top: 12px; }
.h-xl { font-size: clamp(46px, 6.4vw, 104px); text-shadow: 0.05em 0.05em 0 var(--violet-lo); }
.h-l { font-size: clamp(38px, 4.6vw, 72px); text-shadow: 0.05em 0.05em 0 var(--violet-lo); }
.h-xl .gold, .h-l .gold { text-shadow: 0.05em 0.05em 0 var(--violet); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 36em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head-c { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sec-head-c .lede { margin: 0 auto; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- buttons: a pixel slab that lifts and presses ---------- */
.btn {
  --b: var(--gold); --lo: var(--gold-lo); --fg: var(--ink-dark);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 14px 24px; border: 0; background: var(--b); color: var(--fg);
  font: 700 19px/1.1 var(--fd); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: 0 -3px 0 0 var(--b), -3px 0 0 0 var(--b), 3px 0 0 0 var(--b), 0 3px 0 0 var(--b), 0 9px 0 0 var(--lo), 6px 14px 0 0 rgb(0 0 0 / 0.4);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), filter 140ms;
}
.btn::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -40%; width: 26%; background: rgb(255 255 255 / 0.45); transform: skewX(-22deg) translateX(-120%); }
.btn:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 -3px 0 0 var(--b), -3px 0 0 0 var(--b), 3px 0 0 0 var(--b), 0 3px 0 0 var(--b), 0 12px 0 0 var(--lo), 8px 18px 0 0 rgb(0 0 0 / 0.4); }
.motion .btn:hover::after { animation: shine 700ms var(--ease); }
@keyframes shine { to { transform: skewX(-22deg) translateX(620%); } }
.btn:active { transform: translateY(6px); box-shadow: 0 -3px 0 0 var(--b), -3px 0 0 0 var(--b), 3px 0 0 0 var(--b), 0 3px 0 0 var(--b), 0 3px 0 0 var(--lo), 2px 5px 0 0 rgb(0 0 0 / 0.4); }
.btn-ink { --b: var(--ink-dark); --lo: #000; --fg: var(--gold); }
.btn-ghost { --b: var(--night); --lo: var(--gold); --fg: var(--gold); }
.btn-sm { padding: 9px 14px; font-size: 16px; box-shadow: 0 -2px 0 0 var(--b), -2px 0 0 0 var(--b), 2px 0 0 0 var(--b), 0 2px 0 0 var(--b), 0 5px 0 0 var(--lo); }
.btn-lg { padding: 18px 30px; font-size: clamp(19px, 1.6vw, 23px); }
.btn-block { width: 100%; }
.arr { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- the bar ---------- */
.progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 4px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.bar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  transition: transform 300ms var(--ease), background-color 300ms;
}
.bar.solid { background: rgb(6 8 24 / 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 0 0 rgb(255 255 255 / 0.06); }
.bar.away { transform: translateY(-110%); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--fd); text-decoration: none; color: #fff; margin-right: auto; }
.wordmark img { width: 32px; height: 32px; image-rendering: pixelated; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: #fff; opacity: 0.86; }
.links a:hover { opacity: 1; color: var(--gold); }
.links a[aria-current="page"] { opacity: 1; color: var(--gold); }
/* the phone menu: a pixel burger that opens a full-width list under the bar (works without script: <details>) */
.burger { display: none; }
.burger > summary { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.16); }
.burger > summary::-webkit-details-marker { display: none; }
.burger > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bun, .bun::before, .bun::after { display: block; width: 20px; height: 3px; background: #fff; transition: transform 200ms var(--ease), background-color 200ms; }
.bun { position: relative; }
.bun::before, .bun::after { content: ""; position: absolute; left: 0; }
.bun::before { top: -7px; }
.bun::after { top: 7px; }
.burger[open] > summary { background: var(--gold); box-shadow: none; }
.burger[open] .bun { background: transparent; }
.burger[open] .bun::before { background: var(--ink-dark); transform: translateY(7px) rotate(45deg); }
.burger[open] .bun::after { background: var(--ink-dark); transform: translateY(-7px) rotate(-45deg); }
.burger-menu { position: fixed; top: var(--bar-h); left: 0; right: 0; display: flex; flex-direction: column; padding: 8px var(--gut) 24px; max-height: calc(100svh - var(--bar-h)); overflow-y: auto;
  background: rgb(6 8 24 / 0.98); box-shadow: 0 2px 0 0 rgb(255 255 255 / 0.08), 0 24px 40px rgb(0 0 0 / 0.5); }
.burger-menu a:not(.btn) { padding: 15px 2px; font: 700 24px/1 var(--fd); color: #fff; text-decoration: none; box-shadow: inset 0 -2px 0 0 rgb(255 255 255 / 0.07); }
.burger-menu a:not(.btn):hover, .burger-menu a[aria-current="page"] { color: var(--gold); }
.burger-menu .btn { margin-top: 20px; justify-content: center; }
.motion .burger[open] .burger-menu { animation: menu-in 220ms var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 860px) { .links { display: none; } .burger { display: block; } .bar { gap: 12px; } }
@media (max-width: 420px) { .bar-cta { display: none; } }

/* ---------- 1. hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + clamp(12px, 2.6vh, 44px)) 0 calc(28px + 34px * var(--s)); background: var(--night); overflow: clip; }
.scene { position: absolute; inset: 0; z-index: -1; overflow: clip; background: var(--night); pointer-events: none; }
.hs-par { position: absolute; top: 0; bottom: -10px; left: -70px; right: -70px; will-change: transform; }
.hs-sky, .hs-layer {
  position: absolute; left: 0;
  bottom: calc((180 - var(--top) - var(--h)) * var(--s) * 1px + 10px);
  height: calc(var(--h) * var(--s) * 1px);
  background-image: var(--img); background-repeat: repeat-x; background-size: calc(640px * var(--s)) 100%;
  image-rendering: pixelated;
}
.hs-sky { right: 0; }
.hs-layer { width: calc(100% + 640px * var(--s)); }
.motion .hs-layer { animation: hs-scroll var(--d) steps(var(--steps)) var(--delay, 0s) infinite; }
@keyframes hs-scroll { to { transform: translateX(calc(-640px * var(--s))); } }
.motion .hs-tw0 { animation: twinkle 3.4s linear infinite; }
.motion .hs-tw1 { animation: twinkle 4.7s linear -2.1s infinite; }
@keyframes twinkle { 0%, 40%, 68%, 100% { opacity: 1; } 54% { opacity: 0.08; } }
.sprite { width: calc(var(--fw) * var(--s) * 1px); height: calc(var(--fh) * var(--s) * 1px); overflow: hidden; }
.sprite > img { max-width: none; height: 100%; width: calc(var(--fw) * var(--n) * var(--s) * 1px); image-rendering: pixelated; }
.motion .sprite > img { animation: frames calc(var(--n) / var(--fps, 10) * 1s) steps(var(--n)) var(--delay, 0s) infinite; }
@keyframes frames { to { transform: translateX(-100%); } }
.party { position: absolute; width: 0; height: 0; right: calc(70px + 22px * var(--s)); bottom: calc(12px + 2px * var(--s)); }
.walker { position: absolute; bottom: 0; right: calc(var(--slot) * 22px * var(--s)); }
.hs-bat { position: absolute; }
.hs-bat-a { right: calc(70px + 60px * var(--s)); bottom: calc(10px + 122px * var(--s)); }
.hs-bat-b { left: 0; bottom: calc(10px + 150px * var(--s)); }
.motion .hs-bat-a { animation: bob 1.4s steps(4) infinite alternate; }
.motion .hs-bat-b { animation: fly 31s linear -8s infinite; }
@keyframes bob { to { transform: translateY(calc(-4px * var(--s))); } }
@keyframes fly { 0% { transform: translate(-10vw, 0); } 25% { transform: translate(25vw, -30px); } 50% { transform: translate(60vw, 10px); } 75% { transform: translate(85vw, -24px); } 100% { transform: translate(115vw, 0); } }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(4 5 16 / 0.7) 0, rgb(4 5 16 / 0.4) 38%, rgb(4 5 16 / 0) 66%), linear-gradient(180deg, rgb(6 8 24 / 0.85) 0, rgb(6 8 24 / 0) 18%); }
.scene[data-paused] *, .close-art[data-paused] * { animation-play-state: paused !important; }
/* shooting stars: a pixel head with a fading pixel trail, across the sky now and then */
.shoot { position: absolute; display: block; width: calc(2px * var(--s)); height: calc(2px * var(--s)); background: #fff; opacity: 0;
  box-shadow: calc(2px * var(--s)) calc(-1px * var(--s)) 0 0 rgb(255 255 255 / 0.75), calc(4px * var(--s)) calc(-2px * var(--s)) 0 0 rgb(255 240 176 / 0.5),
    calc(6px * var(--s)) calc(-3px * var(--s)) 0 0 rgb(255 217 90 / 0.3), calc(8px * var(--s)) calc(-4px * var(--s)) 0 0 rgb(255 217 90 / 0.14); }
.sh1 { left: 64%; top: 9%; }
.sh2 { left: 86%; top: 4%; }
.sh3 { left: 40%; top: 16%; }
.motion .sh1 { animation: shoot 7.3s steps(24) 1.2s infinite; }
.motion .sh2 { animation: shoot 11.1s steps(24) 4.6s infinite; }
.motion .sh3 { animation: shoot 9.4s steps(24) 7.9s infinite; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0); } 1% { opacity: 1; } 11% { opacity: 1; transform: translate(-34vw, 17vw); } 12%, 100% { opacity: 0; transform: translate(-36vw, 18vw); } }

/* one column that reads top to bottom: what it costs elsewhere (struck out), what it costs here (slammed in at display
   size), what it is, the button, and a status window of what is inside. The receipt stands beside it. */
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 392px); gap: 0 clamp(28px, 5vw, 80px); align-items: center; width: 100%; }
.hero-copy { grid-column: 1; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(12px, 2vh, 24px); padding: 7px 14px 7px 12px; background: rgb(6 8 24 / 0.72); box-shadow: 0 0 0 2px var(--line); font-size: 15px; color: var(--muted); }
.live b { color: #fff; }
.dot { width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 3px rgb(255 217 90 / 0.25); }
.motion .dot { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.hero-h { line-height: 0.9; letter-spacing: -0.02em; color: #fff; }
.hero-h > span { display: block; }
.hl-old { font-size: clamp(30px, min(4.4vw, 7.6vh), 68px); text-shadow: 0.06em 0.06em 0 var(--violet-lo); }
.hl-strike { position: relative; display: inline-block; }
.hl-strike::after { content: ""; position: absolute; left: -0.1em; right: -0.1em; top: 56%; height: 0.1em; background: var(--coral); box-shadow: 0 0.045em 0 0 var(--coral-lo); transform: rotate(-1.6deg); transform-origin: 0 50%; }
.hl-new { margin-top: 0.1em; font-size: clamp(72px, min(11.4vw, 17.5vh), 166px); color: var(--gold); text-shadow: 0.05em 0.05em 0 var(--violet), 0.1em 0.1em 0 var(--violet-lo); white-space: nowrap; }
.hl-price, .hl-per { display: inline-block; }
.hl-per { font-size: 0.56em; }
.motion .hl-old { animation: word-in 600ms var(--bounce) 60ms both, old-dim 400ms linear 900ms both; }
.motion .hl-strike::after { animation: strike 380ms steps(8) 480ms both; }
.motion .hl-price { animation: slam 560ms cubic-bezier(0.2, 1.5, 0.4, 1) 760ms both; transform-origin: 20% 60%; }
.motion .hl-per { animation: word-in 600ms var(--bounce) 1060ms both; }
.motion .hero-in { animation: hero-thud 300ms steps(3) 1040ms; }
@keyframes word-in { from { transform: translateY(0.6em) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes strike { from { transform: rotate(-1.6deg) scaleX(0); } }
@keyframes old-dim { to { color: #dcd9ee; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.8) rotate(-7deg); } 55% { opacity: 1; transform: scale(0.93) rotate(1.2deg); } 78% { transform: scale(1.03) rotate(-0.4deg); } 100% { opacity: 1; transform: none; } }
@keyframes hero-thud { 0% { transform: translateY(7px); } 50% { transform: translateY(-3px); } 100% { transform: none; } }
.sub-phone { display: none; }
.hero-sub { margin-top: clamp(14px, 2.4vh, 28px); max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: #e6e4f0; text-shadow: 0 2px 0 rgb(6 8 24 / 0.8); }
.hero-sub b { color: #fff; }
.hero-sub .loss { color: #ff8c7a; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(18px, 3vh, 30px); }
.motion .hero-go { animation: go-pulse 2.6s steps(2) 3s infinite; }
@keyframes go-pulse { 0%, 82%, 100% { filter: none; } 88% { filter: brightness(1.22); } }
.link-down { font-weight: 600; color: #fff; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.link-down:hover { color: var(--gold); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: clamp(12px, 2vh, 20px); font-size: 14.5px; color: #dddbe8; text-shadow: 0 2px 0 rgb(6 8 24 / 0.8); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 8px; height: 8px; background: var(--gold); }
/* the status window: what is inside, as a game shows a party's numbers */
.hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(16px, 2.8vh, 38px); background: rgb(6 8 24 / 0.86); box-shadow: 0 0 0 3px #e9e6ff, 0 0 0 6px var(--violet-lo), 8px 10px 0 6px rgb(0 0 0 / 0.5); }
.hud li { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; box-shadow: inset -2px 0 0 0 rgb(233 230 255 / 0.14); }
.hud li:last-child { box-shadow: none; }
.hud b { font: 600 clamp(26px, 2.5vw, 40px)/1 var(--ft); letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud span { font-size: 14px; line-height: 1.3; color: #dddbe8; }
.motion .hud { animation: word-in 600ms var(--ease) 1100ms both; }
.motion .hud li > * { animation: word-in 520ms var(--bounce) both; animation-delay: calc(1200ms + var(--i, 0) * 80ms); }

/* the receipt: every pack and tool rings up, then the stamp */
.receipt-wrap { grid-column: 2; align-self: center; filter: drop-shadow(12px 14px 0 rgb(0 0 0 / 0.55)); }
.receipt {
  position: relative; margin: 0; padding: 22px 22px 46px; background: var(--paper); color: var(--ink-dark); transform: rotate(2.4deg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px));
}
.motion .receipt.thud { animation: thud 420ms var(--ease); }
@keyframes thud { 0% { transform: rotate(2.4deg); } 30% { transform: rotate(1deg) translateY(6px) scale(0.985); } 60% { transform: rotate(3.2deg) translateY(-2px); } 100% { transform: rotate(2.4deg); } }
.rc-head { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 3px dashed #c9c4b4; text-align: center; }
.rc-store { font: 700 22px/1 var(--fd); letter-spacing: 0.04em; text-transform: uppercase; }
.rc-what { font-size: 13px; color: #59546a; }
.rc-lines { position: relative; height: calc(9 * 25px); margin: 12px 0; overflow: hidden; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rc-tape { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.rc-lines li { display: flex; gap: 10px; height: 25px; align-items: center; }
.rc-lines li span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc-lines li b { font-weight: 600; }
.rc-lines li.hit { color: #c7311d; }
.rc-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 3px dashed #c9c4b4; font-size: 14px; color: #59546a; }
.rc-total { color: var(--ink-dark); font-weight: 600; }
.rc-total b { margin-left: 8px; font: 600 28px/1 var(--ft); letter-spacing: -0.01em; color: #c7311d; font-variant-numeric: tabular-nums; }
.rc-foot { margin-top: 10px; font-size: 13.5px; color: #59546a; }
.rc-foot b { color: var(--ink-dark); }
.stamp {
  position: absolute; right: 18px; bottom: 74px; display: grid; justify-items: center; padding: 8px 16px 10px;
  color: var(--violet); box-shadow: inset 0 0 0 5px var(--violet); font: 700 15px/1 var(--fd); letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-13deg); mix-blend-mode: multiply; background: rgb(100 71 224 / 0.1);
}
.stamp b { font-size: 54px; line-height: 0.95; letter-spacing: -0.02em; }
.motion .receipt.printing .stamp { opacity: 0; }
.motion .receipt.stamped .stamp { animation: stamp 480ms var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-24deg) scale(2.6); } 70% { opacity: 1; transform: rotate(-11deg) scale(0.94); } to { opacity: 1; transform: rotate(-13deg) scale(1); } }

@media (max-height: 800px) and (min-width: 901px) { .hero { --s: 3; --steps: 1920; } .hero-trust { display: none; } .hud li { padding: 10px 14px 12px; } }
/* the moon stands just left of the receipt, half behind it, at every width (its place in the sky picture is fixed) */
@media (min-width: 901px) { .hero .hs-par[data-depth="2"] .hs-sky { background-position-x: calc(100vw - max(0px, (100vw - var(--max)) / 2) - var(--gut) - 412px - (238px * var(--s) - 70px)); } }
@media (max-width: 1100px) { .hl-old { font-family: var(--fd); } }
/* phones and tablets: a game's title screen. Everything centred over the night scene, the price the size of a logo, the
   status window resting on the ground where the party walks; the receipt follows below the scene. */
@media (max-width: 900px) {
  .hero { --s: 3; --steps: 1920; display: block; min-height: 0; padding: calc(var(--bar-h) + 12px) 0 48px; background: #18232f; }
  .scene { bottom: auto; height: max(100svh, 720px); }
  .hero .hs-sky { background-position-x: -338px; }
  .hero .hs-castle { --delay: -54s !important; }
  .party { right: calc(50% - 49px * var(--s)); }
  .hs-shade { background: linear-gradient(180deg, rgb(4 5 16 / 0.8) 0, rgb(4 5 16 / 0.5) 44%, rgb(4 5 16 / 0) 70%); }
  .hero-in { display: flex; flex-direction: column; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; min-height: calc(max(100svh, 720px) - var(--bar-h) - 12px - 36px * var(--s)); }
  .live { margin-bottom: 14px; font-size: 13.5px; }
  .sub-wide { display: none; }
  .sub-phone { display: inline; }
  .hl-old { font-size: clamp(22px, 6.6vw, 44px); text-shadow: 0.07em 0.07em 0 #000; }
  .hl-new { margin-top: 0.06em; font-size: clamp(92px, 28vw, 200px); line-height: 0.84; white-space: normal; }
  .hl-per { display: block; margin-top: 0.14em; font-size: 0.38em; }
  .motion .hl-price { transform-origin: 50% 60%; }
  .hero-sub { margin-top: 14px; max-width: 30em; font-size: 16px; line-height: 1.5; text-shadow: 0 2px 0 #000; }
  .hero-act { flex-direction: column; gap: 12px; width: 100%; margin-top: 18px; }
  .hero-act .btn { width: 100%; }
  .link-down { text-shadow: 0 2px 0 #000; font-size: 15px; }
  .hero-trust { justify-content: center; margin: 12px 0 18px; font-size: 13.5px; text-shadow: 0 2px 0 #000; }
  .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: auto; text-align: left; }
  .hud li { padding: 10px 12px 12px; box-shadow: inset -2px 0 0 0 rgb(233 230 255 / 0.14), inset 0 -2px 0 0 rgb(233 230 255 / 0.14); }
  .hud li:nth-child(2n) { box-shadow: inset 0 -2px 0 0 rgb(233 230 255 / 0.14); }
  .hud li:nth-child(n + 3) { box-shadow: inset -2px 0 0 0 rgb(233 230 255 / 0.14); }
  .hud li:last-child { box-shadow: none; }
  .hud b { font-size: 26px; }
  .hud span { font-size: 13px; }
  .receipt-wrap { grid-column: auto; margin: calc(36px * var(--s) + 44px) auto 0; width: min(100%, 380px); }
}
@media (min-width: 600px) and (max-width: 900px) { .hero { --s: 4; --steps: 2560; } .hud { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hud li, .hud li:nth-child(2n), .hud li:nth-child(n + 3) { box-shadow: inset -2px 0 0 0 rgb(233 230 255 / 0.14); } .hud li:last-child { box-shadow: none; } .hero-act { flex-direction: row; justify-content: center; } .hero-act .btn { width: auto; } }
@media (max-width: 400px) { .live { font-size: 12.5px; padding: 6px 10px; gap: 8px; } }
@media (max-width: 900px) and (max-height: 760px) { .hero-sub { font-size: 15px; } .hero-trust, .hero .link-down { display: none; } .hero-act { margin-bottom: 18px; } }

/* ---------- 2. tapes ---------- */
.tapes { position: relative; z-index: 3; height: clamp(110px, 12vw, 160px); margin: -34px 0 -24px; pointer-events: none; overflow: clip; }
.tape { position: absolute; left: -6%; right: -6%; padding: 12px 0; font: 700 clamp(20px, 2.1vw, 30px)/1 var(--fd); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; }
.tape-gold { top: 8%; background: var(--gold); color: var(--ink-dark); transform: rotate(-2.4deg); box-shadow: 0 6px 0 0 var(--gold-lo); z-index: 1; }
.tape-violet { top: 60%; background: var(--violet); color: #fff; transform: rotate(1.8deg); box-shadow: 0 6px 0 0 var(--violet-lo); }
.tape-run { display: inline-flex; }
.tape-run span { display: inline-block; padding: 0 22px; }
.tape-run span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 44px; background: currentColor; transform: translateY(-0.12em) rotate(45deg); }
.motion .tape-gold .tape-run { animation: run 46s linear infinite; }
.motion .tape-violet .tape-run { animation: run 38s linear infinite reverse; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- 3. the bill, word by word, under the hero's night sky, with the other makers' price tags ---------- */
.said { position: relative; isolation: isolate; padding: clamp(130px, 15vw, 220px) 0 clamp(90px, 11vw, 160px); background: var(--night); overflow: clip; }
.said::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--violet-lo); }
.said-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ss { position: absolute; inset: 0; background-repeat: repeat; image-rendering: pixelated; opacity: 0.85; }
.ss-b { background-image: url(img/scene/stars-b.png); background-size: calc(640px * var(--s)) calc(113px * var(--s)); }
.ss-c { background-image: url(img/scene/stars-c.png); background-size: calc(640px * var(--s)) calc(111px * var(--s)); background-position: calc(-170px * var(--s)) calc(60px * var(--s)); }
.motion .ss-b { animation: twinkle 3.6s linear infinite; }
.motion .ss-c { animation: twinkle 5.1s linear -2.4s infinite; }
.said-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.tags { position: relative; height: clamp(420px, 44vw, 620px); }
.tag {
  position: absolute; left: var(--x); top: var(--y); display: grid; gap: 4px; padding: 12px 18px 14px 26px; min-width: 190px;
  background: var(--paper); color: var(--ink-dark); transform: translateY(var(--py, 0px)) rotate(var(--r));
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  filter: drop-shadow(8px 10px 0 rgb(0 0 0 / 0.55)); transition: transform 700ms var(--bounce), opacity 500ms;
}
.tag::before { content: ""; position: absolute; left: 8px; top: calc(50% - 4px); width: 8px; height: 8px; background: var(--night); }
.tag span { font-size: 13px; font-weight: 600; color: #59546a; }
.tag b { font: 600 30px/1 var(--ft); letter-spacing: -0.02em; color: #c7311d; font-variant-numeric: tabular-nums; }
.tag::after { content: ""; position: absolute; left: 20px; right: 10px; top: 52%; height: 5px; background: var(--coral); transform: scaleX(0) rotate(-8deg); transform-origin: 0 50%; transition: transform 420ms var(--ease); }
.tag-gold { z-index: 2; background: var(--gold); min-width: 230px; opacity: 0; transform: translateY(var(--py, 0px)) rotate(var(--r)) scale(0.6); }
.tag-gold span { color: #4a3c0a; }
.tag-gold b { color: var(--ink-dark); font-size: 40px; }
.tag-gold::after { display: none; }
.tags.won .tag:not(.tag-gold)::after { transform: scaleX(1) rotate(-8deg); }
.tags.won .tag:not(.tag-gold) { opacity: 0.55; }
.tags.won .tag-gold { opacity: 1; transform: translateY(var(--py, 0px)) rotate(var(--r)) scale(1.06); }
html:not(.motion) .tag-gold { opacity: 1; transform: rotate(var(--r)); }
@media (max-width: 900px) {
  .said-in { grid-template-columns: minmax(0, 1fr); }
  .tags { height: auto; display: flex; flex-wrap: wrap; gap: 14px 10px; }
  .tag { position: relative; left: auto; top: auto; min-width: 0; padding: 9px 14px 10px 22px; }
  .tag b { font-size: 22px; }
  .tag-gold { order: 9; }
  .tag-gold b { font-size: 28px; }
}
.said-text { max-width: 22em; font: 600 clamp(28px, 3.3vw, 54px)/1.16 var(--ft); letter-spacing: -0.02em; color: var(--ink); }
.said-text em { font-style: normal; }
.said-text .red { color: var(--coral); }
.said-text .gold { color: var(--gold); }
.js .said-text .wd { color: var(--dim); transition: color 250ms; }
.js .said-text .wd.on { color: var(--ink); }
.js .said-text .red .wd.on { color: var(--coral); }
.js .said-text .gold .wd.on { color: var(--gold); }

/* ---------- pinned scenes ---------- */
.motion [data-pin] { position: relative; height: calc((var(--hold) + 1) * 100svh); }
.motion [data-pin] > .pin { position: sticky; top: 0; height: 100svh; overflow: clip; }

/* ---------- 4. the cost tower ---------- */
.cost { background-color: var(--bg); background-image: linear-gradient(rgb(255 255 255 / 0.035) 2px, transparent 2px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 2px, transparent 2px); background-size: 64px 64px; }
.cost .pin { display: flex; align-items: center; padding: calc(var(--bar-h) + 16px) 0 32px; }
html:not(.motion) .cost .pin { padding: 110px 0; }
.cost-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cost-count { margin-top: 26px; font: 600 clamp(64px, 8.4vw, 140px)/0.9 var(--ft); letter-spacing: -0.04em; color: var(--coral); text-shadow: 0.04em 0.04em 0 var(--coral-lo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-cur { font-size: 0.6em; vertical-align: 0.35em; margin-right: 0.04em; }
.cc-dec { font-size: 0.45em; vertical-align: 0.9em; }
.cost-note { margin-top: 16px; color: var(--muted); max-width: 26em; }
.cost-vs { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.vs-block { flex: none; display: grid; place-items: center; width: 108px; height: 108px; background: var(--gold); color: var(--ink-dark); font: 700 40px/1 var(--fd); box-shadow: 0 -4px 0 0 var(--gold), 0 4px 0 0 var(--gold), -4px 0 0 0 var(--gold), 4px 0 0 0 var(--gold), 0 12px 0 0 var(--gold-lo), 10px 18px 0 0 rgb(0 0 0 / 0.5); }
.cost-vs p { font-size: 18px; color: var(--muted); max-width: 22em; }
.cost-vs p b { display: block; font: 700 26px/1.1 var(--fd); color: var(--gold); margin-bottom: 6px; }
.cost .h-xl { font-size: clamp(44px, 5.2vw, 84px); }
.tower { display: flex; flex-direction: column-reverse; gap: 6px; }
.tblock {
  --c: var(--raised); --fg: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; height: clamp(34px, 4.6svh, 46px); padding: 0 16px;
  width: calc(36% + 64% * var(--w)); background: var(--c); color: var(--fg);
  box-shadow: 0 -3px 0 0 var(--c), 0 3px 0 0 var(--c), -3px 0 0 0 var(--c), 3px 0 0 0 var(--c), 0 7px 0 0 rgb(0 0 0 / 0.45);
  font-size: 15px;
}
.tblock:nth-child(4n + 1) { --c: var(--gold); --fg: var(--ink-dark); }
.tblock:nth-child(4n + 2) { --c: var(--violet); --fg: #fff; }
.tblock:nth-child(4n + 3) { --c: var(--coral); --fg: var(--ink-dark); }
.tblock:nth-child(4n + 4) { --c: var(--paper); --fg: var(--ink-dark); }
.tb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-name em { font-style: normal; font-weight: 400; opacity: 0.7; margin-left: 4px; }
.tb-v { font: 600 17px/1 var(--ft); font-variant-numeric: tabular-nums; }
.cost.is-live .tblock { transform: translateY(-110vh); transition: transform 560ms var(--bounce); }
.cost.is-live .tblock.on { transform: none; }
.cost.is-live .cost-vs { opacity: 0; transform: translateY(40px); transition: opacity 300ms, transform 600ms var(--bounce); }
.cost.is-live .cost-vs.on { opacity: 1; transform: none; }
.cost.is-live .vs-block { transform: translateY(-60vh) rotate(-30deg); transition: transform 700ms var(--bounce); }
.cost.is-live .cost-vs.on .vs-block { transform: none; }
@media (max-width: 900px) {
  .cost-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cost .h-xl { font-size: clamp(36px, 10vw, 60px); }
  .cost .h-xl br { display: none; }
  .cost-count { margin-top: 10px; font-size: clamp(54px, 16vw, 96px); }
  .cost-note { display: none; }
  .cost-vs { margin-top: 18px; gap: 16px; }
  .vs-block { width: 76px; height: 76px; font-size: 28px; }
  .cost-vs p { font-size: 15px; }
  .cost-vs p b { font-size: 20px; }
  .tblock { height: 26px; font-size: 13px; padding: 0 10px; }
  .tb-v { font-size: 14px; }
  .tower { gap: 4px; }
}

/* ---------- 5. tools ---------- */
.tools { padding: clamp(60px, 7vw, 110px) 0 clamp(60px, 7vw, 100px); background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 3px var(--edge), 10px 12px 0 0 rgb(0 0 0 / 0.55);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.tcard:hover { --ty: -6px; box-shadow: 0 0 0 3px var(--gold), 14px 18px 0 0 rgb(0 0 0 / 0.55); }
.tcard-world { grid-column: span 7; }
.tcard-cast { grid-column: span 5; }
.tcard-sprites { grid-column: span 12; flex-direction: row; }
.tcard-sprites .tcard-screen { flex: 0 0 52%; }
.tcard-sprites .tcard-text { align-content: center; padding: 34px clamp(24px, 3vw, 44px); }
.tcard-fx, .tcard-sound { grid-column: span 6; }
.tcard-fx .tcard-screen img, .tcard-sound .tcard-screen img { aspect-ratio: 630 / 420; object-position: 50% 0; }
.tcard-screen { position: relative; background: #0b0b12; overflow: hidden; }
.tcard-chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #23233a; font: 600 13px/1 var(--fd); color: var(--muted); }
.tcard-chrome i { width: 10px; height: 10px; background: var(--coral); }
.tcard-chrome i:nth-child(2) { background: var(--gold); }
.tcard-chrome i:nth-child(3) { background: var(--violet-hi); margin-right: 8px; }
.tcard-screen img { width: 100%; height: auto; aspect-ratio: 630 / 500; object-fit: cover; image-rendering: pixelated; transition: transform 600ms var(--ease); }
.tcard-world .tcard-screen img, .tcard-cast .tcard-screen img { aspect-ratio: 630 / 430; object-position: 50% 30%; }
.tcard:hover .tcard-screen img { transform: scale(1.05); }
.tcard-text { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.tcard-title { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 2.3vw, 34px); }
.tcard-n { justify-self: start; padding: 6px 10px; background: var(--gold); color: var(--ink-dark); font: 600 14px/1 var(--ft); box-shadow: 0 4px 0 0 var(--gold-lo); }
.tcard-more { justify-self: start; margin-top: 8px; color: var(--gold); font-weight: 600; font-size: 15px; text-decoration: none; }
.tcard-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.tcard-lead { color: var(--muted); max-width: 44ch; }
.tcard-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tcard-chips a { display: inline-block; padding: 5px 10px; background: var(--raised); text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: 0 3px 0 0 #000; transition: background 160ms, color 160ms, transform 160ms; }
.tcard-chips a:hover { background: var(--gold); color: var(--ink-dark); transform: translateY(-2px); }
@media (max-width: 1100px) { .tcard-world, .tcard-cast, .tcard-fx, .tcard-sound { grid-column: span 6; } }
@media (max-width: 900px) { .tcard-sprites { flex-direction: column; } .tcard-sprites .tcard-screen { flex: none; } }
@media (max-width: 700px) { .tcard-world, .tcard-cast, .tcard-sprites, .tcard-fx, .tcard-sound { grid-column: span 12; } }

.marquee { margin-top: clamp(60px, 7vw, 100px); display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mrow { overflow: hidden; padding: 4px 0; }
.mrun { display: inline-flex; gap: 14px; white-space: nowrap; }
.mchip { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--surface); box-shadow: 0 0 0 2px var(--line); font: 700 clamp(18px, 1.6vw, 24px)/1 var(--fd); }
.mchip::before { content: ""; width: 10px; height: 10px; background: var(--gold); }
.mrow-b .mchip::before { background: var(--violet-hi); }
.motion .mrow-a .mrun { animation: run 70s linear infinite; }
.motion .mrow-b .mrun { animation: run 62s linear infinite reverse; }
.marquee:hover .mrun { animation-play-state: paused; }
.more-line { margin-top: 30px; padding: 0 var(--gut); text-align: center; font: 700 clamp(20px, 2vw, 28px)/1.2 var(--fd); color: var(--muted); }
.more-line b { color: var(--gold); }

/* ---------- 6. the kit builder ---------- */
.kit { padding: clamp(90px, 11vw, 170px) 0; background: var(--paper); color: var(--ink-dark); }
.kit .h-xl { text-shadow: 0.05em 0.05em 0 #d9d3c2; }
.kit .h-xl .gold { color: var(--violet); text-shadow: 0.05em 0.05em 0 #c8bdf7; }
.kit .lede { color: #4d485e; }
.app { max-width: 1120px; margin: 0 auto; background: var(--night); color: var(--ink); box-shadow: 0 0 0 4px var(--ink-dark), 14px 16px 0 0 var(--ink-dark); }
.app-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #1d1d30; font: 600 15px/1 var(--fd); color: var(--muted); }
.app-bar i { width: 12px; height: 12px; background: var(--coral); }
.app-bar i:nth-child(2) { background: var(--gold); }
.app-bar i:nth-child(3) { background: var(--violet-hi); margin-right: 10px; }
.app-body { padding: clamp(22px, 3.4vw, 44px); }
.ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4em; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.1; }
.ask label { color: var(--muted); }
.ask-input { position: relative; flex: 1 1 8em; min-width: 0; }
.ask input { width: 100%; padding: 0 0 6px; border: 0; border-bottom: 6px solid var(--gold); border-radius: 0; background: transparent; color: var(--gold); font: inherit; letter-spacing: inherit; caret-color: transparent; }
.ask input:focus { outline: none; border-bottom-color: var(--gold-hi); }
.caret { position: absolute; left: var(--cx, 0); top: 0.12em; width: 0.42em; height: 0.84em; background: var(--gold); pointer-events: none; }
.motion .caret { animation: blink 1s steps(2) infinite; }
.ask-try { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ask-try button { padding: 8px 14px; border: 0; background: var(--raised); color: var(--ink); font: 500 15px/1.2 var(--ft); cursor: pointer; box-shadow: 0 3px 0 0 #000; transition: transform 140ms, background 140ms; }
.ask-try button:hover, .ask-try button[aria-pressed="true"] { background: var(--gold); color: var(--ink-dark); transform: translateY(-2px); }
.ask-out { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; margin-top: 30px; min-height: 290px; }
.ask-out h4 { margin: 0 0 12px; font: 700 14px/1 var(--fd); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.res-tools { grid-template-columns: minmax(0, 1fr); }
.res-pack, .res-tool { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--surface); text-decoration: none; box-shadow: 0 0 0 2px var(--line); transition: box-shadow 160ms, transform 160ms; }
.res-pack:hover, .res-tool:hover { box-shadow: 0 0 0 2px var(--gold); transform: translateY(-2px); }
.res-pack img { flex: none; width: 92px; height: 73px; object-fit: cover; image-rendering: pixelated; }
.res-pack div, .res-tool div { display: grid; gap: 3px; min-width: 0; }
.res-pack b, .res-tool b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.res-pack span, .res-tool span { font-size: 13px; color: var(--muted); }
.res-pack em, .res-tool em { font: 600 14px/1 var(--ft); font-style: normal; color: var(--coral); }
.motion .ask-out .pop { animation: pop 520ms var(--bounce) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
.app-foot { display: grid; grid-template-columns: 1fr 1fr; background: #14142a; box-shadow: inset 0 3px 0 0 #23233a; }
.app-foot p { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px clamp(18px, 3vw, 40px); font-size: 15px; color: var(--muted); }
.app-foot p + p { box-shadow: inset 3px 0 0 0 #23233a; }
.app-foot b { font: 600 clamp(26px, 2.6vw, 36px)/1 var(--ft); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
  .ask-out { grid-template-columns: minmax(0, 1fr); }
  .res { grid-template-columns: minmax(0, 1fr); }
  .app-foot { grid-template-columns: minmax(0, 1fr); }
  .app-foot p + p { box-shadow: inset 0 3px 0 0 #23233a; }
}

/* ---------- 7. twelve worlds ---------- */
.worlds { background: var(--night); }
.worlds .pin { position: relative; min-height: 100svh; }
.w-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.world {
  position: relative; flex: 0 0 100vw; height: 100%; background: var(--sky); overflow: hidden;
  margin-left: -56px; clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%, 0 87.5%, 8px 87.5%, 8px 75%, 16px 75%, 16px 62.5%, 24px 62.5%, 24px 50%, 32px 50%, 32px 37.5%, 40px 37.5%, 40px 25%, 48px 25%, 48px 12.5%, 56px 12.5%);
}
.world:first-child { margin-left: 0; clip-path: none; }
.w-back, .w-front { position: absolute; bottom: 0; background-repeat: repeat-x; image-rendering: pixelated; }
.w-back { left: -60vw; right: -60vw; height: calc(180px * var(--ws)); background-image: var(--back); background-size: calc(640px * var(--ws)) 100%; will-change: transform; }
.w-front { left: 0; right: 0; height: calc(var(--fh) * var(--ws) * 1px); background-image: var(--front); background-size: calc(640px * var(--ws)) 100%; }
.w-name { position: absolute; top: calc(var(--bar-h) + 20px); right: var(--gut); padding: 8px 14px; background: rgb(6 8 24 / 0.78); font: 700 22px/1 var(--fd); color: #fff; }
.w-name span { color: var(--gold); font-weight: 500; }
.w-party { position: absolute; z-index: 2; left: 50%; bottom: calc(3px * var(--ws)); display: flex; gap: calc(6px * var(--ws)); transform: translateX(-50%); }
.w-party .sprite { width: calc(32px * var(--ws)); height: calc(32px * var(--ws)); }
.w-party .sprite > img { width: calc(192px * var(--ws)); animation: none !important; }
.w-copy { position: absolute; z-index: 3; left: var(--gut); top: calc(var(--bar-h) + 20px); max-width: min(560px, calc(100vw - 2 * var(--gut))); padding: clamp(18px, 2.2vw, 30px); background: rgb(6 8 24 / 0.82); box-shadow: 0 0 0 3px rgb(255 255 255 / 0.08); }
.w-copy p { margin-top: 14px; color: #e3e1ee; max-width: 46ch; }
.w-count { position: absolute; z-index: 3; right: var(--gut); bottom: calc(40px * var(--ws)); padding: 8px 12px; background: var(--gold); color: var(--ink-dark); font: 600 17px/1 var(--ft); }
/* without the pinned scroll: the worlds as a grid of windows */
html:not(.motion) .worlds .pin { min-height: 0; padding: 120px 0 80px; }
html:not(.motion) .w-track { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 0 var(--gut); --ws: 2; }
html:not(.motion) .world { flex: none; margin: 0; height: 300px; clip-path: none; }
html:not(.motion) .w-back { left: 0; right: 0; }
html:not(.motion) .w-name { top: 12px; right: 12px; font-size: 17px; }
html:not(.motion) .w-party, html:not(.motion) .w-count { display: none; }
html:not(.motion) .w-copy { position: static; margin: 0 var(--gut) 32px; }
@media (max-width: 700px) { .w-name { top: auto; bottom: calc(52px * var(--ws)); right: 16px; font-size: 18px; } .w-count { display: none; } }

/* ---------- 8. the library wall ---------- */
.library { position: relative; isolation: isolate; min-height: 110svh; display: flex; align-items: center; padding: 120px 0; background: var(--violet-lo); overflow: clip; }
.wall { position: absolute; inset: 0; z-index: -2; perspective: 1300px; overflow: clip; }
.wall-tilt { position: absolute; top: -18%; left: -30%; right: -30%; display: grid; gap: 18px; transform: rotateX(26deg) rotateZ(-11deg) scale(1.12); transform-origin: 50% 40%; }
.wrow { overflow: visible; white-space: nowrap; }
.wrun { display: inline-flex; gap: 18px; }
.wcover { flex: none; width: clamp(200px, 21vw, 320px); box-shadow: 0 0 0 4px var(--edge); }
.wcover img { width: 100%; height: auto; aspect-ratio: 630 / 500; image-rendering: pixelated; }
.motion .wrow-0 .wrun { animation: run 90s linear infinite; }
.motion .wrow-1 .wrun { animation: run 76s linear infinite reverse; }
.motion .wrow-2 .wrun { animation: run 84s linear infinite; }
.motion .wrow-3 .wrun { animation: run 70s linear infinite reverse; }
.library::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(14 10 40 / 0.45); pointer-events: none; }
.lib-in { position: relative; display: grid; justify-items: start; gap: 28px; }
.lib-h { display: flex; align-items: flex-end; gap: 0.12em 0.3em; flex-wrap: wrap; padding: clamp(20px, 2.5vw, 36px) clamp(22px, 3vw, 44px); background: var(--night); box-shadow: 0 0 0 4px var(--gold), 16px 18px 0 0 var(--edge); font-size: clamp(34px, 4.4vw, 68px); }
.lib-h .big { font-size: clamp(110px, 19vw, 300px); line-height: 0.8; color: var(--gold); text-shadow: 0.04em 0.04em 0 var(--violet); font-variant-numeric: tabular-nums; }
.lib-word { padding-bottom: 0.1em; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.cats li { padding: 8px 14px; background: var(--night); box-shadow: 0 0 0 2px var(--violet-hi); font-weight: 500; font-size: 15px; }
@media (max-width: 700px) { .wrow-2, .wrow-3 { display: none; } .wall-tilt { top: 2%; } }

/* ---------- 9. why ---------- */
.why { padding: clamp(100px, 12vw, 180px) 0; background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.wcard {
  --c: var(--surface); --fg: var(--ink); --m: var(--muted);
  display: grid; align-content: start; gap: 10px; padding: 28px 26px 30px; background: var(--c); color: var(--fg);
  box-shadow: 0 0 0 3px var(--edge), 10px 12px 0 0 rgb(0 0 0 / 0.55);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 260ms var(--ease), box-shadow 260ms;
}
.wcard:hover { --ty: -6px; }
.wcard p:not(.wc-big) { color: var(--m); }
.wcard-gold { --c: var(--gold); --fg: var(--ink-dark); --m: #4a3c0a; }
.wcard-violet { --c: var(--violet); --fg: #fff; --m: #e1dbff; }
.wc-big { font: 600 clamp(52px, 5vw, 80px)/0.9 var(--ft); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wcard h3 { font-size: 24px; line-height: 1.05; }
.perks { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: clamp(28px, 3vw, 40px); padding: 22px 28px; background: var(--surface); box-shadow: 0 0 0 3px var(--line); }
.perks-h { font: 700 20px/1 var(--fd); color: var(--gold); }
.perks ul { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.perks li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.pk-i { color: var(--gold); font-size: 14px; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 10. elsewhere ---------- */
.else { padding: clamp(90px, 11vw, 160px) 0; background: var(--surface); }
.else .h-l { font-size: clamp(34px, 3.5vw, 56px); }
.else-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.else-sum { margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.else-sum b { font-weight: 600; font-size: 1.2em; }
.else-src { margin-top: 18px; font-size: 14px; color: var(--muted); }
.else-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.else-table thead th { padding: 0 18px 4px; text-align: left; font: 700 13px/1 var(--fd); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.else-table tbody tr, .else-table tfoot tr { background: var(--bg); }
.else-table th[scope="row"], .else-table td { padding: 16px 18px; text-align: left; vertical-align: middle; }
.else-table th[scope="row"] { font-weight: 600; font-size: 17px; }
.else-table th[scope="row"] a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.else-table small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
.else-table .num { font: 600 23px/1 var(--ft); color: var(--coral); white-space: nowrap; font-variant-numeric: tabular-nums; }
.else-table .num small { display: inline; font: 400 13px var(--ft); color: var(--muted); }
.else-table .us { color: var(--muted); font-size: 15px; }
.else-table tfoot tr { background: var(--gold); color: var(--ink-dark); }
.else-table tfoot th[scope="row"], .else-table tfoot td { padding: 20px 18px; }
.else-table tfoot small, .else-table tfoot .num small { color: #4a3c0a; }
.else-table tfoot .num { color: var(--ink-dark); font-size: 30px; }
.else-table tfoot .us { color: var(--ink-dark); font: 700 20px/1 var(--fd); }
@media (max-width: 900px) {
  .else-grid { grid-template-columns: minmax(0, 1fr); }
  .else-table thead { display: none; }
  .else-table, .else-table tbody, .else-table tfoot, .else-table tr { display: block; }
  .else-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 8px; }
  .else-table th[scope="row"], .else-table td { padding: 12px 14px; }
  .else-table .us { grid-column: 1 / -1; padding-top: 0; }
  .else-table .us::before { content: "In Gridwright: "; color: var(--gold); }
  .else-table tfoot .us::before { color: var(--ink-dark); }
}

/* ---------- 11. price ---------- */
.price { position: relative; padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 140px); background: var(--gold); color: var(--ink-dark); }
.price::before { content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 40V30H10V20H20V10H30V0H50V10H60V20H70V30H80V40Z' fill='%23ffd95a'/%3E%3C/svg%3E") repeat-x 0 100% / 80px 40px; }
.price-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.price-h { font-size: clamp(44px, 5.6vw, 92px); }
.price-tag { display: inline-flex; align-items: flex-start; font-size: clamp(130px, 17vw, 270px); line-height: 0.82; color: var(--ink-dark); text-shadow: 0.04em 0.04em 0 var(--violet), 0.08em 0.08em 0 var(--violet-lo); }
.pt-cur { font-size: 0.42em; margin: 0.08em 0.03em 0 0; }
.pt-per { white-space: nowrap; }
.price-day { margin-top: 26px; font-size: 20px; font-weight: 500; }
.price-right { padding: clamp(24px, 3vw, 40px); background: var(--ink-dark); color: var(--ink); box-shadow: 14px 16px 0 0 var(--gold-lo); }
.incl { display: grid; gap: 12px; margin-bottom: 28px; }
.incl li { position: relative; padding-left: 26px; font-size: 17px; }
.incl li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; background: var(--gold); }
.price-small { margin-top: 18px; font-size: 14px; color: var(--muted); }
.trial-line { margin-top: 4px; font-size: 16px; color: var(--muted); }
.trial-line b { color: var(--gold); }
.price-right .tick { color: var(--ink); }
.price-right .tick a { color: var(--gold); }
.price-right .start-form .btn { margin-top: 18px; }
.price .btn-ink { --b: var(--gold); --lo: var(--gold-lo); --fg: var(--ink-dark); }
@media (max-width: 900px) { .price-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 12. faq ---------- */
.faq { padding: clamp(90px, 11vw, 160px) 0; background: var(--bg); }
.faq-in { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.qas { display: grid; gap: 10px; }
.qas details { background: var(--surface); box-shadow: 0 0 0 2px var(--line); }
.qas details[open] { box-shadow: 0 0 0 2px var(--gold), 8px 10px 0 0 rgb(0 0 0 / 0.5); }
.qas summary { position: relative; display: block; padding: 20px 64px 20px 24px; cursor: pointer; font: 700 clamp(19px, 1.6vw, 23px)/1.2 var(--fd); list-style: none; }
.qas summary::-webkit-details-marker { display: none; }
.qas summary::before, .qas summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 18px; height: 4px; margin-top: -2px; background: var(--gold); transition: transform 260ms var(--ease); }
.qas summary::after { transform: rotate(90deg); }
.qas details[open] summary::after { transform: rotate(0deg); }
.qas details p { padding: 0 24px 22px; color: var(--muted); max-width: 46em; }
.qas details p a { color: var(--gold); }
.qas details::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease), content-visibility 320ms allow-discrete; }
.qas details[open]::details-content { height: auto; }
@media (max-width: 900px) { .faq-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 13. close ---------- */
.close { position: relative; isolation: isolate; min-height: 92svh; display: flex; align-items: center; padding: 120px 0 calc(80px + 52px * var(--s)); background: #241f52; overflow: clip; text-align: center; }
.close-art { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ca-back, .ca-front { position: absolute; left: 0; bottom: 0; background-repeat: repeat-x; image-rendering: pixelated; }
.ca-back { right: 0; height: calc(180px * var(--s)); background-image: url(img/bands/castle-sunset-back.png); background-size: calc(640px * var(--s)) 100%; }
.ca-front { width: calc(100% + 640px * var(--s)); height: calc(52px * var(--s)); background-image: url(img/bands/castle-sunset-front.png); background-size: calc(640px * var(--s)) 100%; }
.motion .ca-front { animation: hs-scroll 60s steps(var(--steps)) infinite; }
.ca-party { position: absolute; left: 50%; bottom: calc(3px * var(--s)); display: flex; gap: calc(4px * var(--s)); transform: translateX(-50%); }
.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(14 10 40 / 0.3); pointer-events: none; }
.close-in { display: grid; justify-items: center; gap: 26px; }
.close-h { font-size: clamp(56px, 9vw, 150px); color: #fff; text-shadow: 0.05em 0.05em 0 var(--violet-lo); }
.close-h .gold { text-shadow: 0.05em 0.05em 0 var(--violet), 0.1em 0.1em 0 var(--violet-lo); }
.close-in p { font-size: 20px; color: #f0eef8; text-shadow: 0 2px 0 rgb(6 8 24 / 0.8); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 70px 0 0; background: var(--night); overflow: clip; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 36px 56px; }
.foot-brand p { margin-top: 14px; max-width: 30ch; color: var(--muted); font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 28px 64px; }
.foot-cols h4 { margin-bottom: 10px; font: 700 16px/1.2 var(--fd); color: #fff; }
.foot-cols a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--gold); }
@media (max-width: 640px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-links a, .foot-legal a { text-decoration: none; color: var(--muted); }
.foot-links a:hover, .foot-legal a:hover { color: var(--gold); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--muted); box-shadow: inset 0 2px 0 0 var(--line); }
.foot-legal a + a { margin-left: 16px; }
.foot-name { font: 700 clamp(70px, 18vw, 310px)/0.78 var(--fd); color: var(--surface); text-align: center; letter-spacing: -0.02em; white-space: nowrap; transform: translateY(14%); user-select: none; }

/* ---------- entrances (transform only: nothing waits hidden) ---------- */
.motion [data-rise] { transform: translateY(46px); transition: transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-rise].in { transform: none; }
.motion .tcard[data-rise] { transform: perspective(1000px) translateY(80px) rotateX(10deg); transition: transform 900ms var(--ease), box-shadow 260ms var(--ease); }
.motion .tcard[data-rise].in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.w-hint { margin-top: 10px; font-size: 14px; color: var(--gold); }
.more-cta { margin-top: 22px; text-align: center; }

/* ---------- from page to page: a pixel wipe, and the picture you clicked travels (browsers with page transitions) ---------- */
@view-transition { navigation: auto; }
.bar { view-transition-name: site-bar; }
::view-transition-old(root) { animation: 200ms steps(5) both vt-out; }
::view-transition-new(root) { animation: 460ms steps(12) both vt-in; }
@keyframes vt-out { to { opacity: 0.2; } }
@keyframes vt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
::view-transition-group(hero-pic) { animation-duration: 440ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(hero-pic), ::view-transition-new(hero-pic) { height: 100%; object-fit: cover; image-rendering: pixelated; }
.vt-hero { view-transition-name: hero-pic; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* display-size type keeps the pixel digits */
.h-xl, .h-l, .hero-h, .stamp b, .tag-gold b, .lib-h .big, .price-h, .price-tag, .close-h, .foot-name, .vs-block { font-family: var(--fdd); }
@media (min-width: 601px) { .page h1, .m-h h1 { font-family: var(--fdd); } }
/* on a phone the hero's and the section headings' numbers are under display size: they take the text face's digits */
@media (max-width: 600px) { .hl-old, .h-l { font-family: var(--fd); } }
/* tilted cards and the closed phone menu reach a few pixels past the edge between phone and desktop widths: the page itself never scrolls sideways */
html { overflow-x: clip; }
/* the struck price keeps the text face's digits at every size: a line through pixel digits makes them unreadable */
.hl-old { font-family: var(--fd); }
.hl-strike::after { top: 58%; height: 0.085em; }

/* the hero says what this is, then names the developer's problems one after another and strikes each one out */
.hero-h .hl-what { display: flex; }
.hero-h .live { font-family: var(--ft); font-weight: 500; letter-spacing: 0; line-height: 1.3; text-shadow: none; }
.hl-alts { display: inline-grid; }
.hl-alt { grid-area: 1 / 1; justify-self: start; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(0.32em); }
.hl-alt.on { opacity: 1; visibility: visible; transform: none; }
.motion .hl-alt { transition: opacity 120ms steps(2), transform 300ms var(--bounce), visibility 0s linear 120ms; }
.motion .hl-alt.on { transition: opacity 120ms steps(2) 140ms, transform 300ms var(--bounce) 140ms, visibility 0s linear 140ms; }
.motion .hl-alt:not(.on) .hl-strike::after { animation: none; }
/* a phrase that comes round again is read first, then struck */
.motion .hl-alt.again.on .hl-strike::after { animation-delay: 1000ms; }
@media (max-width: 900px) { .hero-h .hl-what { justify-content: center; } .hl-alt { justify-self: center; } }
/* the library's one line: the thing you need next is already here */
.lib-say { max-width: 27em; padding: 14px 18px; background: var(--night); box-shadow: 0 0 0 2px var(--line); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; }
.lib-say b { color: var(--gold); }
