:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --ink: #ece8df;
  --muted: #8a867c;
  --amber: #d7a441;
  --line: #2a2926;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

body {
  min-height: 100dvh;
}

#glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(215, 164, 65, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 80ms linear;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand .eyebrow {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.brand h1 {
  margin: 6px 0 0;
  font-size: 36px;
  font-weight: 560;
  letter-spacing: 0.14em;
}

.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.voice {
  height: 44px;
  letter-spacing: 0.22em;
  background: transparent;
  color: var(--muted);
  border: 0;
}

.voice.on {
  background: var(--ink);
  color: var(--bg);
}

.gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gauge .label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.gauge strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 520;
}

.status {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.hint,
.credit {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.credit {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

button {
  appearance: none;
  border: 0;
  border-radius: 0;
  font: inherit;
}

.controls button {
  height: 64px;
  letter-spacing: 0.28em;
  background: var(--ink);
  color: var(--bg);
}

.controls button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.controls button:disabled {
  opacity: 0.4;
}

.controls button.kill {
  background: #b42318;
  color: #fff;
}

.volume {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--amber);
}

body.on .brand h1 {
  color: var(--amber);
}
