
:root{--bg:#0b100e;--panel:#141d18;--panel2:#1b2921;--line:#2c3b31;--txt:#f2f6f2;--muted:#9caaa1;--lime:#c8f36a;--red:#ff8374;--green:#274633}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% -10%,#233b2c 0,transparent 36%),var(--bg);color:var(--txt);font:15px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif}.wrap{max-width:1100px;margin:auto;padding:0 18px 90px}
header{height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#0b100eef;backdrop-filter:blur(16px);z-index:5}.brand{font-weight:950;font-size:21px;letter-spacing:.04em}.brand b{color:var(--lime)}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.2em;margin-top:-4px}
nav{display:flex;gap:6px}nav button,.ghost{background:none;border:0;color:var(--muted);padding:9px 12px;border-radius:10px;font-weight:700;cursor:pointer}nav button.active,nav button:hover{background:var(--panel2);color:var(--txt)}
h1{font-size:clamp(32px,5vw,48px);letter-spacing:-.05em;line-height:1.05;margin:24px 0 8px}h2{font-size:22px;margin:0 0 4px;letter-spacing:-.03em}h3{font-size:17px;margin:0 0 8px}.sub{color:var(--muted);margin:0 0 22px}.eyebrow{color:var(--lime);font-size:10px;font-weight:900;letter-spacing:.2em}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.tab{border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:9px 14px;border-radius:999px;font-weight:750;cursor:pointer}.tab.active{background:var(--lime);color:#10170f;border-color:var(--lime)}
.panel{background:linear-gradient(145deg,#17221b,#111713);border:1px solid var(--line);border-radius:19px;padding:20px}.grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.muted{color:var(--muted)}.small{font-size:12px;color:var(--muted)}
label{display:block;color:#bdc9c0;font-size:12px;font-weight:700;margin:0 0 6px}input,select{width:100%;background:#0e1511;color:var(--txt);border:1px solid #34463a;border-radius:11px;padding:12px;outline:none}input:focus,select:focus{border-color:var(--lime)}.field{margin:12px 0}.btn{border:0;border-radius:12px;background:var(--lime);color:#11170e;font-weight:900;padding:12px 16px;cursor:pointer}.btn:hover{background:#dcff91}.btn.secondary{background:#26372c;color:var(--txt);border:1px solid #3a5140}.btn.danger{background:#402622;color:#ffb0a6;border:1px solid #704038}.btn:disabled{opacity:.4;cursor:not-allowed}
.scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.player{padding:17px;border-radius:15px;background:#0f1712;border:1px solid var(--line)}.player.active{border-color:var(--lime);box-shadow:inset 0 0 0 1px #c8f36a33}.player .name{font-size:12px;color:var(--muted);font-weight:800}.player .score{font-size:clamp(40px,7vw,62px);font-weight:950;letter-spacing:-.06em;line-height:1.1;margin:8px 0}.player .meta{font-size:11px;color:var(--muted)}
.dartinputs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.dartinputs .field{margin:0}.toggle{display:flex;align-items:center;gap:8px;margin:12px 0;color:#d6e0d8;font-size:13px}.toggle input{width:auto;accent-color:var(--lime)}
.notice{padding:12px 14px;border-radius:12px;background:#17241b;border:1px solid #344c36;color:#d8e9d8;margin:12px 0;font-size:13px}.notice.warn{background:#2b2118;border-color:#685039;color:#f2d3a9}.notice.error{background:#321e1b;border-color:#714138;color:#ffb7ad}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.history{display:flex;flex-direction:column;gap:8px;max-height:310px;overflow:auto}.visit{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#101813;border:1px solid var(--line);border-radius:11px;font-size:13px}.visit strong{font-size:17px}.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.kpi{padding:15px;background:#101813;border:1px solid var(--line);border-radius:13px}.kpi strong{display:block;font-size:26px;letter-spacing:-.04em}.kpi span{font-size:11px;color:var(--muted)}
.hidden{display:none!important}.view{display:none}.view.active{display:block}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setting{padding:14px 0;border-bottom:1px solid var(--line)}.setting:last-child{border:0}
#toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#e0ff9d;color:#11180f;padding:11px 16px;border-radius:999px;font-weight:800;font-size:13px;display:none;z-index:20;box-shadow:0 8px 30px #0008}
footer{padding:22px 0;color:#718077;font-size:11px;border-top:1px solid var(--line);margin-top:35px}
@media(max-width:760px){nav{display:none}.grid,.two{grid-template-columns:1fr}.wrap{padding:0 13px 90px}.panel{padding:16px}.scoreboard{gap:7px}.player{padding:13px}.player .score{font-size:48px}.dartinputs{gap:6px}.kpis{gap:7px}.kpi{padding:11px}.kpi strong{font-size:21px}}

.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.game-card{background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:15px;cursor:pointer;transition:.15s;min-height:132px}
.game-card:hover{border-color:var(--lime);transform:translateY(-2px)}
.game-card h3{margin:7px 0 5px;font-size:16px}.game-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.game-tag{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--lime);font-weight:800}
.game-detail{margin-top:14px}.game-detail h2{margin:4px 0 12px}.game-detail h3{font-size:13px;color:var(--lime);text-transform:uppercase;letter-spacing:.1em;margin:18px 0 5px}.game-detail p{margin:0;color:#d8e1da}
@media(max-width:760px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}header{height:auto;min-height:70px;flex-wrap:wrap;padding:8px 0}header nav{order:3;width:100%;overflow:auto}header nav button{white-space:nowrap}}
@media(max-width:440px){.game-grid{grid-template-columns:1fr}}

.labmode{margin-top:12px}.cricket-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:12px 0}
.cricket-cell{padding:9px 4px;text-align:center;border:1px solid var(--line);border-radius:10px;background:#101813;font-size:12px}
.cricket-cell strong{display:block;font-size:18px}.cricket-cell span{color:var(--muted);font-size:10px}
.cricket-cell.closed{border-color:var(--lime);background:#243522}.cricket-cell.closed strong{color:var(--lime)}
@media(max-width:600px){.cricket-board{grid-template-columns:repeat(4,minmax(0,1fr))}}

.score-entry{max-width:520px;margin:14px 0 8px}
.score-display{background:#0b120e;border:1px solid #465b4b;border-radius:14px;padding:10px 13px;margin-bottom:10px}
.score-display label{margin-bottom:3px}
.score-display input{font-size:34px;font-weight:900;letter-spacing:.04em;text-align:right;border:0;background:transparent;padding:2px 0;color:var(--lime);font-variant-numeric:tabular-nums}
.quick-scores{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}
.quick-scores button,.numeric-keypad button{min-height:43px;border-radius:11px;border:1px solid var(--line);background:#1a2920;color:var(--txt);font-weight:850;font-size:16px;cursor:pointer}
.quick-scores button:hover,.numeric-keypad button:hover{border-color:var(--lime);background:#263b2c}
.quick-scores .score-180{background:var(--lime);border-color:var(--lime);color:#11180e;box-shadow:0 0 0 2px #c8f36a33;font-size:18px}
.numeric-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.numeric-keypad button{min-height:48px;font-size:19px}
.numeric-keypad .key-muted{background:#26332b;color:#c3d0c6}
@media(max-width:760px){
  .score-entry{max-width:none}
  .quick-scores{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .quick-scores button{min-height:45px;font-size:15px}
  .numeric-keypad{gap:6px}
  .numeric-keypad button{min-height:50px}
}



/* Mobile-only layout and internal game mode */
html,body{width:100%;min-height:100%;margin:0;overflow-x:hidden}
body{font-size:15px;-webkit-text-size-adjust:100%;overscroll-behavior-y:contain}
.wrap{width:100%;max-width:520px;margin:0 auto;padding:0 14px 94px}
header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;background:rgba(11,16,14,.97);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
header .small{display:none}
.brand{font-size:20px;line-height:1}
.brand small{font-size:8px;letter-spacing:.16em}
nav{display:flex;gap:4px;overflow-x:auto;max-width:100%;scrollbar-width:none}
nav::-webkit-scrollbar{display:none}
nav button{flex:0 0 auto;padding:8px 9px;font-size:11px;border-radius:9px}
h1{font-size:30px;margin:8px 0}h2{font-size:17px}
.sub{font-size:13px;line-height:1.45}
.grid,.two{grid-template-columns:minmax(0,1fr)!important;gap:10px}
.panel{padding:13px;border-radius:15px;min-width:0}
.scoreboard{gap:8px}.player{min-width:0;padding:13px 8px}
.player .score{font-size:clamp(36px,12vw,52px)}
.quick-scores{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.quick-scores button{min-height:48px;font-size:16px}
.numeric-keypad{gap:6px}.numeric-keypad button{min-height:52px;font-size:20px}
.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.actions button{min-height:46px;padding:11px 8px}
.field input,.field select{min-height:44px;font-size:16px}
.tabs{display:flex;gap:7px;overflow-x:auto}.tabs button{flex:1;min-height:42px}
.phone-game-bar{display:none}
#mobileOnlyNotice{display:none}
body.desktop-preview-blocked .wrap{display:none}
body.desktop-preview-blocked #mobileOnlyNotice{display:flex;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;text-align:center;padding:32px;font-size:18px;line-height:1.5;background:var(--bg);color:var(--txt)}
body.match-playing .wrap{padding-bottom:14px}
body.match-playing header,body.match-playing #liveScoreSetupPanel,body.match-playing #liveScore>.eyebrow,body.match-playing #liveScore>h1,body.match-playing #liveScore>.sub,body.match-playing #liveScore>.tabs,body.match-playing #training,body.match-playing #library,body.match-playing #stats,body.match-playing #settings{display:none!important}
body.match-playing #liveScore{display:block!important}
body.match-playing .phone-game-bar{display:flex;position:sticky;top:0;z-index:40;justify-content:space-between;align-items:center;padding:10px 0;background:var(--bg);border-bottom:1px solid var(--line)}
.phone-game-title{font-weight:900;letter-spacing:.08em;font-size:12px;color:var(--lime)}
#exitGameMode{border:1px solid var(--line);background:var(--panel);color:var(--txt);padding:8px 10px;border-radius:9px;font-size:12px}
body.match-playing #liveScore .grid{display:grid;grid-template-columns:1fr!important;gap:10px}
body.match-playing #liveScore .grid[style*="margin-top"]{margin-top:10px!important}
body.match-playing #liveScore .player .score{font-size:clamp(48px,16vw,68px)}
body.match-playing #liveScore .panel{padding:14px}
body.match-playing #liveScore .quick-scores button{min-height:52px;font-size:17px}
body.match-playing #liveScore .numeric-keypad button{min-height:58px;font-size:22px}
@media(max-width:380px){.wrap{padding-left:10px;padding-right:10px}nav button{padding:7px;font-size:10px}.panel{padding:11px}}


/* v2: normale website blijft vrij verticaal scrollbaar; alleen de actieve match krijgt de game-presentatie */
html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}
.wrap {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 7px;
}
.brand small {
  display: block;
  margin-top: 0;
  line-height: 1.35;
  letter-spacing: .18em;
  font-size: 8px;
}
.view {
  min-height: 0;
}
.view.active {
  display: block;
}
input, select, button {
  scroll-margin-top: 100px;
}
@media (max-width: 760px) {
  body:not(.match-playing) .wrap {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  body:not(.match-playing) header {
    position: sticky;
    top: 0;
  }
  body.match-playing .wrap {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  body.match-playing #liveScore {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
  }
  body.match-playing .phone-game-bar {
    position: sticky;
    top: 0;
  }
}


/* v3: compacte wedstrijdweergave met permanent zichtbaar numeriek toetsenbord */
@media (max-width: 760px) {
  body.match-playing {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }
  body.match-playing .wrap {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 12px max(8px, env(safe-area-inset-bottom));
  }
  body.match-playing .phone-game-bar {
    flex: 0 0 auto;
    padding: 6px 0;
  }
  body.match-playing #liveScore {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
  }
  body.match-playing #liveScore > .grid:first-of-type {
    display: block !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }
  body.match-playing #liveScore > .grid:first-of-type > .panel:last-child {
    padding: 7px 9px;
  }
  body.match-playing #liveScore .scoreboard {
    margin: 0 0 5px;
    gap: 6px;
  }
  body.match-playing #liveScore .player {
    padding: 6px 9px;
    border-radius: 10px;
  }
  body.match-playing #liveScore .player .name {
    font-size: 10px;
  }
  body.match-playing #liveScore .player .score {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1;
    margin: 2px 0;
  }
  body.match-playing #liveScore .player .meta {
    font-size: 9px;
  }
  body.match-playing #liveScore .turn-row,
  body.match-playing #liveScore .last-visit-row {
    display: inline-flex;
    width: 49%;
    margin: 0 !important;
    font-size: 11px;
    gap: 4px;
  }
  body.match-playing #liveScore > .grid:last-of-type {
    flex: 1 1 auto;
    min-height: 0;
    display: block !important;
    margin: 0 !important;
  }
  body.match-playing #liveScore > .grid:last-of-type > .panel:first-child {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    gap: 5px;
  }
  body.match-playing #liveScore > .grid:last-of-type > .panel:last-child {
    display: none !important;
  }
  body.match-playing #liveScore h2 {
    font-size: 15px;
    margin: 0;
  }
  body.match-playing #liveScore .score-help {
    display: none;
  }
  body.match-playing #liveScore .score-entry {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 6px;
  }
  body.match-playing #liveScore .score-display {
    padding: 5px 10px;
    margin: 0;
    flex: 0 0 auto;
  }
  body.match-playing #liveScore .score-display label {
    font-size: 10px;
    margin: 0;
  }
  body.match-playing #liveScore .score-display input {
    font-size: 28px;
    line-height: 1.05;
    padding: 0;
    height: 31px;
  }
  body.match-playing #liveScore .numeric-keypad {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  body.match-playing #liveScore .numeric-keypad button {
    min-height: 0;
    height: 100%;
    font-size: clamp(18px, 5vw, 23px);
    border-radius: 10px;
  }
  body.match-playing #liveScore .toggle {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
    padding: 2px 0;
  }
  body.match-playing #liveScore .actions {
    flex: 0 0 auto;
    margin: 0;
    gap: 5px;
  }
  body.match-playing #liveScore .actions .btn {
    padding: 9px 8px;
    font-size: 11px;
    min-height: 36px;
  }
  body.match-playing #liveScore #matchMessage {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.25;
  }
}
@media (max-width: 380px), (max-height: 720px) {
  body.match-playing #liveScore .player .score {
    font-size: 34px;
  }
  body.match-playing #liveScore > .grid:last-of-type > .panel:first-child {
    padding: 6px 8px;
  }
  body.match-playing #liveScore .numeric-keypad {
    gap: 4px;
  }
  body.match-playing #liveScore .toggle {
    font-size: 9px;
  }
  body.match-playing #liveScore .actions .btn {
    font-size: 10px;
    padding: 7px 5px;
  }
}


/* XLDARTS central mobile match layout */
.live-score-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.live-score-heading h2 { margin:0; }
.live-score-heading #legLabel {
  white-space:nowrap;
  text-align:right;
  font-weight:700;
}
.legs-scoreline {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  padding:4px 8px;
  border-radius:9px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}
.legs-scoreline strong {
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--lime);
  font-size:16px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.legs-scoreline i { font-style:normal; color:var(--muted); }
.actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.actions .btn {
  min-width:0;
  min-height:38px;
  padding:7px 5px;
  font-size:11px;
  line-height:1.15;
  white-space:normal;
}
.checkout-backdrop[hidden] { display:none !important; }
.checkout-backdrop {
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(5px);
}
.checkout-dialog {
  width:min(100%,360px);
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}
.checkout-kicker {
  color:var(--lime);
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
}
.checkout-dialog h2 { margin:5px 0 5px; font-size:21px; }
.checkout-dialog p { margin:7px 0 10px; color:var(--muted); font-size:13px; }
.finish-dart-options,.finish-type-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.finish-dart-options button,.finish-type-options button {
  min-width:0;
  min-height:42px;
  padding:8px 5px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--txt);
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}
.finish-dart-options button.selected,.finish-type-options button.selected {
  border-color:var(--lime);
  background:var(--lime);
  color:#10170f;
}
.finish-type-group { margin-top:12px; }
.finish-type-group[hidden] { display:none !important; }
.finish-type-options button { font-size:10px; }
.checkout-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:8px; margin-top:15px; }
.checkout-actions .btn { min-height:40px; padding:8px; font-size:12px; }
.checkout-actions .btn:disabled { opacity:.4; cursor:not-allowed; }
@media(max-width:760px) {
  body.match-playing #liveScore > .grid:first-of-type > .panel:last-child { padding:7px 9px; }
  body.match-playing #liveScore .live-score-heading { margin:0 0 5px; }
  body.match-playing #liveScore .live-score-heading h2 { font-size:14px; }
  body.match-playing #liveScore .live-score-heading #legLabel { font-size:10px; }
  body.match-playing #liveScore .legs-scoreline { margin:0 0 5px; padding:3px 6px; }
  body.match-playing #liveScore .legs-scoreline strong { font-size:14px; }
  body.match-playing #liveScore .actions {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }
  body.match-playing #liveScore .actions .btn {
    min-height:34px;
    padding:6px 3px;
    font-size:10px;
    line-height:1.1;
    white-space:normal;
  }
  body.match-playing #liveScore .score-entry { gap:5px; }
}
@media(max-width:360px) {
  body.match-playing #liveScore .actions .btn { font-size:9px; padding:5px 2px; }
  .checkout-dialog { padding:14px; }
}

/* Internal compatibility markup: hidden from the product UI, retained for legacy initializers. */
#internalLabTools { display:none !important; }


/* Definitive live-score page layout */
body.match-playing header,
body.match-playing footer,
body.match-playing #match { display:none !important; }
body.match-playing .wrap {
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:0 12px max(8px, env(safe-area-inset-bottom));
}
body.match-playing #liveScore.active {
  display:flex !important;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  gap:6px;
}
body.match-playing #liveScore .phone-game-bar {
  display:flex !important;
  flex:0 0 auto;
  position:relative;
  top:auto;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
}
body.match-playing #liveScore .live-score-layout {
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.match-playing #liveScore .live-score-top {
  display:block !important;
  flex:0 0 auto;
  margin:0 !important;
}
body.match-playing #liveScore .live-score-layout > .grid:last-of-type {
  flex:1 1 auto;
  min-height:0;
  display:block !important;
  margin:0 !important;
}
body.match-playing #liveScore .live-score-layout > .grid:last-of-type > .panel:first-child {
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:8px 10px;
  gap:5px;
}
body.match-playing #liveScore .live-score-layout > .grid:last-of-type > .panel:last-child {
  display:none !important;
}
body.match-playing #liveScore .numeric-keypad {
  flex:1 1 auto;
  min-height:0;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:5px;
}
body.match-playing #liveScore .numeric-keypad button {
  min-height:0;
  height:100%;
}
body.match-playing #liveScore .actions {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  flex:0 0 auto;
}

/* Audit correction: show the live scoreboard panel (the old rule hid it). */
@media (max-width: 760px) {
  body.match-playing #liveScore .live-score-top > .panel:first-child {
    display: block !important;
  }
}

/* Match completion and per-match statistics */
.match-finished-panel[hidden], .match-stats-panel[hidden] { display:none !important; }
.match-finished-panel {
  width:min(100%,760px); margin:12px auto; padding:clamp(18px,4vw,30px);
  border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,#17231b,#0d120f);
  color:var(--text); overflow:auto; flex:1 1 auto; min-height:0;
}
.finished-kicker { color:var(--lime); font-size:11px; font-weight:800; letter-spacing:.22em; }
.match-finished-panel h1 { margin:8px 0 4px; font-size:clamp(26px,7vw,40px); }
.finished-subtitle { color:var(--muted); margin:0 0 18px; }
.finished-score { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; }
.finished-player { display:flex; flex-direction:column; align-items:center; gap:5px; padding:18px 10px; border:1px solid var(--line); border-radius:14px; background:#1b2920; }
.finished-player.winner { border-color:var(--lime); box-shadow:inset 0 0 0 1px var(--lime); }
.finished-player span { font-size:13px; color:var(--muted); }
.finished-player strong { font-size:48px; line-height:1; color:var(--text); }
.finished-player.winner strong { color:var(--lime); }
.finished-player small { color:var(--muted); letter-spacing:.18em; }
.finished-actions { display:grid; gap:9px; }
.match-stats-panel { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.match-player-stats { margin:14px 0; padding:14px; background:#17231b; border:1px solid var(--line); border-radius:14px; }
.match-player-stats h3 { margin:0 0 12px; }
.match-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.match-stat-grid > div { display:flex; flex-direction:column; gap:3px; padding:10px; background:#202d24; border-radius:9px; }
.match-stat-grid strong { font-size:22px; color:var(--lime); }
.match-stat-grid span { font-size:11px; color:var(--muted); }
#voiceStatus { margin:6px 0 0; }
body.match-playing #liveScore.showing-result .phone-game-bar,
body.match-playing #liveScore.showing-result .live-score-layout { display:none !important; }
body.match-playing #liveScore.showing-result .match-finished-panel { display:block; }
@media(min-width:761px) { .match-finished-panel { margin:24px auto; } }

/* Home landing page — temporary brand treatment, easy to rebrand */
.home-hero{position:relative;min-height:390px;margin:18px 0 22px;border:1px solid #34463a;border-radius:22px;overflow:hidden;background-image:linear-gradient(90deg,rgba(7,13,9,.96) 0%,rgba(7,13,9,.78) 46%,rgba(7,13,9,.12) 100%),url('../assets_hero.png');background-size:cover;background-position:center 35%;display:flex;align-items:flex-end}
.home-hero-copy{position:relative;z-index:1;padding:25px 22px;max-width:360px}.home-hero-copy h1{font-size:clamp(38px,10vw,54px);margin:10px 0;line-height:.98;letter-spacing:-.055em}.home-hero-copy p{color:#d2ddd5;max-width:250px;margin:0 0 18px;font-size:14px}.home-primary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:190px;padding:14px 17px}.home-primary span{font-size:20px}.home-welcome{margin:8px 2px 14px}.home-welcome h2{font-size:21px;margin:4px 0}.home-welcome .sub{margin:0;font-size:13px}.home-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-tile{position:relative;min-height:132px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:15px;background:linear-gradient(145deg,#1b2921,#111813);border:1px solid var(--line);border-radius:16px;color:var(--txt);cursor:pointer}.home-tile:active{border-color:var(--lime);transform:scale(.99)}.home-tile strong{font-size:16px}.home-tile small{font-size:12px;color:var(--muted)}.tile-icon{font-size:25px;line-height:1;color:var(--lime);margin-bottom:6px}.tile-arrow{position:absolute;right:14px;top:13px;color:#8d9c91;font-size:17px}.home-footnote{text-align:center;color:#829187;font-size:9px;letter-spacing:.18em;margin:22px 0 8px}.home-footnote span{color:var(--lime)}
@media(max-width:760px){.home-hero{min-height:360px;background-position:58% center}.home-hero-copy{padding:20px 17px}.home-tiles{gap:9px}.home-tile{min-height:125px;padding:13px}}
@media(max-width:370px){.home-hero{min-height:330px}.home-hero-copy h1{font-size:38px}.home-tile strong{font-size:14px}}

/* Universal game progress ring: same visual identity, game-specific progress semantics. */
.score-ring-wrap{position:relative;width:clamp(112px,30vw,158px);height:clamp(112px,30vw,158px);margin:10px auto 8px;display:grid;place-items:center;isolation:isolate}
.score-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.score-ring circle{fill:none;stroke-width:5.5}
.score-ring .ring-track{stroke:#2b3b30}
.score-ring .ring-progress{stroke:var(--lime);stroke-linecap:round;stroke-dasharray:326.73;stroke-dashoffset:0;filter:drop-shadow(0 0 5px #c8f36a88);transition:stroke-dashoffset .55s ease,stroke .25s ease}
.player.active .score-ring .ring-progress{stroke:#d8ff83;filter:drop-shadow(0 0 8px #c8f36aaa)}
.player .score-ring-wrap .score{font-size:clamp(31px,8vw,48px);line-height:1;margin:0;letter-spacing:-.055em;z-index:1}
.score-ring-wrap[data-ring-state="finish"] .ring-progress{stroke:#f5ffce;stroke-width:7;filter:drop-shadow(0 0 11px #c8f36a)}
.score-ring-wrap[data-ring-state="won"] .ring-progress{stroke:#fff;stroke-width:7}
@media(max-width:760px){body.match-playing #liveScore .score-ring-wrap{width:clamp(94px,27vw,126px);height:clamp(94px,27vw,126px);margin:5px auto}.player .score-ring-wrap .score{font-size:clamp(29px,8vw,40px)}}

/* Broadcast-inspired three-column scoreboard: player / match legs / player */
.scoreboard{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(5px,2vw,14px);margin:14px 0}
.scoreboard .player{min-width:0;padding:14px 7px 12px;text-align:center}
.scoreboard .player .name{font-size:clamp(13px,3.5vw,18px);font-weight:900;letter-spacing:.045em;line-height:1.15;min-height:2.3em;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;color:#f4f7f2}
.scoreboard .player.active .name{color:var(--lime);text-shadow:0 0 12px #c8f36a55}
.scoreboard .player .meta{font-size:10px}
.scoreboard-center{min-width:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px 5px;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.first-to{font-size:clamp(9px,2.5vw,11px);font-weight:900;letter-spacing:.08em;color:var(--lime);white-space:nowrap}
.center-legs-label{margin-top:10px;font-size:9px;font-weight:800;letter-spacing:.16em;color:var(--muted)}
.center-legs-score{display:flex;align-items:center;gap:5px;margin:3px 0;color:#f5f8f3;font-size:clamp(22px,6vw,30px);font-weight:900;font-variant-numeric:tabular-nums}
.center-legs-score i{font-style:normal;color:var(--lime);font-size:.75em}
.center-current-leg{margin-top:7px;padding:4px 7px;border-radius:6px;background:#243329;color:#d7ff8b;font-size:9px;font-weight:900;letter-spacing:.08em;white-space:nowrap}
@media(max-width:390px){
 .scoreboard{gap:4px}
 .scoreboard .player{padding:10px 3px}
 .scoreboard-center{min-width:62px;padding:7px 3px}
 .scoreboard .player .name{font-size:12px}
 .scoreboard .score-ring-wrap{width:clamp(82px,24vw,100px);height:clamp(82px,24vw,100px)}
}

/* Version 7: balanced broadcast scoreboard */
.scoreboard{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(86px,.58fr) minmax(0,1fr);
 align-items:center;
 gap:clamp(3px,1.2vw,12px);
 margin:14px 0 12px;
}
.scoreboard .player{
 min-width:0;
 padding:10px 4px 9px;
 border-radius:14px;
 text-align:center;
 background:linear-gradient(180deg,#142119 0%,#0b120e 100%);
 border:1px solid #304337;
 box-shadow:none;
}
.scoreboard .player.active{
 border:1.5px solid var(--lime);
 box-shadow:0 0 13px #c8f36a22,inset 0 0 0 1px #c8f36a22;
}
.scoreboard .player .name{
 min-height:2.2em;
 display:flex;
 align-items:center;
 justify-content:center;
 text-align:center;
 font-size:clamp(11px,3.1vw,16px);
 line-height:1.12;
 font-weight:950;
 letter-spacing:.04em;
 color:#f4f7f2;
 overflow-wrap:anywhere;
}
.scoreboard .player.active .name{color:var(--lime)}
.scoreboard .score-ring-wrap{
 width:clamp(82px,22vw,126px);
 height:clamp(82px,22vw,126px);
 margin:7px auto 6px;
}
.scoreboard .player .score{
 font-size:clamp(29px,7vw,48px);
 margin:0;
 line-height:1;
}
.scoreboard .player .meta{font-size:9px;line-height:1.2}
.scoreboard-center{
 min-width:0;
 padding:10px 2px;
 border-left:1px solid #35483a;
 border-right:1px solid #35483a;
}
.first-to{font-size:clamp(8px,2.3vw,11px);letter-spacing:.04em}
.center-legs-label{margin-top:13px;font-size:9px;letter-spacing:.14em}
.center-legs-score{gap:3px;margin:5px 0;font-size:clamp(20px,5.3vw,29px)}
.center-current-leg{font-size:8px;padding:4px 6px}
@media(max-width:390px){
 .scoreboard{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);gap:3px}
 .scoreboard .player{padding:8px 2px}
 .scoreboard .score-ring-wrap{width:78px;height:78px}
 .scoreboard .player .score{font-size:27px}
 .scoreboard .player .name{font-size:11px}
 .scoreboard-center{padding:8px 1px}
}

/* Version 8: lock the three scoreboard columns into the intended order */
.live-score-heading #legLabel{display:none !important}
.live-score-heading{display:flex;align-items:center;justify-content:flex-start}
.scoreboard{
 display:grid !important;
 grid-template-columns:minmax(0,1fr) clamp(68px,21vw,100px) minmax(0,1fr) !important;
 grid-template-rows:auto !important;
 align-items:center !important;
 justify-items:stretch !important;
 width:100%;
}
.scoreboard > #playerCard0{grid-column:1 !important;grid-row:1 !important}
.scoreboard > .scoreboard-center{grid-column:2 !important;grid-row:1 !important;align-self:center;justify-self:stretch}
.scoreboard > #playerCard1{grid-column:3 !important;grid-row:1 !important}
.scoreboard .player{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center}
.scoreboard .player .name{width:100%;text-align:center;justify-content:center}
.scoreboard .player .score-ring-wrap{justify-self:center;align-self:center;margin-left:auto !important;margin-right:auto !important;flex:0 0 auto}
.scoreboard .player .score-ring{left:0;top:0;width:100%;height:100%}
@media(max-width:390px){
 .scoreboard{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr) !important;gap:4px !important}
 .scoreboard .player{padding-left:2px;padding-right:2px}
 .scoreboard .player .score-ring-wrap{width:76px;height:76px}
}

/* Version 9: clean match header, no duplicate titles */
.phone-game-bar{display:flex;justify-content:flex-end;align-items:center;min-height:48px;padding-top:4px;padding-bottom:8px}
.phone-game-title{display:none !important}
.live-score-heading{display:none !important}
.live-score-layout{padding-top:0 !important}

/* Hidden compatibility value: app logic still updates the current leg label */
.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}

/* Around the Clock standalone module */
.clock-game-view{min-height:100dvh;padding:12px 14px 24px;background:var(--bg,#080d0b)}
.clock-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.clock-topbar .btn{font-size:12px;padding:9px 12px}
.clock-setup{max-width:620px;margin:5vh auto;padding:22px}
.clock-setup h1{font-size:clamp(30px,8vw,48px);margin:8px 0}
.clock-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.clock-live-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 16px}
.clock-live-head h1{font-size:clamp(25px,6vw,38px);margin:3px 0}
.clock-turn-kpi{background:rgba(190,255,0,.1);border:1px solid rgba(190,255,0,.35);border-radius:14px;padding:8px 15px;text-align:center;min-width:76px}
.clock-turn-kpi strong{display:block;font-size:30px;color:var(--lime)}
.clock-turn-kpi span{font-size:9px;letter-spacing:.1em;color:var(--muted)}
.clock-player-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
.clock-player-chip{background:var(--panel,#121a16);border:1px solid var(--line,#28342d);border-radius:12px;padding:10px;display:grid;gap:3px;min-width:0}
.clock-player-chip.active{border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}
.clock-player-chip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.clock-player-chip span{font-size:21px;font-weight:800;color:var(--lime)}
.clock-player-chip small{font-size:10px;color:var(--muted)}
.clock-board-panel{padding:14px}
.clock-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.clock-board-head strong{display:block;font-size:38px;color:var(--lime);line-height:1.1}
.clock-hint{font-size:11px;line-height:1.4;color:var(--muted);max-width:180px}
.clock-number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.clock-number{position:relative;min-height:52px;border:1px solid var(--line);border-radius:11px;background:var(--surface,#18221c);color:var(--text);font-size:20px;font-weight:800}
.clock-number.current{background:var(--lime);color:#172000;border-color:var(--lime);box-shadow:0 0 0 2px rgba(190,255,0,.18)}
.clock-number.done{background:rgba(190,255,0,.13);color:var(--lime);border-color:rgba(190,255,0,.35)}
.clock-number span{display:block;font-size:10px}
.clock-bull{width:100%;margin-top:8px;min-height:50px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);font-weight:900;letter-spacing:.12em}
.clock-bull:disabled{opacity:.5}.clock-bull.done{background:var(--lime);color:#172000}
.clock-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.clock-entry-actions .btn{padding:10px}
.clock-winner{text-align:center;padding:26px 10px}
.clock-winner h1{font-size:clamp(30px,8vw,48px);color:var(--lime);margin:8px}
@media(max-width:380px){.clock-number{min-height:44px;font-size:18px}.clock-board-panel{padding:10px}.clock-name-fields{grid-template-columns:1fr}}

/* Training list and Shanghai module */
.training-list{display:grid;gap:12px;margin:18px 0 26px}
.training-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px;background:linear-gradient(145deg,#17221b,#111713);border:1px solid var(--line);border-radius:17px}
.training-card-copy{min-width:0}.training-card h2{margin:7px 0 5px;font-size:19px}.training-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.training-card .btn{flex:0 0 auto;white-space:nowrap}
.shanghai-round-panel{display:flex;justify-content:space-around;align-items:center;text-align:center;margin:12px 0}
.shanghai-round-panel strong{display:block;font-size:42px;line-height:1.15;color:var(--lime);font-weight:950}
.shanghai-hit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
.shanghai-hit{min-height:76px;border:1px solid #3b5141;border-radius:13px;background:#19271e;color:var(--txt);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.shanghai-hit:active{border-color:var(--lime);background:#263b2c}
.shanghai-hit strong{font-size:15px;letter-spacing:.06em}.shanghai-hit span{font-size:12px;color:var(--muted)}
.shanghai-hit.miss{background:#251d1b;border-color:#51403a}
.shanghai-player-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#101813;margin:7px 0}
.shanghai-player-row.active{border-color:var(--lime);box-shadow:inset 0 0 0 1px #c8f36a33}
.shanghai-player-row strong{font-size:20px;color:var(--lime)}
.shanghai-round-mark{font-size:10px;color:var(--muted)}
.shanghai-score-table{display:grid;gap:6px}
@media(max-width:420px){.training-card{align-items:flex-start;flex-direction:column}.training-card .btn{width:100%}}

/* 121 Checkout — standalone mobile-first cooperative score screen */
.checkout121-view{padding:10px 0 24px}
.checkout121-topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 12px}
.checkout121-topbar .eyebrow{font-size:9px;white-space:nowrap}
.checkout121-topbar .btn{font-size:11px;padding:8px 10px}
.checkout121-setup{margin-top:12px}
.checkout121-mode-grid{display:grid;gap:10px;margin:18px 0}
.checkout121-mode{display:flex;flex-direction:column;gap:6px;text-align:left;padding:15px;border:1px solid var(--line);border-radius:14px;background:#101813;color:var(--txt);cursor:pointer}
.checkout121-mode strong{font-size:15px}.checkout121-mode span{font-size:12px;line-height:1.4;color:var(--muted)}
.checkout121-mode.selected{border-color:var(--lime);box-shadow:inset 0 0 0 1px #c8f36a55;background:#1a291d}
.checkout121-setup>.btn{width:100%;margin-top:8px}
.checkout121-board-panel{padding:12px 10px 10px}
.checkout121-board-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.checkout121-mode-label{font-size:10px;font-weight:850;letter-spacing:.1em;color:#dce8de;margin-top:2px}
.checkout121-turn-chip{border:1px solid #3b5140;background:#1a2920;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:900;color:var(--lime);white-space:nowrap}
.checkout121-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,.8fr);align-items:center;gap:8px;margin:10px 0 4px}
.checkout121-player{min-width:0;text-align:center;padding:8px 5px;border:1px solid var(--lime);border-radius:14px;background:linear-gradient(180deg,#142119,#0b120e);box-shadow:0 0 13px #c8f36a22}
.checkout121-player-name{font-size:11px;font-weight:950;letter-spacing:.12em;color:var(--lime)}
.checkout121-ring.score-ring-wrap{width:clamp(112px,34vw,150px);height:clamp(112px,34vw,150px);margin:4px auto}
.checkout121-ring .score{font-size:clamp(36px,10vw,52px);font-weight:950;letter-spacing:-.055em;line-height:1;color:#fff;font-variant-numeric:tabular-nums}
.checkout121-ring-caption{font-size:9px;font-weight:850;letter-spacing:.14em;color:var(--muted)}
.checkout121-center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:8px 4px;border-left:1px solid var(--line)}
.checkout121-center>strong{font-size:clamp(30px,9vw,44px);line-height:1.05;color:var(--lime);font-weight:950;font-variant-numeric:tabular-nums}
.checkout121-center>span{font-size:8px;color:var(--muted);letter-spacing:.13em;font-weight:850}
.checkout121-dart-progress{display:flex;flex-direction:column;gap:2px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);width:100%}
.checkout121-dart-progress b{font-size:18px;color:#fff;font-variant-numeric:tabular-nums}
.checkout121-dart-progress span{font-size:8px;letter-spacing:.1em;color:var(--muted);font-weight:850}
.checkout121-progress-track{height:7px;background:#2b3b30;border-radius:999px;overflow:hidden;margin:8px 2px}
.checkout121-progress-track>div{height:100%;width:0;background:var(--lime);border-radius:999px;box-shadow:0 0 8px #c8f36a88;transition:width .25s ease}
.checkout121-visit-meta{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:var(--muted);font-weight:850;letter-spacing:.06em}
.checkout121-visit-meta b{color:var(--txt)}
.checkout121-entry-panel{margin-top:10px;padding:12px}
.checkout121-entry-panel .score-display{margin-bottom:8px}
.checkout121-entry-panel .score-display input{font-size:32px}
.checkout121-keypad{gap:6px}
.checkout121-keypad button{min-height:48px;font-size:20px}
.checkout121-actions{display:grid;grid-template-columns:1.15fr .85fr 1fr;gap:6px;margin-top:9px}
.checkout121-actions .btn{font-size:11px;padding:10px 5px;min-height:43px;white-space:normal}
.checkout121-entry-panel .notice{margin:9px 0;font-size:12px}
.checkout121-pause{width:100%;margin-top:2px;font-size:11px}
.checkout121-stop{width:100%;margin-top:7px;font-size:11px}
.checkout121-result{text-align:center;margin-top:20px;padding:22px 14px}
.checkout121-result h1{font-size:30px;margin:8px 0 18px}
.checkout121-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0}
.checkout121-result-grid>div{display:flex;flex-direction:column;gap:3px;padding:13px 7px;background:#101813;border:1px solid var(--line);border-radius:12px}
.checkout121-result-grid strong{font-size:27px;color:var(--lime);font-variant-numeric:tabular-nums}
.checkout121-result-grid span{font-size:9px;color:var(--muted);font-weight:850;letter-spacing:.08em}
.checkout121-result>.btn{width:100%;margin-top:8px}
@media(max-width:370px){.checkout121-ring.score-ring-wrap{width:104px;height:104px}.checkout121-actions{gap:4px}.checkout121-actions .btn{font-size:10px}}
body.checkout121-playing{overflow:hidden;height:100vh;height:100dvh}
body.checkout121-playing .wrap{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:0 12px max(8px,env(safe-area-inset-bottom))}
body.checkout121-playing header,body.checkout121-playing footer,body.checkout121-playing #home,body.checkout121-playing #match,body.checkout121-playing #liveScore,body.checkout121-playing #training,body.checkout121-playing #clockGame,body.checkout121-playing #shanghaiGame,body.checkout121-playing #bobs27Game,body.checkout121-playing #library,body.checkout121-playing #stats,body.checkout121-playing #settings{display:none!important}
body.checkout121-playing #checkout121Game{display:flex!important;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden;padding:4px 0 0;gap:7px}
body.checkout121-playing .checkout121-topbar{flex:0 0 auto;margin:0;padding:4px 0}
body.checkout121-playing #checkout121Play{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;gap:7px}
body.checkout121-playing .checkout121-board-panel{flex:0 0 auto;padding:8px 9px}
body.checkout121-playing .checkout121-entry-panel{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:8px 9px;gap:5px;margin:0}
body.checkout121-playing .checkout121-entry-panel .score-display{flex:0 0 auto;padding:7px 10px;margin:0}
body.checkout121-playing .checkout121-entry-panel .score-display input{font-size:28px}
body.checkout121-playing .checkout121-keypad{flex:1 1 auto;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr));gap:5px}
body.checkout121-playing .checkout121-keypad button{min-height:0;height:100%;font-size:21px}
body.checkout121-playing .checkout121-actions{flex:0 0 auto;margin:0;gap:5px}
body.checkout121-playing .checkout121-actions .btn{min-height:39px;padding:7px 3px}
body.checkout121-playing .checkout121-entry-panel .notice{flex:0 0 auto;margin:0;padding:7px 9px;font-size:10px;line-height:1.25;max-height:42px;overflow:auto}
body.checkout121-playing .checkout121-pause,body.checkout121-playing .checkout121-stop{flex:0 0 auto;min-height:32px;padding:5px;font-size:10px;margin:0}
body.checkout121-playing .checkout121-scoreboard{margin:6px 0 2px}
body.checkout121-playing .checkout121-ring.score-ring-wrap{width:clamp(96px,29vw,126px);height:clamp(96px,29vw,126px);margin:2px auto}
body.checkout121-playing .checkout121-ring .score{font-size:clamp(32px,9vw,42px)}
body.checkout121-playing .checkout121-center>strong{font-size:34px}
body.checkout121-playing .checkout121-dart-progress{margin-top:5px;padding-top:5px}
body.checkout121-playing .checkout121-progress-track{margin:5px 2px}
body.checkout121-playing .checkout121-visit-meta{font-size:8px}

/* XLDARTS brand lockup and compact favicon mark */
.brand {
  text-decoration: none;
  color: var(--txt);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 5px;
  flex-shrink: 0;
}
.brand-lockup { display:flex; align-items:center; gap:7px; }
.brand-lockup img { width:34px; height:34px; display:block; }
.brand-lockup b { color:var(--lime); font-size:21px; font-weight:950; letter-spacing:.045em; }
.brand small { display:block; margin:0 0 0 41px; color:var(--muted); font-size:7px; line-height:1.2; letter-spacing:.15em; white-space:nowrap; }
@media(max-width:390px) {
  .brand-lockup img { width:30px; height:30px; }
  .brand-lockup b { font-size:19px; }
  .brand small { margin-left:37px; font-size:6px; }
}
