/* Shared child-facing system. Teaching colors, canvas and game data are intact. */
:root{--kid-ink:#24345d;--kid-muted:#515c7e;--kid-pink:#ffeff7;--kid-lavender:#eeeaff;--kid-accent:#5451c9;--kid-border:#dedcf2;--kid-radius:28px;--kid-shadow:0 5px 0 #dfd6ef,0 12px 28px #66538c0b}
body.kid-ui203{background:linear-gradient(135deg,var(--kid-pink),var(--kid-lavender)) fixed;color:var(--kid-ink);font-size:18px;line-height:1.5;min-height:100dvh}
body.kid-ui203 #app{background:transparent;min-height:100dvh}
body.kid-ui203 .app-shell{margin-left:0;min-width:0;padding-bottom:0;background:transparent}
body.kid-ui203 .hub-main{width:100%;max-width:1440px;min-width:0;height:auto;min-height:0;padding:28px 28px 48px;overflow:visible;background:transparent}
body.kid-ui203 .hub-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;height:auto;max-width:none;padding:16px 28px;margin:0;background:#fffdfd;border-bottom:1px solid var(--kid-border)}
body.kid-ui203 .hub-topbar .brand{font-size:25px;white-space:nowrap;gap:10px;color:var(--kid-ink);text-transform:uppercase}
body.kid-ui203 .brand small{display:none}
body.kid-ui203 .brandmark{width:44px;height:44px;border-radius:15px;font-size:31px;background:var(--kid-accent);box-shadow:none}
body.kid-ui203 .hub-topbar .top-actions{display:flex;align-items:center;gap:10px;width:auto;flex-wrap:nowrap}
body.kid-ui203 button,body.kid-ui203 .primary,body.kid-ui203 .secondary,body.kid-ui203 select,body.kid-ui203 input:not([type=checkbox]):not([type=radio]),body.kid-ui203 summary{min-height:56px;touch-action:manipulation}
body.kid-ui203 button{min-width:48px;cursor:pointer}
body.kid-ui203 button:disabled{cursor:default}
body.kid-ui203 .round{width:56px;min-width:56px;height:56px;display:grid;place-items:center;padding:12px;background:#f4efff;border:1px solid var(--kid-border);border-radius:50%;box-shadow:none}
body.kid-ui203 .round .icon{width:28px;height:28px}
body.kid-ui203 .profile-pill{min-height:56px;background:#fff1f8;border:1px solid var(--kid-border);border-radius:28px;font-size:18px;max-width:200px;padding:6px 14px 6px 6px;gap:8px}
body.kid-ui203 .profile-pill img{width:40px;height:40px;border-radius:50%}
body.kid-ui203 .profile-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.kid-ui203 .hub-sidebar{background:#fffdfd;border-right:1px solid var(--kid-border);width:auto;padding:24px 14px;height:100dvh;position:sticky;top:0;align-self:start}
body.kid-ui203 .hub-sidebar .nav{display:grid;gap:14px;margin:0;padding:0}
body.kid-ui203 .hub-sidebar .nav button{display:flex;align-items:center;flex-direction:row;gap:14px;min-height:72px;padding:12px;border-radius:22px;background:transparent;border:0;box-shadow:none;color:var(--kid-ink)}
body.kid-ui203 .hub-sidebar .nav button.active{background:#eee6ff;box-shadow:inset 0 0 0 2px #c2b3ee}
body.kid-ui203 .hub-sidebar .nav-label{font-size:21px;line-height:1.3;font-weight:900;color:inherit}
body.kid-ui203 .hub-sidebar .nav .nav-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:0;background:transparent;box-shadow:none}
body.kid-ui203 .hub-sidebar .nav .home183-nav-image{width:32px;height:32px}
body.kid-ui203 :is(h1,h2,h3){color:var(--kid-ink);overflow-wrap:anywhere}
body.kid-ui203 h1{font-size:clamp(28px,3vw,36px);line-height:1.25}
body.kid-ui203 :is(.home183-grid,.learn-subject-grid65,.hub-books,.learn-activities65,.picture-grid72,.games-grid,.dictionary-topic-grid,#dictionary-results){display:grid;gap:20px;align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr))}
body.kid-ui203 .home183-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.kid-ui203 :is(.home183-card,.hub-book,.learn-picture71,.learn-subject65,.dictionary-topic-tile,.dictionary-card,.game-entry){display:flex;flex-direction:column;min-width:0;height:auto;padding:0;overflow:hidden;border:2px solid #fff;background:#fff;border-radius:var(--kid-radius);box-shadow:var(--kid-shadow);text-align:left;color:var(--kid-ink)}
body.kid-ui203 :is(.home183-card,.hub-book,.learn-picture71,.learn-subject65,.game-entry)>img{display:block;position:static;width:100%;max-width:none;height:auto;max-height:none;min-height:0;aspect-ratio:3/2;object-fit:cover;object-position:center;background:transparent;border-radius:0;margin:0;flex:none;transform:none;opacity:1;mix-blend-mode:normal}
body.kid-ui203 [data-illustration203=hub]>img{object-position:65% center}
body.kid-ui203 :is(.home183-card-copy,.learn-picture-copy71,.learn-subject65>span,.hub-book>div,.game-entry-copy){display:block;position:static;width:100%;padding:18px;min-height:86px;background:#fff;text-align:left;box-sizing:border-box}
body.kid-ui203 :is(.home183-card strong,.hub-book h2,.learn-picture71 strong,.learn-subject65 strong,.dictionary-topic-tile strong,.dictionary-card h2,.game-entry h2){font-size:24px;line-height:1.3;font-weight:900;margin:0;color:var(--kid-ink);white-space:normal}
body.kid-ui203 :is(.lesson-card h3,.f66-lesson strong,.hub-tile strong){font-size:24px;line-height:1.3}
/* Original descriptive text is retained in each card's title tooltip. */
body.kid-ui203 :is(.home183-card,.hub-book,.learn-picture71,.learn-subject65,.game-entry) :is(small,p){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.kid-ui203 :is(.learn-picture-cta71,.hub-book>div>strong,.game-launch){display:none}
body.kid-ui203 .hub-filters{display:flex;gap:10px;flex-wrap:wrap;overflow:visible;margin:20px 0}
body.kid-ui203 .hub-filters .chip{min-height:56px;padding:12px 18px;border-radius:20px;font-size:18px;background:#fff;color:var(--kid-ink);border:1px solid #d9cee9;box-shadow:none}
body.kid-ui203 .hub-filters .selected{background:#e9ddff;border-color:#b5a1de}
body.kid-ui203 :is(.panel,.hub-offline,.home183-today,.dictionary-search,.learn-settings65){border-radius:24px}
body.kid-ui203 .dictionary-search{background:#fff;border:1px solid var(--kid-border);padding:16px;gap:12px}
body.kid-ui203 .dictionary-card{padding:14px}
body.kid-ui203 .dictionary-card .dictionary-picture{height:auto;min-height:160px;aspect-ratio:1;border-radius:20px;background:#fff}
body.kid-ui203 .dictionary-card .dictionary-caption{padding:12px 2px}
body.kid-ui203 .dictionary-card .dictionary-audio{background:#f6f0ff;border-radius:18px}
body.kid-ui203 .dictionary-topic-tile{align-items:center;text-align:center;padding:16px;gap:14px}
body.kid-ui203 .dictionary-topic-tile img{width:100%;height:140px;min-height:0;max-height:none;flex:none;object-fit:contain}
body.kid-ui203 .dictionary-topic-tile span{display:block;min-width:0}
body.kid-ui203 .dictionary-topic-tile small{display:block;font-size:16px;color:var(--kid-muted);margin-top:6px}
body.kid-ui203 :is(.hub-pagination,.dictionary-page-controls,.dictionary-reader-nav190){display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px auto;max-width:520px}
body.kid-ui203 :is(.hub-pagination,.dictionary-page-controls,.dictionary-reader-nav190)>button{width:64px;min-width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;font-size:0;background:#fff;color:var(--kid-accent);border:2px solid #c9bce8;box-shadow:0 4px 0 #e2d6f0}
body.kid-ui203 :is(.hub-pagination,.dictionary-page-controls)>button:first-child::before{content:'←';font-size:32px;line-height:1}
body.kid-ui203 :is(.hub-pagination,.dictionary-page-controls)>button:last-child::before{content:'→';font-size:32px;line-height:1}
body.kid-ui203 .dictionary-reader-nav190 button .icon{width:30px;height:30px}
body.kid-ui203 #dictionary-paging{display:none}
body.kid-ui203 .dictionary-reader-nav190{margin:6px auto;width:100%}
body.kid-ui203 #dictionary-reader190{background:linear-gradient(135deg,var(--kid-pink),var(--kid-lavender))}
body.kid-ui203 #dictionary-reader190 button{min-height:56px}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-nav190 button{min-height:64px;min-width:64px;width:64px;height:64px;font-size:0;padding:0;border-radius:50%}
.kid-today203{display:grid;grid-template-columns:150px minmax(0,1fr) 80px;align-items:center;gap:24px;background:#fff;border:2px solid #fff;box-shadow:var(--kid-shadow);border-radius:32px;padding:24px;margin-top:32px;min-height:216px}
.kid-today203>img{width:150px;height:200px;object-fit:contain;align-self:end}
.kid-today203 .kid-today-copy203{min-width:0}
.kid-today203 .kid-today-copy203>span{color:#614e90;font-weight:850;font-size:18px}
.kid-today203 h2{font-size:30px;margin:6px 0}
.kid-today203 p{font-size:18px;margin:5px 0;color:var(--kid-muted)}
body.kid-ui203 .kid-today203 .kid-today-speak203{display:grid;place-items:center;width:80px;height:80px;min-width:80px;border:0;border-radius:50%;background:var(--kid-accent);color:#fff;box-shadow:0 5px 0 #d5ccf1;padding:20px}
.kid-today-speak203 .icon{width:36px;height:36px}
.kid-loading203{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;padding:28px;background:linear-gradient(135deg,#fff0f8,#ece7ff);pointer-events:auto}
.kid-loading203>img{width:min(220px,45vw);height:300px;max-height:42dvh;object-fit:contain;transform-origin:50% 90%;animation:kid-greeting203 1.5s ease-in-out infinite}
.kid-loading203 h1{font-size:26px;max-width:520px;margin:0}
.kid-loading203 p{font-size:18px;color:var(--kid-muted);margin:0}
.kid-loading-track203{width:min(300px,80vw);height:20px;padding:4px;border-radius:30px;background:#fff;box-shadow:inset 0 1px 4px #6c4b9b20;overflow:hidden}
.kid-loading-track203>span{display:block;width:45%;height:100%;border-radius:30px;background:linear-gradient(90deg,#f18bc1,#8a78eb);animation:kid-progress203 1.4s ease-in-out infinite alternate}
body.kid-loading-active203{overflow:hidden}
body.kid-loading-active203 :is(.hub-sidebar,.hub-topbar){pointer-events:none}
body.kid-ui203 :focus-visible{outline:4px solid var(--kid-accent);outline-offset:4px}
body.kid-ui203 .footer{margin-top:36px;line-height:1.6}
body.kid-ui203 .learn-balloon-wrap71{display:contents}
body.kid-ui203 .miko-nav{min-width:64px}
body.kid-ui203 .miko-controls{grid-template-columns:64px minmax(0,1fr) 56px 64px;gap:8px}
body.kid-ui203 .miko-icon{width:56px;height:56px}
body.kid-ui203.miko-active #app{display:block}
body.kid-ui203.miko-active .hub-main{padding:0;max-width:none}
body.kid-ui203.miko-active :is(.hub-topbar,.hub-sidebar){display:none!important}
body.kid-ui203.miko-active .miko-header h1,body.kid-ui203.miko-active .miko-complete-card h2{color:inherit}
@keyframes kid-greeting203{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes kid-progress203{from{transform:translateX(0)}to{transform:translateX(120%)}}
@media(min-width:768px){body.kid-ui203 #app{display:grid;grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:1100px){body.kid-ui203 :is(.hub-books,.learn-activities65,.picture-grid72,.games-grid,.dictionary-topic-grid,#dictionary-results){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 body.kid-ui203 #app{display:block}
 body.kid-ui203 .hub-sidebar{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:0;border:0;border-top:1px solid var(--kid-border);z-index:50;background:#fff}
 body.kid-ui203 .hub-sidebar .nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));min-height:88px}
 body.kid-ui203 .hub-sidebar .nav button{flex-direction:column;justify-content:center;gap:4px;min-width:0;min-height:64px;padding:6px 2px;border-radius:18px}
 body.kid-ui203 .hub-sidebar .nav-label{font-size:16px;line-height:1.3}
 body.kid-ui203 .hub-sidebar .nav .nav-icon{flex:0 0 30px;width:30px;height:30px}
 body.kid-ui203 .hub-sidebar .nav .home183-nav-image{width:30px;height:30px}
 body.kid-ui203 .hub-topbar{padding:12px;gap:6px;min-height:80px;flex-wrap:wrap}
 body.kid-ui203 .hub-topbar .brand{font-size:20px;gap:7px}
 body.kid-ui203 .brandmark{display:none}
 body.kid-ui203 .hub-topbar .top-actions{gap:8px;margin-left:auto}
 body.kid-ui203 .profile-pill{width:56px;max-width:56px;padding:6px;justify-content:center}
 body.kid-ui203 .profile-pill span{display:none}
 body.kid-ui203 .round{width:56px;min-width:56px}
 body.kid-ui203 .hub-main{padding:20px 12px calc(112px + env(safe-area-inset-bottom,0px));height:auto;min-height:0}
 body.kid-ui203 :is(.home183-grid,.learn-subject-grid65,.hub-books,.learn-activities65,.picture-grid72,.games-grid,.dictionary-topic-grid,#dictionary-results){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.kid-ui203 :is(.home183-card,.hub-book,.learn-picture71,.learn-subject65,.dictionary-topic-tile,.dictionary-card,.game-entry){border-radius:23px}
 body.kid-ui203 :is(.home183-card-copy,.learn-picture-copy71,.learn-subject65>span,.hub-book>div,.game-entry-copy){padding:14px 10px;min-height:84px}
 body.kid-ui203 :is(.home183-card strong,.hub-book h2,.learn-picture71 strong,.learn-subject65 strong,.dictionary-topic-tile strong,.dictionary-card h2,.game-entry h2){font-size:22px;line-height:1.3}
 body.kid-ui203 :is(.lesson-card h3,.f66-lesson strong,.hub-tile strong){font-size:22px}
 body.kid-ui203 .lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.kid-ui203 .hub-filters{gap:8px;flex-wrap:wrap}
 body.kid-ui203 .hub-filters .chip{font-size:16px;padding:10px 12px}
 body.kid-ui203 .dictionary-card{padding:10px}
 body.kid-ui203 .dictionary-card .dictionary-picture{min-height:120px}
 body.kid-ui203 .dictionary-topic-tile{padding:12px 8px;gap:10px}
 body.kid-ui203 .dictionary-topic-tile img{height:110px}
 body.kid-ui203 .dictionary-heading194 h1{font-size:28px}
 body.kid-ui203 .dictionary-search{padding:12px}
 .kid-today203{grid-template-columns:76px minmax(0,1fr) 64px;gap:12px;padding:18px 12px;margin-top:24px;border-radius:26px;min-height:184px}
 .kid-today203>img{width:76px;height:154px}
 .kid-today203 .kid-today-copy203>span{font-size:16px}
 .kid-today203 h2{font-size:24px}
 .kid-today203 p{font-size:16px}
 body.kid-ui203 .kid-today203 .kid-today-speak203{width:64px;height:64px;min-width:64px;padding:16px}
 .kid-today-speak203 .icon{width:30px;height:30px}
 body.kid-ui203 #toast{bottom:calc(104px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:380px){body.kid-ui203 .hub-topbar .brand{font-size:18px}body.kid-ui203 .hub-topbar .top-actions{gap:5px}body.kid-ui203 .profile-pill{display:none}}
@media(prefers-reduced-motion:reduce){.kid-loading203>img,.kid-loading-track203>span{animation:none}.kid-loading-track203>span{width:100%;opacity:.7}body.kid-ui203 *{scroll-behavior:auto;transition:none!important}}

/* Keep worksheet crop coordinates intact: interface72's generic max-width
   had shrunk the source image while leaving its negative offsets in place. */
body.kid-ui203 .count-picture img{width:500%;height:869.565%;max-width:none;max-height:none;object-fit:fill}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-stage190{height:auto;min-height:100%;display:flex;flex-direction:column;gap:14px;max-width:1000px}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-picture190{flex:none;width:100%;height:clamp(260px,52dvh,650px);min-height:260px;display:block}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-picture190>img{position:absolute;inset:0;width:100%;height:calc(100% - 30px);object-fit:contain}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-caption190{position:static;flex:none;max-height:none;overflow:visible;margin:0 auto;padding:10px 6px;background:#fff;border-radius:20px}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-head190{flex-wrap:wrap}
body.kid-ui203 #dictionary-reader190 .dictionary-reader-status190{max-height:none;overflow:visible}
.game-picture-hint203{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:12px;border:3px dashed #afa3eb;border-radius:22px;background:#fff5fc;margin:12px auto}
.game-picture-hint203 .animal-picture{width:48px;height:48px;object-fit:contain}.game-picture-hint203 strong{font-size:36px}.game-picture-hint203 .hint-dot203{width:22px;height:22px;border-radius:50%;background:#8b79df}.game-picture-hint203 .hint-empty203{width:90px;height:60px;border:4px solid #8b79df;border-radius:0 0 30px 30px;display:grid;place-items:center;font-size:32px}
@media(max-width:767px){
 body.kid-ui203.kid-playing203 .hub-topbar{min-height:56px;padding:4px 12px;flex-wrap:nowrap}
 body.kid-ui203.kid-playing203 .hub-topbar .brand{font-size:16px}
 body.kid-ui203.kid-playing203 .hub-topbar .profile-pill,body.kid-ui203.kid-playing203 .hub-topbar .kid-settings203{display:none}
 body.kid-ui203.kid-playing203 .hub-topbar .round{width:48px;min-width:48px;min-height:48px;height:48px}
 body.kid-ui203.kid-playing203 .hub-main{padding-top:8px}
 body.kid-ui203.kid-playing203 .puzzle-guide>img{width:64px;height:72px;object-fit:contain}
 body.kid-ui203.kid-playing203 .puzzle-guide h1{font-size:24px;margin:4px 0}
 body.kid-ui203.kid-playing203 .puzzle-guide{gap:12px;margin:8px 0}
}

body.kid-ui203 .dictionary-picture.image-loading203{background:linear-gradient(100deg,#f2eafa 25%,#ffeff8 45%,#e6ddf6 65%);background-size:220% 100%;animation:kid-image203 1.5s ease-in-out infinite}
@keyframes kid-image203{to{background-position:-220% 0}}
@media(prefers-reduced-motion:reduce){body.kid-ui203 .dictionary-picture.image-loading203{animation:none}}

/* Use actual arrow images and a separate accessible label. Explicitly beat
   dictionary-layout194's ID-scoped button font/padding rules on phones. */
body.kid-ui203[data-page="dictionary"] :is(#dictionary-paging-top,#dictionary-paging) .dictionary-page-controls{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:12px;width:100%;max-width:520px;box-sizing:border-box;margin:20px auto}
body.kid-ui203[data-page="dictionary"] :is(#dictionary-paging-top,#dictionary-paging) .dictionary-page-controls>[data-dict-page]{position:relative;display:grid;place-items:center;flex:none;width:64px;min-width:64px;max-width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;font-size:18px;line-height:1;overflow:hidden;box-sizing:border-box}
body.kid-ui203[data-page="dictionary"] :is(#dictionary-paging-top,#dictionary-paging) .dictionary-page-controls>[data-dict-page]::before{content:none}
body.kid-ui203[data-page="dictionary"] .dictionary-page-arrow205{display:block;width:32px;height:32px;max-width:32px;margin:0;object-fit:contain}
body.kid-ui203[data-page="dictionary"] .dictionary-page-label205{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.kid-ui203[data-page="dictionary"] .dictionary-page-controls>span{text-align:center;min-width:0;white-space:nowrap;font-size:18px;line-height:1.4}
body.kid-ui203[data-page="dictionary"] .dictionary-page-controls>[data-dict-page]:disabled{opacity:.4;cursor:default}
