/* Direction: Resonate — late-night listening room: ink-black stage, lime signal green, grotesk display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0a0a0d;
  --surface: #14141a;
  --surface-2: #1e1e27;
  --border: #2c2c37;
  --border-strong: #545456;
  --ink: #f4f2f7;
  --muted: #a3a0b2;
  --accent: #c2f04b;
  --accent-hover: #cbf266;
  --accent-ink: #0a0a0d;
  --accent-text: #cdf469;
  --accent-strong: #d7f77f;
  --accent-soft: #323d1b;
  --accent-border: #5d7129;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0c2418;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2f1a0c;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #310e10;
  --danger-strong: #d16969;
  --chart-1: #c2f04b;
  --chart-2: #1edac7;
  --chart-3: #7fc6fe;
  --chart-4: #ee98fc;
  --chart-5: #fba29f;
  --chart-6: #f2b10e;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --radius-card: 18px;
  --radius-btn: 999px;
  --radius-input: 12px;
  --gradient-stage: radial-gradient(120% 140% at 12% 0%, rgba(194, 240, 75, 0.2) 0%, rgba(194, 240, 75, 0) 55%), radial-gradient(90% 120% at 95% 10%, rgba(132, 118, 255, 0.24) 0%, rgba(132, 118, 255, 0) 60%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dddddd;
  --border-strong: #b6b6b6;
  --ink: #0a0a0d;
  --muted: #6c6c6e;
  --accent: #a4cb3f;
  --accent-hover: #8bad36;
  --accent-ink: #0a0a0d;
  --accent-text: #5c7023;
  --accent-strong: #5c7023;
  --accent-soft: #f2f8e4;
  --accent-border: #d6e8a9;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #7b9d12;
  --chart-2: #0da194;
  --chart-3: #177dbe;
  --chart-4: #ad7de5;
  --chart-5: #ba4369;
  --chart-6: #cd7c16;
}

/* Resonate — the stage glow, the progress line, the spinning disc, the equaliser */

.x-stage {
  background-image: var(--gradient-stage);
}

@keyframes x-progress {
  from { width: 0%; }
  to { width: 100%; }
}

.x-bar {
  width: 9%;
  background: var(--accent);
}

.x-bar.is-playing {
  animation-name: x-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes x-spin {
  to { transform: rotate(360deg); }
}

.x-disc.is-playing {
  animation: x-spin 9s linear infinite;
}

@keyframes x-eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.x-eq span {
  display: block;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom center;
  animation: x-eq 1.1s ease-in-out infinite;
}

.x-eq span:nth-child(2) { animation-delay: 0.16s; }
.x-eq span:nth-child(3) { animation-delay: 0.34s; }
.x-eq span:nth-child(4) { animation-delay: 0.5s; }

html.reduced-motion .x-bar.is-playing { animation: none; width: 45%; }
html.reduced-motion .x-disc.is-playing { animation: none; }
html.reduced-motion .x-eq span { animation: none; transform: scaleY(0.7); }
