/* SlimmeKids – Zetmeester (openbare versie): aanvulling op sch.css. Spel bovenaan op schermhoogte, daaronder de uitleg (scrollen). © 2026 SlimmeKids */
html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: auto; }
.app { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
.app > .mem-overlay { position: absolute; }
.app > .mem-version { position: absolute; }
.app > .zm-copy { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 64px 12px; font-size: 11.52px; pointer-events: none; text-align: center; color: #55697d; }
.mem-sc-sk { letter-spacing: .08em; }
/* menuknop + menu */
.zm-menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.zm-menu { width: min(440px, 100%); text-align: left; }
.zm-menu h2 { margin: 0 0 .7rem; }
.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, .zm-mlist a:focus-visible { 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); }
.zm-mlist img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
/* uitleg onder het spel (zoals Vergeet-me-nietje) */
.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: 780px; 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 h2 { margin: 2.2rem 0 .5rem; font-family: var(--ui); font-size: 1.3rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.seo h2:first-of-type { margin-top: 0; }
.seo h3 { margin: 1.4rem 0 .3rem; font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.seo p, .seo li { font-size: 1rem; }
.seo ul, .seo ol { padding-left: 1.3rem; }
.seo li { margin: .25rem 0; }
.seo a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; 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-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: .6rem 0 0; padding: 0; list-style: none; }
.seo-pieces li { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; font-size: .95rem; line-height: 1.5; }
.seo-pieces b { display: block; font-size: 1rem; }
.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); }
.zm-down { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; background: rgba(244,247,251,.9); }
.zm-down svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- staand scherm (tablet rechtop, gsm): bord bovenaan over de hele breedte ---------- */
@media (orientation: portrait) and (max-width: 1100px) {
    .sch-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
        grid-template-areas: "top stat" "board board" "bot bot" "acts acts"; gap: 10px; padding: 10px 12px 34px; }
    .sch-left, .sch-right { display: contents; }
    #plTop { grid-area: top; } #plBot { grid-area: bot; } #schStatus { grid-area: stat; padding: 4px; font-size: 1.05rem; }
    #schBoard { grid-area: board; }
    .sch-right > .sch-lbl, #schMoves, #ksGoal { display: none; }
    .sch-acts { grid-area: acts; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
    .ks-main .sch-acts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sch-acts #btnHelp, .sch-acts .sch-new { grid-column: auto; }
    .sch-acts .mem-btn { min-height: 44px; justify-content: center; text-align: center; flex-direction: column; gap: 3px; padding: 4px 6px; font-size: .78rem; line-height: 1.1; }
    .sch-pl { padding: 8px 10px; }
    .tk-sc-wide { grid-template-columns: 1fr; } .tk-sc-wide .mem-sc-hero { border-right: 0; border-bottom: 1px solid #e6edf3; }
}
/* ---------- gsm (smalle kant < 600 px) ---------- */
@media (max-width: 600px) {
    .app { height: auto; min-height: 100vh; min-height: 100svh; }
    .sch-main { grid-template-rows: auto auto auto auto; padding: 8px 8px 34px; gap: 8px; }
    #schBoard { aspect-ratio: 1 / 1; width: 100%; }
    .ks-main #schBoard { aspect-ratio: 5 / 6; }
    .sch-pl { padding: 6px 8px; } .sch-pl-h { gap: 6px; } .sch-pl-ico { width: 32px; height: 32px; }
    .sch-pl-name { font-size: .92rem; } .sch-pl-c { font-size: .62rem; }
    .sch-cap { min-height: 20px; } .sch-cap i { width: 18px; height: 18px; } .ks-pl .sch-cap img { width: 24px; height: 24px; }
    .sch-clock { font-size: 1.2rem; margin-top: 4px; }
    #schStatus { font-size: .92rem; }
    .sch-acts .mem-btn { font-size: .68rem; min-height: 50px; padding: 4px 3px; }
    .sch-acts .mem-btn svg { width: 18px; height: 18px; }
    .sch-viewsw, #btn3d, .size-control { display: none !important; }
    .mem-overlay { padding: .5rem; align-items: flex-start; }
    .mem-sc { border-radius: 18px; max-height: none; }
    .mem-sc-hero, .mem-sc-pick { padding: 1rem !important; }
    .sch-sets { grid-template-columns: repeat(3, 1fr) !important; }
    .sch-seg5 { grid-template-columns: repeat(3, 1fr) !important; }
    .tk-row3 { grid-template-columns: 1fr !important; } .tk-row3 > div:first-child { display: none; }
    .mem-mode { grid-template-columns: 1fr !important; }
    .tk-d-choice { grid-template-columns: 1fr !important; }
    .sch-help-tabs { grid-template-columns: repeat(3, 1fr) !important; }
    .ks-chain, .ks-chain-s { grid-template-columns: 1fr !important; }
    .zm-copy { display: none; }
    header.sk-topbar.top { padding: calc(.5rem + env(safe-area-inset-top, 0px)) .6rem .45rem !important; gap: .5rem !important; }
    header.sk-topbar.top > .brand { margin: 0 !important; }
    header.sk-topbar.top > .brand img { height: 32px !important; width: auto !important; }
    header.sk-topbar.top .sk-tb-controls .sound-btn .sound-label, header.sk-topbar.top .sk-tb-controls .sk-tb-fs { display: none !important; }
    header.sk-topbar.top .sk-tb-right h1 { font-size: 1rem !important; }
    .seo-in { padding-top: 32px; } .faq { grid-template-columns: 1fr; }
}
/* gsm liggend: vriendelijke melding */
.zm-rot { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .zm-rot { display: flex; position: absolute; inset: 0; z-index: 90; align-items: center; justify-content: center; padding: 1.2rem; background: #f4f7fb; text-align: center; }
    .zm-rot div { max-width: 420px; } .zm-rot svg { width: 54px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .zm-rot h2 { margin: .5rem 0 .3rem; font-family: var(--display); font-size: 1.3rem; } .zm-rot p { margin: 0; color: var(--muted); }
}
@media (max-width: 400px) { header.sk-topbar.top .sk-tb-right h1 .t-sk { display: none; } }
@media (min-width: 601px) { .sch-main { padding-bottom: 30px; } }
