/* ===== Era rooms (v5) — shared shell. Each era's toys live in /css/toys/<era>.css, loaded only when you land there. ===== */
@font-face { font-family: "VT323"; src: url(/fonts/vt323-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url(/fonts/old-standard-tt-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url(/fonts/old-standard-tt-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url(/fonts/old-standard-tt-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url(/fonts/yellowtail-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url(/fonts/archivo-narrow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url(/fonts/archivo-narrow-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url(/fonts/josefin-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url(/fonts/josefin-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url(/fonts/press-start-2p-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* one type system + palette per era */
.era-40s { --ed: "Old Standard TT", Georgia, serif; --et: "Old Standard TT", Georgia, serif; --ink: #efe6d2; --ink2: rgba(239,230,210,.66); --acc: #d1a85a; --floor: #1a120b; }
.era-50s { --ed: "Yellowtail", cursive; --et: "Archivo Narrow", "Arial Narrow", sans-serif; --ink: #fff4e2; --ink2: rgba(255,244,226,.7); --acc: #ff5f6d; --floor: #120d0f; }
.era-60s { --ed: "Josefin Sans", "Futura", sans-serif; --et: "Josefin Sans", "Futura", sans-serif; --ink: #f7ecd6; --ink2: rgba(247,236,214,.7); --acc: #f29a2e; --floor: #14110c; }
.era-70s { --ed: "Fraunces", Georgia, serif; --et: "Fraunces", Georgia, serif; --ink: #f4e2bf; --ink2: rgba(244,226,191,.7); --acc: #e9823a; --floor: #170e07; }
.era-80s { --ed: "Press Start 2P", monospace; --et: "VT323", monospace; --ink: #f1efff; --ink2: rgba(241,239,255,.72); --acc: #ff3d8b; --floor: #07050d; }
.era-90s { --ed: "VT323", monospace; --et: "Space Mono", monospace; --ink: #eafcff; --ink2: rgba(234,252,255,.7); --acc: #2fd3c4; --floor: #0b0d12; }
.era-00s { --ed: "Archivo", "Helvetica Neue", sans-serif; --et: "IBM Plex Mono", monospace; --ink: #f2f5f7; --ink2: rgba(242,245,247,.7); --acc: #8bd346; --floor: #0b0d10; }
.era-10s { --ed: "Archivo", "Helvetica Neue", sans-serif; --et: "Archivo", "Helvetica Neue", sans-serif; --ink: #fbfbfb; --ink2: rgba(251,251,251,.7); --acc: #ff7a59; --floor: #0c0c0e; }
.era-20s { --ed: "Bricolage Grotesque", "Helvetica Neue", sans-serif; --et: "Bricolage Grotesque", "Helvetica Neue", sans-serif; --ink: #f4f3ee; --ink2: rgba(244,243,238,.68); --acc: #d6f25a; --floor: #0b0b0a; }
/* [palette] THE one palette per era. Every chapter, the arrival, toys' UI, the almanac, songs, the picker and the ending
   read only these. bg = the room's floor; surf = panels on it; ink / ink2 = primary / secondary text (opaque, AA on bg and surf);
   acc = the era's accent (text-safe on bg/surf); acc-ink = text on an accent fill; rule = borders (3:1 on bg); btn / btn-ink = the CTA. */
.era-40s { --bg: #1a120b; --surf: #271f17; --ink: #efe6d2; --ink2: #b3ab9a; --acc: #d1a85a; --acc-ink: #1a120b; --rule: #6b6357; --btn: #efe6d2; --btn-ink: #1a120b; --floor: var(--bg); }
.era-50s { --bg: #120d0f; --surf: #201b1c; --ink: #fff4e2; --ink2: #bdb3a7; --acc: #ff5f6d; --acc-ink: #120d0f; --rule: #67605b; --btn: #fff4e2; --btn-ink: #120d0f; --floor: var(--bg); }
.era-60s { --bg: #14110c; --surf: #221e18; --ink: #f7ecd6; --ink2: #b7af9d; --acc: #f29a2e; --acc-ink: #14110c; --rule: #686257; --btn: #f7ecd6; --btn-ink: #14110c; --floor: var(--bg); }
.era-70s { --bg: #170e07; --surf: #241b12; --ink: #f4e2bf; --ink2: #b6a78b; --acc: #e9823a; --acc-ink: #170e07; --rule: #6b5f4d; --btn: #f4e2bf; --btn-ink: #170e07; --floor: var(--bg); }
.era-80s { --bg: #07050d; --surf: #15131c; --ink: #f1efff; --ink2: #afadbb; --acc: #ff3d8b; --acc-ink: #07050d; --rule: #5e5c67; --btn: #f1efff; --btn-ink: #07050d; --floor: var(--bg); }
.era-90s { --bg: #0b0d12; --surf: #181b20; --ink: #eafcff; --ink2: #acb9bd; --acc: #2fd3c4; --acc-ink: #0b0d12; --rule: #596165; --btn: #eafcff; --btn-ink: #0b0d12; --floor: var(--bg); }
.era-00s { --bg: #0b0d10; --surf: #191b1e; --ink: #f2f5f7; --ink2: #b1b4b6; --acc: #8bd346; --acc-ink: #0b0d10; --rule: #5e6163; --btn: #f2f5f7; --btn-ink: #0b0d10; --floor: var(--bg); }
.era-10s { --bg: #0c0c0e; --surf: #1a1a1c; --ink: #fbfbfb; --ink2: #b8b8b9; --acc: #ff7a59; --acc-ink: #0c0c0e; --rule: #606061; --btn: #fbfbfb; --btn-ink: #0c0c0e; --floor: var(--bg); }
.era-20s { --bg: #0b0b0a; --surf: #191918; --ink: #f4f3ee; --ink2: #b3b2ae; --acc: #d6f25a; --acc-ink: #0b0b0a; --rule: #5f5f5c; --btn: #f4f3ee; --btn-ink: #0b0b0a; --floor: var(--bg); }

/* ===== v7: the chaptered landing ===== */
body.deck-on #day, body.deck-on #radioCredit { display: none !important; }
body.deck-on #portal, body.deck-on .vignette { opacity: 0; visibility: hidden; }
.era { position: fixed; inset: 0; z-index: 4; overflow: hidden; background: var(--floor, #0c0b09); color: var(--ink); opacity: 0; transition: opacity 1s var(--ease, var(--ease-calm)); font-family: var(--et); --ease2: var(--ease-calm); }
.era.in { opacity: 1; }
.era.instant .ch { transition: none !important; }

/* ---------- scene: parallax backdrop, light, motes, grain, film ---------- */
.sc { position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; }
.sc-cam { position: absolute; inset: -5%; will-change: transform; }
.sc-l { position: absolute; inset: 0; transition: opacity 1.4s var(--ease2); }
.sc-l picture, .sc-l img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-street { opacity: 1; } .sc-blur, .sc-room { opacity: 0; }
.sc-street img { transform-origin: 58% 62%; animation: kb 26s var(--ease-calm) both; }
@keyframes kb { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.sc[data-mode="room"] .sc-street { opacity: 0; }
.sc[data-mode="room"] .sc-blur { opacity: 1; }
.sc[data-mode="room"].sharp .sc-room { opacity: 1; transition-duration: .4s; }
.sc-room { transition-duration: 1.6s; }
.era-50s .sc-street img { filter: none; }
.sc-light { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .5; animation: breathe 11s ease-in-out infinite; }
.sc-light-window { background: linear-gradient(118deg, rgba(255,226,170,.0) 18%, rgba(255,226,170,.22) 30%, rgba(255,226,170,.0) 44%, rgba(255,226,170,.14) 52%, rgba(255,226,170,0) 64%); }
.sc-light-lamp { background: radial-gradient(60% 45% at 78% 30%, rgba(255,170,90,.32), rgba(255,170,90,0) 70%); }
.sc-light-neon { background: radial-gradient(70% 40% at 50% 0%, rgba(255,70,140,.28), rgba(255,70,140,0) 70%), radial-gradient(50% 40% at 100% 100%, rgba(40,220,230,.18), rgba(40,220,230,0) 70%); }
.sc-light-screen { background: radial-gradient(60% 40% at 50% 40%, rgba(120,190,255,.2), rgba(120,190,255,0) 70%); }
@keyframes breathe { 0%, 100% { opacity: .38; } 50% { opacity: .62; } }
.sc-motes { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-veil { position: absolute; inset: 0; transition: opacity 1.2s var(--ease2); background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.06) 30%, rgba(0,0,0,.25) 52%, rgba(0,0,0,.86) 100%); }
@media (min-width: 1000px) { .sc[data-mode="street"] .sc-veil { background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); } }
.sc[data-mode="room"] .sc-veil { background: radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,.42), rgba(0,0,0,.78)); }
.sc-grain { position: absolute; inset: -50%; background-size: 256px 256px; mix-blend-mode: soft-light; opacity: var(--grain, .5); animation: grain 1.2s steps(1) infinite; }
@keyframes grain { 0% { transform: translate3d(0,0,0); } 17% { transform: translate3d(-7%, 4%, 0); } 33% { transform: translate3d(5%, -9%, 0); } 50% { transform: translate3d(-3%, 11%, 0); } 67% { transform: translate3d(9%, 2%, 0); } 83% { transform: translate3d(-10%, -5%, 0); } }
.sc-dust { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: var(--dust, .4); animation: dust 7s steps(1) infinite; }
@keyframes dust { 0% { opacity: var(--dust, .4); transform: none; } 30% { opacity: calc(var(--dust, .4) * .5); transform: scale(1.04) translate3d(1%, 0, 0); } 55% { opacity: var(--dust, .4); transform: scaleX(-1); } 80% { opacity: calc(var(--dust, .4) * .7); transform: scale(1.03) translate3d(-1%, 1%, 0); } }
.era-40s { --grain: .7; --dust: .55; } .era-50s { --grain: .6; --dust: .4; } .era-60s { --grain: .6; --dust: .4; } .era-70s { --grain: .6; --dust: .35; }
.era-80s { --grain: .5; --dust: .2; } .era-90s { --grain: .45; --dust: .15; } .era-00s { --grain: .35; --dust: .1; } .era-10s { --grain: .25; --dust: .06; } .era-20s { --grain: .2; --dust: .04; }
.sc-leak, .sc-burn, .sc-flash { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0; }
.sc-leak { animation: leak 16s ease-in-out infinite; }
@keyframes leak { 0%, 100% { opacity: 0; transform: translate3d(-3%, 0, 0); } 45% { opacity: .42; transform: translate3d(2%, 0, 0); } }
.sc.burn .sc-burn { animation: burn 1.3s var(--ease2) both; }
.sc.burn .sc-flash { animation: flash 1.3s ease-out both; }
@keyframes burn { 0% { opacity: 0; transform: scale(1.2); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1); } }
@keyframes flash { 0% { opacity: 0; } 22% { opacity: .75; } 100% { opacity: 0; } }

/* ---------- chrome: progress on top, Back / Next below ---------- */
.dk-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: calc(14px + var(--safe-t, 0px)) calc(20px + var(--safe-r, 0px)) 0 calc(20px + var(--safe-l, 0px)); transition: opacity .6s var(--ease2); }
.dk-prog { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; max-width: 1200px; }
.dk-prog li { flex: 1; height: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); overflow: hidden; }
.dk-prog i { display: block; height: 100%; background: var(--acc); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; transition: transform .7s var(--ease2); }
.dk-lbl { margin: 10px auto 0; max-width: 1200px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); min-height: 1.2em; }
.at-start .dk-top { opacity: 0; }
.dk-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 12px calc(16px + var(--safe-r, 0px)) calc(14px + var(--safe-b, 0px)) calc(16px + var(--safe-l, 0px)); }
.dk-b { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 20px; border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); border-radius: 0; background: var(--floor); color: var(--ink); font: inherit; font-family: var(--et); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: transform .18s var(--ease2), background .3s, opacity .4s; -webkit-tap-highlight-color: transparent; }
.dk-b:active { transform: scale(.97); }
.dk-next { background: var(--ink); color: var(--floor); border-color: var(--ink); font-weight: 700; justify-content: space-between; }
.dk-bl { display: none; }
.dk-b:focus-visible, .sp-btn:focus-visible, .eb:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.at-start .dk-back { visibility: hidden; }
.at-start .dk-nav { grid-template-columns: minmax(0, 1fr); } .at-start .dk-back { display: none; }
.at-end .dk-next { visibility: hidden; }
.at-end .dk-nav { grid-template-columns: 64px; }
@media (min-width: 1000px) {
  .dk-nav { max-width: 1200px; margin: 0 auto; grid-template-columns: 180px 1fr 360px; padding-bottom: calc(22px + var(--safe-b, 0px)); }
  .dk-nav .dk-next { grid-column: 3; } .dk-bl { display: inline; }
  .at-start .dk-nav { grid-template-columns: 1fr 360px; } .at-start .dk-next { grid-column: 2; }
  .at-end .dk-nav { grid-template-columns: 180px; }
}

/* ---------- chapters ---------- */
.dk-chs { position: absolute; z-index: 2; left: 0; right: 0; top: calc(52px + var(--safe-t, 0px)); bottom: calc(84px + var(--safe-b, 0px)); }
.ch { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px calc(20px + var(--safe-r, 0px)) 12px calc(20px + var(--safe-l, 0px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 14px;
  opacity: 0; visibility: hidden; transform: translate3d(calc(var(--dir, 1) * 36px), 0, 0); transition: opacity .5s var(--ease2), transform .8s var(--ease2), visibility 0s linear .8s; }
.ch.on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease2) .12s, transform .9s var(--ease2) .08s, visibility 0s; }
.ch.was { transform: translate3d(calc(var(--dir, -1) * 36px), 0, 0); }
.ch-copy { text-align: center; }
.ch-k { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.ch-h { margin: 8px 0 0; font-family: var(--ed); font-weight: 400; font-size: clamp(30px, 8.6vw, 60px); line-height: 1.05; color: var(--ink); text-wrap: balance; }
.ch-s { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.ch-stage { position: relative; min-height: 0; display: grid; place-items: center; container-type: size; }
.ch-foot { display: grid; justify-items: center; gap: 10px; text-align: center; }
.ch-how { margin: 0; max-width: 34em; font-size: 14px; line-height: 1.5; color: var(--ink2); text-wrap: balance; }
.ch-src { appearance: none; min-height: 40px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ch-src:hover { color: var(--ink); border-color: var(--ink); }
/* staggered entrances inside the chapter on screen */
.ch .ch-copy, .ch .ch-stage, .ch .ch-foot { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .7s var(--ease2), transform .9s var(--ease2); }
.ch.on .ch-copy { opacity: 1; transform: none; transition-delay: .15s; }
.ch.on .ch-stage { opacity: 1; transform: none; transition-delay: .28s; }
.ch.on .ch-foot { opacity: 1; transform: none; transition-delay: .42s; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 64px; padding-left: max(48px, calc((100vw - 1200px) / 2)); padding-right: max(48px, calc((100vw - 1200px) / 2)); }
  .ch-copy { grid-column: 1; grid-row: 2; text-align: left; align-self: end; }
  .ch-foot { grid-column: 1; grid-row: 3; justify-items: start; text-align: left; align-self: start; }
  .ch-stage { grid-column: 2; grid-row: 1 / span 4; }
  .ch-h { font-size: clamp(40px, 4.4vw, 68px); }
  .ch-how { text-wrap: pretty; }
  .ch.ch-arrive { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .ch.ch-end { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
}

/* ---------- arrival ---------- */
.ch-arrive { display: grid; grid-template-rows: 1fr auto; align-items: end; padding-bottom: 6px; }
.ar { grid-row: 2; display: grid; gap: 14px; max-width: 1200px; width: 100%; margin: 0 auto; }
.ar-date { margin: 0; font-family: var(--ed); font-weight: 400; line-height: .98; color: var(--ink); font-size: clamp(46px, 13.4vw, 132px); letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.ar-date span { display: block; }
.ar-dow { font-family: var(--et); font-size: .3em; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); margin-bottom: .35em; }
.ar-y { color: var(--acc); }
.ar-who { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink); }
.ar-card { margin: 0 auto 8px; width: min(100%, 520px); padding: 10px 10px 30px; background: #f4ecdc; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-2deg); }
.ar-card img { width: 100%; height: auto; display: block; }
.ch-arrive .ar > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease2), transform 1.2s var(--ease2); }
.ch-arrive.on .ar > * { opacity: 1; transform: none; }
.ch-arrive.on .ar > :nth-child(2) { transition-delay: .25s; } .ch-arrive.on .ar > :nth-child(3) { transition-delay: .5s; } .ch-arrive.on .ar > :nth-child(4) { transition-delay: .7s; } .ch-arrive.on .ar > :nth-child(5) { transition-delay: .9s; }
.era-cap { margin: 0; min-height: 2.9em; font-size: 15px; line-height: 1.45; color: var(--ink2); opacity: 0; transition: opacity .8s var(--ease2); }
.era-cap.show, .era-cap.done { opacity: 1; }
.era-cap:empty { min-height: 0; }
@media (min-width: 1000px) { .ch-arrive { padding-bottom: 24px; } .ar { padding-left: max(0px, calc((100vw - 1200px) / 2 - 48px)); } }

/* ---------- the one song control ---------- */
.sp { display: grid; justify-items: start; gap: 8px; }
.ch-foot .sp { justify-items: center; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .ch-foot .sp { justify-items: start; } }
.sp-btn { appearance: none; display: inline-flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 26px 0 22px; border: 0; border-radius: 0; background: var(--acc); color: var(--floor); font: inherit; font-family: var(--et); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sp-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.sp-row { display: flex; align-items: stretch; gap: 10px; } .sp-row .ch-src { min-height: 0; }
.hu-par { display: block; font-style: normal; font-size: .6em; line-height: 1.15; margin-top: .2em; opacity: .85; }
.sp-meta { margin: 0; font-size: 15px; color: var(--ink); }
.sp-meta:empty { display: none; }
.sp-cr { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink2); max-width: 36em; }
.sp-cr a { color: inherit; }
.ch-foot .sp-meta { display: none; }
.press { animation: squash .38s var(--ease2); }
@keyframes squash { 0% { transform: scale(1); } 30% { transform: scale(.93, .9); } 65% { transform: scale(1.03, 1.04); } 100% { transform: scale(1); } }

/* ---------- hero objects (the song) ---------- */
.hero { position: relative; width: min(100cqw, 100cqh * var(--ar, 1)); max-width: 560px; isolation: isolate; animation: bob 7s ease-in-out infinite; }
.hero-img { position: relative; width: 100%; height: 100%; display: block; z-index: 0; user-select: none; -webkit-user-select: none; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }
.hu { position: absolute; z-index: 1; pointer-events: none; }
button.hu, .hu button { pointer-events: auto; }
/* 40s radio: the dial lights, the needle sweeps */
.hu-dial { border-radius: 50% 50% 6% 6% / 90% 90% 6% 6%; background: radial-gradient(70% 90% at 50% 100%, rgba(255,200,90,.9), rgba(255,150,40,.0) 75%); mix-blend-mode: screen; opacity: .25; transition: opacity 1.2s var(--ease2); }
.song-on .hu-dial { opacity: .9; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: .9; } 45% { opacity: .78; } 52% { opacity: .95; } }
.hu-needle { position: absolute; left: 50%; bottom: 4%; width: 2px; height: 78%; background: #2a1408; transform-origin: 50% 100%; transform: rotate(-48deg); transition: transform 2.4s var(--ease-spring); }
.song-on .hu-needle { transform: rotate(14deg); }
/* 50s jukebox: the song card in the window */
.hu-card { display: grid; place-content: center; text-align: center; container-type: inline-size; color: #8d1f1f; overflow: hidden; }
.hu-cardimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.hu-card b, .hu-card span { position: relative; display: block; padding: 0 12%; }
.hu-card b { font-family: "Yellowtail", cursive; font-weight: 400; font-size: 12cqi; line-height: 1; }
.hu-card span { margin-top: 2cqi; font-family: "Archivo Narrow", sans-serif; font-size: 6.5cqi; letter-spacing: .12em; text-transform: uppercase; color: #3a2a20; }
.hu-glow { position: absolute; inset: -4% -8%; z-index: -1; background: radial-gradient(50% 46% at 50% 42%, rgba(255,120,150,.55), rgba(255,120,150,0) 70%); opacity: .3; transition: opacity 1s; }
.song-on .hu-glow { opacity: 1; animation: breathe 2.6s ease-in-out infinite; }
/* 60s console TV: warm-up, title card, snow, power-off collapse */
.hu-crt { overflow: hidden; border-radius: 9% / 12%; background: #0b0d0b; container-type: inline-size; }
.hu-crt-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 6%; color: #eef0e2; text-shadow: 0 0 10px rgba(220,240,220,.6); transform-origin: 50% 50%; }
.hu-crt .hu-k { margin: 0; font-size: 4.6cqi; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.hu-crt b { display: block; margin-top: 3cqi; font-family: var(--ed); font-size: 11cqi; line-height: 1.05; }
.hu-crt span { display: block; margin-top: 2cqi; font-size: 6cqi; opacity: .85; }
.hu-snow { position: absolute; inset: -50%; background: url(/art/fx/grain-60s.webp?v=7) 0 0 / 128px 128px; opacity: .35; mix-blend-mode: screen; animation: grain .5s steps(1) infinite; }
.hu-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.room-60s .hero-tv { width: min(100cqw, 100cqh * .787); margin-top: calc(min(100cqw, 100cqh * .787, 560px) * .287); } /* [assets] room above the cabinet for the ears */
.hero-tv .hu-ears { position: absolute; left: 35.5%; bottom: 97.8%; width: 28%; height: auto; pointer-events: none; z-index: -1; }
.hero.warm .hu-crt-in { animation: crtOn 1.2s var(--ease2) both; }
.ch.was .hu-crt-in { animation: crtOff .55s ease-in both; }
@keyframes crtOn { 0% { transform: scale(1, .004); opacity: 0; filter: brightness(3); } 30% { transform: scale(1, .02); opacity: 1; } 70% { transform: scale(1, 1.04); filter: brightness(1.4); } 100% { transform: none; filter: none; } }
@keyframes crtOff { 0% { transform: none; } 55% { transform: scale(1, .006); filter: brightness(2.5); } 100% { transform: scale(0, .006); opacity: 0; } }
/* 70s: lava (metaballs) + the record's sheen spinning */
.hu-lava { clip-path: polygon(40% 2%, 60% 2%, 88% 66%, 74% 98%, 26% 98%, 12% 66%); mix-blend-mode: screen; opacity: .7; }
.hu-lava canvas { width: 100%; height: 100%; display: block; filter: blur(2px); }
.hu-rec { aspect-ratio: 1; height: auto !important; transform: scaleY(.36); border-radius: 50%; }
.hu-disc { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,0) 0 8%, rgba(255,255,255,.28) 12%, rgba(255,255,255,0) 18% 58%, rgba(255,255,255,.2) 62%, rgba(255,255,255,0) 68%); mix-blend-mode: screen; }
.hu-lbl { display: none; }
/* 80s boombox: the cones pump */
.hu-spk { border-radius: 50%; overflow: hidden; will-change: transform; }
.hu-spk img { position: absolute; max-width: none; height: auto; display: block; }
.hu-deck i { position: absolute; top: 24%; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6); }
.hu-deck i:first-child { left: 20%; } .hu-deck i:last-child { right: 20%; }
.song-on .hu-deck i { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 90s disc: spins with physics; a rainbow sheen holds still-ish */
.hero-disc { perspective: 900px; }
.hero-disc .hero-img { will-change: transform; }
.hu-sheen { inset: 3%; border-radius: 50%; background: conic-gradient(from 30deg, rgba(255,255,255,0), rgba(255,255,255,.35) 8%, rgba(255,255,255,0) 16%, rgba(255,255,255,0) 50%, rgba(255,255,255,.28) 58%, rgba(255,255,255,0) 66%); mix-blend-mode: overlay; }
/* 00s music player: a live screen + the centre button */
.hu-lcd { background: linear-gradient(#eef3f7, #cfdbe5); color: #10161c; padding: 5% 7%; display: flex; flex-direction: column; justify-content: center; container-type: inline-size; font-family: "Archivo", sans-serif; border-radius: 2%; }
.hu-lcd .hu-k { margin: 0 0 5cqi; display: flex; justify-content: space-between; font-size: 6cqi; font-weight: 600; border-bottom: 1px solid rgba(16,22,28,.25); padding-bottom: 2cqi; }
.hu-bat { width: 10cqi; height: 4.5cqi; border: 1px solid #10161c; background: linear-gradient(90deg, #4caf50 70%, transparent 70%); }
.hu-lcd b { font-size: 9cqi; line-height: 1.1; } .hu-lcd > span { font-size: 7cqi; opacity: .7; margin-top: 1cqi; }
.hu-bar { display: block; margin-top: 6cqi; height: 3cqi; background: rgba(16,22,28,.18); overflow: hidden; }
.hu-bar i { display: block; height: 100%; background: #2c7be5; transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
.hu-time { display: flex; justify-content: space-between; margin: 1.6cqi 0 0; font-size: 5.4cqi; }
.hu-ctr { appearance: none; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hu-ctr:active { background: rgba(0,0,0,.06); }
/* 10s phone: lock-screen player */
.hu-lock { display: flex; flex-direction: column; align-items: center; padding: 8% 6%; color: #fff; container-type: inline-size; font-family: "Archivo", sans-serif; background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,0) 40%, rgba(0,0,0,.25)); }
.hu-clock { margin: 4cqi 0 0; font-size: 22cqi; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.hu-date { margin: 2cqi 0 0; font-size: 6cqi; }
.hu-np { margin-top: auto; width: 100%; display: grid; grid-template-columns: 18cqi 1fr 14cqi; gap: 4cqi; align-items: center; padding: 4cqi; background: rgba(250,250,250,.94); color: #15171a; border-radius: 3cqi; }
.hu-art { width: 18cqi; aspect-ratio: 1; background: linear-gradient(135deg, #ff7a59, #ffcf5a); }
.hu-np b { display: block; font-size: 5.6cqi; line-height: 1.15; } .hu-np span { display: block; font-size: 4.6cqi; opacity: .65; }
.hu-pp { appearance: none; width: 14cqi; aspect-ratio: 1; border: 0; border-radius: 0; background: #15171a; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hu-pp svg { width: 50%; height: 50%; fill: currentColor; }
/* 20s speaker: the light ring */
.hu-ring { border-radius: 50%; background: radial-gradient(closest-side, rgba(80,220,255,.9), rgba(80,220,255,0)); mix-blend-mode: screen; opacity: .25; transition: opacity .8s; }
.song-on .hu-ring { animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 0%, 100% { opacity: .55; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.06); } }

/* ---------- headlines ---------- */
.paper { width: min(100%, 600px); max-height: 100%; overflow: hidden; background: var(--paper) center / cover, #eadfca; color: #1d1812; padding: 22px 22px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-.6deg); text-align: left; }
.pp-mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; padding-bottom: 10px; border-bottom: 3px double #1d1812; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.pp-mast b { font-family: var(--ed); font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; text-align: center; }
.pp-mast span:last-child { text-align: right; }
.pp-lead { appearance: none; display: block; width: 100%; margin: 14px 0 0; padding: 0 0 14px; border: 0; border-bottom: 1px solid rgba(29,24,18,.4); background: none; color: inherit; text-align: left; font-family: var(--ed); font-size: clamp(22px, 6vw, 34px); line-height: 1.12; cursor: pointer; text-wrap: balance; }
.pp-more { list-style: none; margin: 0; padding: 0; }
.pp-more li { border-bottom: 1px solid rgba(29,24,18,.22); }
.pp-more button { appearance: none; display: block; width: 100%; padding: 11px 0; border: 0; background: none; color: inherit; text-align: left; font-family: var(--et); font-size: 15px; line-height: 1.35; cursor: pointer; }
.pp-lead:hover, .pp-more button:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 400px) { .pp-mast { grid-template-columns: 1fr; text-align: center; } .pp-mast span:last-child { display: none; } .pp-mast span:first-child { text-align: center; } }
.era-80s .pp-mast b, .era-80s .pp-lead { font-size: 15px; line-height: 1.5; } .era-80s .pp-more button { font-size: 19px; }
.era-90s .pp-lead { font-size: clamp(28px, 7vw, 40px); line-height: 1; }
.hero-feed { --ar: .55; }
.hu-feed { display: flex; flex-direction: column; gap: 3cqi; padding: 10cqi 4cqi 4cqi; container-type: inline-size; overflow: hidden; background: rgba(10,12,16,.35); }
.hu-feed .hu-k { margin: 0 0 2cqi; text-align: center; font-size: 5cqi; color: #fff; letter-spacing: .1em; }
.nt { appearance: none; display: block; width: 100%; padding: 3.4cqi 4cqi; border: 0; border-radius: 2.4cqi; background: rgba(250,250,250,.95); color: #15171a; text-align: left; cursor: pointer; pointer-events: auto; opacity: 0; transform: translate3d(0, -10px, 0); transition: opacity .6s var(--ease2), transform .7s var(--ease2); }
.ch.on .nt { opacity: 1; transform: none; transition-delay: calc(.5s + var(--k) * .22s); }
.nt span { display: block; font-size: 3.6cqi; letter-spacing: .08em; text-transform: uppercase; opacity: .6; } .nt b { display: block; margin-top: 1cqi; font-size: 4.6cqi; line-height: 1.25; font-weight: 600; }

/* ---------- movie ---------- */
.ch-film .ch-stage { container-type: normal; align-content: center; gap: 12px; }
.film { display: grid; justify-items: center; gap: 0; width: 100%; }
.poster { position: relative; margin: 0; width: min(78vw, 38vh, 360px); container-type: inline-size; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.poster-img { width: 100%; height: auto; display: block; }
.poster figcaption { position: absolute; left: 16%; right: 16%; top: 13%; bottom: 13%; display: grid; align-content: center; justify-items: center; gap: 4cqi; text-align: center; color: #2b1a10; }
.po-k { font-size: 4.4cqi; letter-spacing: .24em; text-transform: uppercase; }
.poster b { font-family: var(--ed); font-weight: 400; font-size: 11cqi; line-height: 1.02; text-wrap: balance; }
.po-s { font-size: 4.4cqi; opacity: .75; }
.era-80s .poster b { font-size: 7cqi; line-height: 1.4; }
.ticket { position: relative; width: min(64vw, 30vh, 300px); margin-top: -7%; transform: rotate(-4deg); container-type: inline-size; filter: drop-shadow(0 12px 20px rgba(0,0,0,.45)); }
.ticket-img { width: 100%; height: auto; display: block; }
.ticket p { position: absolute; left: 10%; right: 24%; top: 18%; bottom: 18%; margin: 0; display: grid; align-content: center; justify-items: center; text-align: center; color: #7a1d14; }
.ticket span { font-size: 4.6cqi; letter-spacing: .2em; text-transform: uppercase; } .ticket b { font-family: var(--ed); font-weight: 400; font-size: 9cqi; line-height: 1.1; }
.era-80s .ticket b { font-size: 5.5cqi; }
.ch-film .media-bar { margin: 0; justify-content: center; }

/* ---------- weather ---------- */
.wx { display: grid; justify-items: center; gap: 10px; text-align: center; }
.wx-big { margin: 0; display: flex; align-items: baseline; gap: 18px; font-family: var(--ed); line-height: .9; }
.wx-hi { font-size: clamp(96px, 30vw, 220px); color: var(--ink); }
.wx-lo { font-size: clamp(26px, 7vw, 48px); color: var(--ink2); }
.era-80s .wx-hi { font-size: clamp(56px, 17vw, 120px); } .era-80s .wx-lo { font-size: 18px; }
.wx-sky { margin: 0; font-size: 17px; color: var(--ink); }
.ch-wx .wx-sky { display: none; }
.wx-facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; width: min(100%, 420px); }
.wx-facts div { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); text-align: left; }
.wx-facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); } .wx-facts dd { margin: 2px 0 0; font-size: 16px; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .ch-wx .ch-h { text-transform: capitalize; } }

/* ---------- what things cost ---------- */
.cost { display: grid; gap: 12px; width: min(100%, 560px); }
.tag { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 18px; background: var(--paper, #eadfca) center / cover; color: #1d1812; cursor: pointer; box-shadow: 0 14px 30px rgba(0,0,0,.35); opacity: 0; transform: translate3d(0, 12px, 0) rotate(calc((var(--k) - 1) * .8deg)); transition: opacity .6s var(--ease2), transform .8s var(--ease2); }
.ch.on .tag { opacity: 1; transform: rotate(calc((var(--k) - 1) * .8deg)); transition-delay: calc(.35s + var(--k) * .14s); }
.tag-k { font-size: 13px; letter-spacing: .06em; }
.tag-v { grid-row: 1 / span 2; grid-column: 2; font-family: var(--ed); font-weight: 400; font-size: clamp(34px, 9vw, 52px); line-height: 1; transition: transform .5s var(--ease2); }
.tag-now { font-size: 13px; color: #6b2b1c; opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .45s var(--ease2), transform .5s var(--ease2); }
.ch-cost.now .tag-now { opacity: 1; transform: none; }
.ch-cost.now .tag-v { transform: scale(.92); }
.era-80s .tag-v { font-size: 22px; } .era-80s .tag-k, .era-80s .tag-now { font-size: 18px; }
.ch-cost .ch-how { font-size: 12px; }
.cost-btn { background: var(--ink); }

/* ---------- play: one toy at a time ---------- */
.ch-play .ch-stage { container-type: normal; align-content: center; }
.ch-play .toy { width: 100%; max-width: 640px; margin-inline: auto; }
.ch-play .ch-stage { overflow: hidden; }
.hint-pulse { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 2px solid var(--acc); pointer-events: none; opacity: 0; }
.hint-pulse.show { animation: hint 1.8s var(--ease2) 1.2s 4 both; }
@keyframes hint { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1.6); } }
.room-80s .ac-scr, .room-90s .gb-bez, .room-90s .pc-scr { position: relative; }
.room-80s .ac-scr::after, .room-90s .gb-bez::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/art/fx/crt-scanlines.webp?v=7) 0 0 / 128px 128px, url(/art/fx/crt-glow.webp?v=7) center / cover; mix-blend-mode: screen; opacity: .35; }

/* ---------- the end ---------- */
.ch-end { align-content: center; }
.end { display: grid; gap: 18px; width: min(100%, 1100px); margin: 0 auto; align-content: center; }
.card { min-width: 0; width: calc(100% - 10px); justify-self: center; padding: 22px 22px 18px; background: var(--paper) center / cover, #eadfca; color: #1d1812; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-1deg); }
.card-k { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.card-d { margin: 6px 0 0; font-family: var(--ed); font-weight: 400; font-size: clamp(30px, 8vw, 46px); line-height: 1.05; }
.card-w { margin: 6px 0 12px; font-size: 15px; }
.card dl { margin: 0; display: grid; gap: 0; }
.card dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgba(29,24,18,.22); }
.card dd, .card-d, .card-w { overflow-wrap: anywhere; min-width: 0; }
.card dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; padding-top: 2px; } .card dd { margin: 0; font-size: 14px; line-height: 1.35; }
.era-80s .card-d { font-size: 20px; line-height: 1.5; }
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: 18px; height: 76px; touch-action: none; }
.ch-end .end { gap: 14px; }
.prop { position: relative; height: 100%; display: block; cursor: grab; touch-action: none; will-change: transform; opacity: 0; transition: opacity .8s var(--ease2); }
.prop img { height: 100%; width: auto; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.7s); pointer-events: none; }
.ch.on .prop { opacity: 1; transition-delay: calc(.5s + var(--k) * .18s); }
.prop.held { cursor: grabbing; z-index: 2; }
.end-act { display: grid; gap: 10px; }
.eb { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 0; background: var(--floor); color: var(--ink); font: inherit; font-family: var(--et); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; }
.eb-main { min-height: 58px; background: var(--acc); color: var(--floor); border-color: var(--acc); font-weight: 700; font-size: 15px; }
.end-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-arrive { --x: 0; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .end { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; }
  .card { grid-row: 1 / span 2; padding: 34px; } .shelf { height: 150px; }
}

/* ---------- utilities the toys use ---------- */
.room-load { margin: 80px 0; text-align: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.toy { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
:where(.toy) :where(button) { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.toy canvas { display: block; }
.toy .grab { touch-action: none; cursor: grab; } .toy .grab:active { cursor: grabbing; }
.sqb { appearance: none; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.sqb[aria-pressed="true"] { background: var(--ink); color: var(--floor); }
.cr-line { font-size: 11px; line-height: 1.45; color: var(--ink2); margin: 8px 0 0; }
.cr-line a { color: inherit; }
.obj { appearance: none; border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; display: block; position: relative; -webkit-tap-highlight-color: transparent; }
.obj:focus-visible, .toy :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* real media (film footage / trailer bar, from media.js) */
.vid-slot:empty { display: none; }
.media-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink); }
.media-bar .mb-play { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid currentColor; border-radius: 0; background: var(--floor); color: inherit; font-family: var(--et); font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.media-bar .mb-play i { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.media-bar .mb-cr { flex-basis: 100%; font-size: 11px; opacity: .75; }
.clip { margin: 0 auto; width: min(100%, 720px); }
.clip-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--ink2); }
.clip-frame video, .clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.clip-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); font-size: 22px; cursor: pointer; }
.clip figcaption { margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: var(--ink2); }
.clip figcaption a { color: inherit; }

/* era type tweaks (one type system per era: display + text) */
.era-80s .ch-h { font-size: clamp(20px, 5.6vw, 34px); line-height: 1.45; } .era-80s .ar-date { font-size: clamp(26px, 8vw, 64px); line-height: 1.35; } .era-80s .ar-dow { font-size: .5em; }
.era-80s .ch-k, .era-80s .dk-lbl, .era-80s .ch-how, .era-80s .ar-who, .era-80s .sp-meta, .era-80s .dk-b, .era-80s .sp-btn, .era-80s .eb, .era-80s .ch-s { font-size: 19px; letter-spacing: .06em; }
.era-90s .ar-date { font-size: clamp(56px, 16vw, 150px); line-height: .9; } .era-90s .ch-h { font-size: clamp(40px, 11vw, 76px); line-height: .95; }
.era-50s .ch-h { font-size: clamp(40px, 11vw, 76px); } .era-50s .ar-date { font-size: clamp(52px, 15vw, 140px); }

@media (prefers-reduced-motion: reduce) {
  .sc-street img, .sc-light, .sc-grain, .sc-dust, .sc-leak, .hero, .prop img, .song-on .hu-dial, .song-on .hu-glow, .song-on .hu-ring, .song-on .hu-deck i { animation: none !important; }
  .ch, .ch.on, .ch .ch-copy, .ch .ch-stage, .ch .ch-foot, .tag, .nt, .ch-arrive .ar > * { transition: opacity .2s linear !important; transform: none !important; }
  .sc.burn .sc-burn, .sc.burn .sc-flash, .hero.warm .hu-crt-in, .ch.was .hu-crt-in { animation: none !important; }
}

/* song buffering: a gentle breathing ring on the play control */
.song-wait .sp-btn[data-song] svg{animation:sp-wait 1s ease-in-out infinite}
@keyframes sp-wait{50%{opacity:.35;transform:scale(.9)}}
@media (prefers-reduced-motion:reduce){.song-wait .sp-btn[data-song] svg{animation:none;opacity:.6}}
/* low-res arrival shown as a postcard: on wide screens it sits to the right of the date, never above it */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ar:has(.ar-card) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .ar:has(.ar-card) > * { grid-column: 1; }
  .ar:has(.ar-card) > .ar-card { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: min(100%, 560px); margin: 0 0 0 auto; }
}
/* short phones: the end card fits without scrolling */
@media (max-width: 999px) and (max-height: 900px) {
  .ch-end .end { gap: 10px; } .ch-end .card { padding: 16px 18px 12px; } .ch-end .card dl div { padding: 5px 0; } .ch-end .card-w { margin-bottom: 8px; }
  .ch-end .shelf { height: 60px; } .ch-end .eb { min-height: 46px; } .ch-end .eb-main { min-height: 52px; }
}
/* wide screens: the stage breathes — nothing touches the progress bar or the nav */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .ch-stage { padding-block: 36px 20px; box-sizing: border-box; } }
/* the end: the lone nav button says what it does */
.at-end .dk-nav { grid-template-columns: minmax(0, 160px); } .at-end .dk-bl { display: inline; } .at-end .dk-next { display: none; }
/* busy era papers (50s starbursts, 80s stripes): a soft paper wash keeps the words readable */
.paper, .card { background: linear-gradient(rgba(248, 241, 226, .62), rgba(248, 241, 226, .62)), var(--paper) center / cover, #eadfca; }

/* ===================== v8: fluid chapters + more of the day ===================== */
/* faster, continuous motion: a chapter glides in as the last one glides out (transform/opacity only) */
.ch { transition: opacity .32s var(--ease2), transform .42s var(--ease-calm), visibility 0s linear .42s; }
.ch.on { transition: opacity .38s var(--ease2) .04s, transform .48s var(--ease-calm), visibility 0s; }
.ch .ch-copy, .ch .ch-stage, .ch .ch-foot, .ch .ch-more { transition: opacity .45s var(--ease2), transform .55s var(--ease-calm); }
.ch.on .ch-copy { transition-delay: .05s; } .ch.on .ch-stage { transition-delay: .1s; } .ch.on .ch-foot { transition-delay: .16s; }
.ch .ch-more { opacity: 0; transform: translate3d(0, 14px, 0); } .ch.on .ch-more { opacity: 1; transform: none; transition-delay: .2s; }

/* header: progress, chapter label, and the date that flew up from the arrival */
.dk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; max-width: 1200px; margin: 0 auto; }
.dk-row .dk-lbl { margin: 10px 0 0; }
.dk-date { margin: 10px 0 0; font-family: var(--ed); font-size: 15px; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; opacity: 0; transform-origin: 100% 0; transition: opacity .3s; }
.dk-date.on { opacity: 1; }
.at-start .dk-top { opacity: 1; } .at-start .dk-prog, .at-start .dk-lbl { opacity: 0; }

/* chapters with more below the fold: one scroll, a clear hierarchy, never a wall */
.ch.has-more { grid-template-rows: auto minmax(min(56vh, 460px), 1fr) auto auto; }
.ch-info.has-more { grid-template-rows: auto auto auto; align-content: start; }
.ch-more { display: grid; gap: 18px; width: min(100%, 560px); margin: 4px auto 18px; }
.ch.more-below { -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent); mask-image: linear-gradient(#000 calc(100% - 56px), transparent); }
.dk-more { margin-left: .6em; color: var(--acc); display: inline-block; animation: cue 2.2s var(--ease2) infinite; }
@keyframes cue { 50% { transform: translate3d(0, 4px, 0); opacity: .7; } }
.ch-info .ch-stage { container-type: normal; place-items: stretch; align-content: start; }
.fs-wrap { display: grid; gap: 18px; width: min(100%, 560px); margin: 0 auto; }
.fs { padding: 16px 18px 14px; background: color-mix(in srgb, var(--floor) 78%, transparent); border-top: 3px solid var(--acc); text-align: left; }
.fs-h { margin: 0 0 10px; font-family: var(--et); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.fs-n { margin: 10px 0 0; font-size: 11px; color: var(--ink2); }
.fs-p { margin: 10px 0 0; font-size: 15px; color: var(--ink); }
.fs-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fs-l li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); min-width: 0; }
.fs-l li:first-child { border-top: 0; }
.fs-l b { font-weight: 600; font-size: 15.5px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.fs-l span { grid-column: 1; font-size: 13px; line-height: 1.3; color: var(--ink2); overflow-wrap: anywhere; }
.fs-rank li { grid-template-columns: 2em minmax(0, 1fr) auto; }
.fs-rank i { grid-row: 1 / span 2; font-style: normal; font-family: var(--ed); font-size: 22px; color: var(--acc); }
.fs-rank b, .fs-rank span { grid-column: 2; }
.fs-play { grid-column: 3; grid-row: 1 / span 2; appearance: none; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; }
.fs-play.on, .fs-l li.playing .fs-play { background: var(--acc); border-color: var(--acc); color: var(--floor); }
.fs-rank li.nopv b { opacity: .55; } .fs-nopv { font-style: normal; color: var(--ink2); opacity: .8; }
.fs-play:disabled { cursor: default; opacity: .4; } .fs-rank li.pv-wait .fs-play { animation: fsWait 1s ease-in-out infinite alternate; }
@keyframes fsWait { to { opacity: .35; } }
.fs-age li span, .fs-born li span { grid-column: 1; }
.fs-age li { grid-template-columns: minmax(0, 1fr) auto; } .fs-age li span { grid-column: 2; grid-row: 1; font-size: 14px; color: var(--acc); text-align: right; }
.fs-films li { grid-template-columns: 46px minmax(0, 1fr); } .fs-films b, .fs-films span { grid-column: 2; }
.fs-pst { grid-row: 1 / span 2; width: 46px; aspect-ratio: 2 / 3; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.fs-pst img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; background: color-mix(in srgb, var(--floor) 78%, transparent); border-top: 3px solid var(--acc); }
.fs-stats p { margin: 0; padding: 14px 18px; display: grid; gap: 2px; text-align: left; border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.fs-stats p:first-child { border-left: 0; }
.fs-stats span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.fs-stats b { font-family: var(--ed); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }
.fs-stats em { font-style: normal; font-size: 12px; color: var(--ink2); }
.fs-tmdb { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 10.5px; line-height: 1.35; color: var(--ink2); }
.fs-tmdb img { width: 64px; height: auto; flex: none; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more { grid-template-rows: auto auto minmax(0, 1fr); align-content: center; }
  .ch.has-more .ch-copy { grid-row: 1; align-self: end; } .ch.has-more .ch-foot { grid-row: 2; }
  .ch.has-more .ch-more { grid-column: 1; grid-row: 3; margin: 6px 0 0; width: 100%; align-self: start; }
  .ch.has-more .ch-stage { grid-row: 1 / span 3; }
  .ch-info.has-more { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: 1fr auto auto 1fr; }
  .ch-info.has-more .ch-copy { grid-row: 2; } .ch-info.has-more .ch-foot { grid-row: 3; }
  .ch-info .ch-stage { grid-row: 1 / span 4; align-content: center; }
  .ch-info .fs-wrap { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ch-info .fs-wrap > .fs-stats { grid-column: 1 / -1; }
}

/* song: when it ends, quiet — and a gentle offer of the next song */
.sp-next { appearance: none; display: none; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.sp-next.on { display: grid; animation: nxIn .5s var(--ease2) both; }
.sp-next span { grid-row: 1 / span 2; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.sp-next b { font-size: 15px; overflow-wrap: anywhere; } .sp-next em { font-style: normal; font-size: 12.5px; color: var(--ink2); grid-column: 2; }
@keyframes nxIn { from { opacity: 0; transform: translate3d(0, 6px, 0); } }

/* the movie: the price on the stub; a real poster in the marquee when TMDB has one */
.tk-stub { position: absolute; right: 5%; top: 16%; bottom: 16%; width: 14%; display: grid; place-content: center; justify-items: center; gap: 2cqi; color: #7a1d14; text-align: center; font-style: normal; }
.tk-stub b { font-family: var(--ed); font-weight: 400; font-size: 5.6cqi; line-height: 1; } .tk-stub span { font-size: 2.7cqi; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.poster-art { position: absolute; left: 17%; right: 17%; top: 12.5%; bottom: 12.5%; width: 66%; height: 75%; object-fit: cover; z-index: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); opacity: 0; transition: opacity .6s var(--ease2); }
.poster.has-art .poster-art { opacity: 1; } .poster.has-art figcaption { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ch.more-below::after { animation: none; } .ch, .ch.on, .ch .ch-more { transition: opacity .2s linear !important; transform: none !important; } }
/* v8.1: header row never wraps — label ellipsizes, the date + name stay whole; phones show the cue as an arrow only */
.dk-row .dk-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.dk-row .dk-date { flex: 0 0 auto; max-width: 62%; }
@media (max-width: 599px) { .dk-more { font-size: 0; margin-left: .5em; } .dk-more::after { content: '↓'; font-size: 13px; letter-spacing: 0; } .dk-date { font-size: 14px; } }
/* v8.2 nav grid: one gutter for the progress bar, label row and Back/Next; safe-area aware; equal top/bottom breathing room */
#era { --g: 18px; --gx: max(var(--g), calc((100% - 1200px) / 2)); }
.dk-top { padding: calc(12px + var(--safe-t, 0px)) calc(var(--gx) + var(--safe-r, 0px)) 0 calc(var(--gx) + var(--safe-l, 0px)); }
.dk-prog, .dk-row, .dk-lbl { max-width: none; }
.dk-nav { max-width: none; margin: 0; gap: 10px; grid-template-columns: 58px minmax(0, 1fr); padding: 12px calc(var(--gx) + var(--safe-r, 0px)) max(14px, calc(var(--safe-b, 0px) + 6px)) calc(var(--gx) + var(--safe-l, 0px)); }
.dk-b { min-height: 56px; }
.at-end .dk-nav { grid-template-columns: minmax(0, 160px); }
@media (min-width: 900px) {
  #era { --g: 32px; }
  .dk-top { padding-top: calc(22px + var(--safe-t, 0px)); }
  .dk-nav { grid-template-columns: 180px 1fr 360px; padding-bottom: calc(22px + var(--safe-b, 0px)); }
  .at-start .dk-nav { grid-template-columns: 1fr 360px; }
  .at-end .dk-nav { grid-template-columns: 180px; }
}
.ch { padding-left: calc(var(--g, 18px) + var(--safe-l, 0px)); padding-right: calc(var(--g, 18px) + var(--safe-r, 0px)); }
.dk-chs { bottom: calc(80px + max(14px, calc(var(--safe-b, 0px) + 6px))); }
@media (max-width: 899px) { .ch-song.has-more, .ch-film.has-more { grid-template-rows: auto minmax(min(46vh, 400px), 1fr) auto auto; } }
@media (max-width: 899px) { .ch-film .ch-stage { padding-bottom: 22px; } }
/* ---- v8.3 price charts (era-charts.js): one card per price, line drawn in, birth year marked; themed per era ---- */
.pcs { --pc-ink: var(--ink); --pc-line: var(--acc); --pc-bg: color-mix(in srgb, #000 38%, transparent); --pc-grid: color-mix(in srgb, var(--ink) 18%, transparent); margin-top: 18px; }
.pcs-h { margin: 0 0 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); }
.pcs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pc-mk, var(--pc-line)); vertical-align: 0; margin: 0 2px; }
.pcs-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .pcs-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pcs-grid { grid-template-columns: repeat(3, 1fr); } }
.pc { margin: 0; padding: 12px 14px 8px; background: var(--pc-bg); color: var(--pc-ink); border: 1px solid var(--pc-grid); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease2) calc(var(--k) * 70ms), transform .5s var(--ease2) calc(var(--k) * 70ms); }
.drawn .pc { opacity: 1; transform: none; }
.pc figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pc-k { font-size: 12px; letter-spacing: .04em; color: color-mix(in srgb, var(--pc-ink) 75%, transparent); }
.pc-v { text-align: right; line-height: 1.15; } .pc-v b { font-family: var(--ed); font-weight: 400; font-size: 22px; display: block; } .pc-v em { font-style: normal; font-size: 11px; color: color-mix(in srgb, var(--pc-ink) 70%, transparent); }
.pc svg { display: block; width: 100%; height: 64px; margin-top: 6px; overflow: visible; }
.pc-base { stroke: var(--pc-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pc-area { fill: color-mix(in srgb, var(--pc-line) 16%, transparent); opacity: 0; transition: opacity .6s linear calc(var(--k) * 70ms + .7s); }
.pc-line { fill: none; stroke: var(--pc-line); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-calm) calc(var(--k) * 70ms + .15s); }
.pc-by { stroke: var(--pc-mk, var(--pc-line)); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .3s linear calc(var(--k) * 70ms + 1s); }
.pc-mk { fill: var(--pc-mk, var(--pc-line)); stroke: var(--pc-bg-solid, #111); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .45s var(--ease-spring) calc(var(--k) * 70ms + 1.05s); }
.drawn .pc-line { stroke-dashoffset: 0; } .drawn .pc-area, .drawn .pc-by { opacity: 1; } .drawn .pc-mk { transform: none; }
.pc-axis { position: relative; display: flex; justify-content: space-between; margin: 3px 0 0; font-size: 10px; letter-spacing: .06em; color: color-mix(in srgb, var(--pc-ink) 55%, transparent); }
.pc-b { position: absolute; transform: translateX(-50%); color: var(--pc-mk, var(--pc-line)); font-weight: 600; }
.pcs-src { margin: 10px 0 0; font-size: 11px; color: var(--ink2); }
/* themes */
.pc-ledger { --pc-bg: #efe6cf; --pc-bg-solid: #efe6cf; --pc-ink: #2b2216; --pc-line: #2b2216; --pc-mk: #a3271b; --pc-grid: rgba(43,34,22,.3); }
.pc-ledger .pc { background-image: repeating-linear-gradient(transparent 0 15px, rgba(163,39,27,.12) 15px 16px); font-family: Georgia, 'Times New Roman', serif; border-color: rgba(43,34,22,.45); }
.pc-ledger .pc-line { stroke-width: 1.6; } .pc-ledger .pc-area { fill: rgba(43,34,22,.07); }
.pc-atomic { --pc-bg: #0f3a3c; --pc-bg-solid: #0f3a3c; --pc-ink: #f4e9cf; --pc-line: #40d1c1; --pc-mk: #ff8a3d; --pc-grid: rgba(64,209,193,.35); }
.pc-atomic .pc { border-radius: 18px 4px 18px 4px; }
.pc-pop { --pc-bg: #fff4dc; --pc-bg-solid: #fff4dc; --pc-ink: #1d1d3a; --pc-line: #e8412c; --pc-mk: #2a5bd7; --pc-grid: rgba(29,29,58,.25); }
.pc-groovy { --pc-bg: #3b2414; --pc-bg-solid: #3b2414; --pc-ink: #f7dcae; --pc-line: #f29b30; --pc-mk: #e2542d; --pc-grid: rgba(247,220,174,.25); }
.pc-groovy .pc { border-radius: 14px; } .pc-groovy .pc-line { stroke-width: 3; }
.pc-lcd { --pc-bg: #9bbc0f; --pc-bg-solid: #9bbc0f; --pc-ink: #0f380f; --pc-line: #0f380f; --pc-mk: #306230; --pc-grid: rgba(15,56,15,.35); }
.pc-lcd .pc { font-family: ui-monospace, 'Courier New', monospace; image-rendering: pixelated; border: 3px solid #0f380f; box-shadow: inset 0 0 0 2px #8bac0f; }
.pc-lcd .pc-line { stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; } .pc-lcd .pc-v b { font-family: ui-monospace, monospace; }
.pc-neon { --pc-bg: #120a2a; --pc-bg-solid: #120a2a; --pc-ink: #e9e2ff; --pc-line: #3cf2ff; --pc-mk: #ff3df2; --pc-grid: rgba(60,242,255,.3); }
.pc-neon .pc-line { filter: drop-shadow(0 0 3px #3cf2ff); }
.pc-aqua { --pc-bg: linear-gradient(#f5fbff, #dcecf8); --pc-bg-solid: #e8f3fb; --pc-ink: #1b2b3a; --pc-line: #1f7ae0; --pc-mk: #ff7a00; --pc-grid: rgba(31,122,224,.25); }
.pc-aqua .pc { border-radius: 10px; }
.pc-flat { --pc-bg: #ffffff; --pc-bg-solid: #fff; --pc-ink: #222; --pc-line: #ff5a5f; --pc-mk: #222; --pc-grid: rgba(0,0,0,.12); }
.pc-mono { --pc-bg: rgba(18,18,22,.78); --pc-bg-solid: #121216; --pc-ink: #f1f1f1; --pc-line: #f1f1f1; --pc-mk: #7cf29a; --pc-grid: rgba(255,255,255,.18); }
.pc-mono .pc { border-radius: 14px; backdrop-filter: blur(8px); }
@media (prefers-reduced-motion: reduce) { .pc, .pc-line, .pc-area, .pc-by, .pc-mk { transition: none !important; } }
/* ---- v8.4 live weather sky (wx3d.js): canvas behind the weather copy; static CSS fallback beneath ---- */
.ch-wx .ch-stage { position: relative; min-height: min(52vh, 440px); }
.wx3d-mount { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 4px; background: linear-gradient(#070b1f, #1b2550); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }
.wx3d-mount[data-kind=snow] { background: linear-gradient(#141a28, #3a4458); } .wx3d-mount[data-kind=rain], .wx3d-mount[data-kind=storm] { background: linear-gradient(#080c14, #1c2432); } .wx3d-mount[data-kind=fog] { background: linear-gradient(#1a1e26, #3d434d); }
.wx3d-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease2); }
.wx3d-ready .wx3d-cv { opacity: 1; }
.ch-wx .wx { position: relative; z-index: 1; pointer-events: none; text-shadow: 0 2px 14px rgba(0,0,0,.6); color: var(--ink); }
.ch-wx .wx dl { pointer-events: auto; }
.wx3d-fb { position: absolute; inset: 0; transition: opacity .6s; } .wx3d-fb.off { opacity: 0; }
.wx3d-moon { position: absolute; right: 14%; top: 12%; width: 64px; height: 64px; border-radius: 50%; background: #2a2d36; box-shadow: 0 0 40px rgba(255,248,230,.25); overflow: hidden; }
.wx3d-moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #e9e4d6; clip-path: inset(0 0 0 calc((1 - var(--lit)) * 100%)); }
.wx3d-snow .wx3d-fx { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 60% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 80% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 85%, #fff 50%, transparent 51%); background-size: 120px 120px; opacity: .7; }
@media (min-width: 900px) { .ch-wx .ch-stage { min-height: 460px; } }
.ch-wx .ch-stage { display: flex; flex-direction: column; justify-content: flex-end; } .ch-wx .wx { padding: 0 14px 14px; width: 100%; box-sizing: border-box; }
.fs-films li:not(.has-art) { grid-template-columns: minmax(0, 1fr); } .fs-films li:not(.has-art) .fs-pst { display: none; } .fs-films li:not(.has-art) b, .fs-films li:not(.has-art) span { grid-column: 1; }
/* v8.5 overlap audit fixes (scripts/overlap-audit.mjs): stages size to their content so nothing spills onto the copy */
.ch-cost .ch-stage, .ch-film .ch-stage, .ch-news .ch-stage { container-type: inline-size; }
@media (max-width: 899px) {
  .ch-film .ch-stage { padding-block: 10px 30px; }
}
.ch-info .ch-foot { position: relative; }
.ch-film .ch-copy { position: relative; z-index: 2; }
.pcs { margin-top: 30px; }
.pc figcaption { align-items: flex-start; } .pc-k { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.pc-v { flex: 0 1 auto; min-width: 0; display: grid; justify-items: end; } .pc-v em { white-space: nowrap; }
.pc-x { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--pc-mk, var(--pc-line)); margin-top: 2px; }
.wx3d-mount { background: linear-gradient(#6c7684, #bfc7d1); }
.wx3d-mount::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 30%, rgba(8,12,20,.62) 100%); z-index: 1; }
.wx3d-cap { position: absolute; z-index: 2; left: 10px; top: 10px; margin: 0; padding: 4px 8px; font-size: 11px; letter-spacing: .06em; color: var(--ink); background: color-mix(in srgb, var(--bg) 78%, transparent); border-radius: 0; }
.ch-wx .wx { z-index: 3; }

/* phones + tablets: the stage row is never shorter than its content (it scrolls instead of spilling onto the footer) */
@media (max-width: 999px), (max-aspect-ratio: 5/4) {
  .ch { grid-template-rows: auto minmax(min-content, 1fr) auto; }
  .ch.has-more { grid-template-rows: auto minmax(min-content, 1fr) auto auto; }
  .ch-song.has-more { grid-template-rows: auto minmax(min(46vh, 400px), 1fr) auto auto; }
  .ch-info.has-more { grid-template-rows: auto minmax(min-content, auto) auto; }
}
.ch-wx .ch-stage { container-type: inline-size; }

/* the lock screen: notification lines get their full line box; the slider label starts right of the knob */
.lk-n { flex: 0 0 auto; }
.lk-slide span { padding-left: 52px; }
.ar-y { display: inline-block; margin-top: .08em; }
/* v8.6 devices: overlays registered to the art, no blend-mode slabs (iOS renders them as hard panels), one soft shadow */
.hero-img { filter: drop-shadow(0 18px 22px rgba(0,0,0,.32)) drop-shadow(0 3px 5px rgba(0,0,0,.22)); }
.hu-dial { border-radius: 0; mix-blend-mode: normal; background: radial-gradient(46% 60% at 50% 62%, rgba(255,196,96,.42), rgba(255,170,60,0) 100%); opacity: 0; transition: opacity 1.2s var(--ease2); }
.song-on .hu-dial { opacity: 1; animation: none; }
.hu-ring { mix-blend-mode: normal; background: radial-gradient(closest-side, rgba(80,220,255,.5), rgba(80,220,255,0)); }
.hu-crt { border-radius: 10% / 14%; box-shadow: inset 0 0 18px 6px rgba(0,0,0,.55); }
.song-on .hero-boombox .hero-img { animation: thump .49s var(--ease2) infinite; transform-origin: 50% 70%; }
@keyframes thump { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.008); } }
@media (prefers-reduced-motion: reduce) { .song-on .hero-boombox .hero-img { animation: none; } }
.hu-card span { font-size: 5.2cqi; letter-spacing: .06em; } .hu-card b { font-size: 10.5cqi; }
/* v8.7 nav audio control: square mute + volume. Mobile: square popover above the button; desktop: inline */
.dk-nav { grid-template-columns: 58px 58px minmax(0, 1fr); }
.at-start .dk-nav { grid-template-columns: 58px minmax(0, 1fr); }
.at-end .dk-nav { grid-template-columns: minmax(0, 160px) 58px; }
.vc { position: relative; display: flex; align-items: stretch; min-width: 0; }
.vc-btn { width: 100%; padding: 0; gap: 0; }
.vc-btn svg, .vc-m svg { display: block; flex: 0 0 auto; }
.vc-pop { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 6; width: 232px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 12px; background: var(--floor); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); box-shadow: 0 14px 34px -14px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .32s var(--ease-calm, cubic-bezier(.22,.61,.36,1)), transform .32s var(--ease-calm, cubic-bezier(.22,.61,.36,1)), visibility 0s linear .32s; }
.vc.open .vc-pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.vc-m { appearance: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); border-radius: 0; background: transparent; color: inherit; cursor: pointer; }
.vc-o { font-family: var(--et); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink2, var(--ink)); }
.vc-r { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; --v: 38%; }
.vc-r::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--ink) var(--v), color-mix(in srgb, var(--ink) 22%, transparent) var(--v)); border: 0; }
.vc-r::-moz-range-track { height: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.vc-r::-moz-range-progress { height: 4px; background: var(--ink); }
.vc-r::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 0; background: var(--ink); border: 2px solid var(--floor); box-shadow: 0 0 0 1px var(--ink); }
.vc-r::-moz-range-thumb { width: 14px; height: 14px; border-radius: 0; background: var(--ink); border: 2px solid var(--floor); }
.vc-m:focus-visible, .vc-r:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.vc.muted .vc-btn { color: color-mix(in srgb, var(--ink) 55%, transparent); }
@media (min-width: 900px) {
  .dk-nav { grid-template-columns: 180px minmax(0, 1fr) 360px; }
  .at-start .dk-nav { grid-template-columns: minmax(0, 1fr) 360px; }
  .at-end .dk-nav { grid-template-columns: 180px minmax(0, 1fr); }
  .vc { justify-self: end; gap: 0; border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); background: var(--floor); }
  .vc-btn { width: 56px; border: 0; border-right: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); }
  .vc-pop { position: static; width: auto; grid-template-columns: 150px 40px; padding: 0 14px; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .vc-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vc-pop { transition: none; } }
/* v8.8 theater overlay for trailers (theater.js). One easing family: --ease-calm */
:root { --ease-calm: cubic-bezier(.22, .61, .36, 1); --ease-calm-in: cubic-bezier(.55, .06, .68, .19); }
.theater { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: #f3ead8; overscroll-behavior: contain; touch-action: none; font-family: var(--et, system-ui, sans-serif); }
.th-dim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, rgba(18,12,8,.9), rgba(4,3,2,.97)); opacity: 0; transition: opacity .6s var(--ease-calm); }
.th-cur { position: absolute; top: 0; bottom: 0; width: 51%; background: repeating-linear-gradient(90deg, #5a0d12 0 22px, #74151b 22px 34px, #4a0a0e 34px 46px); box-shadow: inset 0 -60px 80px -40px rgba(0,0,0,.7); transition: transform .9s var(--ease-calm) .12s, opacity .5s var(--ease-calm) .5s; pointer-events: none; }
.th-l { left: 0; transform: translateX(0); } .th-r { right: 0; transform: translateX(0); }
.theater.in .th-dim { opacity: 1; }
.theater.in .th-l { transform: translateX(-100%); } .theater.in .th-r { transform: translateX(100%); }
.th-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: max(64px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); box-sizing: border-box; }
.th-fig { margin: 0; width: min(100%, 1280px, calc((100vh - 170px) * 16 / 9)); width: min(100%, 1280px, calc((100dvh - 170px) * 16 / 9)); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .55s var(--ease-calm) .38s, transform .7s var(--ease-calm) .38s; }
.theater.in .th-fig { opacity: 1; transform: none; }
.th-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgba(243,234,216,.18), 0 30px 90px -20px rgba(0,0,0,.9), 0 0 120px -30px rgba(255,214,150,.25); }
.th-frame iframe, .th-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.th-cap { margin-top: 12px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; color: rgba(243,234,216,.72); text-align: center; }
.th-cap a { color: inherit; }
.th-x { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(243,234,216,.55); border-radius: 0; background: rgba(8,6,4,.7); color: #f3ead8; cursor: pointer; opacity: 0; transition: opacity .4s var(--ease-calm) .5s, background .2s var(--ease-calm); }
.theater.in .th-x { opacity: 1; }
.th-x:hover { background: rgba(243,234,216,.14); }
.th-x:focus-visible { outline: 2px solid #ffcf6e; outline-offset: 3px; }
.theater.out .th-dim { opacity: 0; transition: opacity .48s var(--ease-calm); }
.theater.out .th-fig { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .3s var(--ease-calm), transform .45s var(--ease-calm); }
.theater.out .th-x { opacity: 0; transition: opacity .2s var(--ease-calm); }
.theater.out .th-cur { opacity: 0; transition: opacity .3s var(--ease-calm); }
/* phones: the player uses the whole width; landscape fills the screen edge to edge */
@media (max-width: 899px) { .th-stage { padding-left: 0; padding-right: 0; } .th-fig { width: 100%; } .th-cap { padding: 0 16px; } }
@media (max-height: 500px) and (orientation: landscape) { .th-stage { padding: 0 max(56px, env(safe-area-inset-right)) 0 max(56px, env(safe-area-inset-left)); } .th-fig { width: min(100%, calc(100dvh * 16 / 9)); } .th-cap { display: none; } }
.theater:fullscreen { background: #000; }
@media (prefers-reduced-motion: reduce) { .theater *, .theater { transition: none !important; } .th-cur { display: none; } }
/* v8.9 [rich] wide chapters (headlines, movie, scoreboard, stats): the title is one row on top, the content gets the
   full width and the rest of the height; desktop never scrolls (the modules paginate), phones scroll */
.ch.ch-wide { grid-template-rows: auto auto auto; align-content: start; }
.ch.ch-wide .ch-stage { container-type: normal; display: block; place-items: initial; min-height: 0; }
.ch-wide .cx-mount { opacity: 0; transition: opacity .6s var(--ease-calm, cubic-bezier(.22,.61,.36,1)); }
.ch-wide .cx-mount.cx-in { opacity: 1; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.ch-wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 12px; align-content: stretch; overflow: hidden; padding-top: 6px; padding-bottom: 10px; }
  .ch.ch-wide .ch-copy { grid-column: 1; grid-row: 1; align-self: end; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; text-align: left; }
  .ch.ch-wide .ch-h { margin: 0; font-size: clamp(30px, 5.2vh, 50px); }
  .ch.ch-wide .ch-s { margin: 0; }
  .ch.ch-wide .ch-stage { grid-column: 1; grid-row: 2; padding: 0; height: 100%; }
  .ch.ch-wide .ch-foot { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 16px; justify-content: flex-start; }
  .ch-wide .cx-mount { height: 100%; }
}
@media (max-width: 999px), (max-aspect-ratio: 5/4) {
  .ch.ch-wide { display: block; }
  .ch.ch-wide > * + * { margin-top: 14px; }
  .ch.ch-wide .ch-stage { padding-bottom: 8px; }
  .ch.ch-wide .ch-foot { padding-bottom: 8px; }
}

/* v9.0 audit: desktop has-more chapters must not scroll (1280x720 and up) — the ranked list goes two-up, the how-to line drops on short screens */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more:not(.ch-info) .fs-rank { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .ch.has-more:not(.ch-info) .fs-rank li:nth-child(2) { border-top: 0; }
  .ch.has-more:not(.ch-info) .fs-rank li { padding: 7px 0; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 940px) {
  .ch.has-more .ch-how { display: none; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 940px) {
  .ch.has-more .ch-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
  .ch.has-more .ch-foot > * { margin-top: 0; margin-bottom: 0; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more:not(.ch-info) .fs-rank li { grid-template-columns: 1.5em minmax(0, 1fr) auto; column-gap: 8px; }
  .ch.has-more:not(.ch-info) .fs-rank .fs-play { width: 36px; height: 36px; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 940px) {
  .ch.has-more .ch-h { font-size: min(clamp(40px, 4.4vw, 68px), 7.2vh); }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 940px) { .era-80s .ch.has-more .ch-h { font-size: clamp(20px, 5.6vw, 34px); } }
/* v9.0 audit: on phones the header shows the chapter number and the date, never two clipped strings side by side (the title is the big headline anyway) */
@media (max-width: 599px) {
  .dk-row .dk-t { display: none; }
  .dk-row .dk-lbl { overflow: visible; text-overflow: clip; flex: 0 0 auto; }
  .dk-row .dk-date { max-width: calc(100% - 96px); }
  .era-80s .dk-row .dk-date { font-size: 13px; }
}
/* v9.0 audit: the arrival date's three lines never touch, whatever the era's face */
.ar-date { line-height: 1.12; } .era-90s .ar-date { line-height: 1.04; } .era-50s .ar-date { line-height: 1.3; }
.ar-dow { margin-bottom: .2em; } .ar-who { margin-top: .4em; }
/* v9.0 audit: the jukebox glow stays inside the jukebox's box; the big temperature clears the rule under it */
.hu-glow { inset: 0 -8%; }
.wx-big { line-height: 1; padding-bottom: .06em; }
/* v9.0 audit: an info stage taller than its room starts at the top instead of centring up under the header */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more.ch-info .ch-stage, .ch.ch-info .ch-stage { grid-row: 1 / -1; align-content: start; }
  .ch-info .ch-stage > * { margin-block: auto; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 800px) {
  .ar-date { font-size: min(clamp(46px, 13.4vw, 132px), 14vh); }
  .era-50s .ar-date, .era-90s .ar-date { font-size: min(clamp(52px, 15vw, 140px), 14vh); }
  .era-80s .ar-date { font-size: min(clamp(26px, 8vw, 64px), 8vh); }
}
@media (max-width: 599px) {
  .era-80s .dk-row .dk-lbl { font-size: 14px; letter-spacing: .04em; }
  .era-80s .dk-row .dk-date { font-size: 12px; letter-spacing: 0; max-width: calc(100% - 84px); }
}

/* v9.2 the personal line: each chapter leads with a sentence to the reader (voice.js), in large display type */
.ch-voice { margin: 8px 0 2px; font-family: var(--ed); font-weight: 400; font-size: clamp(21px, 5.6vw, 28px); line-height: 1.25; color: var(--ink); text-wrap: balance; max-width: 30em; }
.ch-voice[hidden] { display: none; }
.era-80s .ch-voice { font-size: clamp(15px, 4vw, 19px); line-height: 1.5; }
.ch-voice + .ch-h { margin-top: 6px; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch-voice { font-size: clamp(22px, min(2vw, 3.6vh), 34px); }
  .era-80s .ch-voice { font-size: clamp(15px, min(1.3vw, 2.4vh), 21px); }
  .ch.ch-wide .ch-copy .ch-voice { order: 9; flex: 1 0 100%; margin: 0; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .ch.ch-wide .ch-copy .ch-voice { max-width: none; } }

/* v9.3 one motion family: calm ease-out for movement and fades, a single spring for playful toys, ease-in-out for loops */
:root { --ease-calm: cubic-bezier(.22,.61,.36,1); --ease-spring: cubic-bezier(.3,1.4,.4,1); --ease-loop: cubic-bezier(.6,0,.4,1); }
.era { --ease2: var(--ease-calm); }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 820px) {
  .ch.has-more .ch-voice { font-size: 19px; line-height: 1.3; margin-top: 4px; }
  .era-80s .ch.has-more .ch-voice { font-size: 14px; }
  .ch.has-more:not(.ch-info) .fs-rank li { padding: 4px 0; }
  .ch.has-more .fs { padding-top: 10px; padding-bottom: 8px; }
}

/* v9.4 now playing (the landing playlist): square prev / next, the track number and a short title */
.np { display: flex; align-items: stretch; min-width: 0; }
.np[hidden] { display: none; }
.np-b { appearance: none; flex: 0 0 auto; width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }
.np-b:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.np-t { margin: 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 13px; line-height: 1.2; white-space: nowrap; color: var(--ink); }
.np-n { font-family: var(--et); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--acc); }
.np-s { color: var(--ink2, var(--ink)); }
.vc-btn { position: relative; }
.vc-n { position: absolute; left: 0; right: 0; bottom: 5px; font: 700 10px/1 var(--et); letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; color: var(--acc); pointer-events: none; }
.vc-n:empty { display: none; }
.vc.has-np .vc-btn svg { margin-top: -10px; }
/* phones: the popover gets a first row for the playlist */
.vc-pop > .np { grid-column: 1 / -1; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-bottom: 10px; }
.vc-pop > .np .np-t { flex: 1 1 auto; justify-content: center; }
.vc.has-np .vc-pop { width: 272px; }
@media (min-width: 900px) {
  .vc-n { display: none; } .vc.has-np .vc-btn svg { margin-top: 0; }
  .vc > .np { border-right: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); }
  .vc > .np .np-b { border: 0; min-height: 0; }
  .vc > .np .np-prev { border-right: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
  .vc > .np .np-next { border-left: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
}
@media (min-width: 900px) and (max-width: 1239px) { .vc > .np .np-s { display: none; } }
@media (min-width: 900px) and (max-width: 1239px) { .vc.has-np .vc-pop { grid-template-columns: 100px 40px; } }
/* v9.5 chart axis: an end label that would touch the birth-year label steps aside (keeps its slot so the flex spacing holds) */
.pc-axis .pc-hide { visibility: hidden; }

/* v9.5 home at short desktop heights (1280x720, 1366x768): tighten the vertical rhythm so the machine fits one screen.
   Spacing only; the mode selector and dials keep their own sizes. */
@media (min-width: 1000px) and (max-height: 860px) {
  .intro { padding-top: 22px; padding-bottom: 12px; }
  .intro .yeardial { margin-top: 10px; }
  .intro .showcase { margin-top: 4px; }
  .intro .intro-lede { margin-top: 14px; }
  .intro .md, .intro .fields { margin-top: 18px; }
  .intro .go { margin-top: 16px; }
}
/* v9.5 90s (Space Mono): its glyph box is ~1.5em tall, so 1.25 line-height let title and subtitle boxes touch by 4-7px */
.era-90s .fs-l li b { line-height: 1.5; }
.era-90s .st-v { margin-top: 8px; }
/* v9.5 weather: the big italic figure's box reached into the stats rule below */
.wx-big { padding-bottom: 12px; }
/* v9.5 the 90s toy's ".pc" (the desktop computer) shares a class name with the price cards; keep the cards' own layout */
.pcs .pc { display: block; width: auto; justify-items: normal; }
/* v9.6 phone player: one compact row (prev · n/5 · next | mute · slider) so the open panel stays below the chapter's devices */
@media (max-width: 899px) {
  .vc.has-np .vc-pop { width: min(296px, calc(100vw - 40px)); grid-template-columns: auto 40px minmax(56px, 1fr); gap: 8px; padding: 8px; }
  .vc.has-np .vc-pop > .np { grid-column: auto; border-bottom: 0; padding-bottom: 0; }
  .vc.has-np .vc-pop > .np .np-b { width: 40px; min-height: 40px; }
  .vc.has-np .vc-pop > .np .np-s, .vc.has-np .vc-pop .vc-o { display: none; }
  .vc.has-np .vc-pop > .np .np-t { padding: 0 6px; }
  .vc.has-np .vc-pop .vc-m { width: 40px; height: 40px; }
}
.hero { transform-origin: 50% 0; transition: scale .45s var(--ease-calm, cubic-bezier(.22,.61,.36,1)); }
@media (prefers-reduced-motion: reduce) { .hero { transition: none; } }

/* v10.1 [tuner] the top 5 as a radio dial: era glass, scale, five station pins (square), a gliding needle */
.tuner { --tn-bg: #1a1712; --tn-ink: #f2e6c8; --tn-tick: rgba(242,230,200,.55); --tn-nd: #e8412c; --tn-pin: rgba(242,230,200,.14); margin: 0 0 8px; }
.tn-glass { position: relative; height: 64px; padding: 0 10px; background: var(--tn-bg); color: var(--tn-ink); border: 1px solid color-mix(in srgb, var(--tn-ink) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -10px 18px rgba(0,0,0,.35); overflow: hidden; touch-action: pan-y; cursor: ew-resize; outline: none; }
.tn-glass:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tn-sc { position: absolute; left: 10px; right: 10px; top: 5px; height: 12px; margin: 0; font: 600 9.5px/12px var(--et, ui-monospace, monospace); letter-spacing: .04em; }
.tn-sc span { position: absolute; transform: translateX(-50%); }
.tn-sc em { position: absolute; right: -4px; top: 0; font-style: normal; opacity: .6; font-size: 8px; }
.tn-ticks { position: absolute; left: 10px; right: 10px; top: 19px; height: 9px; background: repeating-linear-gradient(90deg, var(--tn-tick) 0 1px, transparent 1px 2.5%); -webkit-mask: linear-gradient(90deg, transparent 4%, #000 8% 92%, transparent 96%); mask: linear-gradient(90deg, transparent 4%, #000 8% 92%, transparent 96%); }
.tn-pins { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 26px; margin: 0; }
.tn-pin { position: absolute; top: 0; transform: translateX(-50%); width: 26px; height: 26px; padding: 0; border: 1px solid color-mix(in srgb, var(--tn-ink) 45%, transparent); border-radius: 0; background: var(--tn-pin); color: var(--tn-ink);
  font: 700 12px/1 var(--et, ui-monospace, monospace); cursor: pointer; transition: background .3s var(--ease-calm), color .3s var(--ease-calm), border-color .3s var(--ease-calm); }
.tn-pin.on { background: var(--tn-ink); color: var(--tn-bg); border-color: var(--tn-ink); }
.tn-pin:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tn-needle { position: absolute; top: 3px; bottom: 34px; width: 2px; margin-left: -1px; background: var(--tn-nd); box-shadow: 0 0 6px var(--tn-nd); pointer-events: none; transition: left .9s var(--ease-calm); }
/* the needle sits between the scale and the pins, so it never crosses a number */
.tuner:not(.tn-on) .tn-needle { opacity: .55; }
.tuner.tn-drag .tn-needle { transition: none; }
.tuner.tn-on .tn-glass { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -10px 18px rgba(0,0,0,.35), inset 0 0 24px color-mix(in srgb, var(--tn-glow, #ffb347) 28%, transparent); }
.t-wood .tn-glass { --tn-bg: linear-gradient(#efe0b6, #d9c48e); --tn-ink: #3a2410; --tn-tick: rgba(58,36,16,.6); --tn-pin: rgba(58,36,16,.08); border: 6px solid #5a3519; border-image: repeating-linear-gradient(90deg, #6b3f1d 0 7px, #573215 7px 11px) 6; }
.t-wood { --tn-nd: #b3261e; --tn-glow: #ffcf6e; }
.t-chrome .tn-glass { --tn-bg: linear-gradient(#0d1a22, #10232e); --tn-ink: #bfe9ff; --tn-tick: rgba(191,233,255,.5); border: 3px solid #b8bec4; }
.t-chrome { --tn-nd: #ff6a3d; --tn-glow: #59c8ff; }
.t-lcd .tn-glass { --tn-bg: #1b2a12; --tn-ink: #a7ff5a; --tn-tick: rgba(167,255,90,.45); --tn-pin: rgba(167,255,90,.08); }
.t-lcd { --tn-nd: #ff3df2; --tn-glow: #a7ff5a; }
.t-boom .tn-glass { --tn-bg: linear-gradient(#20202a, #15151c); --tn-ink: #e9f3ff; --tn-tick: rgba(233,243,255,.45); border: 2px solid #4b4b5a; }
.t-boom { --tn-nd: #3cf2ff; --tn-glow: #3cf2ff; }
.t-app .tn-glass { --tn-bg: rgba(18,18,22,.82); --tn-ink: #f4f4f4; --tn-tick: rgba(244,244,244,.4); backdrop-filter: blur(8px); }
.t-app { --tn-nd: var(--acc); --tn-glow: var(--acc); }
.t-wood .tn-sc, .t-wood .tn-pin { font-family: Georgia, 'Times New Roman', serif; }
@media (prefers-reduced-motion: reduce) { .tn-needle, .tn-pin { transition: none; } }
/* desktop: the dial takes the list header's room; rows tighten so the chapter still fits 100vh */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more:not(.ch-info) .tuner { margin-bottom: 4px; }
  .ch.has-more:not(.ch-info) .tn-glass { height: 58px; }
  .ch.has-more:not(.ch-info) .tn-pins { bottom: 4px; height: 24px; } .ch.has-more:not(.ch-info) .tn-pin { width: 24px; height: 24px; }
  .ch.has-more:not(.ch-info) .tn-needle { bottom: 30px; }
}
.tn-needle { top: 18px; bottom: 34px; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more:not(.ch-info) .tn-glass { height: 52px; }
  .ch.has-more:not(.ch-info) .tn-sc { top: 3px; }
  .ch.has-more:not(.ch-info) .tn-ticks { top: 16px; height: 7px; }
  .ch.has-more:not(.ch-info) .tn-pins { bottom: 3px; height: 22px; } .ch.has-more:not(.ch-info) .tn-pin { width: 22px; height: 22px; font-size: 11px; }
  .ch.has-more:not(.ch-info) .tn-needle { top: 15px; bottom: 26px; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .ch.has-more:not(.ch-info) .fs:has(.tuner) .fs-rank li { padding-top: 3px; padding-bottom: 3px; }
  .ch.has-more:not(.ch-info) .t-wood .tn-glass { border-width: 4px; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 800px) {
  .ch.has-more:not(.ch-info) .tn-glass { height: 45px; }
  .ch.has-more:not(.ch-info) .tn-sc { top: 2px; font-size: 9px; } .ch.has-more:not(.ch-info) .tn-ticks { top: 14px; height: 6px; }
  .ch.has-more:not(.ch-info) .tn-pins { bottom: 2px; height: 20px; } .ch.has-more:not(.ch-info) .tn-pin { width: 20px; height: 20px; font-size: 10px; }
  .ch.has-more:not(.ch-info) .tn-needle { top: 13px; bottom: 23px; }
  .ch.has-more:not(.ch-info) .tuner { margin-bottom: 2px; }
}

/* v10.4 [tv] the weather sky plays on an era set: wood-cabinet TV (48–79), plastic CRT with scanlines (80s–90s), HD broadcast
   graphics (00s on); before TV a printed almanac plate. The frame and station bug sit on the screen's rim, clear of the copy. */
.ch-wx .ch-stage { position: relative; }
.wx-frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.wx-f-cab { border: 14px solid #5b3a1e; border-radius: 26px; box-shadow: inset 0 0 0 3px #2a180b, inset 0 0 50px rgba(0,0,0,.55), 0 10px 28px rgba(0,0,0,.45);
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.12) 2px 3px); border-image: none; }
.wx-f-cab::after { content: ""; position: absolute; inset: -14px; border-radius: 26px; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,220,170,.06) 0 6px, transparent 6px 13px); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 14px; }
.wx-f-crt { border: 12px solid #16161a; border-radius: 18px; box-shadow: inset 0 0 0 2px #2c2c34, inset 0 0 60px rgba(0,0,0,.6), 0 10px 26px rgba(0,0,0,.5);
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.16) 2px 3px), radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(0,0,0,.35)); }
.wx-f-hd { border: 2px solid rgba(255,255,255,.18); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.wx-f-alm { border: 12px solid #efe4c8; box-shadow: inset 0 0 0 2px #7a6a48, 0 10px 26px rgba(0,0,0,.4); background: radial-gradient(ellipse, transparent 55%, rgba(80,60,20,.28)); }
.wx-bug { position: absolute; z-index: 4; top: 22px; right: 24px; margin: 0; display: grid; justify-items: end; gap: 2px; pointer-events: none; text-align: right; }
.wx-bug b { padding: 3px 8px; font: 800 11px/1.2 var(--rt, system-ui); letter-spacing: .16em; text-transform: uppercase; }
.wx-bug span { padding: 2px 8px; font: 600 11px/1.25 var(--et, ui-monospace, monospace); letter-spacing: .06em; }
.wx-cab-bug b { background: #f2e3c2; color: #3a2410; } .wx-cab-bug span { background: rgba(20,12,6,.7); color: #f2e3c2; }
.wx-crt-bug b { background: linear-gradient(#ffd23f, #ff8a00); color: #1a0f2e; } .wx-crt-bug span { background: rgba(10,20,60,.78); color: #e8f0ff; }
.wx-hd-bug b { background: #e8412c; color: #fff; } .wx-hd-bug span { background: rgba(0,0,0,.6); color: #fff; }
.wx-alm-bug b { background: #efe4c8; color: #3b2a10; font-family: Georgia, 'Times New Roman', serif; letter-spacing: .1em; } .wx-alm-bug span { background: rgba(239,228,200,.85); color: #3b2a10; font-family: Georgia, serif; }
.ch-wx .wx { padding: 0 30px 28px; }
/* the moon disc moves down a little so the bug never touches it */
.ch-wx .wx3d-moon { top: calc(12% + 26px); }
.ch-wx .wx3d-cap { left: 24px; top: 22px; }
@media (max-width: 599px) { .wx-f-cab { border-width: 10px; border-radius: 20px; } .wx-f-crt { border-width: 9px; } .wx-f-alm { border-width: 9px; } .wx-bug { top: 16px; right: 16px; } .ch-wx .wx3d-cap { left: 16px; top: 16px; } .ch-wx .wx { padding: 0 20px 20px; } }
.ch-wx .ch-stage:has(.wx-f-cab) .wx3d-mount { border-radius: 26px; } .ch-wx .ch-stage:has(.wx-f-crt) .wx3d-mount { border-radius: 18px; }
@media (max-width: 599px) { .ch-wx .ch-stage:has(.wx-f-cab) .wx3d-mount { border-radius: 20px; } }
@media (max-width: 599px) { .wx-bug { top: 46px; } .ch-wx .wx3d-moon { top: calc(12% + 64px); width: 52px; height: 52px; } }
/* phones: the moon's caption repeats the moon card below, so the screen keeps just the bug; the figure gets the room */
@media (max-width: 599px) { .ch-wx .wx3d-cap { display: none; } .wx-bug { top: 16px; } .wx-bug span { display: none; } .ch-wx .wx3d-moon { top: calc(12% + 30px); } }
@media (max-width: 599px) { .ch-wx .wx3d-moon { top: calc(12% + 46px); } }
/* v10.5 phone song screen: the device art leaves room for Play (fully above the fade) and the dial just below it */
@media (max-width: 899px) and (max-aspect-ratio: 5/4) {
  .ch-song .hero { width: min(100%, calc(30svh * var(--ar, 1))); margin-inline: auto; }
  .ch-song .ch-foot > .tuner { margin: 10px 0 0; }
}
@media (max-width: 899px) and (max-aspect-ratio: 5/4) { .ch-song .ch-stage { height: auto; min-height: 0; flex: 0 0 auto; } }
@media (max-width: 899px) and (max-aspect-ratio: 5/4) { .ch-song.has-more { grid-template-rows: auto minmax(min(31svh, 300px), auto) auto auto; } }
.ch-foot > .tuner { width: min(100%, 460px); align-self: center; justify-self: center; margin-inline: auto; box-sizing: border-box; }
@media (max-width: 899px) and (max-aspect-ratio: 5/4) {
  .ch-song .hero { width: min(100%, calc(var(--song-hero, 30svh) * var(--ar, 1))); }
  .ch-song.has-more { grid-template-rows: auto minmax(min(var(--song-hero, 31svh), 300px), auto) auto auto; }
}
/* v10.6 phones (2D scene): the room stays sharp (the 540px pre-blurred twin was being upscaled 3x); a gradient scrim keeps the words readable */
@media (max-width: 899px) and (max-aspect-ratio: 5/4) {
  .era:not(.has-stage) .sc[data-mode="room"] .sc-room { opacity: 1; }
  .era:not(.has-stage) .sc[data-mode="room"] .sc-blur { opacity: 0; }
  .era:not(.has-stage) .sc[data-mode="room"] .sc-veil { background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 30%, rgba(0,0,0,.48) 62%, rgba(0,0,0,.8) 100%); }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .era .ch.ch-song .ch-h.h-long, .era .ch.ch-film .ch-h.h-long { font-size: clamp(30px, 5.4vh, 48px); } .era-80s .ch.ch-song .ch-h.h-long, .era-80s .ch.ch-film .ch-h.h-long { font-size: 26px; } }
@media (max-width: 899px) and (max-aspect-ratio: 5/4) { .era .ch.ch-song .ch-h.h-long, .era .ch.ch-film .ch-h.h-long { font-size: clamp(26px, 8vw, 36px); } .era-80s .ch.ch-song .ch-h.h-long, .era-80s .ch.ch-film .ch-h.h-long { font-size: 22px; } }
/* v10.9 tuner: the lit pin keeps a readable number on gradient glass; on phones the pins sit clear below the scale */
.tn-pin.on { color: var(--tn-onink, #101014); }
.t-wood .tn-pin.on { --tn-onink: #f3e6c4; }
@media (max-width: 899px) and (max-aspect-ratio: 5/4) { .ch-song .tn-glass { height: 76px; } .ch-song .tn-pins { bottom: 6px; } }
/* [song] the jukebox title card: the title stays on one line, sized to its length; a parenthetical gets its own line */
.hero .hu-card b { white-space: nowrap; font-size: min(11cqi, calc(132cqi / var(--tl, 12))); }
.hero .hu-card b .hu-par { font-size: .62em; }
/* the card art has a centre divider that cut through the title: draw its left half twice (mirrored) instead */
.hero .hu-card .hu-cardimg { opacity: 0; }
.hero .hu-card::before, .hero .hu-card::after { content: ''; position: absolute; top: 0; bottom: 0; width: 50.2%; background: url('/art/shared/jukebox-song-card.webp?v=9') left center / 212% 100% no-repeat; pointer-events: none; z-index: 0; }
.hero .hu-card b, .hero .hu-card span { z-index: 1; }
.hero .hu-card::before { left: 0; } .hero .hu-card::after { right: 0; transform: scaleX(-1); }

/* ===== [arrival v10] the "You've just landed" screen: one editorial lockup for every era and every window =====
   kicker · WEEKDAY · Month Day (one line, never wraps) · Year · who line, then the song control. The 50s street card sits
   beside the lockup on wide windows (incl. short landscape ones) and above it on phones. Type scales with min(vw, vh);
   eras.js (fitArrival) then shrinks --ar-fit until the month line fits its column and the whole lockup fits the screen. */
#era .ch-arrive { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: end; gap: 0; padding-top: 8px; padding-bottom: 14px; overflow-x: hidden; }
#era .ch-arrive .ar { --ar-fs: clamp(40px, min(12.6vw, 10.5vh), 128px); grid-row: 1; grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; row-gap: clamp(14px, 2.6vh, 26px); width: 100%; max-width: 1200px; margin: 0 auto; padding: 0; min-width: 0; }
#era .ch-arrive .ar-lock { display: grid; justify-items: start; row-gap: 0; min-width: 0; }
#era .ch-arrive .ar-k { margin: 0 0 clamp(10px, 1.8vh, 18px); display: flex; align-items: center; gap: 12px; font-family: var(--et); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--acc); line-height: 1; }
#era .ch-arrive .ar-k::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
#era .ch-arrive .ar-date { margin: 0; display: grid; justify-items: start; font-family: var(--ed); font-weight: 400; color: var(--ink); font-size: calc(var(--ar-fs) * var(--ar-fit, 1)); line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
#era .ch-arrive .ar-date > span { display: block; white-space: nowrap; }
#era .ch-arrive .ar-dow { font-family: var(--et); font-size: max(12px, .17em); font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ink2); margin: 0 0 .55em; line-height: 1; }
#era .ch-arrive .ar-md { line-height: 1.08; padding-bottom: .04em; }
#era .ch-arrive .ar-y { color: var(--acc); line-height: 1.08; margin: 0; }
#era .ch-arrive .ar-who { margin: clamp(10px, 1.8vh, 18px) 0 0; max-width: 32em; font-family: var(--et); font-size: clamp(16px, min(2vw, 3vh), 22px); line-height: 1.35; color: var(--ink); text-wrap: balance; }
#era .ch-arrive .ar-act { display: grid; justify-items: start; row-gap: 10px; min-width: 0; }
#era .ch-arrive .ar-act .sp { justify-items: start; gap: 10px; }
#era .ch-arrive .sp-btn { min-height: 52px; padding: 0 22px 0 18px; gap: 12px; font-size: 13px; letter-spacing: .14em; box-shadow: none; border: 1px solid var(--acc); border-radius: 0; }
#era .ch-arrive .sp-btn:hover { background: color-mix(in srgb, var(--acc) 86%, #fff); }
#era .ch-arrive .sp-meta { display: block; max-width: min(100%, 34em); font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#era .ch-arrive .sp-cr { display: none; } /* the player bar below names the track and the credit */
#era .ch-arrive .era-cap { min-height: 0; max-width: 40em; font-size: 14px; }
#era .ch-arrive .era-cap:empty { display: none; }
/* the 50s street card */
#era .ch-arrive .ar-card { margin: 0; justify-self: start; width: min(100%, 520px); padding: 9px 9px 0; background: #f3ead8; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 22px 44px -12px rgba(0,0,0,.6); transform: rotate(-1.2deg); }
#era .ch-arrive .ar-card img { display: block; width: 100%; height: auto; }
#era .ch-arrive .ar-card figcaption { padding: 7px 4px 9px; font-family: var(--ed); font-size: clamp(15px, 2.2vh, 20px); line-height: 1; color: #6b3a2c; text-align: left; }
/* entrance: calm, staggered, nothing bounces */
#era .ch-arrive .ar > *, #era .ch-arrive .ar-lock > * { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .9s var(--ease2), transform 1.1s var(--ease-calm, cubic-bezier(.22,.61,.36,1)); }
#era .ch-arrive .ar > .ar-lock { opacity: 1; transform: none; }
#era .ch-arrive.on .ar > *, #era .ch-arrive.on .ar-lock > * { opacity: 1; transform: none; }
#era .ch-arrive.on .ar > .ar-card { transform: rotate(-1.2deg); transition-delay: .1s; }
#era .ch-arrive .ar > .ar-card { transform: rotate(-3deg) translate3d(0, 14px, 0); }
#era .ch-arrive.on .ar-k { transition-delay: .2s; } #era .ch-arrive.on .ar-dow { transition-delay: .3s; } #era .ch-arrive.on .ar-date { transition-delay: .3s; }
#era .ch-arrive.on .ar-who { transition-delay: .55s; } #era .ch-arrive.on .ar > .ar-act { transition-delay: .75s; }
@media (prefers-reduced-motion: reduce) { #era .ch-arrive .ar > *, #era .ch-arrive .ar-lock > * { transition: opacity .2s linear !important; transform: none !important; } }
/* phones (portrait): stacked, bottom-aligned above the nav; the card never takes more than ~28% of the height */
@media (max-aspect-ratio: 5/4) {
  #era .ch-arrive .ar-card { width: min(100%, 520px, calc(28svh * 2.13 + 18px)); }
}
/* wide and landscape windows (incl. short ones like 820×390): the lockup on the left, the card on the right, one grid */
@media (min-aspect-ratio: 5/4) and (min-width: 560px) {
  #era .ch-arrive { align-items: center; padding-bottom: clamp(10px, 2.4vh, 28px); }
  #era .ch-arrive .ar { --ar-fs: clamp(34px, min(8.2vw, 12.5vh), 136px); align-content: end; align-self: end; }
  #era .ch-arrive .ar.ar-has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(28px, 5vw, 88px); align-items: center; align-self: center; }
  #era .ch-arrive .ar-has-art > .ar-lock { grid-column: 1; grid-row: 1; align-self: end; }
  #era .ch-arrive .ar-has-art > .ar-act { grid-column: 1; grid-row: 2; align-self: start; }
  #era .ch-arrive .ar-has-art > .ar-card { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; width: min(100%, 560px, calc((100svh - 220px) * 2.13)); }
}
@media (min-aspect-ratio: 5/4) and (max-height: 520px) {
  #era .ch-arrive { padding-top: 0; padding-bottom: 6px; }
  #era .ch-arrive .ar { row-gap: 10px; }
  #era .ch-arrive .ar-k { margin-bottom: 8px; font-size: 11px; }
  #era .ch-arrive .ar-who { font-size: 15px; margin-top: 8px; }
  #era .ch-arrive .sp-btn { min-height: 44px; }
  #era .ch-arrive .sp-meta, #era .ch-arrive .era-cap { display: none; }
}
/* the arrival backdrop: sharp, with a vignette and a quiet scrim only where the words sit */
#era[data-ch="arrive"] .sc-veil, #era.has-stage[data-ch="arrive"] .sc-veil { background: radial-gradient(130% 95% at 62% 42%, rgba(0,0,0,0) 38%, rgba(0,0,0,.5) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
@media (min-aspect-ratio: 5/4) and (min-width: 560px) {
  #era[data-ch="arrive"] .sc-veil, #era.has-stage[data-ch="arrive"] .sc-veil { background: radial-gradient(120% 110% at 66% 40%, rgba(0,0,0,0) 36%, rgba(0,0,0,.48) 100%), linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.3) 38%, rgba(0,0,0,0) 62%), linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 70%, rgba(0,0,0,.5)); }
}
.era-50s .sc-street img { filter: none; }
#era .ch-arrive .ar-md > span { display: inline; }
#era .ch-arrive .ar { --ar-fs: clamp(40px, min(14vw, 10.5vh), 128px); }
@media (min-aspect-ratio: 5/4) and (min-width: 560px) { #era .ch-arrive .ar { --ar-fs: clamp(34px, min(9vw, 14vh), 150px); } }
.era-80s#era .ch-arrive .ar-md, .era-80s#era .ch-arrive .ar-y { line-height: 1.3; }
.era-80s#era .ch-arrive .ar-dow { font-size: max(13px, .2em); }
/* VT323 sets small on its body: the 90s lockup scales up so it carries the same weight as the other eras */
.era-90s#era .ch-arrive .ar-date { font-size: calc(var(--ar-fs) * var(--ar-fit, 1) * 1.4); line-height: .95; }
.era-90s#era .ch-arrive .ar-md, .era-90s#era .ch-arrive .ar-y { line-height: .95; }
.era-90s#era .ch-arrive .ar-dow { font-size: max(12px, .13em); }
/* [sweep v10] short landscape windows below desktop width (phones on their side, short browser windows ~820×390):
   the chapter header is compact so the chapter's own content starts on the first screen, not under a giant title */
@media (min-aspect-ratio: 5/4) and (max-height: 600px) and (max-width: 999px) {
  #era .ch:not(.ch-arrive) .ch-h { font-size: clamp(24px, 9vh, 42px); line-height: 1.08; margin-top: 2px; }
  .era-80s#era .ch:not(.ch-arrive) .ch-h { font-size: clamp(16px, 5.4vh, 24px); line-height: 1.4; }
  #era .ch:not(.ch-arrive) .ch-voice { font-size: clamp(14px, 4.2vh, 18px); line-height: 1.3; max-width: 52em; margin: 2px auto 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .era-80s#era .ch:not(.ch-arrive) .ch-voice { font-size: 13px; }
  #era .ch:not(.ch-arrive) .ch-voice[hidden] { display: none; }
  #era .ch:not(.ch-arrive) .ch-k { font-size: 11px; }
  #era .ch:not(.ch-arrive) .ch-s { font-size: 13px; margin-top: 2px; }
  #era .ch:not(.ch-arrive) { row-gap: 8px; padding-top: 2px; }
}
@media (min-aspect-ratio: 5/4) and (max-height: 600px) and (max-width: 999px) {
  #era:not([data-ch="arrive"]) .sc-veil { background: linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.44) 36%, rgba(0,0,0,.26) 62%, rgba(0,0,0,.72) 100%) !important; }
}
/* [travel] the header's "travel to another date" button and its picker sheet. Era tokens only. */
.dk-tt { position: relative; flex: 0 0 auto; align-self: flex-start; display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0; padding: 0; border: 1px solid var(--rule, color-mix(in srgb, var(--ink) 42%, transparent)); border-radius: 0; background: color-mix(in srgb, var(--floor) 78%, transparent); color: var(--ink); cursor: pointer; transition: border-color .25s, color .25s, background .25s; -webkit-tap-highlight-color: transparent; }
.dk-tt::after { content: ''; position: absolute; inset: -8px -10px; } /* a bigger target than it looks */
.dk-tt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.dk-tt:hover, .dk-tt[aria-expanded="true"] { border-color: var(--acc); color: var(--acc); }
.dk-tt:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.dk-tt:active { transform: scale(.96); }
.at-start .dk-tt { opacity: 1; }
@media (pointer: coarse) { .dk-tt { width: 30px; height: 30px; margin-top: -2px; } .dk-tt svg { width: 17px; height: 17px; } }
@media (max-width: 599px) { .dk-row .dk-date { max-width: calc(100% - 150px); } .era-80s .dk-row .dk-date { max-width: calc(100% - 140px); } }

.tt { position: fixed; inset: 0; z-index: 40; font-family: var(--et); color: var(--ink); --tt-pad: 22px; }
.tt-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.56); opacity: 0; transition: opacity .32s var(--ease-calm, ease); }
.tt-sheet { position: absolute; top: calc(60px + var(--safe-t, 0px)); right: max(18px, calc((100% - 1200px) / 2)); width: min(400px, calc(100% - 36px)); max-height: calc(100% - 80px - var(--safe-t, 0px)); overflow: auto; overscroll-behavior: contain; background: var(--surf, var(--floor)); border: 1px solid var(--rule, color-mix(in srgb, var(--ink) 30%, transparent)); border-top: 3px solid var(--acc); border-radius: 0; box-shadow: 0 24px 60px rgba(0,0,0,.5); padding: 18px var(--tt-pad) var(--tt-pad); opacity: 0; transform: translateY(-8px); transition: opacity .32s var(--ease-calm, ease), transform .42s var(--ease-calm, ease); }
.tt.on .tt-scrim { opacity: 1; } .tt.on .tt-sheet { opacity: 1; transform: none; }
.tt.off .tt-scrim, .tt.off .tt-sheet { opacity: 0; transition-duration: .22s; }
.tt-calm .tt-sheet, .tt-calm .tt-scrim { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .tt-sheet, .tt-scrim { transition: opacity .2s; transform: none; } }
.tt-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tt-h { margin: 0; font-family: var(--et); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 1.3; }
.tt-x { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--rule, color-mix(in srgb, var(--ink) 30%, transparent)); border-radius: 0; background: transparent; color: var(--ink); font: 20px/1 var(--et); cursor: pointer; }
.tt-f { margin: 0; }
.tt-date { display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tt-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tt-fl { display: grid; gap: 5px; min-width: 0; }
.tt-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.tt-k i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .85; }
.tt select, .tt input { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 44px; padding: 0 10px; border: 1px solid var(--rule, color-mix(in srgb, var(--ink) 34%, transparent)); border-radius: 0; background: var(--floor); color: var(--ink); font: 16px/1.2 var(--et); letter-spacing: 0; }
.tt select { padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 5px 5px; background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px; background-repeat: no-repeat; }
.tt input::placeholder { color: var(--ink2); opacity: .8; }
.tt select:focus-visible, .tt input:focus-visible, .tt button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.tt.bad .tt-fy input { border-color: var(--acc); }
.tt-pre { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tt-p { min-height: 36px; max-width: 100%; padding: 0 12px; border: 1px solid var(--rule, color-mix(in srgb, var(--ink) 30%, transparent)); border-radius: 0; background: transparent; color: var(--ink); font: 13px/1.1 var(--et); letter-spacing: .02em; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-p:hover { border-color: var(--acc); }
.tt-rw { color: var(--ink2); }
.tt-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule, color-mix(in srgb, var(--ink) 18%, transparent)); }
.tt-n { margin: 12px 0 0; min-height: 1.3em; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.tt.bad .tt-n { color: var(--ink); }
.tt.bad .tt-n::before { content: '! '; color: var(--acc); font-weight: 700; }
.tt-act { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin: 14px 0 0; }
.tt-b { min-height: 48px; padding: 0 16px; border: 1px solid var(--rule, color-mix(in srgb, var(--ink) 34%, transparent)); border-radius: 0; background: transparent; color: var(--ink); font: 14px/1 var(--et); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tt-go { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 700; }
.tt-go:hover { filter: brightness(1.06); }
.era-80s.tt .tt-h, .era-80s.tt .tt-b { font-size: 16px; letter-spacing: .06em; }
.era-80s.tt select, .era-80s.tt input { font-size: 20px; }
.era-80s.tt .tt-p, .era-80s.tt .tt-n, .era-80s.tt .tt-k { font-size: 16px; }
@media (max-width: 599px) {
  .tt-sheet { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: calc(100% - 24px - var(--safe-t, 0px)); border-left: 0; border-right: 0; border-bottom: 0; padding: 16px calc(18px + var(--safe-r, 0px)) calc(18px + var(--safe-b, 0px)) calc(18px + var(--safe-l, 0px)); transform: translateY(24px); }
  .tt-opt { grid-template-columns: 1fr; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .tt-sheet { top: calc(12px + var(--safe-t, 0px)); max-height: calc(100% - 24px); width: min(560px, calc(100% - 36px)); padding: 12px 18px 14px; }
  .tt-hd { margin-bottom: 8px; } .tt-pre { margin-top: 8px; } .tt-opt { margin-top: 8px; padding-top: 8px; } .tt-act { margin-top: 8px; } .tt-n { margin-top: 6px; }
  .tt select, .tt input { height: 38px; } .tt-b { min-height: 42px; }
}
@media (min-aspect-ratio: 5/4) and (max-height: 600px) and (max-width: 999px) {
  #era .ch-wx .wx-hi { font-size: clamp(64px, 30vh, 150px); line-height: .9; }
  .era-80s#era .ch-wx .wx-hi { font-size: clamp(44px, 19vh, 96px); }
}
@media (min-aspect-ratio: 5/4) and (max-height: 600px) and (max-width: 999px) {
  #era .ch-wx .ch-stage { justify-content: flex-start; padding-top: 44px; min-height: min(70vh, 300px); }
}
/* [palette] shared UI reads only the era tokens (artifacts — papers, tickets, screens, catalogues — keep their own period colours) */
#era .ch-k, #era .ch-s, #era .ch-how, #era .ch-voice, #era .ch-h, #era .dk-lbl, #era .dk-date, #era .ch-arrive .ar-k, #era .ch-arrive .ar-dow, #era .ch-arrive .ar-who, #era .ch-foot { text-shadow: 0 1px 2px color-mix(in srgb, var(--bg) 70%, transparent), 0 0 22px color-mix(in srgb, var(--bg) 55%, transparent); }
#era .ch-s, #era .ch-how { color: var(--ink2); }
#era .tv-guide { padding: 14px 16px 10px; background: color-mix(in srgb, var(--surf) 90%, transparent); border: 1px solid var(--rule); }
#era .tv-row { color: var(--ink2); } #era .tv-row:hover, #era .tv-row.cur { color: var(--ink); }
#era .tv-row.cur .tv-ch { color: var(--acc-ink); }
#era .tv-rk { opacity: 1; color: var(--ink2); }
#era .mx-b-solid:hover { color: var(--acc-ink); }
#era .sp-btn { color: var(--acc-ink); }
/* [header] phones: the date and the traveller's name are never cut off. The date takes the room the (short) chapter label
   leaves; if "· Name" doesn't fit, it drops to a second line as a whole, right-aligned, instead of an ellipsis. */
@media (max-width: 599px) {
  #era .dk-row { align-items: flex-start; }
  #era .dk-row .dk-lbl { flex: 0 1 auto; min-width: 0; }
  #era .dk-row .dk-date { flex: 1 1 auto; min-width: 0; max-width: none; white-space: normal; overflow: visible; text-overflow: clip; text-align: right; overflow-wrap: anywhere; line-height: 1.25; }
  #era .dk-row .dk-who { display: inline-block; white-space: normal; max-width: 100%; vertical-align: top; }
}
