/* Child-facing spacing: one final set of rules after the original themes. */

:root{--child-gutter:16px;--child-gap:12px;--child-touch:72px}

.everyday-home.word-home .word-home-header{padding:calc(12px + env(safe-area-inset-top,0px)) var(--child-gutter) 12px;min-height:88px;box-sizing:border-box;align-items:center;overflow:visible;gap:10px}

.everyday-home.word-home .word-home-logo{display:block;width:112px;height:60px;object-fit:contain;margin:0;flex-shrink:0}

.everyday-home.word-home .word-home-header button{width:56px;height:56px;min-width:56px;min-height:56px;padding:8px;margin:0;flex-shrink:0;display:grid;place-items:center;border-radius:20px}

.everyday-home.word-home .word-home-header button img{width:40px!important;height:40px!important;object-fit:contain}

.everyday-home.word-home .word-home-content{padding:0 var(--child-gutter) 28px;box-sizing:border-box}

.everyday-home.word-home .word-profile{margin:0 0 10px;min-height:56px}

.everyday-home.word-home .word-welcome{margin:8px 0 16px}.everyday-home.word-home .word-welcome h1{font-size:30px;line-height:1.15;margin:6px 0 0}.everyday-home.word-home .word-welcome p{margin:0;font-size:10px}

.everyday-home.word-home .world-hero{min-height:166px;padding:16px;border-radius:28px;margin:0 0 8px;overflow:hidden}

.everyday-home.word-home .world-hero>img{width:112px;height:130px;max-height:calc(100% - 20px);right:12px;top:10px;bottom:auto;object-fit:contain;transform:none}

.everyday-home.word-home .world-hero strong{font-size:23px;line-height:1.15}.everyday-home.word-home .world-hero small{font-size:9px}.everyday-home.word-home .world-hero em{font-size:12px;line-height:1.4}

.everyday-home.word-home .world-shortcuts{margin-top:12px;gap:10px}.everyday-home.word-home .world-shortcuts button{min-height:72px;font-size:15px}

.everyday-home.word-home .home-journey{margin:14px 0 18px;min-height:96px;padding:12px;gap:12px}.everyday-home.word-home .journey-art{width:64px;height:64px;flex-shrink:0}.everyday-home.word-home .journey-art img{width:64px;height:64px;object-fit:contain}

.everyday-home.word-home .discovery-section{margin-top:22px}.everyday-home.word-home .discovery-heading{margin-bottom:12px}.everyday-home.word-home .discovery-heading h2{font-size:25px}.everyday-home.word-home .discovery-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}

.everyday-home.word-home .discovery-card{min-width:0;min-height:176px;padding:12px;gap:8px;border-radius:26px;overflow:visible;box-sizing:border-box;justify-content:flex-start;align-items:center}

.everyday-home.word-home .engine-art{width:100%;height:108px;min-height:108px;margin:0;padding:6px;box-sizing:border-box;overflow:visible;display:grid;place-items:center;border-radius:20px}

.everyday-home.word-home .engine-art>img{display:block;width:96px!important;height:96px!important;max-width:100%;object-fit:contain;object-position:center;margin:0;transform:none}

.everyday-home.word-home .discovery-card strong{font-size:16px;line-height:1.22;min-height:39px;text-align:center;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}

.everyday-home.word-home .engine-state{display:none}.everyday-home.word-home .game-group{margin-top:20px}.everyday-home.word-home .game-group h3{margin:0 0 12px}

.everyday-home.word-home .readiness-launch{margin:20px 0 8px;min-height:72px}

.trace-top,.twins-top,.count-top,.letters-top,.play-top,.upper-header,.lit-header{box-sizing:border-box;align-items:center;gap:8px;padding-top:12px;padding-bottom:12px;min-height:88px}

.trace-top>span,.twins-top>span,.count-top>strong,.letters-top>strong,.play-top>strong,.lit-header>strong{min-width:0;line-height:1.25;overflow-wrap:anywhere}

.twins-top{display:grid;grid-template-columns:56px minmax(0,1fr)72px 56px}.twins-top .twins-icon{width:56px;min-width:56px;height:64px;min-height:64px;padding:12px}.twins-top [data-twins=sound]{width:72px;min-width:72px;height:72px}.twins-top>span{font-size:14px}

.wardrobe-shell .pet-portrait{background-image:var(--pet-room);background-size:cover;background-position:center;background-repeat:no-repeat;padding:16px 16px 28px;box-sizing:border-box;min-height:400px;isolation:isolate}

.wardrobe-shell .pet-sprite{flex-shrink:0}.wardrobe-shell .pet-listen{width:56px;height:64px;min-width:56px;min-height:64px;padding:8px}.wardrobe-shell .pet-listen img{display:block;width:40px;height:40px;object-fit:contain}

.wardrobe-shell .pet-picture-actions{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}.wardrobe-shell .pet-picture-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:148px;padding:10px 4px;gap:4px;border-radius:24px}

.wardrobe-shell .pet-picture-actions button img{display:block;width:76px!important;height:76px!important;max-width:100%;object-fit:contain;flex-shrink:0;margin:0}

.wardrobe-shell .pet-picture-actions button strong{font:500 16px/1.2 Fredoka,system-ui}.wardrobe-shell .pet-picture-actions button small{margin:0;font:11px/1.4 Andika,system-ui;text-align:center}

.pet-picture-actions [data-care=greens]{background:#e4f4da}.pet-picture-actions [data-care=carrot]{background:#ffead4;border-color:#e8ba81}

.wardrobe-status:empty{display:none}

.wardrobe-shell .pet-bubble{margin:10px 0;padding:10px 12px;font-size:16px;line-height:1.35}

.wardrobe-shell .pet-name h2{margin:0}

.wardrobe-shell .pet-meters{margin:10px 0}

.lit-option .lit-choice-listen{min-width:72px;min-height:72px;flex-shrink:0}

.lit-token-option{display:flex;max-width:100%;border:2px solid #d8c9ec;border-radius:22px;background:#fff;overflow:hidden}

.lit-token-option .lit-word-token{border:0;border-radius:0;min-height:72px;min-width:72px;margin:0;box-shadow:none}

.lit-token-listen{width:72px;min-width:72px;min-height:72px;padding:18px;border:0;border-left:2px solid #e7def2;background:#eee6ff;color:#55408c;cursor:pointer}

.lit-token-listen svg{width:30px;height:30px;display:block;aspect-ratio:1}

@media(max-width:700px){.wardrobe-shell .pet-portrait{min-height:380px}.pet-care{padding:14px}.wardrobe-shell .pet-picture-actions button{min-height:140px}.wardrobe-shell .pet-picture-actions button img{width:68px!important;height:68px!important}}

@media(max-width:359px){:root{--child-gutter:12px}.everyday-home.word-home .discovery-grid{gap:10px}.everyday-home.word-home .discovery-card{padding:10px;min-height:164px}.everyday-home.word-home .engine-art{height:100px;min-height:100px}.everyday-home.word-home .engine-art>img{width:88px!important;height:88px!important}.everyday-home.word-home .discovery-card strong{font-size:15px}.wardrobe-shell .pet-picture-actions{gap:6px}.wardrobe-shell .pet-picture-actions button{min-height:132px}.wardrobe-shell .pet-picture-actions button img{width:60px!important;height:60px!important}.wardrobe-shell .pet-picture-actions button strong{font-size:14px}}

/* Three reversible grid previews; B is the chosen default. */

body[data-ux-layout=b] .everyday-home.word-home .discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}

body[data-ux-layout=b] .everyday-home.word-home .discovery-card{min-height:140px;padding:8px;gap:6px}

body[data-ux-layout=b] .everyday-home.word-home .engine-art{height:80px;min-height:80px;padding:4px}

body[data-ux-layout=b] .everyday-home.word-home .engine-art>img{width:72px!important;height:72px!important}

body[data-ux-layout=b] .everyday-home.word-home .discovery-card strong{font-size:13px;min-height:34px}

body[data-ux-layout=c] .everyday-home.word-home .discovery-grid{grid-template-columns:1fr;gap:12px}

body[data-ux-layout=c] .everyday-home.word-home .discovery-card{display:grid;grid-template-columns:88px minmax(0,1fr);min-height:112px;padding:12px;gap:16px}

body[data-ux-layout=c] .everyday-home.word-home .engine-art{height:88px;min-height:88px;padding:4px}

body[data-ux-layout=c] .everyday-home.word-home .engine-art>img{width:80px!important;height:80px!important}

body[data-ux-layout=c] .everyday-home.word-home .discovery-card strong{text-align:left;justify-content:flex-start;font-size:18px}

body[data-ux-review] .word-home-content>*:not(#discovery-games){display:none!important}

body[data-ux-review] #discovery-games{margin-top:8px!important}

body[data-ux-review] .word-home-header button{visibility:hidden}

body[data-ux-review] .discovery-heading p,body[data-ux-review] .world-eyebrow{display:none}

/* Original home retained; only move the header away from the phone edge. */

.everyday-home.word-home .word-home-header{padding:calc(10px + env(safe-area-inset-top,0px)) var(--child-gutter) 10px;min-height:76px}

/* Explicit access labels retain readable artwork and generous hit targets. */

.access-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;align-self:flex-start;border-radius:20px;padding:5px 10px;font:600 12px/1.2 var(--world-copy, sans-serif);border:1px solid transparent}.access-badge.is-free{background:#e1f5e7;color:#235d3d;border-color:#8ac39e}.access-badge.is-premium{background:#eee5fb;color:#50327e;border-color:#b9a0db}.access-badge .world-icon{width:16px!important;height:16px!important;flex-basis:16px!important}.access-badge svg{width:16px;height:16px}.world-card .access-badge{margin:10px 12px 0}.discovery-card[data-access=premium]{border:2px solid #c9b3e4!important}


/* Match the wrapper to the actual 40px glyph: no overflowing lock image. */
.everyday-home .word-home-header button{display:grid!important;place-items:center!important;padding:0!important;line-height:1}
.everyday-home .word-home-header .ph,.everyday-home .word-home-header .world-icon{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:0!important;flex-basis:40px!important;margin:0!important}
.everyday-home .word-home-header .ph>.woph-ui-glyph,.everyday-home .word-home-header .world-icon>.woph-ui-glyph{width:100%!important;height:100%!important;margin:0!important;display:block}
.ready-profile-name{font:600 28px/1.3 var(--font-ui);text-align:center;margin:8px 0 16px}
