/* pocketvale.org landing page: a calm, modern frame around the game's own pixel art.
   The top is the four-season vale (js/vale.js); below it, clean sections on warm paper. */
:root {
  --ink: #1a1c2c; --ink2: #50546c; --ink3: #7d8197; --paper: #fbf8f2; --card: #ffffff; --sand: #f2ece0; --line: rgba(26, 28, 44, .09);
  --green: #2e9b56; --gold: #f6c453; --cream: #fff6dc;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img.px, canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 860px; }

/* ---------- top bar ---------- */
.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--pad); transition: background-color .35s, box-shadow .35s, color .35s; color: var(--ink); }
.topbar.solid { background: rgba(251, 248, 242, .82); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.topbar.on-night { color: var(--cream); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(26, 28, 44, .18); }
.brand span { font: 700 19px/1 var(--sans); letter-spacing: -.02em; }
.topbar nav { display: flex; align-items: center; gap: 2px; }
.topbar nav a { font: 600 15px/1 var(--sans); text-decoration: none; padding: 10px 12px; border-radius: 10px; transition: background-color .2s; }
.topbar nav a:hover { background: rgba(255, 255, 255, .45); }
.topbar.on-night nav a:hover { background: rgba(255, 255, 255, .1); }
.topbar nav a.buy { white-space: nowrap; margin-left: 8px; background: var(--ink); color: #fff; padding: 10px 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .22); }
.topbar nav a.buy:hover { background: #2c2f48; }
.topbar.on-night nav a.buy { background: var(--cream); color: var(--ink); }

/* ---------- the seasons: a sticky stage, chapters scrolling over it ---------- */
.seasons { position: relative; --accent: #e0699a; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(var(--sky-top, #8fd2f3), var(--sky-bot, #e8f7ef)); }
.stage canvas { position: absolute; display: block; }
.stage .back, .stage .front { pointer-events: none; }
.stage .back { z-index: 0; }
.stage .isle { z-index: 1; opacity: 0; transition: opacity 1s ease; will-change: transform; }
.stage.ready .isle { opacity: 1; }
.stage .front { z-index: 2; }
.pops { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pop { position: absolute; transform: translateX(-50%); font: 600 20px/1 var(--pixel); color: #fee761; text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); animation: rise 1s ease-out forwards; }
@keyframes rise { to { transform: translate(-50%, -38px); opacity: 0; } }
.fly { position: absolute; width: 24px; height: 24px; transition: transform .65s cubic-bezier(.5, -.4, .6, 1), opacity .65s; }

.hud { position: absolute; z-index: 4; left: var(--pad); bottom: 22px; display: flex; align-items: center; gap: 10px; }
.coins { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; font: 600 16px/1 var(--pixel); color: var(--ink);
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 6px 18px -8px rgba(26, 28, 44, .35); }
.coins img { width: 20px; height: 20px; }
.hint { font: 500 14px/1.2 var(--sans); color: var(--ink2); transition: opacity .5s; }
.hint.gone { opacity: 0; }
.is-night .coins { background: rgba(20, 24, 50, .55); color: var(--cream); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }

.dial { position: absolute; z-index: 4; right: var(--pad); bottom: 20px; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .45) inset, 0 6px 18px -8px rgba(26, 28, 44, .35); }
.dial button { display: flex; align-items: center; gap: 0; border: 0; background: transparent; color: var(--ink); font: 600 13px/1 var(--sans); padding: 8px 9px; border-radius: 999px; cursor: pointer; transition: background-color .3s, gap .3s, padding .3s; }
.dial button i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.dial button span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s ease; }
.dial button[aria-current="true"] { background: #fff; gap: 8px; padding: 8px 13px 8px 11px; }
.dial button[aria-current="true"] span { max-width: 80px; }
.dial button:hover:not([aria-current="true"]) { background: rgba(255, 255, 255, .5); }
.is-night .dial { background: rgba(20, 24, 50, .5); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.is-night .dial button { color: var(--cream); }
.is-night .dial button[aria-current="true"] { background: rgba(255, 255, 255, .14); }
.is-night .dial button i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }

.cloudbank { position: relative; z-index: 6; height: 112px; margin-top: 0; pointer-events: none; background-repeat: repeat-x; background-position: bottom left; image-rendering: pixelated; }
.chapters { position: relative; z-index: 3; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.ch { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--pad) 90px clamp(24px, 6.5vw, 110px); }
.copy { pointer-events: auto; max-width: min(520px, 37vw); will-change: opacity, transform; }
.logo { display: block; width: 320px; height: auto; margin: 0 0 20px; filter: drop-shadow(0 4px 0 rgba(26, 28, 44, .18)); }
.ch h1, .ch h2 { font-weight: 700; font-size: clamp(38px, 4.3vw, 64px); line-height: 1.01; letter-spacing: -.035em; margin-bottom: 18px; }
.ch h1 { font-size: clamp(34px, 3.6vw, 54px); }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink2); margin-bottom: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; font: 500 15px/1.2 var(--sans); color: var(--ink2); background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.chips b { color: var(--ink); font-weight: 700; }
.scroll-cue { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; font: 500 14px/1 var(--sans); color: var(--ink2); }
.mouse { width: 18px; height: 28px; border-radius: 10px; box-shadow: inset 0 0 0 2px currentColor; position: relative; opacity: .8; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
.ch.night { color: var(--cream); }
.ch.night .lead { color: rgba(255, 246, 220, .78); }

/* store buttons (made by js/site.js) */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 13px; border: 0; border-radius: 16px; text-decoration: none; color: var(--ink);
  font: 700 18px/1.05 var(--sans); letter-spacing: -.01em; background: #fff; box-shadow: 0 0 0 1px rgba(26, 28, 44, .08), 0 3px 0 rgba(26, 28, 44, .12), 0 14px 30px -14px rgba(26, 28, 44, .45);
  transition: transform .18s cubic-bezier(.3, .7, .4, 1.4), box-shadow .18s; }
.btn small { display: block; font: 500 12.5px/1.2 var(--sans); letter-spacing: 0; opacity: .62; margin-bottom: 2px; }
.btn .logo-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.btn .logo-ic.itch { width: 34px; height: 34px; border-radius: 0; margin: -2px -2px -2px -3px; }
a.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(26, 28, 44, .08), 0 5px 0 rgba(26, 28, 44, .12), 0 20px 36px -14px rgba(26, 28, 44, .5); }
a.btn:active { transform: translateY(1px); }
.btn.go { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000, 0 16px 34px -12px rgba(26, 28, 44, .6); }
.btn.go:hover { box-shadow: 0 5px 0 #000, 0 22px 40px -12px rgba(26, 28, 44, .65); }
.btn.go .logo-ic.itch { filter: invert(1); }
.btn.soon { cursor: default; background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset; }
.ch.night .btn.go, .last .btn.go { background: var(--cream); color: var(--ink); box-shadow: 0 3px 0 #b88c3e, 0 0 40px -6px rgba(246, 196, 83, .55); }
.ch.night .btn.go .logo-ic.itch, .last .btn.go .logo-ic.itch { filter: none; }
.ch.night .btn.soon, .last .btn.soon { background: rgba(255, 255, 255, .1); color: var(--cream); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.store-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s; }
.store-badge img { display: block; height: 56px; width: auto; }
.store-badge:hover { transform: translateY(-2px); }
.cta-note { margin: 14px 0 0; font-size: 14px; color: var(--ink3); }
.ch.night .cta-note, .last .cta-note { color: rgba(255, 246, 220, .6); }

/* ---------- sections below ---------- */
.sec { padding: clamp(84px, 11vw, 150px) 0; }
.kicker { margin: 0 0 14px; font: 500 15px/1.3 var(--pixel); color: var(--green); letter-spacing: .01em; }
.sec h2 { font-weight: 700; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.04em; max-width: 15ch; margin-bottom: 26px; }
.sec .note { max-width: 70ch; color: var(--ink2); margin-top: 36px; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* lives in the corner */
.corner { padding-top: clamp(96px, 12vw, 170px); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split .text > p { color: var(--ink2); font-size: 18px; max-width: 46ch; }
.desk { position: relative; aspect-ratio: 16 / 10.5; border-radius: 22px; overflow: hidden; background: linear-gradient(155deg, #bfe2f4 0%, #d8eedb 52%, #f5e2b2 100%);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(26, 28, 44, .45); }
.menubar { position: absolute; inset: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 16px; padding: 0 14px; font: 500 12px/1 -apple-system, system-ui, sans-serif; color: rgba(26, 28, 44, .8);
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.menubar b { font-weight: 700; } .menubar em { margin-left: auto; font-style: normal; }
.win { position: absolute; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(26, 28, 44, .07), 0 18px 40px -18px rgba(26, 28, 44, .4); }
.win.doc { padding: 26px 18px; display: flex; flex-direction: column; gap: 10px; }
.win.doc i { display: block; height: 7px; border-radius: 4px; background: #eceef3; }
.win.doc i.m { width: 72%; } .win.doc i.s { width: 44%; }
.win.game { right: 4%; bottom: 6%; width: 47%; overflow: hidden; background: #1e1e1e; animation: float 6s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 28px 50px -18px rgba(26, 28, 44, .6); }
.win.game .bar { height: 20px; display: flex; align-items: center; gap: 6px; padding: 0 9px; background: #2b2b2b; }
.win.game .bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; } .win.game .bar i:nth-child(2) { background: #febc2e; } .win.game .bar i:nth-child(3) { background: #28c840; }
.win.game img { display: block; width: 100%; height: auto; }
@keyframes float { 50% { transform: translateY(-6px); } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
.ticks li img { flex: none; }
.ticks li::before { display: none; }
.pxbox { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; background: var(--sand); }

/* hours */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line); }
.stats > div { padding: 28px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 700 clamp(54px, 7vw, 96px)/1 var(--sans); letter-spacing: -.06em; }
.stats b small { font-size: .42em; letter-spacing: -.02em; margin-left: 3px; color: var(--ink3); }
.stats span { display: block; margin-top: 12px; color: var(--ink2); font-size: 16px; line-height: 1.4; max-width: 22ch; }
.lvl { margin-top: 56px; }
.lvl .track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #f6d7e3, #d7efdc 33%, #f8dccb 66%, #dbe6f6); }
.lvl .track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #e0699a, #2e9b56); }
.lvl .track em { position: absolute; top: -34px; transform: translateX(-50%); font: 500 13px/1 var(--pixel); font-style: normal; background: var(--ink); color: #fff; padding: 6px 9px; border-radius: 8px; white-space: nowrap; }
.lvl .track em::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.lvl .ends { display: flex; justify-content: space-between; margin-top: 10px; font: 500 13px var(--pixel); color: var(--ink3); }

/* features */
.features { background: var(--sand); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.grid article { background: var(--card); border-radius: 22px; padding: 22px 22px 24px; box-shadow: 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.grid article:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -24px rgba(26, 28, 44, .35); }
.grid .art { height: 92px; display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.grid h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.grid p { font-size: 15.5px; line-height: 1.5; color: var(--ink2); margin: 0; }

/* book counts */
.counts { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.counts li { display: grid; grid-template-columns: 48px auto 1fr; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.counts li img { justify-self: center; max-height: 44px; width: auto; }
.counts b { font: 700 26px/1 var(--sans); letter-spacing: -.04em; }
.counts span { font-size: 14.5px; line-height: 1.3; color: var(--ink2); }

/* screenshots */
.screens { padding-bottom: clamp(70px, 9vw, 120px); }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(760px, 84vw); gap: 20px; margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--pad), calc((100vw - 1160px) / 2 + var(--pad))) 10px; scroll-padding: 0 max(var(--pad), calc((100vw - 1160px) / 2 + var(--pad))); }
.reel::-webkit-scrollbar { display: none; }
.screens .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.screens .head h2 { margin-bottom: 0; }
.reel-nav { display: flex; gap: 8px; padding-bottom: 6px; }
.reel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(26, 28, 44, .4); display: grid; place-items: center; transition: transform .15s, opacity .2s; }
.reel-nav button:hover { transform: translateY(-2px); }
.reel-nav button:disabled { opacity: .35; cursor: default; transform: none; }
.reel-nav svg { width: 18px; height: 18px; }
.shot { scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit; }
.shot picture { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(26, 28, 44, .5); }
.shot img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.02); }
.shot span { display: block; margin-top: 14px; font-weight: 600; font-size: 16px; color: var(--ink2); }

/* made for the Mac */
.mac { background: var(--sand); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; margin-top: 50px; }
.facts > div { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: start; }
.facts img { grid-row: span 2; justify-self: center; align-self: center; max-height: 48px; width: auto; }
.facts b { font-size: 18px; letter-spacing: -.02em; }
.facts span { color: var(--ink2); font-size: 15.5px; line-height: 1.5; }

/* questions */
.qa { margin-top: 36px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%231a1c2c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .3s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--ink2); max-width: 64ch; margin: -6px 0 24px; }

/* the last call: by the fire */
.last { padding-top: 0; }
.fire { position: relative; border-radius: 30px; overflow: hidden; min-height: min(620px, 80vh); display: flex; align-items: flex-end; color: var(--cream); background: #141a33; }
.fire > picture, .fire > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.last { padding-bottom: clamp(48px, 6vw, 80px); }
.fire::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 22, 46, .1) 30%, rgba(16, 22, 46, .88)); }
.fire-copy { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); max-width: 640px; }
.fire h2 { color: #fff; margin-bottom: 12px; }
.fire p { color: rgba(255, 246, 220, .8); font-size: 18px; }

/* footer */
.foot { padding: 40px 0 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 32px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot .brand span { font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a, .copy-r { font-size: 14.5px; color: var(--ink2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* screenshot viewer */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1500px); overflow: visible; }
dialog.lb::backdrop { background: rgba(14, 16, 30, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lb img { display: block; width: 100%; height: auto; border-radius: 14px; }
dialog.lb p { color: #fff; font: 600 17px var(--sans); text-align: center; margin: 14px 0 0; }
dialog.lb .close { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 999px; padding: 9px 14px; font: 600 14px var(--sans); background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 959px) {
  .ch { align-items: flex-start; padding: 78px 16px 0; }
  .copy { max-width: 560px; padding: 20px 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 20px 40px -24px rgba(26, 28, 44, .4); }
  .copy.hero-copy { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 4px 4px 0; }
  .ch.night .copy { background: rgba(18, 24, 50, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
  .ch h1 { font-size: clamp(28px, 7.4vw, 40px); margin-bottom: 14px; }
  .ch h2 { font-size: clamp(30px, 8vw, 44px); margin-bottom: 10px; }
  .lead { font-size: 16px; margin-bottom: 16px; }
  .hero-copy .lead, .scroll-cue { display: none; }
  .logo { width: 200px; margin-bottom: 14px; }
  .btn { font-size: 16px; padding: 9px 15px 9px 11px; border-radius: 14px; }
  .btn .logo-ic { width: 26px; height: 26px; } .btn .logo-ic.itch { width: 28px; height: 28px; }
  .btn small { font-size: 11.5px; }
  .cta-row { gap: 8px; }
  .cta-note { font-size: 12.5px; margin-top: 10px; }
  .chips li { font-size: 13.5px; padding: 6px 11px; }
  .hud { bottom: 14px; }
  .hint { display: none; }
  .dial { bottom: 12px; right: 12px; }
  .dial button { padding: 8px 7px; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div { padding-bottom: 28px; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) { .hide-s { display: none; } }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .grid .art { height: 76px; }
  .counts { grid-template-columns: 1fr 1fr; }
  .counts li { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .counts li img { justify-self: start; }
  .qa summary { font-size: 17px; }
  .fire { border-radius: 22px; min-height: 520px; }
  .brand span { font-size: 17px; }
}
@media (max-width: 420px) { .hide-xs { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .win.game, .mouse::after { animation: none; }
}

/* ---------- inner pages (support, privacy, press, 404): a sky header with a little floating island ---------- */
.page-top { position: relative; overflow: hidden; background: linear-gradient(#8fd2f3, #e8f7ef 92%); padding-top: 104px; }
.page-top.tall { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.sky-clouds { position: absolute; inset: 0; pointer-events: none; }
.sky-clouds img { position: absolute; image-rendering: pixelated; animation: drift linear infinite; will-change: transform; }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(120vw); } }
.page-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 0; }
.page-head h1 { font-weight: 700; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; margin-bottom: 16px; }
.page-head .lead { margin: 0; max-width: 40ch; }
.page-top .cloudbank { margin-top: 0; }
.islet { flex: none; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(26, 28, 44, .12)); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.topbar nav a[aria-current="page"] { background: rgba(26, 28, 44, .07); }
.doc { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px); }
.doc h2 { font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 56px 0 14px; }
.doc h2:first-child { margin-top: 8px; }
.doc h3 { font-weight: 650; font-size: 19px; letter-spacing: -.015em; margin: 30px 0 6px; }
.doc p { color: var(--ink2); }
.doc a { color: var(--ink); text-decoration-color: rgba(46, 155, 86, .55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--green); }
.doc b { color: var(--ink); font-weight: 650; }
.doc .meta { font: 500 14px/1.4 var(--pixel); color: var(--ink3); margin-bottom: 18px; }
.callout { background: var(--card); border-radius: 20px; padding: 22px 24px 6px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(26, 28, 44, .35); margin: 0 0 12px; }
.callout p { color: var(--ink); }
.factlist { display: grid; grid-template-columns: 170px 1fr; margin: 0; border-top: 1px solid var(--line); }
.factlist dt, .factlist dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.factlist dt { font: 500 14.5px/1.5 var(--pixel); color: var(--ink3); padding-top: 15px; }
.factlist dd { font-weight: 500; }
.copybox { position: relative; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
pre.blurb { margin: 0; white-space: pre-wrap; font: 400 17px/1.6 var(--sans); color: var(--ink); padding: 22px 24px 64px; }
.copybtn { position: absolute; right: 14px; bottom: 14px; border: 0; border-radius: 999px; padding: 9px 16px; font: 600 14px var(--sans); background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 3px 0 #000; transition: transform .15s; }
.copybtn:hover { transform: translateY(-1px); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.dl { display: block; text-decoration: none; }
.doc a.dl { text-decoration: none; }
.dl img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--sand); box-shadow: 0 0 0 1px var(--line); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.dl:hover img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -26px rgba(26, 28, 44, .45); }
.dl span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; font-weight: 600; color: var(--ink); }
.dl small { font: 500 13px var(--pixel); color: var(--ink3); text-align: right; }
.lost .page-head { flex-direction: column-reverse; text-align: center; justify-content: center; }
.lost .page-head .lead { margin: 0 auto 26px; }
.lost .page-head .btn { margin: 0 auto; }
@media (max-width: 760px) {
  .page-top { padding-top: 92px; }
  .page-head { flex-direction: column-reverse; align-items: flex-start; gap: 18px; padding-bottom: 20px; }
  .islet { align-self: center; }
  .grid2 { grid-template-columns: 1fr; }
  .factlist { grid-template-columns: 1fr; }
  .factlist dt { border-bottom: 0; padding-bottom: 0; }
  .factlist dd { padding-top: 2px; }
  .callout { padding: 18px 18px 4px; }
  }
@media (prefers-reduced-motion: reduce) { .islet, .sky-clouds img { animation: none; } }

/* in your pocket, too: three iPhones */
.pocket { padding-top: 0; }
.split.rev { grid-template-columns: 1fr 1.15fr; }
.split.rev .text > p { color: var(--ink2); font-size: 18px; max-width: 46ch; }
.pocket .cta-row { margin-top: 26px; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; height: clamp(420px, 44vw, 560px); }
.phone { position: relative; width: clamp(150px, 15vw, 200px); aspect-ratio: 480 / 1043; border-radius: 30px; padding: 7px; background: #1a1c2c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 40px 60px -30px rgba(26, 28, 44, .55); transform: translateY(18px) rotate(-5deg); margin: 0 -22px; }
.phone:last-child { transform: translateY(18px) rotate(5deg); }
.phone.mid { z-index: 1; width: clamp(180px, 18vw, 236px); transform: none; }
.phone picture, .phone img { display: block; width: 100%; height: 100%; border-radius: 24px; object-fit: cover; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 13px; left: 50%; width: 30%; height: 12px; margin-left: -15%; border-radius: 99px; background: #1a1c2c; }
.ch.night .btn.light, .last .btn.light { background: rgba(255, 255, 255, .1); color: var(--cream); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.ch.night .btn.light .logo-ic.itch, .last .btn.light .logo-ic.itch { filter: invert(1); }
@media (max-width: 959px) {
  .split.rev { grid-template-columns: 1fr; }
  .phones { height: auto; padding: 24px 0 10px; }
  .phone { width: 32%; margin: 0 -4%; border-radius: 22px; padding: 5px; }
  .phone.mid { width: 37%; }
  .phone picture, .phone img { border-radius: 18px; }
  .phone::before { top: 9px; height: 8px; }
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.grid3 .dl img { aspect-ratio: 480 / 1043; border-radius: 20px; }
@media (max-width: 600px) { .grid3 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
