/* Shared choice language. Opt-in surfaces only; never recolor learning notes. */
.kid-start[hidden]{display:none}
.screen-home>.kid-levels{max-width:760px}
/* max(): unchanged where there is no safe area; on an iPhone the Dynamic Island
   (and on an iPad the status bar) adds its height, so the title clears the shared
   Menu and coin buttons instead of sitting beside the island. */
.screen-home{padding-top:max(80px,calc(70px + env(safe-area-inset-top)))!important}
.kid-family-preview{display:flex;justify-content:center;gap:16px;margin:24px auto}
.kid-family-preview .home-fam-chip{width:56px;height:56px}
.ws-title>.kid-levels{max-width:600px}
#screenSelect>.kid-levels{max-width:1000px}
.kid-case-art{display:block;width:min(440px,100%);height:160px;object-fit:cover;border-radius:16px;margin:16px auto 0}
.kid-case-art[hidden]{display:none}
#screenTitle .title-actions{width:min(440px,100%)}
#screenTitle .title-ghost-row{flex-wrap:wrap;justify-content:center}
#screenTitle #titlePlayBtn{min-height:64px;background:#176877;color:#fff;box-shadow:none}
#screenTitle .kid-levels>summary{font-size:16px}
.kid-menu-art{display:block;width:100px;height:100px;object-fit:contain;margin:0 auto 16px}
.kid-start{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:min(440px,100%);min-height:88px;margin:24px auto 16px;padding:16px 24px;border:0;border-radius:16px;background:#176877;color:#fff;font:900 24px/1.2 Nunito,ui-rounded,system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.kid-start small{font-size:16px;font-weight:700;line-height:1.4}
.kid-start:hover{background:#145967}
.kid-levels{width:100%;margin:16px auto 0;text-align:left}
.kid-levels>summary{box-sizing:border-box;min-height:56px;padding:16px;color:#263955;font:800 18px/1.3 Nunito,ui-rounded,system-ui,sans-serif;cursor:pointer;text-align:center;list-style-position:inside}
.kid-levels[open]>summary{margin-bottom:16px}
.kid-start:focus-visible,.kid-levels>summary:focus-visible{outline:4px solid #183e74;outline-offset:4px}
:is(.wi-menu,.si-menu,.mm-menu){padding-top:max(80px,calc(70px + env(safe-area-inset-top)))!important;padding-bottom:32px!important}
:is(.wi-menu,.si-menu,.mm-menu) :is(.wi-title,.si-title,.mm-title){font-size:clamp(28px,5vw,40px);letter-spacing:0;line-height:1.15}
:is(.wi-menu,.si-menu,.mm-menu) :is(.wi-sub,.si-sub,.mm-sub){font-size:18px;line-height:1.5;max-width:40ch;margin-inline:auto}
:is(.wi-level,.si-level,.mm-level){min-height:64px}
/* Memory keeps the score engine; secondary numbers are available on demand. */
.memory-score-details{margin:8px 0;color:#263955}
.memory-score-details>summary{min-height:48px;box-sizing:border-box;padding:12px;text-align:center;font:800 16px/1.4 Nunito,ui-rounded,system-ui,sans-serif;cursor:pointer}
.memory-score-details>summary:focus-visible{outline:4px solid #183e74;outline-offset:2px}
.memory-score-details .hud-row{margin-block:8px}
@media(max-height:500px) and (min-width:650px){
  .kid-menu-art{width:64px;height:64px;margin-bottom:8px}
  :is(.wi-menu,.si-menu,.mm-menu){padding-top:max(72px,calc(70px + env(safe-area-inset-top)))!important}
  .kid-start{min-height:72px;margin-top:16px}
}
