/* Festival night layer (2026-11-18): dark neon poster look after the user's reference.
   Loaded after style.css; it re-themes tokens and stages without touching structure or JS hooks. */
:root {
  --ink: #fff1f8;
  --paper: #0d0719;
  --night: #0d0719;
  --plum: #1c0d3a;
  --violet: #3b1d7a;
  --pink: #ff3d8b;
  --lime: #d7ff4f;
  --lilac: #c9a6ff;
  --cyan: #63e6f0;
  --dots: radial-gradient(circle, var(--dot-color, #ff3d8b55) 1.4px, transparent 1.8px) 0 0 / 11px 11px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
body { background: var(--night); color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--lime); }
.header { border-bottom-color: #ffffff1f; }
.header.is-scrolled, .header.is-dark { background: #0d0719ee; color: var(--ink); border-color: #ff3d8b33; }
.header.is-dark nav a:hover, .header nav a:hover { border-color: var(--pink); }

/* ---------- Stage: one poster per performer ---------- */
.stage { background: var(--plum); }
.stage[data-chapter='1'] { background: #2e0b3d; }
.stage[data-chapter='2'] { background: #0f1c40; }
.stage-art::before { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: var(--dots); --dot-color: #ff3d8b66; mask-image: linear-gradient(to top, black, transparent); }
.stage[data-chapter='1'] .stage-art::before { --dot-color: #d7ff4f55; }
.stage[data-chapter='2'] .stage-art::before { --dot-color: #63e6f055; }
.orbit { border-color: #ff3d8b26; }
.orbit-two { border-color: #c9a6ff1f; }
.orbit-three { border-color: #63e6f01a; }
.back-word, .stage[data-chapter] .back-word { color: transparent; -webkit-text-stroke: 2px #ff3d8b; opacity: .5; transition: -webkit-text-stroke-color 500ms; }
.stage[data-chapter='1'] .back-word { -webkit-text-stroke-color: var(--lime); }
.stage[data-chapter='2'] .back-word { -webkit-text-stroke-color: var(--cyan); }
.spark { color: var(--lime); }
.spark-two { color: var(--pink); }
.halftone { display: none; }
.status-dot { background: var(--lime); box-shadow: 0 0 0 4px #d7ff4f33; }
.chapter h1 span { color: var(--pink); }
.chapter h2 { color: var(--ink); }
.chapter-one h2 span { -webkit-text-stroke: 0; color: var(--lime); }
.chapter-two h2 span { -webkit-text-stroke: 0; color: var(--cyan); }
.intro-copy { color: #e7d9f2; }
.sound-hint { color: #b9a8c9; }
.primary-button { background: var(--pink); color: var(--night); box-shadow: 5px 5px 0 var(--lime); }
.primary-button:hover { box-shadow: 8px 8px 0 var(--lime); }
.chapter-note span { border-color: var(--lime); color: var(--lime); }

/* Performer card: a tilted poster frame behind each loop, like a festival line-up card. */
.character-rig::before {
  content: ''; position: absolute; z-index: -1; inset: 10% 9% 7% 11%;
  background: var(--dots), var(--card, #3b1d7a); --dot-color: #ffffff22;
  border: 6px solid var(--frame, #ff3d8b); rotate: -4deg;
  transition: rotate 700ms var(--spring), scale 700ms var(--spring);
}
[data-performer-art='ribbit']::before { --card: #5a1a63; --frame: #d7ff4f; rotate: 3deg; }
[data-performer-art='nova']::before { --card: #17306b; --frame: #63e6f0; rotate: -2deg; }
.character-rig { isolation: isolate; }
.character-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.has-loop > .character { visibility: hidden; }

/* Scroll hand-off: the next headliner slams in on a spring, the last one drops out fast. */
.performer { opacity: 0; translate: 60px 40px; scale: .78; rotate: 6deg; transition: opacity 260ms ease, translate 260ms ease, scale 260ms ease, rotate 260ms ease; }
.performer::before { scale: .6; rotate: 14deg; }
.performer.is-present { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; transition: opacity 240ms ease 120ms, translate 760ms var(--spring) 120ms, scale 760ms var(--spring) 120ms, rotate 760ms var(--spring) 120ms; }
.performer.is-present::before { scale: 1; rotate: -4deg; transition-delay: 60ms; }
[data-performer-art='ribbit'].is-present::before { rotate: 3deg; }
[data-performer-art='nova'].is-present::before { rotate: -2deg; }
.chapter { transform: translateY(40px) scale(.96); transition: opacity 300ms, transform 700ms var(--spring); }
.chapter.is-active { transform: none; transition-delay: 160ms; }

/* Ribbit is visibly "on" only while his voice is audible. */
.is-singing .character-loop { filter: drop-shadow(0 0 0 #d7ff4f) drop-shadow(0 0 18px #d7ff4f88); }

.artist-tag { background: var(--lime); color: var(--night); border-color: var(--night); box-shadow: 5px 5px 0 var(--pink); }
.stage[data-chapter='1'] .artist-tag { background: var(--pink); box-shadow: 5px 5px 0 var(--lime); }
.stage[data-chapter='2'] .artist-tag { background: var(--cyan); box-shadow: 5px 5px 0 var(--pink); }
.session-stamp { color: var(--lime); }
.scroll-line::after { background: var(--lime); }
.story-dots button { color: #9c8bb0; }
.story-dots > span { background: #ffffff33; }
.story-progress { background: #ffffff14; }
.story-progress i { background: var(--pink); }

/* ---------- Ticker ---------- */
.ticker { background: var(--lime); color: var(--night); border-color: var(--night); rotate: -1.5deg; margin: -14px -2% 0; position: relative; z-index: 2; }

/* ---------- Mixer section ---------- */
.mix-section { background: var(--night); color: var(--ink); position: relative; isolation: isolate; }
.mix-section::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--dots); --dot-color: #3b1d7a; mask-image: linear-gradient(to bottom, black, transparent 60%); }
.mix-heading h2 em { color: var(--pink); }
.mix-intro p { color: #d8c8e8; }
.ensemble-stage { height: clamp(300px, 34vw, 460px); gap: 3%; }
.ensemble-word { color: transparent; -webkit-text-stroke: 1.5px #ff3d8b55; }
.ensemble-art::before { content: ''; position: absolute; z-index: -1; inset: 6% 8% 0; background: var(--dots), var(--card, #3b1d7a); --dot-color: #ffffff1f; border: 5px solid var(--frame, #ff3d8b); rotate: -3deg; transition: rotate 500ms var(--spring), scale 500ms var(--spring); }
.ensemble-ribbit .ensemble-art::before { --card: #5a1a63; --frame: #d7ff4f; rotate: 2deg; }
.ensemble-nova .ensemble-art::before { --card: #17306b; --frame: #63e6f0; rotate: -1deg; }
.ensemble-art { isolation: isolate; }
.ensemble-member:hover .ensemble-art::before { scale: 1.04; rotate: 0deg; }
.ensemble-member figcaption { color: var(--ink); }
.ensemble-member.is-muted .ensemble-art { opacity: .35; filter: grayscale(1); }
.text-button { color: var(--ink); border-bottom-color: var(--pink); }

/* ---------- Crate ---------- */
.crate-section { background: #140a2b; color: var(--ink); }
.crate-heading h2 span { color: var(--lime); }
.sleeve-art { color: var(--night); border: 0; box-shadow: 8px 8px 0 #000; }
.sleeve-art h3 { color: var(--night); }
.sleeve-night .sleeve-art h3 { color: var(--night); }
.sleeve:hover .sleeve-art { box-shadow: 12px 14px 0 var(--pink); }
.sleeve.is-selected .sleeve-art { outline-color: var(--lime); }
.sleeve-info button { color: var(--ink); }
.crate-note { color: #a897bb; }

/* ---------- Artist + outro + footer ---------- */
.artist-section { color: var(--night); border-color: var(--night); }
.artist-section .text-button { color: var(--night); border-bottom-color: var(--night); }
.artist-section .eyebrow { color: var(--night); }
.portrait-sticker { color: var(--night); }
.outro { background: var(--violet); }
.outro h2 span { -webkit-text-stroke: 0; color: var(--lime); }
.outro-star { color: #ff3d8b40; }
.outro .primary-button { background: var(--lime); box-shadow: 5px 5px 0 var(--pink); }
footer { background: var(--night); }
.audio-status { color: var(--night); }

@media (max-width: 760px) {
  .character-rig::before { inset: 12% 6% 6% 8%; border-width: 4px; }
  .ensemble-art::before { inset: 10% 4% 0; border-width: 3px; }
  .ticker { rotate: 0deg; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .character-loop { display: none; }
  .has-loop > .character { visibility: visible; }
  .performer, .performer.is-present, .performer::before, .chapter { transition: opacity 200ms; translate: 0 0; scale: 1; }
}

/* =========================================================
   Experience layer: gate, HUD, beat pulse, FX pads, bursts,
   chapter wipe, kinetic type, generated record wall, cursor.
   ========================================================= */
body.gate-open { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 200; background: var(--pink); color: var(--night); display: grid; place-items: center; overflow: hidden; clip-path: inset(0 0 0 0); transition: clip-path 900ms cubic-bezier(.77,0,.18,1); }
.gate.is-leaving { clip-path: inset(0 0 100% 0); }
.gate-rows { position: absolute; inset: 0; display: grid; align-content: space-around; rotate: -8deg; scale: 1.25; pointer-events: none; }
.gate-rows span { font: clamp(70px, 12vw, 190px)/.9 Anton, sans-serif; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px #0d071955; animation: gate-row 18s linear infinite; }
.gate-rows span:nth-child(2) { animation-direction: reverse; -webkit-text-stroke-color: #d7ff4f; }
@keyframes gate-row { to { translate: -50% 0; } }
.gate-core { position: relative; text-align: center; padding: 24px; }
.gate-kicker { font: 700 13px/1 Arial, sans-serif; letter-spacing: 3px; margin: 0 0 18px; }
.gate-title { font: clamp(96px, 20vw, 300px)/.82 Anton, sans-serif; letter-spacing: -.03em; color: var(--night); display: flex; align-items: center; justify-content: center; gap: .05em; animation: gate-in 900ms var(--spring) both; }
.gate-title span { color: var(--lime); font-family: Arial, sans-serif; font-size: .6em; animation: spin 6s linear infinite; display: inline-block; -webkit-text-stroke: 3px var(--night); }
@keyframes gate-in { from { scale: 1.6; opacity: 0; filter: blur(8px); } }
@keyframes spin { to { rotate: 360deg; } }
.gate-actions { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate-go { display: inline-flex; align-items: center; gap: 26px; background: var(--night); color: var(--lime); font: 700 15px Arial, sans-serif; letter-spacing: 1.5px; padding: 22px 30px; box-shadow: 7px 7px 0 var(--lime); transition: translate 160ms, box-shadow 160ms; }
.gate-go:hover { translate: -3px -3px; box-shadow: 10px 10px 0 var(--lime); }
.gate-go:active { translate: 4px 4px; box-shadow: 2px 2px 0 var(--lime); }
.gate-quiet { background: none; color: var(--night); font: 700 13px Arial, sans-serif; text-decoration: underline; text-underline-offset: 5px; padding: 10px; }

/* Beat pulse: everything that should breathe with the kick reads --energy. */
.character-loop { scale: calc(1 + var(--energy) * .05); transform-origin: 50% 90%; }
.back-word { scale: calc(1 + var(--energy) * .09); }
.stage-art::before { opacity: calc(.55 + var(--energy) * 1.2); }
.stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pink); opacity: calc(var(--energy) * .18); pointer-events: none; }
.stage[data-chapter='1']::before { background: var(--lime); }
.stage[data-chapter='2']::before { background: var(--cyan); }
.session-stamp { scale: calc(1 + var(--energy) * .25); }

/* Chapter wipe: a diagonal colour band slashes across the stage on every hand-off. */
.stage::after { content: ''; position: absolute; inset: -20% -40%; z-index: 20; pointer-events: none; background: var(--lime); clip-path: polygon(0 0, 18% 0, 8% 100%, -10% 100%); translate: -60% 0; }
.stage[data-chapter='1']::after { background: var(--pink); }
.stage[data-chapter='2']::after { background: var(--cyan); }
.stage.is-wiping::after { animation: wipe 760ms cubic-bezier(.7,0,.2,1); }
@keyframes wipe { 0% { translate: -60% 0; } 100% { translate: 140% 0; } }

/* Kinetic headlines. */
.chapter .w { display: inline-block; opacity: 0; translate: 0 .6em; rotate: 4deg; transition: opacity 300ms, translate 650ms var(--spring), rotate 650ms var(--spring); }
.chapter.is-active .w { opacity: 1; translate: 0 0; rotate: 0deg; transition-delay: calc(180ms + var(--i) * 70ms); }

/* Ribbit FX pads. */
.fx-pads { display: grid; grid-template-columns: repeat(3, minmax(0, 118px)); gap: 10px; margin-top: 6px; }
.fx-pad { position: relative; aspect-ratio: 1.35; background: #ffffff10; color: var(--ink); border: 2px solid var(--lime); display: grid; place-items: center; font: 17px Anton, sans-serif; letter-spacing: .5px; transition: background 120ms, color 120ms, translate 120ms, box-shadow 120ms; box-shadow: 4px 4px 0 #d7ff4f55; }
.fx-pad:nth-child(2n) { border-color: var(--pink); box-shadow: 4px 4px 0 #ff3d8b55; }
.fx-pad kbd { position: absolute; top: 6px; right: 8px; font: 700 10px Arial, sans-serif; opacity: .6; }
.fx-pad:hover { background: #d7ff4f22; translate: -2px -2px; }
.fx-pad.is-hit { animation: pad-hit 380ms ease-out; }
@keyframes pad-hit { 0% { background: var(--lime); color: var(--night); scale: .9; } 100% { background: #ffffff10; scale: 1; } }

/* Comic bursts around Ribbit. */
.burst-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.burst { position: absolute; left: var(--x); top: var(--y); font: clamp(34px, 4.5vw, 72px)/1 Anton, sans-serif; color: var(--lime); -webkit-text-stroke: 3px var(--night); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--pink); rotate: var(--r); animation: burst 1100ms var(--spring) forwards; white-space: nowrap; }
@keyframes burst { 0% { scale: .2; opacity: 0; } 18% { scale: 1.15; opacity: 1; } 70% { scale: 1; opacity: 1; } 100% { scale: 1.05; opacity: 0; translate: 0 -30px; } }
.is-firing .character-loop { filter: drop-shadow(0 0 22px #d7ff4f); }
.is-singing .character-loop { filter: drop-shadow(0 0 14px #d7ff4faa); }

/* Persistent HUD player. */
.hud { position: fixed; z-index: 60; left: 50%; bottom: 18px; translate: -50% 0; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 10px; background: #0d0719f2; border: 2px solid var(--track, var(--pink)); box-shadow: 6px 6px 0 var(--track, var(--pink)); color: var(--ink); min-width: min(560px, calc(100vw - 32px)); transition: border-color 400ms, box-shadow 400ms, translate 500ms var(--spring); }
body.gate-open .hud { translate: -50% 140%; }
.hud-disc { width: 42px; height: 42px; border-radius: 50%; flex: none; background: radial-gradient(circle, var(--track, var(--pink)) 0 22%, #0d0719 23% 27%, #2a2236 28% 100%); rotate: var(--angle); }
.hud-track { min-width: 0; flex: 1; }
.hud-track strong { display: block; font: 20px/1.05 Anton, sans-serif; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-track span { display: block; font: 700 10px Arial, sans-serif; letter-spacing: 1.2px; color: var(--track, var(--pink)); margin-top: 4px; }
.hud-bars { display: flex; align-items: end; gap: 3px; height: 34px; }
.hud-bars i { width: 4px; height: 100%; background: var(--track, var(--pink)); transform-origin: bottom; transform: scaleY(.12); }
.hud-buttons { display: flex; gap: 6px; }
.hud-buttons button { width: 44px; height: 44px; background: #ffffff12; color: var(--ink); font-size: 18px; transition: background 150ms, scale 150ms; }
.hud-buttons button:hover { background: #ffffff26; }
.hud-buttons button:active { scale: .9; }
.hud-buttons [data-hud-play] { background: var(--track, var(--pink)); color: var(--night); }
.audio-status { bottom: 98px; }
.stage-bottom { bottom: 96px; }
.story-progress { bottom: 0; }

/* Generated record wall: horizontal, snap, sleeves that push their vinyl out. */
.record-crate { max-width: none; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 7% 40px; margin: 0 -7%; scrollbar-width: none; }
.record-crate::-webkit-scrollbar { display: none; }
.sleeve { flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: center; }
.sleeve-art { background: var(--sleeve) !important; overflow: visible; isolation: isolate; cursor: pointer; padding: 22px; }
.sleeve-art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--sleeve); }
.sleeve-vinyl { position: absolute; z-index: 0; top: 6%; right: 6%; width: 88%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #0d0719 0 2px, #241c2e 3px 5px); display: grid; place-items: center; transition: translate 650ms var(--spring), rotate 650ms var(--spring); }
.sleeve-vinyl b { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--sleeve); display: grid; place-items: center; font: 14px Anton, sans-serif; color: var(--night); }
.sleeve:hover .sleeve-vinyl, .sleeve.is-selected .sleeve-vinyl { translate: 34% 0; rotate: 120deg; }
.sleeve.is-selected .sleeve-vinyl { animation: vinyl-spin 2.4s linear infinite; }
@keyframes vinyl-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
.sleeve-pattern { position: absolute; inset: 0; z-index: 2; opacity: .35; }
.sleeve-pattern.p0 { background: var(--dots); --dot-color: #0d0719; }
.sleeve-pattern.p1 { background: repeating-linear-gradient(-45deg, #0d071933 0 6px, transparent 6px 18px); }
.sleeve-pattern.p2 { background: radial-gradient(circle at 70% 75%, #0d071966 0 22%, transparent 23%); }
.sleeve-pattern.p3 { background: repeating-linear-gradient(0deg, #0d071933 0 2px, transparent 2px 14px), repeating-linear-gradient(90deg, #0d071933 0 2px, transparent 2px 14px); }
.sleeve-pattern.p4 { background: conic-gradient(from 20deg at 30% 80%, #0d071955 0 40deg, transparent 40deg 80deg, #0d071955 80deg 120deg, transparent 120deg); }
.sleeve-pattern.p5 { background: repeating-radial-gradient(circle at 20% 20%, #0d071944 0 3px, transparent 3px 16px); }
.sleeve-edition, .sleeve-bottom, .sleeve-art h3 { z-index: 3; font-family: inherit; }
.sleeve-edition, .sleeve-bottom { font: 700 9px/1.3 Arial, sans-serif; letter-spacing: 1.2px; }
.sleeve-art h3 { font-size: clamp(40px, 4vw, 58px); }
.sleeve.is-selected .sleeve-art { outline: 3px solid var(--lime); outline-offset: 6px; }
.sleeve-info > div > span { font: 700 10px Arial, sans-serif; letter-spacing: 1px; color: #c9b8dc; }
.sleeve-info button { font-size: 10px; letter-spacing: 1px; color: var(--lime); border-bottom-color: var(--lime); }
.sleeve-info button[aria-pressed='true'] { color: var(--pink); border-bottom-color: var(--pink); }

/* Beat cursor. */
.cursor { position: fixed; z-index: 300; left: 0; top: 0; pointer-events: none; display: none; }
.cursor[data-on] { display: block; }
.cursor i { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid var(--lime); border-radius: 50%; scale: calc(1 + var(--energy) * 1.4); transition: width 200ms, height 200ms, margin 200ms, background 200ms; mix-blend-mode: difference; }
.cursor.is-hover i { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: #d7ff4f; }
@media (pointer: fine) { body:has(.cursor[data-on]) :is(a, button, .sleeve-art) { cursor: none; } }

@media (max-width: 760px) {
  .hud { gap: 10px; bottom: 10px; padding: 8px; min-width: calc(100vw - 20px); }
  .hud-bars { display: none; }
  .hud-buttons button { width: 40px; height: 40px; }
  .stage-bottom { bottom: 84px; }
  .fx-pads { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fx-pad { font-size: 14px; aspect-ratio: 1.6; }
  .sleeve { flex-basis: 74vw; }
  .gate-title { font-size: 26vw; }
}
@media (prefers-reduced-motion: reduce) {
  .gate, .gate-rows span, .gate-title, .gate-title span, .stage.is-wiping::after, .burst, .sleeve.is-selected .sleeve-vinyl { animation: none; transition: none; }
  .gate.is-leaving { opacity: 0; }
  .chapter .w { opacity: 1; translate: 0 0; rotate: 0deg; transition: none; }
}

/* fixes after first live look */
.chapter :is(h1, h2) .w { color: inherit; -webkit-text-stroke: inherit; }
.stage-bottom { display: none; }
.chapter { top: 21%; }
.fx-pads { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 640px; }
.fx-pad { aspect-ratio: auto; height: 58px; font-size: 14px; }
@media (max-width: 760px) { .fx-pads { grid-template-columns: repeat(3, 1fr); } .fx-pad { height: 46px; } }
.sleeve-art h3 { font-family: Anton, Impact, sans-serif; line-height: .95; letter-spacing: -.01em; }
.record-crate { gap: 64px; }
.sleeve:hover .sleeve-vinyl, .sleeve.is-selected .sleeve-vinyl { translate: 46% 0; }
@media (max-width: 760px) { .fx-pad { background: #1c0d3a; } .fx-pad kbd { display: none; } .chapter-one .intro-copy { font-size: 17px; margin-bottom: 18px; } }
.fx-pad em { display: none; font-style: normal; }
@media (max-width: 760px) {
  .fx-pads { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .fx-pad { height: 40px; font-size: 13px; }
  .fx-pad b { display: none; }
  .fx-pad em { display: block; }
}

/* Mix layer toggles: readable and clearly on/off. */
.console-shell, .transport button { color: var(--ink); }
.stems button { color: var(--ink); font-size: 12px; font-weight: 700; padding: 14px 18px; border: 2px solid var(--lime); background: #d7ff4f14; transition: background 150ms, color 150ms, border-color 150ms, translate 150ms; }
.stems button:hover { translate: 0 -2px; background: #d7ff4f2a; }
.stems button[aria-pressed='false'] { color: #8f82a3; border-color: #3c3544; background: transparent; text-decoration: line-through; }
.stems .control-label::after { content: ' · tap a layer to mute it or bring it back'; text-transform: none; letter-spacing: .3px; color: #8f82a3; }

/* Vinyl slides out of the top of its sleeve so it never collides with the neighbour. */
.record-crate { gap: 32px; padding-top: 150px; margin-top: -110px; }
.sleeve-vinyl { top: 6%; left: 6%; right: auto; width: 88%; }
.sleeve:hover .sleeve-vinyl, .sleeve.is-selected .sleeve-vinyl { translate: 0 -44%; }
.sleeve:hover .sleeve-art { transform: translateY(-6px); }
footer { padding-bottom: 120px; }
@media (max-width: 760px) { .record-crate { padding-top: 120px; margin-top: -90px; } }

/* Mobile pass 2026-11-18 */
@media (max-width: 760px) {
  .record-crate { margin-top: 0; padding-top: 115px; }
  .ensemble-stage { margin-inline: 0; gap: 10px; }
  .ensemble-art::before { inset: 8% 2% 0; }
  .artist-tag { bottom: auto; top: 46%; right: 4%; }
  .performance { bottom: 78px; }
}
@media (max-width: 760px) {
  .stage .artist-tag, .stage:not([data-chapter='0']) .artist-tag { top: auto; bottom: 22%; right: 5%; }
}

/* Fixes from the user's phone-simulator review (2026-11-18) */
.transport #transport-play { color: var(--night); }
.cursor.is-hover i { background: transparent; border-width: 3px; }
@media (max-width: 760px) {
  .gate-title { font-size: 18.5vw; }
  .chapter-one .intro-copy, .chapter-two .intro-copy { display: none; }
  .chapter-one, .chapter-two { top: 15%; }
  .chapter-one .fx-pads { margin-top: 22px; }
  .stage .guest-performer { top: auto; bottom: 0; right: 4%; width: min(88vw, 400px, 42svh); height: min(88vw, 400px, 42svh); }
  .audio-status { bottom: auto; top: 84px; }
}
@media (max-width: 760px) { .session-stamp { top: 88px; right: 5%; width: 70px; } .spark-one { display: none; } }
/* Mobile: the crew stacks in one column so each performer reads big. */
@media (max-width: 760px) {
  .ensemble-stage { display: grid; grid-template-columns: 1fr; height: auto; gap: 34px; margin-inline: 0; }
  .ensemble-member { height: min(105vw, 420px); }
  .ensemble-art { inset: 0 0 46px; }
  .ensemble-art::before { inset: 4% 6% 0; border-width: 4px; }
  .ensemble-ribbit .ensemble-art::before { rotate: 2deg; }
  .ensemble-member figcaption { font-size: 24px; }
  .ensemble-member figcaption span { display: inline-block; margin: 0 0 0 10px; font-size: 9px; }
  .ensemble-console { left: 6%; width: 88%; height: 90px; bottom: 50px; }
  .ensemble-word { display: none; }
}
/* Deck pads: dark legible numbers plus the sound they trigger. */
.deck-lab .pad { color: var(--night); font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.deck-lab .pad::after { content: attr(data-pad); font: 700 9px/1 Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
@media (max-width: 760px) { .deck-lab .pad { min-height: 42px; height: 42px; font-size: 13px; } .deck-lab .pad::after { font-size: 8px; } }

/* Tonearm anchored to its own platter: pivot at the top-right corner, needle resting on the record's outer grooves. */
.console-shell .platter > .tonearm { position: absolute; z-index: 2; top: -2%; right: -3%; left: auto; bottom: auto; width: 5%; min-width: 3px; height: 60%; border: 0; border-radius: 4px; background: #b4a8c4; transform: rotate(30deg); transform-origin: 50% 3%; pointer-events: none; }
.console-shell .platter > .tonearm::before { content: ''; position: absolute; top: -6%; left: 50%; width: 260%; aspect-ratio: 1; height: auto; translate: -50% 0; right: auto; border-radius: 50%; background: #514557; border: 2px solid #96889e; }
.console-shell .platter > .tonearm::after { content: ''; position: absolute; bottom: -6%; left: 50%; right: auto; translate: -50% 0; width: 230%; height: 16%; background: var(--pink); border: 2px solid #100e16; border-radius: 2px; }
.console-shell .platter > .tonearm { height: 50%; transform: rotate(24deg); }
.console-shell .platter > .tonearm::after { width: 200%; height: 14%; }
.stage-console .knobs, .stage-console .fader { display: none; }
@media (max-width: 760px) { .chapter-two .primary-button { margin-top: 28px; } .chapter-one .fx-pads { margin-top: 28px; } }

/* Artist portrait: Kira's dancing loop, planted on the section's bottom edge. */
.portrait-window { background: url('assets/kira.png') 50% 100% / contain no-repeat; overflow: hidden; }
.portrait-window:has(.portrait-loop) { background: none; }
.portrait-loop { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; translate: 0 4.5%; transform-origin: 50% 100%; animation: portrait-groove 1.3s ease-in-out infinite; }
@keyframes portrait-groove { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
@media (prefers-reduced-motion: reduce) {
  .portrait-loop { display: none; }
  .portrait-window:has(.portrait-loop) { background: url('assets/kira.png') 50% 100% / contain no-repeat; }
}

/* GuíaNecteon brand intro (same neon power-on + cartoon iris as the house projects). */
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --intro-reveal { syntax: "<percentage>"; inherits: true; initial-value: 32.2%; }
.brand-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: radial-gradient(circle at center, #2a1460 0%, #0d0719 70%); --iris: 0px; -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px)); mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px)); transition: --iris 900ms 300ms cubic-bezier(.7, 0, .3, 1); }
.bi-stage { width: min(78vw, 520px); transition: opacity 320ms ease, transform 320ms ease; }
.bi-logo { display: block; width: 100%; height: auto; user-select: none; -webkit-mask-image: linear-gradient(90deg, #000 var(--intro-reveal), transparent calc(var(--intro-reveal) + 6%)); mask-image: linear-gradient(90deg, #000 var(--intro-reveal), transparent calc(var(--intro-reveal) + 6%)); --intro-reveal: 32.2%; transform: translateX(34.13%); transition: --intro-reveal 800ms cubic-bezier(.45, 0, .25, 1), transform 800ms cubic-bezier(.45, 0, .25, 1); }
.bi-glow { opacity: 0; }
.brand-intro[data-phase] .bi-glow { animation: bi-neon 1100ms linear both; }
.brand-intro[data-phase="word"] .bi-logo, .brand-intro[data-phase="exit"] .bi-logo { --intro-reveal: 106%; transform: translateX(0); }
.brand-intro[data-phase="exit"] { --iris: 160vmax; pointer-events: none; }
.brand-intro[data-phase="exit"] .bi-stage { opacity: 0; transform: scale(.94); }
@keyframes bi-neon {
  0% { opacity: 0; filter: none; }
  8% { opacity: .9; filter: drop-shadow(0 0 14px rgba(255, 61, 139, .9)); }
  12% { opacity: .1; filter: none; }
  20% { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 61, 139, .9)); }
  24% { opacity: .25; filter: none; }
  30%, 36% { opacity: 1; filter: drop-shadow(0 0 22px rgba(255, 61, 139, .95)); }
  39% { opacity: .55; }
  44%, 100% { opacity: 1; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 16px rgba(255, 61, 139, .75)) drop-shadow(0 0 40px rgba(201, 166, 255, .45)); }
}
@media (prefers-reduced-motion: reduce) { .bi-logo, .bi-stage, .brand-intro { transition: none; } .brand-intro[data-phase] .bi-glow { animation: none; opacity: 1; } }

/* Footer credits. */
footer { gap: 24px; flex-wrap: wrap; }
.credits { display: grid; justify-items: center; gap: 10px; text-align: center; }
.credit-line { margin: 0; font: 700 11px/1.3 Arial, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #c9b8dc; display: flex; align-items: center; gap: 12px; }
.credit-logo { display: block; width: clamp(130px, 14vw, 180px); height: auto; transition: filter 200ms; }
.credit-brand:hover .credit-logo { filter: drop-shadow(0 0 10px #ff3d8b99); }
.credit-dev { color: var(--lime); border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.credit-dev:hover { color: var(--pink); border-color: var(--pink); }
@media (max-width: 760px) { footer { flex-direction: column; text-align: center; } .credit-line { flex-direction: column; gap: 8px; } }
.ticker > div { animation-duration: 75s; }

/* Language switch + translated hint. */
.stems .control-label::after { content: attr(data-hint); }
.lang-toggle { margin-right: 22px; background: transparent; color: var(--ink); border: 2px solid var(--lime); font: 700 11px/1 Arial, sans-serif; letter-spacing: 1.5px; padding: 8px 10px; transition: background 150ms, color 150ms; }
.lang-toggle:hover { background: var(--lime); color: var(--night); }
@media (max-width: 760px) { .lang-toggle { margin-right: 12px; padding: 7px 8px; } }

/* "Keep it playing" toggle: a real button with a clear on/off state. */
#continuous { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 18px 12px 12px; border: 2px solid var(--lime); border-bottom-width: 2px; background: #d7ff4f14; color: var(--ink); font: 700 13px/1 Arial, sans-serif; letter-spacing: .6px; white-space: nowrap; box-shadow: 4px 4px 0 #d7ff4f55; transition: background 150ms, color 150ms, translate 150ms, box-shadow 150ms; }
#continuous .small-play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--night); font-size: 11px; }
#continuous:hover { translate: -2px -2px; box-shadow: 6px 6px 0 #d7ff4f77; }
#continuous[aria-pressed='true'] { background: var(--lime); color: var(--night); }
#continuous[aria-pressed='true'] .small-play { background: var(--night); color: var(--lime); }
@media (max-width: 760px) { .chapter-zero .intro-copy { display: none; } .chapter-zero .primary-button { margin-top: 26px; } }
@media (max-width: 760px) { .mix-heading { display: block; } .mix-intro { width: 100%; display: block; } .mix-intro p { margin-bottom: 0; } #continuous { margin-top: 16px; } }
#continuous .small-play { flex: none; } @media (max-width: 760px) { .lang-toggle { margin-left: auto; } }
@media (min-width: 761px) { .chapter-zero h1 { font-size: clamp(56px, 6.9vw, 126px); white-space: nowrap; } }
.gate-go { font: 26px/1 Anton, Impact, sans-serif; letter-spacing: 1px; padding: 22px 34px 22px 40px; gap: 30px; animation: party-pulse 1.1s ease-in-out infinite; } .gate-go i { font-size: 18px; } @keyframes party-pulse { 50% { scale: 1.05; } } @media (prefers-reduced-motion: reduce) { .gate-go { animation: none; } }
#continuous { width: auto; max-width: 100%; font-size: 14px; line-height: 1; } #continuous [data-continuous-label] { white-space: nowrap; }

/* The music never stops: no pause or keep-playing controls. */
#continuous, #transport-play, [data-hud-play] { display: none !important; }

/* Status messages stay for screen readers only; no visible toast. */
.audio-status, .audio-status.is-visible { position: fixed !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; box-shadow: none !important; }

/* Meet-the-band carousel. */
.artist-section { position: relative; --profile-bg: var(--pink); --profile-type: #eb296d; --profile-sticker: var(--lime); background: var(--profile-bg) !important; transition: background 500ms ease; }
.artist-section[data-profile='ribbit'] { --profile-bg: var(--lime); --profile-type: #b6dc2e; --profile-sticker: var(--pink); }
.artist-section[data-profile='nova'] { --profile-bg: var(--cyan); --profile-type: #3cc2cd; --profile-sticker: var(--lime); }
.portrait-type { color: var(--profile-type); font-size: clamp(110px, 14vw, 220px); transition: color 500ms; }
.portrait-sticker { background: var(--profile-sticker); transition: background 500ms, rotate 400ms var(--spring); }
.artist-section:not([data-profile='kira']) .portrait-loop { translate: 0 3%; }
.portrait-window, .portrait-sticker, .portrait-type, .artist-copy > *:not(.profile-tabs):not(.text-button) { transition: opacity 260ms ease, translate 420ms var(--spring), color 500ms; }
.artist-section.is-switching .portrait-window { opacity: 0; translate: -50% 40px; }
.artist-section.is-switching .portrait-sticker, .artist-section.is-switching .portrait-type { opacity: 0; translate: 0 20px; }
.artist-section.is-switching .artist-copy > *:not(.profile-tabs):not(.text-button) { opacity: 0; translate: 24px 0; }
.portrait-window { translate: -50% 0; transform: none; }
.profile-arrow { position: absolute; top: 50%; z-index: 6; translate: 0 -50%; width: 58px; height: 58px; border-radius: 50%; background: var(--night); color: var(--profile-bg); font: 26px/1 Arial, sans-serif; display: grid; place-items: center; box-shadow: 4px 4px 0 #0d071955; transition: scale 150ms, background 150ms; }
.profile-arrow:hover { scale: 1.08; }
.profile-arrow:active { scale: .94; }
.profile-prev { left: 18px; }
.profile-next { right: 18px; }
.profile-tabs { display: flex; gap: 8px; margin: 26px 0 6px; flex-wrap: wrap; }
.profile-tabs button { background: transparent; color: var(--night); border: 2px solid var(--night); font: 18px/1 Anton, sans-serif; letter-spacing: .5px; padding: 10px 16px; transition: background 150ms, color 150ms; }
.profile-tabs button[aria-pressed='true'] { background: var(--night); color: var(--profile-bg); }
.artist-copy h2 span { color: var(--night); -webkit-text-stroke: 0; opacity: .72; }
@media (max-width: 760px) {
  .profile-arrow { top: 260px; width: 46px; height: 46px; font-size: 20px; }
  .profile-prev { left: 10px; } .profile-next { right: 10px; }
  .profile-tabs button { font-size: 16px; padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) { .artist-section, .artist-section * { transition: none !important; } }

/* Hero console: smaller so Kira leads. */
@media (min-width: 761px) { .stage-console { width: 56%; left: 32%; height: 19%; min-height: 104px; bottom: 6%; } }
