/* Storybook presentation layer. No learning, authentication or scoring behavior. */
:root{--cream:#eaf7ff;--paper:#fffef8;--ink:#30234f;--maroon:#6543a4;--gold:#ffcd4e;--gold-soft:#fff0b8;--mint:#298a70;--mint-soft:#d9f6e8;--rose-soft:#ffe1e7;--muted:#716583;--line:#d9cdec;--r:26px;--shadow:0 5px 0 #d6c9eb}
body{background:#eaf7ff;color:var(--ink)}body:before{background:radial-gradient(ellipse at 8% 110%,#b8e5b8 0 25%,transparent 25.2%),radial-gradient(ellipse at 95% 117%,#d0efba 0 35%,transparent 35.2%),linear-gradient(#e7f5ff,#f5f2ff);position:fixed;inset:0;z-index:-1;pointer-events:none}
body:after{content:"";position:fixed;top:14%;left:3%;width:90px;height:30px;background:#fff9;border-radius:100%;box-shadow:65vw 18px 0 14px #fff8,30vw -55px 0 8px #fff7;z-index:-1;pointer-events:none}
h1,h2,h3,b,strong{color:inherit}h1,h2,h3{line-height:1.65}button,input,select{font:inherit}button,a{touch-action:manipulation}[hidden]{display:none!important}
.card,.tile,.letter-card,.trace-wrap,.licence-card{border:2px solid #cfbee7;border-radius:var(--r);box-shadow:0 5px 0 #c9b7e0;background:var(--paper)}
.btn{border-radius:18px;line-height:1.65;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;white-space:normal}.btn.primary{background:#7650b5;border:2px solid #51337f;box-shadow:0 4px 0 #51337f;color:white}.btn.ghost{background:#fffdf7;border:2px solid #d8c8ed;color:#614388}.btn:active,.choice:active,.node-btn:active{transform:translateY(2px)}
.topbar{background:#fffdf7ed;border-bottom:2px solid #d8c8ed;box-shadow:0 3px 0 #d8c8ed55;gap:10px}.topbar .brand-mini{width:60px;height:48px;object-fit:contain}.topbar .who{background:#eee2ff;border:2px solid #dfc9f7;border-radius:20px}.topbar .pill{background:#fff0b8;border:1px solid #efd17c}.topbar .icon-btn,.topbar .voice-toggle,.topbar .help-btn{border-radius:14px;background:#f0e8ff;border-color:#d9c6ec}
.screen.home{max-width:1450px;display:grid;grid-template-rows:minmax(0,1.4fr) minmax(0,1fr);gap:18px;padding:20px 28px}.home .hero{height:auto!important;min-height:0;background:radial-gradient(ellipse at 100% 100%,#ddc8fc 0 36%,transparent 36.2%),linear-gradient(110deg,#fff8d6,#f5e9ff);border:2px solid #c6a7e1;box-shadow:0 6px 0 #b99bd5;overflow:visible;gap:20px;padding:20px 28px}.hero .mascot{width:32%;max-width:270px;min-height:0;align-self:center}.hero .companion{width:100%;max-height:32dvh;aspect-ratio:1}.hero-text{flex:1;display:grid;justify-items:start;align-content:center;gap:7px}.hero .bubble{background:none;box-shadow:none;border:0;padding:0;margin:0;font-size:clamp(1.2rem,3vw,2.5rem);color:#56368a}.hero-subtitle{margin:0}.hero .btn.today{background:#ffce50;border:2px solid #c18c22;box-shadow:0 5px 0 #c18c22;color:#47315f;border-radius:22px;padding:10px 28px;min-width:240px;display:grid;gap:0}.today-ta{font-size:clamp(1.4rem,3vw,2.2rem)}.hero .today small{line-height:1.8;color:#66502f}.adventure-kicker{font-size:.8rem;color:#8b659f;letter-spacing:0;margin:0}
.home .tiles{height:100%;gap:18px;grid-template-columns:1.1fr 1fr}.home .tile{background:#f0e4ff;border-color:#c7ade8;box-shadow:0 5px 0 #bca0dd;padding:16px 22px}.home .tile-icon{background:#fffdf4;border:2px solid #d9bff2;border-radius:20px;color:#7550ad}.home .stickers{background:#fff0d3;border-color:#edcb8a;box-shadow:0 5px 0 #dab77b}.sticker{background:#fffaf0;border:2px dashed #dec697;border-radius:14px}.sticker.got{border-style:solid;background:#fff7c7;box-shadow:0 3px 0 #e8c66e}.meter{background:#ded0f2}.meter i{background:#9a70ce}
.guide{background:#f0e5ff;border:2px solid #d7beed;box-shadow:0 3px 0 #ddcdef;border-radius:20px}.guide-text b{color:#5a3d85;text-align:center;line-height:1.65}.guide-replay,.hear,.word-sound{background:#fff0b5!important;border-color:#e9cf89!important;color:#664d23!important;position:static!important}.guide-replay{flex:none}.guide-text{min-width:0}.word-ta,.big-letter,.formula,.kural-lines,.choice{text-align:center!important;line-height:1.65}.word-ta mark{background:#ffe59a;color:#653d87;border-radius:8px;box-decoration-break:clone;padding:0 .12em}.word-caption{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center}.word-caption .word-ta{grid-column:2}.word-caption .word-sound{grid-column:3}.letter-card>.word{background:#fff1c9!important;border-color:#ead194!important}.letter-card>.big-letter{background:#eee1ff!important;color:#7349a8}.trace-wrap{background:#fffefa;border-color:#cbb4e3}.guided-trace-canvas{background:#fffcf3;border:2px dashed #dfc9ec;border-radius:20px}.guided-trace-toolbar{gap:8px}.session .cue{background:#fff2ce;border:2px solid #e6c479;box-shadow:0 5px 0 #d7b77c}.choice{background:#eee2ff;border:2px solid #bda1df;box-shadow:0 5px 0 #b398d3;border-radius:22px}.choice.right{background:#c6f0d9;border-color:#399c73;box-shadow:0 5px 0 #61b38d}.choice.wrong{background:#ffe0e5;border-color:#dc8499}.reward{background:#fff5d1;border:2px solid #e4c47a;border-radius:32px;box-shadow:0 6px 0 #d5b36d;padding:24px}.reward h1{color:#71509d}
.screen.path .trail{background:#f4ebff;border:2px solid #d8c3ef;box-shadow:0 5px 0 #d2bce7}.screen.path .node.current .node-btn{background:#ffd15a;border-color:#fff8da;box-shadow:0 5px 0 #c99e3c,0 0 0 4px #ffdc83}.screen.path .node.done .node-btn{background:#c4efd6;box-shadow:0 5px 0 #86c7a3}.level-tab.on span{background:#7750ab;border-color:#7750ab}.level-tab span{line-height:1.65}.node-label{text-align:center}
.start-screen .who-card{border:2px solid #c4a7e2;background:#efe1ff;box-shadow:0 6px 0 #b79acd}.start-screen .who-card:nth-child(2){background:#fff0c6;border-color:#e7c87e;box-shadow:0 6px 0 #d5b96f}.start-screen .who-card:nth-child(3){background:#dff4e9;border-color:#9fceb7;box-shadow:0 6px 0 #85b59e}.start-screen .who-icon{object-fit:contain;border:0;filter:drop-shadow(0 5px 0 #48324f16)}.start-screen .logo{width:clamp(100px,19dvh,180px)}.start-screen .who-card b{color:#50366f}.account-form,.setup-page,.licence-card{background:#fffdf6}.friend-face{background:#f2e8ff;border-radius:22px}.friend-card input:checked+.friend-face{background:#ffecaa;border-color:#bc8c37;box-shadow:0 4px 0 #c09b52}.check{display:flex;align-items:center!important;gap:10px}.check input{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#7650ac}.check span{line-height:1.7}.pinpad button{background:#eee2ff;border:2px solid #ceb5e7;border-radius:18px;box-shadow:0 3px 0 #c8b0df}.form input:not([type=checkbox]):not([type=radio]),.form select,.setting select{background:#fffcf5;border:2px solid #d8c4e9;border-radius:14px;line-height:1.6;padding:9px 12px;color:#423355}.form input:focus,.form select:focus{outline:3px solid #ffd46d;outline-offset:2px}
/* Adult sections keep a stable shell and let long records scroll within the panel. */
.screen.parent{max-width:1450px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px}.parent-tabs{gap:10px}.parent-tabs .btn{background:#f9f5ff;border:2px solid #d0b9e6;box-shadow:0 3px 0 #d2bee4;font-weight:700}.parent>.card{padding:22px;background:#fffef9}.parent .stats{gap:10px}.stats>div{background:#f0e5ff;border:1px solid #dbc5ee;border-radius:18px;padding:12px;text-align:center}.stats>div:nth-child(2n){background:#e0f4e9;border-color:#b4ddc7}.stats>div:nth-child(3n){background:#fff0c9;border-color:#ead49b}.stats b{color:#684798;font-size:1.7rem}.stats small{font-size:.75rem}.parent .setting{padding:9px 0;border-bottom:1px solid #eee3f5;gap:18px}.parent .setting input[type=checkbox]{accent-color:#7950ac;width:22px;height:22px;margin:0;justify-self:end}.parent .ls{border-radius:14px;border:1px solid #dfd2eb}.parent .ls.strong{background:#d7f1df;color:#276447}.parent .ls.weak{background:#ffe4dc;color:#a64d3b}.parent .ls.ok{background:#fff0c7;color:#896527}.parent .ls.new{background:#eee8f5;color:#897c99}
/* Teacher login, signup, reset, class list, class details and progress table. */
body:has(.t-wrap){background:#eff4fb}.t-wrap{width:100%;max-width:1450px;margin:auto;padding:20px 28px}.t-top{background:#fffdf8;border:2px solid #d6c4e8;border-radius:22px;padding:12px 18px;box-shadow:0 4px 0 #d9cbe7;gap:16px;flex-wrap:nowrap}.t-top img{width:90px;height:68px;object-fit:contain}.t-top h1{font-size:clamp(1rem,2.2vw,1.6rem)}.t-top small{color:#7b6a8d}.t-wrap>.card{padding:22px}.t-wrap:has(.teacher-welcome){display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:18px 34px;align-items:center;min-height:100dvh}.t-wrap:has(.teacher-welcome)>.t-top{grid-column:1/-1;margin:0;align-self:start}.teacher-welcome{text-align:center;padding:24px;border-radius:36px;background:radial-gradient(ellipse at 50% 100%,#d4ebbd 0 40%,transparent 40.5%),#e7ddf8;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;border:2px solid #d2bde8}.teacher-welcome img{width:min(42%,220px);object-fit:contain}.teacher-welcome h2{font-size:clamp(1.2rem,2.5vw,2rem);margin:14px 0 6px}.teacher-welcome p{line-height:1.9;color:#70568c;margin:0}.t-wrap .t-auth{width:100%;max-width:600px;margin:0 auto;padding:24px}.t-auth .tabs{display:grid;grid-template-columns:1fr 1fr}.t-auth .tabs button{padding:8px;font-size:.85rem}.t-auth .tabs button.on{background:#7752aa;border-color:#64418d;color:#fff}.t-auth form{display:grid;gap:10px}.t-auth .hint{font-size:.78rem;line-height:1.8;margin:10px 0}.t-auth form label{display:grid;gap:6px;line-height:1.7}.t-grid{grid-template-columns:repeat(auto-fit,minmax(min(255px,100%),1fr));gap:18px}.t-class{background:#f0e5ff;border:2px solid #c7aee4;border-radius:22px;box-shadow:0 5px 0 #bda5d6;padding:22px;gap:10px}.t-class:nth-child(3n+2){background:#e3f5e9;border-color:#b6d9c1;box-shadow:0 5px 0 #a5c7b1}.t-class:nth-child(3n+3){background:#fff1cb;border-color:#e5cd91;box-shadow:0 5px 0 #d7be83}.t-class b{font-size:1.2rem}.t-class .code,.t-code-big{color:#7752a7;letter-spacing:.12em;overflow-wrap:anywhere}.t-class small{line-height:1.8}.t-table-wrap{border:1px solid #e1d5ed;border-radius:16px}.t-table th{background:#eee3fa;color:#6e4c93;font-size:.75rem;letter-spacing:0;text-transform:none;position:sticky;top:0;z-index:1}.t-table td{padding:14px 10px;line-height:1.65}.t-table tbody tr:nth-child(even){background:#f8f3fe}.t-table .bar i{background:#7bb99a}.t-table .btn{min-height:36px;padding:4px 10px}.t-wrap .row2{display:grid;grid-template-columns:1fr}.t-wrap .row2 input{width:100%;min-width:0}.toast{border-radius:18px;background:#4b356b;color:#fff;line-height:1.7}
@media(orientation:landscape){.screen.home{height:calc(100dvh - 72px)}.screen.parent{height:calc(100dvh - 72px)!important;max-height:calc(100dvh - 72px)!important;overflow:hidden!important;padding:14px 24px 20px}.parent>.card:not([hidden]){height:100%!important;max-height:100%!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin}.t-wrap:has(.teacher-welcome){height:100dvh;grid-template-rows:auto minmax(0,1fr);min-height:0}.t-wrap:has(.teacher-welcome) .t-auth{max-height:100%;overflow:auto;scrollbar-width:thin}.t-wrap:not(:has(.teacher-welcome)){height:100dvh;overflow:auto;scrollbar-width:thin}.t-table-wrap{max-height:48dvh;overflow:auto}}
@media(orientation:landscape) and (max-height:520px){:root{--r:20px}.topbar{min-height:54px;padding-top:4px;padding-bottom:4px}.topbar .brand-mini{height:40px;width:52px}.screen.home{height:calc(100dvh - 58px);padding:10px 18px;gap:12px;grid-template-rows:minmax(0,1.2fr) minmax(0,1fr)}.home .hero{padding:10px 20px;gap:12px}.hero .companion{max-height:30dvh}.hero-text{gap:2px}.hero .bubble{font-size:1.2rem}.hero-subtitle{font-size:.8rem}.hero .btn.today{min-width:180px;padding:4px 18px;border-radius:16px}.today-ta{font-size:1.3rem}.hero .today small{font-size:.7rem}.adventure-kicker{display:none}.home .tile{padding:8px 14px;min-height:0}.home .tiles{gap:12px}.home .tile b{font-size:.9rem}.home .tile small{font-size:.68rem}.home .sticker{width:24px;height:24px;font-size:.85rem}.home .sticker-row{gap:4px}.screen.parent{height:calc(100dvh - 58px)!important;max-height:calc(100dvh - 58px)!important;padding:8px 14px 14px;gap:10px}.parent-tabs .btn{font-size:.72rem;min-height:34px;padding:4px 8px}.parent>.card{padding:14px}.stats>div{padding:8px}.stats b{font-size:1.2rem}.t-wrap{padding:10px 16px}.t-wrap:has(.teacher-welcome){gap:12px 22px}.t-top{padding:5px 12px;border-radius:16px;gap:12px}.t-top img{width:66px;height:45px}.t-top h1{font-size:1.05rem}.t-top small{font-size:.7rem}.t-wrap .t-auth{padding:14px 18px}.t-auth form{gap:6px}.t-auth form label{font-size:.8rem;gap:3px}.t-auth input{min-height:34px!important;padding:5px 10px!important}.t-auth .tabs{margin-bottom:8px}.t-auth .hint{font-size:.68rem;margin:7px 0}.teacher-welcome{padding:14px}.teacher-welcome img{width:30%}.teacher-welcome h2{font-size:1.25rem}.teacher-welcome p{font-size:.8rem}.start-screen .logo{width:110px}.start-screen .who-card{padding:10px}.start-screen .who-icon{width:23dvh;height:23dvh}}
@media(orientation:portrait){.screen.home{height:auto;grid-template-rows:auto auto;padding:16px}.home .hero{padding:18px;gap:12px}.hero .btn.today{min-width:0;width:100%}.home .tiles{grid-template-columns:1fr}.t-wrap:has(.teacher-welcome){display:block;min-height:100dvh}.teacher-welcome{display:none}.t-wrap .t-auth{margin:20px auto}.t-top{flex-wrap:wrap}.t-top img{width:70px}.parent .setting{grid-template-columns:minmax(0,1fr) minmax(0,44%)}.ui-orientation-message{background:#fff1bf;color:#735322;border-color:#e2c77d}.start-screen .logo{width:130px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Explicitly supersede the previous auth hero composition. */
.t-wrap:has(.teacher-welcome){align-content:stretch;max-width:1450px}
.t-wrap:has(.teacher-welcome)>.t-top{display:flex;flex-direction:row;text-align:left;justify-content:flex-start;align-items:center;gap:16px;padding:10px 18px;border:2px solid #d6c4e8;grid-column:1/-1}
.t-wrap:has(.teacher-welcome)>.t-top:after{display:none}
.t-wrap:has(.teacher-welcome)>.t-top img{width:85px;height:60px}
.t-wrap:has(.teacher-welcome)>.t-top small{display:block}
.t-wrap:has(.teacher-welcome)>.t-top h1{font-size:1.4rem}
.account-screen>h1:after{background-image:url('../assets/roles/parent.svg');background-size:contain;background-repeat:no-repeat;box-shadow:none}
@media(orientation:landscape) and (max-height:520px){.t-wrap:has(.teacher-welcome){padding:10px 16px;gap:10px 22px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.t-wrap:has(.teacher-welcome)>.t-top{padding:4px 12px;gap:12px}.t-wrap:has(.teacher-welcome)>.t-top img{width:65px;height:42px}.t-wrap:has(.teacher-welcome)>.t-top h1{font-size:1.05rem}}
@media(orientation:portrait){.t-wrap:has(.teacher-welcome){display:block;padding:16px}.t-wrap:has(.teacher-welcome)>.t-top{margin-bottom:18px}.t-wrap .t-auth{max-height:none}}
@media(orientation:landscape){.screen.home .hero{gap:20px!important;padding:18px 28px!important;grid-template-columns:minmax(0,1fr) minmax(100px,28%)}.screen.home .hero .btn.today{width:min(100%,460px)!important;justify-self:start}.screen.home .hero>.mascot{max-height:100%;max-width:250px}.screen.home .hero>.mascot .companion{max-height:30dvh}}
@media(orientation:landscape) and (max-height:520px){.screen.home .hero{padding:8px 18px!important;gap:12px!important}.screen.home .hero .btn.today{max-width:360px!important}.screen.home .hero .bubble{line-height:1.5}.hero .hero-subtitle{line-height:1.5}.screen.home .hero>.mascot{max-width:130px}}

/* Preview composition correction: one world, compact hero, actual progress stones. */
:root{--ink:#3c3453;--maroon:#8060b6;--cream:#fbf6e9;--paper:#fffdf5}
body{background:#fbf6e9}body:before,body:after{display:none}
.topbar{width:min(100%,1280px);margin:auto;background:#fffdf7;border-bottom:2px solid #eee3cf;box-shadow:none;padding:8px 22px;min-height:80px}.topbar .brand-mini{width:74px;height:64px}.topbar .who{border:0;background:#ece0f9}.topbar .pill{border:0;background:#fff0bc;border-radius:17px}.topbar .voice-toggle,.topbar .help-btn,.topbar .icon-btn{box-shadow:none;border:0;background:#e8f1e4}
.screen.home{position:relative;isolation:isolate;max-width:1248px;width:calc(100% - 32px);margin:16px auto 22px;padding:24px 28px 26px;border:3px solid #fffdf7;border-radius:27px;background:linear-gradient(#dff4fa 0%,#e5f5ef 62%,#e6edc6 62%,#d8e8b9 100%);box-shadow:0 6px 0 #e6ddc9;overflow:hidden;display:grid;grid-template-rows:minmax(0,1.3fr) minmax(0,.85fr);gap:20px}
.screen.home:before{content:'';position:absolute;left:-10%;right:-5%;bottom:-150px;height:280px;border-radius:50%;background:#c8dfb0;transform:rotate(-4deg);z-index:-1}.screen.home:after{content:'';position:absolute;width:100px;height:27px;background:#ffffffb0;border-radius:40px;top:36px;left:6%;box-shadow:70vw 24px 0 8px #ffffff88;z-index:-1}
.screen.home .hero.card{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(150px,.7fr)!important;grid-template-areas:'copy mascot';gap:20px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;overflow:visible;min-height:0;align-items:center!important}
.screen.home .hero:before,.screen.home .hero:after{display:none!important}.screen.home .hero>.hero-text{display:grid;gap:7px;align-content:center;justify-items:start;padding:0!important;max-width:none!important}.screen.home .hero .adventure-kicker{display:block;font-size:11px;color:#4c886e;line-height:1.7;margin:0!important}.screen.home .hero .bubble{font-size:clamp(23px,2.4vw,36px);line-height:1.55;color:#484063;font-weight:700;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}.screen.home .hero .bubble:after{display:none!important}.screen.home .hero .hero-subtitle{font-size:13px;line-height:1.8;color:#6c7c7c;margin:0 0 9px!important}
.screen.home .hero .btn.today{width:100%!important;max-width:450px!important;min-width:0!important;border:2px solid #ffe79b!important;border-radius:22px;padding:12px 20px!important;background:#ffd365!important;box-shadow:0 6px 0 #d6a43b!important;min-height:0;gap:2px}.screen.home .hero .today-ta{font-size:22px;line-height:1.6;color:#3c3453}.screen.home .hero .btn.today small{font-size:11px;line-height:1.7;color:#775c2d}.screen.home .hero .btn.today:after{font-size:22px}
.screen.home .hero>.mascot{position:relative!important;justify-self:center;align-self:center!important;width:100%!important;max-width:220px!important;max-height:220px!important;aspect-ratio:1;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.screen.home .hero>.mascot:before{content:'';position:absolute;inset:8%;border-radius:50%;background:#fff7c780;display:block}.screen.home .hero>.mascot:after{display:none!important}.screen.home .hero .companion{width:100%!important;height:100%!important;max-height:220px!important;border-radius:32%;filter:drop-shadow(0 12px 5px #64794b26);position:relative}
.screen.home .tiles{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;min-height:0;height:auto;align-items:stretch}.screen.home .tile.card{display:grid;grid-template-columns:1fr!important;align-content:center;align-items:center;gap:10px;padding:14px 17px!important;background:#fffdf5!important;border:2px solid #d8c7e5!important;border-radius:23px;box-shadow:0 5px 0 #bfb2d6!important;min-height:0!important}.screen.home .tile-icon{display:none!important}.screen.home .tile>span:not(.meter):not(.storybook-stones){grid-column:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px}.screen.home .tile b{font-size:13px;line-height:1.7}.screen.home .tile small{font-size:10px;font-weight:400;color:#8c7d93}.screen.home .tile .meter{height:4px;margin:0;background:#e8def0}.screen.home .tile .meter i{background:#b198cc}.screen.home .tile.stickers{background:#fff2d8!important;border-color:#e6c38f!important;box-shadow:0 5px 0 #d7b488!important;grid-template-columns:1fr!important}.screen.home .stickers>b{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.screen.home .sticker-row{display:flex!important;justify-content:space-between;gap:8px;flex-wrap:nowrap;min-width:0}.screen.home .sticker{width:clamp(30px,4vw,48px);height:clamp(30px,4vw,48px);font-size:25px;border:2px dashed #d8bf91;border-radius:15px;background:#f5e2bc;box-shadow:none;flex:0 1 48px;min-width:0}.screen.home .sticker.got{background:#fffcf0;border:2px solid #efd6aa;box-shadow:0 3px 0 #ecd0a3}.screen.home .sticker:nth-child(n+7){display:none}
.storybook-stones{display:flex;justify-content:space-between;align-items:center;gap:8px;position:relative}.storybook-stones:before{content:'';position:absolute;left:10px;right:10px;top:50%;border-top:4px dotted #d2c1e5}.storybook-stone{position:relative;width:43px;height:43px;border:3px solid #fffdf5;border-radius:50%;display:grid;place-items:center;background:#ece6f4;box-shadow:0 3px 0 #d2c6df;color:#9c8daa;font-size:16px}.storybook-stone.done{background:#cde8d7;color:#4d8a6b;box-shadow:0 3px 0 #96bda6}.storybook-stone.current{background:#ffdb78;color:#815a27;box-shadow:0 3px 0 #d0aa4a;outline:3px solid #fff0b9}
@media(orientation:landscape){.screen.home{height:calc(100dvh - 120px);min-height:0;max-height:700px}}
@media(orientation:landscape) and (max-height:520px){.topbar{min-height:54px;padding:4px 16px}.topbar .brand-mini{width:54px;height:42px}.screen.home{height:calc(100dvh - 76px);margin:8px auto 12px;padding:12px 18px;gap:12px;grid-template-rows:minmax(0,1.2fr) minmax(0,.85fr)}.screen.home .hero.card{gap:12px!important;grid-template-columns:minmax(0,1.3fr) minmax(100px,.7fr)!important}.screen.home .hero .adventure-kicker{font-size:9px}.screen.home .hero .bubble{font-size:21px}.screen.home .hero .hero-subtitle{font-size:10px;margin-bottom:2px!important}.screen.home .hero>.hero-text{gap:3px}.screen.home .hero .btn.today{padding:5px 14px!important;border-radius:16px;max-width:360px!important}.screen.home .hero .today-ta{font-size:18px}.screen.home .hero .btn.today small{font-size:9px}.screen.home .hero>.mascot{max-width:140px!important;max-height:140px!important}.screen.home .tile.card{padding:8px 12px!important;gap:6px}.screen.home .tile b{font-size:11px}.screen.home .tile small{font-size:9px}.storybook-stone{width:30px;height:30px;font-size:12px}.screen.home .sticker{width:30px;height:30px;font-size:18px;border-radius:10px}.screen.home .tiles{gap:12px}}
@media(orientation:portrait){.screen.home{height:auto;min-height:530px;padding:20px 16px;grid-template-rows:auto auto}.screen.home .hero.card{grid-template-columns:minmax(0,1fr) 120px!important}.screen.home .hero .bubble{font-size:21px}.screen.home .hero .btn.today{padding:8px 10px!important}.screen.home .tiles{grid-template-columns:1fr}.screen.home .hero .today-ta{font-size:19px}}

/* Six stones fit narrow portrait cards without clipping. */
@media(orientation:portrait) and (max-width:600px){
 .screen.home .storybook-stones{width:100%;min-width:0;gap:clamp(3px,1.4vw,8px)}
 .screen.home .storybook-stone{flex:0 1 43px;min-width:0;width:43px;max-width:43px;height:auto;aspect-ratio:1;font-size:clamp(11px,3.5vw,16px);border-width:2px}
}
