@font-face {
    font-family: TheBoldFont;
    src: url(fonts/theboldfont-webfont.woff2) format('woff2'), url(fonts/theboldfont-webfont.woff) format('woff');
    font-display: swap;
}
@font-face {
    font-family: Roboto;
    font-weight: 400;
    src: url(fonts/roboto-latin-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Roboto;
    font-weight: 700;
    src: url(fonts/roboto-latin-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Roboto;
    font-weight: 400;
    src: url(fonts/roboto-latin-ext-400.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: Roboto;
    font-weight: 700;
    src: url(fonts/roboto-latin-ext-700.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: Roboto;
    font-weight: 400;
    font-style: italic;
    src: url(fonts/roboto-latin-400-italic.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Roboto;
    font-weight: 400;
    font-style: italic;
    src: url(fonts/roboto-latin-ext-400-italic.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Thema's. Kleuren en gradients komen uit de clubhuisstijl (social ajaxb): oranje #e8951a, donker #23250a,
   en de achtergronden bg_oranje, bg_wit en bg_zwart. Het thema staat als data-thema op <html>;
   staat het toestel in donkere modus, dan wint zwart. */
:root {
    --oranje: #e8951a;
    --donker: #23250a;
    --kop: TheBoldFont, "Arial Black", system-ui, sans-serif;

    --bg: #e8951a; --surface: #fff6e6; --surface2: #f6d08c; --ink: #23250a; --muted: #4a3a1e;
    --line: rgba(35, 37, 10, .16); --accent: #23250a; --accent-ink: #e8951a; --accent-soft: #fff6e6;
    --red: #a3241c; --ok: #17603c; --shade: rgba(35, 37, 10, .55);
    --pot-bg: #23250a; --pot-ink: #e8951a; --bar-bg: #23250a; --bar-ink: #f4efe6;
    /* Glas: doorschijnende vlakken met blur, zodat de gradient eronder meeschuift. De dekking is zo gekozen
       dat ook boven de donkere hoek rechtsonder de rode en groene bedragen leesbaar blijven. */
    --glass: rgba(255, 246, 230, .68); --glass2: rgba(246, 208, 140, .58); --glass-rand: rgba(255, 255, 255, .5);
    --glass-schaduw: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px rgba(35, 37, 10, .14);
    --bar-glass: rgba(35, 37, 10, .8); --sheet-glass: rgba(255, 246, 230, .9);
    --blur: blur(18px) saturate(1.6); --confetti: #ffd27a;
    /* Lichte gloed linksonder, donkere hoek rechtsonder */
    --page:
        radial-gradient(120% 42% at 0% 100%, rgba(255, 249, 237, .96) 0%, rgba(255, 224, 177, .72) 28%, rgba(251, 171, 50, .4) 52%, rgba(232, 149, 26, 0) 74%),
        radial-gradient(100% 40% at 100% 100%, rgba(48, 34, 7, .94) 0%, rgba(119, 76, 7, .62) 38%, rgba(209, 136, 8, .3) 60%, rgba(232, 149, 26, 0) 78%),
        #e8951a;
}
:root[data-thema="wit"] {
    --bg: #fff; --surface: #f8f4ec; --surface2: #efe7d6; --ink: #23250a; --muted: #5d5b49;
    --line: rgba(35, 37, 10, .12); --accent: #23250a; --accent-ink: #e8951a; --accent-soft: #fdebd0;
    --glass: rgba(255, 255, 255, .58); --glass2: rgba(239, 231, 214, .62); --glass-rand: rgba(35, 37, 10, .1);
    --glass-schaduw: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 30px rgba(35, 37, 10, .08);
    --sheet-glass: rgba(255, 255, 255, .9); --confetti: #e8951a;
    /* Oranje rechtsonder, grijs linksonder, een zweem oranje rechtsboven */
    --page:
        radial-gradient(105% 42% at 100% 100%, rgba(242, 174, 69, .96) 0%, rgba(247, 196, 119, .66) 34%, rgba(251, 239, 221, .4) 56%, rgba(255, 255, 255, 0) 76%),
        radial-gradient(80% 34% at 0% 100%, rgba(166, 166, 166, .7) 0%, rgba(220, 220, 220, .45) 40%, rgba(255, 255, 255, 0) 74%),
        radial-gradient(60% 18% at 100% 0%, rgba(250, 218, 168, .8) 0%, rgba(255, 255, 255, 0) 72%),
        #fff;
}
:root[data-thema="zwart"] {
    --bg: #202008; --surface: #2b2c12; --surface2: #383a1c; --ink: #f4efe6; --muted: #c4bea8;
    --line: rgba(244, 239, 230, .14); --accent: #e8951a; --accent-ink: #202008; --accent-soft: #4a3208;
    --red: #ff958a; --ok: #6fd19e; --shade: rgba(0, 0, 0, .65);
    --pot-bg: #e8951a; --pot-ink: #202008; --bar-bg: #2b2c12; --bar-ink: #f4efe6;
    --glass: rgba(60, 62, 30, .56); --glass2: rgba(84, 86, 46, .6); --glass-rand: rgba(255, 255, 255, .12);
    --glass-schaduw: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .35);
    --bar-glass: rgba(32, 32, 8, .72); --sheet-glass: rgba(43, 44, 18, .92); --confetti: #e8951a;
    /* Oranje gloed rechtsonder */
    --page:
        radial-gradient(125% 50% at 100% 100%, rgba(223, 144, 22, .92) 0%, rgba(200, 134, 30, .6) 30%, rgba(120, 92, 36, .3) 54%, rgba(32, 32, 8, 0) 78%),
        #202008;
}
@media (prefers-color-scheme: dark) {
    :root, :root[data-thema="wit"] {
        --bg: #202008; --surface: #2b2c12; --surface2: #383a1c; --ink: #f4efe6; --muted: #c4bea8;
        --line: rgba(244, 239, 230, .14); --accent: #e8951a; --accent-ink: #202008; --accent-soft: #4a3208;
        --red: #ff958a; --ok: #6fd19e; --shade: rgba(0, 0, 0, .65);
        --pot-bg: #e8951a; --pot-ink: #202008; --bar-bg: #2b2c12; --bar-ink: #f4efe6;
        --glass: rgba(60, 62, 30, .56); --glass2: rgba(84, 86, 46, .6); --glass-rand: rgba(255, 255, 255, .12);
        --glass-schaduw: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .35);
        --bar-glass: rgba(32, 32, 8, .72); --sheet-glass: rgba(43, 44, 18, .92); --confetti: #e8951a;
        --page:
            radial-gradient(125% 50% at 100% 100%, rgba(223, 144, 22, .92) 0%, rgba(200, 134, 30, .6) 30%, rgba(120, 92, 36, .3) 54%, rgba(32, 32, 8, 0) 78%),
            #202008;
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--page); }
body {
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.45 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 480px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 170px; }
h1, h2, .num, .disp { font-family: var(--kop); font-weight: 400; text-transform: uppercase; }
h1 { font-size: 1.9rem; margin: 0; line-height: 1; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; line-height: 1.05; }
h2.eerste { margin-top: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.logo { flex: none; }
.kop { flex: 1; min-width: 0; }
.team { font-style: italic; font-size: 1rem; margin-top: 3px; }
.lock { flex: none; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.lock.open { background: var(--accent-soft); border-color: var(--accent); }
.laden { padding: 40px 0; text-align: center; font-style: italic; }

/* Glas: staat vóór de onderdelen zelf, zodat die er hun eigen achtergrond of rand overheen kunnen zetten */
.card, .chip, .block, .poort form { background: var(--glass); border: 1px solid var(--glass-rand); box-shadow: var(--glass-schaduw); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

.pot { background: var(--pot-bg); color: var(--pot-ink); border-radius: 18px 18px 4px 4px; padding: 18px 20px 16px; }
.pot small { display: block; opacity: .8; font-size: .9rem; }
.pot .num { font-size: clamp(3rem, 17vw, 4.6rem); line-height: 1; margin: 4px 0 8px; display: inline-block; transform-origin: left center; }
.pot .num.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pot .row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; opacity: .92; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; align-items: end; text-align: center; }
.pl { min-width: 0; }
.ava { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; overflow: hidden; background: var(--surface2); border: 2px solid var(--line); font-family: var(--kop); font-size: 1.1rem; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.sm { width: 40px; height: 40px; margin: 0; flex: none; font-size: .95rem; }
.pl.first .ava { width: 64px; height: 64px; font-size: 1.4rem; border-color: var(--accent); background: var(--accent-soft); }
.crown { font-size: 1.3rem; line-height: 1; height: 22px; }
.pl b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pl span { display: block; font-size: .8rem; color: var(--muted); }
.pl .amt { font-family: var(--kop); font-size: 1.15rem; color: var(--ink); }
.block { margin-top: 6px; border-radius: 10px 10px 0 0; background: var(--glass2); border-bottom: 0; box-shadow: inset 0 1px 0 var(--glass-rand); font-family: var(--kop); font-size: 1.6rem; display: grid; place-items: center; }
.pl.first .block { height: 92px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 2.4rem; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pl.second .block { height: 62px; }
.pl.third .block { height: 44px; }
.floor { height: 4px; background: var(--ink); border-radius: 2px; }

/* Opkomst van het podium: derde, tweede, eerste, en als laatste de kroon met wat confetti.
   De klasse .speel staat er alleen op bij de eerste keer tonen en als de top drie verandert. */
.podium.speel .pl { animation: opkomst .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.podium.speel .block { transform-origin: bottom; animation: rijs .55s cubic-bezier(.2, .9, .3, 1.1) both; }
.podium.speel .third, .podium.speel .third .block { animation-delay: .2s; }
.podium.speel .second, .podium.speel .second .block { animation-delay: .85s; }
.podium.speel .first, .podium.speel .first .block { animation-delay: 1.5s; }
.podium.speel .crown { animation: kroon .7s cubic-bezier(.3, 1.7, .5, 1) 2.2s both; }
@keyframes opkomst { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rijs { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kroon { from { opacity: 0; transform: translateY(-30px) rotate(-28deg) scale(.4); } to { opacity: 1; transform: none; } }

.crown { position: relative; }
.confetti { position: absolute; left: 50%; top: 60%; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: -3px; top: -4px; width: 6px; height: 9px; border-radius: 1.5px; background: var(--ink); opacity: 0; animation: confetti 1.3s cubic-bezier(.15, .7, .3, 1) 2.6s both; }
.confetti i:nth-child(4n+2) { background: #fff; }
.confetti i:nth-child(4n+3) { background: var(--confetti); }
.confetti i:nth-child(4n) { background: var(--surface); }
.confetti i:nth-child(3n) { height: 6px; border-radius: 50%; }
@keyframes confetti {
    0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.5); }
    10% { opacity: 1; }
    55% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
    100% { opacity: 0; transform: translate(calc(var(--x) * 1.12), calc(var(--y) + 34px)) rotate(calc(var(--r) * 1.6)) scale(.9); }
}
/* Een waaier omhoog en opzij. Vaste richtingen per stukje: de CSP staat geen inline stijlen toe. */
.confetti i:nth-child(1) { --x: -63px; --y: -13px; --r: 140deg; }
.confetti i:nth-child(2) { --x: -45px; --y: -26px; --r: -210deg; }
.confetti i:nth-child(3) { --x: -47px; --y: -52px; --r: 260deg; }
.confetti i:nth-child(4) { --x: -22px; --y: -41px; --r: -120deg; }
.confetti i:nth-child(5) { --x: -16px; --y: -64px; --r: 310deg; }
.confetti i:nth-child(6) { --x: -2px; --y: -56px; --r: -170deg; }
.confetti i:nth-child(7) { --x: 13px; --y: -71px; --r: 200deg; }
.confetti i:nth-child(8) { --x: 20px; --y: -44px; --r: -280deg; }
.confetti i:nth-child(9) { --x: 42px; --y: -54px; --r: 150deg; }
.confetti i:nth-child(10) { --x: 44px; --y: -32px; --r: -230deg; }
.confetti i:nth-child(11) { --x: 59px; --y: -19px; --r: 290deg; }
.confetti i:nth-child(12) { --x: -26px; --y: -22px; --r: -90deg; }
.confetti i:nth-child(13) { --x: 26px; --y: -26px; --r: 110deg; }
.confetti i:nth-child(14) { --x: 0px; --y: -84px; --r: -320deg; }

.card { border-radius: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li.krap { gap: 8px; }
.pos { font-family: var(--kop); font-size: 1.15rem; width: 24px; color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.grow b { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { font-size: .85rem; color: var(--muted); }
.right { text-align: right; white-space: nowrap; }
.right .num { font-size: 1.15rem; }
.open-amt { color: var(--red); font-size: .8rem; font-weight: 700; }
.paid-all { color: var(--ok); font-size: .8rem; font-weight: 700; }
.empty { padding: 22px 16px; color: var(--muted); text-align: center; }
.empty p { margin: 0 0 12px; }

/* Kop met de deelknop ernaast, en het deelscherm */
.kopregel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.kopregel h2 { margin: 0; }
.deelknop { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.deelknop svg { width: 16px; height: 16px; flex: none; }
.deelbeeld { display: block; width: 100%; max-width: 260px; aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); }
.deelbeeld.laden { display: grid; place-items: center; padding: 0; font-size: .9rem; }
textarea { display: block; width: 100%; min-height: 200px; border: 1.5px solid var(--muted); border-radius: 8px; background: transparent; padding: 10px 12px; line-height: 1.4; resize: vertical; }

.chips { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; -webkit-backdrop-filter: none; backdrop-filter: none; }
.card .chip { border-color: var(--line); box-shadow: none; }
.card > .chips { margin: 0; padding: 12px 14px; }
.pay { min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 700; }
.pay.yes { border-color: var(--ok); color: var(--ok); }
.pay.no { border-color: var(--red); color: var(--red); }
.x { flex: none; width: 44px; height: 44px; border-radius: 8px; color: var(--muted); font-size: 1.3rem; }
.x.armed { background: var(--red); color: #fff; width: auto; padding: 0 10px; font-size: .8rem; font-weight: 700; }
:root[data-thema="zwart"] .x.armed { color: #202008; }
@media (prefers-color-scheme: dark) { .x.armed { color: #202008; } }

.field { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.field.lijn { border-top: 1px solid var(--line); }
.field input[type=text], .field input[type=password] { flex: 1 1 140px; }
.field.breed input[type=text] { flex-basis: 100%; }
.field.breed .btn:last-child { flex: 1; }
input[type=text], input[type=number], input[type=password], input[type=date] { min-height: 44px; border: 1.5px solid var(--muted); border-radius: 8px; background: transparent; padding: 0 12px; width: 100%; min-width: 0; }
input.eur { width: 76px; flex: none; text-align: right; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn.ghost { background: none; color: var(--ink); border: 1.5px solid var(--muted); }
.btn.danger { background: none; color: var(--red); border: 1.5px solid var(--red); }
.btn.klein { min-height: 44px; padding: 0 12px; font-size: .85rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.knoppen { display: flex; gap: 8px; flex-wrap: wrap; }
.note { font-size: .88rem; color: var(--ink); opacity: .85; margin: 8px 2px; }
.note.strak { margin: 0 0 12px; }
.codebox { padding: 12px 14px; border-top: 1px solid var(--line); }
.codebox.eerste { border-top: 0; }
.note.binnen { margin: 0; padding: 12px 14px; }
.codebox code { display: block; font: 400 1.5rem/1.2 var(--kop); letter-spacing: .04em; margin: 2px 0 6px; overflow-wrap: anywhere; }
.codebox .link { font-size: .85rem; overflow-wrap: anywhere; margin: 0 0 10px; }

/* De onderbalk is donker glas: de stand schuift er vervaagd onderdoor */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--bar-glass); color: var(--bar-ink); padding: 10px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
.bottom .in { max-width: 448px; margin: 0 auto; }
.cta { width: 100%; min-height: 54px; border-radius: 12px; background: var(--oranje); color: var(--donker); font: 400 1.3rem/1 var(--kop); text-transform: uppercase; }
.bottom :focus-visible { outline-color: #f4efe6; }
nav { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
nav button { min-height: 44px; font-weight: 700; color: var(--bar-ink); opacity: .65; border-top: 3px solid transparent; }
nav button.on { opacity: 1; border-top-color: var(--oranje); }

.shade { position: fixed; inset: 0; background: var(--shade); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--sheet-glass); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); box-shadow: inset 0 1px 0 var(--glass-rand); width: 100%; max-width: 480px; max-height: 88vh; max-height: 88dvh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet:focus { outline: none; }
.sheet h2 { margin: 0 0 4px; }
.sheet h3 { font-size: .95rem; font-weight: 700; color: var(--muted); margin: 16px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick { min-height: 46px; border-radius: 10px; border: 1.5px solid var(--muted); background: transparent; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.fines { display: grid; gap: 8px; }
.fines .pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 6px 14px; white-space: normal; }
.fines .pick b { font: 400 1.1rem/1 var(--kop); white-space: nowrap; }
.two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 16px; }
.two label { font-size: .85rem; font-weight: 700; color: var(--muted); display: grid; gap: 6px; }
.two input { color: var(--ink); font-weight: 400; font-size: 1rem; }
.rem { display: block; font-size: .88rem; font-style: italic; margin-top: 2px; white-space: normal; }
.actions { display: flex; gap: 8px; margin-top: 18px; }
.actions .btn { flex: 1; }
.err { color: var(--red); font-weight: 700; font-size: .9rem; min-height: 1.4em; margin: 6px 0 0; }
.toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 20; max-width: 90vw; text-align: center; }

/* Het invulscherm voor de teamcode */
.poort { max-width: 380px; margin: 0 auto; padding: max(12vh, 48px) 20px 40px; text-align: center; }
.poort h1 { font-size: 2.6rem; margin-top: 14px; }
.poort p { margin: 10px 0 22px; }
.poort form { display: grid; gap: 8px; text-align: left; border-radius: 14px; padding: 16px; }
.poort label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.poort .err { margin: 0; }
.poort .err:empty { display: none; }

/* Zonder blur (oudere browser) of als iemand op zijn toestel minder doorzichtigheid heeft ingesteld: dekkende vlakken */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card, .chip:not(.on), .poort form { background: var(--surface); }
    .pl:not(.first) .block { background: var(--surface2); }
    .bottom { background: var(--bar-bg); }
    .sheet { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
    .card, .chip:not(.on), .poort form { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .pl:not(.first) .block { background: var(--surface2); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .bottom { background: var(--bar-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .sheet { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pot .num.bump, .podium.speel .pl, .podium.speel .block, .podium.speel .crown { animation: none; }
    .confetti { display: none; }
}
