/* Darts recording layout. Scoring geometry remains in the deterministic engine. */
.darts-body.originals-body .darts-game-panel { position:relative; height:640px; min-height:640px; padding:0; border:0; border-radius:0 8px 0 0; background:#0f212e; box-shadow:none; overflow:hidden; }
.darts-stage-surface { position:relative; width:100%; height:100%; overflow:hidden; background:#0f212e; }
.dartboard { position:absolute; width:min(450px,78%); aspect-ratio:1; left:50%; top:61px; transform:translateX(-50%); border-radius:50%; }
#dartboardSvg { width:100%; height:100%; overflow:visible; display:block; }
.board-shadow { fill:#071924; }
.board-rim { fill:none; stroke:#304955; stroke-width:4.5; }
.board-inner { fill:#0f212e; }
.board-light { fill:none; stroke:#203944; }
.target-cell { stroke:none; }
.target-cell.yellow { fill:#ffd000; }
.target-cell.orange { fill:#fa5418; }
.target-cell.red { fill:#f00043; }
.bullseye { fill:#00f500; }
.dart-marker,.dart-history-marker { position:absolute; width:26px; height:26px; left:var(--dart-x,50%); top:var(--dart-y,50%); transform:translate(-50%,-50%) rotate(var(--dart-angle,0deg)); pointer-events:none; z-index:4; }
.dart-marker { opacity:0; }
.dart-marker.visible { opacity:1; }
.dart-marker img,.dart-history-marker img { display:block; width:100%; height:100%; }
.dart-marker.flying { animation:dart-arrive var(--dart-flight-time,200ms) cubic-bezier(.15,.65,.35,1) both; }
.dart-marker.flying::after { content:""; position:absolute; top:60%; left:47%; width:3px; height:90px; transform:rotate(-8deg); transform-origin:top; background:linear-gradient(#fff,#ffffff00); animation:dart-tail var(--dart-flight-time,200ms) linear both; }
.dart-trail { position:absolute; inset:0; pointer-events:none; }
.dart-history-marker { animation:dart-fade 1100ms linear forwards; }
.dart-history-marker.no-motion { animation:none; }
.darts-body .darts-recent-results { position:absolute; inset:154px 5% auto auto; display:flex; flex-direction:column; justify-content:flex-start; gap:0; width:51px; height:auto; min-height:0; max-height:204px; padding:0; border-radius:12px; overflow:hidden; z-index:5; pointer-events:auto; }
.darts-body .darts-recent-results .recent-chip { display:grid; place-items:center; flex:0 0 51px; min-width:0; min-height:51px; width:51px; padding:0 3px; margin:0; border:0; border-bottom:1px solid #0f212e55; border-radius:0; background:#203944; color:#fff; font-size:14px; font-weight:800; font-variant-numeric:tabular-nums; }
.darts-body .darts-recent-results .recent-chip.yellow { background:#ffd000; color:#1f2630; }
.darts-body .darts-recent-results .recent-chip.orange { background:#fa5418; color:#172530; }
.darts-body .darts-recent-results .recent-chip.red { background:#f00043; color:#18232d; }
.darts-body .darts-recent-results .recent-chip.green { background:#00e701; color:#172a17; }
.darts-payout-area { position:absolute; bottom:16px; left:16px; right:16px; display:flex; justify-content:center; }
.darts-payouts { display:flex; gap:5px; align-items:center; justify-content:center; }
.darts-payout { --zone:#203944; min-width:48px; height:51px; border:0; border-bottom:6px solid var(--zone); border-radius:8px; background:#304955; color:#fff; padding:8px; font-size:14px; font-weight:800; cursor:help; font-variant-numeric:tabular-nums; }
.darts-payout.dark { --zone:#203944; }
.darts-payout.light { --zone:#405b68; }
.darts-payout.yellow { --zone:#ffd000; }
.darts-payout.orange { --zone:#fa5418; }
.darts-payout.red { --zone:#f00043; }
.darts-payout.green { --zone:#00e701; }
.darts-payout:hover,.darts-payout:focus-visible,.darts-payout[aria-expanded="true"] { background:var(--zone); color:#fff; }
.darts-payout.yellow:hover,.darts-payout.orange:hover,.darts-payout.green:hover,.darts-payout.yellow[aria-expanded="true"],.darts-payout.orange[aria-expanded="true"],.darts-payout.green[aria-expanded="true"] { color:#10212e; }
.darts-payout.is-result { background:var(--zone); color:#fff; }
.darts-payout.yellow.is-result,.darts-payout.orange.is-result,.darts-payout.green.is-result { color:#10212e; }
.darts-payout-details { position:absolute; left:0; right:0; bottom:68px; display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:18px 16px 16px; border-radius:6px; background:#213743; box-shadow:0 0 0 1px #2b414e; z-index:8; }
.darts-payout-details::after { content:""; position:absolute; top:100%; left:var(--tip-x,50%); border:9px solid transparent; border-top-color:#213743; transform:translateX(-50%); }
.darts-payout-details label { display:grid; gap:7px; color:#b1c3d1; font-size:13px; font-weight:650; }
.darts-payout-details output { display:flex; justify-content:space-between; min-width:0; border:1px solid #405a69; border-radius:5px; background:#1d3340; color:#fff; min-height:42px; padding:10px; font-size:14px; }
.darts-payout-details output > span:last-child:not(:first-child) { color:#94adbd; }
.darts-body .tool-row .text-button { background:#2f4553; border:0; color:#b1c3d1; border-radius:4px; padding:8px; }
@keyframes dart-arrive { 0% { opacity:0; transform:translate(-40%,250%) scale(1.7) rotate(var(--dart-angle,0deg)); } 45% { opacity:1; } 75% { transform:translate(-50%,-55%) scale(1.06) rotate(var(--dart-angle,0deg)); } 100% { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(var(--dart-angle,0deg)); } }
@keyframes dart-tail { 0% { opacity:1; transform:scaleY(1); } 80%,100% { opacity:0; transform:scaleY(0); } }
@keyframes dart-fade { 0%,65% { opacity:1; } 100% { opacity:0; } }
@media(max-width:1000px) and (min-width:761px) {
 .darts-body.originals-body .darts-game-panel { height:570px; min-height:570px; }
 .dartboard { top:65px; width:82%; }
 .darts-body .darts-recent-results { right:2%; top:115px; width:38px; max-height:152px; }
 .darts-body .darts-recent-results .recent-chip { width:38px; flex-basis:38px; min-height:38px; font-size:12px; }
}
@media(max-width:760px) {
 .darts-body.originals-body .darts-game-panel { height:410px; min-height:410px; border-radius:8px; }
 .dartboard { width:min(330px,84%); top:14px; }
 .dart-marker,.dart-history-marker { width:21px; height:21px; }
 .darts-body .darts-recent-results { right:8px; top:60px; width:32px; max-height:128px; border-radius:7px; }
 .darts-body .darts-recent-results .recent-chip { width:32px; flex-basis:32px; min-height:32px; font-size:10px; }
 .darts-payout-area { bottom:14px; left:10px; right:10px; }
 .darts-payouts { width:100%; gap:4px; }
 .darts-payout { flex:0 1 48px; min-width:0; width:calc((100% - 20px)/6); height:44px; padding:4px 2px; font-size:12px; border-bottom-width:5px; border-radius:6px; }
 .darts-payout-details { gap:10px; bottom:58px; padding:12px 10px; }
 .darts-payout-details label { font-size:12px; }
 .darts-payout-details output { min-height:36px; padding:8px; font-size:12px; }
}
@media(max-width:360px) { .darts-body.originals-body .darts-game-panel { height:355px; min-height:355px; } .dartboard { top:12px; } .darts-payout { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .dart-marker,.dart-history-marker { animation:none!important; } }
