/* Gedeelde stijl voor alle schermen — een lichte, speelse "kaartspel"-stijl
   (crème achtergrond met warm goud/blauw gloed-accenten), in de geest van
   Blizzards Hearthstone, maar luchtig i.p.v. donker. Zie todo.md, punt 10.
   Kleuren zijn zo gekozen dat er ook bij rood/groen-kleurenblindheid
   voldoende contrast en onderscheid overblijft (donkere, verzadigde tonen
   i.p.v. felle rood/groen naast elkaar, en status wordt altijd ook met
   tekst/icoon aangegeven, niet met kleur alleen). */

:root {
    --goud: #a8762a;
    --goud-fel: #e0a83c;
    --blauw: #2f6fb0;
    --achtergrond: #f2e4c8;
    --paneel: #fffaf0;
    --paneel-rand: #d8c39a;
    --rood: #b23a34;
    --groen: #2f7d4f;
    --tekst: #2e2416;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at top, #fffdf7 0%, var(--achtergrond) 75%);
    color: var(--tekst);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.paneel {
    background: linear-gradient(180deg, var(--paneel) 0%, #fbf1dc 100%);
    border: 2px solid var(--paneel-rand);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(184, 134, 47, 0.25), 0 4px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

h1, h2, h3 { font-family: 'Georgia', serif; color: var(--goud); margin-top: 0; }

button {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid var(--goud);
    background: linear-gradient(180deg, #f8e6ab, #ecca6e);
    color: #4a3418;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}
button:hover:not(:disabled) { box-shadow: 0 0 14px var(--goud-fel); transform: translateY(-1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

input[type=text], input[type=password], input[type=number], select, textarea {
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--paneel-rand);
    background: #fffdf7;
    color: var(--tekst);
    width: 100%;
}

.rij { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.centreer { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

/* --- Ring-timer: witte cirkel met een rode ringlijn die tegen de klok in wegloopt --- */
.timer-ring {
    position: relative;
    width: 84px;
    height: 84px;
}
.timer-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.timer-ring circle {
    fill: white;
    stroke: var(--rood);
    stroke-width: 8;
    r: 36;
    cx: 42;
    cy: 42;
    stroke-linecap: round;
}
.timer-ring .achtergrond-cirkel { stroke: #e3d5b8; }
.timer-ring .getal {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #111; font-weight: 700; font-size: 1.3rem;
}

/* --- Powerup-shop: 2 rijen van 4 iconen --- */
.powerup-shop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.powerup-knop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 10px;
    border: 2px solid var(--goud);
    background: linear-gradient(180deg, #fff6e0, #f3dfab);
    color: var(--tekst);
    font-size: 0.75rem;
    cursor: pointer;
}
.powerup-knop .icoon { font-size: 1.6rem; }
.powerup-knop:disabled { opacity: 0.35; }
.powerup-knop.sabotage { border-color: var(--rood); }

/* --- Full-screen "kaart gespeeld"-animatie op het hoofdscherm (bewust donker
   voor drama/contrast, ook al is de rest van het scherm licht) --- */
.powerup-banner {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(20, 16, 8, 0.82);
    z-index: 50;
    animation: banner-in 0.25s ease-out;
}
.powerup-banner .icoon { font-size: 5rem; filter: drop-shadow(0 0 20px var(--goud-fel)); animation: pop 0.4s ease; }
.powerup-banner .tekst { font-size: 1.6rem; color: var(--goud-fel); text-align: center; }
@keyframes banner-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

.confetti-stuk {
    position: fixed; top: -20px; width: 10px; height: 16px;
    animation: val 2.6s linear forwards;
    z-index: 60;
}
@keyframes val {
    to { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

.kaart {
    background: linear-gradient(180deg, var(--paneel), #fffaf000);
    border: 2px solid var(--paneel-rand);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background: var(--blauw);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 0.8rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--paneel-rand); }

/* --- Kleine vraag-thumbnail (afbeelding) en audio-afspeelknop in vragenlijsten --- */
.vraag-thumb {
    width: 48px; height: 48px; object-fit: cover;
    border-radius: 6px; border: 1px solid var(--paneel-rand);
    flex-shrink: 0;
}
.audio-play-knop {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; font-size: 1rem; flex-shrink: 0;
}
