/* Dart zählen (/dart). Große Ziele für Daumen, Zahlen gut aus 2 m lesbar. */

.wrap-dart { max-width: 760px; }
.d-title { font-family: var(--zn-font-display); font-weight: 400; font-size: 18px; }
.tpill { font-family: var(--zn-font-display); font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--zn-cyan); color: var(--zn-bg); white-space: nowrap; }
.d-head { margin-bottom: var(--zn-s2); }
.d-head .row { flex-wrap: nowrap; }
.d-sub { margin-top: 4px; }
.d-turnline { min-height: 20px; display: flex; justify-content: center; }

.d-pick { display: flex; align-items: center; gap: var(--zn-s2); padding: 12px var(--zn-s1); border-top: 1px solid var(--zn-line); color: var(--zn-text); text-decoration: none; font-weight: 700; }
.d-pick.free { opacity: 0.6; }

.d-players { display: grid; grid-template-columns: 1fr 1fr; gap: var(--zn-s1); }
.d-score.cricket .d-players { grid-template-columns: 1fr auto 1fr; }
.d-player { display: flex; flex-direction: column; gap: 6px; padding: var(--zn-s2); background: var(--zn-surface); border: var(--zn-line-width) solid var(--zn-line); border-radius: var(--zn-radius-panel); min-width: 0; transition: border-color var(--zn-dur-fast) var(--zn-ease); }
.d-player.turn { border-color: var(--zn-lime); box-shadow: var(--zn-pop-offset) var(--zn-pop-offset) 0 var(--zn-lime); }
.d-name { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.d-name { justify-content: center; }
.d-name .grow { flex: 0 1 auto; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.d-name .badge { width: 24px; height: 24px; }
.d-turn { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zn-bg); background: var(--zn-lime); padding: 2px 6px; border-radius: 4px; }
.d-big { font-family: var(--zn-font-display); font-size: clamp(44px, 14vw, 84px); line-height: 1; text-align: center; }
.d-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 13px; color: var(--zn-text-dim); }
.d-meta strong { color: var(--zn-text); }
.d-last { text-align: center; }

.d-marks { border-collapse: collapse; align-self: center; }
.d-marks th { font-family: var(--zn-font-display); font-weight: 400; font-size: 15px; padding: 2px 8px; text-align: center; }
.d-marks td { width: 30px; height: 26px; text-align: center; }
.d-marks tr.dead { opacity: 0.35; }
.mark { width: 20px; height: 20px; fill: none; stroke: var(--zn-lime); stroke-width: 2.5; stroke-linecap: round; vertical-align: middle; }

.d-visit { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: var(--zn-s2) 0; min-height: 44px; }
.slots { display: flex; gap: 6px; align-items: center; width: 100%; }
.slots .slot { flex: 1; text-align: center; padding: 8px 0; border: 1px dashed var(--zn-line); border-radius: var(--zn-radius-small); font-family: var(--zn-font-display); font-size: 18px; min-height: 42px; }
.slots .slot.hit { border-style: solid; border-color: var(--zn-cyan); }
.d-sum { min-width: 64px; text-align: right; font-family: var(--zn-font-display); font-size: 24px; color: var(--zn-cyan); }
.d-out { display: inline-flex; align-items: center; gap: 6px; color: var(--zn-yellow); font-weight: 700; font-size: 17px; }

.d-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--zn-surface); border: var(--zn-line-width) solid var(--zn-line); border-radius: var(--zn-radius-button); margin-bottom: var(--zn-s1); }
.d-tabs button { font: inherit; font-weight: 700; color: var(--zn-text-dim); background: none; border: 0; border-radius: var(--zn-radius-small); min-height: 36px; cursor: pointer; }
.d-tabs button.active { background: var(--zn-line); color: var(--zn-text); }
.d-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.d-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.d-grid.cricket, .d-grid.num { grid-template-columns: repeat(3, 1fr); }
.d-grid.foot { grid-template-columns: 1fr; margin-top: 6px; }
.d-grid .undo { grid-column: span 2; }
.d-grid.cricket .undo, .d-grid.foot .undo { grid-column: auto; }
.d-key { font: inherit; font-family: var(--zn-font-display); font-size: 20px; min-height: 52px; color: var(--zn-text); background: var(--zn-surface); border: var(--zn-line-width) solid var(--zn-line); border-radius: var(--zn-radius-small); cursor: pointer; touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform var(--zn-dur-fast) var(--zn-ease); }
.d-key:active { transform: scale(0.96); }
.d-key:disabled { opacity: 0.35; cursor: default; }
.d-key.mod { font-family: var(--zn-font-text); font-weight: 700; font-size: 15px; min-height: 44px; }
.d-key.mod.on { background: var(--zn-pink); border-color: var(--zn-pink); color: var(--zn-bg); }
.d-key.miss, .d-key.undo { font-family: var(--zn-font-text); font-weight: 700; font-size: 14px; }
.d-key.undo { color: var(--zn-yellow); }
.d-key.ok { background: var(--zn-lime); border-color: var(--zn-lime); color: var(--zn-bg); }
.d-key.small { font-size: 15px; min-height: 40px; }
.d-quick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-bottom: 6px; }
.d-typed { font-family: var(--zn-font-display); font-size: 40px; text-align: center; padding: 6px; margin-bottom: 6px; border: var(--zn-line-width) solid var(--zn-line); border-radius: var(--zn-radius-small); min-height: 64px; }
.d-typed .dim { font-family: var(--zn-font-text); font-size: 15px; }
.d-stats { margin-top: var(--zn-s3); }
.d-stats summary { cursor: pointer; }
.table { width: 100%; border-collapse: collapse; margin-top: var(--zn-s1); }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zn-text-dim); padding: 6px; border-bottom: var(--zn-line-width) solid var(--zn-line); }
.table td { padding: 6px; border-bottom: 1px solid var(--zn-line); }
.table .num { text-align: right; }
.table td.num { font-family: var(--zn-font-display); }

.d-finish-btns { display: grid; gap: var(--zn-s1); margin: var(--zn-s2) 0; }
.d-won { max-width: 460px; }
.d-won-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin-bottom: var(--zn-s2); }
.d-won-head .icon { width: 40px; height: 40px; color: var(--zn-yellow); }
.d-won-legs { font-family: var(--zn-font-display); font-size: 32px; }

@media (max-width: 420px) {
  .d-quick { grid-template-columns: repeat(5, 1fr); }
  .d-score.cricket .d-players { grid-template-columns: 1fr 1fr; }
  .d-score.cricket .d-marks { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .d-key, .d-player { transition: none; } }

/* Eigene Karte und Warten, bis man dran ist */
.d-turnline { gap: 6px; }
.d-me { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zn-bg); background: var(--zn-cyan); padding: 2px 6px; border-radius: 4px; }
.d-player.mine { border-color: var(--zn-cyan); }
.d-player.mine.turn { border-color: var(--zn-lime); }
.d-wait { text-align: center; }
.d-wait p { margin: 0; }

/* Spaßmodus: drei bis sechs Spieler, kompakte Karten */
.d-score.multi .d-players { grid-template-columns: repeat(3, 1fr); }
.d-score.multi.n4 .d-players { grid-template-columns: repeat(2, 1fr); }
.d-score.multi .d-player { padding: var(--zn-s1); gap: 4px; }
.d-score.multi .d-big { font-size: clamp(32px, 9vw, 56px); }
.d-score.multi .d-name { font-size: 14px; }
.d-score.multi .d-meta { font-size: 12px; }
.d-marks.wide { width: 100%; margin-top: var(--zn-s1); }
.d-marks.wide th { font-family: var(--zn-font-text); font-weight: 700; font-size: 12px; padding: 2px; overflow: hidden; }
.d-marks.wide thead th.turn { color: var(--zn-lime); }
.d-marks.wide tbody th { font-family: var(--zn-font-display); font-weight: 400; font-size: 15px; }
.d-stat-scroll { overflow-x: auto; }

/* Übersicht und neues Spaßspiel */
.d-tabs [data-pick-tab] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.d-tabs [data-pick-tab] .icon { width: 16px; height: 16px; }
.d-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--zn-s1); }
.d-chosen, .d-guests { display: flex; flex-wrap: wrap; gap: 6px; }
.d-guests { max-height: 220px; overflow-y: auto; }
.d-pick .small { font-weight: 400; }

@media (max-width: 420px) {
  .d-score.multi .d-players { grid-template-columns: repeat(2, 1fr); }
}
.wrap-dart .chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--zn-text); background: var(--zn-surface); border: var(--zn-line-width) solid var(--zn-line); border-radius: 999px; padding: 4px 12px; min-height: 36px; cursor: pointer; }
.wrap-dart .chip.active { background: var(--zn-pink); border-color: var(--zn-pink); color: var(--zn-bg); }
.wrap-dart .chip.active .dim { color: inherit; opacity: 0.8; }
.wrap-dart .chip:disabled { opacity: 0.4; cursor: default; }
.wrap-dart .chip .icon { width: 14px; height: 14px; }
