/* METRIEK SPRINT — v0.12 | speels, licht en overzichtelijk voor brugklassers */
:root, html[data-theme="light"] {
  color-scheme: light;
  --bg:#edf8ff; --bg2:#f5fbff;
  --card1:#ffffff; --card2:#ffffff; --panel:#f7fbff;
  --ink:#1b2850; --muted:#586781; --line:#dbe9f5;
  --good:#159d64; --bad:#e14b68; --shadow:0 14px 36px rgba(44,84,143,.085);
  --radius:24px; --tap:48px; --chipbg:#f3f7ff; --inputbg:white;
  --glow:rgba(56,117,244,.12); --accentBorder:#3a75e8;
  --btnGrad1:#5377fa; --btnGrad2:#3461e9;
  --heroGrad1:#eef9ff; --heroGrad2:#fff8e9;
  --nav:#33466f; --sky:#dcf3ff; --mint:#e7f9ec;
  --blue:#3862df; --yellow:#ffbf38;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:#121a34; --bg2:#0f1730;
  --card1:#1e2948; --card2:#1e2948; --panel:#243351;
  --ink:#f4f6ff; --muted:#c1cae0; --line:#394769;
  --good:#65d9a6; --bad:#ff90ac; --shadow:0 16px 34px rgba(1,5,22,.2);
  --chipbg:#2b3a60; --inputbg:#1b2849; --glow:rgba(124,165,255,.22);
  --accentBorder:#85b0ff; --btnGrad1:#698aff; --btnGrad2:#4e6de8;
  --heroGrad1:#222e53; --heroGrad2:#2f3453;
  --nav:#b4c6f8; --sky:#2a3b62; --mint:#233d44;
  --blue:#9cb6ff; --yellow:#ffcc6a;
}
html { scroll-behavior:smooth; }
body {
  font-family: ui-rounded,"Trebuchet MS",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 8% 12%,rgba(120,205,252,.22),transparent 25%),
    radial-gradient(circle at 93% 10%,rgba(255,216,101,.22),transparent 23%),
    radial-gradient(circle at 82% 95%,rgba(165,226,196,.19),transparent 24%),
    linear-gradient(160deg,var(--bg) 0%,var(--bg2) 100%) fixed;
  color:var(--ink);
  padding:22px 18px 34px;
}
button, input { font:inherit; }
.app { width:min(1100px,100%); gap:15px; }
.topbar {
  border:1px solid var(--line); background:var(--card1); border-radius:20px;
  box-shadow:0 5px 22px rgba(55,86,151,.07); padding:11px 16px;
  flex-wrap:wrap; gap:12px;
}
.logo {
  height:46px; width:46px; border-radius:15px; font-size:25px;
  background:linear-gradient(145deg,#fff2b2,#ffd46e);
  box-shadow:inset 0 -3px 0 #e7b83b,0 5px 14px rgba(236,174,51,.18);
  color:#233f76;
}
html[data-theme="dark"] .logo { box-shadow:inset 0 -3px 0 #e7b83b,0 5px 14px rgba(0,0,0,.12); }
.brandText .title { font-size:17px; color:var(--ink); letter-spacing:-.3px; }
.brandText .sub { font-size:12px; color:var(--muted); }
.chipRow { gap:6px; }
.chip { padding:7px 9px; background:var(--chipbg); border:0; font-weight:800; color:var(--muted); font-size:11px; }
.chip#chipMode { background:#e3f5ed; color:#157d54; }
html[data-theme="dark"] .chip#chipMode { background:#244a46; color:#9ef0c8; }
.chipBtn {
  color:var(--nav); background:var(--chipbg); border:1px solid var(--line);
  padding:8px 12px; border-radius:12px; font-size:13px; font-weight:900;
  min-height:39px; box-shadow:none;
}
.chipBtn:hover { background:var(--sky); }
.main { border:1px solid var(--line); background:var(--card1); border-radius:26px; box-shadow:var(--shadow); overflow:hidden; }
.pane { padding:22px; }
.grid2 { grid-template-columns:minmax(0,1.32fr) minmax(280px,.83fr); gap:18px; align-items:start; }
.card { border:1px solid var(--line); border-radius:22px; background:var(--card1); padding:21px; }
h1, h2, h3 { letter-spacing:-.5px; color:var(--ink); }
p { color:var(--muted); }
.welcome {
  display:grid; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);
  align-items:center; gap:20px; border-radius:22px; margin-bottom:18px;
  padding:24px 26px;
  background:linear-gradient(115deg,var(--heroGrad1) 0%,var(--heroGrad2) 100%);
  border:1px solid var(--line); position:relative; overflow:hidden;
}
.welcome:after { content:""; position:absolute; height:165px; width:165px; right:-70px; top:-95px; border:20px solid rgba(255,191,56,.13); border-radius:50%; pointer-events:none; }
.welcomeText { position:relative; z-index:1; }
.welcomeTag, .gameTag {
  display:inline-flex; align-items:center; font-size:11px; letter-spacing:.9px;
  font-weight:1000; color:#327bc1; padding:7px 12px; background:#fff;
  border:1px solid #dceafc; border-radius:99px;
}
html[data-theme="dark"] .welcomeTag,html[data-theme="dark"] .gameTag { color:#a9cbff; background:#263557; border-color:#43577b; }
.welcome h1 { font-size:clamp(26px,3.6vw,40px); line-height:1.12; margin:13px 0 11px; max-width:16ch; }
.welcome p { font-size:15px; line-height:1.6; max-width:46ch; margin:0; }
.hiBlue { color:#3582e5; }
.hiOrange { color:#ec9529; }
html[data-theme="dark"] .hiBlue { color:#8dbeff; }
html[data-theme="dark"] .hiOrange { color:#ffc77a; }
.welcomeFeatures { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.welcomeFeatures span { font-weight:900; font-size:11px; background:var(--card1); color:var(--nav); border-radius:10px; padding:7px 10px; border:1px solid var(--line); }
.welcomeVisual { min-width:0; max-width:300px; justify-self:center; background:white; border:1px solid #e7f0fa; border-radius:24px; padding:8px; transform:rotate(2.5deg); box-shadow:0 12px 18px rgba(65,107,158,.1); }
.welcomeVisual img { display:block; width:100%; height:auto; object-fit:contain; }
.card-heading { display:flex; align-items:center; gap:12px; margin:0 0 16px; }
.card-heading-icon { font-size:25px; width:52px; height:52px; border-radius:17px; display:grid; place-items:center; background:#eff0ff; flex-shrink:0; }
html[data-theme="dark"] .card-heading-icon { background:#353e65; }
.card-heading h2 { font-size:21px; margin:0 0 4px; }
.card-heading p { font-size:13px; margin:0; }
.sectionTitle { margin-top:22px; align-items:center; }
.sectionTitle strong { font-size:15px; font-weight:900; }
.sectionTitle .right { font-size:11px; color:var(--muted); }
.seg { gap:8px; margin-top:10px; }
.seg label {
  border:1.5px solid var(--line); color:var(--nav); background:var(--panel);
  font-weight:900; font-size:13px; padding:10px 13px; border-radius:14px; min-height:46px;
  display:flex; flex-direction:column; align-items:center; gap:3px;
}
.seg label small { font-weight:700; color:var(--muted); font-size:10px; }
.seg input:checked + label { background:#e8eeff; border-color:#6788f6; color:#264fb8; box-shadow:inset 0 0 0 1px #7293fa; }
html[data-theme="dark"] .seg input:checked + label { background:#304a83; color:white; border-color:#8aa9ff; }
.seg input:checked + label small { color:inherit; opacity:.85; }
.seg input:focus-visible + label { outline:3px solid #ffbd4c; outline-offset:2px; }
label.opt {
  display:flex; align-items:center; justify-content:flex-start; gap:10px;
  border:1.5px solid var(--line); border-radius:15px; padding:11px 12px;
  background:var(--panel); min-height:64px; transition:all .15s ease;
}
label.opt:hover { transform:translateY(-2px); border-color:#8cb1ee; }
label.opt:has(input:checked) { border-color:#4e7fe8; background:#edf4ff; box-shadow:inset 0 0 0 1px #6c9af3; }
html[data-theme="dark"] label.opt:has(input:checked) { background:#32466d; border-color:#86acff; }
.optEmoji { width:35px; height:35px; border-radius:11px; display:grid; place-items:center; flex-shrink:0; font-size:19px; background:#ddedff; }
.optArea .optEmoji { background:#e9e0ff; }
.optVol .optEmoji { background:#ddf7eb; }
.optMass .optEmoji { background:#fff0cd; }
.optCopy { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.optCopy strong { font-size:13px; color:var(--ink); }
.optCopy small { font-size:11px; color:var(--muted); white-space:nowrap; }
.opt input { accent-color:#496fec; width:20px; height:20px; flex:0 0 auto; }
.opt:has(input:focus-visible) { outline:3px solid #ffbd4c; outline-offset:2px; }
.btnrow { margin-top:20px; }
button { border-radius:13px; min-height:46px; font-weight:900; font-size:13px; min-width:0; }
button:not(:disabled):focus-visible { outline:3px solid #f7bc4b; outline-offset:3px; }
button:not(.secondary):not(.ghost):not(.chipBtn) { background:linear-gradient(115deg,#507af6,#355ee5); box-shadow:0 10px 19px rgba(56,98,219,.22); }
button:not(.secondary):not(.ghost):not(.chipBtn):hover { filter:brightness(1.08); }
#btnStart { width:100%; min-height:56px; font-size:16px; display:flex; align-items:center; justify-content:center; gap:10px; }
#btnStart span { font-size:23px; margin-left:auto; }
#btnStart:disabled { background:#c4d1e2 !important; box-shadow:none !important; color:#465470; }
button.secondary, button.ghost { background:var(--panel); color:var(--nav); border:1px solid var(--line); box-shadow:none; }
button.secondary:hover, button.ghost:hover { background:var(--sky); }
.scoresCard { position:relative; overflow:hidden; background:linear-gradient(155deg,var(--card1),var(--panel)); }
.scoresCard:after { content:""; position:absolute; right:-60px; top:-65px; width:180px; height:180px; border-radius:50%; background:rgba(255,205,89,.13); pointer-events:none; }
.trophyArt { width:74px; height:74px; font-size:43px; display:grid; place-items:center; border-radius:23px; background:#fff5d6; margin:2px 0 21px; box-shadow:0 8px 20px rgba(222,170,51,.12); }
.scoreHeading span:first-child { font-size:11px; font-weight:1000; letter-spacing:1.2px; color:#b57e1d; }
.scoreHeading h2 { font-size:23px; margin:7px 0 10px; }
.scoresCard>p { font-size:14px; line-height:1.6; margin-bottom:22px; }
.pill { background:var(--chipbg); color:var(--nav); border:1px solid var(--line); font-weight:900; font-size:11px; }
#startHSPreview { background:var(--card1); border:1px dashed var(--line); border-radius:15px; padding:12px; }
#startHSPreview .hint { font-size:12px; }
#btnResetHS { min-height:40px; padding:9px 12px; font-size:12px; }
.hsTable { font-size:13px; }
.hsTable td,.hsTable th { border-bottom:1px solid var(--line); }
.hsTable th { color:var(--ink); }
.gameHeading { display:flex; align-items:center; justify-content:space-between; margin:0 0 16px; }
.gameHeading h2 { font-size:clamp(20px,3vw,28px); margin:10px 0 0; }
.gameSticker { font-size:35px; background:#fff2ca; padding:11px 13px; border-radius:15px; transform:rotate(6deg); }
.hud { gap:8px; margin-bottom:14px; }
.stat { border:1px solid var(--line); background:var(--panel); border-radius:14px; min-height:54px; flex:1 1 190px; font-size:13px; font-weight:900; }
.stat strong { font-size:18px; color:var(--ink); }
#statTime { background:#fff5db; border-color:#f7df95; color:#90641d; }
#statTime strong { color:#7b5415; }
html[data-theme="dark"] #statTime { background:#534529; border-color:#6f5a2b; color:#ffdda1; }
html[data-theme="dark"] #statTime strong { color:#ffdfae; }
.qbox { border:1.5px solid var(--line); border-radius:22px; padding:28px; background:var(--card1); box-shadow:0 10px 22px rgba(57,100,157,.055); }
.questionLabel { display:inline-flex; background:#eaf4ff; color:#2469b1; font-size:11px; letter-spacing:1px; font-weight:1000; padding:7px 10px; border-radius:10px; margin-bottom:14px; }
html[data-theme="dark"] .questionLabel { background:#2a4470; color:#b6d9ff; }
.question { font-size:clamp(25px,3.5vw,40px); line-height:1.28; letter-spacing:-.6px; margin-bottom:23px; }
.answerRow { display:flex; gap:9px; }
input[type="text"] { min-width:0; background:var(--inputbg); border:1.5px solid var(--line); font-weight:800; border-radius:13px; min-height:52px; padding:12px 16px; color:var(--ink); }
input[type="text"]::placeholder { color:var(--muted); font-weight:500; opacity:.85; }
#btnSubmit { min-height:52px; padding:12px 19px; }
#btnNext { background:#eaf4ff; }
.msg { font-size:17px; min-height:0; }
.msg:not(:empty) { border-radius:13px; padding:11px 13px; background:var(--panel); }
.msg.good:not(:empty) { background:var(--mint); }
.msg.bad:not(:empty) { background:#fff0f1; }
html[data-theme="dark"] .msg.bad:not(:empty) { background:#4d2d43; }
.helpPanel { background:var(--panel); border:1px solid var(--line); padding:16px; border-radius:16px; }
.unitBubble { background:var(--card1); border:1px solid var(--line); border-radius:11px; padding:10px 13px; }
.trackWrap { background:var(--panel); border-top:1px solid var(--line); padding:15px 21px 21px; }
.track { border:1px solid #bbe1d2; background:linear-gradient(90deg,#d5f6ed,#effffc) !important; border-radius:14px; height:56px; }
html[data-theme="dark"] .track { background:linear-gradient(90deg,#234e51,#1f3b52) !important; border-color:#395c67; }
.start { background:#bdecd6; border-color:#afe5c9; color:#266345; }
.finish { background:#fff2bd; border-color:#f6e6ae; color:#825d14; }
.runner { font-size:28px; }
.endSticker { width:72px; height:72px; border-radius:20px; display:grid; place-items:center; background:#fff2bd; font-size:41px; margin-bottom:12px; }
#paneEnd h2 { font-size:26px; }
@media(max-width:900px) {
  .grid2 { grid-template-columns:1fr; }
  .welcome { grid-template-columns:minmax(0,1.3fr) minmax(160px,.7fr); }
  .scoresCard { padding-bottom:18px; }
  .trophyArt { width:56px; height:56px; font-size:31px; margin-bottom:10px; }
}
@media(max-width:680px) {
  body { padding:10px 9px 18px; }
  .app { gap:9px; }
  .topbar { border-radius:16px; padding:9px 11px; }
  .logo { width:40px; height:40px; font-size:22px; border-radius:12px; }
  .brandText .title { font-size:15px; }
  .brandText .sub { font-size:10px; }
  .chipRow .chip { display:none; }
  .chipBtn { min-height:36px; padding:8px 10px; }
  .main { border-radius:19px; }
  .pane { padding:12px; }
  .welcome { padding:16px; gap:7px; border-radius:17px; grid-template-columns:minmax(0,1fr) 115px; }
  .welcome h1 { font-size:clamp(23px,6vw,30px); margin:10px 0 7px; }
  .welcome p { font-size:12px; line-height:1.55; }
  .welcomeTag { font-size:9px; letter-spacing:.4px; padding:5px 7px; }
  .welcomeFeatures { display:none; }
  .welcomeVisual { border-radius:14px; padding:3px; transform:rotate(3deg); }
  .card { padding:17px; border-radius:17px; }
  .card-heading h2 { font-size:19px; }
  .card-heading-icon { width:42px; height:42px; font-size:21px; border-radius:13px; }
  .sectionTitle { margin-top:17px; }
  .opts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  label.opt { padding:9px; gap:7px; min-height:65px; }
  .optEmoji { width:28px; height:28px; font-size:16px; }
  .optCopy strong { font-size:12px; }
  .optCopy small { font-size:10px; }
  .opt input { width:17px; height:17px; }
  .seg label { font-size:12px; padding:9px 10px; }
  .gameHeading { margin-bottom:12px; }
  .gameHeading h2 { font-size:21px; }
  .gameSticker { font-size:25px; }
  .stat { flex:1 1 calc(50% - 8px); padding:9px 10px; gap:6px; min-height:48px; font-size:11px; }
  .stat strong { font-size:16px; }
  .qbox { padding:17px; }
  .question { font-size:clamp(24px,6vw,31px); margin-bottom:19px; }
  .answerRow input { flex:1 1 50%; }
  .answerRow #btnSubmit { flex:0 0 auto; }
  .answerRow #btnNext,.answerRow #btnHelp,.answerRow #btnPause,.answerRow #btnStop { flex:1 1 auto; }
  .answerRow button { min-width:0; padding:10px 12px; }
  .trackWrap { padding:11px 13px 16px; }
}
@media(max-width:395px) {
  .welcome { grid-template-columns:minmax(0,1fr) 87px; }
  .welcome h1 { font-size:22px; }
  .welcome p { font-size:11px; }
  .opts { gap:7px; }
  label.opt { padding:8px 6px; gap:5px; }
  .optEmoji { width:25px; height:25px; }
  .optCopy small { font-size:9px; }
  .answerRow #btnSubmit { flex:1 1 100%; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }

/* v0.13 — compacte, volledige startpagina op laptops en desktopcomputers.
   De twee rijen met keuzevakken staan naast elkaar in plaats van onder elkaar.
   Op telefoons blijft de ruime, verticale vormgeving behouden. */
@media (min-width: 960px) {
  body:has(#paneStart.active) { padding: 12px 15px 12px; }
  body:has(#paneStart.active) .app { gap: 10px; }
  body:has(#paneStart.active) .topbar { padding: 8px 13px; border-radius:17px; }
  body:has(#paneStart.active) .logo { width:40px; height:40px; font-size:23px; border-radius:12px; }
  body:has(#paneStart.active) .main { border-radius:19px; }

  #paneStart.active {
    display:grid;
    grid-template-columns:minmax(0, .78fr) minmax(0, 1.22fr);
    grid-template-areas:
      "welcome setup"
      "scores  setup";
    grid-template-rows:auto minmax(0,1fr);
    align-items:stretch;
    gap:11px;
    padding:12px;
  }
  #paneStart > .grid2 { display:contents; }

  #paneStart .welcome {
    grid-area:welcome; margin:0; padding:14px 15px;
    gap:6px; grid-template-columns:minmax(0,1fr) 123px;
    border-radius:18px;
  }
  #paneStart .welcome h1 { font-size:clamp(20px, 2vw, 28px); margin:7px 0 5px; max-width:18ch; line-height:1.12; }
  #paneStart .welcome p { font-size:12px; line-height:1.4; }
  #paneStart .welcomeTag { font-size:9px; letter-spacing:.35px; padding:5px 7px; }
  #paneStart .welcomeFeatures { display:none; }
  #paneStart .welcomeVisual { max-width:123px; padding:3px; border-radius:14px; }

  #paneStart .setupCard {
    grid-area:setup;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.13fr);
    grid-template-areas:
       "intro     intro"
       "modeTitle partsTitle"
       "modeSeg   partsGrid"
       "timeTitle partsGrid"
       "timeSeg   partsGrid"
       "diffTitle diffTitle"
       "diffSeg   diffSeg"
       "start     start";
    grid-template-rows:auto auto auto auto auto auto auto auto;
    align-content:start;
    gap:8px 14px;
    padding:15px;
    border-radius:18px;
    min-width:0;
  }
  #paneStart .setupCard > .card-heading { grid-area:intro; margin:0 0 2px; }
  #paneStart .setupCard > .modeTitle { grid-area:modeTitle; }
  #paneStart .setupCard > .modeSeg { grid-area:modeSeg; }
  #paneStart .setupCard > .partsTitle { grid-area:partsTitle; }
  #paneStart .setupCard > .partsGrid { grid-area:partsGrid; }
  #paneStart .setupCard > .timeTitle { grid-area:timeTitle; }
  #paneStart .setupCard > .timeSeg { grid-area:timeSeg; }
  #paneStart .setupCard > .diffTitle { grid-area:diffTitle; }
  #paneStart .setupCard > .diffSeg { grid-area:diffSeg; }
  #paneStart .setupCard > .startActions { grid-area:start; }
  #paneStart .setupCard .card-heading-icon { width:37px; height:37px; font-size:20px; border-radius:12px; }
  #paneStart .setupCard .card-heading h2 { font-size:18px; margin-bottom:2px; }
  #paneStart .setupCard .card-heading p { font-size:11px; }
  #paneStart .setupCard .sectionTitle { margin:0; align-items:center; }
  #paneStart .setupCard .sectionTitle strong { font-size:12px; }
  #paneStart .setupCard .sectionTitle .right { display:none; }
  #paneStart .setupCard .seg { margin:0; gap:5px; flex-wrap:nowrap; }
  #paneStart .setupCard .seg label { font-size:11px; padding:6px 7px; min-height:41px; flex:1 1 0; border-radius:11px; text-align:center; }
  #paneStart .setupCard .seg label small { font-size:9px; }
  #paneStart .setupCard .opts { margin:0; gap:6px; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:stretch; }
  #paneStart .setupCard label.opt { padding:7px; min-height:53px; gap:6px; border-radius:11px; }
  #paneStart .setupCard .optEmoji { width:26px; height:27px; font-size:16px; border-radius:8px; }
  #paneStart .setupCard .optCopy { gap:2px; }
  #paneStart .setupCard .optCopy strong { font-size:11px; }
  #paneStart .setupCard .optCopy small { font-size:9px; }
  #paneStart .setupCard .opt input { width:17px; height:17px; }
  #paneStart .setupCard .btnrow { margin:3px 0 0; }
  #paneStart #btnStart { min-height:49px; font-size:15px; }

  #paneStart .scoresCard {
    grid-area:scores; min-width:0; min-height:0;
    display:flex; flex-direction:column;
    padding:15px; border-radius:18px;
  }
  #paneStart .scoresCard .trophyArt { position:absolute; top:13px; right:14px; width:43px; height:43px; font-size:25px; border-radius:12px; margin:0; }
  #paneStart .scoresCard .scoreHeading { padding-right:50px; }
  #paneStart .scoresCard .scoreHeading span:first-child { font-size:9px; }
  #paneStart .scoresCard .scoreHeading h2 { font-size:19px; margin:4px 0 7px; }
  #paneStart .scoresCard>p { font-size:12px; line-height:1.35; margin:0 0 8px; }
  #paneStart #startHSPreview { padding:8px; min-height:45px; max-height:142px; overflow-y:auto; scrollbar-width:thin; }
  #paneStart .scoresCard .btnrow { margin-top:9px!important; }
  #paneStart #btnResetHS { min-height:33px; padding:6px 10px; font-size:11px; }
}

/* Minder hoge browservensters: nog iets strakker, zonder knoppen te verbergen. */
@media (min-width: 960px) and (max-height: 670px) {
  body:has(#paneStart.active) { padding:7px 12px; }
  body:has(#paneStart.active) .app { gap:7px; }
  body:has(#paneStart.active) .topbar { padding:6px 11px; }
  #paneStart.active { padding:9px; gap:8px; }
  #paneStart .welcome { padding:9px 11px; }
  #paneStart .welcome h1 { font-size:22px; margin:5px 0 4px; }
  #paneStart .welcome p { font-size:11px; }
  #paneStart .setupCard { padding:11px 12px; gap:6px 11px; }
  #paneStart .setupCard .seg label { min-height:38px; }
  #paneStart .setupCard label.opt { min-height:49px; padding:5px; }
  #paneStart .setupCard .card-heading-icon { width:33px; height:33px; }
  #paneStart #btnStart { min-height:44px; }
  #paneStart .scoresCard { padding:11px; }
  #paneStart .scoresCard .scoreHeading h2 { font-size:17px; }
  #paneStart .scoresCard>p { margin-bottom:6px; }
  #paneStart #startHSPreview { max-height:112px; }
}


/* v0.14 — XP, dagmissie en badges, compact genoeg voor laptopstartscherm */
.chipXp { font-weight:950; color:var(--ink); border-color:color-mix(in srgb,#f7bd40 52%,var(--line)); background:color-mix(in srgb,#fff1c2 54%,var(--card1)); }
.scoreTabs { display:flex; gap:6px; margin:5px 0 9px; }
.scoreTab { flex:1; min-height:34px; border:1px solid var(--line); background:var(--panel); color:var(--ink); font-size:12px; border-radius:11px; box-shadow:none; padding:6px 9px; }
.scoreTab.active { background:color-mix(in srgb,#bfe6ff 46%,var(--card1)); border-color:#5b98dd; color:var(--ink); }
.scoreTab:focus-visible { outline:3px solid #e8ad34; outline-offset:2px; }
#startRewards[hidden], #startHSPreview[hidden], #resetHSRow[hidden], .badgeToast[hidden] { display:none!important; }
#startRewards { border:1px solid var(--line); border-radius:13px; background:var(--card1); padding:10px 12px; min-width:0; }
.rewardTitle { display:flex; align-items:center; justify-content:space-between; gap:6px; color:var(--ink); font-size:12px; }
.rewardTitle strong { font-size:13px; white-space:nowrap; }
.rewardTitle span { font-size:11px; color:var(--muted); text-align:right; }
.rewardMeter { height:8px; border-radius:99px; overflow:hidden; background:color-mix(in srgb,var(--line) 67%,var(--card1)); margin:6px 0 10px; }
.rewardMeter span { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#5287ff,#9e6dff); transition:width .3s; }
.dailyTitle { margin-top:2px; }
.dailyMeter { margin-bottom:8px; }
.dailyMeter span { background:linear-gradient(90deg,#21b493,#5cce81); }
.badgeDetails { border-top:1px solid var(--line); padding-top:8px; }
.badgeDetails summary { font-size:12px; cursor:pointer; color:var(--ink); font-weight:850; display:flex; align-items:center; gap:8px; list-style:none; }
.badgeDetails summary::-webkit-details-marker {display:none;}
.badgeDetails summary:before { content:'▸'; color:var(--muted); font-size:13px; }
.badgeDetails[open] summary:before { content:'▾'; }
.badgeMini { margin-left:auto; white-space:nowrap; font-size:15px; }
.badgeGrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:170px; overflow-y:auto; margin-top:9px; }
.rewardBadge { display:flex; align-items:center; gap:7px; min-width:0; border:1px solid var(--line); background:var(--panel); border-radius:9px; padding:7px; font-size:12px; }
.rewardBadge>span:first-child { font-size:18px; flex-shrink:0; }
.rewardBadge strong { font-size:11px; display:block; color:var(--ink); }
.rewardBadge small { font-size:10px; line-height:1.25; display:block; color:var(--muted); }
.rewardBadge.locked { opacity:.58; }
.badgeCheck { margin-left:auto; flex-shrink:0; }
.rewardNote { margin:9px 0 5px; color:var(--muted); font-size:11px; }
#btnResetRewards { min-height:32px; font-size:11px; padding:4px 9px; }
.gameRewardStatus { font-size:13px; font-weight:900; color:var(--ink); border:1px solid var(--line); border-radius:12px; background:var(--panel); padding:9px 12px; margin-bottom:12px; }
.endRewards { display:flex; flex-direction:column; align-items:flex-start; gap:4px; margin:10px 0 12px; padding:12px 14px; background:color-mix(in srgb,#cde9ff 45%,var(--card1)); border:1px solid var(--line); border-radius:12px; }
.endRewards strong { font-size:16px; }
.endRewards span { font-size:12px; color:var(--muted); }
.newBadges { font-size:13px; font-weight:900; color:var(--ink); }
.badgeToast { position:fixed; z-index:100; bottom:20px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 30px); background:#19345b; color:#fff; border:2px solid #fbc64d; border-radius:16px; padding:13px 17px; box-shadow:0 14px 40px #121a3530; font-size:14px; font-weight:900; pointer-events:none; text-align:center; }
@media (min-width:960px){
  #paneStart .scoresCard .scoreHeading h2 { margin:4px 0 5px; }
  #paneStart .scoreTabs { margin:4px 0 7px; }
  #paneStart .scoreTab { min-height:29px; font-size:11px; padding:4px 8px; }
  #paneStart #startRewards { padding:8px 10px; }
  #paneStart .rewardTitle { font-size:11px; }
  #paneStart .rewardTitle strong { font-size:12px; }
  #paneStart .rewardMeter { height:7px; margin:4px 0 8px; }
  #paneStart .dailyMeter { margin-bottom:6px; }
  #paneStart .badgeDetails { padding-top:6px; }
  #paneStart #startHSPreview { min-height:45px; }
}
@media (min-width:960px) and (max-height:670px){
  #paneStart #startRewards { padding:6px 9px; }
  #paneStart .scoreTabs { margin:2px 0 5px; }
  #paneStart .rewardTitle strong { font-size:11px; }
  #paneStart .rewardMeter { margin:3px 0 6px; height:6px; }
  #paneStart .badgeDetails { padding-top:5px; }
}
@media (max-width:680px){
  .chipRow .chipXp { display:inline-flex; align-items:center; font-size:11px; padding:6px 8px; }
  .chipXp .xpAmount { display:none; }
  .scoreTabs { margin-top:7px; }
  #startRewards { padding:12px; }
  .gameRewardStatus { font-size:12px; }
}
@media (max-width:360px){
  .brandText .sub { display:none; }
  .brandText .title { font-size:13px; }
  .chipRow { gap:5px; }
  .chipXp { font-size:10px; }
  .badgeGrid {grid-template-columns:1fr;}
}

/* Vervang de algemene blauwe knopstijl op de twee selectietabbladen. */
button.scoreTab { background:var(--panel)!important; color:var(--ink)!important; box-shadow:none!important; }
button.scoreTab.active { background:color-mix(in srgb,#acd9ff 55%,var(--card1))!important; border-color:#5288ea; }
button.scoreTab:hover { filter:none!important; border-color:#5288ea; }
/* Uitgeklapte badges scrollen IN het prestatiesvak, niet over de hele laptop-pagina. */
@media (min-width:960px){
  #paneStart .scoresCard { max-height:calc(100dvh - 255px); overflow-y:auto; scrollbar-width:thin; }
}
@media (min-width:960px){
  #paneStart .scoresCard { max-height:clamp(230px, calc(100dvh - 335px), 430px); }
}
