/* Test je kennis (/testjekennis) – online quiz, aanvulling op site.css */

/* intro onder de titel: op brede schermen op één lijn */
.phero .lead.breed { max-width: none; }

.melding.info { background: #e3f1f5; color: #124e5a; font-weight: 500; }
.linkknop { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.linkknop:hover { color: var(--ink); }
.klein { font-size: .93rem; }
.btn.groot { font-size: 1.2rem; padding: 16px 28px; }
.btn.ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(35, 43, 55, .3); }
.btn.ghost-dark:hover { box-shadow: inset 0 0 0 2px var(--teal-dark); transform: none; }
.cream .melding { margin-bottom: 18px; }

/* Balk "aangemeld als" */
.spelbalk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; background: #fff; border-radius: var(--r-sm); padding: 12px 18px; box-shadow: inset 0 0 0 2px var(--cream2); margin-bottom: 18px; }
.spelbalk .badge { margin-left: 4px; }
.spelbalk-links { font-size: .95rem; }

.speelvak [hidden] { display: none !important; }

/* Rondekaart */
.speelvak { display: grid; gap: 18px; }
.speelvak [data-rondes] { display: grid; gap: 18px; }
.ronde { position: relative; overflow: hidden; background: var(--night); color: var(--cream); border-radius: var(--r-lg); padding: 30px 24px 26px; display: grid; gap: 14px; }
.ronde::before, .ronde::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ronde::before { width: 240px; height: 240px; right: -70px; top: -90px; background: var(--teal); opacity: .9; }
.ronde::after { width: 120px; height: 120px; right: 90px; top: -60px; background: var(--mustard); }
.ronde > * { position: relative; z-index: 1; }
.ronde:not(.hoofd) { background: var(--night2); }
.ronde:not(.hoofd)::before, .ronde:not(.hoofd)::after { display: none; }
.ronde-label { font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bulb); }
.ronde h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); max-width: 18ch; }
.ronde-intro { color: #e6e2d2; max-width: 60ch; }
.ronde-intro a, .ronde a { color: var(--bulb); }
.ronde-feiten { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ronde-feiten li { border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.ronde-feiten li:nth-child(1) { background: var(--teal); color: #fff; }
.ronde-feiten li:nth-child(2) { background: var(--mustard); }
.ronde-feiten li:nth-child(3) { background: var(--green); }
.ronde-feiten b { font-family: var(--disp); font-size: 1.08rem; }
.ronde-prijs { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-self: start; background: rgba(255, 229, 110, .12); border: 1.5px dashed var(--bulb); border-radius: 14px; padding: 9px 14px; font-weight: 600; }
.ronde-prijs span { color: var(--bulb); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ronde-gedaan { background: rgba(106, 172, 124, .18); border: 1.5px solid var(--green); border-radius: 14px; padding: 10px 14px; color: #dff3e5; }
.ronde .btns { margin-top: 6px; }
.ronde-sponsor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .92rem; color: #cfd5de; }
.ronde-sponsor img { display: block; width: 150px; height: 100px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.ronde-sponsor b { color: var(--cream); font-size: 1.05rem; }
@media (min-width: 760px) { .ronde { padding: 40px 44px 34px; } .ronde::before { width: 320px; height: 320px; right: -80px; top: -130px; } .ronde::after { right: 170px; } }

/* Formulieren in het speelvak */
.spelform { max-width: 760px; }
.spelform .btns { margin-top: 4px; }
.spelform-groep { display: grid; gap: 18px; }

/* ---------- Het spel ---------- */
.spel { background: var(--night); color: var(--cream); border-radius: var(--r-lg); padding: 22px 18px 26px; display: grid; gap: 18px; scroll-margin-top: 12px; }
@media (min-width: 760px) { .spel { padding: 32px 40px 36px; } }
.spel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.spel-nr { font-family: var(--disp); font-size: 1.15rem; }
.spel-nr small { color: #aab3c2; font-family: var(--body); font-size: .9rem; margin-left: 6px; }
.spel-score { background: var(--night2); border-radius: 999px; padding: 6px 14px; font-variant-numeric: tabular-nums; }
.spel-score b { color: var(--bulb); font-family: var(--disp); font-size: 1.1rem; }
.bolletjes { display: flex; gap: 6px; }
.bolletjes i { flex: 1; height: 6px; border-radius: 3px; background: var(--night3); }
.bolletjes i.ok { background: var(--green); }
.bolletjes i.nok { background: #d9583b; }
.bolletjes i.nu { background: var(--bulb); }

.timer { position: relative; height: 18px; border-radius: 999px; background: var(--night3); overflow: hidden; }
.timer-balk { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, var(--green), var(--mustard)); border-radius: 999px; transform-origin: left; }
.timer.laag .timer-balk { background: var(--orange); }
.timer-sec { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 .8rem/1 var(--disp); color: var(--ink); }

.spel-cat { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.spel-vraag { font-size: clamp(1.45rem, 4.4vw, 2.2rem); line-height: 1.2; }
.spel-foto { margin: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--night2); display: grid; place-items: center; }
.spel-foto img { display: block; max-height: 34vh; width: auto; max-width: 100%; }
@media (min-height: 900px) { .spel-foto img { max-height: 42vh; } }

.antw { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .antw { grid-template-columns: 1fr 1fr; gap: 12px; } }
.antw button { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 18px; padding: 12px 16px; font: 600 1.08rem/1.25 var(--body); color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); transition: transform .12s, box-shadow .12s, opacity .2s; }
.antw button:hover:not([disabled]) { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .28); }
.antw button:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.antw li:nth-child(1) button { background: var(--teal); color: #fff; }
.antw li:nth-child(2) button { background: var(--mustard); }
.antw li:nth-child(3) button { background: var(--green); }
.antw li:nth-child(4) button { background: var(--cream); }
.antw .letter { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-content: center; font: 700 1rem var(--disp); background: rgba(255, 255, 255, .35); }
.antw button[disabled] { cursor: default; }
.antw button.gedimd { opacity: .35; }
.antw button.juist { background: #3f9a5b !important; color: #fff !important; opacity: 1; box-shadow: 0 0 0 4px #c8f0d3; }
.antw button.fout { background: #d9583b !important; color: #fff !important; opacity: 1; }
.antw button.juist .letter::after, .antw button.fout .letter::after { position: absolute; }

.feedback { border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 6px; }
.feedback.ok { background: rgba(106, 172, 124, .2); border: 1.5px solid var(--green); }
.feedback.nok { background: rgba(217, 88, 59, .16); border: 1.5px solid #d9583b; }
.feedback strong { font: 700 1.3rem var(--disp); }
.feedback p { color: #e6e2d2; }
.spel .btns { margin-top: 0; }
.cream .spel a.btn.ghost, .cream .ronde a.btn.ghost { color: var(--cream); }

.laden { display: grid; place-items: center; min-height: 220px; color: #aab3c2; }
.laden::before { content: ""; width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--night3); border-top-color: var(--bulb); animation: draai .8s linear infinite; margin-bottom: 10px; }
@keyframes draai { to { transform: rotate(360deg); } }
.aftel { display: grid; place-items: center; min-height: 240px; font: 700 6rem/1 var(--disp); color: var(--bulb); }

/* Uitslag */
.uitslag { text-align: center; display: grid; gap: 10px; justify-items: center; padding-top: 6px; }
.uitslag .eyebrow { margin: 0; }
.uitslag-score { font: 700 clamp(4rem, 16vw, 6.5rem)/1 var(--disp); color: var(--bulb); font-variant-numeric: tabular-nums; }
.uitslag-score small { display: block; font-size: .22em; color: var(--cream); letter-spacing: .04em; margin-top: 4px; }
.uitslag-plaats { font-size: 1.15rem; max-width: 46ch; }
.uitslag-plaats b { color: var(--bulb); }
.uitslag .btns { justify-content: center; }
.overzicht { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.overzicht li { background: var(--night2); border-radius: 14px; padding: 12px 14px 12px 52px; position: relative; }
.overzicht li::before { content: attr(data-nr); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-content: center; font: 700 .95rem var(--disp); background: #d9583b; color: #fff; }
.overzicht li.ok::before { background: var(--green); }
.overzicht b { display: block; font-weight: 600; }
.overzicht span { display: block; font-size: .93rem; color: #cfd5de; }
.overzicht .pt { position: absolute; right: 14px; top: 12px; font: 700 .95rem var(--disp); color: var(--bulb); }
.overzicht li { padding-right: 60px; }
.overzicht-titel { font-size: 1.3rem; margin-top: 10px; }

/* ---------- Klassementen ---------- */
.klassementen { display: grid; gap: 16px; margin-top: 44px; }
.klassementen > h2 { margin-bottom: 4px; }
@media (min-width: 760px) { .klassementen { grid-template-columns: repeat(2, 1fr); align-items: start; } .klassementen > h2 { grid-column: 1 / -1; } }
.klas { background: #fff; border-radius: var(--r-md); padding: 20px 18px; box-shadow: inset 0 0 0 2px var(--cream2); }
.klas h3 { font-size: 1.4rem; }
.klas-uitleg { color: var(--ink2); font-size: .92rem; margin-top: 2px; }
.klas-leeg { color: var(--ink2); margin-top: 12px; }
.rang { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: r; display: grid; gap: 4px; }
.rang li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; }
.rang li::before { content: counter(r); width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; font: 700 .95rem var(--disp); background: var(--cream2); color: var(--ink); }
.rang li:nth-child(1)::before { background: var(--bulb); }
.rang li:nth-child(2)::before { background: var(--teal); color: #fff; }
.rang li:nth-child(3)::before { background: var(--mustard); }
.rang li.ik { background: #fff6cf; box-shadow: inset 0 0 0 2px var(--bulb); }
.rang .wie { min-width: 0; }
.rang .wie b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rang .wie small { display: block; color: var(--ink2); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rang .pt { font: 700 1.1rem var(--disp); font-variant-numeric: tabular-nums; }

/* ---------- Oefenrondes en uitleg (donkere achtergrond) ---------- */
.oefenlijst { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.oefenlijst li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--night2); border-radius: var(--r-sm); padding: 14px 16px; }
.oefenlijst b { display: block; font-family: var(--disp); font-size: 1.15rem; font-weight: 600; }
.oefenlijst small { color: #aab3c2; }
@media (min-width: 760px) { .oefenlijst { grid-template-columns: 1fr 1fr; } }
.steps.donker span { color: #cfd5de; }
.faq.donker details { background: var(--night2); box-shadow: none; }
.faq.donker details p { color: #cfd5de; }
.faq.donker a { color: var(--bulb); }
.sec .split > div > h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }

/* ---------- vrienden uitnodigen en eigen competities ---------- */
.uitnodiging { background: #fff6cf; border-radius: var(--r-md); padding: 16px 18px; box-shadow: inset 0 0 0 2px var(--bulb); margin-bottom: 18px; }
.uitnodiging p { margin: 0 0 8px; }
.uitnodiging .btns { margin-top: 10px; }
.vrienden { margin-top: 44px; }
.vrienden > .sub { color: var(--ink2); margin: 4px 0 16px; }
.vr-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .vr-grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.vr-blok { background: #fff; border-radius: var(--r-md); padding: 20px 18px; box-shadow: inset 0 0 0 2px var(--cream2); }
.vr-blok h3 { font-size: 1.4rem; margin-bottom: 6px; }
.vr-blok > p { color: var(--ink2); }
.comp-link { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.comp-link p { flex-basis: 100%; margin: 0; }
.comp-link input { flex: 1 1 220px; min-width: 0; font-size: .95rem; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--cream2); background: #fbf8ef; color: var(--ink); }
.vr-teller { font-size: .95rem; }
.vr-mail, .vr-maak { display: grid; gap: 8px; margin-top: 14px; }
.vr-mail p { margin: 0; }
.vr-mail input, .vr-mail select, .vr-maak input, .comp-hernoem input { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--cream2); background: #fff; color: var(--ink); }
.vr-mail small { color: var(--ink2); }
.vr-mail .btn, .vr-maak .btn { justify-self: start; }
.vr-kop { font-size: 1.5rem; margin: 28px 0 10px; }
.comps { display: grid; gap: 12px; }
.comp { background: #fff; border-radius: var(--r-md); box-shadow: inset 0 0 0 2px var(--cream2); }
.comp > summary { cursor: pointer; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style-position: inside; }
.comp > summary small { color: var(--ink2); }
.comp-naam { font: 700 1.25rem var(--disp); }
.comp-in { padding: 0 18px 18px; }
.comp-weg { border: 0; background: var(--cream2); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; margin-left: 6px; vertical-align: middle; }
.comp-weg:hover { background: #f3c2b8; }
.comp-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }
.comp-hernoem { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; }
.comp-hernoem input { flex: 1 1 180px; width: auto; }
.comp-hernoem .melding { flex-basis: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
