:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#f2f6ff;background:#061024;--blue:#0b63d5;--red:#d91624;--stroke:#31558e;--muted:#b6c9e6;--gold:#fcd65e;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 85% 55% at 50% 0,#093d92 0,#091b43 40%,#040811 100%);overscroll-behavior-y:contain}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;border:1px solid #268af7;color:#fff;border-radius:11px;font-weight:800;min-height:48px;padding:11px 16px;background:linear-gradient(#1278ec,#074092);box-shadow:inset 0 1px #ffffff30}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}button:hover:not(:disabled){filter:brightness(1.13)}.outline{background:#091b39;border-color:#466ca9}.red-btn{background:linear-gradient(#ed2630,#850610);border-color:#fb5965}.blue-btn{background:linear-gradient(#217efd,#0747a8);border-color:#6eb5ff}.submit-btn{background:linear-gradient(#20c949,#087e2d);border:2px solid #66ec8a;font-size:clamp(18px,2vw,25px);font-weight:950}.mini{min-height:38px;padding:7px 10px;font-size:13px}.danger-text{color:#ffb5b8;border-color:#b85360}input,select{background:#061225;color:#fff;border:1px solid #507db8;border-radius:10px;padding:12px;min-height:48px;width:100%}input::placeholder{color:#91a5ca}input[readonly]{cursor:default}label{display:flex;flex-direction:column;gap:7px;font-weight:750;font-size:14px}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.55}.hidden{display:none!important}h1,h2,h3,h4,p{margin-top:0}h2{font-size:clamp(23px,2.8vw,35px)}h3{font-size:19px;margin-bottom:16px}h4{font-size:15px;margin-bottom:12px}.site-header{max-width:1400px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 20px;background:linear-gradient(90deg,#061636,#072e77cc,#071636);border-bottom:3px solid #116de0}.brand{display:flex;align-items:center;gap:15px;min-width:0}.brand img{width:80px;height:80px;object-fit:contain;border-radius:15px}.brand-eyebrow{color:#ff7780;font-size:12px;font-weight:950;letter-spacing:.15em}.brand h1{font-size:clamp(21px,3vw,34px);letter-spacing:.03em;margin:0}.brand p{font-size:13px;margin:1px 0;color:#dae6ff}.header-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.offline-pill{border:1px solid #1c9a75;background:#0c3c38;color:#7cf4be;border-radius:30px;font-weight:800;font-size:12px;padding:9px 12px}.nav-bar{max-width:1400px;margin:0 auto;padding:10px 20px;display:flex;gap:8px}.nav-bar button{flex:1;background:#0a204a;border-color:#224a86;min-height:45px}.nav-bar button.nav-active{background:linear-gradient(#bd1323,#780715);border-color:#fb3848}main{max-width:1360px;margin:auto;padding:8px 22px 36px}.view{animation:appear .15s ease-out}@keyframes appear{from{opacity:.75;transform:translateY(3px)}to{opacity:1;transform:none}}.panel{background:linear-gradient(152deg,#101f3b,#081428);border:1px solid var(--stroke);border-radius:15px;padding:19px;margin:12px 0;box-shadow:0 12px 30px #0003}.hero-line{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3768a8;padding:12px 1px 14px;gap:16px}.hero-line h2{margin:0 0 7px}.hero-line h2 span{color:#f65763}.hero-line p{margin:0;color:#d4e1fb;font-size:14px}.eyebrow{color:#ff6976;font-size:12px;letter-spacing:.14em;font-weight:950;margin-bottom:4px}.hero-chip{font-weight:950;color:var(--gold);background:#142044;border:1px solid #5c6ab0;border-radius:30px;padding:12px 16px;white-space:nowrap}.overview-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.overview-summary{display:flex;flex-direction:column;align-items:stretch}.night-total{display:grid;grid-template-columns:1fr auto 1fr;text-align:center;align-items:center;margin:auto 0;gap:8px}.night-total div:not(.colon){display:flex;flex-direction:column;gap:8px;min-width:0}.night-total strong{font-size:64px;line-height:1}.night-total span{color:#d0ddf5;overflow-wrap:anywhere;font-size:13px}.night-total .colon{font-size:38px;color:#ff6a78}.overview-summary>#newNightButton{margin-top:auto}.section-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.section-top h3{margin:0}.matches-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.match-tile{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:11px;min-height:95px;padding:13px 14px;background:linear-gradient(115deg,#101a35,#10244d);border:1px solid #3a67ac;border-radius:12px;color:white;text-align:left}.match-tile.active{border-color:#ffd75d;box-shadow:inset 0 0 0 1px #ffd75d}.match-tile.done{background:linear-gradient(105deg,#0e312f,#112e4b)}.tile-num{font-size:26px;font-weight:1000;background:#07152a;border:1px solid #4067a4;border-radius:10px;text-align:center;padding:12px 3px}.tile-info{min-width:0}.tile-kind{color:#99c4ff;font-weight:850;font-size:13px}.tile-names{font-size:15px;margin:6px 0 3px;line-height:1.35;overflow-wrap:anywhere}.tile-status{font-size:12px;color:#bbcef1}.tile-score{font-size:27px;font-weight:1000;white-space:nowrap}.match-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:8px 0 4px}.match-indicator{text-align:center;font-size:clamp(19px,2.3vw,27px);font-weight:1000}.match-switch{display:flex;gap:7px}.tag{background:#123f7b;color:#ebf5ff;border:1px solid #477dbc;border-radius:100px;padding:7px 11px;font-size:12px;font-weight:800}.type-field{max-width:310px}.sides-setup{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.setup-team{padding:15px;background:#080d1e;border:2px solid #ad2230;border-radius:12px}.setup-team.blue-side{border-color:#187bec}.setup-team h4{font-size:17px;margin:0 0 12px}.setup-team label+label{margin-top:10px}.choose-starter{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:17px;padding:15px;background:#0b2345;border:1px solid #4477b1;border-radius:12px}.choose-starter p{margin:5px 0 0}.bull-buttons{display:flex;gap:9px;flex-wrap:wrap}.bull-buttons button{min-width:160px}.setup-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.game-banner{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 10px;background:linear-gradient(90deg,#b61022,#630914 48%,#093c97 52%,#0b65d6);padding:12px 18px;border-radius:12px;font-weight:900}.game-banner strong{font-size:clamp(17px,2.4vw,22px)}.game-banner div{font-size:14px}.score-panels{display:grid;grid-template-columns:1fr 1fr;gap:13px}.score-card{min-width:0;min-height:202px;padding:13px;text-align:center;border:2px solid #a41826;border-radius:15px;background:linear-gradient(145deg,#490914,#1e0b15 55%,#08142b);position:relative}.score-card.card-blue{border-color:#146be8;background:linear-gradient(145deg,#0a4a9d,#091d48 52%,#081428)}.score-card.current{outline:3px solid var(--gold);outline-offset:-6px;box-shadow:0 0 30px #ffc82a44}.score-card.current:after{content:'AAN DE BEURT';position:absolute;right:10px;top:10px;background:#f4c442;color:#1f1706;border-radius:6px;padding:4px 6px;font-size:11px;font-weight:1000}.side-caption{color:#d3e5ff;font-weight:850;letter-spacing:.05em;font-size:12px;max-width:75%;margin:auto;overflow-wrap:anywhere}.player-big{font-size:clamp(16px,2.3vw,27px);font-weight:950;margin:10px auto 2px;min-height:30px;overflow-wrap:anywhere;line-height:1.13}.score-big{font-size:clamp(62px,10vw,118px);line-height:1.05;font-weight:1000;font-variant-numeric:tabular-nums;text-shadow:0 5px 16px #0009}.legs-big{font-weight:850;font-size:17px;color:#dce7ff}.turn-banner{background:linear-gradient(#ffdb59,#dfa113);border:2px solid #ffe684;border-radius:11px;color:#160c02;text-align:center;padding:11px;font-size:clamp(18px,2.5vw,24px);font-weight:1000;margin:13px 0}.entry-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.entry-top h3{margin:0}.entry-switch{background:#08162c;border:1px solid #3b67a8;border-radius:10px;padding:4px;display:flex;gap:4px}.entry-switch button{min-height:39px;font-size:13px;padding:8px 13px;background:transparent;border:0}.entry-switch button.mode-active{background:#0c65c4;border:1px solid #56a2ff}.input-layout{display:grid;grid-template-columns:1fr minmax(210px,.55fr);gap:13px}.entry-panel{padding:15px}.field-caption{display:block;font-size:15px;font-weight:850;color:#d7e8ff;margin-bottom:9px}.entry-panel input{font-size:42px;font-weight:1000;text-align:center;background:#fff;color:#182341;height:70px;border:3px solid #7fb2ff;letter-spacing:.04em}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:10px}.number-pad button{font-size:clamp(23px,3.2vw,39px);min-height:61px;padding:6px;background:#102e65;border-color:#407bca}.number-pad .red-btn{background:#a9111d;font-size:clamp(16px,2vw,24px)}.number-pad .outline{background:#192040}.score-options{display:flex;flex-direction:column;gap:12px}.score-options h4{margin:0}.three-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.three-buttons button{font-size:24px;padding:8px}.three-buttons button.chosen,.multiplier-row button.chosen{background:linear-gradient(#f12832,#980716);border-color:#ff7682;outline:1px solid #ffd6d8}.check-wrap{display:flex;flex-direction:row;align-items:center;gap:11px;padding:13px;background:#0b2144;border:1px solid #385e9e;border-radius:9px;cursor:pointer}.check-wrap input{width:26px;height:26px;flex-shrink:0;accent-color:#f43e49}.check-wrap span{display:flex;flex-direction:column;gap:4px}.check-wrap small{color:#b7cae8;font-size:12px}.turn-preview{background:#08192d;border-radius:9px;padding:13px 11px;color:#ebf1ff;font-weight:750;flex:1;min-height:65px}.turn-preview.good{color:#7dffab}.turn-preview.warning{color:#ffb1b1}.score-options .submit-btn{min-height:67px}.dart-entry-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dart-chips{display:flex;flex-wrap:wrap;gap:8px}.dart-chips span{display:inline-flex;align-items:center;justify-content:center;border:1px solid #72aeef;border-radius:9px;padding:8px 13px;background:#123766;font-size:18px;font-weight:1000;min-height:43px}.dart-chips .empty-darts{color:#abbfdd;font-size:13px}.sum-badge{display:inline-block;background:#f9d34f;color:#191307;border-radius:8px;padding:7px 10px;font-size:17px;font-weight:1000}.multiplier-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.multiplier-row button{font-size:19px}.dart-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.dart-grid button{font-size:clamp(19px,2.3vw,30px);min-height:62px;background:#092955}.dart-grid .special-dart{font-size:16px;background:#143c76}.dart-actions{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:10px;margin-top:12px}.dart-actions button{min-height:60px}.history-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;border-top:1px solid #3b5f97;padding-top:12px}.history-bar h3{margin:0 0 2px}.visit-list{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 15px}.visit{background:#101f3d;border:1px solid #385a8d;padding:10px;border-radius:9px;font-size:13px}.visit strong{color:#fff}.visit .bust{color:#ff8f96}.visit .out{color:#81ffa9}.finished-notice{text-align:center;border-color:#39b889}.finished-notice .trophy{font-size:44px}.finished-notice h3{font-size:30px;margin-bottom:7px}.finished-notice .submit-btn{max-width:480px;width:100%}.result-rows{display:grid;gap:8px;margin-top:16px}.result-row{display:grid;grid-template-columns:45px 125px 1fr auto;gap:13px;align-items:center;padding:12px;background:#101f3c;border:1px solid #315c94;border-radius:10px}.result-row .result-number{font-size:22px;font-weight:1000}.result-row .result-score{font-weight:1000;font-size:24px}.backup-buttons{display:flex;gap:10px;flex-wrap:wrap}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#063a29;border:2px solid #26c57d;color:#fff;box-shadow:0 15px 45px #000a;padding:12px 21px;border-radius:11px;max-width:min(600px,calc(100% - 20px));font-size:16px;font-weight:850;text-align:center;z-index:50}.toast.error{background:#5b0b1b;border-color:#ff637c}dialog{background:#101b35;color:white;border:2px solid #3872bf;border-radius:17px;max-width:min(530px,calc(100% - 25px));padding:24px}dialog::backdrop{background:#0009}dialog p{line-height:1.5}@media(max-width:900px){.site-header{padding:9px 14px}.brand img{width:65px;height:65px}.overview-grid{grid-template-columns:1fr}.input-layout{grid-template-columns:1fr minmax(190px,.48fr)}.score-big{font-size:clamp(52px,10vw,89px)}.dart-grid{grid-template-columns:repeat(6,1fr)}.choose-starter{flex-direction:column;align-items:stretch}}@media(max-width:650px){main{padding:7px 12px 28px}.site-header{flex-wrap:wrap}.header-actions{justify-content:flex-start}.brand h1{font-size:21px}.brand p{font-size:12px}.nav-bar{padding:8px 12px}.nav-bar button{font-size:12px;padding:8px 4px}.hero-chip{display:none}.form-grid,.matches-grid,.sides-setup,.input-layout{grid-template-columns:1fr}.match-tile{min-height:80px}.score-card{min-height:160px;padding:12px 6px}.score-card.current:after{display:none}.player-big{font-size:16px}.score-big{font-size:clamp(45px,13vw,75px)}.game-banner{flex-direction:column;align-items:flex-start}.entry-top{flex-wrap:wrap}.number-pad button{min-height:62px}.score-options{display:grid;grid-template-columns:1fr 1fr}.score-options h4{grid-column:1/-1}.score-options .submit-btn{grid-column:1/-1}.dart-grid{grid-template-columns:repeat(4,1fr)}.dart-actions{grid-template-columns:1fr 1fr}.dart-actions .submit-btn{grid-column:1/-1}.result-row{grid-template-columns:28px 1fr auto}.result-row .result-type{display:none}.match-toolbar{grid-template-columns:auto 1fr auto;gap:5px}.match-toolbar button{padding:7px 9px;font-size:12px}.match-indicator{font-size:17px}.bull-buttons button{min-width:0;flex:1}.history-bar{align-items:stretch;flex-direction:column}}@media(orientation:landscape) and (max-height:650px){.site-header .brand img{width:58px;height:58px}.brand p{display:none}.site-header{padding-top:5px;padding-bottom:5px}.nav-bar{padding-top:5px;padding-bottom:5px}main{padding-top:3px}.score-card{min-height:168px}.score-big{font-size:clamp(52px,9vw,100px)}.turn-banner{margin:7px 0;padding:7px}}

/* Op een 10,1 inch-tablet liggend blijven grote toetsen en OPSLAAN samen zichtbaar. */
@media (orientation:landscape) and (max-height:850px) and (min-width:850px){
 body.scoring-mode .site-header{padding:3px 12px;min-height:54px}
 body.scoring-mode .brand img{width:50px;height:50px}
 body.scoring-mode .brand h1{font-size:20px}
 body.scoring-mode .brand-eyebrow,body.scoring-mode .brand p{display:none}
 body.scoring-mode .header-actions .mini{min-height:33px;padding:5px 8px}
 body.scoring-mode .nav-bar{padding:4px 12px}
 body.scoring-mode .nav-bar button{min-height:34px;padding:6px 8px}
 body.scoring-mode main{padding:0 14px 18px}
 body.scoring-mode .match-toolbar{margin:3px 0;min-height:34px}
 body.scoring-mode .match-toolbar button{min-height:33px;padding:5px 10px}
 body.scoring-mode .match-indicator{font-size:20px}
 body.scoring-mode .game-banner{padding:6px 12px;margin:4px 0 7px}
 body.scoring-mode .game-banner strong{font-size:18px}
 body.scoring-mode .score-panels{gap:9px}
 body.scoring-mode .score-card{min-height:139px;padding:6px 8px}
 body.scoring-mode .player-big{font-size:18px;margin:2px auto 0;min-height:22px}
 body.scoring-mode .score-big{font-size:clamp(58px,7vw,78px);line-height:1}
 body.scoring-mode .legs-big{font-size:13px}
 body.scoring-mode .turn-banner{margin:6px 0;padding:6px;font-size:20px}
 body.scoring-mode .entry-top{margin-bottom:3px}
 body.scoring-mode .entry-top h3{font-size:17px}
 body.scoring-mode .entry-switch button{min-height:30px;padding:4px 10px}
 body.scoring-mode .input-layout{gap:9px}
 body.scoring-mode .input-layout .panel{margin:4px 0;padding:10px}
 body.scoring-mode .entry-panel input{height:50px;min-height:50px;font-size:30px}
 body.scoring-mode .field-caption{font-size:13px;margin-bottom:5px}
 body.scoring-mode .number-pad{gap:5px;margin-top:6px}
 body.scoring-mode .number-pad button{min-height:44px;font-size:26px;padding:4px}
 body.scoring-mode .number-pad .red-btn{font-size:18px}
 body.scoring-mode .score-options{gap:7px}
 body.scoring-mode .three-buttons button{min-height:40px;font-size:18px}
 body.scoring-mode .check-wrap{padding:7px}
 body.scoring-mode .check-wrap small{font-size:10px}
 body.scoring-mode .turn-preview{padding:8px;min-height:42px;font-size:13px}
 body.scoring-mode .score-options .submit-btn{min-height:53px;font-size:20px}
 body.scoring-mode .history-bar{margin-top:7px;padding-top:8px}
 body.scoring-mode .history-bar h3{font-size:14px}
 body.scoring-mode .history-bar button{min-height:37px}
 body.scoring-mode #dartEntry{padding:10px}
 body.scoring-mode .dart-grid button{min-height:46px}
 body.scoring-mode .multiplier-row{margin:8px 0}
 body.scoring-mode .dart-actions button{min-height:44px}
}


/* V2: overzichtskaarten met aparte knoppen + rustiger scorebord. */
.matches-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.match-card{background:linear-gradient(115deg,#101a35,#10244d);border:1px solid #3a67ac;border-radius:12px;padding:13px 14px;display:flex;flex-direction:column;gap:12px;min-height:132px;box-shadow:0 10px 24px #0003}
.match-card.active{border-color:#ffd75d;box-shadow:inset 0 0 0 1px #ffd75d,0 10px 24px #0003}
.match-card.done{background:linear-gradient(105deg,#0e312f,#112e4b)}
.match-card-top{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:11px}
.match-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.match-actions-row button{min-height:44px}
.control-footer{display:flex;justify-content:flex-end;margin:12px 0 0}
.control-footer button{min-height:46px}
.summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.summary-status{display:inline-block;background:#13284f;border:1px solid #4a71ab;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:850;margin-bottom:14px}
.summary-overall{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.summary-stat{background:#0d1d39;border:1px solid #35598d;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px}
.summary-stat span{color:#d6e6ff;font-weight:800;overflow-wrap:anywhere}
.summary-stat strong{font-size:36px;line-height:1}
.summary-stat small{color:#adc4ea}
.summary-table-wrap{overflow:auto;margin-bottom:12px}
.summary-table{width:100%;border-collapse:collapse;font-size:14px}
.summary-table th,.summary-table td{border-bottom:1px solid #284a78;padding:10px 8px;text-align:left;white-space:nowrap}
.summary-table th{color:#cfe4ff;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
#matchSummaryDialog{max-width:min(920px,calc(100% - 25px))}

/* Portretstand als primaire tabletvisualisatie. */
@media (orientation:portrait){
  body.scoring-mode .site-header{padding:8px 14px;gap:12px}
  body.scoring-mode .brand img{width:62px;height:62px}
  body.scoring-mode .brand h1{font-size:24px}
  body.scoring-mode .brand p{font-size:12px}
  body.scoring-mode .nav-bar{padding:8px 14px}
  body.scoring-mode main{padding:8px 14px 26px}
  body.scoring-mode .match-toolbar{grid-template-columns:1fr;justify-items:stretch;gap:8px}
  body.scoring-mode .match-switch{justify-content:stretch}
  body.scoring-mode .match-switch button{flex:1}
  body.scoring-mode .game-banner{flex-direction:column;align-items:flex-start;padding:11px 14px}
  body.scoring-mode .score-panels{grid-template-columns:1fr 1fr;gap:10px}
  body.scoring-mode .score-card{min-height:178px;padding:10px 7px}
  body.scoring-mode .score-card.current:after{top:8px;right:8px}
  body.scoring-mode .score-big{font-size:clamp(48px,10vw,86px)}
  body.scoring-mode .player-big{font-size:20px;min-height:24px}
  body.scoring-mode .legs-big{font-size:14px}
  body.scoring-mode .turn-banner{font-size:22px;padding:12px;margin:12px 0}
  body.scoring-mode .entry-top{flex-direction:column;align-items:stretch}
  body.scoring-mode .entry-switch{width:100%}
  body.scoring-mode .entry-switch button{flex:1}
  body.scoring-mode .input-layout{grid-template-columns:1fr;gap:10px}
  body.scoring-mode .entry-panel,.score-options,#dartEntry{padding:14px}
  body.scoring-mode .entry-panel input{height:72px;font-size:40px}
  body.scoring-mode .number-pad button{min-height:72px;font-size:34px}
  body.scoring-mode .number-pad .red-btn{font-size:20px}
  body.scoring-mode .three-buttons button{min-height:56px;font-size:22px}
  body.scoring-mode .score-options .submit-btn,body.scoring-mode .dart-actions .submit-btn{min-height:66px;font-size:24px}
  body.scoring-mode .multiplier-row button{min-height:54px}
  body.scoring-mode .dart-grid{grid-template-columns:repeat(4,1fr)}
  body.scoring-mode .dart-grid button{min-height:64px;font-size:24px}
  body.scoring-mode .dart-actions{grid-template-columns:1fr 1fr;gap:8px}
  body.scoring-mode .dart-actions .submit-btn{grid-column:1/-1}
}

@media (max-width:900px){
  .matches-grid{grid-template-columns:1fr}
  .summary-overall{grid-template-columns:1fr}
}
@media (max-width:650px){
  .match-card-top{grid-template-columns:42px 1fr auto}
  .match-card{min-height:auto}
  .control-footer{justify-content:stretch}.control-footer button{width:100%}
}

/* V3: centrale bullen-pop-up, zonder afzonderlijke spelersvelden. */
.bull-dialog{width:min(540px,calc(100% - 24px));max-width:540px;border-top:4px solid #ed243c;padding:24px}
.bull-dialog h3{margin:0 0 10px;font-size:clamp(23px,4.5vw,30px)}
.bull-dialog label{margin:16px 0}
.bull-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:17px 0 12px}
.bull-dialog-actions button{min-height:75px;overflow-wrap:anywhere;font-size:17px}
#cancelBull{width:100%}
#startFromScore{width:100%;min-height:64px}
#matchSetup{max-width:600px;margin:20px auto}
#matchSetup>p{line-height:1.5}
@media(max-width:650px){.bull-dialog-actions{grid-template-columns:1fr}.bull-dialog-actions button{min-height:68px}}

/* V3 tablet portret: score-invoer en opties naast elkaar om minder te scrollen. */
.score-card .side-caption{display:none}
@media (orientation:portrait) and (min-width:700px) and (max-width:950px){
 body.scoring-mode .site-header{padding:3px 12px}
 body.scoring-mode .brand img{width:48px;height:48px}
 body.scoring-mode .brand h1{font-size:21px}
 body.scoring-mode .brand-eyebrow{font-size:10px}
 body.scoring-mode .brand p{display:none}
 body.scoring-mode .offline-pill{font-size:11px;padding:6px 9px}
 body.scoring-mode .header-actions .mini{min-height:33px;padding:6px 8px}
 body.scoring-mode .nav-bar{padding:5px 12px}
 body.scoring-mode .nav-bar button{min-height:35px;padding:6px}
 body.scoring-mode main{padding:0 12px 15px}
 body.scoring-mode .match-toolbar{grid-template-columns:auto 1fr auto;gap:8px;margin:4px 0}
 body.scoring-mode .match-toolbar #backToOverview{min-height:39px;padding:7px 10px}
 body.scoring-mode .match-switch{justify-content:flex-end}
 body.scoring-mode .match-switch button{flex:0 0 auto;min-height:39px;padding:7px 11px}
 body.scoring-mode .match-indicator{font-size:20px}
 body.scoring-mode .game-banner{flex-direction:row;align-items:center;margin:5px 0;padding:7px 12px}
 body.scoring-mode .game-banner strong{font-size:19px}
 body.scoring-mode .score-panels{gap:10px}
 body.scoring-mode .score-card{min-height:148px;padding:8px}
 body.scoring-mode .player-big{font-size:20px;min-height:0;margin:2px auto 0}
 body.scoring-mode .score-big{font-size:67px;line-height:1}
 body.scoring-mode .legs-big{font-size:14px}
 body.scoring-mode .turn-banner{margin:7px 0;padding:8px;font-size:19px}
 body.scoring-mode .entry-top{flex-direction:row;align-items:center;margin:5px 0}
 body.scoring-mode .entry-top h3{font-size:17px;margin:0}
 body.scoring-mode .entry-switch{width:auto}
 body.scoring-mode .entry-switch button{padding:5px 9px;min-height:32px}
 body.scoring-mode .input-layout{grid-template-columns:minmax(0,1fr) minmax(230px,.54fr);gap:10px}
 body.scoring-mode .input-layout .panel{margin:0;padding:9px}
 body.scoring-mode .field-caption{font-size:13px;margin-bottom:4px}
 body.scoring-mode .entry-panel input{height:49px;min-height:49px;font-size:29px}
 body.scoring-mode .number-pad{gap:5px;margin-top:5px}
 body.scoring-mode .number-pad button{min-height:57px;font-size:26px;padding:4px}
 body.scoring-mode .number-pad .red-btn{font-size:18px}
 body.scoring-mode .score-options{display:flex;flex-direction:column;gap:7px}
 body.scoring-mode .score-options h4{margin:0;font-size:14px}
 body.scoring-mode .score-options .three-buttons{gap:4px}
 body.scoring-mode .score-options .three-buttons button{min-height:44px;font-size:18px;padding:5px}
 body.scoring-mode .score-options .check-wrap{padding:9px;gap:7px;font-size:12px}
 body.scoring-mode .score-options .check-wrap input{width:22px;height:22px}
 body.scoring-mode .score-options .check-wrap small{font-size:10px}
 body.scoring-mode .score-options .turn-preview{min-height:45px;padding:8px;font-size:13px}
 body.scoring-mode .score-options .submit-btn{min-height:56px;font-size:19px;padding:7px}
 body.scoring-mode .control-footer{margin:7px 0}
 body.scoring-mode .control-footer button{min-height:37px;padding:6px 14px}
}


.quick-scores{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:10px 0 4px}.quick-scores button{min-height:48px;padding:8px 6px;font-size:20px;font-weight:950;background:linear-gradient(#1b7cff,#0a4ca9);border-color:#69aafc}.quick-scores button:hover:not(:disabled){filter:brightness(1.18)}
@media (orientation:portrait){
  body.scoring-mode .quick-scores{grid-template-columns:repeat(5,1fr);gap:6px;margin:8px 0 3px}
  body.scoring-mode .quick-scores button{min-height:52px;font-size:21px;padding:6px 4px}
  body.scoring-mode .entry-panel input{height:66px;font-size:38px}
  body.scoring-mode .number-pad{gap:7px}
  body.scoring-mode .number-pad button{min-height:68px;font-size:32px}
  body.scoring-mode .score-options{gap:10px}
  body.scoring-mode .turn-preview{min-height:54px;padding:10px;font-size:14px}
}
@media (max-width:650px){
  .quick-scores{grid-template-columns:repeat(5,1fr);gap:5px}
  .quick-scores button{min-height:44px;font-size:17px;padding:6px 2px}
}


/* V4 STANDAARDPORTRET: exacte software-layout, niet de oude V3.1-layout. */
.build-pill{display:inline-flex;align-items:center;justify-content:center;border:1px solid #f6c955;background:#392b0e;color:#ffe48c;border-radius:8px;padding:6px 9px;font-size:12px;font-weight:950;white-space:nowrap}
.quick-section{margin-top:4px;border-top:1px solid #44638e;padding-top:13px}
.quick-section h4{font-size:15px;margin:0 0 9px;color:#d7e7ff}
.quick-scores{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0!important}
.quick-scores button{grid-column:span 2;min-width:0;min-height:56px;padding:6px 2px;font-size:clamp(17px,2.7vw,27px);background:linear-gradient(#227fe9,#074595);border-color:#4f95ed}
.quick-scores button:nth-child(1),.quick-scores button:nth-child(2){grid-column:span 3}
.quick-scores button.chosen{outline:2px solid #f8d24c;outline-offset:-2px;background:linear-gradient(#1d76d7,#082d67)}
.score-options{gap:12px}
.turn-preview:empty{display:none!important}
.turn-preview:not(:empty){flex:0 0 auto;min-height:40px;line-height:1.35}
.score-options .submit-btn{width:100%;margin-top:auto}
body.scoring-mode .score-card .side-caption{display:none}
@media (orientation:portrait) and (min-width:640px){
  body.scoring-mode .input-layout{grid-template-columns:minmax(0,1.35fr) minmax(244px,.9fr);gap:10px}
  body.scoring-mode .input-layout>.panel{margin:0;padding:12px}
  body.scoring-mode .score-options{display:flex;flex-direction:column;gap:11px}
  body.scoring-mode .quick-scores{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0}
  body.scoring-mode .quick-scores button{min-height:58px;font-size:clamp(18px,3vw,27px);padding:6px 2px}
  body.scoring-mode .entry-panel input{height:62px;min-height:62px;font-size:34px}
  body.scoring-mode .number-pad{gap:7px;margin-top:9px}
  body.scoring-mode .number-pad button{min-height:70px;font-size:32px}
  body.scoring-mode .score-options .three-buttons button{min-height:53px;font-size:23px}
  body.scoring-mode .score-options .check-wrap{padding:11px;font-size:13px;gap:9px}
  body.scoring-mode .score-options .check-wrap input{height:24px;width:24px}
  body.scoring-mode .score-options .check-wrap small{font-size:11px}
  body.scoring-mode .score-options .submit-btn{min-height:68px;font-size:clamp(18px,3vw,24px)}
}
@media (orientation:portrait) and (min-width:700px) and (max-width:950px){
  body.scoring-mode .input-layout{grid-template-columns:minmax(0,1.32fr) minmax(260px,.95fr);gap:10px}
  body.scoring-mode .input-layout>.panel{padding:12px}
  body.scoring-mode .quick-scores button{min-height:57px;font-size:24px}
  body.scoring-mode .number-pad button{min-height:69px;font-size:32px}
  body.scoring-mode .entry-panel input{height:62px;min-height:62px;font-size:35px}
  body.scoring-mode .score-options{gap:11px}
  body.scoring-mode .score-options .three-buttons button{min-height:53px;font-size:22px}
  body.scoring-mode .score-options .check-wrap{padding:9px;font-size:12px}
  body.scoring-mode .score-options .submit-btn{min-height:65px;font-size:21px}
}
@media (max-width:639px){
  body.scoring-mode .input-layout{grid-template-columns:1fr;gap:8px}
  .quick-scores{grid-template-columns:repeat(6,minmax(0,1fr))}
  .quick-scores button{font-size:22px;min-height:53px}
}

/* V5: eenvoudige schrijver-interface in portretstand (één kolom, geen dartcount/mode-schakelaar). */
body.scoring-mode #playingControls{display:block}
body.scoring-mode #totalEntry.single-score-entry{display:block;width:100%;margin:10px 0;padding:16px;border:1px solid #2b5fa8;border-radius:13px;background:linear-gradient(155deg,#091c40,#061026)}
body.scoring-mode .single-score-entry .field-caption{display:block;font-size:13px;font-weight:900;margin-bottom:7px;color:#d1e2ff}
body.scoring-mode .single-score-entry #scoreInput{width:100%;min-height:60px;height:62px;background:#fff;color:#122042;border:3px solid #3c96f5;border-radius:10px;font-size:40px;font-weight:1000;text-align:center}
body.scoring-mode .single-score-entry .number-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0 0}
body.scoring-mode .single-score-entry .number-pad button{min-height:66px;font-size:32px;font-weight:950;padding:5px 8px;background:#092550;border:1px solid #3675c8}
body.scoring-mode .single-score-entry .number-pad .red-btn{background:linear-gradient(#f11d32,#a20b19);font-size:21px}
body.scoring-mode .single-score-entry .number-pad .outline{background:#11223e}
body.scoring-mode .single-score-entry .quick-scores{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 0!important}
body.scoring-mode .single-score-entry .quick-scores button{grid-column:auto!important;min-height:55px;font-size:clamp(17px,3vw,26px);font-weight:950;padding:6px 2px;background:linear-gradient(#1782f7,#084796);border:1px solid #6ab0ff;border-radius:10px}
body.scoring-mode .single-score-entry .quick-scores button.chosen{background:#d51a2a;outline:2px solid #ffcd47;outline-offset:-2px}
body.scoring-mode .single-score-entry #submitTotal{display:block;width:100%;min-height:70px;font-size:clamp(20px,3vw,26px);margin-top:12px}
.checkout-dialog{width:min(490px,calc(100% - 30px));max-width:490px;border-top:4px solid #f0c73d}
.checkout-dialog h3{margin:0 0 14px;font-size:24px}
.checkout-dialog>p{line-height:1.5}
.checkout-count-box{margin:18px 0 10px;background:#08142c;border:1px solid #3766a1;border-radius:10px;padding:12px}
.checkout-count-box strong{display:block;margin-bottom:9px;font-size:15px}
.checkout-dialog .three-buttons button.chosen{background:linear-gradient(#eb2431,#9d0b16);border:2px solid #ff7980}
.checkout-dialog>button{width:100%;display:block;min-height:53px;margin-top:10px}
.checkout-dialog #checkoutMessage{min-height:30px;color:#fbd56a}
@media (orientation:portrait){
  body.scoring-mode #totalEntry.single-score-entry{margin:8px 0;padding:12px}
  body.scoring-mode .single-score-entry #scoreInput{min-height:58px;height:61px}
  body.scoring-mode .single-score-entry .number-pad{gap:7px}
  body.scoring-mode .single-score-entry .number-pad button{min-height:63px;font-size:31px}
  body.scoring-mode .single-score-entry .quick-scores{gap:6px}
  body.scoring-mode .single-score-entry .quick-scores button{min-height:54px;font-size:clamp(17px,3.4vw,26px)}
  body.scoring-mode .single-score-entry #submitTotal{min-height:67px;margin-top:11px}
}
@media (max-width:500px){
 body.scoring-mode .single-score-entry .quick-scores{gap:4px}
 body.scoring-mode .single-score-entry .quick-scores button{font-size:16px;min-height:47px}
 body.scoring-mode #totalEntry.single-score-entry{padding:10px}
}
