/* Palette and type come straight from the game (src/style.css, src/data.js):
   near-black violet space, the band's rainbow livery, each member's weapon color,
   and the five stage fogs used as the ambient light behind each section. */
:root {
  --bg: #050308;
  --panel: rgba(10, 6, 18, 0.78);
  --line: rgba(180, 140, 255, 0.25);
  --text: #e8e2f4;
  --muted: #b5acc9;
  --accent: #b45cff;
  --red: #ff3b2f;
  --orange: #ff9a1f;
  --yellow: #ffe01f;
  --green: #5cff3a;
  --blue: #3ec7ff;
  --violet: #a35cff;
  --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));
  /* Wreck stripes, in hull order */
  --livery-1: #ff3b2f;
  --livery-2: #ffb020;
  --livery-3: #c8ff2a;
  --livery-4: #3ec7ff;
  --livery-5: #a35cff;
  /* Stage fogs (skyBottom) */
  --fog-crimson: #4a0a0a;
  --fog-amber: #5a3008;
  --fog-verdant: #0c3a14;
  --fog-cobalt: #0a1c5a;
  --fog-violet: #2a0a4a;
  /* Set every frame by main.js: beat decays 1 → 0, level is loudness 0..1 */
  --beat: 0;
  --level: 0.3;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg); color: var(--text); font-family: 'Rajdhani', system-ui, sans-serif; font-size: 18px;
  line-height: 1.5; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .btn, .kicker, .brand, nav a { font-family: 'Orbitron', sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Starfield + drifting nebula canvas sits behind everything */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); background: linear-gradient(rgba(5, 3, 8, 0.92), rgba(5, 3, 8, 0.6));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(180, 140, 255, 0.12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: 0.25em; font-size: 15px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 0 calc(4px + 8px * var(--beat)) rgba(180, 92, 255, 0.8)); }
.brand-wrap { display: flex; align-items: center; gap: 8px; }
/* Two pinhead status lights either side of BKS; the right one is a button (the origin terminal) */
.brand-dot { display: block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--green); opacity: 0.55; box-shadow: 0 0 5px rgba(92, 255, 58, 0.7); }
.brand .brand-dot { margin-right: -2px; }
button.origin-dot { padding: 0; border: 0; cursor: pointer; position: relative; transition: opacity 0.15s, box-shadow 0.15s; animation: origin-blink 4s step-end infinite; }
/* lit for 3 s, dark for 1 s */
@keyframes origin-blink { 75% { opacity: 0.08; box-shadow: none; } }
/* once all 4 telemetry pieces are found, the green dot switches to a rapid double-pulse heartbeat */
button.origin-dot.ready { opacity: 1; animation: origin-heartbeat 1.4s ease-in-out infinite; }
@keyframes origin-heartbeat {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 4px var(--green); transform: scale(1); }
  18%, 42% { opacity: 1; box-shadow: 0 0 8px var(--green), 0 0 18px rgba(92, 255, 58, 0.95); transform: scale(1.45); }
  28% { opacity: 0.45; transform: scale(1.05); }
}
button.origin-dot.complete { animation: none; opacity: 1; box-shadow: 0 0 6px var(--green), 0 0 14px rgba(92, 255, 58, 0.85); }
button.origin-dot::after { content: ''; position: absolute; inset: -10px; } /* a finger-sized tap target */
button.origin-dot:hover, button.origin-dot:focus-visible { animation: none; opacity: 1; box-shadow: 0 0 6px var(--green), 0 0 14px rgba(92, 255, 58, 0.7); outline: none; }
.sat-beacon {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
  border: 1px solid rgba(92, 255, 58, 0.65); background: rgba(4, 18, 8, 0.94); color: var(--green);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.sat-beacon:focus-visible {
  position: fixed; top: 68px; left: var(--gutter); z-index: 20; width: auto; height: auto; margin: 0;
  padding: 8px 14px; overflow: visible; clip-path: none; box-shadow: 0 0 18px rgba(92, 255, 58, 0.45);
  outline: 2px solid var(--green); outline-offset: 2px;
}
nav { display: flex; gap: 28px; }
nav a { text-decoration: none; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.15s, text-shadow 0.15s; }
nav a:hover, nav a.active { color: var(--text); text-shadow: 0 0 12px var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.nav-toggle i { display: block; height: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #07040c;
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  nav a { padding: 16px var(--gutter); border-top: 1px solid rgba(180, 140, 255, 0.08); font-size: 13px; }
  .nav.open nav { max-height: 400px; }
  .nav.open .nav-toggle i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle i:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Shared pieces ---------- */
.row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text);
  padding: 13px 28px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: rgba(180, 92, 255, 0.18); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(90deg, #6a1fd0, #b45cff); border-color: transparent; font-weight: 700; }
.btn.primary:hover { box-shadow: 0 0 24px rgba(180, 92, 255, 0.7); }
/* Pinhead status LED on the Listen button: main.js blinks it in the same Morse as the secret panel's */
.btn.listen { position: relative; }
.listen-led { position: absolute; top: 5px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: rgba(60, 10, 30, 0.55); transition: background 0.05s; }
.listen-led.on { background: #ff4a3d; box-shadow: 0 0 4px #ff4a3d, 0 0 9px rgba(255, 74, 61, 0.6); }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* Hull livery: the five-color swoosh from the wreck (also a 5-band phase tuner in the puzzle chain) */
.livery { display: flex; flex-direction: column; gap: 5px; width: 100%; transform: skewY(-2deg); }
.livery i {
  position: relative; display: block; height: 4px; box-shadow: 0 0 10px currentColor;
  opacity: calc(0.7 + 0.3 * var(--beat)); cursor: pointer;
  transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.livery i::before { content: ''; position: absolute; inset: -3px 0; }
.livery i:hover, .livery i:focus-visible, .livery i.pulse { opacity: 1; transform: scaleY(1.85); filter: brightness(1.75) drop-shadow(0 0 10px currentColor); }
.livery i:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.livery.locked i { opacity: 1; box-shadow: 0 0 14px currentColor, 0 0 4px #fff; }
.livery i:nth-child(1) { background: var(--livery-1); color: var(--livery-1); }
.livery i:nth-child(2) { background: var(--livery-2); color: var(--livery-2); }
.livery i:nth-child(3) { background: var(--livery-3); color: var(--livery-3); }
.livery i:nth-child(4) { background: var(--livery-4); color: var(--livery-4); }
.livery i:nth-child(5) { background: var(--livery-5); color: var(--livery-5); }

/* ---------- Sections: each one is lit by a stage's fog ---------- */
.section, .hero { position: relative; padding: 110px var(--gutter) 90px; isolation: isolate; }
.section::before, .hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--fog) 85%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, color-mix(in srgb, var(--fog) 40%, transparent), transparent 70%);
}
.ring-crimson { --fog: var(--fog-crimson); --glow: var(--red); }
.ring-amber { --fog: var(--fog-amber); --glow: var(--orange); }
.ring-verdant { --fog: var(--fog-verdant); --glow: var(--green); }
.ring-cobalt { --fog: var(--fog-cobalt); --glow: var(--blue); }
.ring-violet { --fog: var(--fog-violet); --glow: var(--accent); }

.section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.kicker { color: var(--glow, var(--accent)); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; font-weight: 700; text-align: center; text-shadow: 0 0 12px var(--glow, var(--accent)); }
.section h2 { font-size: clamp(26px, 4.4vw, 46px); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; margin: 10px auto 28px; line-height: 1.15; }
/* Long one-word headings (TRANSMISSIONS) can't wrap; let them shrink on the narrowest phones */
@media (max-width: 420px) { .section h2 { font-size: clamp(20px, 6.9vw, 26px); letter-spacing: 0.08em; } }
.lede { max-width: 720px; text-align: center; color: #cfc7e0; font-size: 20px; margin-bottom: 44px; }
.fine { text-align: center; color: var(--muted); margin-top: 24px; }
/* Small aside tucked under a section heading */
.note { max-width: 560px; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: -14px; margin-bottom: 28px; }
.fine a { color: var(--glow); }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding-top: 96px; }
.hero::before { background: radial-gradient(ellipse 80% 60% at 50% 45%, color-mix(in srgb, var(--fog) 90%, transparent), transparent 72%); }
.hero-logo { position: relative; width: min(400px, 72vw); aspect-ratio: 1; margin-bottom: 12px; }
/* The logo's black is keyed out to alpha in the file itself (mix-blend-mode isn't reliable on mobile Safari) */
.hero-logo img {
  width: 100%; height: 100%;
  transform: scale(calc(1 + 0.04 * var(--beat)));
  filter: brightness(calc(1 + 0.3 * var(--beat))) drop-shadow(0 0 calc(8px + 16px * var(--level)) rgba(180, 92, 255, 0.6));
}
/* The crosshair beat ring: closes in on every beat */
.beat-ring {
  position: absolute; inset: -14%; border-radius: 50%; border: 2px solid var(--accent);
  transform: scale(calc(1.18 - 0.18 * var(--beat))); opacity: calc(0.15 + 0.55 * var(--beat));
  box-shadow: 0 0 24px rgba(180, 92, 255, 0.5), inset 0 0 24px rgba(180, 92, 255, 0.3);
}
.tagline { font-size: clamp(17px, 2.2vw, 22px); color: var(--muted); letter-spacing: 0.08em; max-width: 560px; }
.hero .row { margin-top: 10px; }
.hero .livery { position: absolute; left: 0; right: 0; bottom: 48px; width: auto; }

/* ---------- Members ---------- */
.about-tools {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin: -22px auto 22px;
}
.hint-pill {
  min-width: 64px; min-height: 12px; margin: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(180, 140, 255, 0.3);
  transition: background 0.12s, box-shadow 0.12s, border-color 0.12s, padding 0.2s;
  display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.16em;
  color: var(--green); text-transform: uppercase; text-align: center;
}
.jam-btn {
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text); background: rgba(180, 92, 255, 0.14);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.jam-btn:hover { background: rgba(180, 92, 255, 0.3); border-color: var(--accent); }
.jam-btn.on {
  color: #041206; background: var(--green); border-color: var(--green);
  box-shadow: 0 0 18px rgba(92, 255, 58, 0.65);
}
.member.jamming {
  border-color: var(--c);
  box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 18%, transparent);
}
.member.jamming.jam-step {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 0 38px color-mix(in srgb, var(--c) 75%, transparent), inset 0 0 24px color-mix(in srgb, var(--c) 28%, transparent);
}
.hint-pill.lit { background: var(--pill); border-color: var(--pill); box-shadow: 0 0 14px var(--pill), 0 0 4px var(--pill); }
.hint-pill.waiting {
  border-color: var(--violet); background: rgba(163, 92, 255, 0.22);
  box-shadow: 0 0 18px rgba(163, 92, 255, 0.65); padding: 4px 14px; color: #e8e2f4;
}
.hint-pill.echo-msg {
  border-color: rgba(92, 255, 58, 0.65); background: rgba(4, 18, 8, 0.9);
  box-shadow: 0 0 20px rgba(92, 255, 58, 0.35); padding: 5px 16px;
}
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .members { grid-template-columns: 1fr; } }
.member {
  --c: #fff; position: relative; background: var(--panel); border: 1px solid var(--line); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.member::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); opacity: calc(0.5 + 0.5 * var(--beat)); }
.member:hover, .member:focus-visible, .member.hint { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 40%, transparent); }
/* Stage portrait across the top of the card, washed in the member's color and lifting on the beat */
.member .photo { position: relative; margin: -24px -20px 6px; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(calc(0.82 + 0.28 * var(--beat))); transition: transform 0.4s; }
.member:hover .photo img, .member:focus-visible .photo img, .member.hint .photo img { transform: scale(1.04); }
/* Tap feedback: a quick press, a border flash and a ring of the member's color from the tap point */
.member { cursor: pointer; }
.member.tap { animation: card-press 0.32s ease-out; }
@keyframes card-press {
  0% { scale: 0.97; border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 36px color-mix(in srgb, var(--c) 55%, transparent); }
  100% { scale: 1; }
}
.tap-ring {
  position: absolute; z-index: 3; border-radius: 50%; pointer-events: none; translate: -50% -50%;
  border: 2px solid var(--c); background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 62%);
  animation: tap-ring 0.55s ease-out forwards;
}
@keyframes tap-ring { from { scale: 0; opacity: 0.9; } to { scale: 1; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .member.tap { animation: none; } .tap-ring { display: none; } }
.member .photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--c); mix-blend-mode: color; opacity: 0.28; pointer-events: none; }
.member .photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 6, 18, 0.95), transparent 42%); pointer-events: none; }
.member .icon { position: absolute; right: 14px; bottom: 12px; z-index: 2; height: 46px; display: flex; color: var(--c); filter: drop-shadow(0 0 calc(6px + 8px * var(--beat)) var(--c)); }
.member .icon svg { height: 100%; width: auto; max-width: 64px; }
@media (max-width: 520px) { .member .photo { aspect-ratio: 4 / 3; } .member .photo img { object-position: 50% 22%; } }
.member h3 { font-size: 26px; letter-spacing: 0.1em; color: var(--c); }
/* Each member's favorite lyric, as a quote with a thin bar in their color */
.member .lyric { font-style: italic; font-size: 16px; line-height: 1.45; color: #cfc7e0; border-left: 2px solid color-mix(in srgb, var(--c) 70%, transparent); padding: 2px 0 2px 12px; margin-bottom: 4px; }
.member .lyric footer { margin-top: 4px; font-style: normal; font-size: 13px; letter-spacing: 0.06em; color: var(--c); }
.member .lyric cite { font-style: normal; }
.member .plays { margin-top: auto; text-align: center; color: var(--c); text-transform: uppercase; letter-spacing: 0.15em; font-size: 14px; font-weight: 700; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }

/* ---------- Music ---------- */
.player { position: relative; padding: 28px 30px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 30px; align-items: center; margin-bottom: 18px; }
.player > :not(.player-spectro) { position: relative; }
.player-spectro { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.32; pointer-events: none; }
.now-label { color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; }
.now-title { font-family: 'Orbitron', sans-serif; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: 0.06em; color: var(--track, var(--orange)); text-shadow: 0 0 calc(8px + 14px * var(--beat)) var(--track, var(--orange)); }
.now-meta { color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; font-size: 14px; }
.now-lore { margin-top: 6px; color: #cfc7e0; font-size: 15px; line-height: 1.4; max-width: 46ch; }
/* MilkDrop-style visualizer: a feedback loop of the last frame, zoomed and twisted, with the song's waveform painted in */
.viz-wrap { position: relative; grid-row: span 2; }
.viz {
  display: block; width: 100%; height: 230px; background: #030106; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--track, var(--orange)) 35%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--track, var(--orange)) 18%, transparent), inset 0 0 30px rgba(0, 0, 0, 0.7);
}
.controls { display: flex; align-items: center; gap: 16px; }
.play {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #120a00;
  background: var(--track, var(--orange)); box-shadow: 0 0 calc(12px + 16px * var(--beat)) var(--track, var(--orange));
  display: grid; place-items: center; transition: transform 0.1s;
}
.play:active { transform: scale(0.94); }
.play svg { width: 24px; height: 24px; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.player-skip {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  color: var(--text); background: rgba(180, 92, 255, 0.14); display: grid; place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.player-skip:hover { background: rgba(180, 92, 255, 0.3); border-color: var(--track, var(--orange)); color: var(--track, var(--orange)); }
.player-skip:active { transform: scale(0.92); }
.player-skip svg { width: 18px; height: 18px; }
.progress { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.08); cursor: pointer; position: relative; }
.progress:focus-visible { outline: 2px solid var(--track, var(--orange)); outline-offset: 4px; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rainbow); box-shadow: 0 0 10px rgba(255, 160, 60, 0.6); }
.player-time {
  flex: none; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap;
}
.player-mode {
  flex: none; font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); background: rgba(180, 92, 255, 0.1);
  border: 1px solid var(--line); padding: 6px 9px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.player-mode:hover { background: rgba(180, 92, 255, 0.26); color: var(--text); }
.player-mode.on {
  color: #120a00; background: var(--track, var(--orange)); border-color: var(--track, var(--orange));
  box-shadow: 0 0 12px color-mix(in srgb, var(--track, var(--orange)) 55%, transparent);
}
@media (max-width: 720px) {
  .controls { flex-wrap: wrap; gap: 10px; }
  .progress { min-width: 120px; }
}
.player-share {
  flex: none; font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  background: rgba(180, 92, 255, 0.14); border: 1px solid var(--line); padding: 6px 10px; cursor: pointer;
  white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.player-share:hover { background: rgba(180, 92, 255, 0.3); }
.player-share.done { color: var(--green); border-color: rgba(92, 255, 58, 0.5); }
.player-note { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .player { grid-template-columns: 1fr; padding: 22px 20px; }
  .viz-wrap { grid-row: auto; }
  .viz { height: 190px; }
}
/* Fullscreen light show: the real API where it exists, a fixed overlay elsewhere */
.viz-wrap:fullscreen, .viz-wrap.viz-full {
  position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100dvh; background: #030106;
}
.viz-wrap:fullscreen .viz, .viz-wrap.viz-full .viz, .viz:fullscreen, .viz.viz-full {
  width: 100vw; height: 100dvh; border: 0; box-shadow: none; cursor: default;
}
.viz.viz-full { position: fixed; inset: 0; z-index: 60; }
@media (max-width: 720px) {
  .viz-wrap.viz-full, .viz.viz-full { height: 100dvh; }
}

.viz-hud {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 65;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(8, 4, 15, 0.82);
  border: 1px solid color-mix(in srgb, var(--track, var(--orange)) 55%, rgba(255,255,255,0.18));
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.75), 0 0 18px color-mix(in srgb, var(--track, var(--orange)) 28%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.viz-hud[hidden] { display: none; }
.viz-hud.idle { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }
.viz-hud-title {
  font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--track, var(--orange));
  margin-right: 6px; white-space: nowrap;
  text-shadow: 0 0 10px color-mix(in srgb, var(--track, var(--orange)) 60%, transparent);
}
.viz-hud-btn {
  font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--track, var(--orange)) 45%, var(--line));
  background: rgba(180, 92, 255, 0.14); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.viz-hud-btn:hover {
  background: rgba(180, 92, 255, 0.35); border-color: var(--track, var(--orange));
  color: var(--track, var(--orange));
  box-shadow: 0 0 12px color-mix(in srgb, var(--track, var(--orange)) 50%, transparent);
}
.viz-hud-btn:active { transform: scale(0.93); }
@media (max-width: 600px) {
  .viz-hud { max-width: 94vw; padding: 8px 12px; gap: 6px; bottom: 18px; }
  .viz-hud-title { font-size: 11px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .viz-hud-btn { padding: 5px 8px; font-size: 11px; }
}

.tracks { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; counter-reset: t; }
@media (max-width: 720px) { .tracks { grid-template-columns: 1fr; } }
.tracks button {
  --c: var(--orange); width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; background: rgba(10, 6, 18, 0.6); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit;
  border-left: 3px solid var(--c); transition: background 0.15s, box-shadow 0.15s;
}
.tracks button:hover { background: color-mix(in srgb, var(--c) 12%, rgba(10, 6, 18, 0.6)); }
.tracks button.current { box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 14%, rgba(10, 6, 18, 0.6)); }
.tracks .n { font-family: 'Orbitron', sans-serif; color: var(--c); font-size: 14px; }
.tracks .t { font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.tracks .b { color: var(--muted); font-size: 13px; letter-spacing: 0.15em; }

/* ---------- Tour ---------- */
.soon {
  padding: 36px 24px; text-align: center; font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: clamp(18px, 3vw, 28px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  text-shadow: 0 0 calc(10px + 14px * var(--beat)) rgba(92, 255, 58, 0.7); border-color: rgba(92, 255, 58, 0.3);
}
.shows { list-style: none; display: grid; gap: 12px; }
.shows li {
  display: grid; grid-template-columns: minmax(150px, auto) 1fr auto; align-items: center; gap: 18px 24px;
  padding: 20px 24px; border-left: 3px solid var(--green); transition: border-color 0.15s, box-shadow 0.15s;
}
.shows li:hover { border-color: var(--green); box-shadow: 0 0 24px rgba(92, 255, 58, 0.22); }
.shows time {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green); text-shadow: 0 0 10px rgba(92, 255, 58, 0.45);
}
.shows .venue { font-size: 20px; font-weight: 600; color: var(--text); }
.shows .show-note {
  font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.shows .show-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shows .show-cal { padding: 10px 14px; font-size: 11px; }
@media (max-width: 720px) {
  .shows li { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .shows .btn { text-align: center; margin-top: 6px; }
  .shows .show-actions { width: 100%; }
  .shows .show-actions .btn { flex: 1; }
}

/* ---------- Media ---------- */
.video { aspect-ratio: 16 / 9; border: 1px solid rgba(62, 199, 255, 0.35); background: #000; box-shadow: 0 0 30px rgba(62, 199, 255, 0.15); }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 240px); grid-auto-flow: dense; gap: 12px; margin-bottom: 26px; }
.gallery figure { position: relative; overflow: hidden; border: 1px solid rgba(62, 199, 255, 0.2); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 0.4s, filter 0.4s; filter: saturate(0.9) brightness(0.9); }
.gallery figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 28, 90, 0.55), transparent 45%); pointer-events: none; }
.gallery figure:hover img { transform: scale(1.04); filter: saturate(1.1) brightness(1); }
.gallery figure { cursor: zoom-in; }
.gallery figure:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Secret transmission (easter egg) ---------- */
.secret {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px;
  border: 0; background: rgba(5, 3, 8, 0.7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.secret::backdrop { background: transparent; }
.secret[open] { display: grid; place-items: center; animation: viewer-in 0.25s ease-out; }
.secret.closing { opacity: 0; transition: opacity 0.4s ease; }
.secret-panel {
  width: min(560px, 100%); padding: 30px 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  background: rgba(4, 12, 6, 0.92); border: 1px solid rgba(92, 255, 58, 0.45);
  box-shadow: 0 0 40px rgba(92, 255, 58, 0.18), inset 0 0 30px rgba(92, 255, 58, 0.06);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.secret-label { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(92, 255, 58, 0.75); }
/* Status LED: dark until the anomaly is decrypted, then a red alarm light (main.js blinks it in Morse) */
.secret-led { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3a0d0b; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8); }
.secret.alert .secret-led { background: #5a120e; }
.secret.alert .secret-led.on { background: #ff3b2f; box-shadow: 0 0 6px #ff3b2f, 0 0 16px rgba(255, 59, 47, 0.7); }
.secret-text {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(17px, 4.6vw, 24px); line-height: 1.5;
  letter-spacing: 0.04em; color: var(--green); text-shadow: 0 0 10px rgba(92, 255, 58, 0.6); min-height: 3em;
  overflow-wrap: anywhere;
}
.secret-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.secret-btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.secret-spectro {
  display: block; width: 100%; height: clamp(110px, 26vw, 150px);
  background: #020803; border: 1px solid rgba(92, 255, 58, 0.3); box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
}
.secret-clue {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(92, 255, 58, 0.78);
  text-shadow: 0 0 8px rgba(92, 255, 58, 0.45); line-height: 1.5; margin-top: -6px;
}

/* Tracking log (caught the satellite) */
.tracking .secret-led { background: var(--green); box-shadow: 0 0 6px var(--green), 0 0 14px rgba(92, 255, 58, 0.6); }
.tracking-log {
  margin: 0; width: 100%; min-height: 10.6em; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(11px, 3.2vw, 15px); line-height: 1.75;
  color: var(--green); text-shadow: 0 0 8px rgba(92, 255, 58, 0.5);
}
html.sat-hover, html.sat-hover body { cursor: pointer; }

/* Origin terminal (the right-hand brand dot): four telemetry nodes + questions, last lock of the puzzle chain */
.origin .secret-panel { width: min(620px, 100%); gap: 18px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.origin .secret-panel > * { flex-shrink: 0; } /* scroll the panel instead of squashing the log under the symbols */
.origin-leds { display: flex; gap: 7px; }
.origin .secret-led.on, .congrats .secret-led.on { background: var(--green); box-shadow: 0 0 6px var(--green), 0 0 14px rgba(92, 255, 58, 0.6); }
.origin-telemetry {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.14em;
}
.tele-node {
  padding: 6px 4px; border: 1px solid rgba(92, 255, 58, 0.22); background: rgba(2, 8, 3, 0.7);
  color: rgba(195, 186, 216, 0.78); text-transform: uppercase; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tele-node.on {
  border-color: rgba(92, 255, 58, 0.65); color: var(--green);
  box-shadow: 0 0 12px rgba(92, 255, 58, 0.22), inset 0 0 8px rgba(92, 255, 58, 0.1);
  text-shadow: 0 0 6px rgba(92, 255, 58, 0.5);
}
.congrats-text {
  font-family: 'Orbitron', sans-serif; font-size: clamp(20px, 4.8vw, 28px); font-weight: 700;
  letter-spacing: 0.08em; line-height: 1.4; color: var(--green);
  text-shadow: 0 0 14px rgba(92, 255, 58, 0.65); margin: 8px 0;
}
.congrats-log {
  margin: 0 0 6px; padding: 10px 14px; width: 100%; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(11px, 3vw, 13px); line-height: 1.65;
  color: var(--green); background: rgba(2, 8, 3, 0.72); border: 1px solid rgba(92, 255, 58, 0.32);
  text-shadow: 0 0 6px rgba(92, 255, 58, 0.4);
}
.congrats-synth {
  width: 100%; border-color: rgba(92, 255, 58, 0.55); color: var(--green);
  margin: 8px 0 10px; font-family: 'Orbitron', sans-serif; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.congrats-synth:hover {
  background: rgba(92, 255, 58, 0.12); border-color: var(--green);
  box-shadow: 0 0 16px rgba(92, 255, 58, 0.35);
}
.congrats-synth:active { transform: scale(0.98); }
.congrats-synth.playing {
  background: rgba(92, 255, 58, 0.16); border-color: var(--green);
  box-shadow: 0 0 22px rgba(92, 255, 58, 0.45);
  animation: congrats-synth-pulse 1.1s ease-in-out infinite alternate;
}
@keyframes congrats-synth-pulse {
  from { box-shadow: 0 0 14px rgba(92, 255, 58, 0.35); }
  to { box-shadow: 0 0 24px rgba(92, 255, 58, 0.65), 0 0 8px rgba(92, 255, 58, 0.8); }
}
.origin-log, .origin-form {
  width: 100%; text-align: left; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: clamp(14px, 3.6vw, 17px); line-height: 1.7; color: var(--green); text-shadow: 0 0 8px rgba(92, 255, 58, 0.5);
}
.origin-log { min-height: 1.7em; white-space: pre-wrap; overflow-wrap: anywhere; }
.origin-log .denied { color: #ff5a4a; text-shadow: 0 0 8px rgba(255, 90, 74, 0.5); }
.origin-log .ok { color: rgba(92, 255, 58, 0.6); }
.origin-form { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(92, 255, 58, 0.2); padding-top: 12px; }
.origin-form[hidden] { display: none; }
.origin-input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 0; font: inherit; font-size: max(16px, 1em);
  color: var(--green); text-shadow: inherit; caret-color: var(--green); text-transform: uppercase;
}
.origin-input:focus-visible { outline: none; } /* the blinking caret is the focus cue */
.origin-symbols { display: block; width: 100%; height: auto; animation: origin-reveal 2.4s ease-out both; }
@keyframes origin-reveal { from { opacity: 0; filter: blur(6px) brightness(2.5); } 40% { opacity: 0.6; } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .origin-symbols, button.origin-dot { animation: none; } }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(5, 3, 8, 0.78); color: var(--text); overflow: hidden;
}
.viewer::backdrop { background: transparent; }
.viewer[open] { display: grid; place-items: center; animation: viewer-in 0.2s ease-out; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 160px); }
.viewer-stage img {
  display: block; max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain;
  border: 1px solid rgba(62, 199, 255, 0.35); box-shadow: 0 0 40px rgba(62, 199, 255, 0.18);
}
.viewer-stage figcaption { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center; color: #cfc7e0; font-size: 15px; }
.viewer-count { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.2em; color: var(--blue); }
.viewer-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgba(10, 6, 18, 0.7); border: 1px solid rgba(62, 199, 255, 0.4);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.viewer-btn:hover { background: rgba(62, 199, 255, 0.18); box-shadow: 0 0 20px rgba(62, 199, 255, 0.45); }
.viewer-btn:active { transform: scale(0.94); }
.viewer-btn svg { width: 24px; height: 24px; }
.viewer-prev { left: 20px; top: 50%; translate: 0 -50%; }
.viewer-next { right: 20px; top: 50%; translate: 0 -50%; }
.viewer-close { top: 18px; right: 20px; }
@media (max-width: 720px) {
  .viewer-stage { max-width: calc(100vw - 24px); }
  .viewer-stage img { max-height: calc(100dvh - 170px); }
  .viewer-btn { width: 44px; height: 44px; }
  .viewer-prev { left: 8px; }
  .viewer-next { right: 8px; }
  .viewer-close { top: 12px; right: 12px; }
}
@media (max-width: 720px) {
  /* Two columns of portrait-shaped cells; tall shots fit one cell, landscape ones go full width */
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 56vw; gap: 8px; }
  .gallery figure.tall { grid-row: auto; }
  .gallery figure.wide-sm { grid-column: span 2; }
}

.game-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; text-decoration: none; transition: box-shadow 0.15s, border-color 0.15s; }
.game-card:hover { border-color: var(--blue); box-shadow: 0 0 30px rgba(62, 199, 255, 0.25); }
.games { display: grid; gap: 18px; }
/* Lost at Ring 5: the horror one, so it glows red instead of blue */
.game-card.ring5:hover { border-color: #ff3b6a; box-shadow: 0 0 30px rgba(255, 59, 106, 0.25); }
.game-card.ring5.unlocked { border-color: rgba(92, 255, 58, 0.55); box-shadow: 0 0 26px rgba(92, 255, 58, 0.18); }
.game-card.ring5.unlocked .game-note { color: var(--green); text-shadow: 0 0 8px rgba(92, 255, 58, 0.5); }
.game-card.orbit.unlocked { border-color: rgba(92, 255, 58, 0.55); box-shadow: 0 0 26px rgba(92, 255, 58, 0.18); }
.game-card.orbit.unlocked .game-note { color: var(--green); text-shadow: 0 0 8px rgba(92, 255, 58, 0.5); }
.game-card.ring5 img { filter: drop-shadow(0 0 14px rgba(255, 59, 106, 0.4)); }
.game-card.ring5 .game-note { color: #ff3b6a; }
.game-card img { width: 120px; border-radius: 50%; filter: drop-shadow(0 0 14px rgba(62, 199, 255, 0.4)); }
.game-card .kicker { text-align: left; }
.game-card h3 { font-size: 28px; letter-spacing: 0.2em; text-transform: uppercase; margin: 4px 0 6px; }
.game-card p { color: #cfc7e0; font-size: 16px; }
.game-card .game-note { margin-top: 8px; color: var(--blue); font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
@media (max-width: 720px) {
  .game-card { grid-template-columns: 72px 1fr; padding: 20px; gap: 16px; }
  .game-card img { width: 72px; }
  .game-card .btn { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Contact ---------- */
.contact { display: grid; max-width: 620px; }
.contact > * { min-width: 0; }
.channels { padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
/* One inbox, shown in a field-style box with a Copy button */
.channels .email {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 10px 10px 14px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); transition: border-color 0.15s, box-shadow 0.15s;
}
.channels .email:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(180, 92, 255, 0.25); }
.channels .email a { flex: 1 1 9em; min-width: 0; overflow-wrap: anywhere; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--text); }
.channels .email a:hover { text-shadow: 0 0 12px var(--accent); }
.copy {
  flex: none; font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
  background: rgba(180, 92, 255, 0.16); border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; transition: background 0.15s;
}
.copy:hover { background: rgba(180, 92, 255, 0.3); }
.copy.done { color: var(--green); border-color: rgba(92, 255, 58, 0.5); }
.follow { margin-top: auto; padding-top: 6px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { font-size: 14px; text-decoration: none; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 14px; }
.socials a:hover { border-color: var(--accent); box-shadow: 0 0 14px rgba(180, 92, 255, 0.35); }
.epk-open-btn {
  font: 700 12px 'Orbitron', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); background: rgba(92, 255, 58, 0.1); border: 1px solid rgba(92, 255, 58, 0.45);
  padding: 8px 14px; cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
}
.epk-open-btn:hover { background: rgba(92, 255, 58, 0.22); box-shadow: 0 0 16px rgba(92, 255, 58, 0.35); }
.epk-panel { width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.epk-summary {
  width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: left;
}
.epk-stat {
  padding: 10px 12px; background: rgba(10, 6, 18, 0.78); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.epk-stat span { font: 700 10px 'Orbitron', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.epk-stat strong { font-size: 15px; color: var(--text); }
#stage-plot-canvas {
  width: 100%; height: auto; aspect-ratio: 19 / 9; display: block; background: #030106;
  border: 1px solid rgba(92, 255, 58, 0.4); box-shadow: 0 0 24px rgba(92, 255, 58, 0.14);
}
.epk-inputs {
  width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
  text-align: left; font-size: 14px; color: #cfc7e0;
}
.epk-inputs strong { color: var(--green); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .epk-summary { grid-template-columns: repeat(2, 1fr); }
  .epk-inputs { grid-template-columns: 1fr; }
}
.channels h3 { font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; }
.channels p { color: #cfc7e0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter) 48px; text-align: center; color: var(--muted); font-size: 15px; letter-spacing: 0.08em; }
.footer .livery { max-width: 420px; margin: 0 auto 24px; }

/* ---------- Gig Poster Studio & Floating Mini-Player ---------- */
.tour-tools { justify-content: space-between; align-items: center; margin-top: 16px; }
.poster-open-btn { font-size: 11px; padding: 9px 16px; }
.poster-panel { width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.poster-grid {
  width: 100%; display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 24px; align-items: center; text-align: left;
}
#poster-canvas {
  width: 100%; height: auto; aspect-ratio: 4 / 5; display: block; background: #030106;
  border: 1px solid rgba(92, 255, 58, 0.45); box-shadow: 0 0 28px rgba(92, 255, 58, 0.2);
}
.poster-controls { display: flex; flex-direction: column; gap: 14px; }
.poster-field { display: flex; flex-direction: column; gap: 5px; }
.poster-field span {
  font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.poster-field input, .poster-field select {
  width: 100%; padding: 9px 12px; font: 600 15px 'Rajdhani', sans-serif; letter-spacing: 0.06em;
  color: var(--text); background: rgba(10, 6, 18, 0.85); border: 1px solid var(--line);
}
.poster-field input:focus, .poster-field select:focus { border-color: var(--green); outline: none; }
.poster-actions { margin-top: 6px; justify-content: flex-start; }
@media (max-width: 640px) {
  .poster-grid { grid-template-columns: 1fr; }
  #poster-canvas { max-width: 220px; margin: 0 auto; }
}

.mini-player {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: rgba(8, 4, 15, 0.88);
  border: 1px solid color-mix(in srgb, var(--track, var(--orange)) 55%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.75), 0 0 16px color-mix(in srgb, var(--track, var(--orange)) 28%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}
.mini-player[hidden] { display: none; }
.mini-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--track, var(--orange));
  box-shadow: 0 0 calc(6px + 10px * var(--beat)) var(--track, var(--orange));
}
.mini-title {
  font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); text-decoration: none; max-width: 180px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-title:hover { color: var(--track, var(--orange)); }
.mini-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(180, 92, 255, 0.16); color: var(--text); font-size: 11px; cursor: pointer;
  display: grid; place-items: center; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mini-btn:hover { background: rgba(180, 92, 255, 0.35); border-color: var(--track, var(--orange)); color: var(--track, var(--orange)); }
@media (max-width: 520px) {
  .mini-player { right: 12px; left: 12px; bottom: 12px; justify-content: space-between; }
  .mini-title { flex: 1; max-width: none; }
}

/* Focus and motion */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
