/* Progio – spelgevoel (26 november 2026): levend bord, coach, winkel en de telefoonweergave van het speelscherm.
   Staat na pg.css en scene.css. Alles hier is uiterlijk; de regels van het spel staan in de JavaScript. */

/* ============ 1. Levend bord (tijdperken met blokken) ============ */
.pg-board--live {
  --g1: #8FCB5E; --g2: #84C253; --bd: #B9703F; --bd2: #8E5229; --wall: #C9B79C; --wall2: #A8957A; --road: #D4D8DD; --road2: #AEB6BF;
  gap: 0; padding: 8px; background: linear-gradient(180deg, var(--bd), var(--bd2)); border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .16), 0 14px 26px rgba(29, 43, 58, .18); overflow: visible;
}
[data-pg-theme="w8"] .pg-board--live { --g1: #7DB868; --g2: #73AE5E; --bd: #7B6A58; --bd2: #57493B; --wall: #AEB4BB; --wall2: #838B94; }
[data-pg-theme="w7"] .pg-board--live { --g1: #EBDDA6; --g2: #E3D397; --bd: #3E7CB1; --bd2: #2B5C88; --wall: #F4F1EA; --wall2: #CFC9BB; }
.pg-board--live.pg-board--w3 { --g1: #CBD1D8; --g2: #C2C9D1; --bd: #55616E; --bd2: #3A444F; --wall: #8C6A4E; --wall2: #6B4E37; background: linear-gradient(180deg, var(--bd), var(--bd2)); }
.pg-board--live .pg-cell--w2 { border-radius: 0; background: var(--g1); }
.pg-board--live .pg-cell--w2.pg-cell--alt { background: var(--g2); }
.pg-board--live.pg-board--w3 .pg-cell--w2 { background: var(--g1); }
.pg-board--live.pg-board--w3 .pg-cell--w2.pg-cell--alt { background: var(--g2); }
.pg-board--live.pg-board--w3 .pg-cell__decor { display: none; }
/* wolkenschaduw die langzaam over het bord trekt */
.pg-board--live::after { content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 1; border-radius: 4px; opacity: .5;
  background: radial-gradient(60px 26px at 20% 30%, rgba(0, 0, 0, .09), transparent 70%), radial-gradient(80px 30px at 70% 70%, rgba(0, 0, 0, .07), transparent 70%);
  background-size: 200% 100%; animation: pg-drift 26s linear infinite; }
.pg-board--live.pg-board--gate::after { display: none; }
.pg-board--live.pg-board--gate { max-width: min(100%, 260px); }
@keyframes pg-drift { from { background-position: 0 0; } to { background-position: -200% 0; } }

.pg-cell__decor { position: absolute; font-size: 34cqw; line-height: 1; opacity: .9; transform: translate(var(--dx, 0), var(--dy, 0)); animation: pg-sway 3.6s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .12)); }
@keyframes pg-sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 6deg; } }

/* muur: een blok met een lichte bovenkant en voegen */
.pg-board--live .pg-cell--w2.pg-cell--wall { background: var(--g2); }
.pg-cell__block { position: absolute; inset: 5% 5% 9% 5%; border-radius: 12%; background:
    linear-gradient(180deg, rgba(255, 255, 255, .45) 0 20%, transparent 20%),
    repeating-linear-gradient(0deg, transparent 0 31%, rgba(0, 0, 0, .16) 31% 34%),
    linear-gradient(180deg, var(--wall), var(--wall2));
  box-shadow: 0 6cqh 0 rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(0, 0, 0, .12); }
.pg-cell__block i { position: absolute; width: 3%; background: rgba(0, 0, 0, .16); }
.pg-cell__block i:nth-child(1) { left: 48%; top: 20%; height: 12%; }
.pg-cell__block i:nth-child(2) { left: 26%; top: 34%; height: 30%; box-shadow: 44cqw 0 0 rgba(0, 0, 0, .16); }
.pg-cell__block i:nth-child(3) { left: 48%; top: 67%; height: 33%; }

/* water: twee golflijnen die tegen elkaar in schuiven */
.pg-board--live .pg-cell--w2.pg-cell--water { background: linear-gradient(180deg, #5DBBEA, #3F9FD6); }
.pg-board--live .pg-cell__wave { position: absolute; inset: 0; font-size: 0; }
.pg-cell__wave i { position: absolute; left: 0; right: 0; height: 24%; opacity: .75;
  background: radial-gradient(circle at 50% 110%, transparent 54%, #fff 56% 68%, transparent 70%) 0 0 / 34% 100% repeat-x; animation: pg-wave 2.4s linear infinite; }
.pg-cell__wave i:nth-child(1) { top: 22%; }
.pg-cell__wave i:nth-child(2) { top: 58%; opacity: .5; animation-duration: 3.4s; animation-direction: reverse; }
@keyframes pg-wave { from { background-position-x: 0; } to { background-position-x: 34cqw; } }

/* bouwplek: hier moet een steen komen */
.pg-board--live .pg-cell--plan { box-shadow: none; background-image: none; }
.pg-board--live .pg-cell--plan::before { content: ""; position: absolute; inset: 10%; border-radius: 16%; border: 3px dashed rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .22); animation: pg-plan 1.6s ease-in-out infinite; }
@keyframes pg-plan { 0%, 100% { opacity: .65; scale: 1; } 50% { opacity: 1; scale: 1.06; } }
/* gelegde steen en brug */
.pg-board--live:not(.pg-board--w3) .pg-cell--road { box-shadow: none; background-color: var(--g2); background-image: none; }
.pg-board--live:not(.pg-board--w3) .pg-cell--road::before { content: ""; position: absolute; inset: 6%; border-radius: 14%; border: 0; opacity: 1; animation: pg-drop .32s cubic-bezier(.3, 1.6, .5, 1) both;
  background: radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .7) 0 9%, transparent 10%), radial-gradient(circle at 70% 64%, rgba(0, 0, 0, .12) 0 11%, transparent 12%), radial-gradient(circle at 34% 74%, rgba(0, 0, 0, .1) 0 8%, transparent 9%), linear-gradient(180deg, var(--road), var(--road2));
  box-shadow: 0 4cqh 0 rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(0, 0, 0, .1); }
.pg-board--live .pg-cell--w2.pg-cell--bridge { animation: pg-drop .32s cubic-bezier(.3, 1.6, .5, 1) both; box-shadow: inset 0 9cqh 0 #7A4A24, inset 0 -9cqh 0 #7A4A24; background: #C99556 !important; background-image: repeating-linear-gradient(90deg, #DDB077 0 12%, #C99556 12% 14%, #D2A265 14% 26%, #B98343 26% 28%) !important; }
.pg-board--live .pg-cell--bridge .pg-cell__wave { display: none; }
@keyframes pg-drop { from { scale: .2; opacity: 0; translate: 0 -40%; } to { scale: 1; opacity: 1; translate: 0 0; } }

/* het doel: lichtstralen die draaien, en het gebouw wipt */
.pg-board--live .pg-cell--w2.pg-cell--forum { background: #FFE9A8; overflow: hidden; }
.pg-cell__rays { position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255, 255, 255, .85) 0 12deg, transparent 12deg 30deg); animation: pg-spin 9s linear infinite; }
.pg-cell__goal { position: relative; font-size: 62cqw; line-height: 1; animation: pg-goal 1.6s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }
@keyframes pg-spin { to { rotate: 1turn; } }
@keyframes pg-goal { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8%; } }
.pg-board--live .pg-cell--w2.pg-cell--reached { background: #FFF3C4; }
.pg-board--live .pg-cell--reached .pg-cell__goal { animation: pg-win .5s ease 3; }
@keyframes pg-win { 0%, 100% { scale: 1; } 50% { scale: 1.35; rotate: 8deg; } }
.pg-board--won { animation: pg-won .7s ease-out; }
@keyframes pg-won { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .9), 0 6px 0 rgba(0, 0, 0, .16); } 100% { box-shadow: 0 0 0 26px rgba(255, 210, 63, 0), 0 6px 0 rgba(0, 0, 0, .16); } }

/* de held: groter dan het vakje, met schaduw; stapt met een sprongetje */
.pg-board--live .pg-robot { left: 8px; top: 8px; width: calc((100% - 16px) / var(--w)); height: calc((100% - 16px) / var(--h)); padding: 0; z-index: 3; container-type: size; transition: transform .32s cubic-bezier(.35, .7, .4, 1); }
.pg-board--live .pg-robot--instant { transition: none; }
.pg-board--live .pg-hero-wrap { transform: none; transition: none; }
.pg-board--live .pg-hero-wrap .pg-livia { position: absolute; left: -9%; top: -30%; width: 118%; height: 118%; transform: none; transform-origin: 50% 90%; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); animation: pg-idle 2.2s ease-in-out infinite; }
.pg-hero-shadow { position: absolute; left: 20%; right: 20%; bottom: 3%; height: 16%; border-radius: 50%; background: rgba(0, 0, 0, .25); animation: pg-shadow 2.2s ease-in-out infinite; }
@keyframes pg-idle { 0%, 100% { translate: 0 0; scale: 1 1; } 50% { translate: 0 -3%; scale: 1.02 .98; } }
@keyframes pg-shadow { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .92; opacity: .8; } }
.pg-board--live .pg-robot--hop .pg-livia { animation: pg-hop .32s ease-out; }
.pg-board--live .pg-robot--hop .pg-hero-shadow { animation: pg-hop-shadow .32s ease-out; }
@keyframes pg-hop { 0% { translate: 0 0; scale: 1.08 .9; } 45% { translate: 0 -26%; scale: .95 1.08; } 85% { translate: 0 0; scale: 1.1 .88; } 100% { translate: 0 0; scale: 1 1; } }
@keyframes pg-hop-shadow { 45% { scale: .6; opacity: .5; } }
.pg-board--live .pg-robot--turn .pg-livia { animation: pg-turn .25s ease-out; }
@keyframes pg-turn { 0% { rotate: 0deg; } 40% { rotate: -9deg; } 80% { rotate: 6deg; } 100% { rotate: 0deg; } }
.pg-board--live .pg-robot--cheer .pg-hero-wrap { animation: none; }
.pg-board--live .pg-robot--cheer .pg-livia { animation: pg-jump .5s ease-in-out 4; }
@keyframes pg-jump { 0%, 100% { translate: 0 0; scale: 1.08 .9; } 50% { translate: 0 -45%; scale: .95 1.08; rotate: 6deg; } }
.pg-board--live .pg-robot--oops .pg-livia { animation: pg-oops .5s ease-out; }
@keyframes pg-oops { 0% { rotate: 0deg; } 25% { rotate: -16deg; translate: -6% 0; } 55% { rotate: 14deg; translate: 6% 0; } 100% { rotate: 0deg; } }
/* kijkrichting: een pijl op de grond vóór de held */
.pg-board--live .pg-hero-arrow { top: -48%; left: -48%; right: -48%; bottom: -48%; width: auto; height: auto; border: 0; transform: rotate(var(--rot, 90deg)); transition: transform .25s; filter: none; z-index: 2; }
.pg-board--live .pg-hero-arrow::after { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; border-left: 14cqw solid transparent; border-right: 14cqw solid transparent; border-bottom: 17cqw solid #E64A6E; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .9)); animation: pg-point 1s ease-in-out infinite; }
@keyframes pg-point { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -22%; } }
.pg-hero-hat { position: absolute; left: -50%; right: -50%; top: -58%; text-align: center; font-size: 52cqw; line-height: 1; z-index: 1; animation: pg-idle 2.2s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.pg-robot--hop .pg-hero-hat { animation: pg-hop .32s ease-out; }
.pg-robot--cheer .pg-hero-hat { animation: pg-jump .5s ease-in-out 4; }
/* huisdier: loopt één stap achter de held aan */
.pg-pet { position: absolute; left: 8px; top: 8px; width: calc((100% - 16px) / var(--w)); height: calc((100% - 16px) / var(--h)); transform: translate(calc(var(--x, 0) * 100%), calc(var(--y, 0) * 100%)); transition: transform .42s ease .1s; z-index: 2; pointer-events: none; container-type: size; }
.pg-pet--instant { transition: none; }
.pg-pet span { position: absolute; left: -6%; bottom: 0; font-size: 44cqw; line-height: 1; animation: pg-idle 1.2s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.pg-pet--walk span { left: 28%; }
/* buit: munten op de route en een schat ernaast */
.pg-cell__coin { position: absolute; font-size: 46cqw; line-height: 1; z-index: 1; animation: pg-coin 1.4s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .2)); transition: opacity .25s, scale .25s, translate .25s; }
.pg-cell__gem { font-size: 54cqw; animation-duration: 1s; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 3px 0 rgba(0, 0, 0, .2)); }
.pg-cell__coin--got { opacity: 0; scale: 1.8; translate: 0 -60%; animation: none; }
@keyframes pg-coin { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -10%; rotate: 6deg; } }
.pg-play__board--col { display: flex; flex-direction: column; align-items: center; }
.pg-play__board--col .pg-board { align-self: stretch; }
.pg-loot-note { margin: .45rem 0 0; padding: .35rem .7rem; border-radius: 12px; background: #EEF3FF; border: 2px solid #B9C8FF; font-weight: 700; font-size: .92rem; }
.pg-result__combo { margin: 0; font-weight: 900; color: #D9480F; animation: pg-pop .4s ease both; }
/* de sterren en punten op het resultaat komen één voor één */
.pg-result .pg-stars .pg-star--on { animation: pg-star-in .45s cubic-bezier(.3, 1.8, .5, 1) both; }
.pg-result .pg-stars .pg-star--on:nth-child(1) { animation-delay: .3s; } .pg-result .pg-stars .pg-star--on:nth-child(2) { animation-delay: .52s; } .pg-result .pg-stars .pg-star--on:nth-child(3) { animation-delay: .74s; }
@keyframes pg-star-in { from { scale: 0; rotate: -90deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
.pg-result__points { animation: pg-pop .4s ease .9s both; }
/* het blok dat nu loopt */
.pg-blockly .blocklyHighlighted > .blocklyPath, .pg-blockly .blocklySelected.blocklyHighlighted > .blocklyPath { stroke: #FFD23F; stroke-width: 5px; filter: drop-shadow(0 0 6px #FFD23F); }
/* Python-tests: een geslaagde test springt op */
.pg-tests__item[data-pg-test-ok="1"] { animation: pg-pop .35s ease both; }
.pg-tests__item[data-pg-test-ok="0"] { animation: pg-shake .4s ease; }
/* deeltjes */
.pg-fx { position: absolute; inset: 8px; pointer-events: none; z-index: 4; }
.pg-fx__p { position: absolute; translate: -50% -50%; font-style: normal; line-height: 1; animation: pg-fly .6s ease-out forwards; will-change: transform, opacity; }
.pg-fx__p--dust { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.pg-fx__p--spark { width: 8px; height: 8px; background: #FFD23F; rotate: 45deg; box-shadow: 0 0 6px #FFB730; }
.pg-fx__p--star { font-size: 20px; animation-duration: .7s; }
.pg-fx__p--boom { font-size: 22px; animation: pg-boom 1.3s cubic-bezier(.2, .8, .3, 1) forwards; animation-delay: calc(var(--i) * 25ms); }
.pg-fx__p--trail { font-size: 20px; animation: pg-trail 1.4s ease-out forwards; }
@keyframes pg-fly { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--tx), var(--ty)) scale(.3); opacity: 0; } }
@keyframes pg-boom { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(40deg); opacity: 0; } }
@keyframes pg-trail { 0% { transform: scale(.4); opacity: 0; } 20% { transform: scale(1); opacity: .95; } 100% { transform: scale(.7) translateY(-8px); opacity: 0; } }
/* terwijl het programma loopt: het bord licht op */
.pg-running .pg-board--live { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 8px var(--pg-world-color, #2FB5A5), 0 14px 26px rgba(29, 43, 58, .18); }

/* ============ 2. Speelscherm op de telefoon ============ */
.pg-btn--run { position: relative; overflow: hidden; }
.pg-btn--run:not(:disabled)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -120% 0; animation: pg-shine 2.6s ease-in-out infinite; }
@keyframes pg-shine { 0%, 55% { translate: -120% 0; } 100% { translate: 120% 0; } }
@media (max-width: 640px) {
  body.pg-in-play .pg-hdr { flex-wrap: nowrap; padding: .3rem .5rem; gap: .3rem; }
  body.pg-in-play .pg-hdr__name, body.pg-in-play .pg-hdr__world, body.pg-in-play .pg-hdr__user, body.pg-in-play .pg-chip--badges, body.pg-in-play .pg-chip--errors, body.pg-in-play .pg-chip--streak { display: none; }
  body.pg-in-play .pg-hdr__stats { flex-wrap: nowrap; min-width: 0; gap: .2rem; }
  body.pg-in-play .pg-chip { padding: .15rem .4rem; font-size: .85rem; min-width: 0; }
  body.pg-in-play .pg-hdr__right { gap: 0; }
  body.pg-in-play .pg-hdr__btn { width: 36px; height: 36px; }
  body.pg-in-play .pg-main { padding: .4rem .5rem 5.5rem; }
  body.pg-in-play .pg-play[data-pg-theme] { margin: -.4rem -.5rem; padding: .4rem .5rem; border-radius: 0; }
  body.pg-in-play .pg-play__banner { display: none; }
  body.pg-in-play .pg-play__top { margin-top: 0; margin-bottom: .35rem; gap: .4rem; flex-wrap: nowrap; }
  body.pg-in-play .pg-play__title { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.pg-in-play .pg-back { width: 40px; height: 40px; min-height: 40px; }
  body.pg-in-play .pg-instruction { padding: .35rem .45rem; gap: .35rem; }
  body.pg-in-play .pg-instruction__text { font-size: .98rem; line-height: 1.25; }
  body.pg-in-play .pg-instruction__hero { width: 34px; height: 34px; }
  body.pg-in-play .pg-instruction .pg-btn--round { width: 40px; height: 40px; min-height: 40px; }
  body.pg-in-play .pg-task-area--blocks, body.pg-in-play .pg-task-area--python { gap: .5rem; }
  body.pg-in-play .pg-play__board { display: flex; flex-direction: column; align-items: center; }
  body.pg-in-play .pg-play__board--col .pg-board { align-self: center; }
  body.pg-in-play .pg-loot-note { font-size: .8rem; padding: .2rem .5rem; margin-top: .3rem; }
  body.pg-in-play .pg-board--live { max-width: min(100%, calc(30vh * var(--w) / var(--h))); }
  body.pg-in-play .pg-board--live.pg-board--gate { max-width: 240px; }
  body.pg-in-play .pg-blockly { height: max(180px, calc(100dvh - 365px - min(30vh, (100vw - 1rem) * var(--h, 1) / var(--w, 1)))); }
  body.pg-in-play .pg-blockly-bar { font-size: .9rem; }
  body.pg-in-play .pg-blockly-bar .pg-btn--tool { width: 40px; height: 40px; min-height: 40px; }
  /* Start blijft onder in beeld: je hoeft niet te scrollen om je programma te laten lopen */
  body.pg-in-play .pg-play__controls--blocks .pg-palette-row--end { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96) 35%); }
  body.pg-in-play .pg-play__controls--blocks .pg-btn--run { width: 100%; min-height: 54px; }
}

.pg-firsttip { margin: .5rem 0 0; padding: .5rem .8rem; border-radius: 14px; background: #FFF3C4; border: 2px solid #FFD23F; font-weight: 700; }
.pg-firsttip span { display: inline-block; animation: pg-point-up 1s ease-in-out infinite; }
@keyframes pg-point-up { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* ============ 3. De coach ============ */
.pg-chip--coins { background: #FFF3C4; }
.pg-coach { position: relative; display: grid; gap: .7rem; padding: .9rem; margin-bottom: 1rem; border-radius: 22px; background: linear-gradient(160deg, #2FB5A5, #2A8FD0); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .14), var(--pg-shadow); overflow: hidden; }
.pg-coach::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pg-coach__top { position: relative; display: flex; align-items: flex-end; gap: .6rem; }
.pg-coach__pio { flex: none; width: 76px; height: 76px; animation: pg-float 3s ease-in-out infinite; }
.pg-coach__pio svg { width: 100%; height: 100%; display: block; }
.pg-coach__bubble { position: relative; flex: 1; background: #fff; color: var(--pg-ink); border-radius: 18px; padding: .6rem .8rem; font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.pg-coach__bubble::before { content: ""; position: absolute; left: -9px; bottom: 16px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.pg-coach__bubble b { font-weight: 900; }
.pg-coach__name { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #2A8FD0; }
.pg-coach__tip { display: block; margin-top: .25rem; font-weight: 600; font-size: .9rem; color: var(--pg-ink-soft); }
.pg-missions { position: relative; display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.pg-mission { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .5rem .6rem; background: rgba(255, 255, 255, .96); color: var(--pg-ink); border-radius: 16px; text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); transition: transform .12s; }
a.pg-mission:active { transform: translateY(2px); }
.pg-mission__ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; background: var(--pg-sky); border-radius: 14px; }
.pg-mission__text { font-weight: 900; line-height: 1.2; }
.pg-mission__bar { display: block; height: 8px; margin-top: .3rem; border-radius: 99px; background: #DCE9F3; overflow: hidden; }
.pg-mission__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #58B947, #9BD84A); transition: width .5s ease; }
.pg-mission__reward { font-weight: 900; white-space: nowrap; padding: .25rem .55rem; border-radius: 99px; background: #FFF3C4; }
.pg-mission--done { background: #EAF9E4; }
.pg-mission--done .pg-mission__ico { background: #58B947; color: #fff; }
.pg-mission--done .pg-mission__text { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .75; }
.pg-mission--done .pg-mission__reward { background: #58B947; color: #fff; }
.pg-coach__foot { position: relative; display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pg-coach__foot { grid-template-columns: 1fr 1fr; } }
.pg-coach__box { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 16px; background: rgba(255, 255, 255, .18); font-weight: 700; }
.pg-coach__box b { font-weight: 900; }
.pg-chest { flex: none; font-size: 2rem; line-height: 1; }
.pg-chest--ready { animation: pg-chest 1s ease-in-out infinite; }
.pg-chest--open { animation: pg-pop .4s ease; }
@keyframes pg-chest { 0%, 100% { rotate: -6deg; scale: 1; } 50% { rotate: 6deg; scale: 1.12; } }
.pg-week { display: flex; gap: .25rem; margin-top: .3rem; }
.pg-week__day { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .72rem; font-weight: 900; background: rgba(255, 255, 255, .25); color: #fff; }
.pg-week__day--done { background: #FFD23F; color: #5A3A00; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.pg-week__day--today { outline: 3px solid #fff; outline-offset: 1px; }
.pg-coach__goal { display: inline-flex; gap: .25rem; margin-left: .3rem; }
.pg-coach__goal button { border: 0; border-radius: 99px; padding: .1rem .5rem; font: inherit; font-weight: 900; background: rgba(255, 255, 255, .25); color: #fff; cursor: pointer; }
.pg-coach__goal button[aria-pressed="true"] { background: #fff; color: #2A8FD0; }
.pg-coach__links { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; }
.pg-coach__links .pg-btn { background: rgba(255, 255, 255, .95); }
.pg-toast--coin { background: #FFF3C4; color: #5A3A00; font-weight: 900; border: 2px solid #FFD23F; }

/* de reis (hoofdstukken) */
.pg-chapter { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--pg-world-color, var(--pg-ink-soft)); }
.pg-junior { margin-top: 1rem; }
.pg-junior > summary { cursor: pointer; font-weight: 900; padding: .6rem .8rem; border-radius: 14px; background: var(--pg-paper); box-shadow: var(--pg-shadow); list-style: none; }
.pg-junior > summary::-webkit-details-marker { display: none; }
.pg-junior[open] > summary { margin-bottom: .6rem; }
.pg-home__more { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: 1rem; }
.pg-home__more .pg-btn { justify-content: flex-start; }

/* ============ 4. Winkel ============ */
.pg-shop__me { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 20px; background: linear-gradient(160deg, #FFE9A8, #FFD06B); box-shadow: var(--pg-shadow); margin-bottom: 1rem; }
.pg-dress { position: relative; flex: none; width: 96px; height: 110px; }
.pg-dress__hero { position: absolute; left: 8px; bottom: 0; width: 80px; height: 80px; }
.pg-dress__hero svg { width: 100%; height: 100%; display: block; }
.pg-dress__hat { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 2.3rem; line-height: 1; z-index: 1; }
.pg-dress__pet { position: absolute; right: -14px; bottom: 0; font-size: 2rem; line-height: 1; animation: pg-idle 1.2s ease-in-out infinite; }
.pg-dress__trail { position: absolute; left: -16px; bottom: 6px; font-size: 1.4rem; line-height: 1; opacity: .9; }
.pg-shop__coins { font-size: 1.5rem; font-weight: 900; }
.pg-shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.pg-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .5rem; border-radius: 18px; background: var(--pg-paper); box-shadow: var(--pg-shadow); border: 3px solid transparent; font: inherit; color: var(--pg-ink); cursor: pointer; text-align: center; }
.pg-item:disabled { cursor: default; opacity: .6; }
.pg-item__ico { font-size: 2.4rem; line-height: 1.1; }
.pg-item__name { font-weight: 900; }
.pg-item__price { font-weight: 900; padding: .1rem .55rem; border-radius: 99px; background: #FFF3C4; }
.pg-item--owned .pg-item__price { background: #EAF9E4; }
.pg-item--on { border-color: #58B947; background: #F2FBEE; }
.pg-item--on .pg-item__price { background: #58B947; color: #fff; }
.pg-item--streak .pg-item__price { background: #FFE0D2; }
.pg-result__coach { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.pg-result__coach span { padding: .2rem .6rem; border-radius: 99px; background: #FFF3C4; font-weight: 900; animation: pg-pop .4s ease both; }

@media (prefers-reduced-motion: reduce) {
  .pg-board--live::after, .pg-cell__decor, .pg-cell__wave i, .pg-cell__rays, .pg-cell__goal, .pg-hero-shadow, .pg-board--live .pg-hero-wrap .pg-livia, .pg-hero-hat, .pg-pet span, .pg-hero-arrow::after, .pg-btn--run::after, .pg-chest--ready, .pg-coach__pio, .pg-board--live .pg-cell--plan::before { animation: none !important; }
}

/* ============ 5. Het beginscherm van de app (26 november 2026) ============ */
.pg-home { display: grid; gap: .9rem; }
.pg-home > .pg-coach, .pg-home > .pg-reward { margin-bottom: 0; }
.pg-hero { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "text figure" "panel panel"; align-items: end; min-height: 300px; padding: 1rem; border-radius: 26px; overflow: hidden; background: var(--pg-world-color, #2FB5A5); box-shadow: 0 6px 0 rgba(0, 0, 0, .14), var(--pg-shadow); isolation: isolate; }
.pg-hero__scene { position: absolute; inset: 0; z-index: -2; }
.pg-hero__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-hero__scene .pg-scene__bo { display: none; } /* de held staat hier groot op de voorgrond */
.pg-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--pg-world-color) 70%, #123 30%) 0%, color-mix(in srgb, var(--pg-world-color) 35%, transparent) 30%, transparent 52%, rgba(20, 40, 60, .35) 100%); }
.pg-hero__text { grid-area: text; align-self: start; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.pg-hero__title { margin: 0; font-size: clamp(1.7rem, 6.5vw, 2.6rem); line-height: 1.05; font-weight: 900; }
.pg-hero__sub { margin: .25rem 0 0; font-weight: 800; font-size: 1.02rem; max-width: 15rem; }
.pg-hero__figure { grid-area: figure; align-self: end; margin: 0 .6rem -.2rem 0; animation: pg-hero-bob 2.6s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .3)); }
.pg-hero__figure .pg-dress { width: 150px; height: 172px; }
.pg-hero__figure .pg-dress__hero { left: 12px; width: 126px; height: 126px; }
.pg-hero__figure .pg-dress__hat { font-size: 3.6rem; }
.pg-hero__figure .pg-dress__pet { font-size: 3rem; right: -26px; }
.pg-hero__figure .pg-dress__trail { font-size: 2rem; left: -22px; }
@keyframes pg-hero-bob { 0%, 100% { translate: 0 0; scale: 1 1; } 50% { translate: 0 -6px; scale: 1.02 .98; } }
.pg-hero__panel { grid-area: panel; display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: center; margin-top: .6rem; padding: .7rem; border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.pg-hero__next { display: grid; gap: .3rem; min-width: 0; }
.pg-hero__what { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-hero__progress { margin: 0; }
.pg-hero__play { margin: 0; white-space: nowrap; font-size: 1.25rem; padding: .7rem 1.3rem; animation: pg-play-pulse 1.8s ease-in-out infinite; }
@keyframes pg-play-pulse { 0%, 100% { scale: 1; box-shadow: 0 5px 0 rgba(0, 0, 0, .2), 0 0 0 0 rgba(47, 181, 165, .55); } 50% { scale: 1.04; box-shadow: 0 5px 0 rgba(0, 0, 0, .2), 0 0 0 12px rgba(47, 181, 165, 0); } }
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.pg-htile { display: grid; justify-items: center; gap: .15rem; padding: .6rem .3rem; border-radius: 18px; background: var(--pg-paper); box-shadow: 0 3px 0 rgba(0, 0, 0, .1), var(--pg-shadow); color: var(--pg-ink); text-decoration: none; font-weight: 900; font-size: .85rem; text-align: center; transition: transform .12s; }
.pg-htile:active { transform: translateY(2px); }
.pg-htile__ico { font-size: 1.7rem; line-height: 1.1; }
.pg-htile[data-pg-weekly-done]:not([data-pg-weekly-done=""]) { background: #E4F7DF; }
.pg-home__h2 { margin: .6rem 0 .7rem; font-size: 1.3rem; }
/* Ik */
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.pg-stat { display: grid; justify-items: center; padding: .6rem .3rem; border-radius: 16px; background: var(--pg-paper); box-shadow: var(--pg-shadow); color: var(--pg-ink); text-decoration: none; text-align: center; font-size: .82rem; }
.pg-stat b { font-size: 1.3rem; font-weight: 900; } .pg-stat__ico { font-size: 1.4rem; }
.pg-rows { display: grid; gap: .45rem; }
.pg-row { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .75rem .9rem; border-radius: 16px; background: var(--pg-paper); box-shadow: var(--pg-shadow); color: var(--pg-ink); text-decoration: none; font-weight: 800; }
/* navigatiebalk onderin: alleen op de telefoon, niet tijdens het spelen */
.pg-tabbar { display: none; }
@media (max-width: 640px) {
  .pg-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 0 rgba(29, 43, 58, .08), 0 -8px 20px rgba(29, 43, 58, .1); }
  .pg-tabbar__tab { display: grid; justify-items: center; gap: 0; padding: .3rem 0 .2rem; border-radius: 14px; color: var(--pg-ink-soft); text-decoration: none; font-weight: 900; font-size: .72rem; }
  .pg-tabbar__ico { font-size: 1.45rem; line-height: 1.15; filter: grayscale(.6); opacity: .8; transition: scale .15s; }
  .pg-tabbar__tab--on { color: #1B7F74; background: #E3F6F3; }
  .pg-tabbar__tab--on .pg-tabbar__ico { filter: none; opacity: 1; scale: 1.15; }
  body.pg-in-play .pg-tabbar { display: none; }
  body:not(.pg-in-play) .pg-main { padding-bottom: 5.2rem; }
  /* kopbalk: één regel */
  .pg-hdr { flex-wrap: nowrap; padding: .35rem .6rem; gap: .35rem; }
  .pg-hdr__name, .pg-hdr__world, .pg-hdr__login, .pg-hdr__user:not(.pg-hdr__admin), .pg-chip--badges, .pg-chip--errors { display: none !important; }
  .pg-hdr__stats { flex-wrap: nowrap; min-width: 0; gap: .25rem; margin-left: auto; }
  .pg-hdr .pg-chip { padding: .2rem .45rem; font-size: .9rem; }
  .pg-hdr__right { gap: 0; }
  /* beginscherm: held, speelknop en de opdrachten van vandaag op één scherm */
  .pg-home { gap: .6rem; }
  .pg-home__journey { display: none; }
  .pg-hero { min-height: min(40vh, 320px); padding: .8rem; border-radius: 22px; }
  .pg-hero__figure .pg-dress { width: 120px; height: 138px; }
  .pg-hero__figure .pg-dress__hero { left: 10px; width: 100px; height: 100px; }
  .pg-hero__figure .pg-dress__hat { font-size: 2.9rem; }
  .pg-hero__panel { grid-template-columns: 1fr; gap: .5rem; padding: .6rem; }
  .pg-hero__play { width: 100%; justify-content: center; min-height: 58px; font-size: 1.35rem; }
  .pg-coach { padding: .6rem; gap: .45rem; border-radius: 20px; }
  .pg-coach__pio { width: 46px; height: 46px; }
  .pg-coach__bubble { padding: .4rem .6rem; font-size: .9rem; line-height: 1.25; border-radius: 14px; }
  .pg-coach__name, .pg-coach__tip { display: none; }
  .pg-missions { gap: .3rem; }
  .pg-mission { padding: .3rem .45rem; gap: .45rem; border-radius: 13px; }
  .pg-mission__ico { width: 34px; height: 34px; font-size: 1.2rem; border-radius: 11px; }
  .pg-mission__text { font-size: .92rem; }
  .pg-mission__bar { height: 6px; margin-top: .2rem; }
  .pg-mission__reward { font-size: .82rem; padding: .15rem .45rem; }
  .pg-coach__foot { gap: .3rem; }
  .pg-coach__box { padding: .35rem .55rem; font-size: .85rem; border-radius: 13px; }
  .pg-coach__box br { display: none; } .pg-coach__box b::after { content: " "; }
  .pg-chest { font-size: 1.4rem; }
  .pg-week__day { width: 26px; height: 26px; font-size: .64rem; }
  .pg-coach__links { display: none; }
  /* op de telefoon alleen wat niet al in de navigatiebalk staat: vijf tegels die altijd passen */
  .pg-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
  .pg-tiles [data-pg-in-tabbar] { display: none; }
  .pg-htile__label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pg-htile { padding: .45rem .15rem; font-size: .72rem; border-radius: 14px; }
  .pg-htile__ico { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .pg-hero__figure, .pg-hero__play { animation: none !important; } }

/* ============ 6. App-gevoel op de telefoon (3 december 2026) ============ */
html { -webkit-tap-highlight-color: transparent; }
.pg-keys { display: none; }
@media (max-width: 640px) {
  html, body { overscroll-behavior-y: none; }
  body { touch-action: manipulation; }
  .pg-btn, .pg-tabbar, .pg-htile, .pg-chip, .pg-mission, .pg-tap, .pg-play__top, .pg-hero__panel { -webkit-user-select: none; user-select: none; }
  /* minigames: bord, pijlen en Start samen in beeld boven de navigatiebalk */
  .pg-minigame .pg-page__lead { display: none; }
  .pg-minigame .pg-page__head { margin-bottom: .4rem; }
  .pg-minigame .pg-play__board { display: flex; justify-content: center; }
  .pg-minigame .pg-board { width: min(100%, 40vh); }
  .pg-minigame .pg-muted { margin: .2rem 0 .4rem; }
  /* meldingen bovenin: onderin zitten de knoppen en de navigatiebalk */
  .pg-toasts { top: calc(.5rem + env(safe-area-inset-top)); bottom: auto; z-index: 120; }
  .pg-toast { transform: translateY(-10px); }
  /* elk scherm schuift zacht binnen */
  .pg-main > * { animation: pg-screen .2s ease-out both; }
  /* spelen = het hele scherm: geen kopbalk, bord en programma in beeld, knoppen vast onderin */
  body.pg-in-play .pg-hdr { display: none; }
  body.pg-in-play .pg-main { padding: .35rem .45rem 0; }
  body.pg-in-play .pg-play[data-pg-theme] { margin: -.35rem -.45rem 0; padding: calc(.35rem + env(safe-area-inset-top)) .45rem 0; border-radius: 0; min-height: 100dvh; }
  body.pg-in-play .pg-play__top { margin-bottom: .3rem; }
  .pg-task-area--phone { gap: .35rem !important; }
  .pg-task-area--phone .pg-blockly { height: 220px; border-radius: 14px; position: relative; }
  .pg-task-area--phone .pg-blockly[data-pg-empty="1"]::after { content: "Tik hieronder op een blok 👇"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--pg-ink-soft); font-weight: 800; pointer-events: none; }
  .pg-task-area--phone .blocklyScrollbarHandle { opacity: .25; }
  .pg-task-area--phone .blocklyScrollbarBackground { opacity: 0; }
  .pg-task-area--phone .pg-blockly-bar { margin: 0; min-height: 0; font-size: .85rem; }
  .pg-task-area--phone .pg-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .pg-task-area--phone .pg-pypanel { max-height: 104px; overflow: auto; margin: 0; padding: .4rem .6rem; border-radius: 12px; }
  .pg-task-area--phone .pg-pypanel__title { margin: 0 0 .15rem; font-size: .8rem; }
  .pg-task-area--phone .pg-pypanel__note { display: none; }
  .pg-task-area--phone .pg-loot-note { display: none; }
  body.pg-in-play .pg-task-area--phone .pg-board--live { max-width: min(100%, calc(27vh * var(--w) / var(--h))); }
  body.pg-in-play .pg-play__controls--blocks .pg-appbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: stretch; gap: .35rem; padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 0 rgba(29, 43, 58, .08), 0 -8px 20px rgba(29, 43, 58, .14); }
  .pg-tap { display: flex; gap: .4rem; overflow-x: auto; padding: .05rem .1rem .3rem; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pg-tap::-webkit-scrollbar { display: none; }
  .pg-tap__blk { flex: none; display: grid; justify-items: center; min-width: 70px; padding: .3rem .55rem .28rem; border: 0; border-radius: 14px; color: #fff; font: inherit; font-weight: 900; font-size: .74rem; white-space: nowrap; box-shadow: 0 4px 0 rgba(0, 0, 0, .22); scroll-snap-align: start; cursor: pointer; }
  .pg-tap__blk:active { translate: 0 3px; box-shadow: 0 1px 0 rgba(0, 0, 0, .22); }
  .pg-tap__ico { font-size: 1.4rem; line-height: 1.15; }
  .pg-tap__blk--move { background: #3D8BEA; } .pg-tap__blk--build { background: #D9822B; } .pg-tap__blk--loop { background: #E0A100; } .pg-tap__blk--sense { background: #2C9FB8; } .pg-tap__blk--event { background: #8A5CE6; } .pg-tap__blk--var { background: #E0662B; }
  .pg-appbar__row { display: grid; grid-template-columns: auto auto 1fr; gap: .4rem; align-items: center; }
  .pg-appbar .pg-btn--run { width: 100%; min-height: 52px; margin: 0; }
  .pg-tap__act { width: 52px; height: 52px; min-height: 52px; font-size: 1.3rem; padding: 0; }
  .pg-tap__act:disabled { opacity: .35; }
  /* het gekozen blok is duidelijk te zien: daar komt het volgende blok achter */
  .pg-task-area--phone .blocklySelected > .blocklyPath { stroke: #1D2B3A; stroke-width: 4px; }
  /* een melding zweeft boven de knoppen (tik = weg) in plaats van onder het scherm te vallen */
  body.pg-in-play .pg-feedback:not(:empty) { position: fixed; left: .6rem; right: .6rem; bottom: calc(var(--pg-bar-h, 0px) + .6rem); z-index: 58; margin: 0; padding: .6rem .8rem; border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(29, 43, 58, .28); font-size: .98rem; text-align: left; min-height: 0; animation: pg-pop .25s ease both; }
  body.pg-in-play .pg-feedback--fail:not(:empty) { border-left: 6px solid var(--pg-berry); }
  body.pg-in-play .pg-feedback--ok:not(:empty) { display: none; } /* bij goed verschijnt het resultaatvel al */
  /* resultaat: een vel dat van onderen omhoog schuift en altijd past */
  .pg-overlay { align-items: flex-end; padding: 0; z-index: 90; } /* boven de knoppenbalk: de knop Volgende moet te raken zijn */
  .pg-stage:has(.pg-overlay) .pg-appbar, .pg-stage:has(.pg-overlay) .pg-feedback { display: none !important; }
  .pg-overlay .pg-result, .pg-overlay .pg-level-done { max-height: 92dvh; border-radius: 24px 24px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); animation: pg-sheet .28s cubic-bezier(.2, .9, .3, 1) both; }
  .pg-overlay .pg-level-done .pg-scene, .pg-overlay .pg-result .pg-scene { max-height: 110px; }
  /* Python typen: een rij sneltoetsen boven de code */
  .pg-keys { display: flex; gap: .3rem; overflow-x: auto; padding: .3rem .1rem; scrollbar-width: none; }
  .pg-keys::-webkit-scrollbar { display: none; }
  .pg-keys__k { flex: none; min-width: 44px; height: 40px; padding: 0 .6rem; border: 0; border-radius: 10px; background: #2B3A4C; color: #fff; font: 700 .95rem ui-monospace, Menlo, Consolas, monospace; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
  .pg-keys__k:active { translate: 0 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
}
@keyframes pg-screen { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes pg-sheet { from { translate: 0 100%; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pg-main > *, .pg-overlay .pg-result, .pg-overlay .pg-level-done { animation: none !important; } }

/* ============ 7. Hartjes (4 december 2026) ============ */
.pg-hearts { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem; border: 0; border-radius: 99px; background: #FFE9EC; color: #B4233A; font: inherit; font-weight: 900; cursor: pointer; -webkit-user-select: none; user-select: none; }
.pg-hearts[hidden] { display: none; }
.pg-hearts__row { display: inline-flex; gap: 2px; }
.pg-heart { position: relative; display: inline-block; width: 22px; height: 20px; }
.pg-heart svg { position: absolute; left: 0; top: 0; width: 22px; height: 20px; fill: #E9C9CE; }
.pg-heart__fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; }
.pg-heart__fill svg { fill: #E5364F; }
.pg-heart--gold .pg-heart__fill svg { fill: #F5B301; filter: drop-shadow(0 0 2px #FFD23F); }
.pg-hearts__time { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-hearts__long { display: none; }
@media (min-width: 900px) { .pg-hdr .pg-hearts__long { display: inline; } .pg-hdr .pg-hearts__short { display: none; } }
.pg-hearts--hit { animation: pg-shake .4s ease; }
.pg-hearts--big { background: none; padding: 0; cursor: default; justify-content: center; }
.pg-hearts--big .pg-heart, .pg-hearts--big .pg-heart svg { width: 54px; height: 50px; }
.pg-hearts--big .pg-hearts__row { gap: 8px; }
.pg-hearts--big .pg-hearts__time { display: none; }
.pg-hearts-sheet, .pg-hearts-gate { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.pg-hearts-sheet__time, .pg-hearts-gate__time { margin: 0; font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #B4233A; }
.pg-hearts-gate { padding: 1.4rem 1rem; margin-top: 1rem; }
.pg-hearts-gate__ico { font-size: 3.2rem; line-height: 1; }
.pg-reward-wrap { display: grid; justify-items: center; gap: .3rem; }
.pg-reward-btn[hidden] { display: none; }
.pg-reward-note:empty { display: none; }
.pg-btn--busy { opacity: .6; pointer-events: none; }
.pg-play__top .pg-hearts { margin-left: auto; }
@media (max-width: 640px) {
  .pg-hdr .pg-hearts { padding: .2rem .4rem; }
  .pg-hdr .pg-heart, .pg-hdr .pg-heart svg, .pg-play__top .pg-heart, .pg-play__top .pg-heart svg { width: 18px; height: 16px; }
  .pg-play__top .pg-hearts { padding: .15rem .4rem; }
  .pg-play__top .pg-hearts__time { font-size: .78rem; }
  body.pg-in-play .pg-play__title { min-width: 0; flex: 1 1 auto; }
}

/* ============ 8. Abonnementen (4 december 2026) ============ */
.pg-plus__now { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; margin: .4rem 0 1rem; border-radius: 18px; background: linear-gradient(135deg, #FFF4CC, #FFE7A3); box-shadow: var(--pg-shadow); }
.pg-plus__now > div { display: grid; gap: .1rem; }
.pg-plus__now-ico { font-size: 2rem; line-height: 1; }
.pg-seg { display: flex; gap: 4px; padding: 4px; margin: .2rem auto 1rem; max-width: 420px; border-radius: 999px; background: #E3EEF7; }
.pg-seg__btn { flex: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: .3rem .6rem; border: 0; border-radius: 999px; background: transparent; color: var(--pg-ink); font: inherit; font-weight: 900; cursor: pointer; }
.pg-seg__btn--on { background: var(--pg-paper); box-shadow: 0 3px 0 rgba(29, 43, 58, .12); }
.pg-seg__btn .pg-plus__free { font-size: .72rem; }
.pg-plus__free { color: #1E7A3C; font-weight: 900; }
.pg-plus__free--card { margin: -.3rem 0 .4rem; font-size: .9rem; }
.pg-plus__cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pg-plus__card { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 22px; background: var(--pg-paper); box-shadow: var(--pg-shadow); border: 3px solid transparent; }
.pg-plus__card--teacher { border-color: var(--pg-sun); }
.pg-plus__card h2 { margin: 0; font-size: 1.2rem; }
.pg-plus__price { margin: 0; font-size: 1rem; color: var(--pg-ink-soft); }
.pg-plus__price b { font-size: 1.8rem; color: var(--pg-ink); }
.pg-plus__list { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: grid; gap: .35rem; flex: 1; }
.pg-plus__card .pg-btn { width: 100%; }
.pg-plus__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0 .4rem; }
.pg-plus__small { font-size: .85rem; text-align: center; }
.pg-plus__web { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 18px; background: #EAF6FF; text-align: center; }
.pg-plus__web p { margin: 0 0 .4rem; }
.pg-plus__kids-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pg-plus__count { font-size: 1.2rem; padding: .15rem .7rem; border-radius: 999px; background: #FFF0C2; font-variant-numeric: tabular-nums; }
.pg-plus__kidlist { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .4rem; }
.pg-plus__kid { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 14px; background: #F4F8FC; }
.pg-plus__kid--off { opacity: .55; }
.pg-plus__mycode { margin: .6rem 0 0; font-size: 1.1rem; }
.pg-plus--busy .pg-plus__cards { opacity: .6; pointer-events: none; }
.pg-gate__q { font-size: 1.5rem; font-weight: 900; text-align: center; margin: .6rem 0; }
.pg-gate__in { text-align: center; max-width: 200px; margin: 0 auto; display: block; }
