/* A calmer illustrated book: colour belongs to the drawings, ink frames the action. */
:root{--paper:#fffdf8;--ink:#39372e;--green:#92b969;--pencil-hatch:url('./ui-pencil.svg')}
body,body:has(.home-screen){background-color:#f5f1e7;background-image:radial-gradient(#9a886014 .6px,transparent .8px);background-size:8px 8px}
.primary,.secondary,.round,.home-start,.home-footer button,.home-parent,.back-btn,.section-back,.home-back.back-btn,.section-back.back-btn,.hold-button,.gate-answers button,.tabs button{border-color:#39372e;box-shadow:0 3px 0 #d8d1bd;background-size:100px 80px;border-radius:22px}
.primary,.back-btn,.home-back.back-btn,.section-back.back-btn{background-color:#b8d394}
.home-screen{max-width:500px;min-height:724px;height:min(100svh,880px);padding:calc(12px + env(safe-area-inset-top)) 18px calc(14px + env(safe-area-inset-bottom));grid-template-rows:60px 112px minmax(432px,1fr) 60px;gap:10px;background-color:#fffdf8;background-size:260px 10px;isolation:isolate}
.home-topbar{gap:12px}.home-brand{font-size:14px;line-height:1.3;color:#68694f}.home-brand strong{font-size:20px;letter-spacing:-.5px;color:#39372e}
.home-start-row{position:relative;grid-template-columns:112px minmax(0,1fr);gap:8px;padding:0 8px 0 0;border-radius:28px;background:#e9efd9;border:1px solid #dce5ca}
.home-mimi{width:112px;height:112px;border:0;background:none;box-shadow:none;padding:0 3px;z-index:1;overflow:visible}
.home-mimi:active{box-shadow:none}.home-mimi .mimi-spark{right:3px;top:7px;color:#dba649}.home-start{height:78px;min-width:0;gap:12px;padding:10px 12px;background-color:#b9d294;border:3px solid #414535;box-shadow:0 4px 0 #879c6b;border-radius:24px;background-size:100px 80px}
.home-start strong{font-size:26px}.home-play{background:#fff3c9;border:2.5px solid #414535;width:48px;height:48px}.home-play svg{width:25px;height:25px}
.home-activities{gap:12px;min-height:432px;padding:2px 0 5px;grid-template-rows:repeat(4,minmax(0,1fr))}
.home-tile{border:2px solid #49463a;box-shadow:0 3px 0 #ddd6c6;border-radius:22px;background:#fffefa;padding:3px 6px 9px;gap:0;overflow:hidden;justify-content:center}
.home-tile:after{inset:0 auto auto 17px;width:27px;height:4px;background:var(--tile-color);border-radius:0 0 5px 5px}
.home-tile strong{font-size:17px;line-height:1.2;color:#39372e;font-weight:800}
.home-picture,.tile-cards .home-picture{width:100%;height:clamp(72px,10.4svh,106px);max-width:180px;padding:0;margin:0;background:none;border:0;box-shadow:none;transform:none;flex-shrink:1}
.home-picture>.menu-illustration{display:block;width:100%;height:100%;overflow:visible}
.menu-illustration .menu-object{overflow:visible}
.home-footer{gap:12px}.home-footer button{border:2px solid #49463a;background-color:#f9e9b9;box-shadow:0 2px 0 #ded5bc;border-radius:20px;font-size:13px}
.home-footer .home-parent,.home-footer button:last-child{border:2px solid #c5c5b3;background:#f3f3e9;box-shadow:none;color:#656a55}
.home-star-total{border-color:#49463a;background:#ffedb4}.home-topbar .current-player{border:0;box-shadow:none}
.world-card,.mode-card,.activity-tile,.letter-tile,.primer-book,.tale-cover,.storybook-cover,.profile-option,.teach-card,.word-picture,.word-choice,.choice,.reading-answers button,.letter-example,.letter-answers button,.letter-model,.reading-tokens button,.syllable,.word-whole,.printed-word,.speech-tile,.speech-tile:nth-child(n),.adventure-card,.live-deck button,.ear-teach,.live-card-large,.story-choice{border-color:#49463a;box-shadow:0 3px 0 #e2dac8;border-radius:24px}
.world-picture{background:#f7f1e4!important}.mode-card,.adventure-card,.live-deck button{padding-top:14px;padding-bottom:18px}.mode-card strong,.world-card strong{font-weight:800}.mode-card small,.world-card small{color:#74745f}
.speech-bubble,.feed-bubble,.dialogue-strip,.pirate-bubble{border-color:#625f4d;background-color:#fff9e8;border-radius:24px;box-shadow:none}
.word-picture{border-width:2px;padding:18px 18px 22px}.word-choice,.feed-item{border-width:2px;border-color:#49463a;box-shadow:0 3px 0 #ddd5c2}
.feed-scene,.book-scene,.book-sentences,.playroom-stage,.interactive-scene{border-color:#49463a;border-width:2px}.feed-tray{background:#f3ead8;border-color:#d2c5a7;box-shadow:none}
.book-sentences{border-color:#e0d7c3;background:#fffdf7}.book-sentences p[lang=ro]{color:#52795e}.book-controls{gap:14px}.book-controls .audio-btn{background:#edf2e2}
.star-bank{border-color:#685c3b;background:#fff0bb;box-shadow:0 2px 0 #e5d6a8}
.bottom-nav{border:1px solid #ddd8c9;border-radius:24px;background:#fffef8;box-shadow:0 -4px 20px #62594308}
.letter-tile>span,.letter-tile small,.letter-model,.letter-model span,.letter-target,.letter-answers button{-webkit-text-stroke:1.5px #39372e;text-shadow:none}
@media(min-width:700px){.home-screen{margin:22px auto;height:min(calc(100svh - 44px),880px);border:1px solid #e1d9c8;border-radius:32px;box-shadow:0 12px 45px #50452d12,5px 5px 0 #e5ddcc}.home-picture,.tile-cards .home-picture{height:103px}}
@media(max-width:600px){.speech-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.speech-tile{padding:18px 10px}.speech-tile strong{font-size:15px}.speech-tile small{font-size:12px;line-height:1.4}.speech-tile>svg{width:103px;height:110px}.speech-tile:first-child{grid-column:1/-1;display:grid;grid-template-columns:100px minmax(0,1fr);gap:0 10px;align-items:center;text-align:left}.speech-tile:first-child>svg{grid-row:1/3}.speech-tile:first-child strong{align-self:end;margin:0 0 5px}.speech-tile:first-child small{align-self:start;margin:0}}
@media(max-height:650px){.home-screen{height:auto;min-height:724px;grid-template-rows:60px 108px 432px 60px}.home-start-row{grid-template-columns:106px minmax(0,1fr)}.home-mimi{width:106px;height:108px}.home-picture,.tile-cards .home-picture{height:72px}.home-tile strong{font-size:16px}}
@media(max-width:360px){.home-screen{padding-left:12px;padding-right:12px}.home-start-row{grid-template-columns:100px minmax(0,1fr);gap:3px;padding-right:7px}.home-mimi{width:100px}.home-start{gap:7px;padding:8px}.home-start strong{font-size:22px}.home-play{width:40px;height:40px}.home-topbar{gap:8px}.home-brand{font-size:13px}.home-brand strong{font-size:17px}.home-footer{gap:8px}.home-footer button:first-child{padding:8px;font-size:12px}.home-activities{gap:10px}}
@media(prefers-reduced-motion:reduce){.home-screen *{animation:none!important;transition:none!important}}
