/* Beleggingsgame · ABN AMRO MeesPierson
   Drie schermen: body.present (beamer, 1920×1080), body.admin (regie), body.player (telefoon). */
:root {
  --petrol: #00453f;
  --petrol-2: #004c4c;
  --petrol-3: #00332f;
  --teal: #00a091;
  --mint: #a8dcd4;
  --mint-2: #d9f0ec;
  --yellow: #ffd200;
  --yellow-2: #f5c400;
  --ink: #12302d;
  --muted: #5b6e6b;
  --line: #dbe4e2;
  --surface: #f3f6f5;
  --card: #ffffff;
  --up: #0a7d4f;
  --down: #c2362b;
  --up-dark: #7fe0b5;
  --down-dark: #ff9d91;
  --paper: #f4efe2;
  --paper-ink: #1a1a1a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 40, 36, .06), 0 8px 24px rgba(0, 40, 36, .07);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; font-family: var(--sans); color: var(--ink); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.hidden { display: none !important; }
b, .code { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
kbd { font: 600 .8em var(--sans); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; font-weight: 650; font-size: 1rem; background: #fff; color: var(--ink); text-decoration: none; transition: transform .12s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s; }
.btn:hover:not(:disabled) { border-color: #b9c9c6; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: #1d1d1b; box-shadow: 0 6px 18px rgba(245, 196, 0, .35); }
.btn.primary:hover:not(:disabled) { background: #ffdb33; border-color: #ffdb33; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.big { padding: 16px 26px; font-size: 1.1rem; border-radius: 14px; }
.btn.small { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn.light { background: #fff; border-color: #fff; color: var(--petrol); }
.btn.ghost-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.ghost-light:hover { border-color: #fff; }

/* ---------- formulieren ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fff; font-size: 1.05rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 160, 145, .15); }
.field input:disabled { background: var(--surface); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; gap: 8px; align-items: center; }
.seg label { cursor: pointer; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: inline-block; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; background: #fff; transition: all .2s; }
.seg label input:checked + span { border-color: var(--petrol); background: var(--petrol); color: #fff; }
.seg input#max { width: 90px; }
.error-msg { background: #fdecea; color: #8d241b; border: 1px solid #f5c6c1; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: 22px; display: grid; gap: 8px; justify-items: center; z-index: 90; pointer-events: none; }
body:has(.dock) #toasts { bottom: auto; top: 76px; }
.toast { background: var(--petrol); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 40, 36, .25); max-width: 92vw; font-weight: 600; animation: toast .35s var(--ease); }
.toast.error { background: #b3261e; }
.toast.ok { background: #0a6b45; }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

/* ---------- krant ---------- */
.np-photo { margin: 0; position: relative; line-height: 0; border-radius: 12px; overflow: hidden; background: #fcf1e4; box-shadow: 0 30px 70px rgba(0, 20, 18, .35); }
.np-photo img { width: 100%; height: auto; display: block; }
.np-photo::after { content: ''; position: absolute; right: 0; bottom: 0; width: 6%; height: 7%; background: #fcf1e4; }
.np-photo .np-fallback { display: none; line-height: normal; }
.np-photo.noimg { background: none; box-shadow: none; overflow: visible; }
.np-photo.noimg .np-fallback { display: block; }
.np-photo.noimg::after { display: none; }
.newspaper { background: var(--paper); color: var(--paper-ink); font-family: var(--serif); border-radius: 8px; padding: 22px 28px 26px; }
.np-head { text-align: center; }
.np-rule { height: 4px; background: var(--paper-ink); } .np-rule.thin { height: 1.5px; margin-top: 6px; }
.np-name { margin: 8px 0 2px; font-size: 3em; letter-spacing: .04em; font-weight: 800; text-transform: uppercase; }
.np-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: .72em; letter-spacing: .12em; text-transform: uppercase; padding: 4px 2px; }
.np-title { font-weight: 700; }
.np-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; }
.np-item { padding: 16px 18px; background: #f6d9cf; border-radius: 4px; }
.np-item h3 { font-size: 1.3em; line-height: 1.2; }
.np-item p { margin: 6px 0 0; font-size: .86em; line-height: 1.3; color: #444; }
.newspaper.compact { padding: 14px 16px 16px; }
.newspaper.compact .np-name { font-size: 1.8em; }
.newspaper.compact .np-cols { grid-template-columns: 1fr; gap: 8px; }
.newspaper.compact .np-item { padding: 10px 12px; }

/* =====================================================================
   PRESENTATIE (beamer): vast canvas 1920×1080
   ===================================================================== */
body.present { background: var(--petrol-3); overflow: hidden; color: #fff; }
.stage-wrap { position: fixed; inset: 0; overflow: hidden; }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 52, 48, .55), rgba(0, 40, 37, .78)), url('/img/chevron.jpg') center / cover, var(--petrol); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
body.present.offline .stage::after { content: 'Verbinding met de server is weg · opnieuw verbinden…'; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: #b3261e; color: #fff; font-size: 22px; font-weight: 600; padding: 12px 22px; border-radius: 999px; }

.pr { position: absolute; inset: 0; display: grid; grid-template-rows: 128px 1fr; padding: 0 88px 64px; }
.pr .up { color: var(--up-dark); } .pr .down { color: var(--down-dark); } .pr .flat { color: var(--mint); }
.pr .kicker { color: var(--yellow); font-size: 22px; letter-spacing: .2em; }
.pr h2 { font-size: 72px; font-weight: 700; color: #fff; line-height: 1.02; letter-spacing: -.02em; }
.pr .display { font-size: 150px; font-weight: 800; line-height: .92; color: var(--yellow); letter-spacing: -.035em; }
.pr .sub { font-size: 28px; color: var(--mint); margin: 18px 0 0; line-height: 1.35; }

.pr-top { display: flex; align-items: center; gap: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pr-top .logo { height: 40px; width: auto; display: block; }
.pr-rounds { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pr-rounds small { font-size: 16px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-right: 6px; }
.rd { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .55); border: 2px solid rgba(255, 255, 255, .22); }
.rd.done { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
.rd.on { background: var(--yellow); border-color: var(--yellow); color: var(--petrol); box-shadow: 0 0 0 6px rgba(255, 210, 0, .18); }
.pr-steps { display: flex; gap: 6px; background: rgba(0, 0, 0, .18); padding: 6px; border-radius: 999px; }
.pr-steps span { font-size: 17px; font-weight: 600; padding: 9px 18px; border-radius: 999px; color: rgba(255, 255, 255, .5); }
.pr-steps span.done { color: rgba(255, 255, 255, .8); }
.pr-steps span.on { background: #fff; color: var(--petrol); }
.pr-join { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 8px 10px 8px 22px; font-size: 19px; color: var(--mint); }
.ph-lobby .pr-join { margin-left: auto; visibility: hidden; }
.pr-join b { background: var(--yellow); color: var(--petrol); border-radius: 999px; padding: 6px 16px; font-size: 22px; letter-spacing: .12em; }
.pr-main { position: relative; min-height: 0; padding-top: 52px; }

/* lobby */
.ph-lobby .pr-main { display: grid; grid-template-columns: 1fr 640px; grid-template-rows: 1fr auto; column-gap: 80px; row-gap: 36px; }
.lobby-l { align-self: center; animation: rise .9s var(--ease) both; }
.lobby-l .kicker { margin-bottom: 26px; }
.join-card { display: flex; align-items: center; gap: 40px; margin-top: 52px; background: #fff; color: var(--ink); border-radius: 28px; padding: 30px 44px 30px 30px; width: fit-content; box-shadow: 0 30px 80px rgba(0, 20, 18, .35); }
.join-card .qr { width: 250px; height: 250px; flex: none; }
.join-card .qr svg { width: 100%; height: 100%; display: block; }
.join-txt { display: grid; gap: 4px; }
.join-txt small { font-size: 22px; color: var(--muted); }
.join-txt b { font-size: 38px; color: var(--petrol); margin-bottom: 14px; }
.join-txt .code { margin-top: 8px; font-size: 92px; font-weight: 800; letter-spacing: .1em; color: var(--petrol); line-height: 1; padding: 14px 26px; background: var(--mint-2); border-radius: 18px; width: fit-content; }
.lobby-r { grid-row: 1 / 2; grid-column: 2; position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 20, 18, .35); animation: rise 1.1s .1s var(--ease) both; }
.lobby-r::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(90deg, var(--teal) 0 50%, var(--yellow) 50%); }
.lobby-r img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lobby-teams { grid-column: 1 / -1; display: flex; align-items: center; gap: 36px; min-height: 92px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 28px; }
.lobby-teams .count { display: flex; align-items: baseline; gap: 14px; flex: none; }
.lobby-teams .count b { font-size: 72px; font-weight: 800; color: var(--yellow); line-height: 1; }
.lobby-teams .count span { font-size: 24px; color: var(--mint); }
.tchips { display: flex; flex-wrap: wrap; gap: 12px; }
.tchip { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; padding: 12px 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff; animation: pop .5s var(--ease) both; }
.tchip.off { opacity: .45; }
.tchip.ghost { background: none; border-style: dashed; color: var(--mint); font-weight: 500; }
.tchip.done { background: var(--teal); border-color: var(--teal); }
.tchip i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; font-size: 17px; font-weight: 800; }

/* nieuws */
.head-t { display: flex; align-items: baseline; gap: 28px; margin-bottom: 30px; animation: rise .7s var(--ease) both; }
.head-t .kicker { order: 2; }
.ph-headline .pr-main, .ph-reveal .pr-main, .ph-results .pr-main { display: flex; flex-direction: column; }
.paper-big { flex: 1; min-height: 0; display: grid; place-items: center; animation: paper 1s .15s var(--ease) both; }
.paper-big .np-photo { height: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
.paper-big .np-photo img { height: 100%; object-fit: contain; }
.paper-big .np-photo.noimg { height: auto; aspect-ratio: auto; width: 100%; font-size: 22px; }

/* verdelen */
.ph-open .pr-main { display: grid; grid-template-columns: 1fr 640px; gap: 80px; align-items: center; }
.open-l { animation: rise .8s var(--ease) both; }
.open-l .np-photo { font-size: 16px; }
.open-r { animation: rise .8s .1s var(--ease) both; }
.open-r .kicker { margin-bottom: 18px; }
.ring-row { margin: 44px 0 36px; }
.ring { --p: 0; width: 300px; height: 300px; border-radius: 50%; position: relative; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--yellow) calc(var(--p) * 1turn), rgba(255, 255, 255, .12) 0); transition: --p .6s; }
.ring::before { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--petrol); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ring b, .ring small { position: relative; }
.ring b { font-size: 84px; font-weight: 800; line-height: 1; }
.ring small { font-size: 22px; color: var(--mint); margin-top: 6px; }
.open-r .tchip { font-size: 21px; padding: 10px 18px; }

/* gesloten */
.ph-locked .pr-main { display: flex; flex-direction: column; gap: 56px; }
.lock-head { display: flex; align-items: center; gap: 44px; animation: rise .7s var(--ease) both; }
.lock-ico { width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 18px rgba(255, 210, 0, .14); animation: lock .9s .2s var(--ease) both; }
.lock-ico svg { width: 70px; height: 70px; fill: none; stroke: var(--petrol); stroke-width: 2.2; stroke-linecap: round; }
.lock-head .kicker { margin-bottom: 12px; }
.ltiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; flex: 1; }
.ltile { position: relative; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 30px 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; animation: pop .6s var(--d) var(--ease) both; }
.ltile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--c); }
.ltile b { font-size: 32px; font-weight: 700; }
.ltile span { font-size: 96px; font-weight: 800; color: rgba(255, 255, 255, .22); line-height: 1; }

/* rendementen */
.rv-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 24px; flex: 1; min-height: 0; perspective: 1600px; }
.rv-in { position: relative; height: 100%; transform-style: preserve-3d; animation: flip .9s var(--d) var(--ease) both; }
.rv-back, .rv-front { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 28px 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.rv-back { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.rv-back b { font-size: 30px; } .rv-back span { font-size: 90px; font-weight: 800; color: rgba(255, 255, 255, .22); line-height: 1; }
.rv-back::before, .rv-front::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--c); }
.rv-front { transform: rotateY(180deg); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 20, 18, .3); }
.rv-front b { font-size: 28px; }
.rv-front small { font-size: 19px; color: var(--muted); }
.rv-val { font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rv.up .rv-val { color: var(--up); } .rv.down .rv-val { color: var(--down); } .rv.flat .rv-val { color: var(--muted); }
.rv-explain { margin-top: 26px; font-size: 26px; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .2); border-left: 8px solid var(--yellow); border-radius: 0 16px 16px 0; padding: 22px 30px; animation: rise .8s var(--d) var(--ease) both; }

/* stand */
.lb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.lb-row { display: grid; grid-template-columns: 76px minmax(0, 1.3fr) minmax(0, 1fr) 260px 190px 190px; align-items: center; gap: 28px; padding: 0 30px; height: 76px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 28px; animation: slide .7s var(--d) var(--ease) both; }
.lb-row.lb-head { height: auto; background: none; border: 0; padding-bottom: 0; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); animation: none; }
.lb-head span:nth-child(n+4), .lb-cap, .lb-rnd, .lb-tot { text-align: right; }
.lb-rank { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .12); font-size: 24px; }
.lb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 16px; }
.mv { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .45); }
.mv.up { color: var(--up-dark); } .mv.down { color: var(--down-dark); }
.lb-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--mint)); transform-origin: left; animation: grow 1.2s calc(var(--d) + .2s) var(--ease) both; }
.lb-cap { font-weight: 700; }
.lb-rnd, .lb-tot { font-weight: 600; }
.lb-row.p1 { background: var(--yellow); border-color: var(--yellow); color: var(--petrol); }
.lb-row.p1 .lb-rank { background: var(--petrol); color: var(--yellow); }
.lb-row.p1 .lb-bar { background: rgba(0, 69, 63, .15); } .lb-row.p1 .lb-bar i { background: var(--petrol); }
.lb-row.p1 .up, .lb-row.p1 .mv.up { color: #0a6b45; } .lb-row.p1 .down, .lb-row.p1 .mv.down { color: #a3271d; } .lb-row.p1 .mv { color: rgba(0, 69, 63, .5); }
.lb-row.p2 .lb-rank, .lb-row.p3 .lb-rank { background: #fff; color: var(--petrol); }
.lb.dense .lb-row:not(.lb-head) { height: 56px; font-size: 24px; } .lb.dense .lb-rank { width: 42px; height: 42px; font-size: 20px; }
.lb.dense2 { gap: 6px; } .lb.dense2 .lb-row:not(.lb-head) { height: 46px; font-size: 21px; border-radius: 12px; } .lb.dense2 .lb-rank { width: 34px; height: 34px; font-size: 17px; }

/* eindstand */
.ph-final .pr-main { display: flex; flex-direction: column; align-items: center; }
.fin-head { text-align: center; animation: rise .8s var(--ease) both; }
.fin-head .kicker { margin-bottom: 14px; }
.fin-head .display { font-size: 120px; }
.fin-head .sub { min-height: 1.4em; }
.fin-list { width: 1600px; margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.fin-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px 140px 250px; align-items: center; gap: 24px; padding: 0 36px; height: 104px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); animation: drop .8s var(--ease) both; }
.fin-rank { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: rgba(255, 255, 255, .14); }
.fin-name { font-size: 36px; font-weight: 700; display: flex; align-items: center; gap: 18px; min-width: 0; white-space: nowrap; }
.fin-name .nm { overflow: hidden; text-overflow: ellipsis; }
.fin-name em { flex-shrink: 0; font-style: normal; font-size: 18px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--petrol); color: var(--yellow); padding: 7px 14px; border-radius: 999px; }
.fin-col { display: grid; text-align: right; }
.fin-col small { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.fin-col b { font-size: 32px; }
.fin-col.wide b { font-size: 36px; }
.fin-row.p1 { height: 150px; background: var(--yellow); border-color: var(--yellow); color: var(--petrol); box-shadow: 0 30px 80px rgba(255, 210, 0, .3); animation: champ 1s var(--ease) both; }
.fin-row.p1 .fin-rank { width: 84px; height: 84px; font-size: 42px; background: var(--petrol); color: var(--yellow); }
.fin-row.p1 .fin-name { font-size: 48px; }
.fin-row.p1 .up { color: #0a6b45; } .fin-row.p1 .down { color: #a3271d; }
.fin-row.p2, .fin-row.p3 { background: rgba(255, 255, 255, .14); }
.fin-row.p2 .fin-rank, .fin-row.p3 .fin-rank { background: #fff; color: var(--petrol); }
.fin-list.dense { gap: 10px; } .fin-list.dense .fin-row:not(.p1) { height: 76px; } .fin-list.dense .fin-name { font-size: 30px; } .fin-list.dense .fin-row.p1 { height: 120px; }
.fin-list.dense2 { gap: 6px; } .fin-list.dense2 .fin-row:not(.p1) { height: 50px; border-radius: 14px; } .fin-list.dense2 .fin-row:not(.p1) .fin-rank { width: 38px; height: 38px; font-size: 19px; }
.fin-list.dense2 .fin-row:not(.p1) .fin-name { font-size: 24px; } .fin-list.dense2 .fin-row:not(.p1) .fin-col b { font-size: 22px; } .fin-list.dense2 .fin-row:not(.p1) .fin-col small { display: none; }

.pr-empty { display: grid; place-content: center; justify-items: center; text-align: center; gap: 24px; padding: 0; }
.pr-empty .logo { height: 48px; } .pr-empty h1 { font-size: 110px; color: var(--yellow); font-weight: 800; } .pr-empty p { font-size: 30px; color: var(--mint); max-width: 1100px; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes paper { from { opacity: 0; transform: translateY(40px) rotate(-1.2deg) scale(.96); } }
@keyframes lock { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } }
@keyframes flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes slide { from { opacity: 0; transform: translateX(-40px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) scale(.97); } }
@keyframes champ { 0% { opacity: 0; transform: scale(.8); } 60% { opacity: 1; transform: scale(1.03); } }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

/* =====================================================================
   ADMIN (regie)
   ===================================================================== */
body.admin { background: var(--surface); }
.ad-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px 28px; color: #fff;
  background: linear-gradient(90deg, rgba(0, 69, 63, .96), rgba(0, 69, 63, .82)), url('/img/chevron.jpg') center / cover, var(--petrol); }
.ad-top .logo { height: 24px; width: auto; display: block; }
.ad-title { display: grid; line-height: 1.25; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
.ad-title small { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.ad-title b { font-size: 1.05rem; }
.ad-code { display: grid; line-height: 1.2; margin-left: auto; text-align: right; }
.ad-code small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); font-weight: 700; }
.ad-code b { font-size: 1.35rem; letter-spacing: .12em; color: var(--yellow); }
body.admin.offline .ad-code b::after { content: ' · offline'; color: var(--down-dark); font-size: .8rem; letter-spacing: 0; }
.ad-top-act { display: flex; gap: 10px; }

.ad-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 24px 28px 40px; max-width: 1600px; margin: 0 auto; }
.ad-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ad-now { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.ad-now-h { display: flex; align-items: center; gap: 14px; margin: 2px 4px 14px; font-weight: 600; color: var(--muted); }
.pill { background: var(--petrol); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.ad-preview { position: relative; overflow: hidden; border-radius: 12px; background: var(--petrol-3); aspect-ratio: 16 / 9; }
.ad-preview iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }

.ad-ctl { display: grid; grid-template-columns: minmax(200px, auto) 1fr minmax(320px, 40%); gap: 14px; align-items: stretch; }
.ad-ctl .btn.back { justify-content: flex-start; background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.ad-ctl .btn .arr { font-size: 1.4rem; line-height: 1; }
.ad-extra { display: flex; gap: 10px; align-items: center; justify-content: center; }
.ad-ctl .btn.next { justify-content: space-between; text-align: left; padding: 14px 26px; }
.btn.next span:first-child { display: grid; }
.btn.next b { font-size: 1.2rem; }
.btn.next small { font-size: .82rem; font-weight: 500; opacity: .75; }

.ad-timeline { display: flex; flex-wrap: wrap; gap: 10px 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.tl-r { flex: 1; display: grid; gap: 6px; min-width: 0; }
.tl-r small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tl-r.now small { color: var(--petrol); }
.tl-r div { display: flex; gap: 3px; }
.tl-r span { flex: 1; height: 10px; border-radius: 3px; background: #e3eae8; }
.tl-r span.done { background: var(--teal); }
.tl-r span.on { background: var(--yellow); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yellow); }
.tl-legend { flex-basis: 100%; display: flex; gap: 18px; font-size: .78rem; color: var(--muted); }
.tl-legend span::before { content: '·'; margin-right: 6px; color: var(--teal); font-weight: 800; }
.ad-keys { margin: 0; font-size: .85rem; color: var(--muted); }

.ad-side { display: grid; gap: 16px; align-content: start; }
.ad-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.ad-card h3 { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ad-card h3 .count { background: var(--mint-2); color: var(--petrol); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; font-size: .85rem; }
.ad-card p { margin: 0 0 12px; font-size: .92rem; line-height: 1.45; }
.ad-join { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.ad-join .qr { width: 112px; height: 112px; flex: none; }
.ad-join .qr svg { width: 100%; height: 100%; display: block; }
.ad-join > div:last-child { display: grid; line-height: 1.3; min-width: 0; }
.ad-join small { font-size: .78rem; color: var(--muted); }
.ad-join b { font-size: 1rem; color: var(--petrol); overflow-wrap: anywhere; margin-bottom: 6px; }
.ad-join b.code { font-size: 1.6rem; letter-spacing: .12em; margin: 0; }
.ad-teams { display: grid; gap: 2px; max-height: 420px; overflow: auto; margin: 0 -8px; }
.ad-team { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.ad-team:hover { background: var(--surface); }
.ad-team .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-team .cap { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ad-team .st { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface); padding: 3px 9px; border-radius: 999px; }
.ad-team .st.ok { color: var(--up); background: #e2f4ea; }
.ad-team .x { border: 0; background: none; color: #a2b1ae; width: 28px; height: 28px; border-radius: 8px; opacity: 0; transition: opacity .15s, background .15s; }
.ad-team:hover .x, .ad-team .x:focus { opacity: 1; }
.ad-team .x:hover { background: #fdecea; color: var(--down); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 3px rgba(31, 191, 117, .18); display: inline-block; flex: none; }
.dot.off { background: #b9c5c3; box-shadow: none; }

/* nieuwe game */
.ad-setup { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1100px; margin: 0 auto; padding: 48px 24px; align-content: center; }
.ad-setup-l { background: linear-gradient(180deg, rgba(0, 52, 48, .5), rgba(0, 40, 37, .85)), url('/img/chevron.jpg') center / cover, var(--petrol); color: #fff; border-radius: 24px 0 0 24px; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ad-setup-l .logo { height: 28px; width: auto; align-self: flex-start; }
.ad-setup-l .kicker { color: var(--yellow); }
.ad-setup-l h1 { font-size: 3.2rem; color: var(--yellow); margin: 10px 0 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ad-setup-l p { color: var(--mint); line-height: 1.5; margin: 0; font-size: 1.05rem; }
.ad-setup-r { background: #fff; border-radius: 0 24px 24px 0; padding: 44px; box-shadow: var(--shadow); }
.ad-setup-r .btn { width: 100%; margin-top: 8px; }

@media (max-width: 1100px) {
  .ad-grid { grid-template-columns: 1fr; }
  .ad-ctl { grid-template-columns: 1fr 1fr; } .ad-extra { grid-column: 1 / -1; grid-row: 2; }
  .ad-top { flex-wrap: wrap; } .ad-top-act { width: 100%; }
  .ad-setup { grid-template-columns: 1fr; } .ad-setup-l { border-radius: 24px 24px 0 0; } .ad-setup-r { border-radius: 0 0 24px 24px; }
}

/* =====================================================================
   SPELER (telefoon)
   ===================================================================== */
body.player { background: var(--surface); }
.ph { max-width: 560px; margin: 0 auto; padding: 0 16px 150px; }
.ph h1 { font-size: 1.7rem; font-weight: 800; margin: 24px 0 6px; color: var(--petrol); }
.ph h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; margin: 26px 0 10px; color: var(--petrol); }
.lead { color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.banner-off { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #b3261e; color: #fff; text-align: center; font-size: .9rem; font-weight: 600; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }

/* inloggen */
body.player.joining { background: linear-gradient(180deg, rgba(0, 52, 48, .55), rgba(0, 40, 37, .9)), url('/img/chevron.jpg') center / cover fixed, var(--petrol); }
body.joining .ph { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(32px + env(safe-area-inset-top)) 20px 40px; }
.logo-phone { width: 210px; height: auto; display: block; margin-bottom: 40px; }
body.joining .ph > h1 { color: var(--yellow); font-size: 2.6rem; letter-spacing: -.03em; margin: 0 0 8px; }
body.joining .lead { color: var(--mint); font-size: 1.05rem; margin-bottom: 26px; }
body.joining .card { padding: 24px 22px 22px; box-shadow: 0 24px 60px rgba(0, 20, 18, .35); }
.code-input { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; font-size: 1.5rem !important; text-align: center; color: var(--petrol); }

/* kop tijdens het spel */
.ph-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: var(--petrol); color: #fff; box-shadow: 0 6px 20px rgba(0, 40, 36, .18); }
.ph-team { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.ph-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-cap { display: grid; text-align: right; line-height: 1.15; }
.ph-cap small { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.ph-cap b { font-size: 1.15rem; color: var(--yellow); }

.wait { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 4px; }
.wait h1 { margin-top: 10px; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--mint-2); border-top-color: var(--teal); animation: spin 1s linear infinite; margin: 8px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph .np-photo { box-shadow: var(--shadow); border-radius: 12px; }
.ph details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-top: 16px; overflow: hidden; }
.ph summary { padding: 14px 16px; font-weight: 700; color: var(--petrol); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.ph summary::-webkit-details-marker { display: none; }
.ph summary::after { content: '▾'; color: var(--teal); transition: transform .2s; }
.ph details[open] summary::after { transform: rotate(180deg); }
.ph details .np-photo { margin: 0 10px 10px; box-shadow: none; }

/* verdelen */
.donut-card { display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-top: 16px; }
.donut-card svg { width: 124px; height: 124px; flex: none; }
.d-big { font-size: 19px; font-weight: 800; fill: var(--petrol); }
.d-small { font-size: 9px; fill: var(--muted); }
.donut-legend { display: grid; gap: 6px; font-size: .9rem; flex: 1; min-width: 0; color: var(--muted); }
.donut-legend div { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-legend b { margin-left: auto; }
.tools { display: flex; gap: 10px; margin: 14px 0 10px; }
.tools .btn { flex: 1; padding: 11px 14px; font-size: .95rem; }
.alloc-row { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.alloc-row:last-child { border-bottom: 0; }
.alloc-head { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto 76px; gap: 12px; align-items: center; }
.swatch { width: 6px; height: 34px; border-radius: 3px; display: inline-block; flex: none; }
.alloc-name { display: grid; line-height: 1.25; min-width: 0; }
.alloc-name b { font-size: 1rem; }
.alloc-name small { font-size: .78rem; color: var(--muted); }
.alloc-amount { font-size: .85rem; color: var(--muted); }
.pct-input { width: 76px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 8px; text-align: right; font-weight: 700; font-size: 1rem; background: var(--surface); outline: none; }
.pct-input:focus { border-color: var(--teal); background: #fff; }
.alloc-row input[type=range] { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 8px 0 0; background: transparent; }
.alloc-row input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--c) var(--fill), #e3eae8 var(--fill)); }
.alloc-row input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--c) var(--fill), #e3eae8 var(--fill)); }
.alloc-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: 0 2px 8px rgba(0, 40, 36, .2); }
.alloc-row input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: 0 2px 8px rgba(0, 40, 36, .2); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -8px 30px rgba(0, 40, 36, .12); }
.dock-in { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.dock .btn { width: 100%; }
.total-bar { height: 8px; border-radius: 999px; background: #e3eae8; overflow: hidden; }
.total-bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: inherit; transition: width .25s var(--ease), background .2s; }
.total-bar i.ok { background: #1fbf75; } .total-bar i.over { background: var(--down); }
.total-line { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.total-line .hint { color: var(--muted); font-weight: 500; }

/* uitslag */
.ret-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ret-row:last-child { border-bottom: 0; }
.ret-row .grow { flex: 1; min-width: 0; }
.ret-row .big { font-size: 1.15rem; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 2px; }
.stat small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 1.3rem; }
.hero { margin: 18px 0 14px; border-radius: 22px; padding: 22px 22px 24px; color: #fff; display: grid; justify-items: start; gap: 2px; box-shadow: 0 16px 40px rgba(0, 40, 36, .2);
  background: linear-gradient(160deg, rgba(0, 52, 48, .5), rgba(0, 40, 37, .9)), url('/img/chevron.jpg') center / cover, var(--petrol); }
.hero small { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint) !important; }
.hero h1 { color: #fff; margin: 4px 0 0; }
.hero .place { font-size: 5rem; font-weight: 800; color: var(--yellow); line-height: 1; letter-spacing: -.04em; margin: 6px 0 4px; }
.hero .up { color: var(--up-dark); } .hero .down { color: var(--down-dark); }
.rank-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-n { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--petrol); }
.rank-row.me { background: #fff8d6; margin: 0 -14px; padding: 11px 14px; border-radius: 12px; border-bottom-color: transparent; }
.rank-row.me .rank-n { background: var(--yellow); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ---------- beheerdersaccount ---------- */
.acc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--mint); font-size: .9rem; }
.acc-bar span { margin-right: auto; font-weight: 600; }
.acc-tabs { display: flex; gap: 6px; margin-bottom: 22px; background: var(--surface); padding: 5px; border-radius: 14px; }
.acc-tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 10px; font-weight: 650; color: var(--muted); cursor: pointer; }
.acc-tabs button.on { background: #fff; color: var(--petrol); box-shadow: 0 2px 8px rgba(0, 40, 36, .1); }
.linkbtn { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--petrol); font-weight: 600; text-decoration: underline; cursor: pointer; }
.acc-warn { background: #fff6d6; color: #5c4300; border: 1px solid #f1d98a; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; line-height: 1.4; }
.ok-msg { background: #e6f4ee; color: #0a5236; border: 1px solid #bfe3d2; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.acc-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 30, 27, .55); display: grid; place-items: center; padding: 16px; }
.acc-box { background: #fff; color: var(--ink); border-radius: 20px; width: min(720px, 100%); max-height: 90vh; overflow: auto; padding: 26px 28px; box-shadow: 0 30px 80px rgba(0, 30, 27, .35); }
.acc-head { display: flex; justify-content: space-between; align-items: center; }
.acc-head h2 { margin: 0; color: var(--petrol); }
.acc-head .x { border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.acc-note { background: #fff8d6; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acc-row small { display: block; color: var(--muted); margin-top: 2px; }
.acc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-box h3 { margin: 22px 0 10px; font-size: 1rem; }
.acc-pw { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-pw input { flex: 1; min-width: 160px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 1rem; }
