/* Endless Hunch: its own look, the game's. Black by default (light when the visitor picks
   it), Helvetica Neue at its lightest, soft white and grey type, and the season's colour as
   the one accent (set on <html> as --season by the page's script, from the date). Mobile
   first; one unit = 8px. No web fonts, nothing loaded from anywhere else. */

/* The game's Lore title face, from the visitor's own system when it has it (Apple devices do);
   nothing is downloaded. Others get the condensed bold fallbacks in --lore. */
@font-face { font-family: "HunchLore"; font-weight: 900; src: local("HelveticaNeue-CondensedBlack"), local("Helvetica Neue Condensed Black"), local("HelveticaNeue-CondensedBold"), local("Helvetica Neue Condensed Bold"); }
:root {
  --bg: #000;
  --ink: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .58);
  --faint: rgba(255, 255, 255, .32);
  --line: rgba(255, 255, 255, .12);
  --surface: rgba(255, 255, 255, .04);
  --season: #9CCFF2;
  --calm: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --lore: "HunchLore", "Helvetica Neue", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  --max: 1080px;
  --text: 680px;
  color-scheme: dark;
}
:root[data-season="winter"]:not([data-theme="light"]) { --bg: #081421; }
:root[data-theme="light"] {
  --bg: #F4F2EE;
  --ink: rgba(0, 0, 0, .86);
  --muted: rgba(0, 0, 0, .56);
  --faint: rgba(0, 0, 0, .3);
  --line: rgba(0, 0, 0, .12);
  --surface: rgba(0, 0, 0, .035);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--calm); -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--season); }
:focus-visible { outline: 2px solid var(--season); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.doc figure { margin: 14px 0 22px; }
.doc figure img { display: block; width: auto; max-width: min(100%, 420px); height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.doc figcaption { margin-top: 8px; font-size: .85em; opacity: .7; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }
.muted { color: var(--muted); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── header ─────────────────────────────────────────────── */
.hh { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hh .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.hh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--season); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--season) 60%, transparent); animation: breathe 7s ease-in-out infinite; flex: none; }
.hh-nav { display: none; gap: 24px; font-size: 15px; font-weight: 500; }
.hh-nav a { text-decoration: none; color: var(--muted); }
.hh-nav a:hover, .hh-nav a[aria-current="page"] { color: var(--ink); }
.hh-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.menu { display: none; border-bottom: 1px solid var(--line); }
.menu.open { display: block; }
.menu nav { display: grid; padding: 8px 0 16px; }
.menu a { padding: 10px 0; text-decoration: none; font-size: 20px; font-weight: 700; }
@media (min-width: 900px) { .hh-nav { display: flex; } .menu-btn, .menu { display: none !important; } }

/* ── type ───────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(40px, 9vw, 72px); }
.page-head h1 { font-family: var(--lore); font-stretch: condensed; font-weight: 900; letter-spacing: -.01em; }
.doc h2 { font-size: clamp(26px, 5vw, 34px); margin: 56px 0 16px; }
.doc h3 { font-size: 21px; font-weight: 700; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc strong { font-weight: 700; }
.doc em { font-style: italic; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--season); }
.doc blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--season); font-size: 22px; font-weight: 500; color: var(--muted); }
.doc code { font-family: var(--mono); font-size: .88em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ── pages ──────────────────────────────────────────────── */
.page-head { padding: 64px 0 24px; }
.page-head p { font-size: 20px; color: var(--muted); max-width: var(--text); margin: 16px 0 0; }
.doc { max-width: var(--text); padding-bottom: 80px; }
.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0 64px; max-width: var(--text); }
.next-prev a { text-decoration: none; }
.next-prev .next { text-align: right; }
.next-prev span { display: block; }

/* ── home ───────────────────────────────────────────────── */
/* ── footer ─────────────────────────────────────────────── */
.hf { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.hf .wrap { display: grid; gap: 24px; }
.hf nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hf a { text-decoration: none; }
.hf a:hover { color: var(--ink); }
.hf .by { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hf .by b { font-weight: 700; letter-spacing: .12em; }

@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ── the feelings: their motions, as the game's bins show them ─────────────────────────
   Only the motions of feelings already out are here: a feeling's motion is added on its
   release day, never before. */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { display: grid; gap: 14px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; justify-items: center; }
.tile:hover { background: var(--surface); }
.tile b { font-weight: 700; font-size: 17px; }
.bin { display: grid; grid-template-columns: repeat(3, 14px); gap: 6px; }
.bin i, .field-demo i { display: block; aspect-ratio: 1; border-radius: 28%; background: var(--season); }
.bin i { width: 14px; }
.field-demo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: min(320px, 80vw); margin: 32px 0; }
.field-demo i { opacity: .5; animation: breathe 7s ease-in-out infinite; background: color-mix(in srgb, var(--season) 55%, var(--bg)); }
.field-demo i.it { opacity: 1; background: var(--season); }
.mo-trembles { animation: m-tremble .32s steps(4) infinite !important; }
.mo-flickers { animation: m-flicker 2.3s linear infinite !important; }
.mo-twists { animation: m-twist 1.8s ease-in-out infinite alternate !important; }
.mo-drifts { animation: m-drift 5s linear infinite !important; }
.mo-pulses { animation: m-pulse .54s ease-in-out infinite alternate !important; }
@keyframes m-tremble { 0% { transform: translate(0, 0); } 25% { transform: translate(1.5px, -1px); } 50% { transform: translate(-1px, 1.5px); } 75% { transform: translate(-1.5px, -.5px); } 100% { transform: translate(1px, 1px); } }
@keyframes m-flicker { 0%, 18%, 22%, 56%, 60%, 64%, 100% { opacity: 1; } 20%, 58%, 62% { opacity: .2; } }
@keyframes m-twist { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes m-pulse { from { transform: scale(.8); } to { transform: scale(1.2); } }
@keyframes m-drift { 0% { transform: translate(2px, 0); } 25% { transform: translate(0, 2px); } 50% { transform: translate(-2px, 0); } 75% { transform: translate(0, -2px); } 100% { transform: translate(2px, 0); } }

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 24px 0; max-width: var(--text); }
.facts div { background: var(--bg); padding: 16px 20px; display: grid; gap: 4px; }
.facts dd { margin: 0; font-size: 18px; }
.facts dt { margin: 0; }
.to-come { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-width: var(--text); }
.to-come li { border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.to-come li.next { border: 1px solid var(--season); }
.to-come b { font-weight: 700; font-size: 17px; }
.next-up { border: 1px solid var(--season); border-radius: 22px; padding: 24px; margin: 24px 0; max-width: var(--text); display: grid; gap: 8px; }
.next-up p { margin: 0; }
.next-up .count { font-size: clamp(34px, 8vw, 52px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }

/* ── seasons and the sky ── */
.seasons { display: grid; gap: 16px; margin: 24px 0 48px; }
@media (min-width: 860px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
.season { border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.season.now { border-color: var(--c); }
.season h2 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.season h2 .dot { background: var(--c); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--c) 60%, transparent); }
.season p { margin: 0; }
.season .months { display: grid; gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
.season .months span { display: block; }
.sky { display: grid; gap: 24px; margin: 24px 0 48px; max-width: var(--text); }
.tonight { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tonight svg { width: 120px; height: 120px; flex: none; }
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows li span:last-child { color: var(--muted); text-align: right; }

/* ── home: what comes next ── */
/* ── home: the game's own feel ──────────────────────────────────────────────────────
   Dark scenes (the stage, the screens, the saver) keep the game's navy in both themes; the rest
   follows the visitor's choice. Only slow, continuous motion; all of it stops for reduced motion. */
.scene { --bg: #081421; --ink: rgba(255, 255, 255, .94); --muted: rgba(255, 255, 255, .68); --faint: rgba(255, 255, 255, .4); --line: rgba(255, 255, 255, .14); --surface: rgba(255, 255, 255, .05);
  background: #081421; color: var(--ink); color-scheme: dark; }
.lore { font-family: var(--lore); font-stretch: condensed; font-weight: 900; letter-spacing: 0; }

/* header floats over the stage, then settles */
.home .hh { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .6s, border-color .6s; --ink: #fff; --muted: rgba(255, 255, 255, .72); color: #fff; }
.home .hh.scrolled { background: color-mix(in srgb, #081421 82%, transparent); border-bottom-color: rgba(255, 255, 255, .12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.home .menu { position: fixed; top: 64px; left: 0; right: 0; z-index: 4; background: #081421; color: #fff; }
.home main { overflow-x: clip; }
[data-par] { will-change: transform; }
.home .ups-grid > *, .home .worlds > * { min-width: 0; }

/* the stage: the first screen */
.stage { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .42; filter: blur(14px); z-index: -3; transform: scale(1.35) translateY(2%); mix-blend-mode: screen; animation: drift 40s ease-in-out infinite alternate; }
.stage-field { position: absolute; left: 0; top: -30%; width: 100%; height: 130%; z-index: -2; will-change: transform; }
.stage-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 20, 33, .55) 0, rgba(8, 20, 33, 0) 22%, rgba(8, 20, 33, 0) 58%, rgba(8, 20, 33, .78) 86%, #081421 100%); }
.stage-words { max-width: none; padding-top: 96px; padding-bottom: 96px; display: grid; gap: 16px; justify-items: center; text-align: center; will-change: transform; }
.stage-title { font-size: clamp(96px, 33vw, min(460px, 30vh * 2.6)); line-height: .82; letter-spacing: -.01em; margin: 0 0 4px; text-shadow: 0 0 80px color-mix(in srgb, var(--season) 45%, transparent); animation: rise 2.4s cubic-bezier(.2, .6, .2, 1) both; }
.stage-line { margin: 0; font-size: clamp(22px, 4.6vw, 36px); font-weight: 700; letter-spacing: -.01em; animation: rise 2.8s .4s cubic-bezier(.2, .6, .2, 1) both; }
.stage-cta { display: grid; gap: 14px; justify-items: center; margin-top: 12px; animation: rise 3s .9s cubic-bezier(.2, .6, .2, 1) both; }
.stage-cta p { margin: 0; }
.soon { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: clamp(18px, 3.4vw, 24px); font-weight: 700; }
.soon span { color: var(--season); font-variant-numeric: tabular-nums; }
.soon-sep { width: 6px; height: 6px; border-radius: 50%; background: var(--season) !important; box-shadow: 0 0 12px var(--season); }
.soon-where { font-size: 15px; color: var(--muted); }
.stage-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; }
.stage-cue .dot { width: 10px; height: 10px; }
.store { display: inline-block; line-height: 0; margin: 12px; border-radius: 10px; transition: transform .8s; }
.store:hover { transform: translateY(-2px); }
.store img { display: block; height: 48px; width: auto; }
.store-text { display: inline-flex; flex-direction: column; gap: 1px; padding: 9px 26px 10px; border-radius: 14px; background: #fff; color: #000; text-decoration: none; line-height: 1.1; }
.store-text span { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.store-text b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.ghost { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration-color: var(--faint); }
@media (min-width: 900px) { .stage-video { object-position: 50% 50%; transform: scale(1.1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { from { transform: scale(1.3) translateY(1%) translateX(-2%); } to { transform: scale(1.42) translateY(3%) translateX(2%); } }

/* the screens: full screen, side by side, a little staggered */
.reel { padding: 72px 0 40px; position: relative; background: radial-gradient(60% 40% at 20% 0, color-mix(in srgb, var(--season) 14%, transparent), transparent 70%), #081421; }
.reel-head { display: grid; gap: 10px; margin-bottom: 28px; justify-items: center; text-align: center; }
.reel h2, .saver h2, .ups h2, .worlds-wrap h2 { font-size: clamp(40px, 8vw, 72px); line-height: .95; }
.reel-track { list-style: none; margin: 0; padding: 12px var(--gutter) 56px; display: flex; gap: clamp(14px, 3vw, 28px); overflow-x: auto; justify-content: safe center; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.reel-track::-webkit-scrollbar { display: none; }
.shot { flex: none; width: clamp(220px, 62vw, 330px); scroll-snap-align: start; }
.shot:nth-child(even) { margin-top: 40px; }
.shot figure { margin: 0; display: grid; gap: 16px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 30px; background: #0d1b2c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px color-mix(in srgb, var(--season) 40%, #000); animation: breathe-soft 9s ease-in-out infinite; }
.shot:nth-child(2n) img { animation-delay: -3s; }
.shot:nth-child(3n) img { animation-delay: -6s; }
.shot figcaption { font-size: clamp(24px, 6vw, 30px); line-height: 1; padding: 0 4px; }
.reel-note { color: var(--muted); font-size: 18px; text-wrap: balance; text-align: center; max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 24px; }
.reel-track:focus-visible { outline-offset: -4px; }
@keyframes breathe-soft { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px color-mix(in srgb, var(--season) 22%, #000); } 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 90px -14px color-mix(in srgb, var(--season) 55%, #000); } }

/* how it begins */
.hush { position: relative; min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(96px, 22vh, 220px) var(--gutter); text-align: center; overflow: hidden; background: #081421; color: #fff; }
.hush-glow { position: absolute; width: min(110vw, 560px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--season) 36%, transparent), transparent); animation: breathe 7s ease-in-out infinite; }
.hush-lines { position: relative; margin: 0; max-width: 100%; font-size: clamp(40px, 10.5vw, 84px); line-height: 1.02; }
.hush-lines span { display: block; }
.hush-lines span:nth-child(2) { color: rgba(255, 255, 255, .72); }
.hush-lines span:nth-child(3) { color: var(--season); }

/* what comes next */
.ups { margin: 0; padding: clamp(72px, 12vw, 120px) 0 56px; }
.ups-grid { display: grid; gap: 14px; margin: 28px 0 20px; }
@media (min-width: 720px) { .ups-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ups-grid { grid-template-columns: repeat(4, 1fr); } }
.up { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 6px; align-content: start; background: linear-gradient(160deg, color-mix(in srgb, var(--season) 9%, var(--surface)), var(--surface)); }
.up p { margin: 0; }
.up-feeling { border-color: color-mix(in srgb, var(--season) 70%, transparent); box-shadow: 0 0 50px -12px color-mix(in srgb, var(--season) 50%, transparent); }
.up-name { font-size: 28px; line-height: 1.05; font-weight: 700; }
.up-count { white-space: nowrap; font-size: clamp(32px, 5vw, 38px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--season); }
.calendar { font-size: 15px; margin: 8px 0 0; max-width: var(--text); }
.calendar a { color: var(--ink); }
.cta { display: inline-block; justify-self: start; border: 1px solid var(--season); border-radius: 999px; padding: 12px 22px; text-decoration: none; }

/* the free saver */
.saver { padding: clamp(64px, 10vw, 112px) 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.saver-in { display: grid; gap: 36px; align-items: center; }
.saver-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #050d17; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 10px #0c1a2a, 0 0 0 11px rgba(255, 255, 255, .1), 0 40px 90px -20px color-mix(in srgb, var(--season) 40%, #000); }
.saver-screen video, .saver-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.saver-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.saver-in > * { min-width: 0; }
.saver-words { display: grid; gap: 14px; justify-items: start; }
.saver-words p { margin: 0; color: var(--muted); font-size: 18px; max-width: 30rem; }
.saver-words .label { color: var(--season); }
.pill { border: 1px solid color-mix(in srgb, var(--season) 60%, transparent); color: var(--ink) !important; border-radius: 999px; padding: 8px 16px; font-size: 15px !important; font-weight: 700; }
@media (min-width: 900px) { .saver-in { grid-template-columns: 1.15fr 1fr; gap: 72px; } }

/* the universe */
.worlds-wrap { padding: clamp(72px, 12vw, 120px) 0 48px; }
.worlds { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .worlds { grid-template-columns: repeat(3, 1fr); } }
.worlds a { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; background: var(--surface); transition: border-color .8s, box-shadow .8s, transform .8s; }
.worlds a:hover, .worlds a:focus-visible { border-color: color-mix(in srgb, var(--season) 70%, transparent); box-shadow: 0 0 44px -10px color-mix(in srgb, var(--season) 55%, transparent); transform: translateY(-2px); }
.worlds .dot { width: 12px; height: 12px; }
.worlds h3 { font-size: 30px; line-height: 1; margin: 6px 0 0; letter-spacing: 0; }
.worlds p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin: 0 0 72px; max-width: var(--text); }
.more .more-title { font-weight: 700; font-size: 17px; padding: 12px 0; margin: 0; color: var(--muted); }
.more[open] summary { color: var(--ink); }
.intro { padding-bottom: 32px; }

/* reveal on the way down */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 1.6s, transform 1.6s cubic-bezier(.2, .6, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* footer: the accounts */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.social a:hover { color: var(--ink); background: var(--surface); }
.social svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) { .stage-title, .stage-line, .stage-cta { animation: none !important; opacity: 1 !important; filter: none !important; } .rv { opacity: 1; transform: none; } }

/* ── language switcher: a small globe in the header, the names in the footer ── */
.lang { position: relative; }
.lang summary { list-style: none; width: auto; padding: 0 10px; gap: 6px; grid-auto-flow: column; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang nav { position: absolute; inset-inline-end: 0; top: 44px; z-index: 6; min-width: 190px; max-height: 70vh; overflow: auto; display: grid; padding: 8px; background: var(--bg, #081421); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.lang nav a { padding: 9px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap; }
.lang nav a:hover { background: var(--surface); color: var(--ink); }
.lang nav a[aria-current] { color: var(--ink); font-weight: 700; }
.hf .langs a[aria-current] { color: var(--ink); font-weight: 700; }
.home .lang nav { background: #081421; }

/* the full screen viewer (screens and clips): dark in both themes, slow soft fades */
.shot-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in; border-radius: 30px; position: relative; }
.clip .shot-open { cursor: pointer; }
.shot-open:focus-visible { outline: 2px solid var(--season); outline-offset: 4px; }
.clip-video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 30px; background: #0d1b2c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px color-mix(in srgb, var(--season) 40%, #000); }
.clip-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(8, 20, 33, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 40px color-mix(in srgb, var(--season) 40%, transparent); opacity: 0; transition: opacity .37s; pointer-events: none; }
.clip-play::after { content: ""; position: absolute; left: 26px; top: 21px; border: 11px solid transparent; border-left: 18px solid #fff; border-right: 0; }
.clip.still .clip-play { opacity: 1; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(4, 10, 18, .94); color: #fff; opacity: 0; transition: opacity .37s ease; overscroll-behavior: contain; }
.viewer[hidden] { display: none; }
.viewer.on { opacity: 1; }
.viewer-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px 16px 24px; touch-action: none; }
.viewer-fig { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; justify-items: center; width: 100%; height: 100%; min-height: 0; opacity: 0; transition: opacity .37s ease; }
.viewer.on .viewer-fig.in { opacity: 1; }
.viewer-fig.out { transition-duration: .15s; }
.viewer-media { display: grid; place-items: center; min-height: 0; max-width: 100%; height: 100%; }
.viewer-media img, .viewer-media video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; background: #0d1b2c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px color-mix(in srgb, var(--season) 40%, #000); user-select: none; -webkit-user-drag: none; touch-action: none; }
.viewer-media video { touch-action: auto; }
.viewer-cap { min-height: 24px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .68); text-align: center; }
.viewer-btn { position: absolute; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(8, 20, 33, .6); color: #fff; cursor: pointer; transition: background .37s, border-color .37s; }
.viewer-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); }
.viewer-btn:focus-visible { outline: 2px solid var(--season); outline-offset: 3px; }
.viewer-btn svg { width: 24px; height: 24px; }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev, .viewer-next { top: 50%; margin-top: -24px; }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer.single .viewer-prev, .viewer.single .viewer-next { display: none; }
@media (max-width: 719px) { .viewer-stage { padding-bottom: 84px; } .viewer-prev, .viewer-next { top: auto; bottom: 16px; margin: 0; } .viewer-prev { left: 16px; } .viewer-next { right: 16px; } }

/* the screensaver page */
.sv-hero { position: relative; min-height: 78svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: #081421; }
.sv-hero .stage-words { gap: 18px; }
.sv-hero .label { color: var(--season); }
.sv-title { font-size: clamp(44px, 10vw, 96px); line-height: .95; margin: 0; max-width: 14ch; text-wrap: balance; }
.sv-line { max-width: 32rem; font-weight: 500; color: var(--muted); animation: none; }
.dls { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }
.dl { display: inline-flex; flex-direction: column; gap: 1px; min-width: 168px; padding: 10px 26px 11px; border-radius: 14px; background: #fff; color: #000; text-decoration: none; line-height: 1.1; text-align: left; box-shadow: 0 0 40px color-mix(in srgb, var(--season) 35%, transparent); transition: box-shadow .8s, transform .8s; }
a.dl:hover { box-shadow: 0 0 64px color-mix(in srgb, var(--season) 60%, transparent); transform: translateY(-2px); }
.dl span { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.dl b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.dl.off { background: transparent; color: var(--muted); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); cursor: not-allowed; }
.wall { width: clamp(260px, 80vw, 480px); }
.wall:nth-child(even) { margin-top: 0; }
.wall img { aspect-ratio: auto; border-radius: 18px; }
.saver-words .ghost { margin-top: 4px; }
a.pill { display: inline-block; text-decoration: none; transition: border-color .3s ease, background-color .3s ease; }
a.pill:hover, a.pill:focus-visible { border-color: var(--season); background: color-mix(in srgb, var(--season) 12%, transparent); }

/* ── Chinese, Japanese, Korean: only on those pages (the Latin pages are untouched) ──
   No slanted emphasis (CJK faces have no italic, browsers only skew them), headings broken at
   phrases rather than between any two characters, and more room between their lines than the
   tight Latin headings; Korean breaks between words; Chinese keeps its even spacing. */
:lang(ja) em, :lang(zh) em, :lang(ko) em { font-style: normal; }
:lang(ja) :is(h1, h2, h3, .sv-title, .stage-line, .up-name, .hush-lines, .shot figcaption),
:lang(zh) :is(h1, h2, h3, .sv-title, .stage-line, .up-name, .hush-lines, .shot figcaption),
:lang(ko) :is(h1, h2, h3, .sv-title, .stage-line, .up-name, .hush-lines, .shot figcaption) { line-height: 1.3; }
:lang(ja) .stage-title, :lang(zh) .stage-title, :lang(ko) .stage-title { line-height: 1; }
@supports (word-break: auto-phrase) {
  :lang(ja) :is(h1, h2, h3, .sv-title, .stage-line, .hush-lines), :lang(zh) :is(h1, h2, h3, .sv-title, .stage-line, .hush-lines) { word-break: auto-phrase; }
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) * { letter-spacing: 0; }
:lang(zh) { letter-spacing: 0; }
