/* SlimmeKids Tandtovenaar – © 2026 SlimmeKids. Alleen systeemlettertypen. */
: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: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, 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 { 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); }
@media (max-width: 820px) { .sound-label { display: none; } .kicker { display: none; } }
@media (max-width: 700px) { .title { display: none; } }

.tt-main { flex: 1 1 auto; min-height: 0; position: relative; }
.tt-stage { position: absolute; inset: 0; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 35%, #fff8f3 0%, #ffe9ef 45%, #dff3f6 100%); }
#ttCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

/* patiëntkaart */
.tt-hud { position: absolute; top: 12px; right: 12px; width: min(300px, 42vw); pointer-events: none; z-index: 5; }
.tt-card { pointer-events: auto; background: rgba(255,255,255,.94); border: 1px solid rgba(28,51,72,.08); border-radius: 18px; box-shadow: 0 10px 30px rgba(28,51,72,.14); padding: .75rem .85rem .8rem; backdrop-filter: blur(6px); }
.tt-pt-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.tt-avatar { font-size: 2.1rem; line-height: 1; transition: transform .3s; }
.tt-avatar.pop { transform: scale(1.25) rotate(-8deg); }
.tt-lbl { margin: 0 0 .25rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tt-name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.tt-score { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, #ffb347, #ff7f50); padding: .2rem .65rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(255,127,80,.35); }
.tt-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.tt-task { display: flex; align-items: center; gap: .5rem; padding: .38rem .5rem; border-radius: 11px; background: #f3f7fb; font-size: .88rem; font-weight: 600; line-height: 1.2; }
.tt-task .ic { font-size: 1.15rem; flex: 0 0 auto; }
.tt-task .ct { margin-left: auto; font-weight: 800; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.tt-task.done { background: #e4f8ec; color: #1b6b3a; }
.tt-task.done .ct { color: #1b6b3a; }
.tt-task.done .tx { text-decoration: line-through; text-decoration-color: rgba(27,107,58,.45); }

/* gereedschap */
.tt-toolbar { position: absolute; z-index: 6; left: 12px; top: 12px; bottom: 12px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: .4rem; padding: .45rem; background: rgba(255,255,255,.9); border-radius: 20px; box-shadow: 0 10px 30px rgba(28,51,72,.14); max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.tt-tool { position: relative; width: 64px; height: 64px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 2px solid #e3eaf1; border-radius: 16px; background: linear-gradient(180deg, #fff, #f2f6fa); padding: 0; transition: transform .12s, box-shadow .12s, border-color .12s; }
.tt-tool .ic { font-size: 1.75rem; line-height: 1; filter: drop-shadow(0 2px 1px rgba(0,0,0,.12)); }
.tt-tool .lb { font-size: .6rem; font-weight: 700; color: var(--muted); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-tool:active { transform: scale(.94); }
.tt-tool[aria-pressed="true"] { border-color: var(--mint); background: linear-gradient(180deg, #effffc, #c9f3ee); box-shadow: 0 0 0 3px rgba(31,181,168,.25), 0 6px 14px rgba(18,138,128,.25); }
.tt-tool[aria-pressed="true"] .lb { color: var(--mint-d); }
.tt-tool.need::after { content: ''; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: #ff7043; box-shadow: 0 0 0 2px #fff; animation: ttPulse 1.4s ease-in-out infinite; }
.tt-tool.toggle.on { border-color: #ffb347; background: linear-gradient(180deg, #fffaf0, #ffe3b0); }
@keyframes ttPulse { 50% { transform: scale(1.35); } }
@media (max-height: 640px) { .tt-tool { width: 56px; height: 56px; } .tt-tool .ic { font-size: 1.5rem; } .tt-tool .lb { display: none; } }

.tt-views { position: absolute; z-index: 5; right: 12px; bottom: 76px; display: flex; flex-direction: column; gap: .35rem; }
.tt-vbtn { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.92); font-size: 1.3rem; box-shadow: 0 4px 12px rgba(28,51,72,.12); }

.tt-toast { position: absolute; z-index: 7; left: 50%; bottom: 96px; transform: translate(-50%, 12px); margin: 0; padding: .6rem 1rem; max-width: min(520px, 80vw); text-align: center; background: #1c3348; color: #fff; font-weight: 700; font-size: 1rem; border-radius: 14px; box-shadow: 0 10px 30px rgba(28,51,72,.3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.tt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.tt-toast.good { background: linear-gradient(135deg, #17a589, #1fb5a8); }
.tt-toast.warn { background: linear-gradient(135deg, #ff8a50, #ff6f61); }
@media (orientation: portrait), (max-width: 760px) { .tt-toast { bottom: 110px; } }

.tt-mirror { position: absolute; z-index: 4; pointer-events: none; border: 6px solid #cfd9e3; border-radius: 22px; box-shadow: 0 0 0 2px #fff, 0 10px 30px rgba(28,51,72,.3), inset 0 0 0 2px rgba(255,255,255,.6); }
.tt-mirror span { position: absolute; top: -18px; left: -18px; font-size: 1.6rem; }

/* start + klaar */
.tt-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(244,247,251,.72); backdrop-filter: blur(5px); }
.tt-start-card { width: min(560px, 100%); max-height: calc(100% - 1rem); overflow-y: auto; text-align: center; background: #fff; border-radius: 26px; padding: 1.4rem 1.4rem 1.5rem; box-shadow: 0 20px 60px rgba(28,51,72,.22); }
.tt-logo { position: relative; width: 120px; height: 110px; margin: 0 auto .2rem; }
.tt-logo-tooth { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 84px; filter: drop-shadow(0 8px 10px rgba(31,181,168,.35)); animation: ttFloat 3s ease-in-out infinite; }
.tt-wand { position: absolute; right: -14px; bottom: 2px; font-size: 40px; transform: rotate(-12deg); animation: ttWave 2.4s ease-in-out infinite; }
.tt-spark { position: absolute; color: #ffc93c; font-size: 22px; animation: ttTwinkle 1.8s ease-in-out infinite; }
.tt-spark.s1 { top: 4px; left: 2px; } .tt-spark.s2 { top: 0; right: 10px; font-size: 18px; animation-delay: .5s; color: #7fd8ff; } .tt-spark.s3 { bottom: 14px; left: -6px; animation-delay: 1s; }
@keyframes ttFloat { 50% { transform: translateY(-6px); } }
@keyframes ttWave { 50% { transform: rotate(8deg) translateY(-3px); } }
@keyframes ttTwinkle { 0%,100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.tt-logo-sk { margin: 0; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--mint-d); }
.tt-logo-name { margin: .05rem 0 0; font-family: var(--display); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; background: linear-gradient(135deg, #12a39a 0%, #3b82f6 55%, #ff6fa1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-logo-sub { margin: .3rem 0 .6rem; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tt-intro { margin: 0 auto 1rem; max-width: 430px; color: var(--muted); line-height: 1.45; }
.tt-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.tt-level { min-height: 74px; border-radius: 16px; border: 2px solid #e3eaf1; background: linear-gradient(180deg, #fff, #f2f6fa); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-weight: 800; }
.tt-level .face { font-size: 1.7rem; line-height: 1; }
.tt-level .n { font-size: .75rem; color: var(--muted); }
.tt-level .st { font-size: .72rem; color: #ffb300; letter-spacing: .05em; min-height: 1em; }
.tt-level:hover:not(:disabled) { border-color: var(--mint); }
.tt-level:disabled { opacity: .45; cursor: default; }
@media (max-width: 480px) { .tt-levels { grid-template-columns: repeat(3, 1fr); } }
.tt-done h2 { margin: .2rem 0 .4rem; font-family: var(--display); }
.tt-done p { margin: .2rem 0; font-weight: 700; }
.tt-stars { font-size: 3rem; letter-spacing: .1em; color: #ffc93c; text-shadow: 0 4px 10px rgba(255,179,0,.35); margin: 0 !important; }
.tt-stars .off { color: #e3e9ef; text-shadow: none; }
.tt-sticker { font-size: 4.4rem; margin: .2rem 0 .6rem !important; animation: ttSticker .8s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ttSticker { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(-6deg); } }
.tt-done-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.tt-btn { min-height: 52px; padding: 0 1.2rem; border-radius: 14px; border: 2px solid var(--ink); background: #fff; font-weight: 800; }
.tt-btn.primary { background: var(--mint); border-color: var(--mint); color: #fff; }

.tt-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 49; overflow: hidden; }
.tt-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: ttFall linear forwards; }
@keyframes ttFall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .tt-confetti { display: none; } .tt-logo-tooth, .tt-wand, .tt-spark { animation: none; } }
.tt-nogl { position: fixed; inset: 40% 1rem auto; text-align: center; font-weight: 700; z-index: 60; }

/* ---- patiëntgezicht, pijnmeter, ballon, x-ray, elastiekjes (2026-10-24) ---- */
.tt-pt-head { position: relative; }
.tt-face { width: 64px; height: 64px; flex: 0 0 auto; --skin: #eec1a0; --lip: #d96a7c; --hair: #6b4a2b; overflow: visible; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.tt-face .cheek { fill: #ff8fa3; opacity: .35; transition: opacity .4s; }
.tt-face .brows path { fill: none; stroke-width: 3; stroke-linecap: round; transition: transform .35s; transform-box: fill-box; transform-origin: center; }
.tt-face .eyes ellipse { fill: #2b2220; transition: transform .3s; transform-box: fill-box; transform-origin: center; }
.tt-face .squint { fill: none; stroke: #2b2220; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.tt-face .mouths path { fill: none; stroke: #7a2d3a; stroke-width: 3.2; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.tt-face .mouths .m-happy, .tt-face .mouths .m-pain { fill: #7a2d3a; }
.tt-face .tear { opacity: 0; transition: opacity .3s; }
.tt-face[data-mood="calm"] .m-calm, .tt-face[data-mood="relief"] .m-happy, .tt-face[data-mood="happy"] .m-happy, .tt-face[data-mood="meh"] .m-meh, .tt-face[data-mood="pain"] .m-pain, .tt-face[data-mood="wince"] .m-pain { opacity: 1; }
.tt-face[data-mood="pain"] .bl, .tt-face[data-mood="wince"] .bl { transform: rotate(16deg) translateY(2px); }
.tt-face[data-mood="pain"] .br, .tt-face[data-mood="wince"] .br { transform: rotate(-16deg) translateY(2px); }
.tt-face[data-mood="meh"] .bl { transform: rotate(8deg); } .tt-face[data-mood="meh"] .br { transform: rotate(-8deg); }
.tt-face[data-mood="pain"] .tear { opacity: 1; animation: tt-tear 1.6s ease-in infinite; }
.tt-face[data-mood="wince"] .eyes ellipse { opacity: 0; } .tt-face[data-mood="wince"] .squint { opacity: 1; }
.tt-face[data-mood="wince"] { animation: tt-shake .45s ease-in-out 2; }
.tt-face[data-mood="happy"] .eyes ellipse, .tt-face[data-mood="relief"] .eyes ellipse { transform: scaleY(.55); }
.tt-face[data-mood="happy"] .cheek, .tt-face[data-mood="relief"] .cheek { opacity: .7; }
.tt-face[data-mood="happy"] .brows path, .tt-face[data-mood="relief"] .brows path { transform: translateY(-3px); }
.tt-face[data-mood="relief"], .tt-face[data-mood="happy"] { animation: tt-bob 1.8s ease-in-out infinite; }
.tt-face .eyes { animation: tt-blink 5s infinite; transform-origin: 50px 50px; }
@keyframes tt-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes tt-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes tt-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes tt-tear { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.tt-pt-head .tt-avatar { position: absolute; left: 44px; top: 38px; font-size: 1.1rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.tt-mood { font-size: 1rem; }
.tt-pain { display: flex; align-items: center; gap: .5rem; margin: .35rem 0 .2rem; }
.tt-pain[hidden] { display: none; }
.tt-pain-track { flex: 1; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #7ee0b0, #ffd166 55%, #ff7a8a); position: relative; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.tt-pain-bar { position: absolute; right: 0; top: 0; bottom: 0; width: 0; }
.tt-pain-track::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.75); left: var(--k, 0%); }
.tt-pain-bar { display: none; }
.tt-pain[data-lvl="ok"] .tt-pain-track::after { left: 6%; }
.tt-bubble { position: absolute; z-index: 7; right: 340px; top: 18px; max-width: min(46%, 300px); margin: 0; padding: .65rem .95rem; background: #fff; border-radius: 18px 18px 4px 18px; box-shadow: 0 10px 26px rgba(28,51,72,.18); font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: #1c3348; transform-origin: 100% 100%; }
.tt-bubble.show { animation: tt-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes tt-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.tt-stage.xray { background: radial-gradient(ellipse at 50% 40%, #24406e 0%, #0f1a30 75%) !important; }
.tt-stage.xray canvas { filter: saturate(.2) brightness(1.15) contrast(1.1); }
.tt-bands { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); top: 12px; display: flex; gap: .4rem; padding: .4rem .55rem; background: rgba(255,255,255,.92); border-radius: 999px; box-shadow: 0 8px 22px rgba(28,51,72,.15); }
.tt-bands[hidden] { display: none; }
.tt-band { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; padding: 0; }
.tt-band.on { box-shadow: 0 0 0 3px #1c3348; transform: scale(1.1); }
.tt-free { margin-top: .7rem; }
.tt-free.on { background: #1fb5a8; color: #fff; border-color: #1fb5a8; }
.tt-trophy { margin: .6rem 0 0; font-size: .95rem; color: #5a6b7c; }
@media (prefers-reduced-motion: reduce) { .tt-face, .tt-face .eyes, .tt-face .tear, .tt-bubble.show { animation: none !important; } }
@media (orientation: portrait), (max-width: 760px) { .tt-bubble { top: auto; right: 16px; bottom: 92px; } .tt-face { width: 52px; height: 52px; } }

/* ===== v3: Bouwbaas-stijl panelen, SVG-iconen, digibord (2026-10-24) ===== */
.app { display: flex; flex-direction: column; height: 100%; }
.tt-main { display: flex; position: relative; }
.tt-stage { position: relative !important; inset: auto !important; flex: 1 1 auto; min-width: 0; }
.tt-toolbar { position: static !important; flex: 0 0 auto; width: calc(3 * var(--tt-tb) + 2 * .45rem + 1.5rem); display: grid !important; grid-template-columns: repeat(3, var(--tt-tb)); grid-auto-rows: var(--tt-tb); gap: .45rem; align-content: start;
  padding: .75rem !important; margin: 0; background: #fff !important; border-right: 1px solid var(--line); border-radius: 0 !important; box-shadow: none !important; max-height: none !important; overflow-y: auto; overflow-x: hidden; z-index: 6; }
:root { --tt-tb: 70px; --line: #d5dee7; --blue: #2196f3; }
.tt-tool { width: auto !important; height: auto !important; min-height: 0; border: 2px solid #e3eaf1 !important; border-radius: 14px !important; background: #f8fbfe !important; box-shadow: none !important; color: #1c3348; gap: 3px !important; padding: 4px 2px !important; }
.tt-tool .ic { filter: none !important; display: flex; }
.tt-tool .ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tt-tool .ic svg .f { fill: #dff0fd; stroke: none; } .tt-tool .ic svg .f2 { fill: #1c3348; stroke: none; } .tt-tool .ic svg .blue { stroke: #2196f3; }
.tt-tool .lb { font-size: .68rem !important; font-weight: 700; color: #3e556b !important; max-width: 100% !important; }
@media (hover: hover) { .tt-tool:hover { border-color: #bcd3e8 !important; background: #fff !important; } }
.tt-tool[aria-pressed="true"], .tt-tool.toggle.on { border-color: var(--blue) !important; background: #e8f4fe !important; box-shadow: 0 0 0 2px var(--blue) inset !important; color: #0b5ea8; }
.tt-tool[aria-pressed="true"] .lb, .tt-tool.toggle.on .lb { color: #0b5ea8 !important; }
.tt-tool[aria-pressed="true"] .ic svg .f, .tt-tool.toggle.on .ic svg .f { fill: #bfe3ff; }
.tt-tool.need::after { top: 4px !important; right: 4px !important; width: 9px !important; height: 9px !important; background: #ff9a3c !important; }
/* patiëntkaart: strak en compact */
.tt-hud { top: 12px; right: 12px; width: min(290px, 40%); }
.tt-card { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: 0 3px 10px rgba(28,51,72,.10) !important; padding: .65rem .7rem !important; backdrop-filter: none !important; }
.tt-pt-head { gap: .6rem !important; margin-bottom: .45rem !important; }
.tt-facebox { display: flex; flex: 0 0 auto; }
.tt-facebox .tt-face { width: 58px; height: 58px; }
.tt-mood { display: none; }
.tt-name { font-size: 1.05rem !important; }
.tt-score { font-size: .95rem !important; background: #ff9a3c !important; box-shadow: none !important; padding: .15rem .6rem !important; }
.tt-pain { margin: 0 0 .45rem !important; }
.tt-pain-track { height: 10px !important; }
.tt-tasks { gap: .25rem !important; }
.tt-task { padding: .3rem .45rem !important; border-radius: 9px !important; background: #f8fbfe !important; border: 1px solid #e3eaf1; font-size: .82rem !important; font-weight: 600; }
.tt-task .ic svg { width: 20px; height: 20px; display: block; fill: none; stroke: #1c3348; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tt-task .ic svg .f { fill: #dff0fd; stroke: none; } .tt-task .ic svg .f2 { fill: #1c3348; stroke: none; } .tt-task .ic svg .blue { stroke: #2196f3; }
.tt-task.done { background: #e9f8ef !important; border-color: #bfe8cf; } .tt-task.done .ic svg { stroke: #1f9d45; }
.tt-views .tt-vbtn { border-radius: 14px; border: 1px solid rgba(28,51,72,.12); background: rgba(255,255,255,.94); box-shadow: 0 3px 10px rgba(28,51,72,.14); }
/* copyright netjes gecentreerd onderaan, in de flow */
.tt-foot { flex: 0 0 auto; text-align: center; font-size: .72rem; color: #5b7084; padding: .25rem 0 calc(.25rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.close-x { bottom: max(34px, calc(env(safe-area-inset-bottom) + 34px)) !important; }
@media (max-height: 700px) and (orientation: landscape) { :root { --tt-tb: 60px; } .tt-tool .lb { font-size: .6rem !important; } }
/* digibord / grote schermen: alles groter, goed leesbaar op afstand */
@media (min-width: 1700px) and (min-height: 900px) { .tt-side .tt-card, .tt-start-card, .tt-bubble, .tt-toast, .tt-group, .tt-tool .lb { zoom: 1.22; } :root { --tt-tb: 92px; } .tt-tool .ic svg { width: 40px; height: 40px; } .tt-hud { width: 380px; } .tt-facebox .tt-face { width: 76px; height: 76px; } .tt-vbtn { width: 64px; height: 64px; font-size: 1.6rem; } }
@media (min-width: 2500px) and (min-height: 1300px) { .tt-side .tt-card, .tt-start-card, .tt-bubble, .tt-toast, .tt-group, .tt-tool .lb { zoom: 1.6; } :root { --tt-tb: 132px; } .tt-tool .ic svg { width: 58px; height: 58px; } .tt-hud { width: 540px; } .tt-facebox .tt-face { width: 108px; height: 108px; } .tt-vbtn { width: 92px; height: 92px; font-size: 2.2rem; } }


/* ===== v4: indeling exact als Bouwbaas School – witte zijkolom links, knoppen rechts ===== */
:root { --side: 288px; --tap: 56px; }
.tt-main { flex-direction: row !important; }
.tt-side { flex: 0 0 var(--side); display: flex; flex-direction: column; gap: .7rem; padding: .75rem; background: #fff; border-right: 1px solid var(--line); min-height: 0; overflow: hidden; z-index: 6; }
.tt-side .tt-card { display: block !important; position: static; flex: 0 0 auto; background: #f8fbfe !important; border: 2px solid #e3eaf1 !important; box-shadow: none !important; border-radius: 14px !important; padding: .6rem .65rem !important; }
.tt-side .tt-tasks { max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; }
.tt-side .tt-task { background: #fff !important; }
.tt-side .tt-toolbar { flex: 1 1 auto; min-height: 0; width: auto !important; padding: 2px 2px 1rem !important; border: 0 !important; grid-template-columns: repeat(3, 1fr) !important; grid-auto-rows: 74px !important; gap: .45rem; overflow-y: auto; scrollbar-width: thin; touch-action: pan-y; }
.tt-group { grid-column: 1 / -1; margin: .35rem 0 -.1rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b7084; align-self: end; }
.tt-group:first-child { margin-top: 0; }
.tt-side .tt-toolbar .tt-group { height: auto; }
.tt-side .tt-toolbar { grid-auto-rows: auto !important; } .tt-side .tt-tool { height: 74px !important; }
.tt-views.bb-view { position: absolute; right: 12px; left: auto; bottom: auto !important; top: 50%; transform: translateY(-50%); display: grid !important; grid-template-columns: var(--tap) var(--tap); gap: .45rem; z-index: 5; }
.tt-views .tt-vbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap) !important; height: var(--tap) !important; padding: 0; border-radius: 16px !important; border: 1px solid rgba(28,51,72,.12) !important; background: rgba(255,255,255,.94) !important; color: #1c3348; box-shadow: 0 3px 10px rgba(28,51,72,.14) !important; }
.tt-views .tt-vbtn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tt-views .tt-vbtn:active { transform: scale(.95); }
.tt-bubble { right: calc(2 * var(--tap) + 40px) !important; top: 16px !important; bottom: auto !important; }
.tt-toolbtn { display: none; }
@media (max-width: 1000px) { :root { --side: 236px; } .tt-side .tt-toolbar { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-height: 860px) and (min-width: 641px) { .tt-views.bb-view { top: calc(50% - 30px); } }
@media (min-width: 1700px) and (min-height: 900px) { :root { --side: 380px; --tap: 72px; } .tt-side .tt-tool { height: 96px !important; } .tt-views .tt-vbtn svg { width: 36px; height: 36px; } .tt-group { font-size: .8rem; } }
@media (min-width: 2500px) and (min-height: 1300px) { :root { --side: 540px; --tap: 100px; } .tt-side .tt-tool { height: 136px !important; } .tt-views .tt-vbtn svg { width: 50px; height: 50px; } }

/* ===== telefoon (thuisversie): grote 3D, gereedschapslade + patiëntchip ===== */
@media (max-width: 560px), (max-height: 500px) {
  :root { --tap: 44px; }
  .top { padding-top: calc(.3rem + env(safe-area-inset-top)); padding-bottom: .3rem; }
  .top .brand img { height: 28px; width: auto; }
  .tt-side { display: contents; }
  .tt-side .tt-card { position: fixed !important; z-index: 9; left: 8px; top: calc(54px + env(safe-area-inset-top)); max-width: calc(100% - 70px); padding: .35rem .55rem !important; background: #fff !important; box-shadow: 0 4px 14px rgba(28,51,72,.15) !important; cursor: pointer; }
  .tt-side .tt-card .tt-pt-head { margin: 0 !important; gap: .45rem !important; flex-direction: row !important; }
  .tt-facebox .tt-face { width: 40px !important; height: 40px !important; }
  .tt-side .tt-card .tt-lbl, .tt-side .tt-card .tt-tasks, .tt-side .tt-card .tt-pain { display: none !important; }
  .tt-side .tt-card.open .tt-tasks { display: grid !important; margin-top: .4rem; max-height: 46vh; }
  .tt-side .tt-card.open .tt-pain { display: flex !important; margin-top: .4rem !important; }
  .tt-toolbtn { display: inline-flex; align-items: center; gap: .4rem; position: absolute; z-index: 8; left: 10px; bottom: 10px; height: 52px; padding: 0 .9rem 0 .7rem; border-radius: 16px; border: 1px solid rgba(28,51,72,.12); background: #fff; box-shadow: 0 4px 14px rgba(28,51,72,.18); font-weight: 750; font-size: .9rem; color: #1c3348; }
  .tt-toolbtn svg { width: 28px; height: 28px; fill: none; stroke: #0b5ea8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .tt-toolbtn svg .f { fill: #dff0fd; stroke: none; } .tt-toolbtn svg .f2 { fill: #1c3348; stroke: none; }
  .tt-toolbtn b { font-size: .8rem; color: #5b7084; transition: transform .2s; }
  .tt-side .tt-toolbar { position: fixed !important; z-index: 30; left: 0; right: 0; bottom: 0; top: auto !important; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)) !important; max-height: 55vh !important; overflow-y: auto; background: #fff !important;
    padding: .8rem .8rem calc(.8rem + env(safe-area-inset-bottom)) !important; border-radius: 20px 20px 0 0 !important; border-top: 1px solid var(--line) !important; box-shadow: 0 -10px 30px rgba(28,51,72,.18) !important; transform: translateY(105%); transition: transform .28s ease; }
  body.tools-open .tt-side .tt-toolbar { transform: none; }
  .tt-side .tt-tool { height: 64px !important; }
  .tt-views.bb-view { top: 8px; transform: none; right: 8px; grid-template-columns: var(--tap); }
  .tt-views [data-view="left"], .tt-views [data-view="right"], .tt-views [data-view="bottom"] { display: none !important; }
  .tt-views .tt-vbtn svg { width: 22px; height: 22px; }
  .tt-bubble { top: auto !important; bottom: 128px !important; right: 10px !important; max-width: 70%; font-size: .9rem; }
  .tt-bands { top: auto; bottom: 72px; }
  .tt-foot { display: none; }
  .close-x { bottom: 12px !important; }
  .bb-share-btn { bottom: 70px !important; height: 46px; font-size: .95rem; }
  .bb-share-pop { bottom: 124px !important; }
  .tt-toast { bottom: 72px !important; }
}
@media (max-width: 560px), (max-height: 500px) {
  .tt-toolbtn { z-index: 31; }
  .tt-side .tt-toolbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  body.tools-open .bb-share-btn, body.tools-open .close-x, body.tools-open .bb-share-pop { display: none !important; }
  .tt-toolbtn { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); }
}

.tt-version { position: fixed; left: 12px; bottom: 12px; margin: 0; font-size: 11.52px; color: #5b7084; opacity: .85; z-index: 7; pointer-events: none; }
@media (max-width: 560px), (max-height: 500px) { .tt-version { display: none; } }

/* view-knoppen: groot, geïllustreerd, met label (Bouwbaas-stijl) */
.tt-views.bb-view { grid-template-columns: 64px 64px !important; gap: .4rem !important; }
.tt-views .tt-vbtn { width: 64px !important; height: 66px !important; flex-direction: column; gap: 1px; padding: 4px 0 3px !important; }
.tt-views .tt-vbtn svg { width: 34px !important; height: 34px !important; stroke: none !important; }
.tt-views .tt-vbtn .vl { font-size: .66rem; font-weight: 750; color: #3e556b; line-height: 1.05; }
.tt-views [data-view="reset"] { grid-column: 1 / -1; width: auto !important; flex-direction: row; gap: .4rem; height: 48px !important; }
@media (hover: hover) { .tt-views .tt-vbtn:hover { background: #fff !important; } }
@media (min-width: 1700px) and (min-height: 900px) { .tt-views.bb-view { grid-template-columns: 88px 88px !important; } .tt-views .tt-vbtn { width: 88px !important; height: 90px !important; } .tt-views .tt-vbtn svg { width: 46px !important; height: 46px !important; } .tt-views .tt-vbtn .vl { font-size: .8rem; } .tt-views [data-view="reset"] { height: 60px !important; } }
@media (max-height: 760px) and (min-width: 561px) { .tt-views .tt-vbtn { height: 56px !important; width: 58px !important; } .tt-views .tt-vbtn svg { width: 28px !important; height: 28px !important; } .tt-views.bb-view { grid-template-columns: 58px 58px !important; } }
@media (max-width: 560px), (max-height: 500px) {
  .tt-views.bb-view { grid-template-columns: 52px !important; top: 8px !important; }
  .tt-views .tt-vbtn { width: 52px !important; height: 54px !important; } .tt-views .tt-vbtn svg { width: 26px !important; height: 26px !important; } .tt-views .tt-vbtn .vl { font-size: .58rem; }
  .tt-views [data-view="bottom"], .tt-views [data-view="left"], .tt-views [data-view="right"], .tt-views [data-view="reset"] { display: none !important; }
  .tt-side .tt-card { top: calc(var(--toph, 46px) + 8px) !important; }
}
@media (max-height: 500px) { .tt-views [data-view="out"], .tt-views [data-view="back"] { display: none !important; } }
/* afgeronde taak: zachte gloed + vinkje */
.tt-task.just { animation: tt-done-glow 1.6s ease-out 1; }
@keyframes tt-done-glow { 0% { box-shadow: 0 0 0 0 rgba(31,157,69,.0); background: #fff; } 25% { box-shadow: 0 0 0 4px rgba(31,157,69,.25), 0 0 18px rgba(31,157,69,.35); background: #dff6e7; } 100% { box-shadow: 0 0 0 0 rgba(31,157,69,0); } }
@media (prefers-reduced-motion: reduce) { .tt-task.just { animation: none; } }

html:not([data-sk-home]) .tt-bubble { bottom: auto; }

/* schaalschuif (zoals Boter, kaas en eieren) */
.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; }
.tt-side, .tt-views { zoom: var(--ui-zoom, 1); }
@media (max-width: 900px) { .text-size { width: 64px; } }
@media (max-width: 560px), (max-height: 500px) { body > .sk-school-copy { display: none; } body { padding-bottom: 0 !important; } }

/* ===== startkaart v2: strak, Bouwbaas/School-stijl ===== */
.tt-start { background: rgba(28,51,72,.28) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: tt-fade .35s ease both; }
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
.tt-sc { width: min(860px, 100%) !important; display: grid !important; grid-template-columns: 1fr 1.15fr; gap: 0; padding: 0 !important; text-align: left !important; border-radius: 22px !important; border: 1px solid #d5dee7; box-shadow: 0 24px 60px rgba(28,51,72,.22) !important; overflow: hidden; animation: tt-rise .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes tt-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.tt-sc-hero { padding: 1.6rem 1.6rem 1.4rem; background: linear-gradient(165deg, #f4fbff 0%, #e8f6f4 100%); border-right: 1px solid #e3eaf1; display: flex; flex-direction: column; align-items: flex-start; }
.tt-sc-art { width: 132px; height: 116px; margin: 0 0 .4rem -6px; }
.tt-sc-art .sp { transform-box: fill-box; transform-origin: center; animation: tt-twinkle 2.6s ease-in-out infinite; } .tt-sc-art .s2 { animation-delay: .8s; } .tt-sc-art .s3 { animation-delay: 1.6s; }
@keyframes tt-twinkle { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
.tt-sc-sk { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #128a80; }
.tt-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; color: #1c3348; }
.tt-sc-sub { margin: .35rem 0 .7rem; font-weight: 700; font-size: .95rem; color: #3e556b; }
.tt-sc-intro { margin: 0; font-size: .9rem; line-height: 1.5; color: #5b7084; max-width: 34ch; }
.tt-sc-pick { padding: 1.4rem 1.5rem 1.3rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.tt-sc-lbl { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b7084; }
.tt-sc .tt-levels { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: .45rem !important; }
.tt-sc .tt-level { position: relative; min-height: 0 !important; padding: .5rem .2rem .45rem !important; border: 2px solid #e3eaf1 !important; border-radius: 14px !important; background: #f8fbfe !important; display: flex; flex-direction: column; align-items: center; gap: .25rem; color: #1c3348; transition: border-color .15s, background .15s, transform .1s; }
.tt-sc .tt-level .pt { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.tt-sc .tt-level .pt .tt-face { width: 46px !important; height: 46px !important; }
.tt-sc .tt-level .pt > svg:not(.tt-face) { width: 26px; height: 26px; fill: none; stroke: #8193a5; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tt-sc .tt-level .n { font-size: .74rem !important; font-weight: 750; color: #1c3348 !important; white-space: nowrap; }
.tt-sc .tt-level .dots { display: flex; gap: 2px; } .tt-sc .tt-level .dots i { width: 5px; height: 5px; border-radius: 50%; background: #d5dee7; } .tt-sc .tt-level .dots i.on { background: #2196f3; }
.tt-sc .tt-level .st { display: flex; gap: 1px; font-size: .7rem !important; line-height: 1; } .tt-sc .tt-level .st i { font-style: normal; color: #d5dee7; } .tt-sc .tt-level .st i.on { color: #ffb300; }
@media (hover: hover) { .tt-sc .tt-level:hover:not(:disabled) { border-color: #bcd3e8 !important; background: #fff !important; } }
.tt-sc .tt-level[aria-checked="true"] { border-color: #2196f3 !important; background: #e8f4fe !important; box-shadow: 0 0 0 2px #2196f3 inset; }
.tt-sc .tt-level:active:not(:disabled) { transform: scale(.97); }
.tt-sc .tt-level:disabled { opacity: .55; }
.tt-sc-switch { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; color: #3e556b; cursor: pointer; user-select: none; }
.tt-sc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-sw { flex: 0 0 auto; width: 40px; height: 24px; border-radius: 999px; background: #d5dee7; position: relative; transition: background .2s; }
.tt-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tt-sc-switch input:checked + .tt-sw { background: #1fb5a8; } .tt-sc-switch input:checked + .tt-sw::after { transform: translateX(16px); }
.tt-sc-switch input:focus-visible + .tt-sw { box-shadow: 0 0 0 3px rgba(33,150,243,.35); }
.tt-sc-go { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; width: 100%; border: 0; border-radius: 14px; background: linear-gradient(165deg, #ffb062 0%, #ff9a3c 60%, #f5831f 100%); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; box-shadow: 0 6px 16px rgba(255,154,60,.38), inset 0 1px 0 rgba(255,255,255,.35); cursor: pointer; }
.tt-sc-go svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tt-sc-go:active { transform: scale(.98); }
.tt-sc .tt-trophy { margin: 0; font-size: .8rem; color: #5b7084; text-align: center; }
@media (max-width: 760px) { .tt-sc { grid-template-columns: 1fr; width: min(520px, 100%) !important; } .tt-sc-hero { border-right: 0; border-bottom: 1px solid #e3eaf1; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; } .tt-sc-art { width: 82px; height: 72px; margin: 0; grid-row: 1 / span 3; } .tt-sc-intro { grid-column: 1 / -1; margin-top: .5rem; } .tt-sc-sub { margin: .15rem 0 0; } .tt-sc-pick { padding: 1rem 1.2rem; } }
@media (max-width: 430px) { .tt-sc .tt-levels { grid-template-columns: repeat(5, 1fr) !important; gap: .3rem !important; } .tt-sc .tt-level .pt, .tt-sc .tt-level .pt .tt-face { width: 38px !important; height: 38px !important; } .tt-sc .tt-level .n { font-size: .62rem !important; } .tt-sc-intro { display: none; } }
@media (max-height: 500px) { .tt-sc-intro, .tt-sc-art { display: none; } .tt-sc-hero { padding: .8rem 1rem; } .tt-sc-pick { padding: .8rem 1rem; gap: .5rem; } .tt-sc-go { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .tt-start, .tt-sc, .tt-sc-art .sp { animation: none !important; } }

/* ===== geïllustreerde portretten (6 gezichtsuitdrukkingen per personage) ===== */
.tt-face-img { position: relative; display: block; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #e6f3fb 70%, #d6eaf6 100%); box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(28,51,72,.14); overflow: hidden !important; }
.tt-face-img .fm { position: absolute; inset: 6% 4% 0; width: 92%; height: 94%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .22s ease; pointer-events: none; user-select: none; }
.tt-face-img[data-mood="calm"] .fm-calm, .tt-face-img[data-mood="happy"] .fm-happy, .tt-face-img[data-mood="meh"] .fm-meh, .tt-face-img[data-mood="pain"] .fm-pain, .tt-face-img[data-mood="wince"] .fm-wince, .tt-face-img[data-mood="relief"] .fm-relief { opacity: 1; }
.tt-facebox .tt-face-img { width: 76px !important; height: 76px !important; }
@media (max-width: 760px) { .tt-facebox .tt-face-img { width: 46px !important; height: 46px !important; } }
.tt-sc .tt-level .pt .tt-face-img { width: 50px !important; height: 50px !important; }
.tt-sc .tt-level .pt { width: 50px; height: 50px; }

/* ===== Telefoon-fix home (v20261024m): compacte kop, Delen zonder overlap, compact startscherm ===== */
@media (max-width: 600px) and (orientation: portrait) {
  html[data-sk-home] .top.sk-topbar { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 6px;
    padding: calc(6px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 6px calc(10px + env(safe-area-inset-left)) !important; min-height: 0 !important; height: auto !important; }
  html[data-sk-home] .top .brand { grid-row: 1; grid-column: 1; }
  html[data-sk-home] .top .brand img { height: 28px !important; width: auto !important; }
  html[data-sk-home] .sk-tb-right { display: contents !important; }
  html[data-sk-home] .top .title { grid-row: 1; grid-column: 2; min-width: 0; text-align: right; }
  html[data-sk-home] .top .title .kicker { display: none !important; }
  html[data-sk-home] .top .title h1 { font-size: 15px !important; line-height: 1.2 !important; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-sk-home] .sk-tb-controls { grid-row: 2; grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: nowrap !important; min-width: 0; }
  html[data-sk-home] .sk-tb-controls .tools { order: 2; display: flex; gap: 4px; flex: 0 0 auto; }
  html[data-sk-home] .sk-tb-controls .mini { height: 30px !important; min-height: 30px !important; }
  html[data-sk-home] #skLangHost { order: 1; min-width: 0; flex: 0 1 auto; }
  html[data-sk-home] .sk-lang { padding: 2px !important; gap: 0 !important; }
  html[data-sk-home] .sk-lang-btn { height: 26px !important; padding: 0 4px !important; font-size: 9.5px !important; gap: 3px !important; }
}
@media (max-width: 360px) and (orientation: portrait) { html[data-sk-home] .sk-tb-help { display: none !important; } }
@media (max-height: 500px) and (orientation: landscape) {
  html[data-sk-home] .top.sk-topbar { padding: calc(4px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 4px calc(12px + env(safe-area-inset-left)) !important; min-height: 0 !important; height: auto !important; align-items: center !important; }
  html[data-sk-home] .top .brand img { height: 26px !important; width: auto !important; }
  html[data-sk-home] .sk-tb-right { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; }
  html[data-sk-home] .top .title .kicker { display: none !important; }
  html[data-sk-home] .top .title h1 { font-size: 15px !important; margin: 0 !important; white-space: nowrap; }
  html[data-sk-home] .sk-tb-controls { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; gap: 6px !important; }
  html[data-sk-home] .sk-tb-controls .tools { order: 2; display: flex; gap: 4px; flex-wrap: nowrap; } html[data-sk-home] #skLangHost { order: 1; }
  html[data-sk-home] .sound-label { display: none !important; }
  html[data-sk-home] .sk-lang { padding: 2px !important; }
  html[data-sk-home] .sk-tb-controls .mini { height: 30px !important; min-height: 30px !important; }
  html[data-sk-home] .sk-lang-btn { height: 26px !important; padding: 0 6px !important; font-size: 10px !important; }
  html[data-sk-home] .tt-side .tt-card { margin-top: 6px !important; }
  html[data-sk-home] .tt-views.bb-view { zoom: .85; }
}
/* Delen: compact rond icoon links van de sluitknop, nooit over bubbel/knoppen */
@media (max-width: 600px), (max-height: 500px) {
  html[data-sk-home] .bb-share-btn { width: 46px !important; height: 46px !important; padding: 0 !important; justify-content: center; border-radius: 50% !important;
    right: calc(70px + env(safe-area-inset-right)) !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
  html[data-sk-home] .bb-share-btn .bb-share-lbl { display: none !important; }
  html[data-sk-home] .bb-share-pop { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
  html[data-sk-home] .close-x { bottom: calc(12px + env(safe-area-inset-bottom)) !important; right: calc(12px + env(safe-area-inset-right)) !important; }
  html[data-sk-home] .tt-bubble { bottom: calc(70px + env(safe-area-inset-bottom)) !important; right: calc(10px + env(safe-area-inset-right)) !important; top: auto !important; max-width: min(64%, 280px) !important; font-size: .85rem; }
  html[data-sk-home] .tt-toast { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  html[data-sk-home] .tt-toolbtn { left: calc(10px + env(safe-area-inset-left)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  html[data-sk-home] .tt-bubble { right: calc(80px + env(safe-area-inset-right)) !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; max-width: 40% !important; }
  html[data-sk-home] .bb-share-btn { right: calc(12px + env(safe-area-inset-right)) !important; bottom: calc(66px + env(safe-area-inset-bottom)) !important; }
}
/* Startscherm compact, één kolom, scrollbaar binnen het scherm */
@media (max-width: 600px), (max-height: 500px) {
  .tt-start { align-items: flex-start !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)) !important; }
  .tt-sc { grid-template-columns: 1fr !important; width: min(520px, 100%) !important; max-height: none !important; margin: auto !important; }
  .tt-sc-hero { display: flex !important; align-items: center; gap: 10px; padding: .7rem 1rem !important; border-right: 0 !important; border-bottom: 1px solid var(--line, #e6edf3); }
  .tt-sc-art { width: 64px !important; height: 56px !important; margin: 0 !important; flex: 0 0 auto; }
  .tt-sc-name { font-size: 1.35rem !important; }
  .tt-sc-sub { margin: .1rem 0 0 !important; font-size: .82rem !important; }
  .tt-sc-intro { display: none !important; }
  .tt-sc-pick { padding: .8rem 1rem 1rem !important; gap: .55rem !important; }
  .tt-sc .tt-levels { gap: .3rem !important; }
  .tt-sc .tt-level .pt, .tt-sc .tt-level .pt .tt-face-img { width: 38px !important; height: 38px !important; }
  .tt-sc .tt-level .n { font-size: .66rem !important; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .tt-sc { width: min(640px, 100%) !important; }
  .tt-sc-art { display: none !important; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 800px) { html[data-sk-home] .top .title .t-sk { display: none !important; } }
@media (max-width: 380px) and (orientation: portrait) { html[data-sk-home] .sk-tb-help { display: none !important; } }
/* SEO-tekstblok onder het spel (home) */
.tt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-sk-home], html[data-sk-home] body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html[data-sk-home] .app { height: 100vh; height: 100dvh; }
.tt-seo { background: #fff; border-top: 1px solid var(--line); padding: 2.2rem max(1.2rem, env(safe-area-inset-left)) 5.5rem; -webkit-user-select: text; user-select: text; }
.tt-seo-in { max-width: 760px; margin: 0 auto; color: #3e556b; font-size: 1rem; line-height: 1.6; }
.tt-seo h2 { font-family: var(--display); color: #1c3348; font-size: 1.35rem; margin: 1.4rem 0 .5rem; }
.tt-seo h2:first-child { margin-top: 0; }
.tt-seo a { color: #0f8a7e; font-weight: 700; }
.tt-seo ul { padding-left: 1.2rem; }
.tt-faq-i { border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; margin: .5rem 0; background: #fbfdff; }
.tt-faq-i h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #1c3348; }
.tt-faq-i p { margin: .5rem 0 0; }
html[data-sk-home] .app { position: relative; } html[data-sk-home] .tt-overlay { position: absolute !important; }
