:root {
  --bg: #0b1220; --panel: #131c2e; --panel2: #1a2740; --line: #26344f; --text: #e8eefc; --muted: #8fa0c0;
  --accent: #ff4d5e; --accent2: #2ecc71; --gold: #f7c948; --blue: #4da3ff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0 0 10px; }
h2 { font-size: 20px; } h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }

/* nav */
.nav { display: flex; gap: 6px; align-items: center; padding: 10px 16px; background: #0e1729; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; overflow-x: auto; }
.nav .brand { font-weight: 800; margin-right: 10px; white-space: nowrap; color: #fff; }
.nav .brand b { color: var(--accent); }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.nav a.on, .nav a:hover { background: var(--panel2); color: #fff; }
.nav .navsp { flex: 1; }

/* generic */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.sb { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
button, .btn { font: inherit; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; }
button:hover { border-color: #3a4d73; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.good { background: var(--accent2); border-color: var(--accent2); color: #04210f; }
button.ghost { background: transparent; }
button.sm { padding: 5px 9px; font-size: 13px; }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea { font: inherit; background: #0d1626; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; }
input[type=checkbox] { width: auto; }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
label.f > input, label.f > select, label.f > textarea { margin-top: 4px; color: var(--text); font-size: 15px; }
.fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.me td { background: #16233b; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--panel2); }
.pill.live { background: var(--accent); color: #fff; animation: pulse 1.6s infinite; }
.pill.done { background: #1d3b2a; color: #7ee2a8; }
@keyframes pulse { 50% { opacity: .65; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; user-select: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: #0d1626; }
.pills input { display: none; }
.pills label:has(input:checked) { background: var(--accent2); color: #04210f; border-color: var(--accent2); font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.err { color: #ff8c97; margin: 8px 0; }

/* match card (shared by home, tv, spectator) */
.mc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; color: inherit; }
.mc .mh { display: flex; justify-content: space-between; padding: 8px 14px; background: #0e1729; color: var(--muted); font-size: 13px; gap: 8px; }
.mc .pr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.mc .pr.turn { background: #1a2a1a; box-shadow: inset 4px 0 0 var(--accent2); }
.mc .pn { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .pn small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.mc .rem { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }
.mc .lg { font-size: 26px; font-weight: 800; min-width: 38px; text-align: center; color: var(--gold); }
.mc .hint { padding: 6px 14px; font-size: 14px; color: var(--gold); border-top: 1px dashed var(--line); background: #1b1a10; }
.mc.big .pn { font-size: 30px; } .mc.big .rem { font-size: 84px; min-width: 190px; } .mc.big .lg { font-size: 48px; min-width: 60px; }
.mc.big .mh { font-size: 18px; padding: 12px 20px; } .mc.big .pr { padding: 16px 22px; } .mc.big .hint { font-size: 26px; padding: 10px 22px; }

/* TV */
body.tv { overflow: hidden; }
.tvwrap { min-height: 100vh; padding: 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.tvhead { display: flex; justify-content: space-between; align-items: baseline; }
.tvhead h1 { font-size: 34px; margin: 0; } .tvhead .clock { font-size: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tvgrid { display: grid; gap: 18px; flex: 1; align-content: start; }
.tvgrid.n1 { grid-template-columns: 1fr; } .tvgrid.n2, .tvgrid.n4 { grid-template-columns: 1fr 1fr; } .tvgrid.n3 { grid-template-columns: 1fr 1fr; }
.tvgrid.n1 .mc .rem { font-size: 130px; min-width: 300px; } .tvgrid.n1 .mc .pn { font-size: 46px; } .tvgrid.n1 .mc .lg { font-size: 80px; }
.tvpanel table td, .tvpanel table th { font-size: 22px; padding: 12px 10px; } .tvpanel h2 { font-size: 30px; }
.tvfoot { display: flex; gap: 22px; overflow: hidden; color: var(--muted); font-size: 18px; white-space: nowrap; }
.tvfoot b { color: var(--text); }

/* scorer */
body.scorer { overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sc { height: 100vh; height: 100dvh; display: flex; flex-direction: column; max-width: 1100px; margin: 0 auto; }
.sc-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #0e1729; border-bottom: 1px solid var(--line); }
.sc-top .t { flex: 1; text-align: center; font-weight: 700; }
.sc-top .t span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.sc-players { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; }
.sp { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; position: relative; }
.sp.turn { border-color: var(--accent2); background: #14261e; }
.sp .nm { font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 6px; }
.sp .big { font-size: clamp(56px, 13vw, 120px); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sp .st { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.sp .st b { color: var(--text); }
.sp .legs { position: absolute; top: 10px; right: 12px; font-size: 26px; font-weight: 900; color: var(--gold); }
.sc-hint { text-align: center; min-height: 38px; font-size: 22px; font-weight: 800; color: var(--gold); padding: 2px 12px; }
.sc-input { display: flex; gap: 10px; padding: 0 12px 8px; align-items: stretch; }
.sc-disp { flex: 1; background: #0d1626; border: 2px solid var(--line); border-radius: 14px; font-size: 44px; font-weight: 900; text-align: center; padding: 6px; min-height: 64px; font-variant-numeric: tabular-nums; }
.sc-disp.bad { border-color: var(--accent); color: #ff8c97; }
.sc-disp small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.sc-pad { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 8px; padding: 0 12px 12px; min-height: 0; }
.sc-pad button { font-size: 28px; font-weight: 800; border-radius: 14px; padding: 0; }
.sc-pad .quick { display: grid; grid-template-rows: repeat(5, 1fr); gap: 8px; }
.sc-pad .quick button { font-size: 20px; background: #1c2d4a; }
.sc-pad .keys { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 8px; }
.sc-pad .ok { background: var(--accent2); color: #04210f; border-color: var(--accent2); }
.sc-pad .del { background: #3a2030; }
.sc-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 12px 12px; }
.sc-row button { font-size: 22px; font-weight: 800; padding: 12px 0; background: #1c2d4a; border-radius: 14px; }
.overlay { position: fixed; inset: 0; background: rgba(5, 9, 18, .85); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(560px, 100%); max-height: 92vh; overflow: auto; }
.modal h2 { text-align: center; }
.bigbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.bigbtns button { font-size: 30px; padding: 18px 0; }
.net { position: fixed; left: 50%; transform: translateX(-50%); top: 6px; background: var(--accent); color: #fff; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; z-index: 60; }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px); background: #fff; color: #111; padding: 10px 16px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--panel2); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 24px; } .stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .mc .rem { font-size: 32px; min-width: 70px; } .wrap { padding: 10px; }
  .sc-players { gap: 6px; padding: 6px; } .sp { padding: 8px 10px; } .sp .nm { font-size: 16px; }
  .sc-pad button { font-size: 24px; }
}
@media (max-height: 640px) {
  .sp .big { font-size: clamp(40px, 9vw, 80px); } .sc-disp { font-size: 30px; min-height: 46px; } .sc-hint { min-height: 28px; font-size: 18px; }
}
@media print { .nav, button { display: none !important; } body { background: #fff; color: #000; } .card { border-color: #999; background: #fff; } }
.mc.big .pn small { font-size: 18px; margin-top: 2px; }
.tvgrid.n1 .mc .pn small { font-size: 26px; }
.wrap > .grid.c2 { margin-bottom: 20px; }

.sc-input #x-rest { min-width: 128px; font-size: 15px; background: #1c2d4a; border-radius: 14px; }
.sc-input #x-rest.on { background: var(--gold); color: #231a00; border-color: var(--gold); }
.sc-disp.rest { border-color: var(--gold); }
.sp .big.tap { cursor: pointer; text-decoration: underline dotted var(--muted); text-underline-offset: 8px; text-decoration-thickness: 2px; }

.sp .lu { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }

.fr { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fr .f { margin: 0; flex: 1 1 90px; min-width: 80px; }
.fr .f:nth-child(2) { flex: 2 1 140px; }
.fr .fx-l { flex: 0 0 auto; min-width: 0; text-align: center; }
.fr .fx-l input { width: 22px; height: 22px; margin: 8px auto 0; display: block; }
.fr .frd { flex: 0 0 auto; }
.tvteam { display: flex; flex-direction: column; gap: 10px; }
.tvgrid .tvteam .mc:not(.big) .pn { font-size: 26px; } .tvgrid .tvteam .mc:not(.big) .lg { font-size: 40px; } .tvgrid .tvteam .mc:not(.big) .rem { font-size: 30px; min-width: 40px; }
.tvgrid .tvteam .mc:not(.big) .pr { padding: 6px 20px; } .tvgrid .tvteam .mc:not(.big) .mh { padding: 8px 20px; font-size: 16px; }
.tvgrid .tvteam .mc.big .pn { font-size: 34px; } .tvgrid .tvteam .mc.big .lg { font-size: 56px; } .tvgrid .tvteam .mc.big .rem { font-size: 96px; min-width: 220px; }
.tvgrid .tvteam .mc.big .pr { padding: 10px 22px; } .tvgrid .tvteam .mc.big .mh { padding: 8px 20px; font-size: 16px; }

/* Touch (tablet/telefoon): grotere tikdoelen voor kleine knoppen */
@media (pointer: coarse) {
  button.sm, .btn.sm { min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .fr select, .fr input { min-height: 44px; }
}

/* ---------- platform ---------- */
.pf-top { display: flex; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: #0d1626; }
.pf-brand { color: var(--text); text-decoration: none; font-size: 18px; }
.pf-wide { max-width: 1100px; }
.pf-hero { text-align: center; padding: 36px 0 26px; }
.pf-hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 0 auto 12px; max-width: 760px; text-wrap: balance; }
.pf-hero p { color: var(--muted); max-width: 640px; margin: 0 auto 22px; font-size: 17px; }
.pf-ico { font-size: 28px; margin-bottom: 4px; }
.pf-feats, .pf-cols { margin-top: 14px; align-items: start; }
.pf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.pf-tabs a { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); text-decoration: none; background: #0d1626; }
.pf-tabs a.on { background: var(--accent2); color: #04210f; border-color: var(--accent2); font-weight: 700; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pf-stat .pf-num { font-size: 28px; font-weight: 800; margin: 4px 0; }
.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th, .pf-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.pf-table th.n, .pf-table td.n { text-align: right; }
.pf-row { cursor: pointer; } .pf-row:hover { background: #111c30; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #243149; color: var(--text); }
.st-active { background: #134d2a; color: #8ff0b0; } .st-trial { background: #1c3a63; color: #9ccbff; } .st-due { background: #5a3a0a; color: #ffd28a; } .st-susp { background: #5a1a22; color: #ffa3ad; }
.pf-modal { max-width: 720px; width: calc(100% - 24px); max-height: calc(100vh - 24px); overflow: auto; text-align: left; }
.pf-banner { background: #1c3a63; color: #dbeaff; padding: 9px max(16px, env(safe-area-inset-left, 0px)); text-align: center; font-size: 14px; }
.pf-banner.bad { background: #5a1a22; color: #ffd6da; } .pf-banner a { color: inherit; font-weight: 700; text-decoration: underline; }
.pf-alert { padding: 12px 14px; border-radius: 10px; background: #1c2a45; border: 1px solid var(--line); margin-bottom: 12px; } .pf-alert.bad { background: #3a1219; border-color: #7a2a35; }
.err { color: #ff8a94; min-height: 1.2em; margin: 4px 0 8px; }
code { background: #0d1626; padding: 1px 6px; border-radius: 5px; font-size: 12px; word-break: break-all; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
a.btn { text-decoration: none; display: inline-block; }
.pf-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
@media (max-width: 760px) { .pf-cols { grid-template-columns: 1fr; } .pf-table { font-size: 14px; } }

/* tournaments */
.bracket{display:flex;gap:18px;overflow-x:auto;padding-bottom:8px}
.bcol{min-width:200px;flex:0 0 auto;display:flex;flex-direction:column}.bcm{flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:10px}
.bm{border:1px solid var(--line);border-radius:10px;padding:6px 8px;background:var(--card2,transparent)}
.bs{display:flex;justify-content:space-between;gap:8px;padding:3px 0}.bs.win{font-weight:800;color:var(--accent,#3ddc84)}
.champ{font-size:22px;font-weight:800;margin:4px 0 10px}
tr.adv td:first-child{border-left:3px solid var(--accent,#3ddc84)}
/* result form */
.sheet{background:#fff;color:#111;max-width:780px;margin:0 auto;padding:24px;border-radius:8px}
.sheet h1{font-size:22px;margin:0 0 10px;color:#111}
.sheet table{width:100%;border-collapse:collapse;margin:8px 0}.sheet td,.sheet th{border:1px solid #444;padding:7px 8px;color:#111;text-align:left}
.sheet .c{text-align:center}.sheet .small{font-size:12px;color:#444}.sheet .box{border:1px solid #444;height:90px}
.sheet .sig{display:flex;gap:30px;margin-top:30px}.sheet .sig div{flex:1;font-size:12px}.sheet .sig span{display:block;border-bottom:1px solid #111;height:34px}
@media print{body{background:#fff!important}.noprint,.nav,.pf-banner,.demo,.toast{display:none!important}.sheet{box-shadow:none;padding:0;max-width:none}}

/* embedded in another website (?embed=1) */
body.embed .brand, body.embed .navsp, body.embed .nav a[href="#/login"], body.embed .nav a[href="#/admin"], body.embed .nav a[href="#/new-match"], body.embed .nav a[href="#/billing"], body.embed .pf-banner { display: none !important; }
body.embed { background: transparent; }

/* wedstrijdnamen: goed leesbaar (wit/goud) i.p.v. link-blauw */
a.mlink b { color: #fff; font-weight: 800; }
a.mlink .vs { color: var(--gold); font-weight: 800; }
a.mlink:hover b { color: var(--gold); }

.pill.called { background: var(--gold); color: #251c00; animation: pulse 1.6s infinite; }
button.call { background: #3a2f10; border-color: var(--gold); color: var(--gold); }
.tvcall { background: linear-gradient(135deg, #3a2f10, #5a4710); border: 3px solid var(--gold); border-radius: 18px; padding: 18px 26px; margin-bottom: 18px; text-align: center; animation: pulse 2.2s infinite; }
.tvcall-h { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 24px; }
.tvcall-b { font-size: 84px; font-weight: 900; line-height: 1.05; color: #fff; }
.tvcall-n { font-size: 44px; font-weight: 800; color: #fff; } .tvcall-n span { color: var(--gold); }
.tvcall-s { font-size: 22px; color: #ffe9a6; margin-top: 4px; }

a.mc:has(.pill.called) { border-color: var(--gold); }

.ctag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-weight: 800; font-size: .95em; background: #1c2f4d; color: #9fd0ff; margin-right: 6px; }
.ctag.t { background: #3a2f10; color: var(--gold); }
.tvgrid .ctag { font-size: 18px; padding: 3px 12px; }

.pill.wo { background: #3a1d1d; color: #ff9a9a; }

.lane { max-width: 900px; margin: 0 auto; padding: 16px; text-align: center; }
.lane-top { display: flex; justify-content: space-between; font-size: 20px; margin-bottom: 18px; color: var(--muted); }
.lane-top span { font-weight: 800; color: #fff; }
.lane-card, .lane-wait { background: var(--panel); border: 2px solid var(--gold); border-radius: 20px; padding: 28px 20px; display: grid; gap: 14px; }
.lane-wait { border-color: var(--line); padding: 60px 20px; }
.lane-big { font-size: 64px; font-weight: 900; line-height: 1; color: #fff; }
.lane-names { display: grid; gap: 6px; } .lane-names b { font-size: 40px; } .lane-names span { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lane-go { font-size: 28px; padding: 22px 16px; border-radius: 16px; }

/* tv: alle wedstrijden tegelijk in beeld (compact raster bij veel banen) */
body.tv .tvwrap { height: 100vh; min-height: 0; overflow: hidden; }
#tv-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tvgrid.dense { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: .9vw; align-content: stretch; }
.tvgrid.dense3 { grid-template-columns: repeat(3, 1fr); } .tvgrid.dense4 { grid-template-columns: repeat(4, 1fr); }
.tvgrid.dense .mc { display: flex; flex-direction: column; min-height: 0; }
.tvgrid.dense .mc .pr { flex: 1; padding: .3vw .8vw; gap: .6vw; }
.tvgrid.dense .mc .hint { display: none; } .tvgrid.dense .mc .pn small { display: none; }
.tvgrid.dense .ctag { font-size: inherit; padding: 0 .5vw; margin-right: .4vw; }
.tvgrid.dense3 .mc .mh { font-size: 1vw; padding: .4vw .8vw; } .tvgrid.dense3 .mc .pn { font-size: 1.7vw; } .tvgrid.dense3 .mc .rem { font-size: 3.6vw; min-width: 5.5vw; } .tvgrid.dense3 .mc .lg { font-size: 2.4vw; min-width: 2.6vw; }
.tvgrid.dense4 .mc .mh { font-size: .85vw; padding: .3vw .7vw; } .tvgrid.dense4 .mc .pn { font-size: 1.35vw; } .tvgrid.dense4 .mc .rem { font-size: 2.8vw; min-width: 4.2vw; } .tvgrid.dense4 .mc .lg { font-size: 1.9vw; min-width: 2vw; }
.tvgrid.dense .mc .pill { font-size: .8vw; padding: .15vw .6vw; }
.tvpage { text-align: center; color: var(--muted); font-size: 1.1vw; padding-top: .4vw; }

/* logo */
.logo-img { display: inline-block; vertical-align: middle; object-fit: contain; }
.logo-img.nav { height: 30px; max-width: 120px; margin-right: 8px; }
.logo-img.tv { height: 1.4em; max-width: 4em; margin-right: .35em; }
.logo-img.lane { height: 40px; max-width: 160px; margin-right: 10px; }
.logo-img.sheet { height: 46px; max-width: 160px; margin-bottom: 4px; }
.logo-img.prev { height: 72px; max-width: 240px; }
.logo-prev { background: repeating-conic-gradient(#1a2640 0% 25%, #121c30 0% 50%) 50% / 16px 16px; border-radius: 10px; padding: 10px; }
.sheet .logo-img { background: #fff; }

button.sm.on { background: #1d3b2a; border-color: var(--accent2); color: #7ee2a8; }
.logo-img.nav { height: 44px; max-width: 220px; }
.logo-img.tv { height: 1.9em; max-width: 6em; }
.logo-img.lane { height: 72px; max-width: 260px; }
.logo-img.sheet { height: 64px; max-width: 220px; }
.nav { min-height: 58px; }

.lane-list { display: grid; gap: 10px; margin-top: 14px; }
.lane-pick { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 14px; font-size: 26px; }
.lane-pick .lp-n b { font-weight: 800; } .lane-pick .lp-n i { color: var(--gold); font-style: normal; }
.lane-pick .lp-c { font-size: 16px; }

.lane-home { display: grid; gap: 14px; margin-top: 8px; }
.lane-choice { display: grid; gap: 6px; text-align: left; padding: 26px 22px; border-radius: 18px; }
.lane-choice b { font-size: 30px; } .lane-choice span { font-size: 17px; opacity: .75; font-weight: 400; }
.lane-form { display: grid; gap: 12px; margin: 14px 0; text-align: left; }
.lane-form label { display: grid; gap: 4px; font-size: 15px; } .lane-form input { font-size: 26px; padding: 14px; }
.lane-form .seg { display: flex; gap: 8px; } .lane-form .seg button { flex: 1; padding: 14px 6px; font-size: 18px; }
.lane-form .seg button.on { background: var(--gold, #f5b700); color: #111; font-weight: 700; }
.lane-pin { font-size: 36px; text-align: center; letter-spacing: 8px; padding: 14px; margin: 14px 0; width: 100%; box-sizing: border-box; }

.lane-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .lane-2 > label { min-width: 0; }
.lane-side { display: grid; gap: 8px; align-content: start; } .lane-side > b { font-size: 18px; color: var(--gold, #f5b700); }
.lane-form input { min-width: 0; width: 100%; box-sizing: border-box; }
.lane-card > .seg { display: flex; gap: 8px; margin: 10px 0; } .lane-card > .seg button { flex: 1; padding: 14px 6px; font-size: 18px; }
.lane-card > .seg button.on { background: var(--gold, #f5b700); color: #111; font-weight: 700; }
@media (max-width: 600px) { .lane-2 { grid-template-columns: 1fr; } }

/* TV-weergave op een smalle telefoon: namen + score moeten allebei passen */
@media (max-width: 700px) {
  .tvgrid.n1 .mc .rem, .tvgrid.n1 .mc.big .rem { font-size: 17vw; min-width: 0; }
  .tvgrid.n1 .mc .pn, .tvgrid.n1 .mc.big .pn { font-size: 6vw; }
  .tvgrid.n1 .mc .pn small, .tvgrid.n1 .mc.big .pn small { font-size: 3.5vw; }
  .tvgrid.n1 .mc .lg, .tvgrid.n1 .mc.big .lg { font-size: 10vw; min-width: 8vw; }
  .tvgrid.n2, .tvgrid.n3, .tvgrid.n4 { grid-template-columns: 1fr; }
  .tvgrid .mc.big .pr, .tvgrid.n1 .mc.big .pr { padding: 10px 14px; gap: 8px; }
  .tvgrid .mc.big .mh { font-size: 13px; padding: 8px 14px; }
  .tvgrid .tvteam .mc.big .rem { font-size: 16vw; min-width: 0; } .tvgrid .tvteam .mc.big .pn { font-size: 5.5vw; } .tvgrid .tvteam .mc.big .lg { font-size: 9vw; }
  .tvgrid .tvpanel table td, .tvgrid .tvpanel table th { font-size: 14px; padding: 8px 6px; } .tvpanel h2 { font-size: 20px; }
  .tvhead h1 { font-size: 22px; } .tvhead .clock { font-size: 26px; }
}
