:root{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:#f3f7ff;background:#040c1b;--blue:#0e66d6;--red:#df172b;--gold:#ffd34d;--stroke:#355c91;--muted:#b5caea;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse 105% 65% at 50% -10%,#0b428a 0,#081a3b 48%,#030914 100%)}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;min-height:47px;padding:10px 14px;border:1px solid #377ec9;border-radius:11px;color:#fff;background:linear-gradient(#1479e6,#084589);font-weight:850;box-shadow:inset 0 1px #ffffff20}button:hover:not(:disabled){filter:brightness(1.14)}button:disabled{opacity:.43;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}input,select{background:#071a37;border:1px solid #5d83b5;color:#fff;border-radius:9px;padding:11px;width:100%;min-height:46px}input::placeholder{color:#94a9c9}input[type=number]{appearance:textfield}label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:800}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.mini{font-size:12px;padding:7px 10px;min-height:36px}.outline{background:#09182f;border-color:#4b7dbe}.red-btn{background:linear-gradient(#f52a3c,#aa091d);border-color:#fe6572}.submit-btn{background:linear-gradient(#11d64c,#078932);border:2px solid #63ef91;min-height:64px;font-size:22px;font-weight:950}.danger-text{border-color:#b54f61;color:#ffbac1}.site-header{max-width:1320px;margin:0 auto;padding:9px 16px;background:linear-gradient(90deg,#061735,#0b3a8b 70%,#07172d);border-bottom:3px solid #1785ef;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand img{width:64px;height:64px;border-radius:13px;object-fit:contain;flex:none}.brand-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:950;color:#ff7380}.brand h1{font-size:clamp(22px,3vw,35px);line-height:1.03;margin:3px 0;font-weight:1000;white-space:nowrap}.brand p{font-size:12px;color:#d2e2ff;margin:1px 0}.header-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px}.build-pill{color:#ffe190;background:#302307;border:1px solid #e3b728;border-radius:8px;padding:7px 10px;font-weight:950;font-size:12px;white-space:nowrap}.offline-pill{background:#083627;color:#7af0ad;border:1px solid #14865d;border-radius:40px;padding:8px 10px;font-size:12px;font-weight:900;white-space:nowrap}.nav-bar{max-width:1320px;margin:0 auto;padding:9px 16px;display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:9px}.nav-bar button{background:#0a1c3a;border-color:#3d6cac;min-height:44px}.nav-bar button.nav-active{background:linear-gradient(#f3203b,#9b0d1f);border-color:#ff7486}main{max-width:1280px;margin:auto;padding:3px 17px 40px}.view{animation:appear .17s ease-out}@keyframes appear{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:none}}h1,h2,h3,p{margin-top:0}h2{font-size:clamp(24px,3vw,34px);margin-bottom:5px}h3{font-size:20px;margin-bottom:8px}.hero-line{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #375f98;padding:15px 0;margin-bottom:12px}.hero-line p{margin:0;color:#d0def5;font-size:14px}.eyebrow{color:#fa7b83;font-size:11px;letter-spacing:.14em;font-weight:1000;margin-bottom:4px}.hero-chip,.tag{background:#133b70;color:#cce7ff;border:1px solid #5e94cd;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:900;white-space:nowrap}.training-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.training-tile{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;min-height:110px;padding:17px 19px;background:linear-gradient(123deg,#06499c,#081b3d);border:2px solid #2e90ef;box-shadow:0 8px 18px #0003}.training-tile.selected{background:linear-gradient(130deg,#a9132a,#4b0815);border-color:#ffe16a;outline:2px solid #ffdd53;outline-offset:-6px}.training-tile .tile-name{font-size:clamp(21px,2.8vw,31px);line-height:1.06;font-weight:1000;text-transform:uppercase;letter-spacing:-.015em}.training-tile .tile-symbol{font-size:42px;color:#eaf6ff;opacity:.94;line-height:1;flex:none}.panel{background:linear-gradient(150deg,#0e2446,#061428);border:1px solid var(--stroke);border-radius:15px;padding:17px;margin:12px 0;box-shadow:0 11px 28px #0003}.start-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.start-head h3{margin:0 0 6px;font-size:26px}.start-head p{margin-bottom:12px;line-height:1.4}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.start-buttons{display:flex;gap:10px;margin-top:14px}.start-buttons button{flex:1}.home-note{margin:12px 2px}.match-toolbar{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:8px 0 5px}.match-indicator{text-align:center;font-size:clamp(20px,3vw,27px);font-weight:1000}.game-banner{background:linear-gradient(95deg,#b5142d,#680e24 47%,#0948a6 55%,#0b6bdd);border-radius:11px;display:flex;justify-content:space-between;align-items:center;padding:10px 13px;gap:8px;margin:6px 0 10px;font-weight:950}.game-banner strong{font-size:clamp(18px,2.7vw,24px)}.game-banner span{font-size:14px}.score-panels{display:grid;grid-template-columns:1fr 1fr;gap:12px}.score-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:203px;border-radius:15px;border:2px solid #ed2640;background:linear-gradient(142deg,#500a17,#170e1d 70%,#06152c);text-align:center;position:relative;padding:12px 8px}.score-card.card-blue{border-color:#2182fc;background:linear-gradient(135deg,#1052a6,#091a42 65%,#07142b)}.score-card.current{box-shadow:inset 0 0 0 3px #ffd55b,0 0 26px #ffce2644}.card-caption{font-size:17px;font-weight:950;color:#e1edff}.score-big{font-size:clamp(87px,15vw,152px);line-height:1.04;font-weight:1000;font-variant-numeric:tabular-nums;text-shadow:0 4px 14px #0008;letter-spacing:-.06em;overflow-wrap:anywhere}.card-foot{font-size:16px;font-weight:850;color:#dce9ff}.turn-banner{background:linear-gradient(#ffe464,#e0a81b);border:2px solid #ffdf62;border-radius:11px;text-align:center;color:#1c1304;font-weight:1000;font-size:18px;padding:11px;margin:11px 0}.single-score-entry{padding:15px}.field-caption{font-size:15px;margin-bottom:6px}.single-score-entry input{height:74px;min-height:74px;background:#f6f8ff;color:#0c2b60;border:3px solid #3996fa;font-weight:1000;font-size:46px;text-align:center;letter-spacing:.04em}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}.number-pad button{min-height:66px;font-size:35px;font-weight:1000;padding:5px;background:linear-gradient(#123b78,#0a204c);border-color:#3981d0}.number-pad .red-btn{background:linear-gradient(#fc1c32,#a30b1c);font-size:22px}.number-pad .outline{background:#192844}.quick-scores{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:11px 0}.quick-scores button{font-size:clamp(19px,3.2vw,30px);min-height:56px;padding:5px;background:linear-gradient(#1585ff,#0855ac)}.quick-scores button.chosen{background:linear-gradient(#e83040,#9d0b1d);border-color:#ffcd5c}.single-score-entry .submit-btn{width:100%}.hit-entry h3,.shanghai-entry h3{font-size:22px}.hit-entry p,.shanghai-entry p{font-size:14px}.hit-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:17px 0}.hit-choices button{font-size:44px;min-height:100px;background:#0b3874}.hit-choices button.chosen,.shanghai-options button.chosen{background:linear-gradient(#e42d3c,#920a1b);border-color:#ffcf54;box-shadow:inset 0 0 0 2px #ffd967}.hit-entry .submit-btn,.shanghai-entry .submit-btn{width:100%}.shanghai-row{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:12px;margin:12px 0}.shanghai-row span{font-size:23px;font-weight:950}.shanghai-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.shanghai-options button{min-height:62px;font-size:26px;padding:7px}.shanghai-preview{background:#081932;border-radius:9px;border:1px solid #335991;padding:10px;margin:14px 0;font-size:17px;font-weight:850}.control-footer{display:flex;justify-content:flex-end;margin:8px 0}.control-footer button{min-height:40px}.stats-strip,.summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:13px 0}.stat-block{background:#0b1e3a;border:1px solid #3a609a;border-radius:12px;padding:13px;text-align:center;min-width:0}.stat-block span{font-size:11px;color:#bfd7ff;text-transform:uppercase;font-weight:900;letter-spacing:.045em;display:block}.stat-block strong{display:block;font-size:clamp(23px,4vw,37px);font-weight:1000;margin:4px 0 1px;overflow-wrap:anywhere}.stat-block small{font-size:11px;color:#bed0ec}.finished-panel{text-align:center;border-color:#62d898}.finished-panel h2{font-size:27px}.finished-panel button{margin:6px;width:min(370px,100%)}.empty-state{text-align:center;padding:32px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.filter-label{min-width:215px}.result-rows{display:grid;gap:8px}.result-row{display:grid;grid-template-columns:120px 1fr auto;align-items:center;gap:12px;padding:14px;background:#0a1c38;border:1px solid #33588c;border-radius:11px}.result-row strong{font-size:16px}.result-row .muted{font-size:12px}.result-row .result-summary{text-align:right;font-weight:950;font-size:15px}.result-row.empty{display:block;text-align:center}.backup-buttons{display:flex;flex-wrap:wrap;gap:9px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);background:#065334;border:2px solid #46ce8d;border-radius:11px;padding:13px 16px;text-align:center;font-weight:850;z-index:100;box-shadow:0 11px 35px #0009}.toast.error{background:#650e21;border-color:#ff6074}dialog{background:#0d1d38;color:#fff;border:2px solid #4a7ebc;border-radius:17px;width:min(515px,calc(100% - 20px));padding:23px;max-height:calc(100dvh - 24px);overflow:auto}dialog::backdrop{background:#000a}dialog h2{font-size:25px}dialog p{line-height:1.48}.checkout-count-box{border:1px solid #3e6090;border-radius:10px;padding:12px;margin:15px 0}.checkout-count-box strong{display:block;margin-bottom:10px}.three-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.three-buttons button{font-size:29px;min-height:65px}.three-buttons button.chosen{background:linear-gradient(#e82636,#8a0b19);border:2px solid #ffc44f}.checkout-dialog>button,#installDialog button{width:100%;margin-top:8px;min-height:54px}.checkout-dialog #checkoutMessage{min-height:18px;margin:8px 0;color:#ffd564}.danger-text{color:#fcbec7}
@media(max-width:700px){.site-header{padding:7px 10px}.brand img{width:49px;height:49px}.brand h1{font-size:21px}.brand-eyebrow{font-size:9px}.brand p{display:none}.header-actions{gap:4px}.header-actions .build-pill,.header-actions .offline-pill{font-size:9px;padding:5px}.header-actions .mini{min-height:29px;padding:5px 7px;font-size:10px}.nav-bar{gap:5px;padding:6px 10px}.nav-bar button{font-size:12px;min-height:39px;padding:6px 4px}main{padding:3px 10px 25px}.hero-chip{display:none}.hero-line{padding:9px 0}.training-grid{gap:8px}.training-tile{min-height:94px;padding:11px}.training-tile .tile-name{font-size:clamp(17px,4vw,25px)}.training-tile .tile-symbol{font-size:30px}.panel{padding:12px}.score-card{min-height:162px}.card-caption{font-size:13px}.score-big{font-size:clamp(54px,12vw,90px)}.card-foot{font-size:12px}.turn-banner{font-size:16px;padding:8px}.single-score-entry input{height:59px;min-height:59px;font-size:36px}.number-pad button{min-height:57px;font-size:29px}.quick-scores button{min-height:49px;font-size:18px}.hit-choices button{min-height:70px;font-size:30px}.shanghai-row{grid-template-columns:75px 1fr;gap:8px}.shanghai-row span{font-size:16px}.shanghai-options button{min-height:50px;font-size:20px}.stats-strip,.summary-cards{gap:5px}.stat-block{padding:8px}.stat-block strong{font-size:24px}.result-row{grid-template-columns:80px 1fr;gap:5px}.result-row .result-summary{grid-column:2;text-align:left}.section-head{flex-direction:column;align-items:stretch}.filter-label{min-width:0}}
@media(max-width:420px){.site-header{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}.training-tile .tile-symbol{display:none}.form-grid{grid-template-columns:1fr}.start-buttons{flex-direction:column}.score-big{font-size:clamp(55px,13vw,72px)}.match-toolbar .mini{font-size:11px;padding:6px}.game-banner{flex-direction:column;align-items:flex-start}.quick-scores{gap:4px}.quick-scores button{font-size:16px}.stats-strip,.summary-cards{grid-template-columns:repeat(2,1fr)}}
@media(orientation:portrait) and (min-width:700px) and (max-width:1000px){.site-header{padding:5px 12px}.brand img{width:55px;height:55px}.brand h1{font-size:24px}.brand p{display:none}.header-actions{gap:5px}.header-actions .mini{min-height:32px;padding:6px 8px}.nav-bar{padding:6px 12px}.nav-bar button{min-height:39px}.training-tile{min-height:105px}.score-card{min-height:225px}.score-big{font-size:clamp(115px,16vw,150px)}.single-score-entry{margin:8px 0;padding:12px}.single-score-entry input{height:68px;min-height:68px}.number-pad{gap:7px;margin-top:8px}.number-pad button{min-height:67px}.quick-scores{margin:8px 0}.quick-scores button{min-height:56px}.single-score-entry .submit-btn{min-height:69px}.turn-banner{margin:7px 0}.stats-strip{margin:9px 0}.stat-block{padding:10px}}
@media(max-height:730px) and (orientation:landscape){.site-header{padding:3px 12px}.brand img{width:41px;height:41px}.brand p{display:none}.nav-bar{padding:4px 12px}.nav-bar button{min-height:34px}.score-card{min-height:145px}.score-big{font-size:85px}.number-pad button{min-height:46px}.quick-scores button{min-height:44px}.single-score-entry input{height:52px;min-height:52px}.turn-banner{padding:7px}.training-tile{min-height:85px}}

.stats-strip.checkout-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:420px){.stats-strip.checkout-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Toegangsbeheer V2, alle drie de bestaande pagina's en scoreblokken behouden */
.access-dialog{width:min(540px,calc(100vw - 30px));max-width:540px}
.access-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.access-top h3{margin:0}
.access-dialog label{display:block;margin:15px 0 8px}
.access-dialog input{width:100%;font-size:18px;font-weight:750;letter-spacing:.06em;margin-top:8px}
.access-dialog>button{display:block;width:100%;margin:10px 0;min-height:54px}
.access-status{background:#0e2854;border:1px solid #3972c2;border-radius:11px;padding:12px;margin:10px 0;font-weight:900;color:#fce584}
.access-admin-line{margin-top:14px;text-align:center}.access-admin-line a{color:#93ceff;text-decoration:underline}
#accessButton{white-space:nowrap}
@media(max-width:600px){.header-actions #accessButton{font-size:12px;padding:8px}.access-dialog{padding:18px}}

/* Persoonlijk dashboard per speler en trainingsvorm */
.result-filters{display:flex;flex-wrap:wrap;gap:8px}.result-filters .filter-label{min-width:170px}
.personal-stats{margin:13px 0}.personal-stats h4{font-size:16px;margin:6px 0 9px}
.personal-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.personal-stat{border:1px solid #3970b0;border-radius:10px;padding:11px;background:#0b254b;display:flex;flex-direction:column;gap:3px}
.personal-stat span{font-weight:900;color:#9cc7ff;font-size:12px}.personal-stat strong{font-size:18px}.personal-stat small{color:#bacbed;font-size:11px}
@media(max-width:650px){.result-filters{width:100%}.result-filters .filter-label{flex:1;min-width:125px}.personal-stats-grid{grid-template-columns:1fr}}

/* Achtste trainingsvorm: 501 tegen de robot; behoud het bestaande scorebord. */
.robot-match .card-caption{font-size:clamp(14px,2.2vw,19px);overflow-wrap:anywhere}
.robot-match .score-card{min-width:0}
.robot-match .card-foot{font-size:clamp(16px,2.4vw,20px);font-weight:900}
@media(orientation:portrait) and (min-width:700px){.robot-match .score-card{min-height:225px}.robot-match .score-big{font-size:clamp(95px,15vw,150px)}}
