@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #1b1b1b;
  --panel: #242424;
  --line: #303030;
  --slot: #2a2a2a;
  --fg: #e9e9e9;
  --muted: #8d8d8d;
  --dim: #565656;
  --accent: #ff8a2b;
  --clip-1: #ffa53d;
  --clip-2: #5ec8db;
  --ink: #161616;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); }
i { font-style: normal; color: var(--dim); margin: 0 0.35em; }

/* ---------- flat top / bottom strips ---------- */
.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  padding: 0 clamp(16px, 3vw, 28px);
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
header.strip { border-bottom: 1px solid var(--line); }
.cpu b { color: var(--fg); font-weight: 500; margin-left: 0.4em; }
footer.strip { border-top: 1px solid var(--line); }
kbd {
  font: inherit;
  display: inline-block;
  min-width: 18px;
  padding: 1px 4px;
  text-align: center;
  background: var(--slot);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
}

/* ---------- stage ---------- */
.stage {
  align-self: center;
  width: min(100% - 32px, 54rem);
  margin: 0 auto;
  padding: 10vh 0 12vh;
}

.mark {
  margin: 0 0 0 -0.055em;
  font-size: clamp(5rem, 23vw, 12.5rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.065em;
  color: var(--fg);
}
.pip {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  margin-left: 0.07em;
  background: var(--accent);
}

.label {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- clip slots ---------- */
.slots {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  background: var(--c, var(--slot));
  color: var(--ink);
  text-decoration: none;
  outline: none;
  transition: filter 0.12s;
}
.slot .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.slot .meta {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.6;
  white-space: nowrap;
}
.play {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  flex: none;
}
.slot:hover { filter: brightness(1.12); }
.slot:hover .play,
.slot:focus-visible .play { border-left-color: #fff; }
.slot:focus-visible { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--accent); }
.slot:active { filter: brightness(0.92); }

.slot.c1 { --c: var(--clip-1); }
.slot.c2 { --c: var(--clip-2); }
.slot.empty { background: var(--slot); }
.stop {
  width: 9px;
  height: 9px;
  background: var(--dim);
  opacity: 0.6;
}

/* ---------- 404 ---------- */
.label.err { color: var(--fg); }
.label.err b { color: var(--accent); font-weight: 500; }

@media (max-width: 720px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .slots { grid-template-columns: 1fr; }
  .slot.empty { display: none; }
}
@media (hover: none) {
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
