@charset "UTF-8";
:root {
  --paper:#f5f7f3;
  --pine:#163b2c;
  --ink:#202b24;
  --muted:#68746a;
  --gold:#53969b;
  --line:#d5ded6;
  --serif:Georgia,'Times New Roman',serif;
  --sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color-scheme:light;
  font-family:var(--sans);
  font-synthesis:none;
  color:var(--ink);
  background:var(--paper);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,a {
  -webkit-tap-highlight-color:transparent;
}

button,input {
  font:inherit;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a {
  color:inherit;
}

button:disabled {
  cursor:default;
  opacity:.5;
}

[hidden] {
  display:none!important;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #d7a34b;
  outline-offset:4px;
}

::selection {
  background:#dbe7d0;
}

h1,h2,h3,p {
  margin-top:0;
}

kbd {
  font-family:var(--sans);
  font-size:11px;
  line-height:1;
  padding:5px 7px;
  border:1px solid currentColor;
  border-radius:4px;
  white-space:nowrap;
}

em {
  font-weight:400;
}

button {
  border:0;
}

button:active:not(:disabled) {
  transform:translateY(1px);
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:100;
  background:var(--paper);
  padding:15px;
}

.skip-link:focus {
  top:10px;
}

.game-nav {
  height:78px;
  max-width:1600px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:25px;
  padding:0 32px;
}

.brand {
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  font:25px var(--serif);
  white-space:nowrap;
  flex-shrink:0;
}

.game-brand-name {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.brand-prefix {
  font:600 9px/1.2 var(--sans);
  letter-spacing:1.6px;
  text-transform:uppercase;
}

.brand-main {
  font:400 24px/.95 var(--serif);
  letter-spacing:1.3px;
  text-transform:uppercase;
}

.brand img {
  width:32px;
  height:32px;
}

.nav-caption {
  font:italic 14px/1.3 var(--serif);
  letter-spacing:0;
  margin-left:6px;
  color:var(--muted);
}

.toolbar {
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
}

.tool-button {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  min-height:39px;
  min-width:36px;
  padding:8px 10px;
  border-radius:6px;
  background:transparent;
  color:var(--pine);
  font-size:21px;
}

.tool-button span:not(.sound-icon) {
  font-size:11px;
}

.tool-button:hover {
  background:#e5e8dc;
}

.tool-button[aria-pressed=true] {
  background:#dbe3d5;
}

.home-link {
  font-size:11px;
  text-decoration:none;
  padding:10px 0 10px 16px;
  border-left:1px solid var(--line);
  margin-left:6px;
}

.home-link:hover {
  text-decoration:underline;
}

.sound-icon {
  font-family:Georgia,serif;
  font-size:24px;
}

.game-shell {
  max-width:1536px;
  margin:0 auto;
  padding:0 24px;
}

.game-viewport {
  width:100%;
  aspect-ratio:16/9;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#94b6ad;
  border:1px solid #c0c7b7;
  border-radius:10px 10px 0 0;
  max-height:calc(100svh - 225px);
}

#game-canvas {
  display:block;
  width:100%;
  height:100%;
  cursor:crosshair;
  touch-action:manipulation;
}

.scorebar {
  position:absolute;
  inset:22px 26px auto;
  display:flex;
  align-items:center;
  gap:30px;
  pointer-events:none;
  color:var(--pine);
  background:rgba(248,247,234,.9);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.48);
  padding:13px 22px;
  border-radius:8px;
  box-shadow:0 3px 10px #25372112;
}

.score-identity {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:100px;
  max-width:40%;
}

.eyebrow {
  font-size:9px;
  font-weight:650;
  letter-spacing:1.9px;
  text-transform:uppercase;
  display:block;
  line-height:1.5;
}

.score-identity strong {
  font-family:var(--serif);
  font-size:22px;
  line-height:1.05;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
}

.round-block {
  margin:auto;
  text-align:center;
}

.round-dots {
  display:flex;
  justify-content:center;
  gap:7px;
  padding-top:8px;
}

.round-dots span {
  display:block;
  width:6px;
  height:6px;
  border-radius:50%;
  border:1px solid #859887;
}

.round-dots .done {
  background:var(--pine);
  border-color:var(--pine);
}

.round-dots .current {
  background:var(--gold);
  border-color:var(--gold);
  box-shadow:0 0 0 2px #d3a85335;
}

.total-block {
  min-width:92px;
  text-align:right;
  position:relative;
}

.total-block strong {
  font:29px var(--serif);
  display:inline-block;
  vertical-align:baseline;
}

.total-max {
  font-size:10px;
  color:var(--muted);
  margin-left:5px;
}

.scene-note {
  position:absolute;
  bottom:20px;
  left:28px;
  display:flex;
  align-items:center;
  gap:9px;
  pointer-events:none;
  background:#f9f7eaeb;
  color:#314a3b;
  padding:9px 12px;
  border-radius:5px;
  font-size:10px;
  letter-spacing:.3px;
  box-shadow:0 1px 8px #18382018;
}

.live-dot {
  width:5px;
  height:5px;
  background:#609368;
  border-radius:50%;
  box-shadow:0 0 0 3px #60936820;
}

.glass-panel {
  background:rgba(249,247,237,.96);
  color:var(--ink);
  border:1px solid #fffffff0;
  box-shadow:0 15px 60px #1b342537;
  backdrop-filter:blur(16px);
  border-radius:10px;
  z-index:3;
}

.setup-panel {
  position:absolute;
  left:4.5%;
  top:50%;
  transform:translateY(-50%);
  width:320px;
  padding:30px;
}

.setup-panel h1 {
  font:57px/.98 var(--serif);
  letter-spacing:-1.8px;
  margin:16px 0 17px;
}

.setup-panel h1 em {
  color:#64794b;
}

.setup-panel>p {
  color:#5c685c;
  line-height:1.65;
  font-size:12px;
  margin-bottom:20px;
}

.setup-panel>.eyebrow {
  font-size:8px;
}

.mode-switch {
  display:flex;
  background:#e7eadf;
  border:1px solid #d6ddcf;
  border-radius:5px;
  padding:3px;
  gap:3px;
}

.mode-switch button {
  padding:9px 3px;
  font-size:11px;
  border-radius:3px;
  background:transparent;
  color:var(--muted);
  flex:1;
  white-space:nowrap;
}

.mode-switch button[aria-pressed=true] {
  background:#fffef6;
  color:var(--pine);
  box-shadow:0 1px 5px #1b342520;
  font-weight:650;
}

.setup-panel .mode-description {
  font-size:10px;
  margin:10px 0 16px;
  line-height:1.4;
}

.check-label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  cursor:pointer;
  margin:13px 0 18px;
}

.check-label small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
}

.check-label input {
  width:16px;
  height:16px;
  accent-color:var(--pine);
  margin:0;
  flex-shrink:0;
}

.button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:45px;
  border-radius:5px;
  font-size:12px;
  font-weight:550;
  line-height:1.4;
  padding:12px 17px;
  text-decoration:none;
  transition:background .15s,box-shadow .15s;
}

.primary {
  background:var(--pine);
  color:#faf9ef;
  box-shadow:0 3px 5px #193d2a10;
}

.primary:hover:not(:disabled) {
  background:#24543b;
  box-shadow:0 4px 12px #143c2c25;
}

.primary>span[aria-hidden=true] {
  margin-left:auto;
  font-size:18px;
}

.secondary {
  background:#e7eadf;
  color:var(--pine);
  border:1px solid #d0d9c9;
}

.secondary:hover {
  background:#d8e1d1;
}

.setup-panel .primary {
  width:100%;
}

.setup-meta {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:9px;
  color:var(--muted);
  margin-top:16px;
  align-items:center;
}

.setup-meta kbd {
  font-size:8px;
  padding:3px 4px;
}

.player-names {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin:12px 0;
}

.player-names label {
  font-size:9px;
  color:var(--muted);
}

.player-names input {
  width:100%;
  border:1px solid #c5cfbd;
  border-radius:4px;
  background:#fffdf5;
  padding:7px 6px;
  font-size:11px;
  color:var(--pine);
  margin-top:4px;
}

.center-panel {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(440px,90%);
  padding:30px;
  text-align:center;
  max-height:calc(100% - 24px);
  overflow:auto;
}

.center-panel h2 {
  font:39px/1.08 var(--serif);
  letter-spacing:-1px;
  margin:14px 0;
}

.center-panel>p {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}

.center-panel .button {
  width:100%;
}

.visit-darts {
  display:flex;
  justify-content:center;
  gap:8px;
  margin:22px 0 14px;
}

.visit-darts span {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  background:#e5e9da;
  color:var(--pine);
  font:25px var(--serif);
  border-radius:50%;
  border:1px solid #d1d9c8;
}

.visit-darts span.bull {
  background:#bb513e;
  color:white;
  border-color:#bb513e;
}

.visit-total strong {
  font:40px var(--serif);
  color:var(--pine);
}

.visit-total span {
  font-size:12px;
}

.panel-actions,.stack-actions {
  display:grid;
  gap:10px;
}

.text-button {
  background:transparent;
  padding:12px;
  font-size:11px;
  text-decoration:underline;
  text-underline-offset:4px;
  color:var(--muted);
}

.results-panel {
  width:min(480px,92%);
  padding:23px 28px;
}

.results-panel h2 {
  margin:9px 0;
}

.results-score {
  font:56px var(--serif);
  letter-spacing:-2px;
  color:var(--pine);
}

.results-score small {
  font:14px var(--sans);
  letter-spacing:0;
  color:var(--muted);
  margin-left:8px;
}

.results-panel>p {
  margin:7px 0 12px;
}

.results-table-wrap {
  overflow-x:auto;
}

.results-table {
  border-collapse:collapse;
  width:100%;
  font-size:10px;
  margin:8px 0 15px;
}

.results-table th,.results-table td {
  padding:7px 5px;
  text-align:center;
  border-bottom:1px solid #d9ddcf;
}

.results-table th:first-child,.results-table td:first-child {
  text-align:left;
  max-width:100px;
  overflow-wrap:anywhere;
}

.results-table th {
  color:var(--muted);
  font-weight:500;
}

.results-table td:last-child {
  font-weight:700;
}

.results-stats {
  display:flex;
  justify-content:center;
  gap:25px;
  padding:6px 0 14px;
  font-size:10px;
  color:var(--muted);
}

.results-stats strong {
  display:block;
  font:20px var(--serif);
  color:var(--pine);
  padding-bottom:4px;
}

.impact-note {
  position:absolute;
  left:69%;
  top:32%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:13px 18px;
  border-radius:8px;
  background:#f8f6e9eb;
  box-shadow:0 4px 20px #13352920;
  min-width:115px;
  pointer-events:none;
}

.impact-note>span:first-child {
  font:52px/1 var(--serif);
  letter-spacing:-2px;
  color:var(--pine);
}

.impact-note>span:last-child {
  font-size:10px;
  color:#596b52;
}

.impact-note.bull>span:first-child {
  color:#b74737;
}

.impact-note.miss>span:first-child {
  font-size:30px;
  letter-spacing:-1px;
}

.rotation-hint {
  display:none;
}

.action-deck {
  display:grid;
  grid-template-columns:1.1fr 1.05fr .85fr;
  align-items:center;
  gap:24px;
  border:1px solid #cdd5c7;
  border-top:0;
  padding:19px 27px;
  background:#faf9f0;
  border-radius:0 0 10px 10px;
  min-height:116px;
}

.throw-instruction .eyebrow {
  font-size:8px;
  color:#7b8469;
  letter-spacing:1.8px;
  margin-bottom:6px;
}

.throw-instruction h2 {
  font:22px/1.15 var(--serif);
  letter-spacing:-.4px;
  margin:0 0 6px;
}

.throw-instruction p {
  font-size:10px;
  color:var(--muted);
  margin:0;
  line-height:1.5;
}

.throw-readout {
  justify-self:center;
  width:100%;
  max-width:300px;
}

.dart-strip {
  display:flex;
  gap:8px;
  justify-content:center;
}

.dart-chip {
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  font:18px var(--serif);
  border:1px solid #d1d9c7;
  border-radius:50%;
  color:#99a78c;
  background:#f4f5ed;
}

.dart-chip.done {
  background:#e1e8d7;
  border-color:#c4cfba;
  color:var(--pine);
}

.dart-chip.bull {
  background:#b34c3b;
  border-color:#b34c3b;
  color:#fff;
}

.dart-chip.current {
  border-color:var(--gold);
  box-shadow:0 0 0 3px #d3a85320;
  color:#af873b;
}

.dart-chip svg {
  width:17px;
  height:17px;
  stroke:currentColor;
  fill:none;
}

.power-wrap {
  width:100%;
}

.power-labels {
  display:flex;
  justify-content:space-between;
  font-size:8px;
  letter-spacing:1px;
  align-items:center;
  color:var(--muted);
  margin-bottom:8px;
}

.power-labels strong {
  font-size:12px;
  font-weight:600;
  color:var(--pine);
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}

.power-meter {
  height:10px;
  background:#e0e6d8;
  position:relative;
  border-radius:10px;
  border:1px solid #cbd5c2;
  isolation:isolate;
  overflow:visible;
}

.neutral-zone {
  position:absolute;
  left:46%;
  right:46%;
  height:17px;
  top:-4px;
  background:#d3a85345;
  border-left:1px solid #ba954f;
  border-right:1px solid #ba954f;
  z-index:2;
}

.power-fill {
  position:absolute;
  inset:0 auto 0 0;
  width:50%;
  background:#859a70;
  border-radius:9px;
}

.power-needle {
  position:absolute;
  left:50%;
  top:-5px;
  height:19px;
  width:3px;
  transform:translateX(-50%);
  background:#28452c;
  box-shadow:0 0 0 1px #f6f3e4;
  border-radius:2px;
  z-index:3;
}

.power-caption {
  display:block;
  font-size:8px;
  color:var(--muted);
  text-align:center;
  margin-top:10px;
}

.action-control {
  justify-self:end;
  width:100%;
  text-align:center;
}

.action-button {
  width:100%;
  gap:13px;
}

.action-button kbd {
  font-size:9px;
  font-weight:400;
  opacity:.65;
  margin-left:auto;
  flex-shrink:0;
}

#action-label {
  text-align:left;
  font-size:12px;
}

.action-control>span {
  font-size:9px;
  color:var(--muted);
  display:block;
  margin-top:8px;
}

.game-footer {
  max-width:1536px;
  margin:0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:22px;
  padding:17px 24px;
  color:var(--muted);
  font-size:9px;
}

.game-footer a {
  text-decoration:none;
}

.game-footer a:hover {
  text-decoration:underline;
}

.game-footer>span {
  margin-right:auto;
}

.storage-note,.noscript {
  text-align:center;
  font-size:12px;
  padding:10px;
  color:#735d29;
}

.help-dialog {
  border:1px solid #dce2d2;
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  padding:34px;
  max-width:620px;
  width:calc(100% - 36px);
  max-height:90svh;
  box-shadow:0 20px 80px #10261950;
}

.help-dialog::backdrop {
  background:#1029198a;
  backdrop-filter:blur(3px);
}

.dialog-close {
  position:absolute;
  right:16px;
  top:10px;
  font-size:30px;
}

.help-dialog h2 {
  font:38px/1.12 var(--serif);
  letter-spacing:-1px;
  margin:12px 0 24px;
}

.help-steps {
  padding-left:23px;
  font-size:12px;
  line-height:1.7;
}

.help-steps li {
  padding:0 0 13px 6px;
}

.help-steps strong {
  display:block;
}

.help-steps kbd {
  font-size:9px;
  padding:2px 4px;
}

.help-rules {
  padding:15px 18px;
  border-radius:6px;
  background:#e6ebdd;
  font-size:12px;
  line-height:1.65;
  margin-bottom:20px;
}

.help-rules p {
  margin:4px 0 0;
}

.key-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  font-size:10px;
  line-height:1.9;
}

.key-grid kbd {
  font-size:9px;
}

.help-dialog hr {
  border:0;
  border-top:1px solid var(--line);
  margin:25px 0 22px;
}

.help-dialog h3 {
  font:23px var(--serif);
  margin:0 0 18px;
}

.volume-label {
  display:block;
  font-size:12px;
  margin-top:20px;
}

.volume-label output {
  float:right;
  color:var(--muted);
}

.volume-label input {
  display:block;
  width:100%;
  accent-color:var(--pine);
  margin:13px 0;
}

.fine-print {
  font-size:10px;
  line-height:1.6;
  color:var(--muted);
  margin:16px 0;
}

.help-dialog .button {
  width:100%;
  margin-top:19px;
}

:fullscreen.game-shell {
  background:var(--paper);
  width:100%;
  height:100%;
  max-width:none;
  padding:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

:fullscreen .game-viewport {
  flex:1;
  max-height:calc(100svh - 116px);
  border-radius:0;
  border:0;
  aspect-ratio:auto;
}

:fullscreen .action-deck {
  flex-shrink:0;
  border-radius:0;
  min-height:116px;
}

.game-shell:fullscreen .storage-note {
  display:none;
}

@media(min-width:1700px) {
  .game-viewport {
    max-height:calc(100svh - 230px);
  }
  .setup-panel {
    width:350px;
    padding:34px;
  }
  .setup-panel h1 {
    font-size:67px;
  }
  .setup-panel>p {
    font-size:13px;
  }
  .action-deck {
    padding:24px 32px;
    min-height:130px;
  }
  .throw-instruction h2 {
    font-size:26px;
  }
  .throw-instruction p {
    font-size:11px;
  }
}

@media(max-width:1150px) {
  .nav-caption {
    display:none;
  }
  .game-nav {
    height:64px;
    padding:0 20px;
  }
  .game-shell {
    padding:0 16px;
  }
  .game-viewport {
    max-height:calc(100svh - 203px);
  }
  .setup-panel {
    left:3%;
    width:282px;
    padding:23px;
  }
  .setup-panel h1 {
    font-size:46px;
    margin:12px 0;
  }
  .setup-panel>p {
    font-size:11px;
    line-height:1.5;
    margin-bottom:15px;
  }
  .setup-panel .mode-description {
    margin:9px 0 12px;
    font-size:9px;
  }
  .setup-meta {
    font-size:8px;
    margin-top:12px;
  }
  .scorebar {
    inset:16px 20px auto;
    padding:11px 15px;
  }
  .score-identity strong {
    font-size:18px;
  }
  .action-deck {
    gap:17px;
    padding:17px 20px;
  }
  .throw-instruction h2 {
    font-size:20px;
  }
  .action-control>span {
    font-size:8px;
  }
  .game-footer {
    padding:14px 20px;
  }
  .check-label {
    font-size:11px;
    margin:12px 0 14px;
  }
  .check-label small {
    font-size:9px;
  }
  .results-panel {
    padding:18px 23px;
  }
  .results-panel h2 {
    font-size:30px;
  }
  .results-score {
    font-size:42px;
  }
  .results-table td,.results-table th {
    padding:5px;
  }
  .results-stats {
    padding-bottom:11px;
  }
  .center-panel {
    max-height:calc(100% - 16px);
  }
}

@media(max-width:800px) {
  .toolbar {
    gap:0;
  }
  .tool-button {
    font-size:20px;
    padding:8px;
  }
  .tool-button>span:not(.sound-icon) {
    font-size:18px;
  }
  .tool-button>span:last-child:not(:first-child) {
    display:none;
  }
  .home-link {
    font-size:10px;
    padding-left:10px;
  }
  .game-nav {
    gap:10px;
  }
  .brand {
    font-size:21px;
  }
  .brand img {
    width:28px;
    height:28px;
  }
  .game-viewport {
    aspect-ratio:4/3;
    max-height:none;
  }
  .setup-panel {
    left:3%;
    padding:20px;
    width:255px;
  }
  .setup-panel h1 {
    font-size:41px;
  }
  .setup-panel .eyebrow {
    font-size:7px;
  }
  .setup-panel>p {
    font-size:10px;
  }
  .mode-switch button {
    font-size:10px;
  }
  .setup-meta {
    font-size:7px;
  }
  .button {
    min-height:40px;
    font-size:11px;
  }
  .scene-note {
    font-size:8px;
    padding:7px 9px;
    left:15px;
    bottom:12px;
  }
  .scorebar {
    inset:12px 15px auto;
  }
  .eyebrow {
    font-size:8px;
  }
  .action-deck {
    grid-template-columns:1fr 1fr;
    gap:14px;
    min-height:140px;
  }
  .throw-instruction {
    grid-column:1/2;
  }
  .throw-readout {
    grid-column:2/3;
    grid-row:1;
  }
  .action-control {
    grid-column:1/3;
    display:flex;
    align-items:center;
    gap:14px;
  }
  .action-button {
    width:60%;
  }
  .action-control>span {
    margin-top:0;
    flex:1;
  }
  .game-footer {
    gap:14px;
    flex-wrap:wrap;
    line-height:1.7;
  }
  .game-footer>span {
    margin:0;
  }
  .power-caption {
    font-size:7px;
  }
  .impact-note {
    left:72%;
    top:35%;
    min-width:88px;
    padding:10px;
  }
  .impact-note>span:first-child {
    font-size:42px;
  }
  .impact-note>span:last-child {
    font-size:9px;
  }
}

@media(max-width:540px) {
  .game-nav {
    height:60px;
    padding:0 12px;
  }
  .brand {
    font-size:18px;
    gap:6px;
  }
  .brand img {
    width:25px;
    height:25px;
  }
  .toolbar .tool-button {
    min-width:31px;
    padding:5px;
  }
  .toolbar .tool-button>span:not(.sound-icon) {
    font-size:17px;
  }
  .home-link {
    display:none;
  }
  .game-shell {
    padding:0 8px;
  }
  .game-viewport {
    aspect-ratio:3/4;
    max-height:660px;
    border-radius:7px 7px 0 0;
  }
  .setup-panel {
    width:calc(100% - 36px);
    max-width:320px;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    padding:24px;
  }
  .setup-panel h1 {
    font-size:52px;
    line-height:.96;
    margin:12px 0;
  }
  .setup-panel h1 br {
    display:none;
  }
  .setup-panel h1 em {
    margin-left:6px;
  }
  .setup-panel>p {
    font-size:12px;
    margin-bottom:15px;
  }
  .setup-panel .eyebrow {
    font-size:8px;
  }
  .setup-meta {
    font-size:8px;
  }
  .setup-panel .mode-description {
    font-size:10px;
  }
  .mode-switch button {
    font-size:11px;
  }
  .scene-note {
    display:none;
  }
  .rotation-hint {
    display:block;
    position:absolute;
    bottom:13px;
    text-align:center;
    width:100%;
    font-size:8px;
    color:#324838;
    background:#f8f8e4c9;
    padding:5px 8px;
    pointer-events:none;
  }
  .scorebar {
    inset:11px 10px auto;
    padding:11px 10px;
    gap:8px;
  }
  .score-identity {
    min-width:88px;
    max-width:40%;
  }
  .score-identity strong {
    font-size:16px;
  }
  .scorebar .eyebrow {
    font-size:6px;
    letter-spacing:1px;
  }
  .round-dots {
    gap:5px;
  }
  .total-block {
    min-width:66px;
  }
  .total-block strong {
    font-size:23px;
  }
  .total-max {
    font-size:8px;
  }
  .action-deck {
    padding:14px 13px;
    gap:13px;
    grid-template-columns:1.1fr 1fr;
  }
  .throw-instruction h2 {
    font-size:19px;
  }
  .throw-instruction p {
    font-size:9px;
  }
  .throw-instruction .eyebrow {
    font-size:7px;
    letter-spacing:1px;
  }
  .dart-strip {
    gap:4px;
  }
  .dart-chip {
    width:27px;
    height:27px;
    font-size:15px;
  }
  .dart-chip svg {
    width:13px;
    height:13px;
  }
  .action-control {
    display:block;
  }
  .action-button {
    width:100%;
    min-height:44px;
  }
  .action-control>span {
    display:none;
  }
  .impact-note {
    left:auto;
    right:12px;
    top:35%;
    min-width:60px;
    padding:9px;
  }
  .impact-note>span:first-child {
    font-size:37px;
  }
  .impact-note>span:last-child {
    max-width:70px;
    text-align:center;
    font-size:8px;
  }
  .center-panel {
    width:calc(100% - 34px);
    padding:25px 22px;
  }
  .center-panel h2 {
    font-size:34px;
  }
  .results-panel {
    padding:20px 16px;
  }
  .results-panel h2 {
    font-size:29px;
  }
  .help-dialog {
    padding:28px 22px;
  }
  .help-dialog h2 {
    font-size:32px;
  }
  .key-grid {
    grid-template-columns:1fr;
    gap:9px;
  }
  .game-footer {
    font-size:8px;
    gap:12px;
    padding:12px 15px;
  }
  .game-footer>span {
    width:100%;
    text-align:center;
  }
  .power-caption {
    font-size:7px;
    line-height:1.4;
  }
}

@media(max-height:670px) and (min-width:800px) {
  .game-nav {
    height:52px;
  }
  .game-viewport {
    max-height:calc(100svh - 163px);
  }
  .action-deck {
    min-height:88px;
    padding:12px 20px;
  }
  .game-footer {
    padding:10px 20px;
  }
  .setup-panel {
    width:285px;
    padding:16px 21px;
  }
  .setup-panel h1 {
    font-size:39px;
    margin:8px 0;
  }
  .setup-panel h1 br {
    display:none;
  }
  .setup-panel h1 em {
    margin-left:5px;
  }
  .setup-panel>p {
    font-size:10px;
    margin-bottom:10px;
  }
  .setup-panel .mode-description {
    margin:7px 0;
  }
  .setup-panel .check-label {
    margin:10px 0;
  }
  .setup-meta {
    margin-top:9px;
  }
  .scene-note {
    bottom:10px;
  }
  .scorebar {
    inset:10px 18px auto;
    padding:9px 15px;
  }
  .score-identity strong {
    font-size:18px;
  }
  .total-block strong {
    font-size:24px;
  }
  .center-panel {
    padding:18px 25px;
  }
  .center-panel h2 {
    font-size:30px;
    margin:8px 0;
  }
  .visit-darts {
    margin:13px 0 8px;
  }
  .visit-darts span {
    width:33px;
    height:33px;
    font-size:20px;
  }
  .visit-total strong {
    font-size:30px;
  }
  .center-panel>p {
    margin-bottom:12px;
  }
  .results-panel {
    max-width:470px;
    padding:13px 25px;
  }
  .results-score {
    font-size:32px;
  }
  .results-table {
    margin:3px 0 6px;
  }
  .results-table th,.results-table td {
    padding:4px;
  }
  .results-stats {
    gap:24px;
    padding:4px 0 9px;
  }
  .results-stats strong {
    font-size:17px;
  }
  .results-panel .panel-actions {
    grid-template-columns:1fr 1fr;
    gap:9px;
  }
  .results-panel .button {
    min-height:36px;
    padding:9px 12px;
  }
}

@media(max-height:540px) and (orientation:landscape) {
  .game-nav {
    height:44px;
  }
  .game-shell {
    padding:0 7px;
  }
  .game-viewport {
    aspect-ratio:auto;
    height:calc(100svh - 124px);
    max-height:none;
  }
  .game-footer {
    display:none;
  }
  .action-deck {
    grid-template-columns:1fr .9fr 1fr;
    min-height:80px;
    padding:8px 14px;
    gap:12px;
  }
  .throw-instruction {
    grid-column:1;
  }
  .throw-readout {
    grid-column:2;
    grid-row:1;
  }
  .action-control {
    grid-column:3;
    display:block;
  }
  .action-button {
    width:100%;
    min-height:36px;
  }
  .action-control>span {
    display:none;
  }
  .throw-instruction h2 {
    font-size:18px;
    margin-bottom:3px;
  }
  .throw-instruction p {
    font-size:8px;
  }
  .setup-panel {
    width:260px;
    padding:13px 18px;
  }
  .setup-panel h1 {
    font-size:31px;
    margin:6px 0;
  }
  .setup-panel>p {
    font-size:9px;
    line-height:1.4;
    margin-bottom:8px;
  }
  .setup-panel .mode-description {
    font-size:8px;
    margin:7px 0;
  }
  .setup-panel>.eyebrow {
    font-size:6px;
  }
  .setup-panel h1 br {
    display:none;
  }
  .mode-switch button {
    font-size:9px;
    padding:6px 3px;
  }
  .setup-panel .check-label {
    font-size:9px;
    margin:8px 0;
  }
  .setup-panel .check-label small {
    display:none;
  }
  .setup-panel .button {
    min-height:32px;
    padding:7px 12px;
    font-size:10px;
  }
  .setup-meta {
    margin-top:8px;
    font-size:7px;
  }
  .player-names {
    margin:6px 0;
  }
  .player-names input {
    padding:4px;
    font-size:9px;
  }
  .scorebar {
    inset:9px 15px auto;
    padding:7px 12px;
  }
  .score-identity strong {
    font-size:16px;
  }
  .scorebar .eyebrow {
    font-size:6px;
  }
  .total-block strong {
    font-size:23px;
  }
  .round-dots {
    padding-top:5px;
  }
  .scene-note {
    display:none;
  }
  .center-panel {
    max-height:calc(100% - 14px);
  }
  .center-panel h2 {
    font-size:28px;
  }
  .center-panel .button {
    min-height:34px;
    padding:8px 12px;
  }
  .center-panel .eyebrow {
    font-size:7px;
  }
  .results-panel {
    padding:13px 22px;
  }
  .results-score {
    font-size:28px;
  }
  .results-panel>p {
    font-size:10px;
    margin:5px 0;
  }
  .results-table {
    font-size:9px;
    margin:3px 0;
  }
  .results-table th,.results-table td {
    padding:3px;
  }
  .results-stats {
    font-size:8px;
    padding:4px 0 6px;
  }
  .results-stats strong {
    font-size:16px;
  }
  .results-panel .panel-actions {
    display:flex;
  }
  .results-panel .panel-actions .button {
    font-size:10px;
    min-height:31px;
  }
  .visit-darts {
    margin:10px 0;
  }
  .visit-darts span {
    width:30px;
    height:30px;
    font-size:19px;
  }
  .visit-total strong {
    font-size:28px;
  }
  .visit-total {
    margin-bottom:6px!important;
  }
  .impact-note {
    top:40%;
    left:70%;
    padding:8px;
    min-width:75px;
  }
  .impact-note>span:first-child {
    font-size:34px;
  }
  .power-caption {
    display:none;
  }
  .dart-chip {
    width:27px;
    height:27px;
    font-size:15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

/* A clean daylight palette. The artwork is always displayed without a tint. */
:root {
  --paper:#f5f7f3;
  --gold:#53969b;
  --line:#d5ded6;
}

.glass-panel {
  background:rgba(248,250,247,.97);
}

.action-deck {
  background:#fafcf9;
}

.scorebar {
  background:rgba(248,250,247,.94);
  right:auto;
  min-width:245px;
  max-width:40%;
  gap:20px;
}

.scorebar .total-block {
  display:none;
}

.scorebar .round-block {
  margin-left:auto;
  margin-right:0;
}

.scene-note {
  background:#f8faf5ed;
}

.impact-note {
  background:#f7faf5ef;
  left:27%;
  top:46%;
}

.setup-panel {
  width:330px;
  max-height:calc(100% - 30px);
  overflow-y:auto;
  overscroll-behavior:contain;
}

.setup-panel h1 em {
  color:#50735f;
}

.mode-switch {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
}

.difficulty-label {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin:10px 0;
}

.difficulty-label select {
  display:block;
  width:100%;
  padding:8px 9px;
  border:1px solid #cad7cc;
  border-radius:4px;
  background:#fbfdfa;
  color:var(--pine);
  margin-top:5px;
  font:12px var(--sans);
}

.side-scorecard {
  position:absolute;
  z-index:2;
  right:28px;
  top:22px;
  width:210px;
  background:rgba(248,251,247,.95);
  color:var(--pine);
  border:1px solid #ffffffd9;
  border-radius:8px;
  padding:19px 17px 12px;
  box-shadow:0 4px 18px #14392316;
  backdrop-filter:blur(10px);
  pointer-events:none;
}

.scorecard-heading {
  border-bottom:1px solid #ccd8cd;
  padding-bottom:13px;
  margin-bottom:8px;
}

.scorecard-heading .eyebrow {
  font-size:7px;
  letter-spacing:1.6px;
  color:#6d8375;
}

.scorecard-heading h2 {
  font:27px/1.1 var(--serif);
  letter-spacing:-.6px;
  margin:4px 0 0;
}

.side-scorecard table {
  border-collapse:collapse;
  width:100%;
  table-layout:fixed;
  font-size:11px;
}

.side-scorecard th,.side-scorecard td {
  padding:9px 3px;
  text-align:center;
  font-weight:400;
  overflow-wrap:anywhere;
}

.side-scorecard thead th {
  font-size:9px;
  color:#728172;
  border-bottom:1px solid #dfe6da;
}

.side-scorecard th:first-child {
  text-align:left;
  width:42px;
  font-size:9px;
  color:#788975;
}

.side-scorecard tbody tr {
  border-bottom:1px solid #e4ebe0;
}

.side-scorecard .active-player {
  font-weight:700;
  color:var(--pine);
}

.side-scorecard .active-round {
  background:#e8f0e3;
}

.side-scorecard tfoot th,.side-scorecard tfoot td {
  font-weight:700;
  color:var(--pine);
  padding-top:14px;
}

.side-scorecard tfoot td {
  font:25px var(--serif);
}

.side-scorecard>p {
  font-size:8px;
  color:#81907f;
  text-align:center;
  line-height:1.4;
  margin:8px 0 0;
}

.game-shell[data-phase=menu] .side-scorecard {
  display:none;
}

.game-shell[data-phase=paused] .side-scorecard,.game-shell[data-phase=visit] .side-scorecard,.game-shell[data-phase=finished] .side-scorecard {
  opacity:.75;
}

.neutral-zone {
  background:#609b9145;
  border-color:#61918c;
}

.power-needle {
  background:#204a46;
}

.setup-meta kbd {
  background:#f6faf4;
}

@media(max-width:1150px) {
  .setup-panel {
    width:286px;
  }
  .side-scorecard {
    right:20px;
    top:16px;
    width:175px;
    padding:14px 13px 10px;
  }
  .scorecard-heading {
    padding-bottom:10px;
  }
  .scorecard-heading h2 {
    font-size:24px;
  }
  .side-scorecard td,.side-scorecard th {
    padding:7px 3px;
  }
  .side-scorecard tfoot td {
    font-size:22px;
  }
  .scorebar {
    min-width:235px;
  }
  .impact-note {
    left:24%;
    top:46%;
  }
}

@media(max-width:800px) {
  .side-scorecard {
    right:15px;
    top:12px;
    width:155px;
    padding:12px 10px 8px;
  }
  .scorebar {
    min-width:225px;
    max-width:50%;
  }
  .scorecard-heading h2 {
    font-size:22px;
  }
  .side-scorecard td,.side-scorecard th {
    padding:6px 3px;
    font-size:10px;
  }
  .side-scorecard>p {
    font-size:7px;
  }
  .setup-panel {
    width:268px;
  }
  .impact-note {
    left:20%;
    top:46%;
  }
}

@media(max-width:540px) {
  .setup-panel {
    width:calc(100% - 36px);
    max-width:325px;
  }
  .side-scorecard {
    right:10px;
    top:11px;
    width:121px;
    padding:10px 8px 7px;
  }
  .scorecard-heading {
    padding-bottom:8px;
    margin-bottom:4px;
  }
  .scorecard-heading h2 {
    font-size:20px;
  }
  .scorecard-heading .eyebrow {
    font-size:6px;
  }
  .side-scorecard th:first-child {
    width:31px;
    font-size:8px;
  }
  .side-scorecard thead th {
    font-size:8px;
  }
  .side-scorecard td,.side-scorecard th {
    padding:5px 2px;
    font-size:9px;
  }
  .side-scorecard tfoot td {
    font-size:19px;
    padding-top:9px;
  }
  .side-scorecard>p {
    font-size:6px;
    margin-top:5px;
  }
  .scorebar {
    min-width:0;
    max-width:calc(100% - 152px);
    width:auto;
    display:block;
    padding:11px;
  }
  .scorebar .score-identity {
    max-width:none;
    min-width:0;
  }
  .scorebar .round-block {
    margin-top:9px;
    text-align:left;
  }
  .round-dots {
    justify-content:flex-start;
  }
  .scorebar .eyebrow {
    font-size:7px;
  }
  .impact-note {
    left:12px;
    right:auto;
    top:44%;
  }
  .side-scorecard .active-player {
    overflow-wrap:anywhere;
  }
}

@media(max-height:540px) and (orientation:landscape) {
  .side-scorecard {
    top:9px;
    right:15px;
    width:150px;
    padding:9px 10px 7px;
  }
  .scorecard-heading {
    padding-bottom:6px;
    margin-bottom:4px;
  }
  .scorecard-heading h2 {
    font-size:19px;
    margin-top:2px;
  }
  .side-scorecard th,.side-scorecard td {
    padding:4px 2px;
    font-size:9px;
  }
  .side-scorecard thead th {
    font-size:7px;
  }
  .side-scorecard tfoot td {
    padding-top:8px;
    font-size:19px;
  }
  .side-scorecard>p {
    font-size:6px;
    margin-top:5px;
  }
  .setup-panel {
    width:266px;
  }
  .mode-switch button {
    padding:5px 3px;
  }
  .setup-panel h1 {
    font-size:29px;
  }
  .setup-panel>.eyebrow {
    display:none;
  }
  .setup-panel .setup-meta {
    margin-top:7px;
  }
  .difficulty-label {
    margin:7px 0;
    font-size:8px;
  }
  .difficulty-label select {
    font-size:10px;
    padding:5px 7px;
  }
  .scorebar {
    min-width:215px;
    max-width:40%;
    display:flex;
  }
  .scorebar .round-block {
    margin-top:0;
  }
  .impact-note {
    left:22%;
    top:43%;
  }
}

/* Finnish Cabin Darts: compact wordmark and the supplied slogan. */
.setup-panel .brand-title {
  font-size:38px;
  line-height:1.08;
  letter-spacing:-1.15px;
}

.setup-panel .brand-title br {
  display:inline;
}

.setup-panel .brand-title em {
  margin-left:0;
}

@media(max-width:1150px) {
  .setup-panel .brand-title {
    font-size:33px;
  }
}

@media(max-width:800px) {
  .brand-prefix {
    font-size:8px;
    letter-spacing:1.3px;
  }
  .brand-main {
    font-size:22px;
    letter-spacing:1.1px;
  }
}

@media(max-width:540px) {
  .brand-prefix {
    letter-spacing:1px;
  }
  .brand-main {
    font-size:21px;
  }
}

@media(max-width:380px) {
  .setup-panel .brand-title {
    font-size:30px;
  }
}

@media(max-height:670px) and (min-width:800px) {
  .setup-panel .brand-title {
    font-size:32px;
    margin:8px 0;
  }
}

@media(max-height:540px) and (orientation:landscape) {
  .setup-panel .brand-title {
    font-size:20px;
    margin:6px 0;
  }
  .setup-panel .brand-title br {
    display:none;
  }
}
