/* n3r4 design system: a DJ booth crossed with an arcade cabinet.
   Shared by n3r4.xyz, the Ghost theme, play and the deck. Dark by design: it's a booth. */

@font-face { font-family: "DSEG7"; src: url("fonts/dseg7-classic-bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DSEG14"; src: url("fonts/dseg14-classic-bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: #0e1013;
  --panel-2: #14171b;
  --line: #23272e;
  --line-2: #2f343c;
  --ink: #d7dce2;
  --ink-dim: #8a929c;
  --ink-faint: #59606a;
  /* hot-cue colors, the way DJ software paints them */
  --cue-a: #ff3b5c;  /* red    */
  --cue-b: #ff9f1c;  /* orange */
  --cue-c: #ffe14d;  /* yellow */
  --cue-d: #3ddc84;  /* green  */
  --cue-e: #2ec5ff;  /* cyan   */
  --cue-f: #9b6bff;  /* violet */
  /* the season sets the accent; n3r4.js overrides these per the real calendar */
  --accent: #ff9f1c;
  --accent-2: #ff3b5c;
  --glow: 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
  --led-off: color-mix(in srgb, var(--accent) 9%, #000);
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-seg: "DSEG7", ui-monospace, monospace;
  --f-seg14: "DSEG14", ui-monospace, monospace;
  --f-pixel: "Silkscreen", ui-monospace, monospace;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bpm: 92;
  --beat: calc(60s / var(--bpm));
}
:root[data-season="winter"] { --accent: #2ec5ff; --accent-2: #9b6bff; }
:root[data-season="spring"] { --accent: #3ddc84; --accent-2: #ffe14d; }
:root[data-season="summer"] { --accent: #ffe14d; --accent-2: #ff9f1c; }
:root[data-season="fall"]   { --accent: #ff9f1c; --accent-2: #ff3b5c; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--f-mono);
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- primitives ---------- */
.seg   { font-family: var(--f-seg); letter-spacing: .04em; color: var(--accent); text-shadow: var(--glow); font-variant-numeric: tabular-nums; }
.seg14 { font-family: var(--f-seg14); letter-spacing: .06em; color: var(--accent); text-shadow: var(--glow); }
/* unlit segments sit behind the lit ones, like a real LCD/VFD */
.seg-wrap { position: relative; display: inline-block; }
.seg-wrap > .ghost { position: absolute; inset: 0; color: var(--led-off); text-shadow: none; pointer-events: none; }
.seg-wrap > .lit { position: relative; }
.pixel { font-family: var(--f-pixel); text-transform: uppercase; letter-spacing: .06em; }
.label { font: 700 10px/1 var(--f-pixel); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 1px 0 #000;
}
.screen {
  background: #030405;
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 8px 24px rgba(0,0,0,.8);
  position: relative;
  overflow: hidden;
}
/* scanlines for anything that's a "screen" */
.screen.crt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--led-off); display: inline-block; flex: none;
}
.led.on { background: var(--accent); box-shadow: var(--glow); }
.led.cue { background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }

.btn {
  font: 700 11px/1 var(--f-pixel); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 3px;
  background: linear-gradient(180deg, #1b1f25, #111418);
  border: 1px solid var(--line-2); border-bottom-color: #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 #000;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 0 #000; }

/* ---------- page chrome: backdrop, top bar, foot (every n3r4 page) ---------- */
body {
  padding: var(--gutter);
  background:
    radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%),
    repeating-radial-gradient(circle at 110% 120%, transparent 0 22px, rgba(255,255,255,.018) 22px 23px),
    var(--bg);
  background-attachment: fixed;
}
body > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
body > * + * { margin-top: 12px; }
button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 12px 16px; }
.brand { text-decoration: none; }
.brand-seg { font-size: 18px; }
.dro { display: flex; gap: 16px; justify-content: center; }
.axis { display: flex; align-items: baseline; gap: 6px; }
.axis .seg { font-size: 14px; }
.readouts { display: flex; gap: 20px; align-items: flex-end; }
.readout { display: grid; gap: 6px; justify-items: end; }
.readout .seg { font-size: 18px; }
.challenger { font-size: 11px; color: var(--cue-c); text-shadow: 0 0 8px color-mix(in srgb, var(--cue-c) 60%, transparent); white-space: nowrap; }
.season-name { color: var(--accent); font-size: 12px; text-shadow: var(--glow); }
.growth { width: 64px; height: 4px; background: var(--led-off); border-radius: 2px; overflow: hidden; }
.growth > span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: var(--glow); transition: width 1.2s ease; }

/* ---------- foot ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 4px 2px; }
.noscript { padding: 16px; }
@media (hover: none) { .foot .label { display: none; } }

@media (max-width: 1080px) {
  .dro { display: none; }
  .topbar { grid-template-columns: auto 1fr; }
  .readouts { justify-content: flex-end; }
}
@media (max-width: 860px) {
  .foot { flex-direction: column; align-items: stretch; }
  .foot .label { line-height: 1.6; }
}
@media (max-width: 520px) { .readout.season, .readout.greet { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
