@font-face { font-family: "Audiowide"; src: url("assets/fonts/audiowide-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("assets/fonts/fragment-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* design tokens - sampled off the approved avatar art:
   black bg #000, chrome light #c8cecc, chrome dark #19191b, brand lime #ccff00 */
:root {
  --bg: #000000;
  --metal-hi: #dfe4e2;
  --metal-mid: #8d938f;
  --metal-lo: #24262a;
  --metal-shadow: #050505;
  --lime: #ccff00;
  --lime-dim: #6c8300;
  --ink: #e9ece9;
  --ink-dim: rgba(233, 236, 233, 0.5);
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 28px;
  --space-5: 44px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fragment Mono", ui-monospace, monospace;
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-3);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 44% 8%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 18%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 92% 46%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 25% 62%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 74%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 8% 88%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 85% 90%, #fff 100%, transparent 100%);
  background-size: 480px 420px;
  background-repeat: repeat;
  opacity: 0.45;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: min(92vw, 620px);
}

.eyebrow {
  margin: 0;
  font-size: clamp(10px, 2vmin, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0.85;
}

.wordart {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: clamp(30px, 8vmin, 56px);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #cfd4d2 32%, #6a706d 48%, #f4f6f5 58%, #9aa19d 78%, #3a3d3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.sub {
  margin: 0;
  text-align: center;
  font-size: clamp(12px, 2.6vmin, 14px);
  color: var(--ink-dim);
  max-width: 46ch;
}

.panel {
  position: relative;
  width: 100%;
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: 10px;
  background:
    linear-gradient(165deg, var(--metal-hi) 0%, var(--metal-mid) 22%, var(--metal-lo) 46%, var(--metal-mid) 68%, var(--metal-hi) 88%, var(--metal-lo) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.7);
}

.switches {
  display: flex;
  justify-content: space-between;
  gap: clamp(6px, 1.6vw, 14px);
}

.sw {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1 1 0;
}

.sw__track {
  position: relative;
  width: 100%;
  max-width: 34px;
  aspect-ratio: 1 / 2.6;
  border-radius: 999px;
  background: linear-gradient(180deg, #050505 0%, #1a1b1d 50%, #050505 100%);
  box-shadow:
    inset 0 0 0 1.5px var(--metal-mid),
    inset 0 2px 4px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.25);
}

.sw__lever {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, #4c4f4d 0%, #232423 55%, #0c0c0c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(0%);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sw[aria-checked="true"] .sw__track {
  box-shadow:
    inset 0 0 0 1.5px var(--lime-dim),
    inset 0 2px 4px rgba(0, 0, 0, 0.7),
    0 0 18px 3px rgba(204, 255, 0, 0.45);
}

.sw[aria-checked="true"] .sw__lever {
  transform: translateY(115%);
  background: linear-gradient(180deg, #eaffb0 0%, var(--lime) 45%, #7a9600 100%);
  box-shadow: 0 0 10px 2px rgba(204, 255, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  animation: glow 3.2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.sw__num {
  font-size: clamp(9px, 1.8vmin, 11px);
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

.sw[aria-checked="true"] .sw__num {
  color: var(--lime);
}

.readout {
  margin-top: var(--space-3);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 4px;
  background: #0a0b0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.readout__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.readout__value {
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--lime);
  text-shadow: 0 0 8px rgba(204, 255, 0, 0.6);
}

.plate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal-mid));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 3px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.plate__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2b2d2c;
  opacity: 0.75;
}

.ca {
  appearance: none;
  border: none;
  background: transparent;
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: clamp(11px, 2.4vmin, 14px);
  color: #101110;
  cursor: pointer;
  padding: 0;
}
.ca:hover { color: var(--lime-dim); }

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  color: var(--ink-dim);
}
.foot a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  vertical-align: -2px;
}
.foot .sep { margin: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  .sw__lever, .sw__track { transition: none; }
  .sw[aria-checked="true"] .sw__lever { animation: none; filter: brightness(1.1); }
}

@media (max-width: 420px) {
  .switches { gap: 5px; }
  .sw__track { max-width: 22px; }
}
