:root {
  --bg: #d9d2c0;
  --body: #3f5a3c;
  --body-edge: #2b3f29;
  --text: #f3efe2;
  --screen: #1c2a1b;
  --accent: #e8a020;
  --ptt: #c0392b;
  --ptt-glow: #ff6a4d;
  --focus: #1a6fe0;
  --muted: #5e584a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14160f;
    --body: #2a3a28;
    --body-edge: #0f160e;
    --screen: #0b120b;
    --focus: #7ab4ff;
    --muted: #8c907f;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 16px;
}
.version { margin: 12px 0 0; font-size: 0.75rem; color: var(--muted); font-family: ui-monospace, monospace; }
.version a { color: inherit; }
.radio {
  width: 100%;
  max-width: 420px;
  background: var(--body);
  border: 4px solid var(--body-edge);
  border-radius: 32px;
  padding: 24px 16px;
  box-shadow: 0 8px 0 var(--body-edge);
  text-align: center;
}
h1 { margin: 0 0 12px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.5rem; }
#status {
  background: var(--screen);
  color: var(--accent);
  font-family: ui-monospace, monospace;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 16px;
  min-height: 2.5em;
}
button, input { font: inherit; }
button {
  background: var(--accent);
  color: #20180a;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.share { margin: 16px 0; text-align: left; }
.row { display: flex; gap: 8px; margin-top: 4px; }
.row input { flex: 1; min-width: 0; padding: 8px; border-radius: 8px; border: 0; }
.ptt {
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 16px auto 0;
  display: block;
  border-radius: 50%;
  background: var(--ptt);
  color: var(--text);
  font-weight: 700;
  border: 6px solid var(--body-edge);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ptt[aria-pressed="true"] {
  background: var(--ptt-glow);
  box-shadow: 0 0 40px 12px var(--ptt-glow);
}
.ptt[hidden], [hidden] { display: none; }
.hint { font-size: 0.875rem; opacity: 0.8; }
