/* Live implementation of the approved Academy mockups. Raster surfaces and
   landscapes are independent of semantic controls and profile-owned progress. */
:root{
 --academy-navy:#142333;--academy-paper:#f4ead5;--academy-ink:#14283a;--academy-brass:#c8a96a;
 --academy-edge:#ac8549;--academy-line:#cfb98c;--academy-muted:#53616a;
 --academy-leather:url('/assets/academy/ui/navy-leather.webp');
 --academy-wood:url('/assets/academy/ui/walnut.webp');
 --academy-metal:url('/assets/academy/ui/brass.webp');
 --academy-frame:url('/assets/academy/ui/parchment-frame.webp');
 --academy-paper-image:url('/assets/academy/ui/paper-grain.webp');
}
body:not(.library-body),.library-body{--ck-bg:#f4ead5;--ck-text:#14283a;--ck-muted:#53616a;--ck-gold:#87491f;--ck-border:#cfb98c;--ck-header:104px;--ck-rail:144px;color:var(--academy-ink);background:#f4ead5;font-family:var(--kid-font)}
:where(button,a,input,select,summary):focus-visible{outline:3px solid #3f5c6b;outline-offset:4px}
:where(.kingdom-topbar,.kingdom-rail,.kid-bottom-nav,.city-map-stage) :is(button,a):focus-visible{outline-color:#ffe2a1}
[hidden]{display:none!important}
/* Licensed, filled game pictograms replace the thin custom line icons. */
.toy-icon,.ui-symbol{display:inline-block;flex:none;width:28px;height:28px;background:currentColor;-webkit-mask:var(--academy-icon) center/contain no-repeat;mask:var(--academy-icon) center/contain no-repeat;mix-blend-mode:normal;vertical-align:middle}
.toy-home{--academy-icon:url('/brand/game-icons/home.svg')}.toy-build{--academy-icon:url('/brand/game-icons/build.svg')}.toy-stories{--academy-icon:url('/brand/game-icons/stories.svg')}.toy-map{--academy-icon:url('/brand/game-icons/map.svg')}.toy-collection{--academy-icon:url('/brand/game-icons/collection.svg')}.toy-rewards{--academy-icon:url('/brand/game-icons/rewards.svg')}.toy-parents{--academy-icon:url('/brand/game-icons/parents.svg')}.toy-settings{--academy-icon:url('/brand/game-icons/settings.svg')}.toy-river{--academy-icon:url('/brand/game-icons/river.svg')}.toy-castle{--academy-icon:url('/brand/game-icons/castle.svg')}.toy-storybook{--academy-icon:url('/brand/game-icons/storybook.svg')}.toy-speaker{--academy-icon:url('/brand/game-icons/speaker.svg')}.toy-compass{--academy-icon:url('/brand/game-icons/compass.svg')}.toy-leaf{--academy-icon:url('/brand/game-icons/leaf.svg')}.toy-hint{--academy-icon:url('/brand/game-icons/hint.svg')}.toy-sun{--academy-icon:url('/brand/game-icons/sun.svg')}.toy-arrow,.toy-back{--academy-icon:url('/brand/game-icons/arrow.svg')}.toy-arrow{rotate:-90deg}.toy-back{rotate:90deg}.toy-replay{--academy-icon:url('/brand/game-icons/replay.svg')}.toy-check{--academy-icon:url('/brand/game-icons/check.svg')}.toy-heart{--academy-icon:url('/brand/game-icons/heart.svg')}.toy-hand{--academy-icon:url('/brand/game-icons/hand.svg')}.toy-lock{--academy-icon:url('/brand/game-icons/lock.svg')}
.kingdom-topbar,.library-body .library-header{height:104px;background:var(--academy-leather) center/cover,#142333;border-bottom:2px solid #a9864d;color:#fff4dd;box-shadow:0 2px 8px #101a2460;padding:12px 30px;gap:24px}
.kingdom-wordmark{gap:20px}.kingdom-wordmark>img,.library-brand>img{width:65px;height:79px;filter:drop-shadow(0 2px 3px #0005)}
.kingdom-wordmark>span,.kingdom-wordmark b,.library-body .library-brand strong{font:600 27px/1.04 Cinzel,Georgia,serif!important;letter-spacing:.3px!important;color:#fff4dd!important}
.kingdom-motto,.library-affiliation{font:500 17px/1.4 var(--kid-font);color:#dfb564;border-left:1px solid #d2b87d70;padding-left:24px;margin-right:auto;font-style:normal}.kingdom-motto strong,.library-affiliation strong{font-weight:500}
.local-save-indicator{font-size:12px;color:#d3daca}.profile-button{background:var(--academy-metal) center/cover,#c8a96a;border:2px solid #f7d991;border-bottom:4px solid #8b652e;width:72px;height:76px;min-height:0;padding:4px;border-radius:50%;box-shadow:0 3px 4px #0006}.profile-button>img{width:59px;height:59px;border-radius:50%;object-fit:cover;object-position:top;background:#b5904b}.profile-button>span{display:none}
.kingdom-rail,.kid-bottom-nav{background:var(--academy-leather) center/cover,#142333;border-right:2px solid #a9864d;color:#e8c276;scrollbar-width:thin;box-shadow:none}
.kingdom-rail{padding:28px 15px 16px;gap:12px}.kingdom-rail a{min-height:112px;gap:8px;padding:12px 4px;color:#ebc57e;border:2px solid transparent;border-radius:12px}
.kingdom-rail a>span:not(.toy-icon){font:600 19px/1.2 var(--kid-font)}
.kingdom-rail .toy-icon,.kid-bottom-nav .toy-icon{width:49px;height:49px;background:var(--academy-metal) center/cover,#e8c47c;filter:drop-shadow(0 2px 1px #000b)}
.kingdom-rail a:is(.active,:hover),.kid-bottom-nav a:is([aria-current],:hover){background:#30455596;color:#ffe1a2;border-color:#c7a260;box-shadow:inset 0 0 0 2px #142333,inset 0 0 0 3px #ad8b507d,0 3px 5px #0005}
.kingdom-rail a[data-view=achievements]{display:none}.kingdom-rail a:is([data-view=parents],[data-view=settings]){min-height:60px;gap:5px;padding:5px}.kingdom-rail a:is([data-view=parents],[data-view=settings]) .toy-icon{width:26px;height:26px}.kingdom-rail a:is([data-view=parents],[data-view=settings])>span:not(.toy-icon){font-size:12px}
.royal-button,.kid-button,.library-body .kid-button{min-height:52px;border-radius:12px;font:800 18px/1.25 var(--kid-font);text-decoration:none}
.royal-button.gold,.kid-button.gold,.library-body .kid-button.gold,.build-play-button,.city-build-button,.library-body #libraryContinue,#gameScreen .place-assist{background:var(--academy-metal) center/cover,#d5b16b;color:#112739;border:2px solid #f7dfa0;border-bottom:5px solid #9b7134;box-shadow:inset 0 0 0 2px #b1853f,inset 0 0 0 4px #f8d48666,0 4px 6px #45311738;border-radius:15px}
.royal-button.gold,.kid-button.gold,.library-body .kid-button.gold,.build-play-button,.city-build-button,.library-body #libraryContinue,#gameScreen .place-assist{background:none;border:2px solid transparent;border-image:url('/assets/academy/ui/brass-button.webp') 112 fill / 12px stretch;box-shadow:0 4px 6px #45311738}
.royal-button.gold:hover,.build-play-button:hover,.city-build-button:hover{filter:brightness(1.07)}
.royal-button.subtle,.kid-button{color:#233d50;background:var(--academy-paper-image) center/cover,#f4ead5;border:1px solid #b89860;box-shadow:inset 0 0 0 3px #fff6dc55,0 2px 3px #75532c22}
.royal-button.compact{font-size:15px;min-height:48px}.royal-progress{height:8px;border:1px solid #bdab81;background:#e8d5aa}.royal-progress i{background:#6f8641}
.academy-ornament{display:block;width:37px;height:30px;color:#bc9655;margin:0 auto 18px}
.toy-cursor{--academy-icon:url('/brand/game-icons/cursor.svg')}.toy-rotate{--academy-icon:url('/brand/game-icons/rotate.svg')}.toy-fit{--academy-icon:url('/brand/game-icons/fit.svg')}.toy-camera{--academy-icon:url('/brand/game-icons/camera.svg')}.toy-search{--academy-icon:url('/brand/game-icons/search.svg')}.toy-redo{--academy-icon:url('/brand/game-icons/replay.svg');scale:-1 1}.toy-down{--academy-icon:url('/brand/game-icons/arrow.svg')}.free-header .toy-icon,.search-field .toy-icon{width:20px;height:20px}.free-tools .toy-icon{width:26px;height:26px}
/* A single illustrated setting, with the three activities visible immediately. */
.home-storybook{background:url('/assets/academy/academy-riverside.webp') 63% top/cover no-repeat,#465447;min-height:calc(100dvh - var(--ck-header));padding-bottom:8px}
.home-hero{height:540px;min-height:0;padding:37px 40px;display:flex;align-items:flex-start;background:none;border:0;isolation:auto;overflow:visible}
.home-hero-art{display:none}.home-hero-copy{width:505px;max-width:42%;min-height:458px;height:auto;padding:25px 26px 30px;align-items:center;text-align:center;border:15px solid transparent;border-image:var(--academy-frame) 66 fill / 15px stretch;border-radius:20px;background:none;box-shadow:0 9px 18px #14233335}
.home-hero h1{font-weight:700;font-size:58px;line-height:1.08;letter-spacing:-1.5px;text-shadow:none;color:#122739}.home-hero h1 em{color:inherit}
.home-hero-copy>p{font-size:22px;line-height:1.4;max-width:none;margin:22px 0 28px;color:#536068}
.home-actions{display:block;width:100%;min-width:0;max-width:none}.home-actions .royal-button.gold{width:100%;min-height:94px;font-size:30px;justify-content:center;gap:22px}.home-actions .toy-icon{width:42px;height:42px}.home-promise{display:none}
.home-discover{margin:0 42px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
.home-discover .discovery-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;height:270px;padding:5px 12px 20px;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:18px;background:none;box-shadow:0 7px 9px #15241845;text-align:center;color:#14283a;overflow:visible}
.home-discover .discovery-card>img{width:100%;height:198px;max-width:340px;object-fit:contain;mix-blend-mode:darken;position:static;filter:none;transform:none;opacity:1}
.home-discover .discovery-card h2{font-size:30px;line-height:1.15;letter-spacing:-.6px;margin:0}
.home-footer{margin:18px 0 0;padding:12px 20px;font:500 25px/1.2 Cinzel,Georgia,serif;color:#f5d392;background:var(--academy-wood) center/cover;text-align:center;text-shadow:0 2px 2px #301d11}
.home-journey-details{margin:0;background:var(--academy-paper-image) center/cover;padding:0 30px 10px}.home-journey-details>summary{font:800 17px var(--kid-font);min-height:55px;color:#584b34}.home-journey{margin:14px 0 24px;padding:22px;background:#fffaed;border:1px solid #cfb98c;border-radius:18px;color:#14283a}.home-journey h2{font-size:26px}.home-journey p{color:#53616a;font-size:15px}.home-city-card{margin:0 0 20px;background:#e6e6ce;color:#384e3b;border-color:#a9b38d}.home-city-emblem{width:50px;height:50px}
/* The builder's atelier: a title and hero model, chapter tabs, four large cards. */
#projectScreen.kids-build-picker{padding:26px 40px 38px;background:var(--academy-paper-image) center/cover no-repeat,#f4ead5}
.kids-build-picker>*{max-width:none}.build-picker-intro{display:grid;grid-template-columns:30% minmax(0,1fr);gap:30px;align-items:stretch;margin-bottom:24px}
.kids-build-picker .build-picker-heading{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.build-picker-kicker{display:block;color:#985022;font-size:16px;letter-spacing:.3px;margin-bottom:22px}.kids-build-picker .build-picker-heading h2{font-weight:700;font-size:clamp(40px,4.6vw,72px);line-height:1.14;letter-spacing:-1.5px}.build-picker-heading .academy-ornament{margin-top:22px;margin-bottom:0;width:40px;height:32px}.build-heading-actions{display:none}
.build-invitation{min-height:326px;gap:10px;margin:0;padding:12px 18px 12px 4px;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:18px;background:none;box-shadow:0 5px 8px #71552c30}
.build-invitation-art{width:53%;height:286px;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0;background:none;box-shadow:none;mix-blend-mode:multiply}
.build-invitation-copy{text-align:center;min-width:0;flex:1}.build-next-label{color:#856235;font-size:12px}.build-invitation h3{font-size:34px;line-height:1.13;letter-spacing:-.5px;margin:12px 0 14px}.build-invitation p{font-size:22px;font-weight:500;line-height:1.4;margin:0 0 24px;color:#405563}.build-play-button{min-height:84px;width:100%;font-size:28px;gap:17px}.build-play-button .toy-icon{width:36px;height:36px}.build-guide-puppy{display:none}
.kids-build-picker .build-worlds{gap:12px;margin-bottom:0;border-bottom:2px solid #c2a26a;align-items:end}
.kids-build-picker .build-worlds .chapter-card{display:flex;justify-content:center;gap:15px;min-height:82px;padding:12px 14px;border:1px solid #bb9b63;border-radius:18px 18px 0 0;background:var(--academy-paper-image) center/cover;color:#14283a;box-shadow:inset 0 0 0 4px #fff4d882}
.kids-build-picker .build-worlds .chapter-card img{width:46px;height:46px}.kids-build-picker .build-worlds .chapter-card strong{font-size:22px;align-self:center}.kids-build-picker .build-worlds .chapter-card>span{display:none}
.kids-build-picker .build-worlds .chapter-card.active{background:var(--academy-leather) center/cover,#142333;color:#ffe0a2;border:2px solid #c5a064;border-bottom:0;min-height:86px;box-shadow:inset 0 0 0 3px #203348}
.build-grid-heading{margin:4px 0;min-height:24px}.build-grid-heading h3{font-size:15px;color:#675538}.kids-build-picker .lesson-filter{min-height:32px;padding:3px 10px;font-size:12px;border:0;background:none}
.kids-build-picker .build-picture-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.kids-build-picker .project-card{border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:18px;overflow:visible;box-shadow:0 6px 8px #76604327;background:none;padding:0}
.kids-build-picker .project-card.recommended{border-color:transparent;box-shadow:0 6px 9px #7660433b}
.kids-build-picker .lesson-card-picture{background:none;aspect-ratio:1.13;overflow:hidden}.kids-build-picker .project-card img{object-fit:contain;mix-blend-mode:multiply}
.kids-build-picker .card-title{font-size:24px;line-height:1.1;text-align:center;padding:4px 4px 6px;min-height:59px}.kids-build-picker .card-action-row{padding:0 5px 4px;min-height:28px;justify-content:center}.kids-build-picker .card-status{font-size:12px;background:none;color:#725932;min-height:26px;padding:3px 10px}.kids-build-picker .card-status:before{display:none}
.kids-build-picker .card-lesson-number{top:5px;left:5px;min-width:27px;height:27px;border:1px solid #b39a68;border-radius:50%;background:#f8eacb;color:#77603b;font-size:12px;box-shadow:none}.kids-build-picker .lesson-listen{right:1px;bottom:0;width:44px;height:44px}.lesson-listen .toy-icon{width:22px;height:22px}
.build-picker-footer{margin-top:32px}.build-picker-footer img{display:none}.build-picker-footer p{font-size:15px}.build-family-tools{font-size:15px}
/* An illustrated atlas is the default; live 3D construction is one tap away. */
#hubScreen.map-view{padding:0;background:var(--academy-paper-image) center/cover,#f4ead5}
.map-view .hub-heading{position:absolute;top:0;left:0;width:38%;height:166px;margin:0;padding:30px 22px 22px 42px;display:flex;align-items:center;z-index:3}
.map-view .hub-heading h1{font-size:42px;line-height:1.08;letter-spacing:-1px;margin:0 0 12px}.map-view .hub-heading p{font-size:17px;line-height:1.4;margin:0}.map-view #hubHeadingActions{display:none}
.growing-city{max-width:none;position:relative;color:#14283a}.city-growth{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.city-districts{margin:0 0 0 38%;height:166px;padding:30px 30px 24px 0;gap:9px;align-items:stretch}
.city-districts button{flex-direction:column;gap:5px;background:var(--academy-paper-image) center/cover,#f4ead5;border:1px solid #bea16e;border-radius:13px;min-height:0;padding:9px 4px;color:#605335;font-size:21px;box-shadow:inset 0 0 0 3px #fff4d75e}
.city-districts button>span:last-child{text-align:center;gap:2px}.city-districts small{font-size:10px;color:inherit;opacity:.8}.city-districts .toy-icon{width:36px;height:36px}.city-districts button[aria-selected=true]{color:#ffe0a2;background:var(--academy-leather) center/cover,#142333;border:2px solid #b99553;box-shadow:inset 0 0 0 3px #203348,0 3px 4px #4b3b2938}
.city-map-stage{position:relative;height:calc(100dvh - var(--ck-header) - 166px);min-height:550px;border-top:2px solid #bd9b5c}
.city-terrain{height:100%;border:0;box-shadow:none;border-radius:0;background:#d4dfd4}.city-terrain[data-mode=city]{border-top:1px solid #afbcac}
.atlas-scroll{width:100%;height:100%;overflow:auto hidden;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#bea56f #162e37}.atlas-world{position:relative;width:100%;min-width:840px;height:100%;min-height:420px}
.atlas-art,.atlas-route{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}.atlas-route{pointer-events:none}
.city-pin{width:55px;height:55px;min-width:44px;min-height:44px;background:var(--academy-leather) center/cover,#142333;border:2px solid #f2d68a;border-bottom:4px solid #977637;border-radius:50%;color:#ffefd0;box-shadow:0 0 0 2px #142333,0 5px 7px #15291c99;font:800 26px var(--kid-font)}
.city-pin.selected{background:var(--academy-metal) center/cover,#d1af5d;color:#172739;border:3px solid #ffefb9;border-bottom:4px solid #a7762c;box-shadow:0 0 0 5px #ffdf8566,0 4px 9px #15291c88;scale:1.08}
.city-pin.building{background:var(--academy-leather) center/cover,#1e2a3a;color:#ffefd0}.city-pin.building.selected{background:var(--academy-metal) center/cover;color:#172739}
.city-pin.built{background:#4e663f;color:#fff5d4;border-color:#efda99}.city-pin .toy-icon{width:29px;height:29px}.city-pin i{background:#f5cd6b;border-color:#ffedb4}
.map-mode-switch{position:absolute;top:18px;right:24px;z-index:5;display:flex;padding:4px;gap:4px;background:var(--academy-leather) center/cover,#142333;border:1px solid #c5a261;border-radius:14px;box-shadow:0 3px 8px #172a273d}
.map-mode-switch button{min-height:44px;padding:7px 12px;display:flex;align-items:center;gap:7px;background:none;border:1px solid transparent;border-radius:9px;color:#eddbb6;font:700 13px var(--kid-font)}.map-mode-switch button[aria-pressed=true]{background:#f6e4bc;color:#213749;border-color:#b89c61}.map-mode-switch .toy-icon{width:22px;height:22px}
.atlas-compass{position:absolute;right:35px;bottom:40px;width:117px;height:117px;color:#d9b563;filter:drop-shadow(0 2px 1px #18332c);pointer-events:none}.atlas-compass .toy-icon{width:100%;height:100%;background:var(--academy-metal) center/cover,#d9b563}.atlas-pan-hint{display:none}
.city-preview{position:absolute;z-index:4;bottom:28px;left:26px;display:flex;align-items:center;gap:10px;width:460px;min-height:180px;padding:10px 17px 13px 2px;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:16px;background:none;box-shadow:0 7px 12px #1423334a}
.city-preview-model{width:137px;height:140px;background:none;object-fit:contain;border:0;border-radius:0;mix-blend-mode:multiply}.city-preview-copy h2{font:800 24px/1.12 var(--kid-font);letter-spacing:-.4px;margin:3px 0 6px}.city-preview-copy p{font-size:13px;line-height:1.4;color:#53616a}.city-preview-copy .city-eyebrow{color:#826135;font-size:10px}.city-piece-meter{margin:7px 0;height:5px;background:#decda6}.city-piece-meter i{background:#677d42}
.city-build-button{min-width:0;min-height:62px;width:100%;font:800 23px/1.2 var(--kid-font);gap:12px;padding:10px 14px;margin-top:13px}.city-build-button .toy-icon{width:29px;height:29px}
.city-site-nav{position:absolute;right:28px;bottom:9px;z-index:5;margin:0;padding:4px 8px;gap:12px;background:#142333e8;color:#e8c98b;border:1px solid #a68850;border-radius:12px}.city-site-nav button{background:none;color:#e8c98b;border:0;width:44px;height:44px}.city-site-nav .toy-icon{width:21px;height:21px}.city-site-nav span{font-size:12px}.city-site-nav b.city-site-position{color:#ffe2a1;background:#36434b;font-size:12px}
.city-explore-list{margin:0;display:flex;justify-content:center;gap:14px;padding:15px;background:#f2e5c9}.city-explore-list button{display:flex;align-items:center;gap:7px;min-height:44px;border:1px solid #c4ad7d;background:#fff3d9;border-radius:10px;padding:8px 14px;color:#52633d;font:700 14px var(--kid-font)}.city-explore-list .toy-icon{width:22px;height:22px}
.city-discovery{position:absolute;z-index:7;bottom:85px;right:25px;width:min(400px,calc(100% - 40px));margin:0;background:#fff3da;border:2px solid #ad8953;box-shadow:0 6px 16px #14233355;color:#14283a}.city-discovery p{font-size:16px;line-height:1.5}.city-discovery button{min-width:44px;min-height:44px}.city-saving-note{margin:0!important;padding:10px;background:#f2e5c9;color:#6c624f;font-size:12px}.city-compass .toy-icon{width:40px;height:40px}
/* Immersive building controls retain the real geometry, camera and part tray. */
#gameScreen .game-header{inset:0 0 auto!important;min-height:90px;height:90px!important;padding:12px 20px!important;align-items:center;background:var(--academy-leather) center/cover,#142333!important;border-bottom:2px solid #a9864d!important;gap:20px}
.game-brand{order:1;display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff4dc;font:500 19px/1.05 Cinzel,Georgia,serif}.game-brand img{width:48px;height:60px}
#gameScreen .game-back{order:0}#gameScreen .build-progress{position:static;inset:auto;transform:none;order:2;flex:1;width:auto;max-width:none;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 22px;border:0;background:none;border-radius:0;box-shadow:none;padding:0 25px}
#gameScreen .active-build-title{grid-column:1;grid-row:1/3;justify-content:center;flex-wrap:wrap;gap:6px 12px}#gameScreen #activeLessonNumber{display:none}#gameScreen #activeLessonName{font-size:27px;color:#fff0d1;line-height:1.12;text-align:center}#gameScreen .build-progress>.toy-icon{display:none}#gameScreen .build-progress-label{grid-column:2;color:#f4ddb0;font-size:22px;text-align:center}#gameScreen .stability-track{grid-column:2;width:150px;background:#67583c;height:5px}#gameScreen #stabilityFill{background:#e4bc6d}#gameScreen .build-help{order:3}
#gameScreen .game-back,#gameScreen .build-help,#gameScreen #voiceReplayBtn{background:var(--academy-leather) center/cover,#1e2a3a;color:#ebca86;border:1px solid #c8a96a;box-shadow:inset 0 0 0 3px #223545,0 3px 3px #0d172066;border-radius:13px}
#gameScreen .game-back .toy-icon,#gameScreen .build-help .toy-icon{width:29px;height:29px}
#gameScreen .mission-panel,#gameScreen .mission-panel.collapsed{inset:116px auto auto 24px!important;width:345px!important;display:block}
#gameScreen .puppy-bubble{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;min-height:170px;padding:22px 18px;border:13px solid transparent;border-image:var(--academy-frame) 66 fill / 13px stretch;border-radius:16px;background:none;box-shadow:0 4px 8px #14233333}
#gameScreen .puppy-bubble:before,#gameScreen .puppy-bubble:after{display:none}#gameScreen .mission-action{width:100%;flex:0 0 100%;text-align:center}#gameScreen .mission-action strong{font-size:30px!important;line-height:1.14!important;color:#14283a}
#gameScreen #voiceReplayBtn{display:flex;gap:9px;min-width:112px;width:auto;height:45px;flex-basis:auto;padding:8px 12px;font:700 15px var(--kid-font)}#gameScreen #voiceReplayBtn .toy-icon{width:24px;height:24px}
#gameScreen .piece-tray,#gameScreen .piece-tray.collapsed{background:var(--academy-leather) center/cover,#142333!important;border:2px solid #b28c4e!important;border-bottom:5px solid #77572c!important;border-radius:20px!important;box-shadow:0 0 0 9px #5c3b24,0 0 0 11px #b3864c,0 12px 20px #14233340!important}
#gameScreen .build-stage{color:#e0c89a;border-color:#7f735951}#gameScreen .tray-title{color:#fff2d2!important}#gameScreen .piece-card{background:var(--academy-paper-image) center/cover,#f4ead5;border-color:#d0b37a!important;border-radius:15px!important;box-shadow:0 3px 0 #98733b!important}#gameScreen .piece-card.available{background:var(--academy-paper-image) center/cover,#f4ead5}#gameScreen .piece-card.selected{background:#ffe8af!important;border-color:#ebc574!important;box-shadow:0 0 0 2px #fff0b6,0 3px 0 #a98035!important}
#gameScreen .place-assist{font-size:24px}#gameScreen .piece-prompt{background:#e8ddc1;color:#394b56}#gameScreen .build-play-idea{color:#fff0c6}#gameScreen .undo-button,#gameScreen .hint-button,#gameScreen .replay-adventure{background:#263b4a;color:#e3bf74;border-color:#a98b50;box-shadow:0 3px 0 #101e2b}#gameScreen #morePiecesBtn{color:#efd99d;background:#3a4d59;border-color:#bda371}#gameScreen .play-actions .toy-icon{width:25px;height:25px}
/* The reading room opens into four real books, with functional shelf filters. */
.library-body .library-header{max-width:none;margin:0;width:100%;display:flex;align-items:center}.library-brand{display:flex;gap:20px;align-items:center}.library-affiliation{white-space:nowrap}.library-body .grownup-link{color:#eccb87;border:1px solid #bca064;border-radius:50%;padding:12px;background:#263b4a}.grownup-link .toy-icon{width:31px;height:31px}.grownup-link>span:last-child{display:none}
.young-library{max-width:none;padding:0;background:var(--academy-wood) center/cover,#513821}.library-body .library-welcome{position:relative;isolation:isolate;overflow:hidden;display:block;min-height:436px;margin:0;padding:25px 45px 55px;border:0;border-radius:0;background:#18232a;box-shadow:none}
.library-welcome>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;z-index:-1;border-radius:0;opacity:1;filter:none;mix-blend-mode:normal}
.library-welcome>div{width:470px;max-width:45%;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.library-welcome .academy-affiliation{font-size:14px;letter-spacing:2px;color:#e1b466;margin:0 0 10px}.library-body .library-welcome h1{font-size:55px;letter-spacing:-1px;line-height:1.05;color:#fff3de;margin:0 0 18px;text-shadow:0 3px 4px #12213066}
.library-invitation{border:11px solid transparent;border-image:var(--academy-frame) 66 fill / 11px stretch;padding:10px 15px;text-align:center;color:#182f41;box-shadow:0 4px 10px #10242b4f}.library-invitation .academy-ornament{height:22px;margin:0 auto 5px}.library-invitation h2{font:800 29px/1.15 var(--kid-font);margin:0}.library-invitation>p{font:500 19px/1.5 var(--kid-font);margin:5px 0;color:#4f5a5e}.library-body #libraryContinue{min-height:43px;font-size:15px;padding:5px 18px;max-width:230px;margin:4px auto 0}
.library-body .library-shelf{position:relative;width:100%;margin:0;padding:0 27px 30px;border-top:3px solid #a07940}.shelf-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.library-filters{display:flex;gap:12px;position:relative;margin:-58px 12px 18px;min-height:55px;align-items:stretch;max-width:1050px}
.library-filters button{display:flex;justify-content:center;align-items:center;gap:12px;flex:1;min-height:55px;padding:10px 18px;border:1px solid #bb9b64;border-bottom:0;border-radius:16px 16px 0 0;color:#655337;font:700 19px var(--kid-font);background:var(--academy-paper-image) center/cover,#f4ead5;box-shadow:inset 0 0 0 3px #fff1d887}.library-filters .toy-icon{width:27px;height:27px}.library-filters button[aria-pressed=true]{background:var(--academy-leather) center/cover,#142333;border:2px solid #be9651;color:#f6cf86;box-shadow:inset 0 0 0 3px #15293b}
.library-body .library-searchbar{padding:0;margin:0 12px 16px;display:flex;align-items:center;gap:10px}.library-searchbar input{max-width:230px;background:#f7edd7;border-color:#b29461;min-height:40px!important;padding:7px 14px!important;font-size:14px!important}.library-searchbar label{display:none}.library-searchbar #storyCount{color:#eee1bb;font-size:13px;flex:1;text-align:right}
.library-body .library-story-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}
.library-body .library-story-card{position:relative;display:flex;flex-direction:column;min-height:420px;padding:18px 17px 21px 26px;border:0;border-radius:0;overflow:hidden;background:url('/assets/academy/ui/book-frame.webp') center/100% 100% no-repeat;box-shadow:0 10px 9px #1b1c198c;color:#fff1d6}
.library-body .story-card-cover{display:block;position:relative;margin:0 0 -32px;height:270px;min-height:180px;overflow:hidden;border:0;border-radius:8px 8px 24px 24px;background:#8d7954}.story-card-cover>img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.library-body .story-card-copy{position:relative;z-index:1;display:flex;flex-direction:column;gap:8px;flex:1;align-items:center;text-align:center;padding:8px 9px 0;background:var(--academy-leather) center/cover,#142333;border-radius:15px 15px 0 0}
.library-body .story-card-copy h3,.library-body .story-card-copy h3 a{font:700 24px/1.12 var(--kid-font);letter-spacing:-.25px;color:#fff1d6!important;margin:0;text-decoration:none}.library-body .story-card-copy p{display:none}.book-reading-state{color:#d4d4c2;font-size:11px;line-height:1.25;background:none!important;min-height:14px;padding:0}.library-body .book-reading-state.is-finished{color:#d7e6bc;background:none}
.story-card-copy .kid-button{min-height:46px;font-size:20px;padding:7px 12px;border-radius:11px;margin-top:auto;width:100%}.story-card-copy .kid-button .toy-icon{display:none}.library-body .library-story-card:hover{transform:translateY(-3px)}
.little-theater{margin:10px 27px 25px;padding:22px 30px;background:var(--academy-leather) center/cover,#142333;border:1px solid #b89554;color:#fff0ce;border-radius:14px}.library-body .little-theater h2{color:#fff0ce}.little-theater p{color:#dad6c8}.library-body .library-footer{padding:20px 20px 35px;color:#786445;background:#f4ead5}.library-footer p{color:#625132}.library-footer>span{font-size:13px}
/* Picture reader and theater: the scene occupies the page, with a paper reading surface. */
.library-body:has(.picture-reader){padding-left:0;background:var(--academy-leather) center/cover,#142333}
.library-body .picture-reader{max-width:none;padding:0 15px 25px;background:none}.reader-topbar{background:none;color:#f5d38c;min-height:95px;margin:0;padding:10px 20px;border-radius:0}.reader-topbar a{color:#e8c179;font-size:21px}.reader-topbar h1{color:#fff0d7;font:600 26px/1.12 var(--kid-font)}.bookmark-button{background:#1d3446;color:#deb76b;border:1px solid #af8b4a;border-radius:50%;width:58px;height:58px}.bookmark-button[aria-pressed=true]{background:#69502e;color:#ffdb8c}
.reader-book{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto auto;min-height:calc(100dvh - 120px);position:relative;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:12px;box-shadow:0 10px 12px #09111ab0;overflow:hidden;background:#f4ead5}
.reader-book .story-pages,.reader-book .picture-page{display:contents}.page-picture{grid-column:1;grid-row:1/4;min-height:600px;background:#b99b69;border-radius:8px 0 0 8px}.page-picture .scene-art{width:100%;min-width:calc(100dvh - 120px);left:50%;top:50%;transform:translate(-50%,-50%)}
.story-page-copy{background:var(--academy-paper-image) center/cover,#f4ead5;padding:45px 56px 0;justify-content:center;grid-column:2;grid-row:1}.story-page-copy .story-page-number{font-size:13px;color:#7f6c4c}.story-page-copy h2{font-size:35px;line-height:1.15;margin:12px 0 24px}.library-body .story-prose{font:700 calc(var(--story-font-size,23px) * 1.5 * var(--academy-accessible-text,1))/1.5 var(--kid-font)!important;color:#14283a!important;max-width:30ch}.wonder-prompt{background:none;border-color:#c3aa7c;font-size:16px;margin-top:25px}.wonder-prompt summary{min-height:48px}.wonder-prompt p{font-size:18px;line-height:1.5}
.reader-primary{position:static;grid-column:2;grid-row:2;width:auto;padding:16px 44px 0;justify-content:flex-start;background:none;z-index:2}.library-body .listen-button{background:var(--academy-paper-image) center/cover,#f4ead5;color:#19364c!important;border:1px solid #b89d6a;border-radius:12px;min-width:180px;font-size:21px}.reader-primary .speech-status{font-size:12px;text-align:left;color:#75613e}
.reader-wayfinding{background:var(--academy-paper-image) center/cover,#f4ead5;position:static;grid-column:2;grid-row:3;width:auto;padding:20px;box-shadow:none;border:0}.story-page-dots{display:none}.library-body .story-reader-controls{padding:0 20px;background:none;grid-template-columns:100px minmax(0,1fr) 130px}.library-body .story-reader-controls span{display:inline}.story-reader-controls>div>span{display:none!important}.reader-grownups{background:#f4ead5;border:1px solid #b69b66;border-radius:14px;padding:18px 24px}.library-body .reader-grownups{max-width:1100px;margin-top:25px}
.library-body:has(.watch-shell){padding-left:0;background:var(--academy-leather) center/cover,#142333}.library-body:has(.watch-shell)>.library-header,.library-body:has(.watch-shell)>.kid-bottom-nav,.library-body:has(.watch-shell)>.library-footer{display:none}
.library-body .watch-shell{max-width:none;margin:0;padding:18px 22px 35px;color:#ffeac2}.watch-heading{display:flex;align-items:center;gap:28px;min-height:65px;margin-bottom:18px}.watch-heading>a{flex:none;color:#efc67a;border:1px solid #ad8749;border-radius:13px;padding:10px 20px;min-height:56px;font-size:19px}.watch-heading h1{flex:1;color:#ffe6b6;font:700 32px/1.15 var(--kid-font);margin:0;text-align:center}
.watch-book{position:relative;display:block;border:2px solid #bc985b;border-radius:28px;background:none;overflow:visible;box-shadow:none}.library-body .watch-frame{height:58vh;max-height:610px;min-height:350px;aspect-ratio:auto;border-radius:26px;overflow:hidden}.watch-frame .scene-art{position:absolute;width:100%;aspect-ratio:1;top:50%;transform:translateY(-50%)}
.library-body .watch-caption{position:relative;z-index:2;margin:-50px 30px -30px;padding:16px 30px;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:18px;background:none;text-align:center;box-shadow:0 5px 9px #0d172666}.watch-caption>span{font-size:13px;color:#7d613a}.library-body .watch-caption h2{display:none}.library-body .watch-caption p{font:700 28px/1.5 var(--kid-font);color:#14283a;margin:0;max-height:none}
.library-body .watch-controls.watch-transport{display:flex;align-items:center;justify-content:space-between;margin:53px 24px 0;padding:0;gap:18px}.watch-transport .kid-button{min-height:64px;font-size:24px;padding:12px 25px;flex:1}.watch-transport label{color:#ead6ac;font-size:14px;white-space:nowrap}.watch-timeline{margin:0 24px;padding:13px 0!important}.watch-timeline output,.library-body .watch-status{color:#dbceb1}.watch-status{margin:0 24px;font-size:13px!important}.library-body .watch-scenes{margin:16px 24px 0}.library-body .watch-scenes button{background:#21394b;color:#e4c181;border-color:#a48b57}.library-body .watch-scenes button[aria-current=true]{background:#f1dfb8;color:#173144;border-color:#d0ae64}
.reader-book:has(.story-complete:not([hidden])){display:block;min-height:0}
/* Personal pages read as a keepsake album rather than a dashboard. */
.hub-screen:not(.map-view){background:var(--academy-paper-image) center/cover,#f4ead5;padding:38px 48px}.hub-heading{margin-bottom:28px}.hub-heading h1{color:#14283a;font:800 48px/1.12 var(--kid-font);letter-spacing:-1px}.hub-heading p{font-size:19px;color:#53616a}
#hubScreen :is(.reward-card,.reward-card.earned,.creation-card,.parent-summary,.settings-panel,.family-profile){background:none;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:17px;box-shadow:0 5px 8px #71552c24;color:#14283a}
#hubScreen .achievement-banner{background:var(--academy-leather) center/cover,#142333;border:2px solid #b89556;color:#fff0cd;border-radius:15px;box-shadow:0 5px 7px #17233333}.achievement-banner h2{color:#fff0cd}.achievement-banner p,.achievement-banner span,.achievement-banner strong small{color:#ddd9c4}.achievement-banner>strong{color:#e8be6b}
.reward-card h2,.creation-card h3,.settings-panel h2,.parent-summary h2{color:#14283a}.reward-card p,.reward-card small,.reward-status,.family-profile span,.settings-panel>p,.quiet-note{color:#53616a!important;font-size:14px;line-height:1.55}.reward-card.earned .reward-status{color:#4d713f!important}.reward-card.earned{border-color:transparent}
.creation-preview{background:#e8dec5;border-radius:12px;border:0}.creation-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.creation-card{padding:0 4px 9px}.creation-card>div{padding:16px}.creation-card h3{font-size:27px}.creation-actions{gap:15px}.collection-section h2{font-size:28px}.illustrated-empty{background:none;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:17px;padding:25px}.illustrated-empty h3{font-size:31px}.illustrated-empty p{font-size:17px}.small-empty{background:#f8efd9;color:#14283a;padding:22px;border-radius:14px}
.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.family-profile{width:auto;min-height:260px;padding:20px 18px;text-align:center}.family-profile img{width:160px;height:160px;object-fit:contain;border-radius:50%;background:#e8d3a0;border:2px solid #bf9b5c;margin:0 auto 16px}.family-profile.active{background:none;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;box-shadow:0 0 0 3px #b79559}.family-profile b{font:800 29px var(--kid-font)}.family-profile span{font-size:12px}.section-title h2{font-size:25px}.parent-stats strong{font-family:var(--kid-font);font-size:42px;color:#294558}.parent-stats>div>span{font-size:15px}.parent-progress-list{font-size:14px}.parent-summary{margin-top:28px}
.settings-panel h2 .toy-icon{width:38px;height:38px;color:#a4772f}#hubScreen .family-profile.active{outline:3px solid #b79559}.settings-layout{gap:25px}.settings-panel{padding:24px 26px}.settings-panel h2{display:flex;gap:18px;align-items:center;font:800 31px/1.2 var(--kid-font);margin:0 0 20px}.setting-row{border-color:#c9b286;padding:19px 0;gap:20px;min-height:92px}.setting-row b{font:800 21px var(--kid-font)}.setting-row small{font:500 16px/1.5 var(--kid-font);max-width:430px;color:#53616a}.setting-row input[type=checkbox]{width:78px;min-width:78px;height:43px;border:2px solid #bca063;border-radius:28px;background:#b5b6a7;box-shadow:inset 0 0 0 2px #eee0b75f}.setting-row input[type=checkbox]:before{width:31px;height:31px;left:4px;top:4px;background:var(--academy-metal) center/cover,#d3b36f;box-shadow:0 1px 3px #24354466;border:1px solid #fbe5a8}.setting-row input:checked{background:#193347}.setting-row input:checked:before{transform:translateX(35px)}.setting-row select{background:#fff1d5;color:#153247;border:1px solid #ac8e56;min-height:48px;border-radius:10px}.shortcut-list span{font-size:15px;color:#53616a}.kingdom-dialog,.builder-tools-dialog{background:var(--academy-paper-image) center/cover,#f4ead5;border-color:#bca063;color:#14283a}
.free-header{background:var(--academy-leather) center/cover,#142333!important;color:#ffedca;border-bottom:2px solid #b59253}.free-header h1{color:#ffedca}.free-header input{background:var(--academy-paper-image) center/cover,#f4ead5;color:#14283a;border:1px solid #bda16e;padding:8px 15px;border-radius:10px}.free-catalog,.free-inspector{background:var(--academy-paper-image) center/cover,#f4ead5;border-color:#bda16e;color:#14283a}.free-catalog h2,.free-inspector h2{color:#14283a}.free-part{background:#fbf0d8;border-color:#c8b180;border-radius:13px}.free-part.active{background:#ffe3a0;border-color:#9f7d3b}.free-tools{background:var(--academy-leather) center/cover,#142333;border:2px solid #bd9752;border-radius:15px;box-shadow:0 5px 10px #18253666}.free-tools button{color:#e4bf79;background:none;border-color:#a5895466;min-height:55px}.free-tools button svg{stroke:#e4bf79}.free-environment,.free-instruction{border-color:#bda16e;background:#fff5dedf;color:#1c3546}
#kingdomRail a.active{border:2px solid #c7a260;box-shadow:inset 0 0 0 2px #142333,inset 0 0 0 3px #ad8b507d,0 3px 5px #0005}
#hubScreen .collection-section .illustrated-empty{background:none;border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;box-shadow:0 5px 8px #71552c24}
.collection-section .illustrated-empty>img{width:245px;height:195px;object-fit:contain;mix-blend-mode:darken}
.collection-keepsake{margin:30px 0 0;padding:26px 35px;display:flex;justify-content:space-between;align-items:center;gap:22px;border:2px solid #bda064;border-radius:18px;background:var(--academy-leather) center/cover,#142333;color:#efcf8c}
.collection-keepsake h2{font:800 30px/1.2 var(--kid-font);margin:0 0 10px;color:#fff0d6}.collection-keepsake p{margin:0;color:#ebc47c;font-size:17px}.collection-keepsake>div:last-child{display:flex;gap:40px}.collection-keepsake .toy-icon{width:74px;height:74px}
.keepsake-tabs{display:flex;gap:14px;border-bottom:2px solid #b99a60;margin:15px 0 30px}
.keepsake-tabs button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:76px;flex:1;padding:12px 18px;border:1px solid #b69a64;border-radius:16px 16px 0 0;background:var(--academy-paper-image) center/cover,#f4ead5;color:#233a4b;font:800 24px var(--kid-font)}
.keepsake-tabs button[aria-pressed=true]{background:var(--academy-leather) center/cover,#142333;color:#f2d18b;border:2px solid #c9a868;box-shadow:inset 0 0 0 3px #233747}
.keepsake-tabs .toy-icon{width:34px;height:34px}
#hubScreen .settings-layout .backup-panel{grid-column:1/-1;order:2;background:var(--academy-leather) center/cover,#142333;border:2px solid #b99458;border-radius:16px;padding:25px 32px}
.backup-panel h2{color:#f8e4bc}.backup-panel>p,.backup-panel .quiet-note{color:#dad3c0!important;max-width:880px}
.backup-panel .asset-credits{font-size:12px}.asset-credits a{color:inherit;text-decoration:underline}
.settings-layout .keyboard-panel{grid-column:1/-1;order:3;margin:0;min-height:0;padding:10px 24px}
.keyboard-panel>summary{min-height:48px;cursor:pointer;font:700 18px/48px var(--kid-font)}
@media(max-width:700px){.keepsake-tabs{gap:7px;margin-bottom:23px}.keepsake-tabs button{min-height:85px;font-size:14px;flex-direction:column;gap:7px;padding:8px 4px}.keepsake-tabs .toy-icon{width:28px;height:28px}#hubScreen .settings-layout .backup-panel{padding:22px 18px}}
@media(min-width:1101px){
 .library-filters{max-width:calc(100% - 240px);margin-left:0;margin-right:0}
 .library-body .library-searchbar{position:absolute;top:-52px;right:27px;margin:0;gap:0;width:218px}
 .library-body .library-searchbar input{width:100%;max-width:none;min-height:44px!important;flex-basis:auto}
 .library-searchbar #storyCount{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .library-body .library-story-card{min-height:408px}

 .kingdom-motto{display:block}.screen:not(.game-screen):not(.free-screen){bottom:0}
 .library-body:has(.young-library),.library-body:has(.storyboards-shell){padding-left:144px}.library-body .library-header{margin-left:-144px;width:calc(100% + 144px)}
 .kid-bottom-nav{top:104px;left:0;bottom:0;transform:none;width:144px;max-width:none;min-height:0;padding:28px 15px;display:flex;flex-direction:column;justify-content:flex-start;gap:12px;border-radius:0}
 .kid-bottom-nav a{flex:none;width:100%;min-height:112px;gap:8px;padding:12px 4px;border:2px solid transparent;border-radius:12px;color:#ebc57e;font-size:19px}
 .home-storybook{height:calc(100dvh - 104px);min-height:840px}.home-hero{height:calc(100% - 343px)}
 #gameScreen .piece-tray{width:min(1110px,calc(100% - 90px))!important;grid-template-columns:minmax(0,1fr) 305px;display:grid!important;column-gap:22px;padding:16px 22px 20px!important;min-height:232px}
 #gameScreen .build-stage{grid-column:1/-1}#gameScreen .toybox-heading{grid-column:1;grid-row:2}#gameScreen .piece-list{grid-column:1;grid-row:3}#gameScreen .play-actions{grid-column:2;grid-row:2/4;height:auto;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 54px}#gameScreen .primary-action{grid-column:1/-1;align-self:stretch}#gameScreen .place-assist,#gameScreen .test-button{height:100%;min-height:90px;font-size:29px}#gameScreen .piece-card{height:145px!important}#gameScreen .piece-prompt{height:100%;min-height:90px;font-size:22px}#gameScreen .build-play-idea{grid-column:1/-1}
 .hub-screen[data-hub-view=parents] .hub-heading{max-width:34%;position:absolute;top:70px;left:48px}.hub-screen[data-hub-view=parents] .hub-heading h1{font-size:62px;max-width:8ch}.hub-screen[data-hub-view=parents] .hub-heading p{max-width:24ch}.hub-screen[data-hub-view=parents] .family-profiles{margin-left:37%;min-height:340px}.hub-screen[data-hub-view=parents] .family-profile{min-height:285px}.hub-screen[data-hub-view=parents] .profile-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}
}
@media(max-width:1300px) and (min-width:1101px){
 body:not(.library-body),.library-body{--ck-rail:118px}.kingdom-rail{padding:22px 9px}.kingdom-rail a{min-height:104px}.kingdom-rail a>span:not(.toy-icon){font-size:16px}.kingdom-rail .toy-icon{width:41px;height:41px}.home-hero-copy{max-width:47%;padding:20px}.home-hero h1{font-size:48px}.home-hero-copy>p{font-size:19px}.home-actions .royal-button.gold{font-size:25px;min-height:80px}.home-discover .discovery-card h2{font-size:25px}.build-picker-intro{grid-template-columns:28% 1fr;gap:20px}.build-invitation h3{font-size:27px}.build-invitation p{font-size:18px}.kids-build-picker .build-worlds .chapter-card strong{font-size:17px}.map-view .hub-heading h1{font-size:33px}.city-districts button{font-size:17px}.library-body .library-story-card{min-height:350px;padding:14px 13px 17px 21px}.library-body .story-card-cover{height:210px}.library-body .story-card-copy h3,.library-body .story-card-copy h3 a{font-size:21px}.library-body .story-card-copy{padding:8px 5px 0}.game-brand{display:none}
}
@media(max-width:1100px){
 body:not(.library-body),.library-body{--ck-rail:0px;--ck-header:82px}.kingdom-topbar,.library-body .library-header{height:82px;padding:9px 22px}.kingdom-wordmark>img,.library-brand>img{width:46px;height:60px}.kingdom-wordmark>span,.kingdom-wordmark b,.library-body .library-brand strong{font-size:23px!important}.kingdom-motto,.library-affiliation{display:block;font-size:13px;padding-left:18px}.local-save-indicator{display:none}.profile-button{width:59px;height:61px}.profile-button>img{width:45px;height:45px}
 .kingdom-rail,.kid-bottom-nav{top:auto;bottom:0;left:0;width:100%;max-width:none;height:calc(86px + env(safe-area-inset-bottom));min-height:86px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));transform:none;gap:6px;padding:6px 16px calc(6px + env(safe-area-inset-bottom));border:0;border-top:2px solid #b38f4e;border-radius:0;overflow:visible;backdrop-filter:none;z-index:60}
 .kingdom-rail a,.kid-bottom-nav a{min-height:72px;gap:3px;padding:6px 3px;border:1px solid transparent;border-radius:10px;color:#eac981}.kingdom-rail a .toy-icon,.kid-bottom-nav a .toy-icon{width:37px;height:37px}.kingdom-rail a>span:not(.toy-icon),.kid-bottom-nav a{font-size:14px}.kingdom-rail a[data-view=map]{display:flex}.kingdom-rail :is([data-view=parents],[data-view=settings],[data-view=achievements],.rail-spacer){display:none}
 .screen:not(.game-screen):not(.free-screen){bottom:calc(86px + env(safe-area-inset-bottom))}.home-storybook{min-height:0}.home-hero{height:535px;padding:30px}.home-hero-copy{max-width:52%;width:420px;min-height:420px;padding:24px 20px}.home-hero h1{font-size:45px}.home-hero-copy>p{font-size:18px}.home-actions .royal-button.gold{font-size:25px;min-height:75px}.home-discover{gap:17px;margin:0 25px}.home-discover .discovery-card{height:230px;padding:7px 5px 15px}.home-discover .discovery-card>img{height:152px}.home-discover .discovery-card h2{font-size:23px}.home-footer{font-size:23px;padding:14px;margin-top:20px}
 #projectScreen.kids-build-picker{padding:24px}.build-picker-intro{grid-template-columns:1fr 1.6fr;gap:20px;margin-bottom:20px}.build-picker-kicker{font-size:12px}.kids-build-picker .build-picker-heading h2{font-size:43px}.build-invitation{min-height:290px;flex-direction:column;padding:6px 12px 14px}.build-invitation-art{width:100%;height:160px}.build-invitation-copy{width:100%}.build-invitation h3{font-size:25px;margin:3px 0 9px}.build-next-label{display:none}.build-invitation p{display:none}.build-play-button{min-height:57px;font-size:22px}.kids-build-picker .build-worlds .chapter-card{min-height:78px;gap:5px;padding:9px}.kids-build-picker .build-worlds .chapter-card.active{min-height:81px}.kids-build-picker .build-worlds .chapter-card img{width:34px;height:34px}.kids-build-picker .build-worlds .chapter-card strong{font-size:16px}.kids-build-picker .build-picture-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.kids-build-picker .card-title{font-size:21px}
 .map-view .hub-heading{width:100%;height:108px;position:relative;padding:24px 28px}.map-view .hub-heading h1{font-size:33px;margin-bottom:7px}.map-view .hub-heading p{font-size:16px}.city-districts{margin:0;height:108px;padding:5px 22px 15px;gap:10px}.city-districts button{font-size:18px;flex-direction:row;gap:9px}.city-districts button>span:last-child{text-align:left}.city-districts .toy-icon{width:32px;height:32px}.city-map-stage{height:calc(100dvh - 384px);min-height:560px}.city-preview{width:420px;bottom:28px;left:20px}.city-preview-model{width:123px}.atlas-compass{right:25px;bottom:82px;width:90px;height:90px}.city-pin{width:49px;height:49px;font-size:23px}.city-site-nav span{font-size:0}.city-site-nav .city-site-position{font-size:12px}.map-mode-switch{top:14px;right:17px}
 .library-body .library-header{margin-left:0;width:100%}.young-library{padding:0}.library-body .library-welcome{min-height:402px;padding:28px 25px 60px}.library-welcome>div{max-width:49%;width:390px}.library-body .library-welcome h1{font-size:43px}.library-welcome .academy-affiliation{font-size:10px}.library-invitation h2{font-size:25px}.library-invitation>p{font-size:16px}.library-body .library-shelf{padding:0 20px 20px}.library-filters{margin-left:0;margin-right:0;gap:10px}.library-filters button{font-size:17px;padding:10px 9px;gap:8px}.library-body .library-story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.library-body .library-story-card{min-height:370px;padding:14px 15px 18px 21px}.library-body .story-card-cover{height:230px}.library-body .story-card-copy{padding:7px 5px 0}.library-body .story-card-copy h3,.library-body .story-card-copy h3 a{font-size:22px}.library-body .library-footer{padding-bottom:110px}
 .game-brand{display:none}#gameScreen .game-header{height:82px!important;padding:10px 17px!important}#gameScreen #activeLessonName{font-size:23px}#gameScreen .build-progress{padding:0 15px}#gameScreen .mission-panel,#gameScreen .mission-panel.collapsed{inset:104px auto auto 20px!important;width:305px!important}#gameScreen .mission-action strong{font-size:26px!important}#gameScreen .puppy-bubble{padding:15px;min-height:140px}
 .picture-page{min-height:650px}.page-picture{min-height:650px}.story-page-copy{padding:28px 30px 0}.story-page-copy h2{font-size:30px}.library-body .story-prose{font-size:calc(var(--story-font-size,23px) * 1.1 * var(--academy-accessible-text,1))!important}.reader-primary{width:auto;padding:16px 30px 0}.reader-wayfinding{width:auto;padding:20px 15px}.library-body .story-reader-controls{padding:0 12px;grid-template-columns:70px 1fr 95px;gap:7px}.reader-topbar h1{font-size:22px}
 .hub-screen:not(.map-view){padding:30px}.hub-heading h1{font-size:42px}.hub-heading p{font-size:17px}.family-profile img{width:130px;height:130px}.settings-panel{padding:21px}.setting-row b{font-size:19px}.setting-row small{font-size:14px}.setting-row input[type=checkbox]{min-width:65px;width:65px;height:38px}.setting-row input[type=checkbox]:before{width:26px;height:26px}.setting-row input:checked:before{transform:translateX(27px)}
}
@media(max-width:700px){
 body:not(.library-body),.library-body{--ck-header:64px}.kingdom-topbar,.library-body .library-header{height:64px;padding:6px 12px;gap:12px}.kingdom-wordmark,.library-brand{gap:9px}.kingdom-wordmark>img,.library-brand>img{width:33px;height:47px}.kingdom-wordmark>span,.kingdom-wordmark b,.library-body .library-brand strong{font-size:15px!important}.kingdom-motto,.library-affiliation{display:block;white-space:normal;font-size:10px;line-height:1.3;padding-left:9px;max-width:104px;min-width:0}.kingdom-motto strong,.library-affiliation strong{display:block}.profile-button{width:46px;height:48px;border-width:1px;border-bottom-width:3px;padding:3px}.profile-button>img{width:36px;height:36px}.library-body .grownup-link{padding:6px}.grownup-link .toy-icon{width:28px;height:28px}
 .kingdom-rail,.kid-bottom-nav{height:calc(76px + env(safe-area-inset-bottom));min-height:76px;padding:4px 6px calc(4px + env(safe-area-inset-bottom));gap:3px}.kingdom-rail a,.kid-bottom-nav a{min-height:64px;padding:4px 2px;gap:4px;border-radius:8px}.kingdom-rail a .toy-icon,.kid-bottom-nav a .toy-icon{width:31px;height:31px}.kingdom-rail a>span:not(.toy-icon),.kid-bottom-nav a{font-size:11px}.screen:not(.game-screen):not(.free-screen){bottom:calc(76px + env(safe-area-inset-bottom))}
 .home-storybook{background-position:62% top;background-size:auto 580px;padding:0;min-height:0}.home-hero{height:auto;min-height:0;padding:297px 10px 0;display:block;overflow:visible;background:none}.home-hero-copy{max-width:none;width:100%;min-height:0;margin:0;padding:10px 13px 11px;border-width:10px;border-image-width:10px;border-radius:14px;box-shadow:0 5px 10px #1c332d40}.home-hero-copy .academy-ornament{width:25px;height:14px;margin:0 auto 2px}.home-hero h1{font-size:36px;line-height:1.06;letter-spacing:-.7px}.home-hero-copy>p{font-size:14px;margin:8px 0 10px;line-height:1.4;max-width:none}.home-actions .royal-button.gold{font-size:26px;min-height:63px;gap:16px}.home-actions .toy-icon{width:31px;height:31px}.home-discover{margin:10px 10px 0;grid-template-columns:1fr 1fr;gap:10px}.home-discover .discovery-build{display:none}.home-discover .discovery-card{height:158px;min-height:0;padding:1px 4px 11px;border-width:8px;border-image-width:8px;gap:0}.home-discover .discovery-card>img{height:107px;width:100%;max-width:none}.home-discover .discovery-card h2{font-size:18px;line-height:1.13;margin:0}.home-footer{display:none;font-size:16px;margin:10px 0 0;padding:11px}.home-journey-details{padding:0 14px 10px}.home-journey{padding:16px;grid-template-columns:38px minmax(0,1fr);gap:10px}.home-journey h2{font-size:23px}.home-journey>img{width:35px;height:45px}.home-city-card{padding:18px 15px}.home-city-copy>strong{font-size:20px}
 #projectScreen.kids-build-picker{padding:18px 13px 28px}.build-picker-intro{display:block;margin-bottom:16px}.kids-build-picker .build-picker-heading{align-items:flex-start;text-align:left;padding:0 4px;margin-bottom:17px}.build-picker-kicker{font-size:9px;letter-spacing:1px;margin-bottom:6px}.kids-build-picker .build-picker-heading h2{font-size:32px;line-height:1.1;letter-spacing:-.8px}.build-picker-heading h2 br{display:none}.build-picker-heading .academy-ornament{display:none}.build-invitation{flex-direction:row;min-height:157px;gap:8px;padding:5px 5px 8px;border-width:8px;border-image-width:8px}.build-invitation-art{width:43%;height:132px}.build-invitation-copy{text-align:left}.build-invitation h3{font-size:21px;margin:0 0 13px}.build-play-button{min-height:48px;font-size:16px;gap:8px;padding:8px}.build-play-button .toy-icon{width:22px;height:22px}.kids-build-picker .build-worlds{gap:5px}.kids-build-picker .build-worlds .chapter-card{flex-direction:column;min-height:84px;gap:4px;padding:6px 3px;border-radius:11px 11px 0 0}.kids-build-picker .build-worlds .chapter-card.active{min-height:86px}.kids-build-picker .build-worlds .chapter-card img{width:31px;height:31px}.kids-build-picker .build-worlds .chapter-card strong{font-size:11px;min-height:26px;line-height:1.15}.kids-build-picker .build-picture-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px}.kids-build-picker .project-card{border-width:8px;border-image-width:8px}.kids-build-picker .lesson-card-picture{aspect-ratio:1}.kids-build-picker .card-title{font-size:18px;min-height:49px;padding:2px 2px 4px}.kids-build-picker .card-action-row{justify-content:flex-start;padding-left:9px;min-height:32px}.kids-build-picker .card-status{font-size:11px;padding:4px 0}.kids-build-picker .lesson-listen{width:44px;height:44px;right:-1px;bottom:-2px}.kids-build-picker .card-lesson-number{min-width:22px;height:22px;font-size:10px;left:2px;top:2px}.build-grid-heading{margin:8px 2px}.build-grid-heading h3{font-size:13px}
 .map-view .hub-heading{position:relative;height:auto;min-height:100px;padding:21px 17px 14px;align-items:flex-start}.map-view .hub-heading h1{font-size:30px;line-height:1.1;margin:0 0 7px}.map-view .hub-heading p{font-size:13px;line-height:1.45}.city-districts{height:98px;padding:0 12px 12px;gap:6px}.city-districts button{flex-direction:column;padding:6px 3px;gap:4px;font-size:12px;border-radius:10px}.city-districts button>span:last-child{text-align:center}.city-districts small{font-size:9px}.city-districts .toy-icon{width:27px;height:27px}.city-map-stage{height:auto;min-height:0;background:#f4ead5;padding-bottom:61px}.city-terrain{height:395px;border:0;border-radius:0;overflow:hidden}.atlas-world{min-width:780px;min-height:395px}.city-pin{width:46px;height:46px;font-size:21px}.map-mode-switch{top:11px;left:12px;right:auto;gap:3px;padding:3px}.map-mode-switch button{font-size:12px;min-height:43px;padding:7px 9px}.map-mode-switch .toy-icon{width:21px;height:21px}.atlas-compass{width:59px;height:59px;bottom:25px;right:15px}#hubScreen .atlas-pan-hint{display:block;position:absolute;bottom:12px;left:15px;margin:0;padding:6px 12px;background:#142333e6;color:#ead29e;border:1px solid #c1a165;border-radius:8px;font-size:11px;pointer-events:none}
 .city-preview{position:relative;width:calc(100% - 24px);left:auto;bottom:auto;min-height:150px;margin:-9px 12px 0;padding:7px 9px 10px 1px;border-width:8px;border-image-width:8px;gap:8px;box-shadow:0 5px 8px #735c3533}.city-preview-model{width:104px;height:115px}.city-preview-copy h2{font-size:21px}.city-preview-copy .city-eyebrow{font-size:9px}.city-preview-copy p{font-size:12px}.city-build-button{font-size:18px;min-height:48px;margin-top:10px;padding:7px 9px;gap:9px}.city-build-button .toy-icon{width:24px;height:24px}.city-site-nav{bottom:5px;left:50%;right:auto;transform:translateX(-50%);width:225px;justify-content:space-between;height:48px;padding:1px 4px;border-radius:10px}.city-site-nav span{font-size:11px}.city-site-position{font-size:10px}.city-discovery{position:absolute;bottom:220px;left:12px;right:auto;width:calc(100% - 24px)}.city-explore-list{padding:12px;gap:8px;overflow-x:auto;justify-content:flex-start}.city-explore-list button{font-size:12px;min-width:145px;padding:7px 10px}.city-saving-note{font-size:11px;padding:8px 16px}.city-terrain[data-mode=city]{height:515px}
 .library-body .library-welcome{min-height:350px;padding:18px 16px 69px}.library-welcome>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:66% center;z-index:-1;opacity:1}.library-welcome>div{width:100%;max-width:none;padding:0;background:none;border:0;border-radius:0;text-align:left}.library-welcome .academy-affiliation{font-size:9px;letter-spacing:1.2px;margin-bottom:8px}.library-body .library-welcome h1{font-size:34px;max-width:12ch;margin-bottom:13px}.library-invitation{width:72%;padding:6px;border-width:8px;border-image-width:8px}.library-invitation .academy-ornament{height:14px;width:26px}.library-invitation h2{font-size:23px}.library-invitation>p{font-size:13px;max-width:none;margin:4px 0}.library-body #libraryContinue{min-height:43px;font-size:14px;margin-top:4px;padding:6px 14px}.library-invitation .ui-symbol{width:18px;height:18px}
 .library-body .library-shelf{padding:0 12px 18px}.library-filters{margin-top:-59px;margin-bottom:13px;gap:5px;max-width:none}.library-filters button{flex-direction:column;font-size:11px;line-height:1.15;min-height:57px;gap:4px;padding:6px 2px;border-radius:10px 10px 0 0}.library-filters .toy-icon{width:21px;height:21px}.library-body .library-searchbar{margin:0 2px 12px;gap:8px;flex-wrap:nowrap}.library-searchbar input{width:64%;max-width:210px;flex-basis:auto!important;font-size:12px!important;min-height:36px!important}.library-body .library-searchbar #storyCount{font-size:10px;flex-basis:auto;white-space:nowrap}.library-body .library-story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.library-body .library-story-card{min-height:291px;padding:10px 10px 14px 16px;overflow:hidden}.library-body .story-card-cover{height:172px;min-height:0;margin-bottom:-16px;border-radius:5px}.library-body .story-card-copy{padding:6px 3px 0;gap:7px;border-radius:8px 8px 0 0}.library-body .story-card-copy h3,.library-body .story-card-copy h3 a{font-size:18px;line-height:1.09}.book-reading-state{font-size:9px;min-height:12px}.story-card-copy .kid-button{font-size:17px;min-height:44px;padding:6px;border-radius:8px}.little-theater{margin:10px 12px 20px;padding:18px;grid-template-columns:85px 1fr;gap:14px}.little-theater h2{font-size:25px}.little-theater p{font-size:14px}.little-theater .kid-button{font-size:14px}.library-body .library-footer{padding-bottom:100px}
 .library-body .picture-reader{padding:0 0 22px}.reader-topbar{min-height:74px;padding:7px 12px;gap:10px;grid-template-columns:auto minmax(0,1fr) 44px}.reader-topbar>a{font-size:14px;gap:5px}.reader-topbar h1{font-size:17px}.bookmark-button{height:44px;width:44px;min-height:44px}.bookmark-button .toy-icon{width:23px;height:23px}.reader-book{display:block;min-height:0;border:0;box-shadow:none;border-radius:0;overflow:visible}.picture-page{display:block;min-height:0}.page-picture .scene-art{min-width:0}.page-picture{height:35dvh;min-height:230px;max-height:330px;border-radius:0}.story-page-copy{padding:24px 26px 8px;text-align:center;align-items:center}.story-page-copy h2{font-size:29px;margin:0 0 16px}.library-body .story-prose{font-size:calc(var(--story-font-size,23px) * var(--academy-accessible-text,1))!important;line-height:1.5!important;max-width:29ch}.wonder-prompt{margin-top:13px;padding:0;border:0}.reader-primary{position:static;width:auto;padding:16px 22px 0;justify-content:center;background:var(--academy-paper-image) center/cover,#f4ead5}.reader-primary .speech-status{text-align:center}.reader-wayfinding{position:sticky;bottom:0;width:auto;right:auto;padding:6px 0 calc(8px + env(safe-area-inset-bottom));background:#f4ead5;border-top:1px solid #d6c49b}.library-body .story-reader-controls{grid-template-columns:94px 1fr 112px;gap:9px;padding:0 15px}.story-reader-controls .kid-button{font-size:17px!important;min-height:51px;padding:9px 10px}.story-reader-controls .toy-icon{width:18px;height:18px}.library-body .reader-grownups{margin:20px 13px 0;padding:12px 17px}
 .library-body .watch-shell{padding:10px 12px 28px}.watch-heading{min-height:62px;gap:11px;margin-bottom:12px}.watch-heading>a{font-size:0;padding:9px;min-height:45px;width:45px;border-radius:10px;justify-content:center}.watch-heading h1{font-size:22px;text-align:left;line-height:1.15}.library-body .watch-frame{min-height:270px;height:38dvh;max-height:400px;border-radius:17px}.watch-book{border-radius:18px}.watch-frame .scene-art{width:110%;left:-5%}.library-body .watch-caption{margin:-15px 6px -15px;padding:10px 9px;border-width:8px;border-image-width:8px;border-radius:12px}.library-body .watch-caption p{font-size:22px;line-height:1.5}.watch-caption>span{font-size:10px;margin-bottom:8px}.library-body .watch-controls.watch-transport{margin:35px 0 0;gap:8px;display:grid;grid-template-columns:1fr 1fr}.watch-transport .kid-button{font-size:15px;min-height:52px;padding:9px;gap:7px}.watch-transport #watchPlay{grid-row:2;grid-column:1}.watch-transport .toy-icon{width:20px;height:20px}.watch-transport label{font-size:14px;justify-content:center}.watch-timeline{margin:0;gap:8px!important}.watch-timeline #watchRestart{font-size:12px!important;min-height:44px!important;padding:6px 10px!important}.watch-timeline output{font-size:11px}.watch-controls .watch-slider{min-width:75px;flex:1;flex-basis:auto!important}.watch-status{margin:0}.library-body .watch-scenes{margin:10px 0 0;gap:8px}.library-body .watch-scenes button{min-width:135px;flex-basis:135px;font-size:13px}
 .hub-screen:not(.map-view){padding:24px 16px}.hub-heading{margin-bottom:24px}.hub-heading h1{font-size:34px;line-height:1.12;margin-bottom:12px}.hub-heading p{font-size:15px}.hub-quicklinks .royal-button{font-size:13px}.creation-grid{grid-template-columns:1fr;gap:20px}.creation-card h3{font-size:25px}.creation-card>div{padding:13px}.creation-preview{height:210px}.creation-actions{gap:18px}.collection-section h2{font-size:25px}.illustrated-empty{padding:16px 13px;border-width:9px;border-image-width:9px}.illustrated-empty h3{font-size:27px}.illustrated-empty p{font-size:15px}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.family-profile{min-height:222px;padding:13px 6px;border-width:9px;border-image-width:9px}.family-profile.active{border-width:9px;border-image-width:9px}.family-profile img{height:106px;width:106px;margin-bottom:13px}.family-profile b{font-size:23px}.family-profile span{font-size:11px}.parent-summary{padding:17px 13px}.parent-stats strong{font-size:36px}.parent-stats>div>span{font-size:13px}.parent-progress-list>div{font-size:12px}.parent-progress-list span{min-width:123px}.settings-panel{padding:18px 14px;border-width:9px;border-image-width:9px}.settings-panel h2{font-size:27px;margin-bottom:15px}.setting-row{gap:14px;padding:17px 0}.setting-row b{font-size:18px}.setting-row small{font-size:13px;line-height:1.55}.setting-row input[type=checkbox]{width:60px;min-width:60px;height:36px}.setting-row input[type=checkbox]:before{width:24px;height:24px;left:4px;top:4px}.setting-row input:checked:before{transform:translateX(24px)}.setting-row select{max-width:100px;font-size:14px!important}.backup-actions .royal-button{font-size:13px;min-height:48px;padding:10px 13px}.reward-card{padding:13px 7px;border-width:9px;border-image-width:9px}.reward-card h2{font-size:22px}.reward-card p,.reward-card small{font-size:12px}.reward-card>img{height:105px}
 #gameScreen .game-header{height:73px!important;min-height:73px;padding:9px 12px!important;gap:9px}#gameScreen .game-back,#gameScreen .build-help{width:44px;height:44px;min-width:44px;min-height:44px;padding:8px}#gameScreen .game-back .toy-icon,#gameScreen .build-help .toy-icon{width:24px;height:24px}#gameScreen .build-progress{display:grid;grid-template-columns:1fr auto;gap:4px 7px;padding:0;width:auto}#gameScreen #activeLessonName{font-size:17px}#gameScreen .active-build-title{grid-row:1;grid-column:1/-1;min-height:0}#gameScreen .build-progress-label{grid-column:1;font-size:12px;text-align:right}#gameScreen .stability-track{grid-column:2;width:85px;height:4px}#gameScreen .mission-panel,#gameScreen .mission-panel.collapsed{inset:87px auto auto 12px!important;width:calc(100% - 24px)!important}#gameScreen .puppy-bubble{display:flex;flex-wrap:nowrap;min-height:62px;padding:5px 6px;border-width:8px;border-image-width:8px;gap:7px}#gameScreen .mission-action{width:auto;flex:1;text-align:left}#gameScreen .mission-action strong{font-size:19px!important}#gameScreen #voiceReplayBtn{min-width:44px;width:44px;height:44px;min-height:44px;padding:9px;border-radius:9px}#gameScreen .listen-label{display:none}#gameScreen .piece-tray,#gameScreen .piece-tray.collapsed{width:calc(100% - 24px)!important;box-shadow:0 0 0 4px #5c3b24,0 0 0 5px #b3864c,0 8px 15px #14233333!important;border-radius:17px!important}#gameScreen .place-assist{font-size:23px}
 .free-header{padding-inline:10px}.free-header input{padding:4px 7px;font-size:13px}.free-tools button{min-height:44px!important}.free-instruction{font-size:12px}.free-part b{font-size:13px}.free-catalog h2{font-size:25px}.free-categories button{font-size:12px}
}
@media(max-width:700px){.collection-keepsake{padding:22px 18px;flex-direction:column;align-items:flex-start}.collection-keepsake h2{font-size:27px}.collection-keepsake p{font-size:15px}.collection-keepsake .toy-icon{width:45px;height:45px}.collection-keepsake>div:last-child{gap:30px}}
@media(max-width:370px){.home-hero{padding-top:265px}.home-hero h1{font-size:32px}.home-actions .royal-button.gold{font-size:23px}.home-hero-copy>p{font-size:13px}.home-discover .discovery-card h2{font-size:18px}.home-discover .discovery-card{height:160px}.home-discover .discovery-card>img{height:109px}.map-view .hub-heading h1{font-size:27px}.city-districts button{font-size:11px}.city-preview-model{width:87px}.city-preview-copy h2{font-size:19px}.library-body .story-card-copy h3,.library-body .story-card-copy h3 a{font-size:16px}.library-invitation{width:78%}}
@media(max-height:600px) and (min-width:701px){.kingdom-rail{gap:5px;padding-block:8px}.kingdom-rail a{min-height:70px;padding-block:5px}.kingdom-rail .toy-icon{width:31px;height:31px}.kingdom-rail a>span:not(.toy-icon){font-size:13px}.game-brand{display:none}#gameScreen .mission-panel,#gameScreen .mission-panel.collapsed{width:260px!important;inset:96px auto auto 15px!important}#gameScreen .puppy-bubble{min-height:90px;padding:10px}#gameScreen .mission-action strong{font-size:21px!important}}
@media(prefers-reduced-motion:reduce){.home-storybook *,.library-welcome *,.city-pin,.library-story-card{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Portrait tablets keep the complete story picture and readable copy together. */
@media(min-width:701px) and (max-width:1100px) and (orientation:portrait){
 .reader-book{display:block;min-height:0}.reader-book .picture-page{display:contents}.page-picture{height:min(40dvh,460px);min-height:0;border-radius:8px 8px 0 0}.page-picture .scene-art{min-width:0;width:100%}.story-page-copy{padding:27px 42px 8px;align-items:center;text-align:center}.story-page-copy h2{font-size:32px;margin:8px 0 17px}.library-body .story-prose{font-size:calc(var(--story-font-size,23px) * 1.174 * var(--academy-accessible-text,1))!important;line-height:1.5!important;max-width:42ch}.wonder-prompt{margin-top:16px;width:100%}.reader-primary{padding:17px 35px 0;justify-content:center}.reader-primary .speech-status{text-align:center}.reader-wayfinding{padding:18px 28px 22px}.library-body .story-reader-controls{grid-template-columns:120px 1fr 150px}.reader-grownups{margin-bottom:25px}
}
/* The workshop follows the reference: one broad parts shelf and a generous table. */
.workshop-brand{display:flex;align-items:center;gap:12px}.workshop-brand>span{font:500 20px/1.12 Cinzel,Georgia,serif}.workshop-brand b{display:block;font-weight:500}.workshop-brand small{display:block;font:500 11px/1.4 var(--kid-font);color:#dfb564;margin-top:5px}.free-header .workshop-crest{width:49px;height:63px}.free-header #freeSaveStatus{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.free-header .royal-button:first-child::before{content:none}.free-header input{color:#14283a!important}.free-catalog .search-field{background:#fdf4df;border-color:#bca36f}.free-catalog .search-field input{color:#273b4a!important}.free-environment select{color:#273b4a!important}
@media(min-width:1101px){
 .free-header{height:104px;padding:12px 20px;gap:26px}.free-header .royal-button{min-height:66px;font-size:20px;padding:15px 22px}.free-header .royal-button:first-child{background:var(--academy-leather) center/cover,#142333;color:#efcd89;border:2px solid #be9856}.workshop-title{display:contents}.free-header h1{font-size:34px;margin:0 auto;white-space:nowrap}.free-header input{width:285px;height:66px;font-size:21px!important;border:10px solid transparent;border-image:var(--academy-frame) 66 fill / 10px stretch;background:none}.free-workspace{height:calc(100dvh - 104px);grid-template-columns:350px minmax(0,1fr)}.free-catalog{border:12px solid transparent;border-image:var(--academy-frame) 66 fill / 12px stretch;background:none;padding:19px 14px;box-shadow:3px 0 8px #14233344;z-index:3}.free-catalog h2{font-size:32px;text-align:center;margin:0 0 20px}.free-catalog .search-field{margin-bottom:15px}.free-categories{gap:8px;margin-bottom:18px}.free-categories button{flex:1;min-width:83px;font-size:15px}.free-parts{gap:14px}.free-part{min-height:175px;padding:8px 9px}.free-part img{height:120px}.free-part b{font-size:18px}.free-tools{width:min(940px,calc(100% - 44px));bottom:22px;display:grid;grid-template-columns:repeat(6,1fr);padding:12px;gap:0;border-radius:20px;border-width:2px;box-shadow:0 0 0 3px #654829,0 0 0 4px #bb9254,0 7px 14px #14233377}.free-tools button{min-height:84px!important;font-size:20px;border:0;border-right:1px solid #a5895477;border-radius:0;gap:10px}.free-tools button:last-child{border-right:0}.free-tools .toy-icon{height:35px;width:35px}.free-instruction{bottom:150px}.free-environment{top:18px;left:22px;background:var(--academy-leather) center/cover,#142333;color:#f0d094;border:2px solid #b99558}.free-environment select{background:#243b4d;color:#f0d094!important;border-color:#aa8a54}.free-inspector-toggle{display:inline-flex;align-items:center;justify-content:center;position:absolute;z-index:32;right:22px;top:122px;min-height:54px;padding:12px 19px;border-radius:12px;border:2px solid #b99558;background:var(--academy-leather) center/cover,#142333;color:#f0d094;font:700 17px var(--kid-font)}.free-inspector{display:none!important;position:absolute;z-index:35;right:22px;top:184px;width:310px;max-height:calc(100dvh - 340px)!important;overflow:auto!important;border:10px solid transparent;border-image:var(--academy-frame) 66 fill / 10px stretch;border-radius:12px;box-shadow:0 7px 20px #14233366}.free-inspector.is-open{display:block!important}
}
@media(max-width:1300px) and (min-width:1101px){.workshop-brand>span{display:none}.free-header{gap:18px}.free-header h1{font-size:28px}.free-header input{width:245px}.free-workspace{grid-template-columns:290px 1fr}.free-part img{height:100px}.free-part{min-height:156px}.free-tools button{font-size:17px}}
@media(max-width:1100px){.workshop-brand{display:none}.free-header .workshop-title{flex:1}.free-header .royal-button:last-child{margin-left:auto}}
/* Build invitations and rewards use the same paper and brass as the app. */
.modal-shell .modal-card{background:none!important;border:12px solid transparent!important;border-image:var(--academy-frame) 66 fill / 12px stretch;border-radius:18px;box-shadow:0 18px 70px #14233366;color:#14283a}.modal-shell .modal-card h2{color:#14283a!important}.modal-shell .modal-card p{color:#415364!important}.modal-shell .build-preview{background:none}.modal-shell .build-preview .brief-puppy{display:none}.modal-shell #observePreview{object-fit:contain;mix-blend-mode:darken}.modal-shell .observe-grid>div{background:#eaddba;border:1px solid #c4aa75}.modal-shell .observe-grid>div:nth-child(2){background:#efe1b6}.modal-shell .observe-grid>div:nth-child(3){background:#dce2c5}.modal-shell .modal-close{background:#132c40;color:#e9c889;border:1px solid #b69355;box-shadow:none}.modal-shell .toy-icon{width:23px;height:23px}.modal-shell .primary-button{background:#ba8e3e;border:12px solid transparent;border-image:url('/assets/academy/ui/brass-button.webp') 112 fill / 12px stretch;color:#14283a;box-shadow:0 4px 5px #66512f33;text-shadow:none}.modal-shell .secondary-button{background:#173044;color:#e7c68a;border:1px solid #b39355;box-shadow:none}

/* Keep the family ledger and collection actions at the reference's reading scale. */
.add-builder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.family-profile.add-builder>.toy-icon{width:110px;height:110px;color:#ad8240;min-height:110px}.family-profile.add-builder>b{font-size:25px}.parent-progress-details{grid-column:1/-1;margin-top:14px;border-top:1px solid #cbb385;padding-top:5px}.parent-progress-details summary,.family-notes summary{font-size:15px;min-height:44px;line-height:44px;cursor:pointer}.family-notes{color:#435565;margin-bottom:12px}.parent-two-col .backup-actions{flex-wrap:wrap;gap:12px}.parent-two-col .backup-actions>button{background:var(--academy-leather) center/cover,#142333;color:#edce8c;border:1px solid #bc9858}.parent-two-col .quiet-note{font-size:12px}.parent-two-col .settings-panel>p{font-size:17px}.creation-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.creation-actions>.royal-button{grid-column:1/-1;width:100%;min-height:52px;font-size:20px}.creation-actions>.text-link{min-height:40px;font-size:13px}.import-creation{display:inline-flex;position:relative;min-height:44px;align-items:center;padding:8px 15px;border:1px solid #b99d68;border-radius:10px;cursor:pointer}.import-creation input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.import-creation:focus-within{outline:3px solid #3f5c6b;outline-offset:3px}
@media(min-width:1101px){
 .hub-screen[data-hub-view=parents] .family-profiles{min-height:322px;margin-top:0}.hub-screen[data-hub-view=parents] .family-profile{min-height:304px}.parent-summary{display:grid;grid-template-columns:270px 1fr;align-items:center;gap:0 20px;padding:19px 25px;margin-top:20px}.parent-summary h2{font-size:28px;line-height:1.2;margin:0}.parent-stats{gap:16px;margin:0}.parent-stats>div{padding-left:16px}.parent-stats strong{font-size:34px}.parent-stats>div>span{font-size:14px}.parent-progress-details{margin-top:7px}.parent-two-col{margin-top:20px;gap:23px}.parent-two-col .settings-panel{padding:18px 22px}.parent-two-col .settings-panel h2{font-size:28px;gap:13px;margin-bottom:12px}.parent-two-col .settings-panel h2 .toy-icon{width:34px;height:34px}.parent-two-col .settings-panel>p{margin:9px 0 14px}.parent-two-col .settings-panel .royal-button{font-size:16px;min-height:49px}
 .hub-screen[data-hub-view=collection] .hub-heading{margin-bottom:17px}.hub-screen[data-hub-view=collection] .hub-heading p{margin-bottom:0}.keepsake-tabs{margin:10px 0 15px}.keepsake-tabs button{min-height:61px;font-size:21px}.collection-section>h2{font-size:16px;margin:0 0 12px}.creation-preview{height:226px}.creation-card>div{padding:12px 15px}.creation-card h3{font-size:26px;margin:0 0 10px}.creation-card p{margin:0 0 10px}.collection-keepsake{margin-top:20px;padding:22px 31px}.collection-keepsake h2{font-size:28px}.collection-keepsake p{font-size:16px}
 .settings-layout>.settings-panel:not(.backup-panel):not(.keyboard-panel){padding:20px 26px}.settings-layout .setting-row{min-height:85px;padding:13px 0}.settings-layout .setting-row small{font-size:15px;line-height:1.4}.settings-layout .settings-panel h2{margin-bottom:12px}.settings-layout .backup-panel{display:grid;grid-template-columns:1fr auto;column-gap:30px;align-items:center}#hubScreen .settings-layout .backup-panel{padding:21px 30px}.backup-panel>h2{font-size:30px;margin:0 0 9px}.backup-panel>p{grid-column:1;margin:0}.backup-panel>.royal-button{grid-column:2;grid-row:1/3;min-height:62px;font-size:20px;padding:14px 24px}.backup-panel .quiet-note{display:none}.backup-panel .asset-credits{grid-column:1/-1;font-size:11px;margin-top:12px}.settings-layout .keyboard-panel{padding:4px 22px}
 .library-body .story-prose{font-size:calc(var(--story-font-size,23px) * 1.72 * var(--academy-accessible-text,1))!important;line-height:1.45!important}.library-body .listen-button{min-height:67px;min-width:235px;font-size:25px}.library-body .story-reader-controls{grid-template-columns:125px 1fr 160px}.library-body .story-reader-controls .kid-button{font-size:24px;min-height:65px}.reader-primary{padding-top:10px}.reader-wayfinding{padding-top:14px}
}
@media(max-width:700px){.family-profile.add-builder>.toy-icon{width:88px;height:88px;min-height:88px}.family-profile.add-builder>b{font-size:21px}.parent-summary{display:block}.parent-two-col .settings-panel h2{font-size:24px;gap:10px}.parent-two-col .settings-panel h2 .toy-icon{width:28px;height:28px}.parent-two-col .settings-panel>p{font-size:15px}.creation-actions>.royal-button{min-height:54px}}

@media(min-width:1101px){
 .hub-screen[data-hub-view=collection] .hub-heading{align-items:center;min-height:65px;margin-bottom:15px}.hub-screen[data-hub-view=collection] .hub-heading p{display:none}.hub-screen[data-hub-view=collection] .hub-quicklinks{display:flex;flex-direction:row;flex-wrap:nowrap;gap:12px}.hub-screen[data-hub-view=collection] #hubHeadingActions{margin-top:0}.creation-preview{height:205px}.collection-keepsake{margin-top:22px;min-height:155px}.import-creation{margin-top:17px}
 .library-body .watch-controls.watch-transport{gap:20px}.watch-transport .kid-button{min-height:72px;font-size:23px;padding:14px 20px}.watch-transport .toy-icon{width:31px;height:31px}.watch-transport label{font-size:16px}
}
@media(min-width:1101px){
 .hub-screen[data-hub-view=collection] #hubHeadingActions{display:flex;align-items:center;gap:12px}
 .kids-build-picker .lesson-card-picture{aspect-ratio:1.26}.kids-build-picker .build-grid-heading{height:26px;min-height:26px;margin:2px 0}.kids-build-picker .lesson-filter{min-height:24px}
}

html.ck-large-text{--academy-accessible-text:1.15}
