/* Gedeelde stijl van de gratis spellen (De of het?, werkwoordenspel).
   Klassen .dh-* (de prefix komt van De of het?). Gedrag in /js/spel-kern.js.
   Na een wijziging ?v= ophogen op beide spelpagina's. */
body { background: #f4f7fb; }
.dh {
    --navy: #1e3a5f; --navy-2: #16263c; --teal: #0e7490; --cyan: #06b6d4;
    --ink: #1f2937; --muted: #5b6676; --line: #dde5ef; --card: #fff;
    --goed: #15803d; --goed-bg: #e8f6ec; --fout: #b91c1c; --fout-bg: #fdecec;
    max-width: 640px; margin: 0 auto; padding: 32px 16px 56px; color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dh *, .dh *::before, .dh *::after { box-sizing: border-box; }
.dh [hidden] { display: none !important; }
.dh-kop { text-align: center; margin-bottom: 24px; }
.dh-kop h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.1; margin: 0 0 10px; color: var(--navy); letter-spacing: -0.02em; }
.dh-kop h1 span { color: var(--teal); }
.dh-kop p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.dh-kop .en { font-size: 14px; margin-top: 4px; }

.dh-paneel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(22, 38, 60, .07); }
.dh-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.dh-label small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.dh-niveaus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.dh-niveau { appearance: none; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 6px; font: inherit; font-weight: 700; font-size: 16px; color: var(--navy); cursor: pointer; text-align: center; line-height: 1.2; }
.dh-niveau small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dh-niveau[aria-pressed="true"] { border-color: var(--navy); background: #eef3fa; }
.dh-niveau:focus-visible, .dh-knop:focus-visible, .dh-kies:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.dh-knop { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 22px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; }
.dh-knop-hoofd { background: var(--navy); color: #fff; width: 100%; }
.dh-knop-hoofd:hover { background: var(--navy-2); }
.dh-knop-licht { background: #eef3fa; color: var(--navy); }
.dh-knop-licht:hover { background: #e2eaf5; }
.dh-record { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; min-height: 1.2em; }

.dh-stand { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.dh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #f1f5fa; color: var(--navy); font-weight: 700; font-size: 14px; }
.dh-chip svg { width: 17px; height: 17px; }
.dh-chip-vuur { background: linear-gradient(135deg, #fff1d6, #ffe1d6); color: #b4410d; }
.dh-chip-vuur svg { --ic-line: #ea580c; --ic-accent: rgba(245, 158, 11, .35); --ic-pop: #f59e0b; }
.dh-account { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.dh-account a { color: var(--teal); font-weight: 600; }
.dh-herkansing { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 99px; background: #fff4d6; color: #8a5a00; font-weight: 800; font-size: 13px; }
.dh-dagreeks { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, #fff1d6, #ffe1d6); color: #b4410d; font-weight: 800; font-size: 15px; animation: dh-pop .5s .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.dh-dagreeks svg { width: 18px; height: 18px; --ic-line: #ea580c; --ic-accent: rgba(245, 158, 11, .35); --ic-pop: #f59e0b; }
.dh-onthouden { color: var(--goed); font-weight: 700; margin: 8px 0 0; }

.dh-balk { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-voortgang { flex: 1; height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.dh-voortgang i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 99px; transition: width .35s cubic-bezier(.3, 1.4, .5, 1); }
.dh-punten { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--navy); font-size: 17px; min-width: 3.6em; justify-content: flex-end; }
.dh-punten svg { width: 18px; height: 18px; color: #f59e0b; }
.dh-punten.tik { animation: dh-tik .35s ease; }
.dh-geluid { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.dh-geluid svg { width: 19px; height: 19px; }
.dh-geluid .uit { display: none; }
.dh-geluid[aria-pressed="false"] .aan { display: none; }
.dh-geluid[aria-pressed="false"] .uit { display: inline; }

.dh-veld { position: relative; }
.dh-reeks { position: absolute; z-index: 3; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 8px; border-radius: 99px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(239, 68, 68, .35); }
.dh-reeks svg { width: 18px; height: 18px; --ic-line: #fff; --ic-accent: rgba(255, 255, 255, .35); --ic-pop: #fff7d6; }
.dh-reeks.pop { animation: dh-pop-midden .45s cubic-bezier(.3, 1.6, .5, 1); }
.dh-kaart { position: relative; background: var(--card); border: 3px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color .15s ease, box-shadow .2s ease; }
.dh-kaart.goed { border-color: var(--goed); box-shadow: 0 0 0 6px rgba(21, 128, 61, .12); animation: dh-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.dh-kaart.fout { border-color: var(--fout); box-shadow: 0 0 0 6px rgba(185, 28, 28, .1); animation: dh-schud .4s ease; }
.dh-foto { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: max(180px, calc(100vh - 430px)); max-height: max(180px, calc(100svh - 430px)); object-fit: contain; background: #f6f8fb; }
.dh-woord { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 16px 16px 18px; font-size: clamp(30px, 7vw, 40px); font-weight: 800; color: var(--ink); }
.dh-gat { display: inline-block; min-width: 2.4em; text-align: center; border-bottom: 3px dashed var(--line); color: var(--muted); }
.dh-kaart.goed .dh-gat, .dh-kaart.fout .dh-gat { border-bottom-style: solid; animation: dh-val .3s cubic-bezier(.3, 1.6, .5, 1); }
.dh-kaart.goed .dh-gat { color: var(--goed); border-color: var(--goed); }
.dh-kaart.fout .dh-gat { color: var(--fout); border-color: var(--fout); }
.dh-melding { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 15px; animation: dh-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.dh-kaart.goed .dh-melding { background: var(--goed); color: #fff; }
.dh-kaart.fout .dh-melding { background: var(--fout-bg); color: var(--fout); }
.dh-luister { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dh-luister svg { width: 22px; height: 22px; }
.dh-plus { position: absolute; z-index: 4; left: 50%; bottom: 72px; transform: translateX(-50%); font-size: 28px; font-weight: 900; color: var(--goed); text-shadow: 0 2px 0 #fff, 0 0 12px #fff; pointer-events: none; animation: dh-stijg .9s ease-out forwards; white-space: nowrap; }
.dh-plus.groot { color: #ea580c; font-size: 34px; }
.dh-vonk { position: absolute; z-index: 4; width: 9px; height: 9px; border-radius: 3px; pointer-events: none; animation: dh-vonk .7s ease-out forwards; }

.dh-onder { margin-top: 16px; min-height: 92px; }
.dh-keuze { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dh-kies, .dh-verder { appearance: none; border: 0; border-radius: 18px; font: inherit; color: #fff; cursor: pointer; touch-action: manipulation; position: relative; top: 0; transition: top .06s ease, box-shadow .06s ease, filter .15s ease, opacity .2s ease; }
.dh-kies { padding: 20px 8px; font-size: 32px; font-weight: 900; letter-spacing: .01em; }
.dh-kies-de { background: linear-gradient(180deg, #2b4f7c, var(--navy)); box-shadow: 0 7px 0 #0f2238, 0 12px 20px rgba(15, 34, 56, .25); }
.dh-kies-het { background: linear-gradient(180deg, #1593b3, var(--teal)); box-shadow: 0 7px 0 #0a5266, 0 12px 20px rgba(10, 82, 102, .25); }
.dh-kies:hover:not(:disabled), .dh-verder:hover { filter: brightness(1.08); }
.dh-kies:active:not(:disabled), .dh-kies.ingedrukt { top: 6px; box-shadow: 0 1px 0 #0f2238, 0 3px 8px rgba(15, 34, 56, .2); }
.dh-kies:disabled { cursor: default; opacity: .35; }
.dh-kies.juist { opacity: 1; background: linear-gradient(180deg, #22a052, var(--goed)); box-shadow: 0 7px 0 #0c5427, 0 12px 20px rgba(12, 84, 39, .3); }
.dh-kies.mis { opacity: 1; background: linear-gradient(180deg, #d63a3a, var(--fout)); box-shadow: 0 1px 0 #7a1212; top: 6px; }
.dh-verder { width: 100%; padding: 22px 16px; font-size: 22px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, #2b4f7c, var(--navy)); box-shadow: 0 7px 0 #0f2238, 0 12px 20px rgba(15, 34, 56, .25); animation: dh-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.dh-verder svg { width: 26px; height: 26px; transition: transform .2s ease; }
.dh-verder:hover svg { transform: translateX(4px); }
.dh-verder:active { top: 6px; box-shadow: 0 1px 0 #0f2238; }
.dh-verder:focus { outline: none; }
.dh-verder:focus-visible { box-shadow: 0 7px 0 #0f2238, 0 0 0 4px rgba(6, 182, 212, .45); }

.dh-uitslag { text-align: center; position: relative; overflow: hidden; }
.dh-sterren { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.dh-ster { width: 54px; height: 54px; color: #dfe6ef; }
.dh-ster:nth-child(2) { width: 68px; height: 68px; margin-top: -10px; }
.dh-ster.aan { color: #f59e0b; animation: dh-ster .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.dh-ster.aan:nth-child(2) { animation-delay: .25s; }
.dh-ster.aan:nth-child(3) { animation-delay: .5s; }
.dh-kreet { font-size: 26px; font-weight: 900; color: var(--navy); margin: 0 0 2px; }
.dh-score { font-size: 56px; font-weight: 900; color: var(--navy); line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.dh-score small { display: block; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.dh-sub { color: var(--muted); margin: 0 0 4px; }
.dh-nieuw { display: inline-block; margin-top: 6px; padding: 5px 14px; border-radius: 99px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-weight: 800; font-size: 14px; animation: dh-pop .5s .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.dh-knoppen { display: grid; gap: 10px; margin-top: 20px; }
.dh-knoppen .dh-knop-hoofd { padding: 18px 22px; font-size: 19px; border-radius: 16px; background: linear-gradient(180deg, #2b4f7c, var(--navy)); box-shadow: 0 6px 0 #0f2238; position: relative; top: 0; transition: top .06s ease, box-shadow .06s ease; }
.dh-knoppen .dh-knop-hoofd:active { top: 5px; box-shadow: 0 1px 0 #0f2238; }
.dh-knoppen-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dh-knoppen-rij .dh-knop { padding: 12px 14px; font-size: 15px; }
.dh-fouten { margin-top: 26px; text-align: left; }
.dh-fouten ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.dh-fouten li { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dh-fouten img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #f6f8fb; }
.dh-fouten b { display: block; padding: 8px 10px; font-size: 16px; }
.dh-fouten b em { font-style: normal; color: var(--teal); }
.dh-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.dh-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: dh-confetti linear forwards; }

@keyframes dh-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes dh-pop-midden { 0% { transform: translateX(-50%) scale(.6); } 60% { transform: translateX(-50%) scale(1.15); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes dh-tik { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes dh-val { 0% { transform: translateY(-14px) scale(1.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes dh-schud { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes dh-stijg { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 25% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@keyframes dh-vonk { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(220deg); } }
@keyframes dh-ster { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes dh-confetti { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(110vh) rotate(720deg); } }

.dh-proefles { margin-top: 28px; background: linear-gradient(135deg, #16263c, #1e3a5f); color: #fff; border-radius: 18px; padding: 24px; text-align: left; }
.dh-proefles h2 { margin: 0 0 8px; font-size: 21px; color: #fff; }
.dh-proefles p { margin: 0 0 16px; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.dh-proefles .dh-knop { background: #f59e0b; color: #1e3a5f; }
.dh-toetsen { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.dh-toetsen kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; font: inherit; font-weight: 700; }
@media (hover: none) { .dh-toetsen { display: none; } }
@media (max-width: 420px) {
    .dh { padding-top: 20px; }
    .dh-paneel { padding: 18px; }
    .dh-niveaus { grid-template-columns: repeat(2, 1fr); }
    .dh-foto { max-height: max(160px, calc(100svh - 390px)); }
    .dh-kies { font-size: 28px; padding: 18px 8px; }
}
@media (prefers-reduced-motion: reduce) { .dh *, .dh-confetti * { transition: none !important; animation: none !important; } .dh-plus, .dh-vonk, .dh-confetti { display: none; } }
