/* SlimmeKids – Pling & Boem (basis: SlimmeKids-huisstijl zoals Zetmeester en Vierkoning) – © 2026 SlimmeKids. Alleen systeemlettertypen. Basis = dezelfde knoppen, kaarten en duelkamer als Klasduel (School-huisstijl). */
:root {
    --ink: #1c3348; --muted: #5b7084; --line: #d5dee7; --paper: #f4f7fb; --card: #fff;
    --mint: #1fb5a8; --mint-d: #128a80; --pink: #ff7fa8; --accent: #ff9a3c;
    --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: Fredoka, "Trebuchet MS", Verdana, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation;
    font-family: var(--ui); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
button { font: inherit; touch-action: manipulation; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
.app { display: flex; flex-direction: column; height: 100%; }
.top { flex: 0 0 auto; display: flex; align-items: center; gap: .85rem; padding: calc(.45rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .45rem max(1rem, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.title { min-width: 0; padding-left: .85rem; border-left: 1px solid #e6edf3; margin-left: auto; text-align: right; }
.kicker { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1, .title .game-title { margin: 0; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.t-sk { color: var(--mint-d); }
.tools { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.mini { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 36px; min-width: 36px; padding: 0 .75rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; font-size: .85rem; font-weight: 600; }
.sound-mark { width: 12px; height: 12px; border-radius: 50%; background: #1f9d45; box-shadow: 0 0 0 3px rgba(31,157,69,.2), 0 0 8px rgba(31,157,69,.75); }
.sound-btn.off .sound-mark { background: #e11d2e; box-shadow: 0 0 0 3px rgba(225,29,46,.18), 0 0 8px rgba(225,29,46,.7); }
.size-control { display: inline-flex; align-items: center; gap: .35rem; height: 32px; padding: 0 .45rem 0 .4rem; border: 1px solid #d5dee7; border-radius: 6px; background: #fff; color: #1c3348; }
.size-a { font-weight: 700; line-height: 1; color: #5d7388; }
.size-a-sm { font-size: .68rem; } .size-a-lg { font-size: 1.05rem; }
.text-size { width: 92px; height: 18px; margin: 0; accent-color: #2f9ed8; cursor: pointer; }
@media (max-width: 900px) { .text-size { width: 64px; } }
:root { --blue: #2f9ed8; --blue-d: #1f7fb5; --cs: 120px; }
.mem-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .88rem; font-weight: 650; }
.mem-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mem-sw { flex: 0 0 auto; width: 40px; height: 24px; border-radius: 99px; background: #cfd8e2; position: relative; transition: background .2s; }
.mem-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.mem-switch input:checked + .mem-sw { background: var(--mint); }
.mem-switch input:checked + .mem-sw::after { transform: translateX(16px); }
.mem-switch input:focus-visible + .mem-sw { outline: 3px solid rgba(47,158,216,.4); outline-offset: 2px; }
.mem-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 750; font-size: .95rem; color: var(--ink); }
.mem-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mem-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(47,158,216,.28); }
.mem-btn:hover { filter: brightness(1.04); } .mem-btn:active { transform: scale(.98); }
.mem-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(28,51,72,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: mem-fade .35s ease both; overflow-y: auto; }
@keyframes mem-fade { from { opacity: 0; } to { opacity: 1; } }
.mem-sc { width: min(900px, 100%); max-height: calc(100% - 1rem); overflow-y: auto; display: grid; grid-template-columns: 1fr 1.25fr; background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(28,51,72,.28); animation: mem-up .45s cubic-bezier(.2,.9,.3,1.15) both; zoom: var(--ui-zoom, 1); }
@keyframes mem-up { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.mem-sc-hero { padding: 1.6rem 1.6rem 1.4rem; background: linear-gradient(165deg, #f4fbff 0%, #e8f6f4 100%); border-right: 1px solid #e6edf3; }
.mem-sc-art { width: 150px; height: 112px; margin: 0 0 .5rem -6px; }
.mem-sc-art .sp { transform-box: fill-box; transform-origin: center; animation: mem-tw 2.6s ease-in-out infinite; }
@keyframes mem-tw { 0%,100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
.mem-sc-sk { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-d); }
.mem-sc-name { margin: .1rem 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.05; }
.mem-sc-sub { margin: .35rem 0 .7rem; font-weight: 700; font-size: .95rem; color: #3e556b; }
.mem-sc-intro { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.mem-sc-count { display: inline-block; margin: 1rem 0 0; padding: .35rem .7rem; border-radius: 99px; background: #fff; border: 1px solid #dbe7ef; font-size: .78rem; font-weight: 750; color: #3e556b; }
.mem-sc-pick { padding: 1.3rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.mem-sc-lbl { margin: .35rem 0 0; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mem-sc-lbl:first-child { margin-top: 0; }
.mem-seg { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.mem-seg-b, .mem-size { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: .5rem .2rem; border: 2px solid #e3eaf1; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, transform .15s; }
.mem-seg-b b, .mem-size b { font-family: var(--display); font-size: 1.15rem; line-height: 1; }
.mem-seg-b small, .mem-size small { font-size: .66rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mem-seg-b .dots { display: flex; gap: 2px; height: 8px; } .mem-seg-b .dots i { width: 8px; height: 8px; border-radius: 50%; }
.mem-seg-b.on, .mem-size.on { border-color: var(--blue); background: #eef7fd; box-shadow: 0 4px 12px rgba(47,158,216,.18); }
.mem-seg-b:hover, .mem-size:hover:not(:disabled) { transform: translateY(-1px); }
.mem-names { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.mem-name { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 38px; border: 1.5px solid #e3eaf1; border-radius: 10px; background: #fff; }
.mem-name i { width: 12px; height: 12px; border-radius: 50%; background: var(--tc); flex: 0 0 auto; }
.mem-name input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .85rem; font-weight: 650; color: var(--ink); background: transparent; -webkit-user-select: text; user-select: text; }
.mem-name:focus-within { border-color: var(--tc); }
.mem-chip { padding: .38rem .7rem; border-radius: 99px; border: 1.5px solid #e3eaf1; background: #fff; font-size: .8rem; font-weight: 700; }
.mem-chip small { color: var(--muted); font-weight: 700; margin-left: 2px; }
.mem-chip.on { border-color: var(--blue); background: #eef7fd; color: var(--blue-d); }
.mem-sc-go { margin-top: .6rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #ffb25c, #ff8f2e); color: #fff; font-family: var(--display); font-size: 1.2rem; font-weight: 800; box-shadow: 0 10px 22px rgba(255,143,46,.32); }
.mem-sc-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mem-sc-go:hover { filter: brightness(1.04); } .mem-sc-go:active { transform: scale(.98); }
.mem-done { width: min(480px, 100%); background: #fff; border-radius: 26px; padding: 1.6rem 1.6rem 1.4rem; text-align: center; box-shadow: 0 30px 80px rgba(28,51,72,.28); animation: mem-up .45s cubic-bezier(.2,.9,.3,1.15) both; zoom: var(--ui-zoom, 1); }
.mem-trophy { width: 84px; height: 84px; }
.mem-done h2 { margin: .3rem 0 .2rem; font-family: var(--display); font-size: 1.9rem; }
.mem-done-sub { margin: 0 0 1rem; color: var(--muted); font-weight: 650; }
.mem-rank { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.mem-rank li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid #e3eaf1; }
.mem-rank li.win { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 8%, #fff); }
.mem-rank .p { width: 22px; font-weight: 800; color: var(--muted); } .mem-rank i { width: 14px; height: 14px; border-radius: 50%; background: var(--tc); }
.mem-rank .n { flex: 1; font-weight: 750; } .mem-rank b { font-family: var(--display); }
.mem-done-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mem-version { position: fixed; left: 12px; bottom: 12px; margin: 0; font-size: 11.52px; color: #5b7084; opacity: .85; z-index: 7; pointer-events: none; }
.mem-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.mem-mode-b { display: flex; align-items: center; gap: .6rem; text-align: left; padding: .55rem .7rem; border: 2px solid #e3eaf1; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, transform .15s; }
.mem-mode-b svg { flex: 0 0 auto; width: 30px; height: 30px; fill: #eef7fd; stroke: #2f9ed8; stroke-width: 2; stroke-linejoin: round; }
.mem-mode-b span { display: flex; flex-direction: column; min-width: 0; }
.mem-mode-b b { font-size: .84rem; line-height: 1.2; } .mem-mode-b small { font-size: .7rem; font-weight: 650; color: var(--muted); }
.mem-mode-b.on { border-color: var(--blue); background: #eef7fd; box-shadow: 0 4px 12px rgba(47,158,216,.18); }
.mem-mode-b:hover { transform: translateY(-1px); }
@keyframes mem-fadein { from { opacity: 0; } to { opacity: 1; } }
.mem-rank .tr { color: var(--muted); font-weight: 650; font-size: .8rem; margin-right: .5rem; }

@keyframes tk-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
/* Startscherm */
.tk-sc-wide { width: min(1180px, 100%); grid-template-columns: minmax(300px, .82fr) 1.5fr; }
.tk-hero { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px; margin: 0 0 .9rem; box-shadow: 0 10px 24px rgba(28,51,72,.16); background: #cfe9f7; }
.tk-names { display: grid; grid-template-columns: 1fr; gap: .45rem; margin-top: .45rem; }
.tk-names .mem-name { height: 44px; }
.tk-names .mem-name input { font-size: .95rem; }
.tk-grades { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.tk-grades .mem-seg-b { padding: .5rem .15rem; min-height: 56px; }
.tk-grades .mem-seg-b b { font-size: .92rem; text-align: center; }
.tk-grades .mem-seg-b small { white-space: normal; text-align: center; line-height: 1.15; font-size: .62rem; }
.tk-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.tk-subj { display: flex; align-items: center; gap: .55rem; min-height: 46px; padding: .4rem .6rem; border: 2px solid #e3eaf1; border-radius: 14px; background: #fff; text-align: left; font-weight: 750; font-size: .86rem; line-height: 1.15; transition: border-color .15s, background .15s, transform .15s; }
.tk-subj svg { flex: 0 0 auto; width: 26px; height: 26px; padding: 3px; border-radius: 8px; background: #eef7fd; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-subj.on { border-color: var(--blue); background: #eef7fd; box-shadow: 0 4px 12px rgba(47,158,216,.18); }
.tk-subj.on svg { background: var(--blue); stroke: #fff; }
.tk-subj:hover { transform: translateY(-1px); }
.tk-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tk-chips .mem-chip { min-height: 38px; padding: .38rem .8rem; }
.tk-chips .mem-chip b { font-weight: 750; }
.tk-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.tk-seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.tk-seg4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.tk-seg3 .mem-seg-b, .tk-seg4 .mem-seg-b { min-height: 46px; }
.tk-seg3 .mem-seg-b b, .tk-seg4 .mem-seg-b b { font-size: .95rem; }
.tk-speak { margin-top: .5rem; }
.mem-sc-pick .mem-sc-go { margin-top: .8rem; }
.tk-win-ov { background: rgba(28,51,72,.16); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.tk-win-ov .mem-done { border-top: 6px solid var(--tc); }
.tk-trophy { animation: tk-pop .7s cubic-bezier(.2,1.4,.4,1) .1s both; }
.mem-rank li .tr { margin-left: auto; }

@media (max-width: 1100px) { .tk-sc-wide { grid-template-columns: 1fr; } .tk-sc-wide .mem-sc-hero { border-right: 0; border-bottom: 1px solid #e6edf3; } .tk-hero { max-width: 340px; } .tk-names { grid-template-columns: 1fr 1fr; } }
@media (max-height: 700px) { .tk-panel { height: 50%; } .tk-sc .n { font-size: .95rem; } }
@media (min-width: 1700px) and (min-height: 900px) { .mem-sc, .mem-done { zoom: calc(var(--ui-zoom, 1) * 1.22); } .tk-hud, .tk-ph, .tk-fb { zoom: calc(var(--ui-zoom, 1) * 1.25); } }
@media (min-width: 2500px) and (min-height: 1300px) { .mem-sc, .mem-done { zoom: calc(var(--ui-zoom, 1) * 1.6); } .tk-hud, .tk-ph, .tk-fb { zoom: calc(var(--ui-zoom, 1) * 1.6); } }
@media (prefers-reduced-motion: reduce) { .tk-mk { transition: none; } .tk-panel.is-no, .tk-opt.reveal, .tk-count b, .tk-sudden, .tk-trophy, .tk-time.low { animation: none; } }
.tk-hero-go { display: flex; flex-direction: column; gap: .2rem; margin-top: .8rem; }
.tk-hero-go .mem-sc-go { width: 100%; }
.mem-sc-hero { display: flex; flex-direction: column; }

/* contrast (Lighthouse AA) – visueel gelijk aan de andere School-spellen */
.mem-chip.on { color: #16679a; }
.mem-version { color: #55697d; opacity: 1; }
.sk-school-copy { color: #55697d; }
.top .title .t-sk { color: #0f7f75; }

/* ---------- duelkamer ---------- */
.go-duel { display: none; } .tk-duel-host .go-duel { display: inline; } .tk-duel-host .go-solo { display: none; }
.mem-sc-go.wait { filter: saturate(.55) brightness(1.02); box-shadow: none; }
.tk-duel-btn { width: 100%; margin-top: .7rem; min-height: 60px; justify-content: flex-start; gap: 12px; padding: 8px 16px; border: 1.5px solid #dbe4ee; border-radius: 16px; box-shadow: 0 1px 0 rgba(28,51,72,.04), 0 4px 12px rgba(28,51,72,.06); text-align: left; font-family: var(--ui); }
.tk-duel-btn svg { width: 30px; height: 30px; flex: 0 0 auto; color: #16679a; stroke-width: 1.9; }
.tk-duel-btn span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tk-duel-btn b { font-weight: 700; font-size: 1rem; color: var(--ink); }
.tk-duel-btn small { font-weight: 500; font-size: .8rem; color: #55697d; }
.tk-duel-host .tk-duel-btn b::after { content: " ✓"; color: #0f7f75; }
.tk-duel-host .tk-names, .tk-duel-host #tkTeamsLbl, .tk-duel-host #tkModeLbl, .tk-duel-host #tkMode { display: none; }
.tk-duel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: .7rem 0 .2rem; padding: 10px 14px; border-radius: 16px; background: #f2f7fc; border: 1.5px solid #dbe4ee; }
.tk-duel-bar .lbl { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #55697d; }
.tk-duel-bar .st { flex: 1 1 100%; font-weight: 600; font-size: .92rem; color: #55697d; }
.tk-duel-bar.ok { background: #eefaf6; border-color: #bfe8da; } .tk-duel-bar.ok .st { color: #0f6e63; }
.tk-code-s { display: inline-flex; gap: 4px; } .tk-code-s span { min-width: 1.35em; padding: 2px 0; text-align: center; border-radius: 8px; background: #fff; border: 1px solid #dbe4ee; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #163b5c; font-variant-numeric: tabular-nums; }

.tk-duel-ov { z-index: 60; }
.tk-duel-card { width: min(760px, 100%); padding: 1.5rem 1.8rem 1.4rem; }
.tk-duel-card .dv[hidden] { display: none; }
.tk-d-kick { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0f7f75; }
.tk-duel-card h2 { font-weight: 800; line-height: 1.15; }
.tk-d-name { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin: 1rem auto .2rem; text-align: left; font-weight: 600; font-size: .9rem; color: #4d6478; }
.tk-d-name input { min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid #dbe4ee; font: 600 1.05rem var(--ui); color: var(--ink); background: #fff; }
.tk-d-name input:focus { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); border-color: var(--blue); }
.tk-d-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1rem 0 .4rem; }
.tk-d-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 16px; border-radius: 20px; border: 1.5px solid #dbe4ee; background: #fff; color: var(--ink); font-family: var(--ui); box-shadow: 0 1px 0 rgba(28,51,72,.04), 0 6px 16px rgba(28,51,72,.07); transition: transform .12s, box-shadow .2s, border-color .2s; }
.tk-d-big svg { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: #eaf4fb; color: #16679a; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tk-d-big b { font-size: 1.15rem; font-weight: 700; } .tk-d-big small { font-size: .86rem; font-weight: 500; color: #55697d; }
.tk-d-big:hover { border-color: #9ccbe8; box-shadow: 0 8px 22px rgba(28,51,72,.11); } .tk-d-big:active { transform: scale(.985); }
.tk-d-big:disabled { opacity: .6; }
.tk-d-err { margin: .6rem auto 0; max-width: 520px; padding: 10px 14px; border-radius: 12px; background: #fdeeee; color: #a3262a; font-weight: 600; font-size: .95rem; }
.tk-d-err[hidden] { display: none; }
.tk-code-big { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 22px); margin: 1rem 0 .8rem; }
.tk-code-big span { width: 1.25em; padding: .08em 0; border-radius: .2em; background: #f4f8fc; border: 2px solid #dbe4ee; box-shadow: inset 0 -4px 0 #e6eef6; font-family: var(--display); font-weight: 800; font-size: clamp(4.4rem, 13vh, 8.5rem); line-height: 1.12; color: #163b5c; font-variant-numeric: tabular-nums; }
.tk-d-st { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 30px; margin: .6rem 0 0; font-weight: 600; font-size: 1.02rem; color: #4d6478; }
.tk-d-st.ok { color: #0f6e63; } .tk-d-st.ok .tk-spin { display: none; }
.tk-d-st.ok::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #20a67f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat; }
.tk-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #d6e4f0; border-top-color: var(--blue); animation: tk-spin .9s linear infinite; flex: 0 0 auto; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
.tk-pad-code { display: flex; justify-content: center; gap: 14px; margin: .9rem 0 .7rem; }
.tk-pad-code span { width: 1.2em; height: 1.35em; display: inline-flex; align-items: center; justify-content: center; border-radius: .2em; background: #f4f8fc; border: 2px solid #dbe4ee; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8.5vh, 5rem); color: #163b5c; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.tk-pad-code span.cur { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.tk-pad-code span.on { background: #fff; }
.tk-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; margin: .8rem auto .2rem; }
.tk-key { min-height: clamp(62px, 9.6vh, 96px); border-radius: 18px; border: 1.5px solid #dbe4ee; background: #fff; color: #163b5c; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.4vh, 2.6rem); font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 rgba(28,51,72,.04), 0 4px 12px rgba(28,51,72,.07); transition: transform .1s, background .15s; touch-action: manipulation; }
.tk-key:active { transform: scale(.96); background: #eef5fb; }
.tk-key svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.tk-key.fn { color: #4d6478; }
.tk-key.ok { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); border-color: var(--blue); color: #fff; font-family: var(--ui); font-size: 1.1rem; font-weight: 700; box-shadow: 0 6px 16px rgba(47,158,216,.28); }
.tk-key.ok svg { width: 26px; height: 26px; stroke-width: 3; }
.tk-key.ok:disabled { background: #c9d9e6; border-color: #c9d9e6; box-shadow: none; }
.tk-d-sum { margin: 1rem auto 0; max-width: 560px; } .tk-d-sum ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: .4rem 0 0; padding: 0; list-style: none; }
.tk-d-sum li { padding: 7px 12px; border-radius: 99px; background: #f2f7fc; border: 1px solid #dbe4ee; font-weight: 600; font-size: .92rem; color: #163b5c; }
.tk-d-sum[hidden] { display: none; }
.tk-d-tip { margin: .5rem auto 0; max-width: 560px; padding: 10px 14px; border-radius: 12px; background: #fff8e8; color: #6b4e0a; font-size: .92rem; font-weight: 500; }
.tk-d-tip[hidden] { display: none; }
.tk-d-warn { width: 54px; height: 54px; margin: .4rem auto 0; display: block; fill: #fff3d6; stroke: #c98a12; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tk-d-note { display: none; margin: .7rem 0 0; font-weight: 600; color: #4d6478; }
.tk-duel-guest .tk-d-note { display: block; } .tk-duel-guest #tkAgain { display: none; }
.tk-toast { position: fixed; z-index: 70; left: 50%; top: 84px; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 99px; background: #163b5c; color: #fff; font-weight: 600; box-shadow: 0 10px 28px rgba(28,51,72,.28); animation: mem-fade .25s ease both; }
.tk-toast[hidden] { display: none; }
/* ===== huisstijl SlimmeKids School (zelfde als /school/sk-school-kaarten.css, Klokleren en Ballonrekenen) =====
   systeemletter (--ui), inkt #1c3348, lijnen #d5dee7 / #e6edf3, hoeken 8px (knoppen) en 10px (kaarten),
   geen zware schaduwen, kleine labels in hoofdletters (.7rem, .08em), hoofdknop = inkt. */
:root { --sk-line: #d5dee7; --sk-line2: #e6edf3; --sk-ink: #1c3348; --sk-ink-h: #274865; --sk-muted: #5b7084; --sk-sel: #eef7fd; --sk-sel-b: #2f9ed8; }
.mem-sc, .mem-done, .tk-duel-card { border-radius: 10px; border: 1px solid var(--sk-line); box-shadow: 0 12px 40px rgba(16,32,48,.18); }
.mem-sc-hero { background: #f7fafc; border-right: 1px solid var(--sk-line2); }
.tk-hero { border-radius: 8px; box-shadow: none; border: 1px solid var(--sk-line2); }
.mem-lbl, .mem-sc-lbl, .tk-duel-bar .lbl { font-family: var(--ui); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.mem-sc-sk, .tk-d-kick { font-family: var(--ui); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.mem-sc h1, .mem-sc h2, .mem-done h2, .tk-duel-card h2 { font-family: var(--ui); font-weight: 700; letter-spacing: -.01em; color: var(--sk-ink); }
/* hoofdtitel van het startscherm en de kleine titels in de keuzeknoppen: Fredoka 600, net als de School-hub */
.mem-sc .mem-sc-name { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
.mem-seg-b b, .mem-size b { font-weight: 600; }
/* knoppen */
.mem-btn { border-radius: 8px; border: 1px solid var(--sk-line); font-family: var(--ui); font-weight: 600; font-size: .95rem; box-shadow: none; }
.mem-btn:hover { filter: none; background: #f4f7fb; }
.mem-btn.primary, .mem-sc-go, .tk-key.ok { background: var(--sk-ink); border: 1px solid var(--sk-ink); color: #fff; box-shadow: none; border-radius: 8px; font-family: var(--ui); font-weight: 600; }
.mem-btn.primary:hover, .mem-sc-go:hover, .tk-key.ok:hover:not(:disabled) { background: var(--sk-ink-h); border-color: var(--sk-ink-h); filter: none; }
.mem-sc-go { font-size: 1.05rem; min-height: 52px; }
.mem-sc-go.wait { background: #8796a6; border-color: #8796a6; filter: none; }
.tk-key.ok:disabled { background: #c9d4df; border-color: #c9d4df; }
/* terug / verlaten onder een venster: klein, in hoofdletters, zonder kader */
.mem-btn.tk-back { min-height: 34px; padding: 0 12px; border: 0; background: transparent; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.mem-btn.tk-back:hover { background: #f4f7fb; color: var(--sk-ink); }
.mem-btn.tk-back:focus-visible { outline: 3px solid var(--sk-sel-b); outline-offset: 1px; }
/* keuzes: rustig kader, gekozen = lichtblauw met blauwe rand (zoals Klokleren), geen gloed */
.mem-seg-b, .mem-size, .mem-mode-b, .tk-subj, .tk-d-big, .tk-key { border: 1px solid var(--sk-line); border-radius: 8px; box-shadow: none; }
.mem-seg-b.on, .mem-size.on, .mem-mode-b.on, .tk-subj.on { border-color: var(--sk-sel-b); background: var(--sk-sel); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.mem-chip { border: 1px solid var(--sk-line); border-radius: 8px; font-weight: 600; }
.mem-chip.on { border-color: var(--sk-sel-b); background: var(--sk-sel); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.tk-subj svg { border-radius: 6px; }
.tk-d-big svg, .tk-rem svg { border-radius: 8px; }
.tk-d-big:hover { border-color: #9ccbe8; box-shadow: none; background: #fbfdff; }
.mem-name, .tk-d-name input { border: 1px solid var(--sk-line); border-radius: 8px; }
.tk-duel-btn { border: 1px solid var(--sk-line); border-radius: 8px; box-shadow: none; }
.tk-duel-bar { border-radius: 8px; border: 1px solid var(--sk-line); }
.tk-code-big span, .tk-pad-code span { border-radius: 8px; border: 1px solid var(--sk-line); box-shadow: none; font-family: var(--ui); font-weight: 700; }
.tk-pad-code span.cur { border-color: var(--sk-sel-b); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.tk-key { font-family: var(--ui); font-weight: 600; }
.tk-d-err, .tk-d-tip { border-radius: 8px; }
.tk-d-sum li { border-radius: 8px; }
.mem-rank li { border: 1px solid var(--sk-line); border-radius: 8px; }
.mem-done-btns { gap: .6rem; }
/* =================== Schaken =================== */
:root { --w: #f3ead8; --b: #26201c; --sch-side: 300px; }
.tk-sc-wide { grid-template-columns: minmax(300px, .8fr) 1.55fr; }
.mem-sc-go { width: 100%; }
.tk-duel-btn { width: 100%; margin-top: .6rem; display: flex; align-items: center; gap: .7rem; text-align: left; padding: .7rem .9rem; background: #fff; }
.tk-duel-btn svg { width: 30px; height: 30px; flex: 0 0 auto; }
.tk-duel-btn span { display: flex; flex-direction: column; } .tk-duel-btn b { font-size: .92rem; } .tk-duel-btn small { font-size: .78rem; font-weight: 500; color: var(--sk-muted); }
.go-duel { display: none; } body.tk-duel-host .go-duel { display: inline; } body.tk-duel-host .go-solo { display: none; }
body.tk-duel #rowMode, body.tk-duel #rowLvl, body.tk-duel #rowFlip { display: none; }
body.tk-duel-guest .mem-sc-pick > :not(.sch-sets):not(.sch-pk-own):not(#schSetNote) { }
.mem-name.sch-nm-w i { background: #f3ead8; box-shadow: inset 0 0 0 1.5px #b9a98d; } .mem-name.sch-nm-b i { background: #26201c; }
.mem-mode-b img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
.sch-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.sch-seg2 .mem-seg-b, .tk-seg3 .mem-seg-b, .tk-seg4 .mem-seg-b { min-height: 52px; }
.sch-seg2 .mem-seg-b small, .tk-seg3 .mem-seg-b small, .tk-seg4 .mem-seg-b small { white-space: normal; text-align: center; line-height: 1.15; }
.sch-seg5 { grid-template-columns: repeat(5, 1fr); }
.mem-seg-b:disabled { opacity: .45; cursor: default; }
.mem-sc-pick .mem-switch { margin: .2rem 0 .35rem; font-size: .86rem; font-weight: 600; }
.sch-sets { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.sch-set { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border: 1px solid var(--sk-line); border-radius: 8px; background: #fff; transition: border-color .15s, background .15s, transform .15s; }
.sch-set:hover { transform: translateY(-1px); }
.sch-set.on { border-color: var(--sk-sel-b); background: var(--sk-sel); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.sch-set .sw { position: relative; width: 100%; aspect-ratio: 1.6; border-radius: 6px; overflow: hidden; background: #ddd; }
.sch-set .sw canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sch-set .sw span { position: absolute; bottom: 4%; width: 50%; aspect-ratio: 1; background-repeat: no-repeat; background-size: 600% 200%; }
.sch-set .sw span.a { left: 2%; } .sch-set .sw span.b { right: 2%; }
.sch-set b { font-size: .84rem; font-weight: 700; margin-top: 3px; } .sch-set small { font-size: .66rem; font-weight: 600; color: var(--sk-muted); text-align: center; line-height: 1.15; }
.sch-note { margin: .2rem 0 0; font-size: .8rem; color: var(--sk-muted); }

/* speelveld */
.sch-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(220px, var(--sch-side)) minmax(0, 1fr) minmax(220px, var(--sch-side)); gap: 14px; padding: 12px 16px 16px; zoom: var(--ui-zoom, 1); }
.sch-board { position: relative; min-width: 0; min-height: 0; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, var(--bg1, #fff) 0%, var(--bg2, #d9cbb8) 100%); border: 1px solid var(--sk-line2); }
.sch-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.sch-2d .sch-board { background: transparent; border-color: transparent; }
.sch-load { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: #fff; border-radius: 8px; border: 1px solid var(--sk-line); font-weight: 600; }
.sch-side { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.sch-pl { padding: 12px 14px; background: #fff; border: 1px solid var(--sk-line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.sch-pl.on { border-color: var(--sk-sel-b); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.sch-pl-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sch-pl-ico { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.sch-pl-n { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sch-pl-c { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.sch-pl-name { font-size: 1.12rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-pl-turn { flex: 0 0 auto; padding: 4px 9px; border-radius: 8px; background: var(--sk-ink); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sch-clock { margin: 10px 0 0; padding: 6px 10px; border-radius: 8px; background: #f4f7fb; border: 1px solid var(--sk-line2); font: 700 1.9rem/1.1 var(--ui); font-variant-numeric: tabular-nums; text-align: center; color: var(--sk-ink); letter-spacing: .02em; }
.sch-pl.on .sch-clock { background: var(--sk-ink); color: #fff; border-color: var(--sk-ink); }
.sch-clock.low { color: #b4232a; } .sch-pl.on .sch-clock.low { background: #b4232a; border-color: #b4232a; color: #fff; }
.sch-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 0; min-height: 32px; margin-top: 8px; }
.sch-cap i { width: 28px; height: 28px; margin-right: -8px; background-repeat: no-repeat; background-size: 600% 200%; }
.sch-cap .adv { margin-left: 14px; font-size: .85rem; font-weight: 700; color: var(--sk-muted); }
.sch-cap .none { font-size: .8rem; color: var(--sk-muted); }
.sch-status { margin: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 1.15rem; font-weight: 700; color: var(--sk-ink); }
.sch-status.check { color: #b4232a; }
.sch-status .tk-spin { margin-right: 10px; }
.sch-lbl { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.sch-moves { flex: 1 1 auto; min-height: 80px; overflow-y: auto; background: #fff; border: 1px solid var(--sk-line); border-radius: 10px; padding: 6px 0; }
.sch-moves ol { list-style: none; margin: 0; padding: 0; }
.sch-moves li { display: grid; grid-template-columns: 2.6em 1fr 1fr; gap: 4px; padding: 3px 12px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.sch-moves li:nth-child(even) { background: #f7fafc; }
.sch-moves li .n { color: var(--sk-muted); font-weight: 600; }
.sch-moves li span { font-weight: 600; border-radius: 6px; padding: 0 4px; }
.sch-moves li span.cur { background: var(--sk-sel); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.sch-nomoves { margin: 8px 12px; color: var(--sk-muted); font-size: .9rem; }
.sch-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sch-acts .mem-btn { min-height: 46px; padding: 0 10px; font-size: .86rem; justify-content: flex-start; gap: 8px; text-align: left; line-height: 1.15; }
.sch-acts .mem-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sch-acts .mem-btn:disabled { opacity: .45; cursor: default; }
.sch-acts #btnHelp, .sch-acts .sch-new { grid-column: 1 / -1; }
.sch-viewsw { display: inline-flex; border: 1px solid var(--sk-line); border-radius: 8px; overflow: hidden; }
.sch-viewsw .mini { border: 0; border-radius: 0; min-width: 44px; font-weight: 700; }
.sch-viewsw .mini[aria-checked="true"] { background: var(--sk-ink); color: #fff; }
.sch-viewsw .mini:disabled { opacity: .45; }

/* promotie */
.sch-promo-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: .6rem; }
.sch-promo-opts button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--sk-line); border-radius: 8px; background: #fff; font-weight: 600; }
.sch-promo-opts button:hover { border-color: var(--sk-sel-b); background: var(--sk-sel); }
.sch-promo-opts i { width: 84px; height: 84px; background-repeat: no-repeat; background-size: 600% 200%; }
.sch-promo { width: min(560px, 100%); }

/* uitleg */
.sch-help { width: min(980px, 100%); max-height: calc(100% - 1rem); overflow-y: auto; text-align: left; }
.sch-help h2, .sch-help > .mem-done-sub { text-align: center; }
.sch-help-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: .4rem 0 .9rem; }
.sch-help-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border: 1px solid var(--sk-line); border-radius: 8px; background: #fff; font-weight: 600; font-size: .85rem; }
.sch-help-tabs button[aria-selected="true"] { border-color: var(--sk-sel-b); background: var(--sk-sel); box-shadow: inset 0 0 0 1px var(--sk-sel-b); }
.sch-help-tabs i { width: 54px; height: 54px; background-repeat: no-repeat; background-size: 600% 200%; }
.sch-help-body { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 20px; align-items: center; }
.sch-help-cv { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.sch-help-txt h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.sch-help-txt p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.sch-help-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 1rem; }
.sch-help-rules div { padding: 10px 12px; border: 1px solid var(--sk-line); border-radius: 10px; background: #fbfdff; }
.sch-help-rules b { display: block; margin-bottom: 4px; font-size: .95rem; }
.sch-help-rules p { margin: 0; font-size: .9rem; line-height: 1.5; color: #334b61; }
.sch-win-pc { width: 96px; height: 96px; object-fit: contain; }
.sch-win-stat { margin: -.4rem 0 1rem; color: var(--sk-muted); font-weight: 600; font-size: .9rem; }
.tk-d-note { display: none; } body.tk-duel-guest .tk-d-note { display: block; margin: 0 0 .8rem; color: var(--sk-muted); font-size: .9rem; }
body.tk-duel-guest #schAgain, body.tk-duel-guest #schChange { display: none; }
.mem-overlay.sch-soft { background: rgba(28,51,72,.14); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }

@media (max-width: 1500px) { :root { --sch-side: 260px; } .sch-sets { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1500px) { .sch-acts { grid-template-columns: 1fr; } } /* 21-11: geen afgebroken knoplabels (Bord draaien) tussen 1250 en 1500 px */
@media (max-width: 1250px) { :root { --sch-side: 230px; } .sch-main { gap: 10px; padding: 10px; } .sch-pl-name { font-size: 1rem; } .sch-clock { font-size: 1.5rem; } .sch-acts { grid-template-columns: 1fr; } .sch-acts .mem-btn { min-height: 40px; } }
@media (max-width: 1100px) { .sch-sets { grid-template-columns: repeat(3, 1fr); } .sch-help-body { grid-template-columns: 1fr; } .sch-help-cv { max-width: 300px; margin: 0 auto; } }
@media (max-height: 800px) { .sch-pl { padding: 8px 10px; } .sch-clock { font-size: 1.4rem; margin-top: 6px; } .sch-cap { min-height: 26px; } .sch-cap i { width: 24px; height: 24px; } .sch-acts .mem-btn { min-height: 38px; } }
@media (prefers-reduced-motion: reduce) { .sch-pl { transition: none; } }

.mem-mode-b .sch-mi { width: 44px; height: 44px; flex: 0 0 auto; background-repeat: no-repeat; background-size: 600% 200%; }
.sch-ci { display: inline-block; width: 30px; height: 30px; background-repeat: no-repeat; background-size: 600% 200%; }
.sch-ci-r { border-radius: 50%; width: 22px; height: 22px; margin: 4px; background: linear-gradient(90deg, #f3ead8 50%, #26201c 50%); box-shadow: inset 0 0 0 1.5px #8a7a62; }
#schColor .mem-seg-b { flex-direction: row; gap: 6px; }
.sch-right { padding-bottom: 52px; }
body:not(.sch-playing) .sch-main { visibility: visible; }

.sch-kids { margin-top: auto; text-decoration: none; color: inherit; } .sch-kids img { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
body.tk-duel .sch-kids { display: none; }
@media (max-width: 1250px) { .sch-acts .mem-btn { font-size: .82rem; gap: 6px; padding: 0 8px; } }

/* ===== Pling & Boem – kinderpiano met drums (openbaar). Speelveld op schermhoogte, uitleg eronder. © 2026 SlimmeKids ===== */
html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: auto; }
html.pb-lock, html.pb-lock body { height: 100%; overflow: hidden !important; overscroll-behavior: none; }
.app { position: relative; height: 100vh; height: 100svh; min-height: 340px; }
.app > .mem-overlay { position: fixed; }
:root { --pb-fr: #ff3ea5; --pb-fra: rgba(255,62,165,.55); --pb-case1: #2b3a6b; --pb-case2: #18214a; --pb-felt: #e8445a; }
.top .title .t-sk { color: #0f7f75; }
.mini svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pb-samen .pb-dot { width: 10px; height: 10px; border-radius: 50%; background: #c3ccd6; box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); }
.pb-samen.on { border-color: #9ed9b5; background: #effaf3; }
.pb-samen.on .pb-dot { background: #22b45a; box-shadow: 0 0 0 3px rgba(34,180,90,.2); }
.pb-samen.wait .pb-dot { background: #f4a524; animation: pb-blink 1s infinite; }
.pb-samen .pb-fr { display: none; width: 10px; height: 10px; border-radius: 3px; background: var(--pb-fr); }
.pb-samen.on .pb-fr { display: inline-block; }
@keyframes pb-blink { 50% { opacity: .35; } }
.sound-btn .sound-mark { width: 10px; height: 10px; border-radius: 50%; background: #22b45a; }
.sound-btn.off .sound-mark { background: #c3ccd6; }

/* ---------- speelveld ---------- */
.pb-main { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: var(--pb-gap, 12px); padding: var(--pb-gap, 12px) max(var(--pb-gap, 12px), env(safe-area-inset-right)) max(var(--pb-gap, 12px), env(safe-area-inset-bottom)) max(var(--pb-gap, 12px), env(safe-area-inset-left));
  background: radial-gradient(1200px 500px at 50% 110%, #e6eefb 0%, rgba(230,238,251,0) 70%), var(--paper); overflow: hidden; }
.pb-main, .pb-main * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.pb-pads, .pb-kbwrap { touch-action: none; }
.pb-inner { width: 100%; max-width: var(--pb-max, 1480px); margin: 0 auto; }

/* drumpads: glanzend, met licht van binnenuit */
.pb-pads { flex: 0 0 auto; display: grid; grid-template-columns: repeat(var(--pb-pcols, 8), 1fr); gap: var(--pb-pgap, 12px); padding: var(--pb-ppad, 12px); border-radius: 20px;
  background: linear-gradient(180deg, #2c3a66 0%, #1b2449 100%); box-shadow: 0 10px 0 #10173a, 0 18px 30px rgba(16,23,58,.28), inset 0 1px 0 rgba(255,255,255,.12); position: relative; z-index: 2; margin-bottom: 10px; }
.pb-pad { --pc: #ff6b6b; --pd: #c44; position: relative; height: var(--pb-ph, 92px); padding: 0; border: 0; border-radius: 16px; color: #fff; cursor: pointer; overflow: visible;
  background: radial-gradient(130% 90% at 50% 0%, color-mix(in srgb, var(--pc) 70%, #fff) 0%, var(--pc) 45%, var(--pd) 100%);
  box-shadow: 0 6px 0 var(--pd), 0 9px 14px rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.35);
  transform: translateY(0); transition: transform .14s cubic-bezier(.2,.9,.3,1.3), box-shadow .14s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pb-pad::before { content: ""; position: absolute; left: 8%; right: 8%; top: 5%; height: 42%; border-radius: 12px 12px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; z-index: 2; }
.pb-pad::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; box-shadow: 0 0 26px 6px var(--pc); opacity: 0; transition: opacity .35s; pointer-events: none; }
.pb-pad .pb-pg { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 70% at 50% 55%, rgba(255,255,255,.95) 0%, color-mix(in srgb, var(--pc) 60%, #fff) 35%, rgba(255,255,255,0) 75%); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 1; }
.pb-pad svg { position: relative; z-index: 3; width: var(--pb-pi, 34px); height: var(--pb-pi, 34px); fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)); }
.pb-pad b { position: relative; z-index: 3; font-family: var(--display); font-weight: 600; font-size: var(--pb-pf, 1rem); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.2); line-height: 1; }
.pb-pad.hit { transform: translateY(5px); box-shadow: 0 1px 0 var(--pd), 0 3px 6px rgba(0,0,0,.35), inset 0 -2px 0 rgba(0,0,0,.1), inset 0 2px 8px rgba(0,0,0,.18); transition-duration: .03s; }
.pb-pad.hit .pb-pg, .pb-pad.hit::after { opacity: 1; transition-duration: .03s; }
.pb-pad.fr::after { box-shadow: 0 0 0 4px var(--pb-fr), 0 0 26px 8px var(--pb-fr); }
.pb-pad.fr .pb-pg { background: radial-gradient(70% 70% at 50% 55%, rgba(255,255,255,.95) 0%, rgba(255,140,205,.9) 35%, rgba(255,62,165,0) 75%); }
.pb-pad:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pb-pad[data-pad=kick] { --pc: #ff5964; --pd: #b8243a; } .pb-pad[data-pad=snare] { --pc: #ff9f1c; --pd: #c4650a; }
.pb-pad[data-pad=hat] { --pc: #ffd23f; --pd: #c49a0e; } .pb-pad[data-pad=clap] { --pc: #3ddc84; --pd: #189b52; }
.pb-pad[data-pad=crash] { --pc: #22c3e6; --pd: #0d84a3; } .pb-pad[data-pad=tom] { --pc: #4d8dff; --pd: #2457c4; }
.pb-pad[data-pad=bell] { --pc: #9b6bff; --pd: #6334c9; } .pb-pad[data-pad=boing] { --pc: #ff6fd8; --pd: #c0349d; }
.pb-pad[data-pad=hat] b, .pb-pad[data-pad=hat] svg { color: #fff; }

/* bediening */
.pb-bar, .pb-player { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: var(--pb-bh, 50px); }
.pb-ctl { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--pb-bh, 50px); min-width: var(--pb-bh, 50px); padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 650; font-size: .92rem; box-shadow: 0 2px 0 #dfe6ee; white-space: nowrap; }
.pb-ctl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pb-ctl:active { transform: translateY(2px); box-shadow: none; }
.pb-ctl:disabled { opacity: .45; cursor: default; }
.pb-ctl.primary { background: var(--sk-ink, #1c3348); border-color: var(--sk-ink, #1c3348); color: #fff; box-shadow: 0 2px 0 #0e1d2b; }
.pb-inst i { width: 26px; height: 26px; display: inline-flex; } .pb-inst i svg { width: 26px; height: 26px; }
.pb-oct { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 #dfe6ee; overflow: hidden; }
.pb-oct button { border: 0; background: transparent; min-width: var(--pb-bh, 50px); min-height: var(--pb-bh, 50px); display: inline-flex; align-items: center; justify-content: center; }
.pb-oct button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pb-oct button:disabled { opacity: .3; }
.pb-oct span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 0 4px; font-weight: 700; font-size: .85rem; border-left: 1px solid #eef2f6; border-right: 1px solid #eef2f6; color: var(--muted); }
.pb-rec .rdot { width: 14px; height: 14px; border-radius: 50%; background: #e8445a; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.pb-rec.on { border-color: #f3a3ae; background: #fff1f3; color: #b4233a; }
.pb-rec.on .rdot { animation: pb-blink .9s infinite; }
.pb-spacer { flex: 1 1 auto; }
.pb-songs { background: linear-gradient(180deg, #fff 0%, #f6fbff 100%); }
.pb-songs .nt { color: #9b6bff; }

/* speler (liedjes en MIDI) */
.pb-player { padding: 0 6px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 2px 0 #dfe6ee; }
.pb-player .pb-ctl { box-shadow: none; border: 0; border-radius: 12px; }
.pl-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-info b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-prog { position: relative; height: 8px; border-radius: 99px; background: #e8eef5; overflow: hidden; cursor: pointer; }
.pl-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ff5964, #ff9f1c, #ffd23f, #3ddc84, #22c3e6, #4d8dff, #9b6bff); }
.pl-tempo { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.pl-tempo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-tempo input { width: 110px; accent-color: #1fb5a8; }
.pl-tempo output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.pl-mee { white-space: nowrap; font-size: .85rem; }
.pl-mee.dis { opacity: .4; pointer-events: none; }

/* piano: kast met diepte, toetsen met licht van binnenuit */
.pb-kbwrap { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: flex-end; justify-content: center; perspective: 1200px; perspective-origin: 50% 100%; }
.pb-case { position: relative; width: var(--pb-cw, 100%); transform: rotateX(var(--pb-tilt, 12deg)); transform-origin: 50% 100%; padding: var(--pb-ct, 34px) var(--pb-cs, 14px) var(--pb-cb, 16px); border-radius: 22px 22px 26px 26px;
  background: linear-gradient(180deg, var(--pb-case1) 0%, var(--pb-case2) 100%);
  box-shadow: 0 14px 0 #0e1433, 0 26px 40px rgba(14,20,51,.35), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.25); }
.pb-case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)); pointer-events: none; }
.pb-case-top { position: absolute; left: var(--pb-cs, 14px); right: var(--pb-cs, 14px); top: 0; height: var(--pb-ct, 34px); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-logo { font-family: var(--display); font-weight: 600; font-size: calc(var(--pb-ct, 34px) * .5); color: #fff; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.25); white-space: nowrap; }
.pb-logo span { color: #ffd23f; }
.pb-leds { display: flex; gap: 6px; }
.pb-leds i { width: 9px; height: 9px; border-radius: 50%; background: #3a4777; box-shadow: inset 0 1px 1px rgba(0,0,0,.4); transition: background .4s, box-shadow .4s; }
.pb-leds i.on { background: var(--lc); box-shadow: 0 0 10px 2px var(--lc); transition-duration: .03s; }
.pb-grill { display: flex; gap: 4px; opacity: .55; } .pb-grill i { width: 4px; height: 4px; border-radius: 50%; background: #0c1230; box-shadow: 0 1px 0 rgba(255,255,255,.12); }
.pb-felt { position: absolute; left: var(--pb-cs, 14px); right: var(--pb-cs, 14px); top: calc(var(--pb-ct, 34px) - 6px); height: 6px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ff6b7d, var(--pb-felt)); }
.pb-kb { position: relative; height: var(--pb-kh, 260px); touch-action: none; }
.pb-k { position: absolute; top: 0; box-sizing: border-box; cursor: pointer; will-change: transform; transform-origin: 50% 0%; transition: transform .16s cubic-bezier(.3,.9,.4,1.2); }
.pb-k.w { height: 100%; z-index: 1; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, #e9eef5 0%, #fff 9%, #fdfdff 72%, #eef2f8 100%); box-shadow: inset 1px 0 0 #fff, inset -1px 0 0 #cfd8e3, 0 1px 0 #bfcad8; border-left: 1px solid #c3cddb; }
.pb-k.w::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, #dfe6ef, #b9c5d4); transform-origin: 50% 0%; transition: transform .16s; box-shadow: 0 4px 6px rgba(10,16,40,.35); }
.pb-k.b { height: 62%; z-index: 3; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #11141b 0%, #2c313d 70%, #3d4352 92%, #1d212a 100%); box-shadow: inset 0 -6px 0 #0b0d12, inset 2px 0 0 rgba(255,255,255,.08), inset -2px 0 0 rgba(0,0,0,.4), 2px 4px 6px rgba(0,0,0,.45); }
.pb-k.b::after { content: ""; position: absolute; left: 12%; right: 12%; top: 3%; height: 55%; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); pointer-events: none; }
/* licht IN de toets */
.pb-g { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s ease-out; z-index: 1; }
.pb-k.w .pb-g { background: radial-gradient(90% 55% at 50% 82%, var(--gl, #fff) 0%, var(--gc) 32%, var(--gca) 62%, rgba(255,255,255,0) 100%); box-shadow: inset 0 0 18px 2px var(--gca), inset 0 -10px 22px var(--gc); }
.pb-k.b .pb-g { background: radial-gradient(90% 60% at 50% 75%, var(--gl, #fff) 0%, var(--gc) 30%, var(--gca) 70%, rgba(0,0,0,0) 100%); box-shadow: inset 0 0 12px 2px var(--gc); }
.pb-k::before { content: ""; position: absolute; left: -4px; right: -4px; top: 30%; bottom: -12px; border-radius: 12px; box-shadow: 0 0 26px 6px var(--gca); opacity: 0; transition: opacity .45s; pointer-events: none; z-index: 0; }
.pb-k.on .pb-g, .pb-k.on::before { opacity: 1; transition-duration: .025s; }
.pb-k.w.down { transform: translateY(3px) rotateX(-4deg); background: linear-gradient(180deg, #dfe6ef 0%, #f3f6fa 12%, #f6f8fb 72%, #e6ebf2 100%); box-shadow: inset 1px 0 0 #fff, inset -1px 0 0 #c7d1dd, inset 0 6px 10px rgba(30,45,80,.18); transition-duration: .03s; }
.pb-k.w.down::after { transform: scaleY(.35); transition-duration: .03s; }
.pb-k.b.down { transform: translateY(2px) rotateX(-5deg); box-shadow: inset 0 -2px 0 #0b0d12, inset 0 4px 6px rgba(0,0,0,.5), 1px 1px 2px rgba(0,0,0,.4); transition-duration: .03s; }
.pb-k.fr { --gc: var(--pb-fr) !important; --gca: var(--pb-fra) !important; }
.pb-k .pb-frb { position: absolute; left: 50%; top: 10%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--pb-fr); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 12px var(--pb-fr); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; z-index: 4; pointer-events: none; }
.pb-k.fr .pb-frb { opacity: 1; transform: scale(1); transition-duration: .05s; }
.pb-k.b .pb-frb { width: 12px; height: 12px; margin-left: -6px; }
/* regenboogstrook en notennamen */
.pb-k.w .pb-strip { position: absolute; left: 14%; right: 14%; bottom: 7px; height: 7px; border-radius: 4px; background: var(--c); opacity: .9; z-index: 2; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.pb-k.b .pb-strip { position: absolute; left: 22%; right: 22%; bottom: 9px; height: 5px; border-radius: 3px; background: var(--c); opacity: .85; z-index: 2; }
body.pb-nocol .pb-strip { display: none; }
.pb-lbl { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(.72rem, calc(var(--pb-kw, 60px) * .26), 1.15rem); color: var(--cd); z-index: 3; pointer-events: none; line-height: 1; }
.pb-k.b .pb-lbl { color: #fff; bottom: 18px; font-size: clamp(.6rem, calc(var(--pb-kw, 60px) * .18), .85rem); opacity: .85; }
body.pb-nolbl .pb-lbl { display: none; }
.pb-k.w.c0 .pb-cmark { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font-size: .62rem; font-weight: 700; color: #a2afbf; pointer-events: none; }
/* meespelen: deze toets moet je spelen */
.pb-k.hint .pb-g { opacity: .85; animation: pb-hint 1s ease-in-out infinite; transition: none; }
.pb-k.hint::before { opacity: .9; animation: pb-hint 1s ease-in-out infinite; }
.pb-k.hint .pb-star { opacity: 1; animation: pb-bob .8s ease-in-out infinite; }
.pb-star { position: absolute; left: 50%; top: 18%; width: 26px; height: 26px; margin-left: -13px; opacity: 0; z-index: 5; pointer-events: none; fill: #ffd23f; stroke: #c48a00; stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(255,210,63,.9)); }
.pb-k.b .pb-star { width: 18px; height: 18px; margin-left: -9px; }
@keyframes pb-hint { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes pb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* noten buiten beeld */
.pb-edge { position: absolute; top: 50%; width: 34px; height: 64px; margin-top: -32px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 6; }
.pb-edge svg { width: 22px; height: 22px; fill: none; stroke: var(--ec, #9b6bff); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pb-edge.l { left: 0; } .pb-edge.r { right: 0; }
.pb-edge.on { opacity: 1; transition-duration: .03s; }
/* zwevende noten */
.pb-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 7; }
.pb-fx svg { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; animation: pb-float 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes pb-float { 0% { transform: translate(0, 0) scale(.5) rotate(0); opacity: 0; } 15% { opacity: 1; transform: translate(0, -14px) scale(1.1) rotate(-6deg); } 100% { transform: translate(var(--dx, 10px), -110px) scale(.9) rotate(12deg); opacity: 0; } }
.pb-rot { position: absolute; left: 50%; top: 0; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 650; color: var(--muted); white-space: nowrap; z-index: 6; box-shadow: 0 4px 12px rgba(28,51,72,.1); }
.pb-rot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pb-rot button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; }
.pb-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; padding: 10px 16px; border-radius: 12px; background: var(--sk-ink, #1c3348); color: #fff; font-weight: 650; font-size: .92rem; box-shadow: 0 10px 30px rgba(16,32,48,.3); max-width: calc(100% - 24px); text-align: center; animation: mem-up .3s both; pointer-events: none; }
.pb-coach { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 6; margin: 0; padding: 6px 14px; border-radius: 99px; background: #fff7d6; border: 1px solid #f1d77a; color: #6b5200; font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: 0 4px 12px rgba(107,82,0,.12); }
.pb-coach.ok { background: #e8f9ef; border-color: #9ed9b5; color: #17663a; }

/* ---------- vensters ---------- */
.pb-ov .mem-done { position: relative; display: flex; flex-direction: column; max-height: calc(100svh - 2rem); text-align: left; padding: 1rem 1.2rem 1.2rem; }
.pb-ov-bar { position: sticky; top: 0; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 .3rem; z-index: 3; background: #fff; }
.pb-ov-bar h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.pb-x { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; padding: 0; border: 1px solid var(--sk-line, #d5dee7); border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(28,51,72,.12); cursor: pointer; }
.pb-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pb-ov-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.pb-ov-body h3 { margin: 1rem 0 .45rem; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pb-ov-body p { margin: .3rem 0 .6rem; line-height: 1.5; }
.pb-wide { width: min(760px, 100%) !important; }
.pb-songlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pb-song { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pb-song .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--sc, #4d8dff); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.pb-song .ic svg { width: 26px; height: 26px; fill: #fff; }
.pb-song .tx { flex: 1 1 auto; min-width: 0; }
.pb-song .tx b { display: block; font-size: .92rem; line-height: 1.2; }
.pb-song .tx small { color: var(--muted); font-size: .76rem; }
.pb-song .bt { display: flex; flex-direction: column; gap: 4px; }
.pb-song .bt button { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 650; font-size: .8rem; white-space: nowrap; }
.pb-song .bt button.mee { background: var(--sk-ink, #1c3348); border-color: var(--sk-ink, #1c3348); color: #fff; }
.pb-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 2px dashed #c7d3df; border-radius: 14px; background: #f8fbfe; }
.pb-file.drag { border-color: #1fb5a8; background: #effaf8; }
.pb-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pb-file small { flex: 1 1 220px; color: var(--muted); }
.pb-err { margin: .5rem 0 0; padding: 8px 12px; border-radius: 10px; background: #fff1f3; border: 1px solid #f3b9c2; color: #9b1c31; font-weight: 600; font-size: .88rem; }
.pb-insts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pb-insts button, .pb-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 650; font-size: .85rem; }
.pb-insts button svg { width: 40px; height: 40px; }
.pb-insts button.on, .pb-seg button.on { border-color: var(--sk-sel-b, #2f9ed8); background: var(--sk-sel, #eef7fd); box-shadow: inset 0 0 0 1px var(--sk-sel-b, #2f9ed8); }
.pb-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pb-seg button { min-height: 52px; }
.pb-vol { display: flex; align-items: center; gap: 10px; } .pb-vol input { flex: 1; accent-color: #1fb5a8; }
.pb-help ul { margin: .2rem 0 .6rem; padding-left: 1.2rem; line-height: 1.55; } .pb-help li { margin: .15rem 0; }
.pb-help kbd { display: inline-block; min-width: 1.6em; padding: 0 .3em; border: 1px solid #cfd8e2; border-bottom-width: 2px; border-radius: 5px; background: #f8fafc; font: 600 .8rem var(--ui); text-align: center; }
.zm-mlist { display: flex; flex-direction: column; gap: 6px; }
.zm-mlist a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--sk-line, #d5dee7); border-radius: 8px; background: #fff; color: var(--sk-ink, #1c3348); font-weight: 600; text-decoration: none; }
.zm-mlist a:hover { background: #f4f7fb; }
.zm-mlist svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--sk-muted, #5b7084); }
/* startscherm */
.pb-start .mem-done { width: min(560px, 100%); text-align: center; padding: 0 0 1.2rem; overflow: hidden auto; }
.pb-hero { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: #1b2449; }
.pb-start .mem-sc-sk { margin: 1rem 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pb-start h2 { margin: .1rem 0 .3rem; font-family: var(--display); font-weight: 600; font-size: 2rem; }
.pb-start h2 span { color: #ff9f1c; }
.pb-start p.sub { margin: 0 1.2rem .9rem; color: var(--muted); line-height: 1.45; }
.pb-start .btns { display: flex; flex-direction: column; gap: 8px; padding: 0 1.2rem; }
.pb-go { min-height: 58px !important; font-size: 1.15rem !important; }
.pb-go svg { width: 24px; height: 24px; }
/* samen spelen (hergebruik code-schermen) */
.tk-duel-card { text-align: center; }
.tk-d-name { display: flex; flex-direction: column; gap: 4px; text-align: left; font-weight: 650; font-size: .85rem; margin: .4rem 0 .6rem; }
.tk-d-name input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 600 1rem var(--ui); color: var(--ink); -webkit-user-select: text; user-select: text; }
.pb-ov input, .pb-ov textarea { -webkit-user-select: text; user-select: text; }
.pb-latency { font-size: .8rem; color: var(--muted); }

/* ---------- uitleg onder het spel ---------- */
.seo { position: relative; z-index: 3; background: #fff; color: var(--ink); border-top: 1px solid var(--line); -webkit-user-select: text; user-select: text; }
.seo-in { max-width: 800px; margin: 0 auto; padding: 44px 20px 28px; line-height: 1.65; }
.seo-kicker { margin: 0 0 .2rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seo h1 { margin: 0 0 .5rem; font-family: var(--ui); font-size: 1.7rem; font-weight: 650; color: var(--ink); letter-spacing: -.015em; line-height: 1.25; white-space: normal; }
.seo h2 { margin: 2.2rem 0 .5rem; font-size: 1.3rem; font-weight: 650; line-height: 1.25; }
.seo h3 { margin: 1.4rem 0 .3rem; font-size: 1.05rem; font-weight: 650; }
.seo ul { padding-left: 1.3rem; } .seo li { margin: .25rem 0; }
.seo a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.seo figure { margin: 1.4rem 0; } .seo figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.seo figcaption { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.seo-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: .8rem 0 0; padding: 0; list-style: none; }
.seo-games a { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 650; }
.seo-games a small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 2px; }
.seo-faq { max-width: 1080px; margin: 0 auto; padding: 6px 20px 70px; line-height: 1.6; }
.seo .seo-faq-h { text-align: center; margin: 0 0 1rem; }
.faq { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; align-items: start; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 14px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 600; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 1rem; }
.faq details p { margin: 0 0 12px; }
.seo-foot { border-top: 1px solid #eef2f6; padding: 16px 20px 24px; text-align: center; font-size: .8rem; color: var(--muted); }
.seo-foot a { color: var(--muted); }

/* ---------- formaten ---------- */
.lbl-s { display: none; }
body.pb-compact .top { padding-top: calc(.3rem + env(safe-area-inset-top)); padding-bottom: .3rem; gap: .5rem; }
body.pb-compact .brand img { height: 28px; }
body.pb-compact .kicker { display: none; }
body.pb-compact .mini { min-height: 40px; min-width: 40px; padding: 0 .6rem; }
body.pb-narrow .title { display: none; }
body.pb-mid .kicker { display: none; }
body.pb-mid .mini .lbl { display: none; }
body.pb-mid .title { padding-left: .6rem; }
body.pb-narrow .tools { margin-left: auto; }
body.pb-narrow .mini .lbl { display: none; }
body.pb-narrow .pb-ctl .lbl { display: none; }
body.pb-narrow .pb-ctl .lbl-s { display: inline; font-size: .78rem; }
body.pb-narrow .pb-ctl { padding: 0 10px; }
body.pb-narrow .pb-oct span { min-width: 40px; font-size: .78rem; }
body.pb-narrow .pl-tempo .tl, body.pb-narrow .pl-tempo output { display: none; }
body.pb-narrow .pl-tempo input { width: 70px; }
body.pb-phone .pb-pads { border-radius: 16px; box-shadow: 0 7px 0 #10173a, 0 12px 20px rgba(16,23,58,.25); margin-bottom: 7px; }
body.pb-phone .pb-pad { border-radius: 13px; }
body.pb-phone .pb-case { border-radius: 16px 16px 18px 18px; box-shadow: 0 9px 0 #0e1433, 0 16px 24px rgba(14,20,51,.3); }
body.pb-portrait .pl-mee .lbl { display: none; }
body.pb-low .mini .lbl { display: none; }
body.pb-low .top { padding-top: calc(.2rem + env(safe-area-inset-top)); padding-bottom: .2rem; }
body.pb-low .mini { min-height: 36px; min-width: 36px; }
body.pb-low .brand img { height: 26px; }
body.pb-low .game-title { font-size: 1.05rem; }
body.pb-low .pl-tempo .tl { display: none; }
.pb-oct span { white-space: nowrap; }
body.pb-narrow.pb-portrait .pb-oct span { display: none; }
body.pb-low .pb-player { flex-wrap: nowrap; }
@media (hover: hover) { .pb-ctl:hover, .pb-oct button:hover { background: #f6f9fc; } .pb-ctl.primary:hover { background: var(--sk-ink-h, #274865); } }
@media (prefers-reduced-motion: reduce) { .pb-fx { display: none; } .pb-k.hint .pb-g, .pb-k.hint::before, .pb-k.hint .pb-star { animation: none; } }

/* startscherm op een liggende gsm: plaatje links, knoppen rechts, alles in beeld */
@media (max-height: 520px) {
  .pb-start .mem-done { width: min(760px, 100%); display: grid; grid-template-columns: 42% 1fr; grid-template-rows: auto auto auto 1fr; align-items: start; padding: 0; text-align: left; max-height: calc(100dvh - 24px); }
  .pb-start .pb-hero { grid-row: 1 / 5; height: 100%; min-height: 100%; aspect-ratio: auto; object-position: 30% 50%; }
  .pb-start .mem-sc-sk { margin: .8rem 1rem 0; }
  .pb-start h2 { margin: 0 1rem .15rem; font-size: 1.55rem; }
  .pb-start p.sub { margin: 0 1rem .55rem; font-size: .86rem; line-height: 1.35; }
  .pb-start .btns { padding: 0 1rem .9rem; gap: 6px; }
  .pb-start .btns .mem-btn { min-height: 40px; padding-top: .45rem; padding-bottom: .45rem; font-size: .92rem; }
}
@media (max-height: 340px) { .pb-start p.sub { display: none; } }

/* rij met knoppenbalk / speler + (in speelstand) de systeemknoppen */
.pb-row { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.pb-row > .pb-bar, .pb-row > .pb-player { flex: 1 1 auto; min-width: 0; }
.pb-dock { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.pb-dock .mini { min-height: var(--pb-bh, 38px); min-width: var(--pb-bh, 38px); }
.pb-dock .mini .lbl { display: none; }
.pb-fs svg { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.pb-fs.on svg { transform: rotate(180deg); }

/* speelstand op een liggende gsm: geen kopbalk, alles op één scherm, rekening met de notch */
body.pb-play .top { display: none; }
body.pb-play .pb-main { padding-top: max(var(--pb-gap, 7px), env(safe-area-inset-top)); }
body.pb-play .pb-dock .pb-samen { padding-left: 10px; padding-right: 12px; }

/* vriendelijke draai-tip met bewegende telefoon */
.pb-rot { padding: 5px 5px 5px 8px; gap: 8px; font-size: .84rem; color: var(--sk-ink, #1c3348); background: linear-gradient(180deg, #fff, #f5f8ff); border-color: #d9e2f3; }
.pb-rot-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: linear-gradient(160deg, #ffd23f, #ff9f1c); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.pb-rot-ic svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke: #1c3348; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pb-rot-ic .ph { transform-origin: 20px 20px; animation: pb-rotph 2.6s cubic-bezier(.6,0,.3,1) infinite; }
.pb-rot-ic .ph rect:first-child { fill: #fff; }
.pb-rot-ic .sc { fill: #7cd6ff; stroke: none; }
.pb-rot-ic .ar { stroke: #1c3348; animation: pb-rotar 2.6s ease-in-out infinite; }
@keyframes pb-rotph { 0%, 18% { transform: rotate(0deg); } 45%, 78% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
@keyframes pb-rotar { 0%, 15% { opacity: 0; } 25%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pb-rot-ic .ph, .pb-rot-ic .ar { animation: none; } .pb-rot-ic .ar { opacity: 1; } }

/* speelstand + liedje: compacte spelerbalk zodat alles naast de systeemknoppen past */
body.pb-play .pb-player { gap: 4px; }
body.pb-play #plTime { display: none; }
body.pb-play .pl-tempo output, body.pb-play .pl-tempo .tl { display: none; }
body.pb-play .pl-tempo input { width: 64px; }
body.pb-play .pl-mee .lbl { display: none; }
body.pb-play .pl-mee .lbl-s { display: inline; font-size: .8rem; font-weight: 650; }
body.pb-play .pb-player .pb-ctl { min-width: 36px; padding-left: 6px; padding-right: 6px; }
body.pb-play.pb-narrow .pb-dock .pb-samen #pbSamenT { display: none; }
body.pb-play.pb-narrow .pb-dock .pb-samen { padding-left: 0; padding-right: 0; justify-content: center; }
body.pb-play.pb-narrow .pb-dock { gap: 4px; }
body.pb-play.pb-narrow .pb-dock .mini { min-width: 36px; padding-left: 0; padding-right: 0; }
.pb-samen-ic { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.pb-play.pb-narrow .pb-dock .pb-samen { position: relative; min-width: 44px; }
body.pb-play.pb-narrow .pb-dock .pb-samen-ic { display: block; }
body.pb-play.pb-narrow .pb-dock .pb-samen .pb-dot { position: absolute; top: 5px; right: 5px; margin: 0; }

/* menu: samen spelen-items */
.zm-mlist .pb-mhead { margin: 6px 2px 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5b7084); }
.zm-mlist .pb-mhead:first-child { margin-top: 0; }
.zm-mlist .pb-mi { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; border: 1px solid #bfe9e3; border-radius: 8px; background: #f2fbf9; color: var(--sk-ink, #1c3348); font: inherit; font-weight: 650; text-align: left; cursor: pointer; width: 100%; }
.zm-mlist .pb-mi:hover { background: #e6f7f4; }
.zm-mlist .pb-mi svg { color: #0f7f75; }
.zm-mlist .pb-mi small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted, #5b7084); }
.zm-mlist .pb-mi[hidden] { display: none; }

/* Rood ✕ rechtsonder – zelfde maat, plek en stijl als op de andere SlimmeKids-spellen (44×44 px, 12 px uit de hoek).
   Venster open: sluit het venster. Geen venster: terug naar de spelletjes. */
.close-x { -webkit-appearance: none; appearance: none; box-sizing: border-box; position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.28) 0, transparent 42%), linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
  color: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 20px; font-weight: 300; line-height: 1; text-decoration: none; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(220,38,38,.4), 0 1px 0 rgba(255,255,255,.28) inset; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.close-x:hover, .close-x:focus-visible { filter: brightness(1.08); color: #fff; text-decoration: none; }
.close-x:active { filter: brightness(1.08); transform: scale(.96); color: #fff; }
.pb-kbwrap { padding: 0 var(--pb-xr, 0px) var(--pb-xb, 0px) 0; }
/* vensters houden de hoek rechtsonder vrij voor het kruisje */
@media (orientation: landscape) { .pb-ov { padding-left: 64px; padding-right: 64px; } }
@media (orientation: portrait) { .pb-ov { padding-bottom: 68px; } .pb-ov .mem-done { max-height: calc(100svh - 68px - 1rem); } }

/* grootte-schuif: in de instellingen en (brede schermen) rechtsboven in de kopbalk */
.pb-size { display: flex; align-items: center; gap: 10px; }
.pb-size input { flex: 1 1 auto; accent-color: #1fb5a8; min-width: 0; }
.pb-size .pb-ctl { min-width: 44px; min-height: 44px; font-size: 1.3rem; font-weight: 700; justify-content: center; }
.pb-size output { min-width: 3.2em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.pb-zoom { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line, #d5dee7); border-radius: 12px; background: #fff; color: var(--muted, #5b7084); }
.pb-zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pb-zoom svg.sm { width: 15px; height: 15px; }
.pb-zoom input { width: 96px; accent-color: #1fb5a8; }
body.pb-mid .pb-zoom, body.pb-play .pb-zoom, body.pb-low .pb-zoom { display: none; }
/* Liedjes per categorie (Kinderliedjes / Sinterklaas) */
.pb-scat { grid-column: 1 / -1; margin: 6px 2px 0; font-weight: 750; font-size: .82rem; letter-spacing: .02em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pb-scat:first-child { margin-top: 0; }
.pb-scat.sint { color: #c8102e; }
.pb-scat.sint::before { content: ""; width: 14px; height: 16px; background: linear-gradient(180deg, #e8445a 0 62%, #ffd23f 62% 72%, #e8445a 72%); clip-path: polygon(50% 0, 100% 70%, 100% 100%, 0 100%, 0 70%); border-radius: 2px; }
/* Intro: startkaart ligt alleen over het spel, de uitlegtekst eronder blijft leesbaar en scrollbaar */
.app > #pbStart.mem-overlay { position: absolute; }
/* Speelstand (zoals Atlas Agent): geen uitlegtekst, geen scroll, geen zoom – alleen de grootte-schuif maakt de piano groter */
html.pb-playing, html.pb-playing body { height: 100%; overflow: hidden !important; overscroll-behavior: none; }
html.pb-playing .seo { display: none !important; }
html.pb-playing .app { touch-action: none; }
html.pb-playing .app .mem-overlay, html.pb-playing .app .pb-ov-body { touch-action: pan-y; }
@media (pointer: coarse) { .app input, .app textarea, .app select { font-size: max(16px, 1em); } }
/* Iframe: alleen het spel */
html.sk-embed .seo, html.sk-embed .top { display: none !important; }
/* Watermerk op de pianokast */
.pb-case { position: relative; }
.pb-case .pb-wm { left: auto; right: 16px; bottom: auto; top: 8px; color: rgba(255,255,255,.5); }
/* Insluiten-venster */
.pb-embed-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.pb-embed-ok { color: #15803d; font-weight: 650; font-size: .85rem; }
.pb-embed-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.pb-song .tx b { overflow-wrap: anywhere; hyphens: auto; }
/* Gsm liggend (speelstand): hoogte = echte zichtbare hoogte; slanke drumrij, slanke knoppenbalk, groot klavier */
body.pb-play .app { height: var(--pb-vh, 100svh); min-height: 0; }
body.pb-play.pb-phone .pb-pads { padding: 5px 6px; margin-bottom: 5px; box-shadow: 0 4px 0 #10173a, 0 7px 12px rgba(16,23,58,.22); border-radius: 12px; }
body.pb-play.pb-phone .pb-pad { border-radius: 9px; }
body.pb-play.pb-phone .pb-pad .ic svg, body.pb-play.pb-phone .pb-pad svg { max-height: calc(var(--pb-ph, 40px) * .42); }
body.pb-play.pb-phone .pb-ctl { padding: 0 8px; border-radius: 10px; }
body.pb-play.pb-phone .pb-ctl svg { width: 18px; height: 18px; }
body.pb-play.pb-phone .pb-case { box-shadow: 0 5px 0 #0e1433, 0 9px 14px rgba(14,20,51,.28); border-radius: 12px 12px 14px 14px; }
body.pb-play.pb-phone .pb-case-top .pb-grill, body.pb-play.pb-phone .pb-case-top .pb-leds { display: none; }
body.pb-play.pb-phone .pb-case .pb-wm { top: 2px; font-size: 8px; }
body.pb-play.pb-phone .pb-logo { font-size: 10px; line-height: 1; }

/* Computer/tablet: instrument schaalt evenredig (schuif) en staat verticaal in het midden */
body.pb-fit .pb-main { justify-content: center; }
body.pb-fit .pb-kbwrap { flex: 0 0 auto; }
body.pb-fit .pb-inner { width: var(--pb-max, 100%); max-width: 100%; }
/* Kopbalk: knoppen, dan volledig scherm, titel helemaal rechtsboven (zoals de schoolapps) */
.top .tools { margin-left: auto; }
.top .title { margin-left: 0; order: 9; }
.top .pb-fsh svg { width: 20px; height: 20px; }
.top .pb-fsh .ic-out, .top .pb-fsh.on .ic-in { display: none; }
.top .pb-fsh.on .ic-out { display: block; }
.top .pb-fsh:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding-left: .5rem; padding-right: .5rem; }
body.pb-fs .top { padding-top: .35rem; }
/* Code-vakjes (samen spelen): cijfers precies in het midden */
.tk-code-big span { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.tk-pad-code span { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1; }
body.pb-fit .pb-row, body.pb-fit .pb-pads { position: relative; z-index: 3; }
body.pb-fit .pb-kbwrap { pointer-events: none; }
body.pb-fit .pb-kbwrap > * { pointer-events: auto; }
/* Gsm dwars: rood kruisje echt in de hoek (in de veilige zone naast notch/home-balk) */
body.pb-play.pb-phone .close-x { right: max(8px, calc(env(safe-area-inset-right) - 24px)); bottom: max(6px, calc(env(safe-area-inset-bottom) - 10px)); width: 40px; height: 40px; }
/* Uitleg 'Zet op beginscherm' (iPhone) */
.pb-a2hs { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 10px; }
.pb-a2hs li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--sk-line, #dbe4ee); border-radius: 12px; background: #f8fafc; line-height: 1.35; }
.pb-a2hs .n { flex: 0 0 28px; height: 28px; border-radius: 14px; background: #7c3aed; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pb-a2hs svg { width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.pb-app .pb-fs, html.pb-app .pb-fsh { display: none !important; }
/* iPhone: 'veeg omhoog' om Safari's balken weg te krijgen (spel blijft stil staan, pagina scrolt eronder) */
html.pb-iosswipe, html.pb-iosswipe body { height: auto !important; overflow: visible !important; overscroll-behavior: auto; }
html.pb-iosswipe .app { position: fixed; left: 0; right: 0; top: 0; }
#pbSwipeSp { display: none; }
html.pb-iosswipe #pbSwipeSp { display: block; width: 1px; height: 300vh; }
.pb-swipe { position: fixed; inset: 0; z-index: 58; display: flex; align-items: center; justify-content: center; background: rgba(10, 20, 40, .28); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.pb-swipe[hidden] { display: none; }
.pb-swipe-b { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 99px; background: rgba(255,255,255,.96); color: #1c3348; font: 650 1rem/1.2 system-ui, -apple-system, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
.pb-swipe-ic { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(160deg, #8b5cf6, #ec4899); display: inline-flex; align-items: center; justify-content: center; }
.pb-swipe-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: pb-swup 1.3s ease-in-out infinite; }
@keyframes pb-swup { 0% { transform: translateY(6px); opacity: .3; } 50% { transform: translateY(-4px); opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pb-swipe-ic svg { animation: none; } }
/* Gsm: drumknoppen los op de gewone achtergrond (geen donker paneel) */
body.pb-phone .pb-pads, body.pb-play.pb-phone .pb-pads { background: none; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
/* t202u: Speel mee-ster duidelijk: lager op de witte toets (onder de zwarte toetsen, boven de naam), groter, donkere rand, gloed, zachte puls */
.pb-k .pb-star { --ss: clamp(24px, calc(var(--pb-kw, 60px) * .66), 52px); width: var(--ss); height: var(--ss); margin-left: calc(var(--ss) / -2); top: auto; bottom: calc(26px + var(--pb-kw, 60px) * .3);
  fill: #ffcc1a; stroke: #7a4b00; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 7px rgba(255,186,0,.95)) drop-shadow(0 2px 2px rgba(60,35,0,.35)); transform-origin: 50% 55%; }
body.pb-nolbl .pb-k.w .pb-star { bottom: 22px; }
.pb-k.b .pb-star { --ss: clamp(18px, calc(var(--pb-kw, 60px) * .5), 34px); bottom: calc(var(--pb-kw, 60px) * .18 + 26px); }
.pb-k.hint .pb-star { animation: pb-star 1s ease-in-out infinite; }
@keyframes pb-star { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
/* Samen meespelen: begeleiding = blauwe sterren; volgende noot van het maatje = doorzichtige ster in diens kleur */
body.pb-duo-acc .pb-k .pb-star { fill: #4da3ff; stroke: #0b3a7a; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 7px rgba(56,140,255,.95)) drop-shadow(0 2px 2px rgba(0,20,60,.35)); }
.pb-k.hint2 .pb-star { opacity: .5; animation: none; transform: scale(.82); fill: #4da3ff; stroke: #0b3a7a; filter: drop-shadow(0 0 4px rgba(56,140,255,.7)); }
body.pb-duo-acc .pb-k.hint2 .pb-star { fill: #ffcc1a; stroke: #7a4b00; filter: drop-shadow(0 0 4px rgba(255,186,0,.7)); }
.pb-duo-sw { display: flex; align-items: center; gap: 10px; margin: .2rem 0 .8rem; padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, #f5f8ff, #eef3ff); border: 1px solid #d9e2f3; line-height: 1.35; }
.pb-duo-sw[hidden] { display: none; }
.pb-duo-sw .lbl { font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .pb-k.hint .pb-star { animation: none; } }
/* computer: coach/draai-tip op de schuin getekende kast, niet achter de knoppenbalk */
body.pb-fit .pb-coach, body.pb-fit .pb-rot { top: calc(var(--pb-lift, 0px) + 6px); }

/* © SlimmeKids.be – SKProtect: watermerk, melding vreemd domein, insluitcode-venster */
.sk-wm { position: absolute; left: 10px; bottom: 6px; z-index: 3; font: 700 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; color: rgba(255,255,255,.55); text-decoration: none; text-shadow: 0 1px 0 rgba(0,0,0,.35); pointer-events: none; user-select: none; }
a.sk-wm { pointer-events: auto; }
a.sk-wm:hover, a.sk-wm:focus-visible { color: #fff; text-decoration: underline; }
.sk-lock { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #eef6ff, #fff7e6); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.sk-lock-card { max-width: 460px; background: #fff; border-radius: 18px; padding: 26px 24px; box-shadow: 0 12px 40px rgba(20,40,80,.14); text-align: center; color: #1f2a37; }
.sk-lock-k { margin: 0 0 6px; font-weight: 800; color: #1565c0; letter-spacing: .04em; font-size: .85rem; }
.sk-lock-card h2 { margin: 0 0 10px; font-size: 1.35rem; }
.sk-lock-card p { margin: 0 0 16px; line-height: 1.5; color: #4b5563; }
.sk-lock-btn { display: inline-block; padding: 12px 18px; border-radius: 12px; background: #1565c0; color: #fff; font-weight: 700; text-decoration: none; }
.sk-embed-code { width: 100%; min-height: 150px; resize: vertical; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px; border: 1px solid #d5dde8; border-radius: 10px; background: #f7f9fc; color: #1f2a37; white-space: pre; overflow: auto; }
