/* =====================================================================
   VV Eemboys Pubquiz - huisstijl
   Alle kleuren staan als CSS-variabele in :root. Pas ze daar aan en de
   hele applicatie verandert mee.
   ===================================================================== */

:root {
    --eem-blauw-donker: #232069;
    --eem-blauw:        #2E2F87;
    --eem-blauw-licht:  #4A4BA8;
    --eem-goud:         #D4A03C;
    --eem-goud-licht:   #E9C87A;
    --eem-wit:          #FFFFFF;
    --eem-grijs:        #F2F3F8;

    /* Afgeleide kleuren voor status en feedback */
    --eem-groen:        #2FA36B;
    --eem-rood:         #C8452F;
    --eem-zilver:       #C6CBD8;
    --eem-brons:        #B0763C;

    --rand: rgba(255, 255, 255, 0.14);
    --rand-goud: rgba(212, 160, 60, 0.55);
    --paneel: rgba(255, 255, 255, 0.06);
    --paneel-diep: rgba(0, 0, 0, 0.22);

    --radius: 14px;
    --radius-klein: 9px;
    --schaduw: 0 10px 30px rgba(0, 0, 0, 0.30);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    color: var(--eem-wit);
    background-color: var(--eem-blauw-donker);
    /* Subtiele diagonale banen als knipoog naar het clublogo. */
    background-image:
        repeating-linear-gradient(
            115deg,
            transparent 0 78px,
            rgba(255, 255, 255, 0.035) 78px 82px,
            transparent 82px 160px
        ),
        radial-gradient(120% 90% at 50% -20%, var(--eem-blauw) 0%, var(--eem-blauw-donker) 62%);
    background-attachment: fixed;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--eem-goud-licht); }

/* --- Layout ------------------------------------------------------- */

.omhulsel {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 12px 14px 90px;
}
.omhulsel--breed { max-width: 1200px; }

.kop {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
}
.kop__titel { flex: 1; min-width: 0; }
.kop__titel h1 { margin: 0; font-size: 1.15rem; }
.kop__sub {
    margin: 2px 0 0;
    font-size: .82rem;
    color: var(--eem-goud-licht);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* --- Logo met fallback -------------------------------------------- */
/* De placeholder ligt eronder; ontbreekt het bestand, dan verbergt de
   onerror-handler de <img> en blijft het monogram zichtbaar. */

.logo {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--logo-maat, 46px);
    height: var(--logo-maat, 46px);
    border-radius: 50%;
    background: linear-gradient(160deg, var(--eem-blauw-licht), var(--eem-blauw-donker));
    border: 2px solid var(--eem-goud);
    overflow: hidden;
}
.logo::after {
    content: "EB";
    font-weight: 900;
    font-size: calc(var(--logo-maat, 46px) * 0.36);
    letter-spacing: .02em;
    color: var(--eem-goud);
}
.logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: inherit;
}
.logo img.is-mislukt { display: none; }
.logo--groot { --logo-maat: 118px; }
.logo--xl { --logo-maat: 170px; }

/* --- Kaarten en panelen ------------------------------------------- */

.kaart {
    background: var(--paneel);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--schaduw);
    backdrop-filter: blur(2px);
}
.kaart--goud { border-color: var(--rand-goud); }
.kaart__kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.kaart__kop h2 { margin: 0; }

/* --- Knoppen ------------------------------------------------------ */

.knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--eem-wit);
    background: var(--eem-blauw-licht);
    border: 1px solid var(--rand);
    border-radius: var(--radius-klein);
    cursor: pointer;
    text-decoration: none;
    transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
    touch-action: manipulation;
}
.knop:active { transform: translateY(1px); }
.knop:focus-visible { outline: 3px solid var(--eem-goud-licht); outline-offset: 2px; }
.knop[disabled], .knop.is-uit {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.knop--goud {
    background: linear-gradient(180deg, var(--eem-goud-licht), var(--eem-goud));
    border-color: var(--eem-goud);
    color: #2A1F06;
}
.knop--stil { background: transparent; border-color: var(--rand); }
.knop--gevaar { background: var(--eem-rood); border-color: rgba(255,255,255,.2); }
.knop--groot { min-height: 62px; font-size: 1.1rem; }
.knop--vol { width: 100%; }
.knop--klein { min-height: 36px; padding: 6px 12px; font-size: .85rem; }

.knoprij {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.knoprij--gelijk > * { flex: 1 1 0; min-width: 0; }

.knopraster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

/* --- Formulieren -------------------------------------------------- */

.veld { margin-bottom: 12px; }
.veld > label {
    display: block;
    margin-bottom: 5px;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--eem-goud-licht);
}
.invoer, select.invoer, textarea.invoer {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--eem-wit);
    background: var(--paneel-diep);
    border: 1px solid var(--rand);
    border-radius: var(--radius-klein);
}
.invoer:focus { outline: none; border-color: var(--eem-goud); }
.invoer::placeholder { color: rgba(255,255,255,.4); }
textarea.invoer { min-height: 84px; resize: vertical; line-height: 1.4; }
select.invoer option { background: var(--eem-blauw-donker); color: var(--eem-wit); }

.invoer--code {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.invoer--pin {
    text-align: center;
    letter-spacing: .5em;
    font-size: 1.6rem;
    font-weight: 800;
    padding-left: .5em;
}
/* Het teamlogin-scherm heeft nu maar een veld: extra groot en prominent. */
.login__code {
    font-size: 2.6rem;
    min-height: 72px;
    letter-spacing: .4em;
}
.veldrij {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.hint { font-size: .8rem; color: rgba(255,255,255,.6); margin: 4px 0 0; }

/* --- Meldingen ---------------------------------------------------- */

.melding {
    padding: 11px 14px;
    border-radius: var(--radius-klein);
    border: 1px solid var(--rand);
    background: var(--paneel);
    margin-bottom: 12px;
    font-size: .92rem;
}
.melding--fout  { background: rgba(200, 69, 47, .22); border-color: rgba(200, 69, 47, .6); }
.melding--goed  { background: rgba(47, 163, 107, .22); border-color: rgba(47, 163, 107, .6); }
.melding--let   { background: rgba(212, 160, 60, .18); border-color: var(--rand-goud); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 1px solid var(--rand);
    background: var(--paneel-diep);
    white-space: nowrap;
}
.badge--goud  { background: var(--eem-goud); color: #2A1F06; border-color: var(--eem-goud); }
.badge--groen { background: rgba(47, 163, 107, .3); border-color: var(--eem-groen); }
.badge--rood  { background: rgba(200, 69, 47, .3); border-color: var(--eem-rood); }

/* --- Tabellen (dashboard) ----------------------------------------- */

.tabelwikkel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.tabel th, .tabel td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid var(--rand);
    vertical-align: middle;
}
.tabel th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--eem-goud-licht);
    white-space: nowrap;
}
.tabel tbody tr:hover { background: rgba(255,255,255,.04); }
.tabel td.nummer, .tabel th.nummer { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Diversen ----------------------------------------------------- */

.verborgen { display: none !important; }
.alleen-schermlezer {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.midden { text-align: center; }
.stil { color: rgba(255,255,255,.65); }
.klein { font-size: .85rem; }
.cijfers { font-variant-numeric: tabular-nums; }
/* Negatieve teamtotalen mogen bestaan (mc_multi kan aftrekken); duidelijk
   afwijkende kleur zodat een minpuntenstand niet als leesfout oogt. */
.cijfers.is-negatief, .is-negatief .cijfers { color: var(--eem-rood); }

.voettekst {
    padding: 20px 0 8px;
    text-align: center;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}
.voettekst a { color: rgba(255,255,255,.6); }

/* Vaste balk onderaan het scherm, voor de hoofdactie op mobiel. */
.balk-onder {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(35,32,105,0), var(--eem-blauw-donker) 38%);
    z-index: 20;
}
.balk-onder__binnen { max-width: 620px; margin: 0 auto; }

/* =====================================================================
   LOGINSCHERM
   ===================================================================== */

.login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.login__logo { margin-bottom: 18px; }
.login__titel {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 4px;
}
.login__onder {
    text-align: center;
    color: var(--eem-goud-licht);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: 22px;
}
.login__kaart { width: 100%; max-width: 400px; }

/* =====================================================================
   TEAMSCHERM
   ===================================================================== */

.statusregel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

/* Timer: groot, met tabulaire cijfers zodat hij niet wiebelt bij aftellen. */
.timer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--eem-goud-licht);
}
.timer small { font-size: .9rem; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.timer.is-krap { color: var(--eem-rood); animation: pols 1s ease-in-out infinite; }
.timer.is-uit { color: rgba(255,255,255,.35); animation: none; }

@keyframes pols {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.timerbalk {
    height: 8px;
    border-radius: 999px;
    background: var(--paneel-diep);
    overflow: hidden;
    margin-top: 10px;
}
.timerbalk__vulling {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--eem-goud), var(--eem-goud-licht));
    transform-origin: left center;
    transition: transform .2s linear, background-color .3s ease;
}
.timerbalk__vulling.is-krap { background: linear-gradient(90deg, var(--eem-rood), #E27A66); }

.vraagtekst {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 6px 0 14px;
}
.vraagafbeelding {
    display: block;
    width: 100%;
    max-height: 34vh;
    object-fit: contain;
    border-radius: var(--radius-klein);
    border: 1px solid var(--rand);
    background: var(--paneel-diep);
    margin-bottom: 14px;
}

/* Antwoordknoppen: groot genoeg om met een duim te raken. */
.opties { display: grid; gap: 10px; }
.optie {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 12px 14px;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--eem-wit);
    background: var(--paneel);
    border: 2px solid var(--rand);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
    touch-action: manipulation;
}
.optie:active { transform: scale(.985); }
.optie__letter {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--paneel-diep);
    border: 2px solid var(--rand);
    font-weight: 900;
    font-size: 1rem;
}
.optie__tekst { flex: 1; min-width: 0; }

.optie.is-gekozen {
    background: rgba(212, 160, 60, .2);
    border-color: var(--eem-goud);
}
.optie.is-gekozen .optie__letter {
    background: var(--eem-goud);
    border-color: var(--eem-goud);
    color: #2A1F06;
}
.optie.is-juist {
    border-color: var(--eem-groen);
    background: rgba(47, 163, 107, .22);
}
.optie.is-juist .optie__letter { background: var(--eem-groen); border-color: var(--eem-groen); }
.optie.is-fout {
    border-color: var(--eem-rood);
    background: rgba(200, 69, 47, .18);
}
.optie.is-fout .optie__letter { background: var(--eem-rood); border-color: var(--eem-rood); }
.optie[disabled] { cursor: default; }
.optie[disabled]:not(.is-gekozen):not(.is-juist):not(.is-fout) { opacity: .55; }

.resultaat {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius);
    border: 2px solid var(--rand);
    margin-bottom: 14px;
}
.resultaat--goed { border-color: var(--eem-groen); background: rgba(47, 163, 107, .18); }
.resultaat--fout { border-color: var(--eem-rood); background: rgba(200, 69, 47, .15); }
.resultaat__punten { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.resultaat__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

.eigenstand {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    text-align: center;
}
.eigenstand__waarde { font-size: 1.9rem; font-weight: 900; color: var(--eem-goud-licht); line-height: 1; }
.eigenstand__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; opacity: .7; }

/* =====================================================================
   ADMINSCHERM
   ===================================================================== */

.admin-strook {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}
.admin-strook__waarde { font-size: 1.5rem; font-weight: 900; color: var(--eem-goud-licht); }
.admin-strook__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

.teamstatus {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.teamstatus__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-klein);
    border: 1px solid var(--rand);
    background: var(--paneel-diep);
    font-size: .9rem;
}
.teamstatus__item.is-klaar { border-color: var(--eem-groen); background: rgba(47,163,107,.16); }
.teamstatus__naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.overrule-rij {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--rand);
}
.overrule-rij:last-child { border-bottom: 0; }
.overrule-rij__punten { width: 92px; text-align: right; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */

.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--rand);
    padding-bottom: 10px;
}
.tab {
    padding: 9px 16px;
    border-radius: var(--radius-klein);
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,.72);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.tab:hover { background: var(--paneel); color: var(--eem-wit); }
.tab.is-actief {
    background: var(--eem-goud);
    border-color: var(--eem-goud);
    color: #2A1F06;
}

.vraagrij {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--rand);
    border-radius: var(--radius-klein);
    background: var(--paneel-diep);
    margin-bottom: 8px;
}
.vraagrij__nr {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--eem-blauw-licht);
    font-weight: 900;
    font-size: .9rem;
}
.vraagrij__tekst { min-width: 0; }
.vraagrij__titel { font-weight: 700; margin-bottom: 3px; }
.vraagrij__meta { font-size: .78rem; color: rgba(255,255,255,.6); }
.vraagrij__acties { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.ronde-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--rand-goud);
}
.ronde-kop h3 { margin: 0; color: var(--eem-goud-licht); }

/* Printbaar overzicht van de teamcodes. */
.printkaarten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.printkaart {
    padding: 14px;
    border: 2px dashed var(--rand-goud);
    border-radius: var(--radius-klein);
    text-align: center;
}
.printkaart__naam { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.printkaart__pin { font-size: 2rem; font-weight: 900; letter-spacing: .22em; }

@media print {
    body { background: #fff !important; color: #000 !important; }
    .niet-printen, .kop, .tabs, .voettekst, .balk-onder { display: none !important; }
    .kaart { border-color: #999; box-shadow: none; background: #fff; }
    .printkaart { border-color: #333; page-break-inside: avoid; }
    .printkaart__code, .printkaart__pin, h1, h2, h3 { color: #000 !important; }
}

/* =====================================================================
   SCOREBORD (beamer, 16:9)
   Maten in vw/vh zodat alles meeschaalt met de projectie.
   ===================================================================== */

body.scorebord {
    overflow: hidden;
    height: 100vh;
}
.bord {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 2.2vh 2.5vw;
}
.bord__kop {
    display: flex;
    align-items: center;
    gap: 1.6vw;
    margin-bottom: 1.5vh;
    flex: 0 0 auto;
}
.bord__kop .logo { --logo-maat: 8vh; }
.bord__titel { font-size: 3.4vh; font-weight: 900; margin: 0; letter-spacing: -.01em; }
.bord__sub {
    font-size: 1.7vh;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--eem-goud-licht);
    margin: 0;
}
.bord__inhoud { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* De actieve weergave vult de resterende hoogte; de rest staat op display:none. */
#weergave-scores { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* --- Podium --- */

.podium {
    display: grid;
    grid-template-columns: 1fr 1.16fr 1fr;
    align-items: end;
    gap: 2.2vw;
    flex: 0 0 auto;
    margin-bottom: 2.4vh;
    padding: 0 4vw;
}
.podium__plek { text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.podium__naam {
    font-size: 2.5vh;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .6vh;
    overflow-wrap: anywhere;
}
.podium__punten {
    font-size: 3.4vh;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: .8vh;
}
.podium__blok {
    border-radius: 1.2vh 1.2vh 0 0;
    border: .3vh solid;
    border-bottom: 0;
    display: grid;
    place-items: center;
    /* De hoogte animeert wanneer de stand wijzigt. */
    transition: height .9s cubic-bezier(.22, .9, .3, 1);
}
.podium__plaats { font-size: 6vh; font-weight: 900; line-height: 1; opacity: .95; }

.podium__plek--1 .podium__blok {
    height: 30vh;
    background: linear-gradient(180deg, var(--eem-goud-licht), var(--eem-goud));
    border-color: var(--eem-goud-licht);
    color: #2A1F06;
    box-shadow: 0 0 6vh rgba(212, 160, 60, .35);
}
.podium__plek--1 .podium__naam, .podium__plek--1 .podium__punten { color: var(--eem-goud-licht); }
.podium__plek--1 .podium__naam { font-size: 3.1vh; }
.podium__plek--1 .podium__punten { font-size: 4.4vh; }

.podium__plek--2 .podium__blok {
    height: 21vh;
    background: linear-gradient(180deg, #E4E8F0, var(--eem-zilver));
    border-color: #E4E8F0;
    color: #23262E;
}
.podium__plek--2 .podium__naam, .podium__plek--2 .podium__punten { color: var(--eem-zilver); }

.podium__plek--3 .podium__blok {
    height: 15vh;
    background: linear-gradient(180deg, #D09B62, var(--eem-brons));
    border-color: #D09B62;
    color: #2B1B0B;
}
.podium__plek--3 .podium__naam, .podium__plek--3 .podium__punten { color: #D9A874; }

.podium__plek--leeg { opacity: .28; }

/* --- Ranglijst onder het podium --- */

.ranglijst {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-auto-rows: min-content;
    gap: .8vh;
    align-content: start;
}
.ranglijst--twee { grid-template-columns: 1fr 1fr; column-gap: 2vw; }
.ranglijst__rij {
    display: grid;
    grid-template-columns: 5vh 1fr auto;
    align-items: center;
    gap: 1.4vw;
    padding: .9vh 1.4vw;
    border-radius: 1vh;
    background: var(--paneel);
    border: 1px solid var(--rand);
    font-size: 2.2vh;
    /* Soepel verspringen wanneer teams van plaats wisselen. */
    transition: background-color .4s ease, border-color .4s ease;
}
.ranglijst__rij.is-gestegen { border-color: var(--rand-goud); background: rgba(212,160,60,.16); }
.ranglijst__plaats { font-weight: 900; color: var(--eem-goud-licht); text-align: right; }
.ranglijst__naam {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranglijst__punten { font-weight: 900; font-variant-numeric: tabular-nums; }

/* --- Melding op de beamer (scorebord verborgen) --- */

.bord-melding {
    flex: 1;
    display: grid;
    place-items: center;
    text-align: center;
}
.bord-melding__tekst { font-size: 5vh; font-weight: 900; color: var(--eem-goud-licht); }

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

/* --- Kleine schermen ---------------------------------------------- */

@media (max-width: 420px) {
    .vraagtekst { font-size: 1.2rem; }
    .timer { font-size: 2.9rem; }
    .optie { min-height: 58px; font-size: 1rem; }
    .kaart { padding: 13px; }
}

/* --- Dashboard op een laptop -------------------------------------- */

@media (min-width: 900px) {
    .dashboard-kolommen {
        display: grid;
        grid-template-columns: 1.35fr 1fr;
        gap: 16px;
        align-items: start;
    }
}
