:root{
    color-scheme: light;
    --cream:#FBF3E4;
    --cream-deep:#F1E6CE;
    --ink:#22201B;
    --pine:#2F5D50;
    --pine-deep:#20423A;
    --white:#FFFDF8;

    --red:#E2543D;
    --red-dark:#C13F2C;
    --blue:#3A6EA5;
    --blue-dark:#2B547D;
    --sun:#F5B942;
    --sun-dark:#C9922B;
    --teal:#3F8C82;
    --teal-dark:#2E6961;
    --berry:#8C3F6B;
    --berry-dark:#6C2E51;

    --radius-lg:22px;
    --radius-md:14px;
    --radius-sm:8px;
    --shadow-hard:4px 4px 0 var(--ink);
    --shadow-hard-sm:3px 3px 0 var(--ink);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background:var(--cream);
    color:var(--ink);
    font-family:'Nunito', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size:17px;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    transition:background-color .5s ease;
  }
  body.turn-active{
    background-color:color-mix(in srgb, var(--turn-color, var(--pine)) 34%, var(--cream));
  }
  h1,h2,h3,h4{
    font-family:'Baloo 2', system-ui, sans-serif;
    margin:0 0 .3em 0;
    color:var(--pine-deep);
    line-height:1.15;
  }
  p{ margin:0 0 .7em 0; }
  button{ font-family:inherit; }
  .mono{ font-family:'Space Mono', 'Courier New', monospace; }

  a{ color:var(--pine-deep); }

  :focus-visible{
    outline:3px solid var(--blue);
    outline-offset:2px;
  }

  /* ---------- layout shell ---------- */
  .stripe-bar{
    height:9px;
    width:100%;
    background:repeating-linear-gradient(
      -45deg,
      var(--red) 0 18px,
      var(--cream-deep) 18px 36px
    );
    transition:background .4s ease;
  }
  body.turn-active .stripe-bar{
    background:repeating-linear-gradient(
      -45deg,
      var(--turn-color) 0 18px,
      var(--cream-deep) 18px 36px
    );
  }
  .site-header{
    max-width:980px;
    margin:0 auto;
    padding:34px 20px 18px;
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    animation:fadeSlideIn .6s ease both;
  }
  .premium-header-btn{ margin-left:auto; }
  .logo-mark{
    flex:none;
    width:64px;height:64px;
    display:flex;align-items:center;justify-content:center;
    font-size:34px;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:50%;
    box-shadow:var(--shadow-hard);
    transform:rotate(-6deg);
  }
  .site-header h1{
    font-size:clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing:.2px;
  }
  .tagline{
    margin:0;
    font-style:italic;
    font-weight:700;
    color:var(--pine);
    font-size:clamp(.9rem, 2vw, 1.05rem);
  }

  main{
    max-width:980px;
    margin:0 auto;
    padding:8px 20px 60px;
  }

  footer{
    text-align:center;
    padding:30px 20px 50px;
    color:var(--pine);
    font-weight:700;
  }
  .footer-seo-note{
    max-width:520px;
    margin:0 auto 14px;
    font-weight:400;
    font-size:.85rem;
    color:#6b6559;
  }

  .screen{ display:none; }
  .screen.active{ display:block; animation:fadeSlideIn .35s ease both; }

  @keyframes fadeSlideIn{
    from{ opacity:0; transform:translateY(14px); }
    to{ opacity:1; transform:translateY(0); }
  }

  /* ---------- buttons & form bits ---------- */
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.4em;
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
    font-size:1rem;
    padding:13px 24px;
    border-radius:999px;
    border:3px solid var(--ink);
    cursor:pointer;
    box-shadow:var(--shadow-hard-sm);
    transition:transform .12s ease, box-shadow .12s ease;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
    min-height:48px;
  }
  .btn:hover{ transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--ink); }
  .btn:active{ transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
  .btn-primary{ background:var(--pine); color:var(--white); }
  .btn-secondary{ background:var(--white); color:var(--pine-deep); }
  .btn-accent{ background:var(--sun); color:var(--ink); }
  .btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; box-shadow:var(--shadow-hard-sm); }
  .btn-sm{ padding:9px 16px; font-size:.9rem; min-height:40px; }

  .back-row{
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:10px;
    margin-bottom:18px;
  }

  .field-label{
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
    color:var(--pine-deep);
    display:block;
    margin-bottom:6px;
    font-size:.95rem;
  }
  input[type="text"], input[type="number"]{
    font-family:'Nunito', sans-serif;
    font-weight:700;
    font-size:1rem;
    padding:11px 14px;
    border-radius:var(--radius-sm);
    border:3px solid var(--ink);
    background:var(--white);
    color:var(--ink);
    width:100%;
  }
  .stepper{
    display:inline-flex; align-items:center; gap:12px;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:999px;
    padding:6px 8px;
  }
  .stepper button{
    width:34px;height:34px;border-radius:50%;
    border:2px solid var(--ink);
    background:var(--cream);
    font-family:'Baloo 2',sans-serif; font-weight:800; font-size:1.1rem;
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    line-height:1;
  }
  .stepper .count{ font-family:'Space Mono',monospace; font-weight:700; min-width:1.4em; text-align:center; }

  .name-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
    gap:12px;
    margin:16px 0 22px;
  }

  .setup-card{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    padding:24px clamp(18px,4vw,32px);
    box-shadow:var(--shadow-hard);
    max-width:640px;
  }

  .choice-row{ display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 20px; }
  .choice-pill{
    font-family:'Baloo 2',sans-serif; font-weight:700;
    border:3px solid var(--ink);
    border-radius:999px;
    padding:9px 18px;
    background:var(--white);
    cursor:pointer;
  }
  .choice-pill.selected{ background:var(--sun); }

  /* ---------- game menu ---------- */
  .intro-block{ max-width:640px; margin-bottom:26px; }
  .seo-subhead{
    font-size:clamp(1.05rem, 3vw, 1.3rem);
    color:var(--pine);
    margin-bottom:.35em;
  }
  .trust-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
  .trust-badge{
    font-family:'Baloo 2',sans-serif;
    font-weight:700;
    font-size:.82rem;
    background:var(--white);
    border:2px solid var(--ink);
    border-radius:999px;
    padding:6px 13px;
    color:var(--pine-deep);
  }
  .game-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:22px;
  }
  .game-card{
    position:relative;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    padding:24px 22px 22px;
    box-shadow:var(--shadow-hard);
    border-top:8px solid var(--accent);
    animation:fadeSlideIn .5s ease both;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .game-card:hover{
    transform:translate(-2px,-2px);
    box-shadow:6px 6px 0 var(--ink);
  }
  .game-card:active{
    transform:translate(1px,1px);
    box-shadow:2px 2px 0 var(--ink);
  }
  .game-card:focus-visible{
    outline:3px solid var(--blue);
    outline-offset:3px;
  }
  .game-card .btn{ pointer-events:none; }
  .game-card:nth-child(1){ animation-delay:.04s; }
  .game-card:nth-child(2){ animation-delay:.08s; }
  .game-card:nth-child(3){ animation-delay:.12s; }
  .game-card:nth-child(4){ animation-delay:.16s; }
  .game-card:nth-child(5){ animation-delay:.20s; }
  .game-card:nth-child(6){ animation-delay:.24s; }
  .game-card:nth-child(7){ animation-delay:.28s; }
  .game-card:nth-child(8){ animation-delay:.32s; }
  .game-card:nth-child(9){ animation-delay:.36s; }
  .game-card:nth-child(10){ animation-delay:.40s; }
  .game-card:nth-child(11){ animation-delay:.44s; }
  .game-card:nth-child(12){ animation-delay:.48s; }

  .stamp{
    position:absolute;
    top:-16px; right:-10px;
    width:82px; height:82px;
    border-radius:50%;
    border:3px dashed var(--accent);
    background:var(--cream);
    color:var(--accent);
    display:flex; align-items:center; justify-content:center;
    text-align:center;
    font-family:'Baloo 2',sans-serif;
    font-weight:800;
    text-transform:uppercase;
    font-size:.62rem;
    letter-spacing:.03em;
    line-height:1.2;
    transform:rotate(-10deg);
    padding:4px;
  }
  .card-icon{ font-size:2.6rem; margin-bottom:6px; }
  .game-card h3{ font-size:1.3rem; }
  .game-card p{ color:#3d3a33; font-size:.95rem; }
  .players-note{
    font-family:'Space Mono',monospace;
    font-size:.78rem;
    color:var(--accent);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .game-card .btn{ margin-top:12px; width:100%; }

  /* ---------- scoreboard shared ---------- */
  .scoreboard{
    display:flex; flex-wrap:wrap; gap:10px;
    margin:18px 0;
  }
  .score-chip{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:999px;
    padding:8px 16px;
    font-weight:800;
    font-family:'Baloo 2',sans-serif;
    font-size:1rem;
    display:flex; align-items:center; gap:8px;
    transition:transform .15s ease, background .15s ease;
  }
  .score-chip .num{ font-family:'Space Mono',monospace; background:var(--cream); border-radius:999px; padding:2px 9px; }
  .score-chip.active{
    background:var(--turn-color, var(--sun));
    color:var(--white);
    border-width:4px;
    box-shadow:var(--shadow-hard-sm);
    transform:scale(1.12);
    font-size:1.08rem;
  }
  .score-chip.active .num{ background:var(--white); color:var(--ink); }

  .banner{
    background:var(--pine);
    color:var(--white);
    border-radius:var(--radius-md);
    padding:18px 22px;
    font-family:'Baloo 2',sans-serif;
    font-weight:700;
    font-size:clamp(1.15rem, 4.5vw, 1.5rem);
    text-align:center;
    line-height:1.3;
    margin:16px 0;
    border:3px solid var(--ink);
  }
  .banner.win{ background:var(--sun); color:var(--ink); }
  .banner.lose{ background:var(--red); color:var(--white); }
  .banner.turn{ background:var(--turn-color, var(--pine)); }

  /* ---------- memory ---------- */
  .memory-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:10px;
    max-width:520px;
    margin:0 auto;
  }
  .memory-grid.size-20{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .memory-card{
    aspect-ratio:1/1;
    perspective:700px;
    cursor:pointer;
    background:none;
    border:none;
    padding:0;
  }
  .memory-card .card-inner{
    position:relative; width:100%; height:100%;
    transform-style:preserve-3d;
    transition:transform .45s cubic-bezier(.4,.2,.2,1);
    border-radius:var(--radius-md);
  }
  .memory-card.flipped .card-inner, .memory-card.matched .card-inner{ transform:rotateY(180deg); }
  .card-back, .card-front{
    position:absolute; inset:0;
    backface-visibility:hidden;
    border-radius:var(--radius-md);
    border:3px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
    font-size:clamp(1.4rem, 5vw, 2.1rem);
  }
  .card-back{ background:repeating-linear-gradient(45deg, var(--teal) 0 8px, var(--teal-dark) 8px 16px); }
  .card-front{ background:var(--white); transform:rotateY(180deg); }
  .memory-card.matched .card-front{ background:var(--sun); }
  .memory-card.matched{ cursor:default; }

  /* ---------- dice / zwijntje ---------- */
  .dice-stage{
    display:flex; flex-direction:column; align-items:center; gap:18px;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-hard);
    padding:30px 20px;
    max-width:420px;
    margin:0 auto 20px;
  }
  .dice-rules{
    max-width:420px;
    margin:0 auto 16px;
    background:var(--cream-deep);
    border:2px dashed var(--ink);
    border-radius:var(--radius-md);
    padding:12px 16px;
    font-size:.9rem;
    line-height:1.4;
  }
  .die-scene{
    width:88px;
    height:88px;
    margin:10px auto;
    perspective:500px;
  }
  .die-cube{
    width:100%;
    height:100%;
    position:relative;
    transform-style:preserve-3d;
    transition:transform 1s cubic-bezier(.34,1.4,.64,1);
    transform:rotateX(0deg) rotateY(0deg);
  }
  .die-face{
    position:absolute;
    inset:0;
    width:88px;
    height:88px;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:16px;
    box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
  }
  .face-1{ transform:translateZ(44px); }
  .face-6{ transform:translateZ(-44px) rotateY(180deg); }
  .face-2{ transform:rotateY(90deg) translateZ(44px); }
  .face-5{ transform:rotateY(-90deg) translateZ(44px); }
  .face-3{ transform:rotateX(90deg) translateZ(44px); }
  .face-4{ transform:rotateX(-90deg) translateZ(44px); }
  .die-face .pip{
    position:absolute;
    width:14px; height:14px;
    border-radius:50%;
    background:var(--ink);
  }
  .pip.p1{ top:12px; left:12px; }
  .pip.p2{ top:12px; left:37px; }
  .pip.p3{ top:12px; left:62px; }
  .pip.p4{ top:37px; left:12px; }
  .pip.p5{ top:37px; left:37px; }
  .pip.p6{ top:37px; left:62px; }
  .pip.p7{ top:62px; left:12px; }
  .pip.p8{ top:62px; left:37px; }
  .pip.p9{ top:62px; left:62px; }

  .turn-score{
    font-family:'Space Mono',monospace;
    font-size:2.4rem;
    font-weight:700;
    background:var(--cream);
    border:3px solid var(--ink);
    border-radius:var(--radius-md);
    padding:6px 26px;
  }
  .dice-actions{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }

  /* ---------- tic tac toe ---------- */
  .ttt-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    max-width:340px;
    margin:0 auto;
  }
  .ttt-cell{
    aspect-ratio:1/1;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-sm);
    font-family:'Baloo 2',sans-serif;
    font-size:2.4rem;
    font-weight:800;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:transform .15s ease;
  }
  .ttt-cell:disabled{ cursor:default; }
  .ttt-cell.mark-in{ animation:popIn .2s ease; }
  @keyframes popIn{ from{ transform:scale(.4); opacity:0; } to{ transform:scale(1); opacity:1; } }
  .ttt-cell.x{ color:var(--red); }
  .ttt-cell.o{ color:var(--blue); }
  .ttt-cell.win-cell{ background:var(--sun); }

  /* ---------- ad slot (menu screen only, never during gameplay) ---------- */
  .ad-slot{
    position:relative;
    max-width:640px;
    margin:32px auto 0;
    border:2px dashed var(--ink);
    border-radius:var(--radius-md);
    background:var(--cream-deep);
    padding:16px;
  }
  .ad-slot.hidden{ display:none; }
  .ad-slot-label{
    position:absolute; top:-11px; left:16px;
    background:var(--cream);
    border:2px solid var(--ink);
    border-radius:999px;
    padding:2px 11px;
    font-family:'Space Mono',monospace;
    font-size:.68rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .ad-slot-inner{
    min-height:90px;
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .ad-slot-placeholder{
    margin:0;
    color:var(--pine);
    font-family:'Space Mono',monospace;
    font-size:.82rem;
    text-align:center;
  }

  /* ---------- consent bar ---------- */
  .consent-bar{
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:80;
    background:var(--white);
    border-top:3px solid var(--ink);
    padding:14px 20px;
    display:flex;
    gap:16px;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
  }
  .consent-bar.hidden{ display:none; }
  .consent-bar p{ margin:0; max-width:560px; font-size:.88rem; text-align:center; }
  .consent-actions{ display:flex; gap:8px; flex:none; }

  /* ---------- vier op een rij / connect 4 ---------- */
  .c4-wrap{ max-width:440px; margin:0 auto; }
  .c4-drop-row{
    display:grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap:6px;
    margin-bottom:6px;
  }
  .c4-drop-btn{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:8px;
    font-size:1.1rem;
    padding:6px 0;
    cursor:pointer;
    min-height:38px;
  }
  .c4-drop-btn:disabled{ opacity:.3; cursor:default; }
  .c4-board{
    background:var(--blue);
    border:3px solid var(--ink);
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-hard);
    padding:8px;
    display:grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap:6px;
  }
  .c4-cell{
    aspect-ratio:1/1;
    border-radius:50%;
    background:var(--cream);
    border:2px solid var(--ink);
  }
  .c4-cell.red{ background:var(--red); animation:popIn .25s ease; }
  .c4-cell.yellow{ background:var(--sun); animation:popIn .25s ease; }
  .c4-cell.win-disc{ outline:4px solid var(--pine); outline-offset:-2px; }

  /* ---------- kentekenspel bingo ---------- */
  .bingo-board{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:6px;
    max-width:520px;
    margin:0 auto;
  }
  .bingo-cell{
    aspect-ratio:1/1;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:10px;
    font-family:'Nunito',sans-serif;
    font-weight:700;
    padding:3px;
    cursor:pointer;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:1px;
    text-align:center;
    overflow:hidden;
  }
  .bingo-emoji{
    font-size:clamp(1.05rem, 5.2vw, 1.7rem);
    line-height:1;
  }
  .bingo-label{
    font-size:clamp(.46rem, 1.7vw, .64rem);
    line-height:1.1;
  }
  .bingo-cell.free{ background:var(--sun); }
  .bingo-cell.free .bingo-emoji{ font-size:clamp(1.3rem, 6vw, 2rem); }
  .bingo-cell.marked{ background:var(--teal); color:var(--white); }
  .bingo-cell.win-line{ outline:4px solid var(--red); outline-offset:-3px; }

  /* ---------- noem er 3! ---------- */
  .nameit-stage{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-hard);
    padding:34px 26px;
    max-width:480px;
    margin:0 auto;
    text-align:center;
  }
  .nameit-category{
    font-size:clamp(1.3rem, 5vw, 1.8rem);
    margin:12px 0 22px;
  }
  .nameit-timer{
    font-family:'Space Mono',monospace;
    font-size:3.2rem;
    font-weight:700;
    background:var(--cream);
    border:3px solid var(--ink);
    border-radius:var(--radius-md);
    display:inline-block;
    padding:8px 30px;
    margin-bottom:20px;
  }
  .nameit-timer.urgent{ background:var(--red); color:var(--white); }

  /* ---------- verhalenverteller ---------- */
  .storyteller-stage{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-hard);
    padding:34px 26px;
    max-width:480px;
    margin:0 auto;
    text-align:center;
  }
  .storyteller-die{
    font-size:3.4rem;
    margin-bottom:8px;
    display:inline-block;
  }
  .storyteller-die.spinning{
    animation:storytellerSpin .5s linear infinite;
  }
  @keyframes storytellerSpin{
    from{ transform:rotate(0deg) scale(1); }
    50%{ transform:rotate(180deg) scale(1.18); }
    to{ transform:rotate(360deg) scale(1); }
  }
  .storyteller-theme{
    font-family:'Baloo 2',sans-serif;
    font-weight:700;
    font-size:clamp(1.15rem, 5vw, 1.5rem);
    color:var(--pine-deep);
    min-height:3.4em;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:12px 0 24px;
    line-height:1.35;
  }

  /* ---------- premium / support ---------- */
  .premium-block{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-hard);
    padding:24px clamp(18px,4vw,32px);
    max-width:640px;
    margin-bottom:22px;
  }
  .premium-block h3{ margin-top:0; }
  .premium-perks{ list-style:none; padding:0; margin:14px 0; }
  .premium-perks li{ padding:6px 0 6px 30px; position:relative; font-weight:700; }
  .premium-perks li::before{ content:'✓'; position:absolute; left:0; color:var(--teal); font-weight:800; }
  .unlock-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
  .unlock-row input{ flex:1; min-width:180px; }
  .theme-swatches{ display:flex; gap:10px; margin:14px 0; flex-wrap:wrap; }
  .theme-swatch{
    width:52px; height:52px; border-radius:50%;
    border:3px solid var(--ink);
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    font-size:1.2rem;
  }
  .theme-swatch.selected{ outline:3px solid var(--pine); outline-offset:2px; }
  .locked-note{
    font-family:'Space Mono',monospace;
    font-size:.85rem;
    color:var(--pine);
    background:var(--cream-deep);
    border-radius:var(--radius-sm);
    padding:10px 14px;
    margin-top:10px;
  }
  .mini-form{ display:grid; gap:8px; margin:12px 0; }
  .mini-form input{ font-size:.92rem; padding:9px 12px; }

  /* ---------- alternate themes (premium bonus) ---------- */
  body.theme-oceaan{
    --red:#2B6CB0; --red-dark:#1F4E80; --sun:#38B2AC; --sun-dark:#2C7A75;
    --berry:#3A6EA5; --berry-dark:#2B547D; --teal:#2F5D50;
  }
  body.theme-jungle{
    --red:#B5461B; --red-dark:#8C3614; --sun:#7CA82B; --sun-dark:#5E8020;
    --blue:#2F7D5A; --blue-dark:#235E44; --berry:#4E7A2E; --berry-dark:#3B5C23;
  }

  /* ---------- quiz ---------- */
  .quiz-progress{
    font-family:'Space Mono',monospace;
    font-weight:700;
    color:var(--pine);
    margin-bottom:6px;
  }
  .quiz-card{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-hard);
    padding:26px clamp(18px,4vw,32px);
    max-width:640px;
  }
  .quiz-category{
    display:inline-block;
    background:var(--berry);
    color:var(--white);
    font-family:'Baloo 2',sans-serif;
    font-weight:700;
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.04em;
    padding:5px 12px;
    border-radius:999px;
    margin-bottom:10px;
  }
  .quiz-question{ font-size:1.3rem; margin-bottom:18px; }
  .flag-display{
    width:150px;
    max-width:60%;
    aspect-ratio:3/2;
    margin:6px auto 16px;
    border:3px solid var(--ink);
    border-radius:8px;
    box-shadow:var(--shadow-hard-sm);
    overflow:hidden;
    display:block;
  }
  .flag-display svg{ width:100%; height:100%; display:block; }
  .quiz-options{ display:grid; gap:10px; }
  .quiz-option{
    text-align:left;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-md);
    padding:13px 16px;
    font-family:'Nunito',sans-serif;
    font-weight:700;
    font-size:1rem;
    cursor:pointer;
  }
  .quiz-option.correct{ background:var(--sun); }
  .quiz-option.wrong{ background:var(--red); color:var(--white); }
  .quiz-option:disabled{ cursor:default; }

  /* ---------- hangman / woordspel ---------- */
  .hangman-wrap{
    display:flex; gap:30px; flex-wrap:wrap; align-items:flex-start; justify-content:center;
  }
  .icecream-box{
    flex:none;
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-hard);
    padding:18px;
    width:180px;
  }
  .icecream-box svg{ width:100%; height:auto; display:block; }
  .lives-label{ text-align:center; font-family:'Space Mono',monospace; font-weight:700; margin-top:6px; }
  .whoami-picture{
    font-size:4.5rem;
    line-height:1;
    text-align:center;
    margin-top:10px;
  }
  .word-display{
    font-family:'Space Mono',monospace;
    font-size:clamp(1.5rem, 5vw, 2.2rem);
    letter-spacing:.15em;
    font-weight:700;
    margin:14px 0 20px;
    word-break:break-all;
  }
  .keyboard{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(38px,1fr));
    gap:6px;
    max-width:520px;
  }
  .key{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:8px;
    font-family:'Space Mono',monospace;
    font-weight:700;
    font-size:.95rem;
    padding:9px 0;
    cursor:pointer;
  }
  .key.used-correct{ background:var(--sun); }
  .key.used-wrong{ background:var(--red); color:var(--white); }
  .key:disabled{ cursor:default; opacity:.75; }

  .hidden{ display:none !important; }

  @media (max-width:560px){
    .memory-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); gap:7px; }
    .site-header{ padding-top:24px; }
    .logo-mark{ width:52px; height:52px; font-size:26px; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:.001s !important; animation-delay:0s !important; transition-duration:.001s !important; }
    html{ scroll-behavior:auto; }
  }

/* ---------- landing pages (SEO entry pages per spel) ---------- */
.landing-article{
  max-width:680px;
  margin:0 auto;
  padding:8px 4px 40px;
}
.landing-article p{ font-size:1.02rem; }
.landing-cta{ margin:26px 0; }
.landing-other{
  margin-top:38px;
  padding-top:24px;
  border-top:2px dashed var(--ink);
}
.landing-other h3{ font-size:1.1rem; }
.landing-links{
  list-style:none;
  padding:0;
  margin:12px 0 0;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
  gap:8px;
}
.landing-links a{
  display:block;
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-sm);
  padding:10px 14px;
  font-family:'Baloo 2',sans-serif;
  font-weight:700;
  font-size:.92rem;
  text-decoration:none;
  color:var(--pine-deep);
}
.landing-links a:hover{ background:var(--cream-deep); }
.home-link{
  display:inline-block;
  margin-bottom:18px;
  font-family:'Baloo 2',sans-serif;
  font-weight:700;
  color:var(--pine-deep);
}
