:root { --bg: #150F1D; --ink: #F7EFF6; --soft: #DACDE4; --dim: #A193B4; --pink: #E8BAD6; --lilac: #C8B4EC; --line: #EAD8F224; --panel: rgba(36,26,48,.92);
    --serif: "Bodoni Moda", Georgia, serif; --sans: "Instrument Sans", system-ui, sans-serif; --mono: "JetBrains Mono", monospace; --gut: clamp(16px, 4vw, 48px); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); }
button { font: inherit; color: inherit; }
a { color: inherit; }
canvas#sky { position: fixed; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
canvas#sky.drag { cursor: grabbing; } canvas#sky.on-star { cursor: pointer; }
.hud { position: fixed; z-index: 2; }
.label { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #A79FBA; }
.pill { background: none; border: 1px solid #ffffff38; color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.pill:hover { background: #ffffff14; border-color: #ffffff70; }
.pill.solid { background: var(--pink); border-color: var(--pink); color: #2B1A30; }
.pill.solid:hover { background: #F4D6E6; }

/* top bar */
.top { left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 18px; padding: 18px var(--gut); pointer-events: none; }
.top > * { pointer-events: auto; }
.top .me { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-decoration: none; margin-right: auto; }
.top nav { display: flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #1a1224b3; }
.top nav a, .top nav button { display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--soft); text-decoration: none; transition: background .15s, color .15s; }
.top nav a:hover, .top nav button:hover { color: var(--ink); background: #ffffff12; }
.top nav .on { color: #2B1A30; background: var(--pink); }
.top nav a span { color: var(--pink); transition: transform .15s; } .top nav a:hover span { transform: translate(2px, -2px); }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 230px; height: 36px; background: #1a1224b3; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); padding: 0 40px 0 34px; font: 13px var(--sans); outline: none; transition: border-color .15s, background .15s, width .2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--lilac); background: #241a30e6; width: 260px; }
.search input::-webkit-search-cancel-button { display: none; }
.search svg { position: absolute; left: 13px; width: 14px; height: 14px; color: var(--dim); pointer-events: none; }
.search kbd { position: absolute; right: 9px; font: 11px/18px var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; pointer-events: none; }
.search:focus-within kbd { opacity: 0; }
.results { position: absolute; right: 0; top: 40px; width: 320px; max-height: 60vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: none; }
.results.on { display: block; }
.results button { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.results button:hover, .results button.sel { background: #ffffff14; }
.results b { font-weight: 500; font-size: 14px; } .results small { display: block; color: var(--dim); font-size: 12px; } .results em { font: normal 10px var(--mono); color: var(--pink); text-transform: uppercase; letter-spacing: .06em; align-self: center; }

/* hero */
.hero { left: var(--gut); top: 74px; max-width: 470px; pointer-events: none; transition: opacity .6s; }
.hero > * { pointer-events: auto; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; margin: 10px 0 0; letter-spacing: -.02em; text-shadow: 0 4px 40px #000; pointer-events: none; }
.hero h1 em { color: var(--pink); }
.hero p { color: #DDD5E6; font-size: 15px; line-height: 1.5; max-width: 42ch; margin: 14px 0 0; text-shadow: 0 1px 2px #000, 0 2px 20px #000; pointer-events: none; transition: opacity .6s; }
.stats { display: flex; gap: 22px; margin-top: 18px; pointer-events: none; }
.stats div { font: 10px var(--mono); color: #A79FBA; text-shadow: 0 1px 2px #000; text-transform: uppercase; letter-spacing: .08em; }
.stats b { display: block; font: 400 24px var(--serif); color: var(--ink); letter-spacing: 0; }
.ctas { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -90px -120px -90px -260px; background: radial-gradient(ellipse 60% 55% at 42% 50%, rgba(21,15,29,.88), rgba(21,15,29,.6) 55%, rgba(21,15,29,0) 100%); pointer-events: none; }
.hero.quiet { opacity: .82; } .hero.quiet:hover { opacity: 1; }
.hero.quiet p { opacity: 0; transition: opacity .6s; } .hero.quiet:hover p { opacity: 1; }

/* connections */
.threads { right: var(--gut); top: 50%; transform: translateY(-50%); width: 236px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 12px; }
.threads .label { margin: 0 6px 8px; } .threads .label.lines { margin-top: 14px; }
.thread { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; background: linear-gradient(var(--c), var(--c)) no-repeat 30px calc(100% - 3px) / calc((100% - 42px) * var(--w)) 2px; border: 1px solid transparent; border-radius: 10px; padding: 7px 10px 9px; cursor: pointer; color: var(--soft); font-size: 13px; text-align: left; }
.thread em { font-style: normal; }
.thread:hover { background-color: #ffffff0d; color: var(--ink); }
.thread.on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background-color: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); }
.thread i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.thread span { font: 11px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.thread.pairs { margin-bottom: 6px; }
.threads .note { font-size: 11.5px; line-height: 1.45; color: var(--dim); margin: 8px 8px 0; }
.years { display: flex; gap: 6px 10px; margin: 0 6px; flex-wrap: wrap; font: 10px var(--mono); color: var(--dim); }
.years p { margin: 0; font: 11.5px/1.45 var(--sans); color: var(--dim); } .years p span { display: inline-flex; align-items: center; font: 10px var(--mono); margin-left: 2px; }
.years i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }

/* timeline */
.time { left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 2 * var(--gut))); text-align: center; }
.time .date { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 36px); text-shadow: 0 2px 20px #000; }
.time .lit { font: 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.time .lit b { color: var(--ink); font-weight: 500; }
.track { position: relative; margin-top: 10px; }
.track canvas { display: block; width: 100%; height: 34px; }
.track input { width: 100%; margin: 4px 0 0; accent-color: var(--pink); }
.ticks { position: absolute; left: 0; right: 0; top: -6px; height: 0; }
.ticks button { position: absolute; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--bg); background: var(--ink); padding: 0; cursor: pointer; }
.ticks button:hover, .ticks button.on { background: var(--pink); transform: scale(1.3); }
.time .row { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--dim); margin-top: 2px; }
.time .btns { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }

/* hover tip */
.tip { position: fixed; z-index: 4; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); pointer-events: none; opacity: 0; transition: opacity .12s; max-width: 330px; }
.tip.on { opacity: 1; }
.tip img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #222; }
.tip b { display: block; font-size: 14px; font-weight: 500; } .tip span { display: block; font-size: 12px; color: var(--soft); }
.tip i { display: block; font: normal 10px var(--mono); color: var(--pink); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* song and artist cards */
.card { right: var(--gut); top: 72px; width: 340px; max-height: calc(100vh - 230px); overflow: auto; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; transform: translateX(calc(100% + 60px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card.on { transform: none; }
.card .x { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: var(--dim); font-size: 20px; cursor: pointer; }
.card .head { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; margin-right: 18px; }
.card .head > img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: #2B2138; }
.card h2 { font: 400 24px/1.1 var(--serif); margin: 4px 0 2px; }
.card .who { background: none; border: 0; padding: 0; color: var(--soft); font-size: 14px; cursor: pointer; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 3px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 18px 0 0; }
.facts div { font: 10px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .07em; }
.facts b { display: block; font: 500 15px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; margin-top: 3px; }
.facts .wide { grid-column: 1 / -1; }
.life { margin-top: 16px; }
.life svg { width: 100%; height: 26px; display: block; }
.mates { margin-top: 16px; }
.mates button { display: flex; justify-content: space-between; gap: 8px; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; cursor: pointer; text-align: left; font-size: 13px; }
.mates button:hover b { color: var(--pink); }
.mates b { font-weight: 500; } .mates small { color: var(--dim); font: 11px var(--mono); white-space: nowrap; }
.card .play { margin-top: 16px; width: 100%; }
.mood { display: inline-block; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; }

/* tour */
.tour { position: fixed; left: 50%; bottom: 196px; transform: translate(-50%, 20px); width: min(560px, calc(100% - 2 * var(--gut))); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 4; }
.tour.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.tour h3 { font: 400 28px/1.1 var(--serif); margin: 2px 0 6px; }
.tour .q { font: italic 400 17px var(--serif); color: var(--pink); margin-top: 6px; }
.tour .count { font: 400 64px/1 var(--serif); color: var(--ink); margin: 2px 0 6px; letter-spacing: -.02em; text-shadow: 0 0 30px #E8BAD666; }
.tour .count { font-size: 84px; font-variant-numeric: tabular-nums; }
.tour #tourText, .tour .verdict, .tour .why { transition: opacity .7s ease .15s, transform .7s ease .15s; }
.tour.counting #tourText, .tour.counting .verdict, .tour.counting .why { opacity: 0; transform: translateY(6px); }
.tour .count.land { animation: land 1.1s cubic-bezier(.2, 1.5, .35, 1); color: #fff; text-shadow: 0 0 24px #E8BAD6, 0 0 60px #E8BAD699; }
@keyframes land { 0% { transform: scale(1.22); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
.tour .count { transform-origin: left center; transition: color 1.6s, text-shadow 1.6s; }
.tourvideo { margin-top: 12px; display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; }
.tourvideo[hidden] { display: none; }
.tourvideo iframe { width: 160px; height: 90px; border: 0; border-radius: 8px; }
.tourvideo span { font: italic 15px var(--serif); color: var(--pink); }
.tour .verdict { margin-top: 10px !important; color: var(--ink) !important; font-weight: 500; font-size: 14px; }
.tour p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.45; }
.tour .ctl { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.tour .ctl .label { margin-right: auto; }
.tour .bar { height: 2px; background: #ffffff1a; margin-top: 12px; border-radius: 2px; overflow: hidden; } .tour .bar i { display: block; height: 100%; width: 0; background: var(--pink); }

/* modal (decoder) and drawer (case study) */
.scrim { position: fixed; inset: 0; z-index: 9; background: #04030acc; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 10; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(760px, calc(100% - 2 * var(--gut))); max-height: calc(100% - 40px); overflow: auto; background: #1E1628; border: 1px solid var(--line); border-radius: 18px; padding: 28px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal h2, .drawer h2 { font: 400 34px/1.05 var(--serif); margin: 6px 0 18px; }
.modal .x, .drawer .x { position: absolute; right: 16px; top: 14px; background: none; border: 0; color: var(--dim); font-size: 24px; cursor: pointer; }
.decode { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.decode div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.decode svg { width: 54px; height: 54px; background: #150F1D; border-radius: 10px; }
.decode b { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); margin-bottom: 3px; }
.decode p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--soft); }

.drawer { position: fixed; z-index: 10; right: 0; top: 0; bottom: 0; width: min(640px, 100%); overflow: auto; background: #1B1425; border-left: 1px solid var(--line); padding: 40px clamp(20px, 4vw, 44px) 60px; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.drawer.on { transform: none; }
.drawer section { margin-top: 38px; }
.drawer h3 { font: 400 24px var(--serif); margin: 6px 0 10px; }
.drawer p, .drawer li { color: var(--soft); font-size: 15px; line-height: 1.6; }
.drawer p b, .drawer li b { color: var(--ink); font-weight: 500; }
.drawer code { font: 13px var(--mono); color: var(--pink); }
.big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.big div { font: 10px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid var(--line); padding-top: 10px; }
.big b { display: block; font: 400 30px var(--serif); color: var(--ink); letter-spacing: 0; }
.flow { display: grid; gap: 0; margin-top: 16px; }
.flow div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #ffffff06; }
.flow div b { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.flow div span { font-size: 14px; color: var(--soft); line-height: 1.5; }
.flow i { display: block; text-align: center; color: var(--dim); font-style: normal; line-height: 22px; }
.funnel { margin-top: 14px; display: grid; gap: 6px; }
.funnel div { display: grid; grid-template-columns: 1fr auto; font-size: 13px; color: var(--soft); position: relative; padding: 6px 10px; }
.funnel div::before { content: ""; position: absolute; inset: 0; width: var(--w); background: #E8BAD61f; border-radius: 6px; z-index: -1; }
.funnel b { font: 500 13px var(--mono); color: var(--ink); }
.reveals { display: grid; gap: 0; margin-top: 12px; }
.reveals div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.reveals b { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); padding-top: 3px; }
.reveals span { font-size: 14px; line-height: 1.5; color: var(--soft); }
.hard { counter-reset: hard; padding: 0; list-style: none; }
.hard li { counter-increment: hard; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); position: relative; }
.hard li::before { content: counter(hard, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 500 12px var(--mono); color: var(--pink); }
.credit { border-top: 1px solid var(--line); padding-top: 24px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.live { font: 12px var(--mono); color: var(--dim); }
.live b { color: var(--ink); font-weight: 500; }

/* the prelude: words in the middle of the screen while we fly out from Earth */
.prelude { position: fixed; inset: 0; z-index: 8; display: grid; place-items: end center; padding-bottom: 17vh !important; pointer-events: none; text-align: center; padding: 0 24px; }
/* readable at a glance: a quick fade with no blur, a soft dark band behind it, and a slow drift so it still feels alive */
.prelude .line { position: relative; opacity: 0; transform: translateY(8px); transition: opacity .35s ease-out, transform 2.4s cubic-bezier(.2,.8,.2,1); }
.prelude .line::before { content: ""; position: absolute; inset: -40px -90px; z-index: -1; background: radial-gradient(closest-side, #000000b0, #00000000); }
.prelude .line.on { opacity: 1; transform: none; }
.prelude b { display: block; font: 400 clamp(34px, 5.2vw, 76px)/1.05 var(--serif); text-wrap: balance; letter-spacing: -.01em; text-shadow: 0 0 40px #000, 0 0 80px #000; }
.prelude span { display: block; margin-top: 14px; font: 500 14px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); text-shadow: 0 0 20px #000; }
.skip { position: fixed; z-index: 9; right: 24px; bottom: 22px; background: none; border: 1px solid #ffffff30; border-radius: 999px; color: #CFC6DA; padding: 8px 14px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: none; }
.skip:hover { color: var(--ink); border-color: #ffffff70; }
body.intro .skip { display: block; }
body.intro .hud, body.intro .hud > * { animation: none !important; }
body.intro .hud, body.intro .tip { opacity: 0 !important; visibility: hidden; }

/* the replay: only the sky, the date, the timeline and the story's moments until the four years are done */
.hero, .threads, .top, .time .lit, .time .row, .time .btns, .ticks { transition: opacity 1.2s, visibility 1.2s; }
body.replay .hero, body.replay .threads, body.replay .top, body.replay .card, body.replay .time .lit, body.replay .time .row, body.replay .time .btns, body.replay .ticks, body.replay .tip { opacity: 0 !important; visibility: hidden; pointer-events: none; }
/* during the replay the controls sit where the nav was: speed, skip and exit, always in reach */
.replaybar { position: fixed; z-index: 9; top: 18px; right: var(--gut); display: flex; align-items: center; gap: 2px; height: 38px; padding: 3px 3px 3px 14px; border: 1px solid var(--line); border-radius: 999px; background: #1a1224cc; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s, transform .3s, visibility .3s; }
body.replay:not(.choosing) .replaybar { opacity: 1; visibility: visible; transform: none; }
.replaybar span#replaySpeed { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-right: 8px; white-space: nowrap; }
.replaybar button { height: 100%; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; transition: background .15s, color .15s; }
.replaybar button:hover { background: #ffffff14; color: var(--ink); }
.replaybar #replayExit { background: var(--pink); color: #2B1A30; } .replaybar #replayExit:hover { background: #F4D6E6; }
body.slow .replaybar #replaySlow { display: none; }
.choose { position: fixed; left: 50%; bottom: 250px; transform: translate(-50%, 20px); width: min(640px, calc(100% - 2 * var(--gut))); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; opacity: 0; visibility: hidden; transition: opacity .6s, transform .6s, visibility .6s; z-index: 4; text-align: center; }
.choose.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.choose h3 { font: 400 28px/1.1 var(--serif); margin: 6px 0 8px; }
.choose p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.45; }
.choose .ctl { display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; margin-top: 16px; }
@media (max-width: 680px) { .choose .ctl { flex-wrap: wrap; } }
@media (max-width: 760px) { .choose { bottom: auto; top: 64px; } }

/* the ending flies home: only the last track's card stays */
body.outro .hero, body.outro .threads, body.outro .time > :not(.player), body.outro .card, body.outro .album, body.outro .top { opacity: 0 !important; pointer-events: none; transition: opacity .8s; }

/* the opening: the interface arrives after the big bang */
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero > *, .threads, .time, .top { animation: arrive 1.4s cubic-bezier(.2,.8,.2,1) both; }
.top { animation-delay: 3.4s; } .hero > :nth-child(1) { animation-delay: 2.6s; } .hero > :nth-child(2) { animation-delay: 2.8s; } .hero > :nth-child(3) { animation-delay: 3.1s; }
.hero > :nth-child(4) { animation-delay: 3.3s; } .hero > :nth-child(5) { animation-delay: 3.5s; } .threads { animation-delay: 4.2s; } .time { animation-delay: 3.8s; }
.time { animation-name: arrive-x; } @keyframes arrive-x { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }
@media (min-width: 1101px) { .threads { animation-name: arrive-y; } @keyframes arrive-y { from { opacity: 0; transform: translate(10px, -50%); } to { opacity: 1; transform: translateY(-50%); } } }
@media (prefers-reduced-motion: reduce) { .hero > *, .threads, .time, .top { animation: none; } }

/* color toggle, ticker, story toasts, the compare hint */
.seg { display: flex; background: #ffffff0d; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.seg button { flex: 1; background: none; border: 0; border-radius: 999px; padding: 6px 8px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); cursor: pointer; }
.seg button.on { background: #ffffff1c; color: var(--ink); }
.ticker { margin-top: 4px; min-height: 15px; text-shadow: 0 1px 8px #000, 0 0 24px #000; }
.ticker .line { display: block; margin: 0 auto 2px; font: 400 16px/1.35 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .ticker .line { font-size: 13.5px; } }
.ticker .nums { display: block; font: 10px var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.ticker b { color: var(--pink); font-weight: 500; }
.toast { position: fixed; z-index: 4; left: 50%; bottom: 214px; transform: translate(-50%, 8px); max-width: min(460px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: var(--soft); line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { display: block; font: 400 20px var(--serif); color: var(--ink); margin: 2px 0 4px; }
.hint { position: fixed; z-index: 6; left: 50%; top: 74px; transform: translateX(-50%); background: var(--pink); color: #2B1A30; border-radius: 999px; padding: 9px 10px 9px 18px; font-size: 13px; font-weight: 500; display: none; align-items: center; gap: 12px; box-shadow: 0 8px 40px #E8BAD655; max-width: calc(100% - 32px); }
.hint.on { display: flex; }
.hint button { background: #2B1A30; color: var(--pink); border: 0; border-radius: 999px; padding: 5px 12px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }

/* cards: back button, photos, compare */
.card .back { background: none; border: 0; padding: 0; margin-bottom: 12px; color: var(--pink); font: 500 11px var(--mono); letter-spacing: .06em; cursor: pointer; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.card .back:hover { color: var(--ink); }
.card .head > img.round { border-radius: 50%; }
.ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #2B2138; vertical-align: -6px; margin-right: 7px; }
.results .ava { width: 28px; height: 28px; margin: 0; }
.results .dot { width: 9px; height: 9px; border-radius: 50%; justify-self: center; }
.duo { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; } .duo .play { margin: 0; }
.pairhead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; margin: 10px 0 4px; }
.pairhead > span { color: var(--pink); font-size: 20px; margin-top: 30px; }
.pairhead button { background: none; border: 0; padding: 0; text-align: center; cursor: pointer; }
.pairhead img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #2B2138; display: block; margin: 0 auto 8px; }
.pairhead b { display: block; font: 400 17px/1.15 var(--serif); } .pairhead small { color: var(--dim); font-size: 12px; }
.shared { margin-top: 18px; }
.shared p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.shared em { display: block; font: normal 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.path button { background: #ffffff10; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; } .path button:hover { border-color: var(--pink); }
.path i { color: var(--dim); font-style: normal; }
.vs { margin-top: 18px; }
.vsgrid div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 7px 0; font: 10px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; align-items: center; }
.vsgrid b { font: 500 13px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }

@media (max-width: 1100px) { .threads { top: auto; bottom: 200px; transform: none; width: 190px; } .threads .note, .years { display: none; } }
@media (max-width: 760px) {
    .top { padding-top: 14px; gap: 10px; } .top nav > :not([data-open="how"]) { display: none; } .top nav { height: 34px; } .top nav button { font-size: 10px; padding: 0 12px; } .search input, .search input:focus { width: 124px; height: 34px; padding-right: 12px; } .search kbd { display: none; }
    .hero { top: 58px; right: var(--gut); } .hero p, .stats div:nth-child(n+3) { display: none; } .hero h1 { font-size: 34px; } .ctas { margin-top: 12px; }
    .threads { left: 0; right: 0; bottom: 172px; width: auto; flex-direction: row; overflow-x: auto; padding: 0 var(--gut); scrollbar-width: none; } .threads .label { display: none; }
    .thread { flex: none; grid-template-columns: 9px auto; background: #1B1425cc; } .thread span { display: none; }
    .card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 70vh; border-radius: 18px 18px 0 0; transform: translateY(105%); }
    .tour { bottom: 220px; } .track canvas { height: 26px; } .time .lit { display: none; }
    .big { grid-template-columns: 1fr 1fr; }
}

/* the album as a tracklist */
.album { position: fixed; z-index: 4; left: var(--gut); top: 74px; bottom: 262px; width: min(440px, calc(100% - 2 * var(--gut))); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; opacity: 0; visibility: hidden; transform: translateX(-12px); transition: opacity .5s, transform .5s, visibility .5s; }
.album.on { opacity: 1; visibility: visible; transform: none; }
.album .x { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; }
.album .x:hover { color: var(--ink); }
.album .head { padding: 18px 44px 0 20px; }
.album .acts { display: flex; gap: 10px; align-items: center; padding: 10px 20px 12px; }
.album .icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff38; background: none; color: var(--ink); font-size: 16px; cursor: pointer; transition: background .15s, border-color .15s; }
.album .icon:hover { background: #ffffff14; border-color: #ffffff70; }
.drawer .ps { padding-top: 26px; border-top: 1px solid var(--line); } .drawer .ps ol { padding-left: 20px; margin: 0 0 12px; } .drawer .ps li { margin-bottom: 6px; } .drawer .ps a { color: var(--pink); }
.album .big { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 0; background: var(--pink); color: #2B1A30; font-size: 18px; cursor: pointer; transition: transform .15s, background .15s; }
.album .big:hover { transform: scale(1.06); background: #F4D6E6; }
.album h2 { font: 400 24px/1.05 var(--serif); margin: 4px 0 2px; }
.album .meta { font: 11px var(--mono); color: var(--dim); letter-spacing: .04em; }
.album li button { display: grid; grid-template-columns: 22px minmax(0, 1fr) 44px 52px 58px; column-gap: 0; align-items: center; }
.album .t { padding: 0 10px; }
.album .n, .album .s { text-align: right; }
.album ol { list-style: none; margin: 0; padding: 0 8px 10px; border-top: 1px solid var(--line); }
.album li.side { display: flex; align-items: center; gap: 8px; font: 500 10px var(--mono); color: var(--pink); text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px 4px; }
.album li.side i { font-style: normal; color: var(--dim); letter-spacing: .06em; margin-left: auto; text-transform: none; }
.album li.side.b { color: var(--lilac); }
.album .disc { width: 22px; height: 22px; flex: none; }
.album .disc .v { fill: #0b0912; stroke: #ffffff26; } .album .disc .g { fill: none; stroke: #ffffff18; } .album .disc .l { fill: var(--pink); } .album li.side.b .disc .l { fill: var(--lilac); }
.album .disc text { font: 600 5px var(--sans); fill: #1a0d16; }
.album[data-side="a"] li.side.a .disc, .album[data-side="b"] li.side.b .disc { animation: spin 1.8s linear infinite; }
.album.paused .disc { animation-play-state: paused !important; }
.album li.vault button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.album li.vault button:hover { color: var(--ink); } .album li.vault i { font-style: normal; margin-left: 0; } .album li.vault em { font-style: normal; margin-left: auto; transition: transform .2s; }
.album.vault li.vault em { transform: rotate(90deg); }
.album li.vt { display: none; } .album.vault li.vt { display: list-item; }
@media (prefers-reduced-motion: reduce) { .album .disc { animation: none !important; } }
.album li button { width: 100%; background: none; border: 0; border-radius: 8px; padding: 5px 10px; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.album li button:hover { background: #ffffff10; }
.album li button.on { background: #ffffff18; }
.album .n { font: 13px var(--mono); color: var(--dim); }
.album .n b { display: none; color: var(--ink); font-size: 11px; }
.album li button:hover .n i, .album li button.on .n i { display: none; }
.album li button:hover .n b, .album li button.on .n b { display: inline; }
.album li button.on .n b { color: var(--pink); }
.album .t { min-width: 0; }
.album .t b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album li button.on .t b { color: var(--pink); }
.album .t span { display: block; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.album .d { font: 11px var(--mono); color: var(--dim); }
.album .s { font: 500 12px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; text-align: right; }
.album .u { font: 10px var(--mono); color: var(--dim); white-space: nowrap; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.album li button.on .u { color: var(--pink); } .album li button.on .s { color: var(--pink); }
body.listening .hero, body.listening:has(.tour.on) .threads { opacity: 0 !important; visibility: hidden; pointer-events: none; }
@media (max-width: 760px) { .album { top: 58px; max-height: 42vh; } .album .cols, .album .d { display: none; } .album li button { grid-template-columns: 26px 1fr 40px; } body.listening .tour ~ * {} body.listening:has(.tour.on) .album { display: none; } }

/* the album's cover, and now playing: the tour card as a right-hand column while the galaxy stays live in the middle */
.album .head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: end; }
.album .head .cover { grid-row: span 3; width: 64px; height: 64px; padding: 0; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; background-size: cover !important; border-radius: 8px; box-shadow: 0 8px 30px #0008;
    background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(2px 2px at 55% 65%, #FFE7F0, transparent), radial-gradient(1px 1px at 30% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 75%, #fff, transparent), radial-gradient(circle at 45% 50%, #E8BAD6 0, #8A4A7A 30%, #2A1838 62%, #120C1E 100%); }
.tour .np, .tour .art { display: none; }
.tour .rel:not([hidden]) { display: block; margin-top: 10px; }
.tour #tourPlay { min-width: 40px; }
@media (min-width: 1101px) {
    body.listening .tour { left: auto; right: var(--gut); top: 74px; bottom: 262px; width: 340px; transform: translateX(24px); overflow-y: auto; scrollbar-width: thin; }
    body.listening .tour.on { transform: none; }
    body.listening .tour .np { display: block; margin-bottom: 10px; }
    body.listening .tour .art:not([hidden]) { display: block; width: min(100%, 42vh); aspect-ratio: 1; height: auto; margin-left: auto; margin-right: auto; object-fit: cover; border-radius: 10px; background: #2B2138; margin-bottom: 14px; box-shadow: 0 10px 40px #0008; }
}
@media (max-width: 1100px) { body.listening:has(.tour.on) .album { display: none; } body.listening .tour { bottom: 272px; } }

/* the flip: lift the needle off Side A, the record turns over, drop it on Side B */
.flip { position: fixed; z-index: 7; left: 50%; top: 42%; transform: translate(-50%, -46%); width: min(340px, calc(100% - 2 * var(--gut))); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 16px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s, transform .5s, visibility .5s; }
.flip.on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }
.flip .arm { transform-origin: 232px 28px; transform-box: view-box; cursor: grab; }
.flip .arm:active { cursor: grabbing; }
.flip p { margin: 0; font: 400 20px var(--serif); color: var(--ink); min-height: 26px; }
.flip .skipflip { margin-top: 10px; background: none; border: 0; color: var(--dim); font: 11px var(--mono); letter-spacing: .06em; cursor: pointer; }
.flip .skipflip:hover { color: var(--ink); }
/* the evidence, folded until asked for */
.tour .rel button { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; width: 100%; background: none; border: 0; border-radius: 8px; padding: 6px; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.tour .rel button:hover { background: #ffffff10; }
.tour .rel img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #2B2138; }
.tour .rel b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .rel i { display: block; font-style: normal; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .rel .label { margin: 0 6px 6px; }
.tour .why { display: block; width: 100%; margin-top: 14px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--soft); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.tour .why:hover { color: var(--ink); } .tour .why[hidden] { display: none; }

/* one player bar, part of the timeline: back, play, next, the track and how far through it */
.player { display: none; align-items: center; gap: 8px; margin: 12px auto 0; max-width: 560px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
body.listening .player { display: flex; }
body.listening .time .btns, body.listening .time .lit { display: none; }
.player .pb { flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ffffff2a; background: none; color: var(--ink); font-size: 13px; cursor: pointer; }
.player .pb:hover { background: #ffffff14; } .player .pb.main { width: 40px; height: 40px; border: 0; background: var(--pink); color: var(--bg); font-size: 14px; }
.player .pb.main:hover { background: #F4D6E6; }
.player .pnow { flex: 1; min-width: 0; text-align: left; padding: 0 6px; }
.player .pnow > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.player .pnow b { font-weight: 500; }
.player .bar { height: 2px; background: #ffffff1a; margin-top: 6px; border-radius: 2px; overflow: hidden; } .player .bar i { display: block; height: 100%; width: 0; background: var(--pink); }
.player .pill { flex: none; padding: 7px 12px; }

/* the timeline as the album's map: Dallas and Austin, and a dot for every track */
.sides, .tticks { display: none; }
body.listening .sides, body.listening .tticks { display: block; } body.listening .ticks { display: none; }
body.listening .track { margin-top: 26px; }
.sides { position: absolute; left: 0; right: 0; top: -22px; height: 14px; }
.sides span { position: absolute; top: 0; border-top: 2px solid var(--pink); padding-top: 2px; font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pink); text-align: left; white-space: nowrap; overflow: hidden; }
.sides span.b { border-color: var(--lilac); color: var(--lilac); padding-left: 4px; }
.tticks { position: absolute; left: 0; right: 0; top: -6px; height: 0; }
.tticks button { position: absolute; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--bg); background: var(--ink); padding: 0; cursor: pointer; transition: transform .15s, background .15s; }
.tticks button.vault { background: var(--bg); border-color: var(--dim); }
.tticks button:hover, .tticks button.on { background: var(--pink); border-color: var(--bg); transform: scale(1.5); z-index: 1; }

@media (max-width: 760px) {
    body.listening .threads { display: none; }
    .album { top: 58px; bottom: 268px; max-height: none; } .album .head { grid-template-columns: 56px 1fr; gap: 12px; padding-top: 14px; } .album .head .cover { width: 56px; height: 56px; } .album h2 { font-size: 22px; }
    .album .acts { padding: 10px 20px; } .album .big { width: 40px; height: 40px; }
    .album li button { grid-template-columns: 22px minmax(0, 1fr) 44px 52px; }
    body.listening .tour { top: 58px; bottom: auto; max-height: calc(100vh - 58px - 272px); overflow-y: auto; }
    .player .pill { display: none; }
}


/* desktop while listening: the album and now playing run the full height, the timeline and player sit in the middle between them */
@media (min-width: 1101px) {
    .album { top: 66px; bottom: 18px; width: clamp(320px, 29vw, 420px); }
    body.listening .tour { top: 66px; bottom: 18px; width: clamp(300px, 24vw, 360px); }
    body.listening .time { animation: none; transform: none; width: auto; left: calc(var(--gut) + clamp(320px, 29vw, 420px) + 24px); right: calc(var(--gut) + clamp(300px, 24vw, 360px) + 24px); }
    body.listening:not(:has(.tour.on)) .time { right: var(--gut); }
}
@media (min-width: 1101px) { body.outro.listening .prelude { padding-right: calc(clamp(300px, 24vw, 360px) + var(--gut) + 24px) !important; padding-left: var(--gut) !important; } }

/* the profile: guesses about me from listening alone */
.infer { display: grid; gap: 12px; margin-top: 22px; }
.inf { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #ffffff06; }
.inf h4 { font: 400 22px/1.2 var(--serif); margin: 4px 0 4px; color: var(--ink); }
.inf .sig { font: 11px var(--mono); color: var(--dim); letter-spacing: .04em; margin-bottom: 8px; }
.inf p { margin: 0; font-size: 14px !important; }
.inf .verdict { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font: 500 11px var(--mono); letter-spacing: .04em; }
.inf .verdict.y { background: #E8BAD62a; color: var(--pink); } .inf .verdict.m { background: #C8B4EC26; color: var(--lilac); }
.inf .mini { display: block; width: 100%; height: 44px; margin: 4px 0 2px; } .inf .mini rect { fill: #ffffff30; } .inf .mini rect.h { fill: var(--pink); }
.inf .minilab { font: 10px var(--mono); color: var(--dim); margin-bottom: 8px; }

/* keyboard focus is pink and only for keyboards */
button:focus:not(:focus-visible) { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 760px) { .threads { background: none; border: 0; padding: 0 var(--gut); } .threads .note, .threads .years, .threads .label.lines { display: none; } .thread { background-image: none; } }

/* the last line: smaller and quieter than the opening's, under the planet */
body.outro .prelude { padding-bottom: 150px !important; }
body.outro .prelude b { font-size: clamp(28px, 3.4vw, 48px); font-style: italic; letter-spacing: 0; }
body.outro .prelude span { margin-top: 10px; font-size: 11px; color: var(--pink); }

/* after Austin: the deluxe, or stay */
.endchoice { position: fixed; z-index: 9; left: 0; right: 0; bottom: 96px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 var(--gut); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .8s .4s, transform .8s .4s, visibility .8s .4s; }
.endchoice.on { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1101px) { body.listening .endchoice { right: calc(clamp(300px, 24vw, 360px) + var(--gut) + 24px); } }

/* a mood washes over the sky: the color of the song now playing */
.moodwash { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 80% 70% at 50% 50%, var(--wash, transparent), transparent 75%); transition: opacity .9s, background 1.2s; }
.moodwash.on { opacity: 1; }

.endchoice.mid { bottom: auto; top: 40%; flex-direction: column; align-items: center; }
.endchoice.mid .label { margin-bottom: 4px; text-shadow: 0 1px 12px #000; }
@media (min-width: 1101px) { body.listening .endchoice.mid { left: calc(var(--gut) + clamp(320px, 29vw, 420px) + 24px); } }

/* the album's play and download sit on one line, the same size, icons dead center (a play triangle reads centered when nudged right) */
.album .acts { align-items: center; }
.album .acts .big, .album .acts .icon, .player .pb { display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0; flex: none; line-height: 0; vertical-align: middle; }
.album .acts .big, .album .acts .icon { width: 40px; height: 40px; }
.album .acts .big svg, .player .pb svg { display: block; }
.album .acts .big svg path[d^="M8 5.5"], .player .pb svg path[d^="M8 5.5"] { transform: translateX(1px); }

/* the album's action row, like a music app: small solid actions on the left, one big play button on the right */
.album .acts { gap: 14px; padding: 12px 20px 14px; }
.album .acts .icon { order: 0; width: 34px; height: 34px; border: 0; background: var(--lilac); color: #1E1628; transition: transform .15s, background .15s; }
.album .acts .icon:hover { background: #DCCDF5; transform: scale(1.06); }
.album .acts .big { order: 2; margin-left: auto; width: 52px; height: 52px; background: var(--pink); color: #1E1628; box-shadow: 0 6px 24px #E8BAD644; }
.album .acts .big:hover { transform: scale(1.05); }

/* during the replay, a panel on the left says what you're watching, month by month */
.replaycap { position: fixed; z-index: 3; left: var(--gut); top: 50%; transform: translate(-16px, -50%); width: 340px; padding: 28px 26px; border-radius: 18px; background: rgba(28, 20, 38, .62); border: 1px solid var(--line); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1s, transform 1s, visibility 1s; }
body.replay:not(.choosing) .replaycap { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.replaycap .label { color: var(--pink); }
.replaycap .capmonth { font: 400 38px/1.05 var(--serif); color: var(--ink); margin: 14px 0 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.replaycap p { margin: 0 0 18px; font: 400 16px/1.45 var(--sans); color: var(--ink); height: 4.35em; overflow: hidden; }   /* fixed size: the panel never grows or shrinks as months change */
.replaycap .capcount { white-space: nowrap; font: 12px var(--mono); color: var(--soft); letter-spacing: .04em; padding-top: 14px; border-top: 1px solid var(--line); }
.replaycap .capcount b { font: 400 26px var(--serif); color: var(--pink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.replaycap .capkey { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12px; color: var(--dim); line-height: 1.4; }
.replaycap .capkey li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: center; }
.replaycap .capkey i { width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 8px var(--lilac); justify-self: center; }
.replaycap .capkey i.big { width: 11px; height: 11px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.replaycap .capkey i.bar { width: 4px; height: 12px; border-radius: 1px; box-shadow: none; background: var(--pink); }
body.replay:not(.choosing) .time .date, body.replay:not(.choosing) .ticker { opacity: 0; }
@media (max-width: 760px) {
    .replaycap { left: var(--gut); right: var(--gut); top: 16px; width: auto; padding: 14px 16px; transform: translateY(-8px); }
    body.replay:not(.choosing) .replaycap { transform: none; }
    .replaycap .capmonth { font-size: 26px; margin: 6px 0; } .replaycap p { font-size: 14px; min-height: 0; margin-bottom: 8px; } .replaycap .captip { display: none; } .replaycap .capcount { padding-top: 8px; }
}

/* why it matters: the analysis behind each finding */
.tour .whyp { margin: 10px 0 14px !important; padding-left: 12px; border-left: 2px solid var(--pink); color: var(--ink) !important; font-size: 14px; line-height: 1.55; }

/* the turntable, in 3D: tilted back on its table, the sheen stays put while the record turns */
/* on desktop with the album open, the turntable takes over the right-hand panel */
@media (min-width: 1101px) {
    body.listening .flip { left: auto; right: var(--gut); top: 66px; bottom: 18px; width: clamp(300px, 24vw, 360px); transform: translateX(16px); display: flex; flex-direction: column; justify-content: center; padding: 24px 22px; background: #1E1628; }
    body.listening .flip.on { transform: none; }
}
@media (min-width: 1101px) { body.listening:has(.flip.on) .tour { visibility: hidden; } }

/* the begin screen: one click starts the opening, so its sound can play */
.gate { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; text-align: center; padding: 0 var(--gut) 6vh; background: linear-gradient(to top, rgba(8,6,13,.95) 0%, rgba(8,6,13,.7) 38%, rgba(8,6,13,0) 72%); opacity: 0; visibility: hidden; transition: opacity .9s, visibility .9s; }
body.gated .gate { opacity: 1; visibility: visible; }
.gate h2 { font: italic 400 clamp(30px, 3.6vw, 48px)/1.1 var(--serif); margin: 0; max-width: 18ch; color: var(--ink); }
.gate .pill.solid { font-size: 13px; padding: 12px 22px; }
.gate .gatequiet { background: none; border: 0; color: var(--dim); font: 11px var(--mono); letter-spacing: .06em; cursor: pointer; }
.gate .gatequiet:hover { color: var(--ink); }
.gate p.why { margin: 2px 0 0; max-width: 40ch; font: 14px/1.55 var(--sans); color: var(--soft); }
body.gated .skip { display: none !important; }

/* until the album has been played once, its play button pulses and says what to do */
.album .playhint { order: 1; margin-left: auto; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; text-align: right; transition: opacity .5s; }
.album .playhint b { font: italic 400 20px/1.1 var(--serif); color: var(--ink); }
.album .playhint span { grid-column: 1; font: 12px/1.45 var(--sans); color: var(--soft); white-space: nowrap; }
.album .playhint i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 20px; color: var(--pink); animation: nudgeright 1.2s ease-in-out infinite; }
@keyframes nudgeright { 50% { transform: translateX(5px); } }
.album .acts .big { position: relative; }
.album:not(.started) .acts .big::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--pink); animation: playpulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes playpulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.album.started .playhint { display: none; }
.album:not(.started) .acts .big { margin-left: 10px; }
@media (prefers-reduced-motion: reduce) { .album:not(.started) .acts .big::after { animation: none; opacity: .6; } }

/* the turntable, in layers: the deck, the record (a real 3D object that lifts and turns over), and the tonearm on top */
.flip .tt { position: relative; width: 100%; aspect-ratio: 260 / 220; margin: 18px 0 14px; transform: perspective(820px) rotateX(30deg); transform-origin: 50% 70%; transform-style: preserve-3d; touch-action: none; user-select: none; }
.flip.on .tt { animation: ttin 1s cubic-bezier(.2, .9, .25, 1); }
@keyframes ttin { from { transform: perspective(820px) rotateX(72deg) translateY(40px) scale(.82); opacity: 0; } to { transform: perspective(820px) rotateX(30deg); opacity: 1; } }
.flip .tt > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flip .tt-top { pointer-events: none; transform: translateZ(6px); }
.flip .tt-top .arm { pointer-events: auto; }
.flip .tt-rec { position: absolute; left: 4.23%; top: 5%; width: 77.7%; height: 91.8%; transform-style: preserve-3d; transform: translateZ(2px); }
.flip .tt-rec .face { position: absolute; inset: 0; backface-visibility: hidden; }
.flip .tt-rec .face.b { transform: rotateY(180deg); }
.flip .tt-rec .face svg { width: 100%; height: 100%; display: block; }
.flip .tt-rec.spin .face svg { animation: spin 1.6s linear infinite; }
.flip .tt-rec.turning { animation: flipover 1.4s cubic-bezier(.45, 0, .25, 1) forwards; }
.flip .tt-rec.flipped { transform: translateZ(2px) rotateY(180deg); }
@keyframes flipover { 0% { transform: translateZ(2px) rotateY(0); } 30% { transform: translateZ(90px) rotateX(-12deg) rotateY(0); } 72% { transform: translateZ(90px) rotateX(-12deg) rotateY(180deg); } 100% { transform: translateZ(2px) rotateY(180deg); } }
.flip .tt.drop::after { content: ""; position: absolute; left: 4.23%; top: 5%; width: 77.7%; height: 91.8%; border-radius: 50%; border: 3px solid var(--lilac); transform: translateZ(8px); animation: droppulse .9s ease-out forwards; pointer-events: none; }
@keyframes droppulse { from { opacity: .9; transform: translateZ(8px) scale(.6); } to { opacity: 0; transform: translateZ(8px) scale(1.25); } }
.flip .arm { transform-origin: 232px 28px; transform-box: view-box; cursor: grab; }
.flip .grab { fill: none; stroke: transparent; stroke-width: 28; stroke-linecap: round; pointer-events: stroke; }
.flip p.slam { animation: slam .6s cubic-bezier(.2, 1.6, .4, 1); color: var(--lilac); }
@keyframes slam { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flip .tt-rec, .flip.on .tt, .flip .tt-rec.spin .face svg { animation: none !important; } }
@media (max-width: 760px) { .replaybar { top: 12px; height: 34px; padding-left: 10px; } .replaybar #replaySlow, .replaybar span#replaySpeed { display: none; } .replaybar button { padding: 0 11px; font-size: 10px; } }
/* the guided sky */
.guide { position: fixed; z-index: 12; left: 50%; bottom: 150px; width: min(440px, calc(100vw - 32px)); padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 60px #0008; transform: translate(-50%, 10px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s; }
.guide.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.guide .label { color: var(--pink); }
.guide h3 { margin: 6px 0 6px; font: 400 26px/1.15 var(--serif); }
.guide p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.gnav { display: flex; align-items: center; gap: 10px; }
.gdots { display: flex; gap: 5px; margin-right: auto; } .gdots i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff30; transition: background .2s, width .2s; } .gdots i.on { width: 16px; border-radius: 3px; background: var(--pink); }
.gback { background: none; border: 0; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 8px 6px; } .gback:hover { color: var(--ink); }
.guided { outline: 2px solid var(--pink); outline-offset: 6px; border-radius: 14px; animation: guidepulse 1.6s ease-in-out infinite; }
@keyframes guidepulse { 50% { outline-color: #E8BAD640; } }
body.guiding .hero { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .guide { bottom: 120px; } .guide h3 { font-size: 22px; } }
/* the end of Side B: a crossroads in the right panel, where the record flipped */
.endchoice.cross { left: auto; right: var(--gut); top: 50%; bottom: auto; width: min(340px, calc(100% - 2 * var(--gut))); transform: translate(16px, -50%); flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; padding: 26px 24px 22px; background: #1E1628; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px #0008; z-index: 11; transition-delay: 0s; }
.endchoice.cross.on { transform: translate(0, -50%); }
@media (min-width: 1101px) { body.listening .endchoice.cross { top: 66px; bottom: 18px; right: var(--gut); left: auto; width: clamp(300px, 24vw, 360px); transform: translateX(16px); justify-content: center; } body.listening .endchoice.cross.on { transform: none; } }
.endchoice.cross .label { color: var(--pink); }
.endchoice.cross h3 { margin: 0; font: 400 32px/1.1 var(--serif); }
.endchoice.cross p { margin: 0 0 8px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.endchoice.cross .pill { padding: 12px 16px; }
.crossbar { height: 3px; margin-top: 8px; border-radius: 2px; background: #ffffff18; overflow: hidden; } .crossbar i { display: block; height: 100%; background: var(--pink); transform-origin: left; animation: crossfill 12s linear forwards; }
@keyframes crossfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.crossnote { font: 11px var(--mono); letter-spacing: .06em; color: var(--dim); }
/* the album's header is clickable: the cover, the title, and every number open a note in the right panel */
.album .head .cover:hover { transform: scale(1.05) rotate(-2deg); box-shadow: 0 10px 34px #E8BAD640; }
.album .head .info { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; text-decoration: underline dotted #ffffff30; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.album .head .info:hover, .album .head .info.on { color: var(--pink); text-decoration-color: var(--pink); }
.album .head h2 .info { text-decoration: none; }
.ainfo { position: fixed; z-index: 11; right: var(--gut); top: 50%; width: min(340px, calc(100% - 2 * var(--gut))); padding: 26px 24px 22px; background: #1E1628; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px #0008; transform: translate(16px, -50%); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s; }
.ainfo.on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@media (min-width: 1101px) { body.listening .ainfo { top: 66px; bottom: 18px; width: clamp(300px, 24vw, 360px); transform: translateX(16px); display: flex; flex-direction: column; justify-content: center; overflow: auto; } body.listening .ainfo.on { transform: none; } }
.ainfo .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; } .ainfo .x:hover { color: var(--ink); }
.ainfo .label { color: var(--pink); }
.ainfo h3 { margin: 6px 0 10px; font: 400 30px/1.1 var(--serif); }
.ainfo p { margin: 0 0 12px; color: var(--soft); font-size: 14px; line-height: 1.55; }
.ainfo .big { font: 400 54px/1 var(--serif); color: var(--ink); margin: 4px 0 2px; }
.ainfo .rows { display: grid; gap: 8px; margin: 6px 0 14px; }
.ainfo .rows div { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--soft); }
.ainfo .rows b { font: 500 12px var(--mono); color: var(--ink); }
.ainfo .rows i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--pink) var(--w), #ffffff14 var(--w)); }
.ainfo .cov { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 14px; background: radial-gradient(3px 3px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #fff, transparent), radial-gradient(4px 4px at 55% 65%, #FFE7F0, transparent), radial-gradient(2px 2px at 30% 80%, #fff, transparent), radial-gradient(3px 3px at 85% 75%, #fff, transparent), radial-gradient(circle at 45% 50%, #E8BAD6 0, #8A4A7A 30%, #2A1838 62%, #120C1E 100%); box-shadow: 0 16px 50px #0009; animation: covspin 40s linear infinite; }
@keyframes covspin { to { filter: hue-rotate(25deg); } }

.album .head .cover, .ainfo .cov { background-image: var(--album-cover) !important; background-size: cover !important; animation: none; }
/* the nav: a spinning record for a logo, a live now-playing strip, and icon tabs */
.top .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-transform: none; letter-spacing: 0; margin-right: 0; }
.top .brand .vinyl { width: 32px; height: 32px; flex: none; animation: spin 6s linear infinite; animation-play-state: paused; filter: drop-shadow(0 0 10px #E8BAD630); transition: filter .3s; }
.top .brand:hover .vinyl, body.sounding .top .brand .vinyl { animation-play-state: running; filter: drop-shadow(0 0 14px #E8BAD680); }
.top .brand .bt { display: flex; flex-direction: column; line-height: 1.1; }
.top .brand b { font: italic 400 19px var(--serif); letter-spacing: .01em; }
.top .brand em { font: normal 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.top .brand:hover em { color: var(--pink); }
.top .np { margin-right: auto; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 14px 0 12px; margin-left: 10px; border-left: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .06em; color: var(--dim); max-width: 34vw; overflow: hidden; }
.top .np .npt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .top .np .npt b { color: var(--ink); font-weight: 500; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.eq i { width: 2px; height: 3px; border-radius: 1px; background: var(--pink); opacity: .6; }
body.sounding .eq i { animation: eq .9s ease-in-out infinite; opacity: 1; } body.sounding .eq i:nth-child(2) { animation-delay: -.3s; } body.sounding .eq i:nth-child(3) { animation-delay: -.6s; } body.sounding .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.top nav svg { width: 13px; height: 13px; flex: none; opacity: .75; } .top nav a svg { width: 15px; height: 15px; opacity: .9; }
.top nav a { padding: 0 12px; }
.top nav button:hover svg, .top nav .on svg { opacity: 1; }
@media (max-width: 1100px) { .top .np { display: none; } .top .brand { margin-right: auto; } }
@media (max-width: 760px) { .top .brand .bt em { display: none; } .top .brand b { font-size: 16px; } .top .brand .vinyl { width: 26px; height: 26px; } .top nav svg { display: none; } }
/* sleep confidence bars in the profile */
.conf { display: grid; gap: 8px; margin: 4px 0 12px; }
.conf div { display: grid; grid-template-columns: 64px 1fr; align-items: center; column-gap: 12px; row-gap: 4px; }
.conf b { font: 400 26px/1 var(--serif); color: var(--ink); grid-row: span 2; }
.conf span { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.conf i { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--pink) var(--w), #ffffff14 var(--w)); }
/* the soundcheck */
.gate .phones { width: 44px; height: auto; color: var(--lilac); overflow: visible; }
.gate .phones .cup { fill: #2A1E36; stroke: var(--lilac); stroke-width: 3; transition: fill .2s, filter .2s; }
.gate[data-ear="l"] .phones .cup.l, .gate[data-ear="r"] .phones .cup.r, .gate[data-ear="c"] .phones .cup { fill: var(--pink); filter: drop-shadow(0 0 10px var(--pink)); }
.gate.checked .phones .cup { fill: var(--pink); }
.gate .ears { position: relative; display: flex; align-items: center; gap: 14px; font: 500 11px var(--mono); letter-spacing: .1em; color: var(--dim); }
.gate .ear { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: color .2s, border-color .2s, background .2s; }
.gate[data-ear="l"] .ear.l, .gate[data-ear="r"] .ear.r, .gate[data-ear="c"] .ear { color: #2B1A30; background: var(--pink); border-color: var(--pink); }
.gate .notes { display: flex; align-items: flex-end; gap: 7px; height: 22px; }
.gate .notes i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff22; transition: background .2s, transform .3s cubic-bezier(.2,1.6,.4,1); }
.gate .notes i:nth-child(2), .gate .notes i:nth-child(3) { margin-bottom: 10px; } .gate .notes i:nth-child(4) { margin-bottom: 4px; } .gate .notes i:nth-child(7) { margin-bottom: -4px; }
.gate .notes i.on { background: var(--pink); transform: scale(1.5); box-shadow: 0 0 8px var(--pink); }
.gate:not(.checking):not(.checked) .phones { animation: phonebob 2.4s ease-in-out infinite; }
@keyframes phonebob { 50% { transform: translateY(-4px); } }
.gate.checking #gateGo { pointer-events: none; opacity: .7; }
/* the briefing: the soundcheck steps aside and one sentence says what's next */
.gate .brief { display: none; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 0; }
.gate .brief h3 { margin: 0; font: italic 400 clamp(26px, 3vw, 40px)/1.15 var(--serif); color: var(--ink); }
.gate .brief p { margin: 0; font: 15px/1.55 var(--sans); color: var(--soft); white-space: nowrap; }
.gate .brief .label { color: var(--pink); }
.gate .brief .fuse { display: block; width: 120px; height: 2px; margin-top: 10px; border-radius: 1px; background: var(--pink); transform-origin: left; animation: fuse 3.2s linear forwards; opacity: .8; }
@keyframes fuse { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gate.briefing { cursor: pointer; }
.gate.briefing > :not(.brief):not(.label) { display: none; }
.gate.briefing > .label { display: none; }
.gate.briefing .brief { display: flex; animation: briefin .5s ease-out both; }
@keyframes briefin { from { opacity: 0; transform: translateY(8px); } }
/* the very first screen: when and where, alone; then it settles up and the soundcheck appears under it */
.gate .opening { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.gate .opening .label { color: var(--pink); font-size: 12px; letter-spacing: .14em; }
.gate .opening .h { margin: 0; font: italic 400 clamp(28px, 3.4vw, 46px)/1.15 var(--serif); color: var(--ink); max-width: 20ch; }
.gate .opening { animation: briefin 1s ease-out both; }
.gate.opening-on > :not(.opening) { opacity: 0; pointer-events: none; }
.gate > :not(.opening):not(.brief) { transition: opacity .8s .1s; }
.gate h2:not(.h) { font-size: clamp(22px, 2.4vw, 30px); }
.gate .ears .notes { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); }
.gate .opening { margin-bottom: 10px; }
/* the rotating reading guide in the replay panel */
.replaycap .captip { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.replaycap .captip .label { color: var(--dim); font-size: 10px; }
.replaycap #capTip { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 12px; height: 5.6em; font: 400 17px/1.4 var(--serif); color: var(--ink); opacity: 0; transform: translateY(6px); }
.replaycap #capTip.in { animation: tipin .5s ease-out forwards; }
@keyframes tipin { to { opacity: 1; transform: none; } }
.ti { flex: none; width: 14px; height: 14px; margin-top: 5px; display: grid; place-items: center; }
.ti::before { content: ""; display: block; }
.ti.star::before { width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 8px var(--lilac); }
.ti.big::before { width: 13px; height: 13px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.ti.con::before { width: 14px; height: 8px; border-top: 1.5px solid var(--lilac); border-right: 1.5px solid var(--lilac); transform: skewX(-25deg); }
.ti.ring::before { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--pink); box-shadow: inset 0 0 0 3px #00000000, 0 0 0 3px #E8BAD630; }
.ti.bar::before { width: 4px; height: 13px; border-radius: 1px; background: var(--pink); box-shadow: -6px 4px 0 -1px #8A6A9A, 6px 2px 0 -1px #8A6A9A; }
.ti.dim::before { width: 7px; height: 7px; border-radius: 50%; background: #ffffff40; }
.tipdots { display: flex; gap: 5px; } .tipdots i { width: 5px; height: 5px; border-radius: 50%; background: #ffffff25; transition: width .3s, background .3s; } .tipdots i.on { width: 14px; border-radius: 3px; background: var(--pink); }
.endchoice.cross .pill:nth-of-type(3) { border-color: transparent; color: var(--dim); padding: 6px; } .endchoice.cross .pill:nth-of-type(3):hover { color: var(--ink); background: none; }
/* nudges: a small invitation under the nav, one at a time */
.nudge { position: fixed; z-index: 9; left: 50%; top: 84px; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; max-width: min(460px, calc(100vw - 32px)); border: 1px solid #E8BAD655; border-radius: 14px; background: #241A30EE; box-shadow: 0 10px 40px #0007, 0 0 0 4px #E8BAD612; transform: translate(-50%, -8px); opacity: 0; visibility: hidden; transition: opacity .4s, transform .4s, visibility .4s, border-color .3s; }
.nudge.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nudge.yay { border-color: var(--pink); } .nudge.yay b::after { content: "  ✓"; color: var(--pink); }
.nudge b { display: block; font: 500 14px var(--sans); color: var(--ink); } .nudge span { display: block; font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.nudge small { margin-left: auto; font: 10px var(--mono); color: var(--dim); }
.nudge button { background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; padding: 0 2px; } .nudge button:hover { color: var(--ink); }
.nd { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E8BAD620; position: relative; }
.nd::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.nd.drag::before { animation: nddrag 1.6s ease-in-out infinite; }
@keyframes nddrag { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
.nd.star::after, .nd.search::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--pink); animation: ndping 1.6s ease-out infinite; }
@keyframes ndping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.nd.mood::before { background: conic-gradient(#F59AC8, #F5D36A, #F0A35E, #C8A8E8, #8E2A44, #5A2E8A, #F59AC8); width: 14px; height: 14px; box-shadow: none; animation: spin 3s linear infinite; }
body[data-nudge="mood"] .threads [data-mode="mood"] { outline: 2px solid var(--pink); outline-offset: 3px; animation: guidepulse 1.6s ease-in-out infinite; border-radius: 999px; }
body[data-nudge="search"] .search input { border-color: var(--pink); box-shadow: 0 0 0 4px #E8BAD622; }
.pill.ghost { border-color: transparent; color: var(--soft); } .pill.ghost:hover { color: var(--pink); background: none; }
@media (max-width: 760px) { .nudge { display: none; } }   /* phones get the Explore the sky button instead */
/* the typed opening line */
.gate .typed { margin: 0; max-width: 30ch; min-height: 3.6em; font: italic 400 clamp(24px, 2.7vw, 36px)/1.25 var(--serif); color: var(--ink); text-wrap: balance; }
.gate.typing .typed::after { content: ""; display: inline-block; width: 2px; height: .95em; margin-left: 3px; vertical-align: -.1em; background: var(--pink); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.gate .opening .begins { color: var(--pink); font-size: 11px; letter-spacing: .16em; transition: opacity .8s; }
.gate.typing .opening .begins { opacity: 0; }
/* the screenplay opening: a typewriter scene heading, the moment in serif, then the cue */
.gate .opening { gap: 14px; max-width: 640px; }
.gate .slug { margin: 0; min-height: 1.4em; font: 500 13px/1.4 var(--mono); letter-spacing: .12em; color: var(--pink); }
.gate .opening .typed { min-height: 2.5em; max-width: 26ch; font-size: clamp(26px, 2.9vw, 38px); }
.gate .cue { margin: 2px 0 0; min-height: 1.6em; max-width: none; white-space: nowrap; font: 15px/1.55 var(--sans); color: var(--soft); }
.gate .caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--pink); animation: caret .8s steps(1) infinite; }
.gate.typing .typed::after { content: none; }
.gate .typed.caret::after { content: ""; }
/* the 7 rings player: appears in the card only while it plays */
#tourTitle { white-space: nowrap; overflow: visible; }   /* one line, always (the fit happens in fitTitle, so descenders like g and y keep their tails) */
.gate .brief .typed { margin: 0; min-height: 2.5em; max-width: 26ch; font: italic 400 clamp(26px, 2.9vw, 38px)/1.25 var(--serif); color: var(--ink); text-wrap: balance; }
/* dragging the sky should never select the panel text */
.hud, .replaycap, .replaybar, .threads, .time { -webkit-user-select: none; user-select: none; }
