/* Curious Beats preview.
   Two materials only: turquoise = the live vote, copper = locked and time.
   Hierarchy comes from the brand font's three weights, not from colour. */

/* The brand face puts its capitals 0.041 em below the middle of the line box
   (hhea 1163/369, cap 712). These overrides balance ascent and descent around
   the cap height, so text and icons centre on the ink everywhere. */
@font-face { font-family: 'Lounge Sans'; src: url('../assets/fonts/Lounge-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; ascent-override: 95.6%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: 'Lounge Sans'; src: url('../assets/fonts/Lounge-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; ascent-override: 95.6%; descent-override: 24.4%; line-gap-override: 0%; }

:root {
  --ink: #000;
  --paper: #f4f2ee;
  --mute: rgba(244, 242, 238, 0.66);
  --quiet: rgba(244, 242, 238, 0.52);
  --line: rgba(244, 242, 238, 0.14);
  --teal: #00d1d2;
  --teal-ink: #00191a;
  --teal-wash: rgba(0, 209, 210, 0.17);
  --warm-white: #fffdfb;
  --slate: #34303d;
  --copper: #d4977a;
  --copper-hi: #ebc3a8;
  --copper-ink: #1c0f08;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: 'Lounge Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: var(--ink); }
/* Light stage: the page behind the app and the browser's tab tint match the wall. */
html[data-stage='light'], html[data-stage='light'] body { background: #f6f3ee; }
body { color: var(--paper); font-family: var(--font); font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
p, h1, h2 { font-weight: inherit; font-size: inherit; }

/* ---- digit roll ----------------------------------------------------------- */
/* The flex baseline comes from the strip's first digit, which shares the
   baseline of the visible one (measured: aligned to 0.01 em). */
.rl { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; vertical-align: baseline; font-variant-numeric: tabular-nums; }
.rl-col { display: block; height: 1em; overflow: hidden; }
.rl-strip { display: flex; flex-direction: column; transition: transform 560ms var(--ease-out); }
.rl-strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
.rl-sep .rl-strip { transition: none; }

/* ---- shell: the room ---------------------------------------------------------
   One room with all three screens at honest relative sizes. A camera (the
   .world transform) moves between them chapter by chapter; captions and the
   chapter rail sit in screen space around it. */
.app { --mx: clamp(32px, 7vw, 128px); --my: clamp(24px, 6.5vh, 72px); position: relative; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate;
  background: radial-gradient(75% 65% at 55% 52%, #1b1820 0%, #0d0c10 58%, #070608 100%); }
/* The line art stays as a still, faint print on the wall: one moving thing at a time. */
.app::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../assets/img/bg-wide.jpg') center / cover no-repeat; opacity: 0.06; }
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { from { transform: scale(1.04) translate(-1%, 0.5%); } to { transform: scale(1.1) translate(1.5%, -1%); } }

.bar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; padding: calc(var(--my) * 0.5) var(--mx) 0; font-size: 13px; pointer-events: none; }
.bar-title strong { font-weight: 700; color: var(--mute); }
.bar-title span { color: var(--quiet); margin-left: 10px; }

.stage { position: absolute; inset: 0; }

/* Language switch: two quiet letters in the top-right corner, above the intro too. */
.lang { position: absolute; z-index: 12; top: calc(var(--my) * 0.5 - 7px); right: calc(var(--mx) - 8px); display: flex; font-size: 13px; }
.lang button { padding: 6px 8px; border-radius: 8px; color: var(--quiet); letter-spacing: 0.04em; transition: color 200ms ease; }
.lang button[aria-pressed='true'] { color: var(--paper); }
.lang button + button::before { content: '·'; position: relative; left: -10px; color: var(--quiet); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .lang button:hover { color: var(--paper); } }
.app[data-stage='light'] .lang button, .app[data-stage='light'] .lang button + button::before { color: var(--quiet-s); }
.app[data-stage='light'] .lang button[aria-pressed='true'] { color: var(--paper-s); }
@media (hover: hover) and (pointer: fine) { .app[data-stage='light'] .lang button:hover { color: var(--paper-s); } }
.world { position: absolute; left: 0; top: 0; width: 3110px; height: 1180px; transform-origin: 0 0; transition: transform 1250ms var(--ease-io); will-change: transform; }
.app.is-instant .world { transition: none; }

.dev { position: absolute; margin: 0; transform-origin: 0 0; transition: opacity 800ms var(--ease-out); }
.dev-tv { left: 0; top: 0; display: flex; flex-direction: column; align-items: center; }
.dev-phone { left: 2030px; top: 557px; transform: scale(0.62); }
.dev-tab { left: 2370px; top: 572px; transform: scale(0.62); }
.dev.is-dim { opacity: 0; }
.nw { white-space: nowrap; }
.dev.is-dim .frame > section { pointer-events: none; }

/* The live screen lights the wall around it, in the vote colour. */
.spill { display: none; }

.frame { position: relative; background: var(--ink); }
.frame > section { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; clip-path: inset(0 round var(--r)); isolation: isolate; }
.frame-phone { --r: 58px; width: 390px; height: 844px; border-radius: var(--r); box-shadow: 0 0 0 9px #0b0b0d, 0 0 0 10.5px rgba(244, 242, 238, 0.24), 0 60px 120px -30px rgba(0, 0, 0, 0.95); }
.frame-tab { --r: 30px; width: 1180px; height: 820px; border-radius: var(--r); box-shadow: 0 0 0 12px #0b0b0d, 0 0 0 13.5px rgba(244, 242, 238, 0.24), 0 60px 120px -30px rgba(0, 0, 0, 0.95); }
.frame-tab::before { content: ''; position: absolute; left: 50%; top: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2a2a2e; }
.frame-tv { --r: 12px; width: 1920px; height: 1080px; border-radius: var(--r); box-shadow: 0 0 0 14px #0b0b0d, 0 0 0 15.5px rgba(244, 242, 238, 0.2), 0 80px 160px -40px rgba(0, 0, 0, 0.95); }
.tv-stand { position: relative; width: 90px; height: 70px; margin-top: 14px; background: linear-gradient(90deg, #0e0e10, #1f1f23 50%, #0e0e10); }
.tv-stand::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 560px; height: 10px; margin-left: -280px; border-radius: 5px; background: #18181b; box-shadow: 0 0 0 1px rgba(244, 242, 238, 0.12); }

/* In free exploration a click on a device brings it close. */
.app.is-explore .dev:not(.is-focus) { cursor: zoom-in; }
.app.is-explore .dev:not(.is-focus) .frame > section { pointer-events: none; }

/* ---- screen-space layer ----------------------------------------------------- */
.overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 13px; color: var(--mute); opacity: 0; transform: translateY(4px); transition: opacity 360ms ease, transform 480ms var(--ease-out); }
.tag.is-on { opacity: 1; transform: none; }

/* The one thing to tap next: a calm turquoise outline that breathes. */
.hotspot { position: absolute; left: 0; top: 0; opacity: 0; border-radius: 20px; box-shadow: 0 0 0 1.5px var(--teal), 0 0 18px rgba(0, 209, 210, 0.3); transition: opacity 300ms ease; }
.hotspot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--teal); animation: breathe 1600ms var(--ease-out) 3; opacity: 0; }
.hotspot.is-on { opacity: 1; }
@keyframes breathe { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.12, 1.3); opacity: 0; } }

.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire-path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 6px rgba(0, 209, 210, 0.8)); }
.wire-dot { fill: #c9ffff; opacity: 0; filter: drop-shadow(0 0 8px rgba(0, 209, 210, 1)); }

/* ---- caption: one idea per chapter ---------------------------------------------- */
.caption { position: absolute; z-index: 4; left: var(--mx); top: calc(var(--my) + 32px); max-width: min(720px, 60vw); pointer-events: none; }
.caption-title { font-weight: 700; font-size: clamp(26px, 2.2vw, 40px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.caption-body { margin-top: 12px; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.45; color: var(--mute); text-wrap: balance; max-width: 60ch; }

/* ---- chapter rail ------------------------------------------------------------- */
/* Quiet chrome: the chapter and count at the left margin, thin progress
   segments in the middle, back and forward at the right margin. */
.rail { position: absolute; z-index: 4; left: var(--mx); right: var(--mx); bottom: calc(var(--my) * 0.55); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; font-size: 13px; }
.rail-where { color: var(--quiet); white-space: nowrap; }
.rail-where strong { font-weight: 400; color: var(--mute); margin-right: 10px; }
.rail-steps { display: flex; gap: 6px; padding: 0; list-style: none; }
.rail-steps button { display: block; width: 28px; height: 24px; position: relative; }
.rail-steps button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: rgba(244, 242, 238, 0.18); transition: background-color 300ms ease; }
.rail-steps .is-done button::before { background: rgba(244, 242, 238, 0.42); }
.rail-steps .is-now button::before { background: var(--paper); }
.rail-ctl { justify-self: end; display: flex; align-items: center; gap: 8px; }
.rail button { transition: transform 160ms var(--ease-out), color 300ms ease, opacity 300ms ease; }
.rail button:active { transform: scale(0.96); }
.rail-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--mute); }
.rail-back:disabled { opacity: 0; pointer-events: none; }
.rail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-next { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 18px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.22); color: var(--paper); font-size: 14px; white-space: nowrap; }
.rail-next svg { width: 16px; height: 16px; stroke-width: 2; }
.rail-hint { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 4px; font-size: 13px; color: var(--quiet); white-space: nowrap; transition: opacity 600ms ease; }
.rail-hint.is-gone { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .rail-back:hover, .rail-steps button:hover { color: var(--paper); } .rail-steps li:not(.is-now) button:hover::before { background: rgba(244, 242, 238, 0.6); } .rail-next:hover { box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.5); } }

/* ---- intro ------------------------------------------------------------------- */
.intro { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 32px; background: radial-gradient(60% 60% at 50% 45%, rgba(26, 23, 32, 0.78), rgba(7, 6, 8, 0.94)); backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1); transition: opacity 900ms var(--ease-out), visibility 0s linear 900ms, filter 900ms var(--ease-out), transform 1100ms var(--ease-out); }
.intro.is-gone { opacity: 0; visibility: hidden; filter: blur(10px); transform: scale(1.04); pointer-events: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro-ring { width: clamp(72px, 8vh, 104px); }
.intro-lockup { width: clamp(260px, 26vw, 440px); margin-top: clamp(24px, 3.4vh, 40px); }
.intro-line { margin-top: clamp(32px, 5vh, 56px); font-size: clamp(20px, 1.6vw, 28px); line-height: 1.25; color: var(--mute); text-wrap: balance; max-width: 26ch; }
.intro-go { margin-top: clamp(32px, 5vh, 56px); height: 52px; padding: 0 30px; border-radius: 26px; background: var(--warm-white); color: var(--slate); font-weight: 700; font-size: 16px; transition: transform 160ms var(--ease-out), box-shadow 300ms ease; }
.intro-go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .intro-go:hover { box-shadow: 0 0 40px rgba(0, 209, 210, 0.35); } }
.intro-note { margin-top: 20px; font-size: 13px; color: var(--quiet); }
.intro-inner > * { animation: enter 1100ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.intro-inner > :nth-child(2) { animation-delay: 160ms; }
.intro-inner > :nth-child(3) { animation-delay: 320ms; }
.intro-inner > :nth-child(4) { animation-delay: 420ms; }
.intro-inner > :nth-child(5) { animation-delay: 560ms; }
.intro-inner > :nth-child(6) { animation-delay: 680ms; }
.intro-inner > .intro-ring { animation: enter 1100ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* ---- light stage (?stage=light) ------------------------------------------------
   A warm white studio wall, so the dark devices stand out as objects. */
.app[data-mode='stage'][data-stage='light'] { --paper-s: #24212b; --mute-s: rgba(52, 48, 61, 0.68); --quiet-s: rgba(52, 48, 61, 0.5);
  background: radial-gradient(120% 90% at 50% 0%, #fdfcfa 0%, #f2eee8 52%, #e4ded5 100%); }
.app[data-mode='stage'][data-stage='light']::before { filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: multiply; opacity: 0.07; }
.app[data-mode='stage'][data-stage='light']::after { display: none; }
.app[data-stage='light'] .caption-title { color: var(--paper-s); }
.app[data-stage='light'] .bar-title strong, .app[data-stage='light'] .tag, .app[data-stage='light'] .rail-where strong, .app[data-stage='light'] .caption-body { color: var(--mute-s); }
.app[data-stage='light'] .bar-title span, .app[data-stage='light'] .rail-where, .app[data-stage='light'] .rail-hint { color: var(--quiet-s); }
.app[data-stage='light'] .spill { opacity: 0; }
.app[data-stage='light'] .dev.is-dim { opacity: 0; }
.app[data-mode='stage'][data-stage='light'] .frame-phone { box-shadow: 0 0 0 9px #0b0b0b, 0 0 0 10px #3a3a3a, 0 2px 6px 10px rgba(36, 28, 20, 0.12), 0 40px 70px -20px rgba(36, 28, 20, 0.42), 0 90px 140px -50px rgba(36, 28, 20, 0.34); }
.app[data-mode='stage'][data-stage='light'] .frame-tab { box-shadow: 0 0 0 12px #0b0b0b, 0 0 0 13px #3a3a3a, 0 2px 6px 13px rgba(36, 28, 20, 0.12), 0 44px 80px -24px rgba(36, 28, 20, 0.42), 0 100px 160px -60px rgba(36, 28, 20, 0.34); }
.app[data-mode='stage'][data-stage='light'] .frame-tv { box-shadow: 0 0 0 14px #0b0b0b, 0 0 0 15px #3a3a3a, 0 2px 8px 15px rgba(36, 28, 20, 0.12), 0 60px 110px -30px rgba(36, 28, 20, 0.4); }
.app[data-stage='light'] .tv-stand { background: linear-gradient(90deg, #1a1a1a, #3b3b3b 50%, #1a1a1a); }
.app[data-stage='light'] .tv-stand::after { background: #222; box-shadow: 0 14px 22px -8px rgba(36, 28, 20, 0.45); }
.app[data-stage='light'] .rail-steps button::before { background: rgba(52, 48, 61, 0.16); }
.app[data-stage='light'] .rail-steps .is-done button::before { background: rgba(52, 48, 61, 0.4); }
.app[data-stage='light'] .rail-steps .is-now button::before { background: var(--paper-s); }
.app[data-stage='light'] .rail-back { color: var(--mute-s); }
.app[data-stage='light'] .rail-next { color: var(--paper-s); box-shadow: inset 0 0 0 1px rgba(52, 48, 61, 0.25); }
.app[data-stage='light'] .intro { background: radial-gradient(60% 60% at 50% 45%, rgba(253, 252, 250, 0.82), rgba(236, 231, 224, 0.94)); }
.app[data-stage='light'] .intro-line { color: var(--mute-s); }
.app[data-stage='light'] .intro-note { color: var(--quiet-s); }
.app[data-stage='light'] .intro-lockup { filter: invert(1) brightness(0.25); }
.app[data-stage='light'] .intro-go { background: var(--slate); color: var(--warm-white); }

/* ---- copy editor preview (index.html?edit=1) ---------------------------------- */
.app.is-editdevice :is(.caption, .rail, .bar) { display: none; }
.app.is-editing .lang { display: none; }
.copy-mark { position: fixed; z-index: 50; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 2px var(--teal), 0 0 0 6px rgba(0, 209, 210, 0.18); opacity: 0; transition: opacity 200ms ease, left 200ms var(--ease-out), top 200ms var(--ease-out), width 200ms var(--ease-out), height 200ms var(--ease-out); }
.copy-mark.is-on { opacity: 1; }

/* ---- one device, full screen (phones, or ?view=) ---------------------------------- */
.mnav { display: none; }
.app[data-mode='device'] { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--ink); }
.app[data-mode='device']::before, .app[data-mode='device']::after { display: none; }
.app[data-mode='device'] :is(.bar, .lang, .caption, .rail, .intro, .overlay, .spill, .tv-stand) { display: none; }
.app[data-mode='device'] .stage { position: relative; }
.app[data-mode='device'] .world { width: 100%; height: 100%; transform: none !important; transition: none; }
.app[data-mode='device'] .dev { display: none; inset: 0; transform: none; opacity: 1; }
.app[data-mode='device'][data-view='guest'] .dev-phone, .app[data-mode='device'][data-view='dj'] .dev-tab { display: block; }
.app[data-mode='device'][data-view='screen'] .dev-tv { display: block; inset: auto; transform-origin: 0 0; }
.app[data-mode='device'] .frame { width: 100%; height: 100%; border-radius: 0; box-shadow: none; --r: 0px; }
.app[data-mode='device'] .frame-phone { max-width: 520px; margin: 0 auto; }
.app[data-mode='device'] .frame-tv { width: 1920px; height: 1080px; }
.app[data-mode='device'] .dev-tab { overflow-y: auto; }
.app[data-mode='device'] .mnav { display: flex; border-top: 1px solid var(--line); padding: 0 12px env(safe-area-inset-bottom); background: var(--ink); }
.mnav button { flex: 1; height: 50px; font-size: 14px; color: var(--mute); }
.mnav button[aria-pressed='true'] { color: var(--paper); }

/* ============================================================================
   Guest
   ========================================================================== */
.guest { --st: 18px; --sb: 26px; container-type: size; color: var(--paper); user-select: none; -webkit-user-select: none; }
.app[data-mode='device'] .guest { --st: max(env(safe-area-inset-top), 12px); --sb: max(env(safe-area-inset-bottom), 16px); }

.g-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-shade { position: absolute; inset: 0; pointer-events: none; transition: opacity 800ms var(--ease-out); }
.g-shade-start { background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.1) 52%, rgba(0, 0, 0, 0.88) 100%); }
.g-shade-list { background: rgba(0, 0, 0, 0.76); opacity: 0; }
.guest:not([data-state='start']) .g-shade-start { opacity: 0; }
.guest[data-state='list'] .g-shade-list, .guest[data-state='voted'] .g-shade-list { opacity: 1; }
.guest[data-state='locked'] .g-shade-list { opacity: 0.62; }

/* The ring and the lockup are the same two elements in every state; they
   travel between the start screen, the header and the result. */
.g-ring, .g-lockup { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 0 0; pointer-events: none; transition: transform 780ms var(--ease-drawer); }
.g-ring { width: 248px; transform: translate(var(--rx), var(--ry)) scale(var(--rk)); }
.g-ring img { width: 100%; animation: sway 11s ease-in-out infinite alternate; transition: transform 1600ms var(--ease-io); }
@keyframes sway { from { rotate: -6deg; } to { rotate: 6deg; } }
.g-lockup { width: 300px; transform: translate(var(--lx), var(--ly)) scale(var(--lk)); }

/* Start layout from three numbers: ring width, lockup width, top gap.
   The ring image is 0.9375 as tall as wide, the lockup 0.3247. */
.guest { --ringN: 196; --lockN: 300; --top: 9cqh; --intro: calc(var(--st) + var(--top) + var(--ringN) * 0.9375px + 26px + var(--lockN) * 0.3247px + 30px); }
.guest { --rx: calc(50cqw - var(--ringN) * 0.5px); --ry: calc(var(--st) + var(--top)); --rk: calc(var(--ringN) / 248); --lx: calc(50cqw - var(--lockN) * 0.5px); --ly: calc(var(--st) + var(--top) + var(--ringN) * 0.9375px + 26px); --lk: calc(var(--lockN) / 300); }
@media (max-height: 760px) { .app[data-mode='device'] .guest { --ringN: 150; --lockN: 252; --top: 5cqh; } .app[data-mode='device'] .g-invite { font-size: 22px; } }
.guest[data-state='list'], .guest[data-state='voted'] { --rx: 20px; --ry: calc(var(--st) + 14px); --rk: 0.1371; }
.guest[data-state='locked'] { --rx: calc(50cqw - 124px); --ry: calc(var(--st) + 76px); --rk: 1; }
.guest:not([data-state='start']) { --lx: 64px; --ly: calc(var(--st) + 14px); --lk: 0.34; }
.guest[data-state='locked'] { --lx: calc(50cqw - 51px); --ly: calc(var(--st) + 16px); }

/* start */
.g-intro { position: absolute; left: 28px; right: 28px; top: var(--intro); z-index: 2; text-align: center; transition: opacity 260ms ease, transform 420ms var(--ease-out), filter 260ms ease; }
.g-invite { font-weight: 400; font-size: 25px; line-height: 1.24; max-width: 300px; margin: 0 auto; text-wrap: balance; }
.g-status { margin-top: 16px; font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
.guest:not([data-state='start']) .g-intro { opacity: 0; transform: translateY(-12px); filter: blur(6px); pointer-events: none; }

.app.is-ready .guest[data-state='start'] .g-ring img,
.app.is-ready .guest[data-state='start'] .g-lockup,
.app.is-ready .guest[data-state='start'] .g-invite,
.app.is-ready .guest[data-state='start'] .g-status,
.app.is-ready .guest[data-state='start'] .g-dock { animation: enter 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.app.is-ready .guest[data-state='start'] .g-ring img { animation: enter 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 250ms both, sway 11s ease-in-out 1450ms infinite alternate; }
.app.is-ready .guest[data-state='start'] .g-lockup { animation-delay: 420ms; }
.app.is-ready .guest[data-state='start'] .g-invite { animation-delay: 560ms; }
.app.is-ready .guest[data-state='start'] .g-status { animation-delay: 640ms; }
.app.is-ready .guest[data-state='start'] .g-dock { animation-delay: 760ms; }
@keyframes enter { from { opacity: 0; filter: blur(10px); translate: 0 10px; } }

/* header: clock + drain line */
.g-clock { position: absolute; right: 20px; top: calc(var(--st) + 9px); z-index: 3; text-align: right; opacity: 0; transition: opacity 300ms ease; }
.g-clock-time { font-weight: 400; font-size: 28px; transition: color 600ms ease; }
.g-clock-label { display: block; margin-top: 5px; font-size: 12px; color: var(--mute); }
.g-progress { position: absolute; left: 0; right: 0; top: calc(var(--st) + 64px); height: 2px; z-index: 3; background: var(--line); opacity: 0; transition: opacity 300ms ease; }
.g-progress-fill { display: block; height: 100%; background: var(--teal); transform-origin: left; transition: transform 240ms linear, background-color 600ms ease; }
.guest[data-state='list'] :is(.g-clock, .g-progress), .guest[data-state='voted'] :is(.g-clock, .g-progress) { opacity: 1; transition-delay: 300ms; }
.guest.is-late .g-progress-fill { background: var(--copper); }
.guest.is-late .g-clock-time { color: var(--copper); }

/* list */
.g-main { position: absolute; inset: 0; z-index: 2; overflow-y: auto; padding: calc(var(--st) + 94px) 0 170px; scrollbar-width: none; opacity: 0; pointer-events: none; transition: opacity 240ms ease, transform 300ms var(--ease-out); }
.g-main::-webkit-scrollbar { display: none; }
.guest[data-state='list'] .g-main, .guest[data-state='voted'] .g-main { opacity: 1; pointer-events: auto; transition-duration: 1ms; }
.guest[data-state='locked'] .g-main { transform: translateY(14px); }

.g-heading { padding: 0 24px; }
.g-round { font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -0.01em; }
.g-ask { position: relative; margin-top: 12px; font-weight: 400; font-size: 20px; line-height: 1.25; }
.g-ask-b { position: absolute; left: 0; top: 0; }
.g-heading > * { transition: opacity 560ms var(--ease-out), transform 640ms var(--ease-out), filter 560ms var(--ease-out); }
.guest[data-state='start'] .g-heading > * { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.guest[data-state='list'] .g-round { transition-delay: 220ms; }
.guest[data-state='list'] .g-ask { transition-delay: 280ms; }

.g-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.row { position: relative; border-bottom: 1px solid var(--line); transition: opacity 560ms var(--ease-out), transform 640ms var(--ease-out), filter 560ms var(--ease-out); }
.guest[data-state='start'] .row { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.guest[data-state='list'] .row { transition-delay: calc(340ms + var(--i) * 55ms); }

.row-hit { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 12px 20px; text-align: left; transition: transform 160ms var(--ease-out); }
.guest[data-state='list'] .row-hit:active { transform: scale(0.985); }
.guest[data-state='voted'] .row-hit { cursor: default; }
.row-bar { position: absolute; inset: 6px 8px; border-radius: 14px; overflow: hidden; pointer-events: none; }
.row-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgba(244, 242, 238, 0.08); transition: transform 760ms var(--ease-out), background-color 500ms ease; }
.guest[data-state='list'] .is-picked .row-fill { transform: scaleX(1); background: var(--teal-wash); transition-duration: 420ms; }
.guest[data-state='voted'] .is-lead .row-fill { background: rgba(0, 209, 210, 0.22); }
.guest[data-state='voted'] .row:nth-child(2) .row-fill { transition-delay: 40ms; }
.guest[data-state='voted'] .row:nth-child(3) .row-fill { transition-delay: 80ms; }
.guest[data-state='voted'] .row:nth-child(4) .row-fill { transition-delay: 120ms; }

.cv { position: relative; flex: none; width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: #111; outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; transition: outline-color 300ms ease, outline-offset 300ms var(--ease-out); }
.cv-curious { display: grid; place-items: center; overflow: hidden; background: #000 url('../assets/img/bg-lines.jpg') 28% 40% / 300% auto no-repeat; }
.cv-curious img { width: 58%; }
.guest[data-state='voted'] .is-mine .cv { outline: 2px solid var(--teal); outline-offset: 3px; }

.row-text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; transition: opacity 240ms ease; }
.row-title, .row-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { font-size: 17px; line-height: 1.2; }
.row-artist { font-weight: 400; font-size: 14px; line-height: 1.25; color: var(--mute); }
.guest.has-pick[data-state='list'] .row:not(.is-picked) .row-text { opacity: 0.55; }

.row-end { position: relative; flex: none; display: grid; justify-items: end; align-items: center; width: 60px; height: 30px; }
.row-radio, .row-pct { grid-area: 1 / 1; }
.row-radio { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(244, 242, 238, 0.42); transition: background-color 200ms ease, box-shadow 200ms ease, opacity 240ms ease, filter 240ms ease, transform 300ms var(--ease-out); }
.row-radio svg, .g-cta-done svg, .g-next-note svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.row-radio svg { width: 16px; height: 16px; stroke: var(--teal-ink); stroke-width: 2.6; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 280ms var(--ease-out) 60ms; }
.is-picked .row-radio { background: var(--teal); box-shadow: none; animation: pop 340ms var(--ease-out); }
.is-picked .row-radio svg { stroke-dashoffset: 0; }
@keyframes pop { from { transform: scale(0.82); } }
.row-pct { display: flex; align-items: baseline; font-weight: 400; font-size: 24px; opacity: 0; filter: blur(6px); transform: translateY(6px); transition: opacity 360ms ease, filter 360ms ease, transform 420ms var(--ease-out); }
.row-pct-sign { font-size: 14px; margin-left: 2px; color: var(--mute); }
.is-lead .row-pct { font-weight: 700; }
.guest[data-state='voted'] .row-radio { opacity: 0; filter: blur(4px); transform: scale(0.7); }
.guest[data-state='voted'] .row-pct { opacity: 1; filter: none; transform: none; transition-delay: calc(140ms + var(--i) * 50ms); }

/* result: the copper ring holds the next song */
.g-next { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: calc(var(--st) + 76px + 233px + 34px) 28px 0; text-align: center; pointer-events: none; }
.g-next > p, .g-next > h2 { opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease; }
.guest[data-state='locked'] .g-next > p, .guest[data-state='locked'] .g-next > h2 { opacity: 1; transform: none; filter: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), filter 600ms var(--ease-out); }
.guest[data-state='locked'] .g-next-label { transition-delay: 600ms; }
.guest[data-state='locked'] .g-next-title { transition-delay: 680ms; }
.guest[data-state='locked'] .g-next-artist { transition-delay: 740ms; }
.guest[data-state='locked'] .g-next-note { transition-delay: 900ms; }
.g-next-label { font-size: 15px; color: var(--mute); }
.g-next-title { margin-top: 10px; font-weight: 700; font-size: 32px; line-height: 1.08; text-wrap: balance; }
.g-next-artist { margin-top: 8px; font-weight: 400; font-size: 18px; color: var(--mute); text-wrap: balance; }
.g-next-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 16px; }
.g-next-note svg { width: 20px; height: 20px; stroke: var(--teal); stroke-width: 2.4; }

.g-disc { position: absolute; left: calc(50cqw - 83px); top: calc(var(--st) + 76px + 131.75px - 83px); width: 166px; height: 166px; border-radius: 50%; perspective: 900px; opacity: 0; transform: scale(0.92); transition: opacity 200ms ease, transform 300ms ease; }
.guest[data-state='locked'] .g-disc { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 300ms, transform 800ms var(--ease-drawer) 200ms; }
.g-disc.is-waiting { visibility: hidden; }
.g-disc-spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1000ms var(--ease-io); }
.g-disc-spin.is-flipped { transform: rotateY(180deg); }
.g-disc-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.g-disc-back { transform: rotateY(180deg); }
.g-disc-face .cv { width: 100%; height: 100%; border-radius: 50%; outline: none; animation: turn 48s linear infinite; }
.g-disc-face .cv-curious { background-size: 220% auto; }
.g-disc-face .cv-curious img { display: none; }
.g-disc-front .cv-curious::after { content: '?'; font-weight: 400; font-size: 76px; line-height: 1; color: rgba(244, 242, 238, 0.86); }
.g-disc-front .cv-curious { animation: none; }
@keyframes turn { to { rotate: 1turn; } }
.ghost { overflow: hidden; }

/* dock */
.g-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 40px 20px var(--sb); background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 55%, rgba(0, 0, 0, 0)); }
.guest[data-state='start'] .g-dock { background: none; }
.g-stack { display: grid; }
.g-stack > * { grid-area: 1 / 1; transition: opacity 320ms ease, transform 420ms var(--ease-out), filter 320ms ease; }
/* The brand button on dark pages: warm white with slate. Turquoise stays for the live vote. */
.g-cta { position: relative; height: 58px; border-radius: 29px; background: var(--warm-white); color: var(--slate); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; transition: transform 160ms var(--ease-out), opacity 300ms ease, filter 300ms ease; }
.g-cta:not(:disabled):active { transform: scale(0.97); }
.g-cta:disabled { opacity: 0.32; cursor: default; }
.g-cta-in { display: grid; }
.g-cta-label, .g-cta-done { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 220ms ease, filter 220ms ease, transform 320ms var(--ease-out); }
.g-cta-done { opacity: 0; filter: blur(6px); transform: translateY(10px); }
.g-cta-done svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; }
.guest.is-sent .g-cta-label { opacity: 0; filter: blur(6px); transform: translateY(-10px); }
.guest.is-sent .g-cta-done { opacity: 1; filter: none; transform: none; }

.g-count, .g-wait { align-self: center; display: flex; align-items: baseline; opacity: 0; transform: translateY(10px); filter: blur(6px); pointer-events: none; }
.g-count { justify-content: center; font-weight: 400; font-size: 16px; color: var(--mute); }
.g-count-n { font-weight: 400; color: var(--paper); }
.g-wait { justify-content: space-between; padding: 0 4px; }
.g-wait-l { font-weight: 400; font-size: 16px; color: var(--mute); }
.g-wait-t { font-weight: 400; font-size: 30px; color: var(--copper); }
.guest[data-state='voted'] .g-cta, .guest[data-state='locked'] .g-cta { opacity: 0; transform: scale(0.96); filter: blur(4px); pointer-events: none; }
.guest[data-state='voted'] .g-count, .guest[data-state='locked'] .g-wait { opacity: 1; transform: none; filter: none; transition-delay: 160ms; }



/* ============================================================================
   DJ
   ========================================================================== */
.dj { container-type: inline-size; font-size: 16px; }
.dj-bg { position: absolute; inset: -5%; background: url('../assets/img/bg-lines.jpg') center / cover no-repeat; opacity: 0.17; animation: drift 60s ease-in-out infinite alternate; pointer-events: none; }
.dj > :not(.dj-bg) { position: relative; }
.dj-h { font-size: 15px; color: var(--mute); }

.dj-top { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px; height: 78px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.dj-brand { display: flex; align-items: center; gap: 12px; }
.dj-brand-ring { width: 32px; }
.dj-brand-lockup { width: 98px; }
.dj-event { padding-left: 28px; border-left: 1px solid var(--line); align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dj-event strong { font-weight: 400; font-size: 16px; }
.dj-event span { font-weight: 400; font-size: 14px; color: var(--mute); }
.dj-sync { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 14px; color: var(--mute); }
.dj-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.dj-clock { font-weight: 400; font-size: 24px; }

.dj-grid { display: grid; grid-template-columns: 1.12fr 1fr; height: calc(100% - 78px); }
.dj-col { display: flex; flex-direction: column; min-width: 0; }
.dj-col-a { border-right: 1px solid var(--line); }
.dj-col section { padding: 24px 32px; }
.dj-col section + section { border-top: 1px solid var(--line); }

.dj-now-main { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.dj-now-cover, .dj-next-cover { flex: none; overflow: hidden; background: #111; }
.dj-now-cover { width: 148px; height: 148px; border-radius: 10px; }
.dj-now-cover img, .dj-next-cover img { width: 100%; height: 100%; object-fit: cover; }
.dj-now-text { min-width: 0; }
.dj-now-title { font-weight: 700; font-size: 40px; line-height: 1.04; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dj-now-artist { margin-top: 8px; font-weight: 400; font-size: 20px; color: var(--mute); }

.dj-track { margin-top: 26px; }
.dj-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(244, 242, 238, 0.14); }
.dj-bar-lock { position: absolute; inset: 0; border-radius: 3px; background: rgba(212, 151, 122, 0.5); transform-origin: right; transition: transform 420ms var(--ease-out); }
.dj-bar-fill { position: absolute; inset: 0; z-index: 1; border-radius: 3px; background: var(--paper); transform-origin: left; transition: transform 220ms linear; }
.dj-bar-mark { position: absolute; z-index: 2; top: -5px; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--copper); transition: left 420ms var(--ease-out); }
.dj-times { position: relative; display: flex; justify-content: space-between; align-items: flex-end; height: 48px; margin-top: 10px; }
.dj-elapsed { font-weight: 400; font-size: 18px; color: var(--mute); }
.dj-lockat { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--copper); transition: left 420ms var(--ease-out); }
.dj-remaining { font-weight: 700; font-size: 38px; line-height: 1; }
.dj-minus { margin-right: 2px; }

.dj-next-main { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 16px; }
.dj-next-cover { width: 88px; height: 88px; border-radius: 8px; }
.dj-next-cover img { opacity: 0.5; transition: opacity 400ms ease; }
.dj.is-locked .dj-next-cover img { opacity: 1; }
.dj-next-cover.is-waiting img { opacity: 0; transition: none; }
.dj-next-title { font-size: 22px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-lead-k { color: var(--mute); font-weight: 400; }
.dj.is-locked .dj-next-title { font-weight: 700; font-size: 26px; }
.dj-next-artist { margin-top: 6px; font-weight: 400; font-size: 16px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-next-state { text-align: right; }
.dj-next-k { display: flex; justify-content: flex-end; align-items: center; gap: 7px; font-size: 14px; color: var(--mute); }
.dj-key { width: 18px; }
.dj-next-t { display: inline-flex; margin-top: 8px; font-weight: 700; font-size: 34px; transition: color 500ms ease; }
.dj.is-late .dj-next-t, .dj.is-locked .dj-next-t, .dj.is-locked .dj-next-k { color: var(--copper); }

.dj-action { display: grid; margin-top: 20px; height: 52px; padding: 0 28px; border-radius: 26px; box-shadow: inset 0 0 0 1.5px rgba(244, 242, 238, 0.42); font-weight: 700; font-size: 17px; transition: transform 160ms var(--ease-out), background-color 400ms ease, color 400ms ease, box-shadow 400ms ease; }
.dj-action:active { transform: scale(0.97); }
.dj-action > span { grid-area: 1 / 1; align-self: center; transition: opacity 220ms ease, filter 220ms ease, transform 320ms var(--ease-out); }
.dj-action-b { opacity: 0; filter: blur(5px); transform: translateY(8px); }
.dj.is-locked .dj-action { background: var(--copper); color: var(--copper-ink); box-shadow: none; }
.dj.is-locked .dj-action-a { opacity: 0; filter: blur(5px); transform: translateY(-8px); }
.dj.is-locked .dj-action-b { opacity: 1; filter: none; transform: none; }

.dj-window { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: auto; }
.dj-sub { margin-top: 5px; font-weight: 400; font-size: 13px; color: var(--quiet); }
.dj-stepper { display: flex; align-items: center; gap: 6px; }
.dj-stepper button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(244, 242, 238, 0.32); transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
.dj-stepper button:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .dj-stepper button:hover, .dj-action:hover { box-shadow: inset 0 0 0 1.5px rgba(244, 242, 238, 0.7); } .dj.is-locked .dj-action:hover { box-shadow: none; } }
.dj-stepper svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.dj-window-v { min-width: 84px; text-align: center; font-weight: 400; font-size: 26px; }

.dj-vote-head { display: flex; justify-content: space-between; align-items: baseline; }
.dj-round { font-weight: 700; font-size: 28px; line-height: 1; }
.dj-total { font-weight: 400; font-size: 17px; color: var(--mute); }
.dj-total .rl { color: var(--paper); font-weight: 400; }
.dj-rows { list-style: none; padding: 0; margin-top: 14px; }
.dj-row { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); transition: opacity 500ms ease; }
.dj-row::before { content: ''; position: absolute; inset: 2px -14px; border-radius: 12px; background: var(--teal-wash); opacity: 0; pointer-events: none; }
.dj-row.from-guest::before { animation: wash 1800ms var(--ease-out); }
@keyframes wash { 0% { opacity: 1; } 100% { opacity: 0; } }
.dj-row-n::after { content: var(--plus, '+1 vom Handy'); position: absolute; right: 0; top: -6px; font-size: 12px; color: var(--teal); white-space: nowrap; opacity: 0; pointer-events: none; }
.dj-row.from-guest .dj-row-n::after { animation: plus 1800ms var(--ease-out); }
@keyframes plus { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.dj-row-cover { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; }
.dj-row-text { min-width: 0; }
.dj-row-title { display: flex; align-items: baseline; gap: 10px; font-size: 18px; line-height: 1.2; }
.dj-row-title > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-tag { flex: none; font-weight: 400; font-size: 13px; color: var(--copper-hi); }
.dj-next-title .dj-tag { margin-left: 12px; font-size: 14px; }
.dj-row-artist { margin-top: 3px; font-weight: 400; font-size: 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-row-bar { display: block; height: 3px; margin-top: 9px; border-radius: 2px; background: rgba(244, 242, 238, 0.1); overflow: hidden; }
.dj-row-bar span { display: block; height: 100%; background: rgba(244, 242, 238, 0.5); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out), background-color 400ms ease; }
.dj-row.is-lead .dj-row-bar span { background: var(--teal); }
.dj-row-n { position: relative; min-width: 64px; text-align: right; }
.dj-row-n .rl { font-weight: 700; font-size: 30px; transition: color 600ms ease; }
.dj-row.bump .dj-row-n .rl { animation: bump 700ms ease; }
@keyframes bump { 0% { color: var(--teal); } 100% { color: var(--paper); } }
.dj-row-pct { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.dj-row.is-out { opacity: 0.32; }

.dj-prep { margin-top: auto; }
.dj-prep-head { display: flex; justify-content: space-between; align-items: baseline; }
.dj-prep-n { font-weight: 400; font-size: 14px; color: var(--quiet); }
.dj-prep-list { list-style: none; padding: 0; margin-top: 8px; }
.dj-prep-row { display: grid; grid-template-columns: 78px auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 0; }
.dj-prep-row + .dj-prep-row { border-top: 1px solid var(--line); }
.dj-prep-name { font-size: 15px; }
.dj-prep-covers { display: flex; gap: 4px; }
.dj-prep-covers img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; }
.dj-prep-titles { font-weight: 400; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* DJ on a phone: one column, scrolls */
@container (max-width: 900px) {
  .dj-top { grid-template-columns: auto 1fr auto; gap: 16px; height: auto; padding: 14px 20px; }
  .dj-event { display: none; }
  .dj-clock, .dj-lockat { display: none; }
  .dj-grid { display: block; height: auto; }
  .dj-col-a { border-right: 0; border-bottom: 1px solid var(--line); }
  .dj-col section { padding: 20px; }
  .dj-now-cover { width: 96px; height: 96px; }
  .dj-now-title { font-size: 28px; }
  .dj-now-artist { font-size: 16px; }
  .dj-next-main { grid-template-columns: 64px minmax(0, 1fr); }
  .dj-next-cover { width: 64px; height: 64px; }
  .dj-next-state { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .dj-next-k { justify-content: flex-start; }
  .dj-action { width: 100%; }
  .dj-window { flex-direction: column; align-items: flex-start; }
}
.app[data-mode='device'] .dj { overflow-y: auto; }

/* ============================================================================
   Lounge screen, 1920 × 1080
   ========================================================================== */
.lounge { width: 1920px; height: 1080px; color: #f2f0ea; }
.l-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.l-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.6) 46%, rgba(0, 0, 0, 0.28) 100%); }
.l-brand { position: absolute; left: 128px; top: 112px; }
.l-ring { width: 128px; }
.l-lockup { width: 800px; margin-top: 64px; margin-left: -6px; }
.l-call { position: absolute; left: 128px; top: 610px; font-weight: 400; font-size: 66px; line-height: 1.12; }
.l-now { position: absolute; left: 128px; bottom: 104px; display: flex; align-items: center; gap: 26px; }
.l-now-cover { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; }
.l-now-k { display: block; font-weight: 400; font-size: 26px; color: rgba(242, 240, 234, 0.66); }
.l-now-t { display: block; margin-top: 8px; font-size: 34px; }
.l-qr { position: absolute; right: 168px; top: 190px; width: 560px; }
.l-qr-plate { padding: 30px; border-radius: 40px; background: #f2f0ea; }
.l-qr-plate svg { display: block; width: 100%; height: auto; fill: #000; }
.l-qr figcaption { margin: 34px -160px 0; text-align: center; font-weight: 400; font-size: 30px; color: rgba(242, 240, 234, 0.74); }

/* ============================================================================
   Reduced motion: keep fades, drop travel
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .app::before, .dj-bg, .g-ring img, .g-disc-face .cv { animation: none !important; }
  .g-ring, .g-lockup { transition-duration: 1ms; }
  .rl-strip { transition: none; }
  .app.is-ready .guest[data-state='start'] *, .intro-inner > * { animation-duration: 1ms !important; }
  .world, .intro { transition-duration: 1ms !important; }
  .hotspot::after { animation: none; }
}
