:root {
  --bg1: #faf5ff; --bg2: #f3e8ff;
  --accent: #9333ea; --accent2: #7e22ce; --soft: #f3e8ff;
}
.hverhaal { background: #fffdf5; border: 2px solid #e7dcc0; border-radius: 16px; padding: 10px 14px; margin: 0 auto 10px; max-width: 820px; font-size: 19px; }
.hveld { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; max-width: 820px; margin: 0 auto 12px; }

/* het monster */
.monster { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 170px; }
.monster .lijf {
  width: 130px; height: 120px; border-radius: 60% 60% 45% 45%; background: radial-gradient(circle at 35% 30%, #c084fc, #7e22ce);
  position: relative; box-shadow: 0 8px 0 rgba(0, 0, 0, .15); animation: adem 2s ease-in-out infinite; transform-origin: bottom center;
}
.monster .lijf::before, .monster .lijf::after { content: ""; position: absolute; top: -14px; width: 22px; height: 30px; background: #a855f7; border-radius: 50% 50% 10% 10%; }
.monster .lijf::before { left: 22px; transform: rotate(-18deg); }
.monster .lijf::after { right: 22px; transform: rotate(18deg); }
.monster .ogen { position: absolute; top: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }
.monster .ogen i { width: 26px; height: 26px; background: #fff; border-radius: 50%; position: relative; }
.monster .ogen i::after { content: ""; position: absolute; width: 11px; height: 11px; background: #1f2937; border-radius: 50%; left: 9px; top: 9px; animation: kijk 3s infinite; }
.monster .mond { position: absolute; left: 50%; top: 66px; width: 54px; height: 26px; margin-left: -27px; background: #3b0764; border-radius: 0 0 30px 30px; transition: height .15s; overflow: hidden; }
.monster .mond::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 7px; background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 12px); }
.monster.smul .lijf { animation: hap .5s ease-out; }
.monster.smul .mond { animation: kauw .5s; }
.monster.vol .lijf { width: 150px; }
.monster.boos .lijf { background: radial-gradient(circle at 35% 30%, #f87171, #b91c1c); }
.monster .ballon {
  position: absolute; top: 0; left: 50%; transform: translateX(-10%); background: #fff; border: 2px solid var(--line);
  border-radius: 14px; padding: 6px 10px; font-weight: 800; font-size: 15px; max-width: 220px; box-shadow: var(--shadow);
}
.monster .ballon.pop { animation: pop .25s; }
@keyframes adem { 50% { transform: scale(1.04, .97); } }
@keyframes hap { 30% { transform: translateX(26px) scale(1.12, .9); } 60% { transform: scale(.95, 1.06); } }
@keyframes kauw { 0%, 100% { height: 26px; } 25%, 75% { height: 6px; } 50% { height: 30px; } }
@keyframes kijk { 0%, 40%, 100% { transform: translateX(0); } 50%, 90% { transform: translateX(-5px); } }

/* de berg snoep */
.berg { text-align: center; }
.berg .stapel { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 0 2px; max-width: 240px; margin: 0 auto; min-height: 90px; align-content: flex-start; font-size: 24px; line-height: 1.1; }
.berg .stapel span { animation: pop .3s; }
.berg .teller { font-size: 20px; margin-top: 4px; }
.berg .teller b { font-size: 30px; color: var(--accent2); }
.berg .portie { display: inline-block; margin-top: 4px; background: #fff; border-radius: 99px; padding: 2px 12px; font-size: 15px; border: 1px solid var(--line); }
.vlieg { position: fixed; z-index: 30; font-size: 26px; pointer-events: none; animation: vlieg .8s ease-in forwards; }
@keyframes vlieg { to { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(360deg); opacity: .2; } }

/* schrift en kaarten */
.hwerk { display: grid; grid-template-columns: 220px 1fr; gap: 14px; max-width: 820px; margin: 0 auto; align-items: start; }
.schrift {
  background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
  background-image: linear-gradient(transparent 31px, #e0e7ff 32px); background-size: 100% 32px; font-variant-numeric: tabular-nums;
}
.schrift .kop { font-weight: 900; font-size: 20px; margin-bottom: 4px; color: var(--accent2); }
.schrift table { border-collapse: collapse; font-size: 22px; font-weight: 800; margin-left: auto; margin-right: 10px; }
.schrift td { padding: 0 6px; text-align: right; height: 32px; }
.schrift tr.min td:first-child { color: #dc2626; border-bottom: 3px solid #1f2937; }
.schrift tr.min td:first-child::before { content: "− "; color: var(--muted); font-size: 16px; }
.schrift td.f { color: var(--accent2); font-size: 18px; text-align: left; }
.schrift tr:last-child td.g { color: var(--accent2); }
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; align-content: start; }
.kaarten .kkop { grid-column: 1 / -1; font-weight: 900; color: var(--muted); font-size: 15px; }
.kaarten.dicht .hap { opacity: .35; pointer-events: none; }
.hap {
  background: #fff; border: 3px solid #e9d5ff; border-radius: 16px; padding: 8px 6px; box-shadow: 0 4px 0 #e9d5ff;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hap b { font-size: 28px; color: var(--accent2); line-height: 1; }
.hap span { font-size: 14px; font-weight: 800; color: var(--muted); }
.hap:hover { border-color: var(--accent); }
.hap:active { transform: translateY(2px); box-shadow: 0 2px 0 #e9d5ff; }
.hap.te-groot { opacity: .45; }
.hap.gekozen { border-color: var(--accent); background: var(--soft); }
.hinvoer { max-width: 820px; margin: 12px auto 0; }
.hinvoer .tel { text-align: center; font-size: 19px; margin-bottom: 6px; }
.hinvoer .tel span { display: inline-block; background: var(--soft); border-radius: 8px; padding: 0 8px; font-weight: 900; color: var(--accent2); }

@media (max-width: 640px) {
  .hveld { grid-template-columns: 1fr 1fr; gap: 6px; }
  .monster { min-height: 140px; }
  .monster .lijf { width: 100px; height: 92px; }
  .monster .ogen { top: 20px; }
  .monster .mond { top: 52px; width: 44px; margin-left: -22px; }
  .monster .ballon { font-size: 13px; left: 0; transform: none; max-width: 170px; }
  .berg .stapel { font-size: 18px; min-height: 60px; }
  .hwerk { grid-template-columns: 1fr; }
  .schrift table { font-size: 19px; }
  .kaarten { grid-template-columns: repeat(3, 1fr); }
  .hap b { font-size: 22px; }
  .hap span { font-size: 12px; }
}
