:root {
  color-scheme: dark;
  --bg: #090d12;
  --panel: rgba(18, 25, 33, 0.82);
  --panel-strong: #111821;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f8f4ea;
  --muted: #8793a1;
  --amber: #ffb000;
  --amber-soft: #ffcf63;
  --mint: #5fffd1;
  --danger: #ff5869;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: "Barlow Condensed", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  z-index: 0;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.09;
  pointer-events: none;
}

.ambient-one { top: -15rem; right: -9rem; background: var(--amber); }
.ambient-two { bottom: -18rem; left: -11rem; background: var(--mint); }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 22px;
}

.topbar, .topbar-actions, .brand, .controls, .panel-heading, .dialog-heading, .dialog-actions {
  display: flex;
  align-items: center;
}

.topbar { justify-content: space-between; gap: 20px; }

.brand {
  gap: 12px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 176, 0, 0.2);
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  width: 20px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.45);
}

.brand-mark::after { transform: rotate(90deg); }
.brand-mark i { width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--mint); }

.topbar-actions { gap: 10px; }
.games-preview-link { color: var(--mint); font-size: 0.92rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.games-preview-link:hover { color: var(--text); }
.games-preview-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.connection-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
}

.status-light {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #53606c;
  box-shadow: 0 0 0 4px rgba(83, 96, 108, 0.13);
}

.connection-pill[data-state="connecting"] .status-light { background: var(--amber); animation: blink 1s infinite; }
.connection-pill[data-state="connected"] { color: var(--mint); }
.connection-pill[data-state="connected"] .status-light { background: var(--mint); box-shadow: 0 0 0 4px rgba(95, 255, 209, 0.12), 0 0 16px rgba(95, 255, 209, 0.4); }
.connection-pill[data-state="error"] { color: var(--danger); }
.connection-pill[data-state="error"] .status-light { background: var(--danger); }

.icon-button {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.icon-button:hover { border-color: rgba(255, 176, 0, 0.5); background: rgba(255, 176, 0, 0.07); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 570px;
  gap: 8px;
  min-height: 390px;
  margin: 12px 0 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 176, 0, 0.09), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 56%),
    rgba(12, 17, 23, 0.78);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.035);
}

.stage::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 21px;
  content: "";
}

.hit-aura {
  position: absolute;
  left: 4%;
  width: min(46vw, 460px);
  min-width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 176, 0, 0.14);
  border-radius: 50%;
}

.hit-aura::before, .hit-aura::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  content: "";
}

.hit-aura::before { inset: 17%; }
.hit-aura::after { inset: 35%; border-color: rgba(95, 255, 209, 0.12); }

.stage-content { position: relative; z-index: 1; min-width: 0; padding: 42px 20px; text-align: center; }

.dartboard-widget {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 7px 18px 7px 0;
}

.dartboard-graphic { min-width: 0; }
.dartboard-svg { display: block; width: min(100%, 380px); aspect-ratio: 1; margin: auto; overflow: visible; }
.dartboard-surround { fill: #0a1016; stroke: #53616a; stroke-width: 1.5; }
.dartboard-face { fill: #1e2b31; stroke: #71828a; stroke-width: 1.5; }
.dartboard-number { fill: #e9e7db; font-family: "DM Mono", monospace; font-size: 17px; font-weight: 700; pointer-events: none; }
.dartboard-number.is-selected { fill: var(--amber-soft); }
.dart-segment { stroke: #66757a; stroke-width: 0.75; cursor: pointer; transition: fill 160ms ease, filter 160ms ease; }
.dart-segment-single.dart-segment-even { fill: #c5bfae; }
.dart-segment-single.dart-segment-odd { fill: #25383b; }
.dart-segment-band.dart-segment-even { fill: #b6454d; }
.dart-segment-band.dart-segment-odd { fill: #2b886a; }
.dart-segment-ob { fill: #2b886a; }
.dart-segment-ib { fill: #b6454d; }
.dart-segment:hover, .dart-segment:focus-visible { outline: none; filter: brightness(1.25); }
.dart-segment.is-custom { fill: var(--section-color); }
.dart-segment.is-custom[data-effect="glow"] { filter: brightness(1.35) saturate(1.25); }
.dart-segment.is-custom[data-effect="pulse"] { animation: board-section-pulse 1.65s ease-in-out infinite; }
.dart-segment.is-selected { filter: brightness(1.4); }
.dart-segment.is-selected.is-custom[data-effect="glow"] { filter: brightness(1.6) saturate(1.3); }
.dart-segment.is-selected.is-custom[data-effect="pulse"] { animation: board-section-pulse-selected 1.65s ease-in-out infinite; }
.dart-segment.is-recent-hit { animation: board-hit-flash 1.4s ease-out; }

.dartboard-tools { display: grid; align-content: center; gap: 10px; min-width: 0; }
.dartboard-tools .section-kicker { font-size: 0.63rem; }
.dartboard-tool-title { margin: -6px 0 0; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.dartboard-selection { min-height: 16px; margin: 0; color: var(--mint); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.dartboard-tool-field { display: grid; gap: 4px; color: #c9d0d7; font-size: 0.75rem; font-weight: 600; }
.dartboard-tool-field input, .dartboard-tool-field select { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: 8px; background: #0c1219; color: var(--text); cursor: pointer; }
.dartboard-tool-field input { padding: 3px; }
.dartboard-tool-field select { padding: 0 7px; }
.dartboard-tool-field input:disabled, .dartboard-tool-field select:disabled { opacity: 0.5; cursor: default; }
.dartboard-clear { justify-self: start; padding: 0; font-size: 0.82rem; }
.dartboard-clear:disabled { opacity: 0.4; cursor: default; }

.eyebrow, .section-kicker {
  margin: 0;
  color: var(--amber);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hit-value {
  margin: -9px 0 -14px;
  color: var(--text);
  font-size: clamp(8rem, 20vw, 13.5rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.9;
  text-shadow: 0 0 45px rgba(255, 176, 0, 0.11);
}

.hit-label {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.score-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
}

.stage.is-hit .hit-aura { animation: target-pulse 650ms ease-out; }
.stage.is-hit .stage-content { animation: hit-in 420ms cubic-bezier(.2,.8,.2,1); }
.stage.is-bull { background: radial-gradient(circle at 50% 42%, rgba(95, 255, 209, 0.14), transparent 34%), rgba(12, 17, 23, 0.78); }
.stage.is-bull .eyebrow { color: var(--mint); }

.controls { justify-content: flex-start; gap: 12px; margin-top: 16px; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.primary-button {
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #161006;
  box-shadow: 0 8px 26px rgba(255, 176, 0, 0.15);
}

.primary-button:hover { background: var(--amber-soft); }
.primary-button:disabled { opacity: 0.5; cursor: wait; }

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.secondary-button:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.primary-button svg, .secondary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.secondary-button svg path:first-child:only-child { fill: currentColor; stroke: none; }

.sound-control {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  padding: 0 14px 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.sound-copy { display: grid; line-height: 1.05; }
.sound-copy > span { font-size: 0.95rem; font-weight: 600; }
.sound-copy small { margin-top: 4px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.65rem; }
.sound-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { width: 36px; height: 21px; padding: 3px; border-radius: 999px; background: #303a44; transition: 180ms ease; }
.switch-track span { display: block; width: 15px; aspect-ratio: 1; border-radius: 50%; background: #e7ebee; transition: 180ms ease; }
.sound-control input:checked + .switch-track { background: var(--mint); }
.sound-control input:checked + .switch-track span { transform: translateX(15px); background: #09221b; }
.sound-control input:focus-visible + .switch-track { outline: 2px solid var(--amber); outline-offset: 3px; }

.lower-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 18px; margin-top: 18px; }

.panel {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.panel-heading, .dialog-heading { justify-content: space-between; gap: 18px; }
.panel h2, .dialog-heading h2 { margin: 4px 0 0; font-size: 1.45rem; line-height: 1; }

.text-button {
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.text-button:hover { color: var(--text); }

.throw-list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.throw-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.throw-index { display: grid; width: 31px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: rgba(255, 176, 0, 0.1); color: var(--amber); font-family: "DM Mono", monospace; font-size: 0.68rem; }
.throw-name { font-size: 1.05rem; font-weight: 600; }
.throw-points { color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.75rem; }
.empty-row { display: flex; min-height: 76px; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 1rem; }
.empty-target { width: 23px; aspect-ratio: 1; border: 1px solid #56616c; border-radius: 50%; box-shadow: inset 0 0 0 6px var(--panel), inset 0 0 0 7px #56616c; }

.packet-time { color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.packet-code { display: block; margin: 31px 0 13px; overflow-wrap: anywhere; color: var(--mint); font-family: "DM Mono", monospace; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.4; }
.packet-note { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

.packet-mapper {
  display: grid;
  gap: 13px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 176, 0, 0.3);
  border-radius: 14px;
  background: rgba(255, 176, 0, 0.055);
}
.packet-mapper[hidden] { display: none; }
.mapper-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.mapper-heading strong { display: block; margin-top: 4px; font-size: 1.08rem; }
.mapper-heading > span { color: var(--amber); font-family: "DM Mono", monospace; font-size: 0.65rem; }
.mapper-packet { overflow-wrap: anywhere; color: var(--mint); font-family: "DM Mono", monospace; font-size: 0.77rem; line-height: 1.4; }
.mapper-fields { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 9px; }
.mapper-fields label { display: grid; gap: 6px; color: #c9d0d7; font-size: 0.78rem; font-weight: 600; }
.mapper-fields label[hidden] { display: none; }
.mapper-fields input, .mapper-fields select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #0c1219;
  color: var(--text);
}
.mapper-fields input:focus, .mapper-fields select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.1); }
.mapper-save { width: 100%; min-height: 43px; }
.packet-mapper > small { color: var(--muted); font-size: 0.72rem; line-height: 1.35; }

.led-panel { margin-top: 18px; }
.led-status { color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.led-status.is-ready { color: var(--mint); }
.led-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(120px, 0.8fr) repeat(3, minmax(95px, 0.55fr));
  gap: 13px;
  margin-top: 22px;
}
.led-grid label { display: grid; align-content: start; gap: 7px; min-width: 0; color: #c9d0d7; font-size: 0.82rem; font-weight: 600; }
.led-grid label[hidden] { display: none; }
.led-grid select {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0c1219;
  color: var(--text);
}
.led-grid select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.1); }
.color-field input {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1219;
  cursor: pointer;
}
.led-speed-field { grid-column: 1 / -1; }
.led-speed-field > span { display: flex; justify-content: space-between; }
.led-speed-field input { width: 100%; accent-color: var(--amber); }
.led-speed-field output { color: var(--amber); font-family: "DM Mono", monospace; }
.led-speed-field small { color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.led-command-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
}
.led-command-row > div { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 0.76rem; }
.led-command-row code { overflow-wrap: anywhere; color: var(--mint); font-family: "DM Mono", monospace; font-size: 0.76rem; line-height: 1.45; }
.led-command-row button { flex: 0 0 auto; }
.led-automation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 19px 0 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.led-automation legend { padding: 0 7px; color: var(--text); font-size: 0.95rem; font-weight: 700; }
.led-automation legend small { margin-left: 6px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.62rem; font-weight: 400; }
.led-automation label { display: flex; align-items: center; gap: 7px; color: #c9d0d7; cursor: pointer; font-size: 0.84rem; }
.led-automation input { accent-color: var(--amber); }

footer { display: flex; justify-content: center; gap: 10px; padding: 24px 0 0; color: #5d6873; font-family: "DM Mono", monospace; font-size: 0.68rem; }

.settings-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 23px;
  background: #111821;
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.72);
}

.settings-dialog::backdrop { background: rgba(3, 6, 9, 0.78); backdrop-filter: blur(8px); }
.settings-dialog form { padding: 26px; }
.dialog-intro { margin: 19px 0 24px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-grid label { display: grid; align-content: start; gap: 8px; min-width: 0; color: #c9d0d7; font-size: 0.9rem; font-weight: 600; }
.field-grid label > span { display: flex; justify-content: space-between; gap: 10px; }
.field-grid em { color: var(--muted); font-size: 0.72rem; font-style: normal; font-weight: 500; }
.field-grid input:not([type="range"]), .field-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0c1219;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}
.field-grid input:not([type="range"]) { height: 44px; padding: 0 12px; }
.field-grid textarea { padding: 12px; resize: vertical; line-height: 1.5; }
.field-grid input:focus, .field-grid textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.1); }
.field-grid label > small { color: var(--muted); font-size: 0.76rem; font-weight: 500; line-height: 1.35; }
.full-field { grid-column: 1 / -1; }
.volume-field input { width: 100%; accent-color: var(--amber); }
.volume-field output { color: var(--amber); font-family: "DM Mono", monospace; font-size: 0.72rem; }
.dialog-actions { justify-content: flex-end; gap: 10px; margin-top: 27px; }

.toast {
  position: fixed;
  z-index: 5;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 44px));
  padding: 12px 16px;
  transform: translateY(18px);
  border: 1px solid var(--line);
  border-radius: 11px;
  opacity: 0;
  background: #17202a;
  box-shadow: var(--shadow);
  font-family: "DM Mono", monospace;
  font-size: 0.73rem;
  line-height: 1.45;
  pointer-events: none;
  transition: 180ms ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

@keyframes blink { 50% { opacity: 0.3; } }
@keyframes target-pulse { 0% { transform: scale(0.82); opacity: 0.15; } 70% { opacity: 0.95; } 100% { transform: scale(1.13); opacity: 0; } }
@keyframes hit-in { 0% { transform: scale(0.82); opacity: 0; } 68% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes board-section-pulse { 50% { opacity: 0.42; filter: brightness(1.35); } }
@keyframes board-section-pulse-selected { 50% { opacity: 0.55; filter: brightness(1.65); } }
@keyframes board-hit-flash { 0%, 30% { fill: #fff5a0; filter: brightness(1.4); } 100% { filter: none; } }

@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr; padding: 25px 20px; }
  .stage-content { padding: 18px 10px 0; }
  .hit-aura { left: 50%; transform: translateX(-50%); }
  .dartboard-widget { width: min(100%, 550px); justify-self: center; padding: 0; }
  .dartboard-svg { width: min(100%, 330px); }
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 24px, 620px); padding-top: 17px; }
  .brand { font-size: 1rem; }
  .connection-pill { min-height: 38px; padding: 0 11px; }
  .stage { min-height: 360px; margin-top: 12px; border-radius: 24px; }
  .stage::before { inset: 11px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; }
  .sound-control { grid-column: 1 / -1; justify-content: space-between; }
  .lower-grid { grid-template-columns: 1fr; }
  .led-grid { grid-template-columns: 1fr 1fr; }
  .led-effect-field, .led-speed-field { grid-column: 1 / -1; }
  .field-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
}

@media (max-width: 450px) {
  .brand > span:last-child { display: none; }
  .games-preview-link { font-size: 0.78rem; }
  .stage { min-height: 330px; }
  .dartboard-widget { grid-template-columns: 1fr; gap: 4px; }
  .dartboard-graphic { width: min(100%, 330px); justify-self: center; }
  .dartboard-tools { grid-template-columns: 1fr 1fr; gap: 7px 12px; }
  .dartboard-tools .section-kicker, .dartboard-tool-title, .dartboard-selection, .dartboard-clear { grid-column: 1 / -1; }
  .dartboard-tools .section-kicker { display: none; }
  .dartboard-tool-title { margin-top: 8px; }
  .hit-value { font-size: clamp(7.5rem, 42vw, 10rem); }
  .controls { gap: 8px; }
  .controls .primary-button, .controls .secondary-button { min-height: 44px; gap: 6px; padding: 0 9px; font-size: 0.9rem; }
  .sound-control { min-height: 44px; }
  .panel { padding: 19px; }
  .led-grid { grid-template-columns: 1fr; }
  .led-effect-field, .led-speed-field { grid-column: auto; }
  .led-command-row { align-items: stretch; flex-direction: column; }
  .led-command-row button { width: 100%; }
  footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
