@charset "UTF-8";
:root{--paper:#f7f3e8;--ink:#243647;--teal:#176b68;--deep:#11514f;--amber:#e9a23b;--line:#dce2dc;--muted:#64716c;--red:#b84747;--soft:#e9f1ea;--white:#fffefa;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 0 40%,#dce9dd66,transparent 55%),var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b36a17;outline-offset:4px}button{color:inherit}button:disabled{opacity:.55}[hidden]{display:none!important}a{color:inherit}h1,h2,h3,p{margin:0}button{min-height:48px}p{line-height:1.75}fieldset{margin:0;padding:0;border:0}legend{width:100%;font-size:13px;font-weight:800;letter-spacing:.05em;color:var(--teal);margin-bottom:12px;display:flex;align-items:center;gap:12px}legend span{font-size:15px;letter-spacing:0;color:var(--ink)}legend .text-button{margin-left:auto;min-height:32px;font-size:14px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--teal);flex-shrink:0}select,input[type=text],textarea{border:1px solid #bdc9bf;border-radius:10px;background:var(--white);color:var(--ink);padding:12px;min-height:48px;width:100%}textarea{line-height:1.7;resize:vertical}select{cursor:pointer}small{font-size:13px}.app-shell{max-width:1440px;margin:auto;padding:0 44px}.topbar{height:100px;border-bottom:1px solid #cfdacf;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:23px;font-weight:800;letter-spacing:2px;flex-shrink:0}.brand small{display:block;font-size:10px;letter-spacing:2.3px;color:var(--teal);margin-top:4px}.brand-mark{display:grid;place-items:center;background:var(--teal);color:var(--paper);border-radius:14px;width:48px;height:48px;font-size:30px;transform:rotate(-6deg)}nav{display:flex;gap:10px;align-items:center}.nav-button,.icon-button{background:transparent;border:0;border-radius:12px;min-height:48px}.nav-button{padding:10px 14px;font-size:15px;font-weight:600}.icon-button{width:48px;flex-shrink:0;font-size:23px;border:1px solid var(--line)}.icon-button:hover,.nav-button:hover{background:#e5eadd}.count{background:#e2e9df;color:var(--teal);border-radius:100px;padding:2px 7px;margin-left:4px;font-size:13px}.home-view{display:grid;grid-template-columns:1fr 1.02fr;gap:62px;padding:38px 0 30px;align-items:center}.welcome{position:relative;padding:8px 0 0 8px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:2px;color:var(--teal);font-weight:800}.eyebrow>span{width:6px;height:6px;background:var(--teal);border-radius:50%}.welcome h1{font-size:clamp(36px,3.5vw,52px);line-height:1.3;letter-spacing:-1px;margin:22px 0 16px;font-weight:850}.welcome h1 span{color:var(--teal);position:relative}.welcome h1 span:after{content:"";position:absolute;height:5px;background:var(--amber);left:0;right:4px;bottom:-7px;transform:rotate(-1deg);border-radius:10px}.intro{color:var(--muted);font-size:16px;line-height:1.8}.mascot-scene{height:310px;position:relative;display:flex;justify-content:center;align-items:center;margin-top:4px}.mascot{width:310px;height:310px;object-fit:contain;position:relative;z-index:2}.orbit{position:absolute;border:1px dashed #aabdb099;border-radius:50%;width:315px;height:225px;transform:rotate(-20deg)}.orbit-two{width:360px;height:260px;transform:rotate(28deg);border-color:#bcbda95c}.time-tag{position:absolute;padding:10px 13px;border:1px solid #d5d8c7;background:var(--white);border-radius:9px;color:var(--teal);font-size:11px;font-weight:800;letter-spacing:1.4px;z-index:3;box-shadow:0 4px 0 #dfdfcf66;transform:rotate(-8deg)}.time-tag span{display:block;font-size:13px;letter-spacing:2px;margin-top:3px;color:var(--muted)}.past{left:4%;top:80px}.now{right:0;top:18px;transform:rotate(8deg);background:#f4deb2;color:#6d4b13}.future{right:0;bottom:62px;transform:rotate(-5deg)}.mascot-caption{position:absolute;bottom:1px;z-index:3;background:#fffefac9;padding:7px 18px;border:1px solid #dce2d6;border-radius:100px;font-size:13px;color:var(--teal)}.welcome-bottom{display:flex;justify-content:center;gap:20px;font-size:12px;color:var(--muted);margin-top:20px}.welcome-bottom span+span{border-left:1px solid #cad3c7;padding-left:20px}.setup-card{padding:28px 30px;background:var(--white);border:1px solid #d7ded3;border-radius:24px;box-shadow:0 12px 34px #364b3710;position:relative}.setup-card:before{content:"";height:5px;position:absolute;left:24px;right:24px;top:0;background:repeating-linear-gradient(120deg,var(--teal) 0 12px,transparent 12px 24px,var(--amber) 24px 36px,transparent 36px 48px)}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.overline{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:800}.card-heading h2{font-size:25px;margin-top:7px}.postal-mark{width:62px;height:62px;border:2px solid #b3c6b7;outline:1px solid #b3c6b7;outline-offset:-6px;border-radius:50%;display:grid;place-content:center;text-align:center;font-size:12px;color:#829988;letter-spacing:3px;transform:rotate(15deg);line-height:1.6}.setup-card fieldset+fieldset{margin-top:22px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-choice{text-align:left;border:1px solid #dce2d8;border-radius:12px;padding:14px 16px;background:var(--white);display:grid;grid-template-columns:36px 1fr;gap:5px 10px}.choice-icon{grid-row:span 2;font-size:22px;align-self:center;color:var(--teal);font-weight:700}.mode-choice strong{font-size:16px}.mode-choice small{color:var(--muted);font-size:12px}.mode-choice.selected{background:#eef5ed;border:1.5px solid var(--teal);box-shadow:0 0 0 1px var(--teal)}.tense-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tense-chip{min-height:44px;padding:8px 3px;border:1px solid #dce2d8;border-radius:8px;background:var(--white);font-size:13px;white-space:nowrap}.tense-chip.selected{background:var(--teal);border-color:var(--teal);color:#fff}.tense-chip:hover{border-color:var(--teal)}.setting-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;margin-top:23px}.setting-row label{font-size:13px;color:var(--muted);display:grid;gap:8px}.setting-row select{padding:10px 8px;font-size:14px}.setup-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:19px 0 14px;font-size:12px;color:var(--muted)}.check-label{display:flex;align-items:center;gap:6px;cursor:pointer;min-height:36px}.primary{border:1px solid var(--teal);background:var(--teal);color:white;border-radius:12px;padding:13px 23px;font-weight:700;min-height:50px}.primary:hover{background:var(--deep)}.secondary{background:var(--white);border:1px solid #b9cabe;color:var(--teal);padding:12px 20px;border-radius:12px;font-weight:650}.secondary:hover{background:var(--soft)}.primary:active,.secondary:active{transform:translateY(1px)}.start-button{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:19px;min-height:58px}.start-button span:last-child{font-size:27px}.setup-tip{text-align:center;color:var(--muted);font-size:12px;margin-top:13px}.resume-button{width:100%;border:1px dashed var(--teal);background:#eff4e9;color:var(--teal);margin-top:10px;border-radius:10px;font-size:14px}.text-button{color:var(--teal);background:none;border:0;padding:6px 4px;font-size:14px;font-weight:600;min-height:44px}.footer{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);border-top:1px solid #d4dccf;padding:18px 0 24px}.notice{background:#fff2d1;color:#704607;padding:14px;border-radius:10px;margin:16px 0;line-height:1.7;font-size:14px}.error-text{color:var(--red);font-size:14px;margin-bottom:10px;white-space:pre-line}.game-top{display:flex;justify-content:space-between;align-items:center;padding:22px 0 18px;gap:12px;color:var(--muted);font-size:14px}.compact{padding:8px 16px;min-height:44px}.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);padding:18px 26px;background:var(--teal);color:white;border-radius:16px;gap:12px}.stats-strip>div{display:flex;align-items:center;justify-content:center;gap:20px;border-right:1px solid #ffffff30}.stats-strip>div:last-child{border:0}.stats-strip span{font-size:13px;color:#deece3}.stats-strip strong{font-size:27px;font-variant-numeric:tabular-nums}.stats-strip small{font-size:13px}.stats-strip .urgent{color:#ffcf7b}.progress-track{height:5px;background:#d9e1d7;border-radius:4px;margin:12px 2px 22px;overflow:hidden}.progress-track>div{background:var(--amber);height:100%;transition:width .2s}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:24px;margin-bottom:30px;align-items:start}.letter-card{border:1px solid #d7ded3;background:var(--white);border-radius:20px;padding:26px 32px;min-width:0}.letter-meta{display:flex;align-items:center;justify-content:space-between;gap:16px}.tense-badge{background:#ebf1e7;color:var(--teal);border-radius:100px;padding:8px 14px;font-size:14px;font-weight:700}.attempt-text{color:var(--teal);font-size:13px;letter-spacing:2px}.letter-kicker{margin-top:25px;font-size:14px;color:var(--muted)}.question{font-family:"Segoe UI",Arial,"Microsoft YaHei",sans-serif;font-size:clamp(24px,2.5vw,36px);line-height:1.55;font-weight:650;margin-top:12px;overflow-wrap:anywhere;outline:none}.question .blank{display:inline-block;min-width:100px;border-bottom:3px solid var(--amber);vertical-align:baseline;color:var(--teal);text-align:center}.verb-hint{color:var(--muted);font-size:14px;margin:16px 0 24px}.verb-hint strong{color:var(--teal);font-size:18px;padding-right:10px}.answer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.answer-button{background:#f8f9f3;border:1px solid #cdd9cc;border-radius:10px;min-height:76px;padding:13px 12px;text-align:left;display:flex;align-items:center;gap:10px;overflow-wrap:anywhere;font-size:19px;font-weight:650;box-shadow:0 3px 0 #e4e9df;transition:background .15s,border-color .15s}.answer-button:hover:not(:disabled){background:#e7f0e3;border-color:var(--teal)}.option-letter{display:grid;place-items:center;flex-shrink:0;width:25px;height:29px;border:1px dashed #a6bba6;color:var(--teal);font-size:12px;font-weight:500}.answer-button.wrong{background:#faeeee;border-color:#c48585;color:#a23a3a;opacity:1}.answer-button.correct{background:#e0efdf;border:2px solid var(--teal);color:var(--teal);opacity:1}.feedback{margin-top:22px;min-height:26px;font-size:15px;color:var(--muted);line-height:1.65}.feedback.bad{color:var(--red)}.feedback.good{color:var(--teal)}.question-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:16px;padding-top:8px}.post-note{background:#f0e9d5;padding:26px 22px;border:1px solid #dfd7bc;border-radius:3px 18px 18px 18px;transform:rotate(1deg)}.post-note h3{font-size:18px;margin:14px 0}.post-note p{font-size:14px;color:#616b5f}.note-divider{border-top:1px dashed #c4c7ad;margin:22px 0}.note-stamp{display:block;font-size:50px;color:#b89151;transform:rotate(-10deg);margin:10px 0}.post-note small{font-size:12px;line-height:1.8;color:#6e7769}.reveal{background:#eef4eb;border:1px solid #d0dfca;border-radius:13px;padding:16px 20px;margin-top:18px}.reveal-title{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--teal);font-size:14px;font-weight:700}.complete-sentence{font-size:21px;font-weight:650;margin:8px 0}.reveal>p:not(.complete-sentence){font-size:15px}.reveal .explanation{border-top:1px solid #d2dfca;padding-top:10px;margin-top:10px;color:#53654f}.muted{font-size:13px!important;color:var(--muted)}.next-button{display:block;margin:15px 0 0 auto;min-width:150px}.result-view{max-width:1000px;margin:40px auto}.result-heading{text-align:center}.result-heading .eyebrow{justify-content:center}.result-heading h1{font-size:36px;margin:14px 0}.result-heading p{color:var(--muted)}.result-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:30px 0 22px;border:1px solid #d2ddd0;border-radius:18px;background:var(--white);padding:22px 10px}.result-stat{text-align:center;border-right:1px solid var(--line)}.result-stat:last-child{border:0}.result-stat strong{display:block;font-size:38px;color:var(--teal);margin-bottom:8px}.result-stat span{font-size:14px;color:var(--muted)}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.review-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:36px 0 16px}.review-heading h2{font-size:22px}.review-heading span{font-size:12px;color:var(--muted)}.result-row{padding:18px 20px;background:var(--white);border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.result-row h3{font-size:18px;line-height:1.6;margin-bottom:8px;font-weight:600}.result-row p{font-size:14px;color:var(--muted)}.row-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:12px;color:var(--muted)}.status-label{color:var(--teal);background:#e8f1e4;padding:5px 9px;border-radius:6px}.status-label.needs-review{color:#955730;background:#f7edda}.tool-dialog{border:1px solid #d5dfd1;border-radius:20px;background:var(--white);color:var(--ink);width:min(780px,calc(100% - 36px));max-height:calc(100dvh - 48px);padding:24px 28px;box-shadow:0 25px 80px #12393430}.tool-dialog::backdrop{background:#153f3db3;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-heading h2{font-size:24px}.dialog-content p{margin-bottom:12px}.dialog-section{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.dialog-section h3{font-size:18px;margin-bottom:12px}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.library-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.library-row label{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.library-row strong{display:block;font-size:15px;overflow-wrap:anywhere}.library-row small{color:var(--muted);display:block;margin-top:5px}.library-row .text-button{color:var(--red);flex-shrink:0}.field-label{display:grid;gap:8px;font-size:14px;margin:14px 0}.import-hint{font-size:13px;color:var(--muted);line-height:1.8}.preview-list{padding:14px;background:#eef4ea;border-radius:10px;margin:12px 0;font-size:14px;line-height:1.8}.empty-box{padding:30px;text-align:center;background:#eef3ea;border-radius:14px;color:var(--teal)}.help-list{padding-left:22px;line-height:1.9;font-size:16px}.help-list li{margin:12px 0}.pause-overlay{position:fixed;inset:0;z-index:50;background:#163e3bdd;backdrop-filter:blur(8px);display:grid;place-items:center;padding:20px}.pause-card{width:min(420px,100%);background:var(--white);border-radius:24px;text-align:center;padding:36px}.pause-symbol{font-size:42px;color:var(--teal)}.pause-card h2{margin:16px 0 12px}.pause-card p{color:var(--muted);margin-bottom:24px}.pause-card button{display:block;margin:12px auto 0;width:100%}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#244b45;color:white;padding:14px 22px;border-radius:12px;box-shadow:0 8px 30px #123a3830;z-index:100;line-height:1.6;font-size:14px;white-space:pre-line}
@media(min-width:1200px) and (max-height:820px){.topbar{height:82px}.home-view{padding:24px 0;gap:50px}.welcome h1{font-size:43px;margin-top:18px}.mascot-scene{height:255px}.mascot{width:265px;height:265px}.setup-card{padding:22px 26px}.card-heading{margin-bottom:16px}.setup-card fieldset+fieldset{margin-top:17px}.setting-row{margin-top:18px}.welcome-bottom{margin-top:14px}.setup-foot{margin:13px 0 10px}.footer{padding:14px 0}}
@media(max-width:1150px){.app-shell{padding:0 28px}.home-view{gap:28px;grid-template-columns:.85fr 1.15fr}.welcome h1{font-size:38px}.setup-card{padding:24px}.tense-grid{grid-template-columns:repeat(2,1fr)}.welcome-bottom{gap:10px;flex-wrap:wrap}.welcome-bottom span+span{padding-left:10px}.time-tag{font-size:10px;padding:8px}.mascot{width:270px;height:270px}.orbit{width:240px;height:220px}.orbit-two{width:270px}.past{left:-8px}.future{right:-8px}.play-layout{grid-template-columns:minmax(0,1fr) 190px;gap:18px}.post-note{padding:22px 16px}.letter-card{padding:24px}.stats-strip>div{gap:10px}.nav-button{padding:8px}.topbar nav{gap:6px}}
@media(max-width:900px){.topbar{height:86px}.brand{font-size:21px}.nav-button{font-size:14px}.topbar nav{gap:2px}.topbar .icon-button{width:42px;min-height:44px}.home-view{grid-template-columns:1fr;gap:22px;padding-top:25px}.welcome{display:grid;grid-template-columns:1fr 230px;padding:0;min-height:220px;align-content:center;column-gap:12px}.welcome .eyebrow{grid-column:1}.welcome h1{grid-column:1;font-size:35px;margin:14px 0}.intro{grid-column:1;font-size:14px}.mascot-scene{grid-column:2;grid-row:1/5;height:230px;margin:0;align-self:center}.mascot{width:220px;height:220px}.orbit{width:185px;height:160px}.orbit-two{width:215px;height:180px}.time-tag{display:none}.mascot-caption{font-size:11px;bottom:-5px;padding:5px 10px}.welcome-bottom{justify-content:flex-start;grid-column:1;gap:12px;font-size:11px;margin-top:16px}.welcome-bottom span+span{padding-left:12px}.setup-card{padding:26px}.tense-grid{grid-template-columns:repeat(4,1fr)}.play-layout{grid-template-columns:1fr}.post-note{transform:none;display:none}.stats-strip{padding:16px}.stats-strip>div{display:block;text-align:center}.stats-strip strong{display:block;margin-top:4px;font-size:25px}.question{font-size:30px}.footer{margin-top:6px}}
@media(max-width:600px){.app-shell{padding:0 16px}.topbar{height:auto;min-height:86px;flex-wrap:wrap;gap:8px;padding:14px 0}.brand{font-size:20px}.brand-mark{width:42px;height:42px}.topbar nav{width:100%;justify-content:space-between}.welcome{grid-template-columns:1fr 130px;min-height:175px;gap:4px}.welcome h1{font-size:27px}.welcome .eyebrow{font-size:10px;letter-spacing:1px}.intro{font-size:13px}.mascot-scene{height:160px}.mascot{width:155px;height:155px;max-width:none}.orbit{width:125px;height:125px}.orbit-two,.mascot-caption{display:none}.welcome-bottom{grid-column:1/3;font-size:11px}.setup-card{padding:23px 18px}.card-heading h2{font-size:23px}.postal-mark{width:52px;height:52px}.mode-choice{padding:12px 10px;grid-template-columns:26px 1fr;gap:5px}.mode-choice strong{font-size:15px}.mode-choice small{font-size:11px}.choice-icon{font-size:20px}.tense-grid{grid-template-columns:repeat(2,1fr)}.tense-chip{min-height:48px;font-size:14px}.setting-row{gap:8px;grid-template-columns:1.2fr 1fr 1fr}.setting-row select{font-size:13px;padding:10px 4px}.setup-foot{flex-wrap:wrap;font-size:12px}.game-top{font-size:12px}.stats-strip{gap:4px;padding:14px 4px}.stats-strip span{font-size:11px}.stats-strip strong{font-size:21px}.letter-card{padding:20px 16px}.question{font-size:25px}.answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.answer-button{min-height:74px;font-size:17px;padding:10px 8px;gap:6px}.letter-kicker{margin-top:18px}.attempt-text{font-size:11px;letter-spacing:0}.tense-badge{font-size:13px}.reveal{padding:14px}.reveal-title{flex-wrap:wrap;gap:0}.complete-sentence{font-size:19px}.question-actions{gap:8px}.question-actions .text-button{font-size:13px}.tool-dialog{padding:20px 18px;width:calc(100% - 24px)}.result-heading h1{font-size:27px}.result-stats{grid-template-columns:repeat(2,1fr);gap:20px 0}.result-stat:nth-child(2){border:0}.result-stat strong{font-size:31px}.review-heading{align-items:start;flex-direction:column;gap:8px}.result-actions>*{flex:1;white-space:nowrap}.result-view{margin-top:28px}.row-top{flex-wrap:wrap}.footer{font-size:11px}.overline{font-size:10px}.toast{width:max-content}}
.tense-chip{min-height:48px;font-size:14px}.setting-row label{font-size:14px}.setup-foot{font-size:14px}.mode-choice small{font-size:13px}.topbar .icon-button{width:48px;min-height:48px}.check-label{min-height:48px}.text-button{min-height:48px}.setup-tip{font-size:13px}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* v0.2 — child-facing invitation, adult controls in settings. */
.settings-launch{display:flex;align-items:center;gap:9px;min-height:54px;padding:10px 20px;border:2px solid #d3e9df;border-radius:22px;background:#ffffffd9;color:#316c65;font-size:17px;font-weight:700;box-shadow:0 3px 0 #d3e8dd66}
.settings-launch span{font-size:23px}.settings-launch:hover{background:#effbf1}
.home-active{background:radial-gradient(ellipse at 12% 20%,#fff 0,transparent 38%),linear-gradient(180deg,#e9faff 0%,#f4fcf8 62%,#edfadf 100%)}
.home-active .app-shell{max-width:1440px}.home-active .topbar{height:88px;border:0;position:relative;z-index:2}.home-active .brand>span:last-child{display:none}.home-active .brand-mark{background:#fff;color:#369987;box-shadow:0 4px 0 #cce8dc;border-radius:19px;width:54px;height:54px}
.home-active .footer{display:none}
.child-home{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100svh - 108px);padding:12px 0 28px;gap:14px;text-align:center;isolation:isolate}
.home-heading{z-index:2}.home-heading h1{font-size:clamp(36px,4.5vw,60px);line-height:1.15;letter-spacing:4px;color:#236f65;text-shadow:0 3px 0 white;font-weight:850}.home-heading p{font-size:clamp(17px,1.7vw,22px);color:#5b8175;margin-top:14px;line-height:1.6}
.child-scene{position:relative;width:min(620px,100%);height:clamp(160px,40svh,365px);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.child-mascot{height:100%;width:auto;max-width:80%;object-fit:contain;z-index:2;filter:drop-shadow(0 15px 10px #3d726216);animation:dida-hello 4s ease-in-out infinite}
.scene-halo{position:absolute;width:78%;height:83%;border-radius:50%;background:radial-gradient(ellipse,#fff9d6 0%,#fffce5 54%,#ffffff00 73%);transform:rotate(-8deg);z-index:0}
.scene-stamp{position:absolute;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:76px;height:87px;border:3px solid white;outline:2px dashed #bad9d0;outline-offset:-8px;border-radius:21px;font-size:16px;font-weight:700;color:#5c7d71;background:#e3f2e8;box-shadow:0 8px 0 #d5e8dc70}
.scene-stamp>span{font-size:30px;line-height:1}.stamp-yesterday{left:9%;top:27%;transform:rotate(-12deg);background:#e0f0ff;color:#5d8099;outline-color:#bdd9ea}.stamp-today{right:8%;top:8%;transform:rotate(12deg);background:#fff1be;color:#93804d;outline-color:#ebd99c}.stamp-tomorrow{right:5%;bottom:9%;transform:rotate(-8deg)}
.home-action{width:min(380px,86%);z-index:3;margin-top:4px}.child-start{width:100%;min-height:82px;padding:16px 30px;display:flex;justify-content:center;align-items:center;gap:20px;border:3px solid #fff7c9;border-radius:29px;background:linear-gradient(180deg,#ffd778,#ffc658);color:#654915;font-size:clamp(25px,2.5vw,31px);font-weight:850;letter-spacing:2px;box-shadow:0 7px 0 #dfa541,0 13px 24px #b8a85e22;transition:transform .15s,box-shadow .15s}.child-start span:first-child{font-size:20px}.child-start span:last-child{font-size:30px}.child-start:hover{background:linear-gradient(180deg,#ffe197,#ffd06d);transform:translateY(-2px);box-shadow:0 9px 0 #dfa541,0 16px 25px #b8a85e20}.child-start:active{transform:translateY(4px);box-shadow:0 3px 0 #dfa541}.home-action .error-text{margin:18px 0 0;font-size:15px}
.settings-dialog{width:min(680px,calc(100% - 28px));border-radius:26px}.settings-dialog .setup-card{padding:0;border:0;box-shadow:none;background:transparent}.settings-dialog .setup-card:before,.settings-dialog .postal-mark{display:none}.settings-dialog .card-heading{margin-bottom:18px}.settings-dialog .card-heading h2{font-size:23px}.settings-dialog .tense-grid{grid-template-columns:repeat(4,1fr)}.settings-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.settings-tools .nav-button{border:1px solid var(--line);min-height:50px;font-size:15px}.settings-new{width:100%;margin-top:12px}.settings-done{width:100%;margin-top:20px;min-height:54px;border-radius:17px;font-size:18px}
.delivery-trail{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:16px 0 5px}.delivery-stamp{display:grid;place-items:center;width:30px;height:34px;border:2px dashed #c7d9ce;border-radius:9px;background:#eff5ea;color:#9fb8a7;font-size:23px}.delivery-stamp.delivered{border:2px solid #ecc169;background:#ffe4a1;color:#896025;box-shadow:0 2px 0 #e2c47e}.progress-track{margin-top:10px}
@keyframes dida-hello{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@media(max-width:900px){.home-active .topbar{height:78px}.child-home{min-height:calc(100svh - 94px)}.home-heading h1{font-size:46px}.child-scene{height:clamp(160px,40svh,360px)}.settings-dialog .tense-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:600px){.home-active .topbar{min-height:72px;height:72px;padding:10px 0;flex-wrap:nowrap}.topbar nav{width:auto;justify-content:flex-end}.settings-launch{font-size:15px;min-height:48px;padding:9px 15px;border-radius:18px}.home-active .brand-mark{width:45px;height:45px;border-radius:16px}.child-home{min-height:calc(100svh - 84px);padding:12px 0 24px;gap:17px}.home-heading h1{font-size:38px;letter-spacing:3px}.home-heading p{font-size:17px;margin-top:13px}.child-scene{height:clamp(170px,38svh,300px)}.child-mascot{max-width:86%}.scene-stamp{width:55px;height:64px;font-size:13px;border-radius:16px}.scene-stamp>span{font-size:22px}.stamp-yesterday{left:0;top:28%}.stamp-today{right:0;top:1%}.stamp-tomorrow{right:0;bottom:6%}.home-action{width:min(330px,89%)}.child-start{min-height:76px;font-size:27px;gap:15px;padding:14px 20px;border-radius:26px}.settings-dialog .tense-grid{grid-template-columns:repeat(2,1fr)}.settings-dialog{padding:22px 18px}.delivery-trail{gap:5px}.delivery-stamp{width:24px;height:28px;font-size:18px}}
@media(max-height:650px) and (min-width:650px){.home-active .topbar{height:64px;min-height:64px}.child-home{min-height:calc(100svh - 76px);padding:4px 0 18px;gap:9px}.home-heading h1{font-size:37px}.home-heading p{margin-top:7px;font-size:17px}.child-scene{height:clamp(125px,35svh,215px)}.child-start{min-height:66px;font-size:26px}.scene-stamp{width:60px;height:69px;font-size:13px}.scene-stamp>span{font-size:24px}}
@media(prefers-reduced-motion:reduce){.child-mascot{animation:none}.child-start{transition:none}}

/* v0.3: one-screen play surface; administrative dialogs scroll independently. */
html,body{height:100%;overflow:hidden}body{height:100dvh}.app-shell{height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr);padding:0 28px 12px;max-width:1440px}.app-shell>.topbar,.home-active .topbar{height:64px;min-height:64px;padding:6px 0;flex-wrap:nowrap}.app-shell>.notice{position:fixed;top:65px;left:20px;right:20px;z-index:35;max-height:100px;overflow:auto;margin:0}.app-shell>main{grid-row:3;min-height:0;height:100%}.app-shell>.footer{display:none}.brand{font-size:20px}.brand-mark,.home-active .brand-mark{width:44px;height:44px}.settings-launch{min-height:48px;padding:7px 16px}.child-home{height:100%;min-height:0;max-height:100%;padding:10px 0 18px;gap:12px}.home-heading{flex:none}.home-heading h1{font-size:clamp(34px,4.4vh,52px)}.home-heading p{margin-top:8px;font-size:clamp(16px,2.1vh,21px)}.child-scene{flex:0 1 365px;min-height:70px;height:auto;max-height:48%;width:min(620px,100%)}.child-mascot{width:auto;height:100%;max-height:100%;min-height:0}.home-action{flex:none;margin:0}.child-start{min-height:66px;height:clamp(66px,9vh,82px)}
#gameView{height:100%;min-height:0;display:grid;grid-template-rows:44px 58px 28px 4px minmax(0,1fr);gap:7px}.game-top{padding:0;font-size:14px}.game-top .text-button,.game-top .compact{min-height:40px;padding:4px 10px}.stats-strip{padding:7px 20px;border-radius:15px}.stats-strip>div{display:flex;gap:12px;align-items:center}.stats-strip strong{font-size:24px;margin:0}.stats-strip span{font-size:13px}.delivery-trail{margin:0;gap:6px;height:28px;flex-wrap:nowrap;align-items:center}.delivery-stamp{flex:1;min-width:6px;max-width:27px;height:25px;width:auto;font-size:19px;border-radius:7px}.progress-track{margin:0;height:4px}.play-layout{display:block;min-height:0;height:100%;margin:0}.post-note{display:none}.letter-card{height:100%;min-height:0;padding:14px 24px;display:flex;flex-direction:column;gap:7px;border-radius:19px}.letter-meta{flex:none;min-height:32px}.tense-badge{padding:6px 12px}.letter-kicker{flex:none;margin:0;font-size:13px;line-height:1.4}.question{flex:none;margin:0;font-size:clamp(23px,2.5vw,32px);line-height:1.4}.verb-hint{flex:none;margin:0;font-size:14px;line-height:1.6}.verb-hint strong{font-size:17px}.answer-grid{flex:1;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(48px,1fr);gap:9px;align-content:center;padding:2px 0}.answer-button{min-height:48px;padding:8px 12px;font-size:20px;border-radius:12px;box-shadow:0 2px 0 #e4e9df}.feedback{flex:none;margin:0;min-height:22px;font-size:14px;line-height:1.5}.question-actions{flex:none;min-height:44px;padding:0;margin:0}.question-actions .text-button{min-height:44px}.showing-answer .letter-kicker,.showing-answer .question,.showing-answer .verb-hint,.showing-answer .answer-grid{display:none}.showing-answer .reveal{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:16px 22px;gap:10px}.reveal-title{flex:none;min-height:40px}.complete-sentence{font-size:clamp(23px,2.3vw,30px);margin:0;line-height:1.45}.reveal>p:not(.complete-sentence){font-size:17px;line-height:1.6}.reveal .explanation{margin:0;padding-top:10px}.reveal .next-button{flex:none;align-self:flex-end;margin-top:auto;min-height:50px}.reveal #speechStatus:empty{display:none}.result-view{height:100%;min-height:0;max-width:1000px;display:flex;flex-direction:column;gap:10px;margin:0 auto;padding:8px 0}.result-heading h1{font-size:28px;margin:6px 0}.result-heading .eyebrow{font-size:11px}.result-heading p{font-size:14px}.result-stats{flex:none;padding:12px 8px;margin:0;grid-template-columns:repeat(4,1fr);gap:0}.result-stat strong{font-size:29px;margin-bottom:3px}.result-stat span{font-size:13px}.result-actions{flex:none}.result-actions button{min-height:44px;padding:8px 16px}.review-heading{margin:0;flex:none}.review-heading h2{font-size:18px}.result-list{flex:1;min-height:0}.result-list .result-row{height:100%;margin:0;padding:12px 18px}.result-list .row-top{margin-bottom:8px}.result-list h3{font-size:20px;line-height:1.5;margin-bottom:8px}.result-list p{font-size:14px;line-height:1.6}.review-pagination{display:flex;flex:none;justify-content:center;align-items:center;gap:24px;font-size:14px}.review-pagination button{min-height:44px;padding:8px 18px}
@media(max-width:900px){.app-shell{padding:0 20px 10px}.stats-strip>div{display:flex;text-align:left}.stats-strip strong{font-size:23px}.letter-card{padding:14px 20px}.child-home{min-height:0}.child-scene{height:auto;max-height:48%}.showing-answer .reveal{padding:18px}.question{font-size:27px}}
@media(max-height:700px){.app-shell>.topbar,.home-active .topbar{height:54px;min-height:54px}.brand small{display:none}#gameView{grid-template-rows:40px 46px 23px 3px minmax(0,1fr);gap:5px}.stats-strip{padding:5px 14px}.stats-strip strong{font-size:21px}.delivery-trail{height:23px}.delivery-stamp{height:21px;font-size:17px}.letter-card{padding:10px 18px;gap:5px}.question{font-size:24px;line-height:1.3}.letter-kicker{display:none}.answer-grid{gap:7px}.answer-button{font-size:18px;padding:6px 10px}.reveal>p:not(.complete-sentence){font-size:15px;line-height:1.4}.complete-sentence{font-size:23px}.showing-answer .reveal{gap:7px;padding:12px 16px}.reveal .explanation{padding-top:7px}.result-heading .eyebrow,.result-heading p{display:none}.result-heading h1{font-size:25px}.result-stats{padding:8px}.result-stat strong{font-size:24px}.result-view{gap:7px}.result-list h3{font-size:18px;margin-bottom:5px}.result-list p{font-size:13px;line-height:1.45}.home-heading h1{font-size:35px}.home-heading p{font-size:16px}.child-home{padding:6px 0 12px;gap:8px}.child-scene{height:auto}.scene-stamp{transform:scale(.85)}}
@media(max-width:600px){.app-shell{padding:0 12px 8px}.brand{font-size:17px}.brand small{display:none}.brand-mark{width:36px;height:36px;font-size:25px}.stats-strip{padding:6px 4px}.stats-strip>div{display:block;text-align:center}.stats-strip span{font-size:11px}.stats-strip strong{font-size:20px}.game-top{font-size:12px}.letter-card{padding:10px 12px;gap:6px}.question{font-size:23px;line-height:1.4}.answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.answer-button{font-size:17px;gap:6px;padding:7px 8px}.feedback{font-size:13px}.letter-meta{min-height:29px}.option-letter{width:21px;height:25px}.showing-answer .reveal{padding:12px;gap:9px}.complete-sentence{font-size:22px}.reveal>p:not(.complete-sentence){font-size:15px}.result-heading h1{font-size:23px}.result-stats{grid-template-columns:repeat(4,1fr)}.result-stat strong{font-size:22px}.result-stat span{font-size:11px}.review-heading{flex-direction:row;align-items:center;gap:8px}.review-heading span{display:none}.result-actions{gap:6px}.result-actions button{font-size:13px;padding:7px 8px;flex:1}.result-list .result-row{padding:10px 12px}.result-list h3{font-size:18px}.result-list p{font-size:13px}.review-pagination{gap:12px}.review-pagination button{padding:6px 12px}.child-home{min-height:0}.child-scene{max-height:46%;height:auto}.child-start{font-size:26px;min-height:66px}.home-action{width:min(330px,88%)}}
/* Password welcome uses the same one-screen home scene. */
.access-form{display:flex;flex-direction:column;gap:10px;width:100%;text-align:center}.access-form label{font-size:18px;font-weight:700;color:var(--teal)}.access-form input{width:100%;height:54px;border:2px solid #b8dcd5;border-radius:18px;padding:10px 18px;background:#fffefa;text-align:center;font:inherit;font-size:19px;letter-spacing:1px}.access-form input:focus{outline:3px solid #ffe4a1;outline-offset:2px;border-color:var(--teal)}.access-form .access-hint{font-size:13px;color:#64716c;margin:0}.access-form .error-text{margin:0;font-size:14px}.access-locked .child-scene{flex-basis:290px;max-height:36%}.access-locked .child-home{gap:8px;padding-top:4px;padding-bottom:8px}.access-form .child-start{width:100%}
@media(max-height:700px){.access-locked .child-scene{max-height:27%;flex-basis:150px}.access-form{gap:6px}.access-form input{height:48px}.access-form label{font-size:16px}.access-form .child-start{height:60px;min-height:60px}}
/* Five coordinated, bright classroom themes. */
body{--sky:#dff8e9;--ground:#f5ffe2;--accent:#248264;--button:#ffd064;--button-edge:#dca244;--wash:#eaf7ef;--teal:var(--accent);--deep:var(--accent)}
body[data-theme=ocean]{--sky:#ccefff;--ground:#e5faff;--accent:#187bad;--button:#79dcff;--button-edge:#37a4cd;--wash:#e8f7ff}
body[data-theme=peach]{--sky:#ffe0ec;--ground:#fff0e5;--accent:#b64270;--button:#ffa6c7;--button-edge:#d36b94;--wash:#fff0f6}
body[data-theme=sunny]{--sky:#fff0ac;--ground:#fff5df;--accent:#946014;--button:#ffc65a;--button-edge:#ce932b;--wash:#fff6da}
body[data-theme=lavender]{--sky:#e9dfff;--ground:#fceaff;--accent:#7a53b0;--button:#c6b0ff;--button-edge:#9573d1;--wash:#f3edff}
body,body.home-active{background:radial-gradient(ellipse at 15% 15%,#ffffffc9,transparent 45%),linear-gradient(160deg,var(--sky),var(--ground));color:#293c47}
.home-heading h1{color:var(--accent)}.home-active .brand-mark{color:var(--accent)}.child-start,.child-start:hover{background:var(--button);box-shadow:0 6px 0 var(--button-edge);color:#3d3440;border-color:#ffffffa6}.scene-halo{background:radial-gradient(ellipse,var(--button),transparent 70%);opacity:.5}.stats-strip{background:var(--accent)}.reveal,.tense-badge,.answer-button:hover{background:var(--wash)}.answer-button{border-color:var(--sky)}.main-tools{display:flex;gap:7px;align-items:center;flex-wrap:nowrap}.main-tools .settings-launch{padding:8px 12px;min-height:44px;border-radius:16px;font-size:15px;white-space:nowrap;color:var(--accent)}.theme-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.theme-choice{min-height:92px;border:3px solid #fff;border-radius:22px;font-size:20px;font-weight:700;color:#343946;box-shadow:0 3px 0 #00000012}.theme-choice[data-theme=mint]{background:#bceccc}.theme-choice[data-theme=ocean]{background:#a8e2ff}.theme-choice[data-theme=peach]{background:#ffc4dc}.theme-choice[data-theme=sunny]{background:#ffe293}.theme-choice[data-theme=lavender]{background:#decbff}.theme-choice[aria-pressed=true]{border-color:#49625a}
@media(max-width:1000px){.brand>span:last-child{display:none}.main-tools{gap:5px}.main-tools .settings-launch{padding:7px 10px;font-size:14px}}
@media(max-width:600px){.main-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.main-tools .settings-launch{min-height:34px;padding:4px 8px;font-size:12px}.app-shell>.topbar,.home-active .topbar{height:84px;min-height:84px}.theme-choice{font-size:17px;min-height:76px}}
.guide-overview>h2{font-size:30px;margin:8px 0 22px;color:var(--accent)}.guide-eyebrow{color:#5694bc;margin:0}.guide-intro{background:#edf8ff;border:1px solid #b5dff4;padding:22px;border-radius:25px}.guide-intro h3{margin:0 0 12px;font-size:21px}.guide-intro li{line-height:1.8;margin:5px 0}.guide-intro .secondary{background:#fff4ce;border:2px solid #ffc85a;min-height:54px;font-size:17px}.guide-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.guide-card{padding:22px;border-radius:24px;background:#eff8e7}.guide-card:nth-child(2n){background:#fff1d2}.guide-card:nth-child(3){background:#f0e7ff}.guide-card h3{font-size:20px;margin:0 0 12px}.guide-card p{font-size:16px;line-height:1.8;margin:0}.guide-overview>.primary{width:100%;min-height:50px}.tour-target{position:relative;outline:4px solid #ffb620!important;outline-offset:5px;box-shadow:0 0 0 10px #ffe68099!important;z-index:3}.tour-target:after{content:'⬇';position:absolute;left:50%;top:-35px;font-size:28px;color:#ed8b00;line-height:30px;text-shadow:0 1px 2px #fff;pointer-events:none}.tour-coach{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;width:min(520px,calc(100% - 32px));padding:16px 22px;background:#fff9e7;border:2px solid #ffce66;border-radius:22px;box-shadow:0 8px 30px #36465630;z-index:1000;color:#334952;text-align:left}.tour-coach strong{font-size:19px}.tour-coach p{font-size:16px;line-height:1.55;margin:8px 0}.tour-coach button{min-height:38px}.tool-dialog:has(.tour-coach){padding-bottom:190px}.tool-dialog>.tour-coach{position:sticky;bottom:0;left:auto;transform:none;width:100%;margin:18px 0 -165px}.tour-active .toast{display:none}
@media(max-width:700px){.guide-cards{grid-template-columns:1fr}.guide-overview>h2{font-size:25px}.guide-intro{padding:16px}.tour-coach{padding:12px 16px}.tour-coach p{font-size:14px}.main-tools .settings-launch{padding:7px;font-size:13px}}
/* Child-friendly practice: clear question, quiet stats, and a compact lion companion. */
.lion-guide{display:flex;align-items:center;gap:12px;flex:none;min-height:48px;background:var(--wash);border-radius:16px;padding:3px 14px;position:relative}.lion-guide img{width:48px;height:48px;object-fit:contain}.lion-guide p{font-size:16px;font-weight:650;margin:0;line-height:1.4}.flying-letter{display:none;color:var(--accent);font-size:25px}.celebrating .flying-letter{display:block;animation:deliver-letter .7s ease-out}.celebrating img{animation:lion-hop .55s ease-out}.encouraging img{transform:rotate(-5deg)}.earned-stamp{flex:none;align-self:center;padding:8px 18px;border:2px dashed var(--button-edge);border-radius:15px;background:var(--wash);color:var(--accent);font-size:18px;font-weight:700}.stats-strip{background:var(--wash);color:var(--accent);border:1px solid var(--sky)}.stats-strip span{opacity:.85}.stats-strip strong{font-size:21px}.question{font-weight:800}.feedback{font-size:15px;line-height:1.45}.answer-button.wrong .option-letter{background:#b84747;color:#fff}.sound-row{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:8px 14px;background:var(--wash);border-radius:14px;margin:10px 0}.sound-row input{width:24px;height:24px;accent-color:var(--accent)}.sound-controls input[type=range]{width:100%;min-height:44px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-top:16px}.editor-grid textarea{min-height:78px;resize:vertical}.editor-preview{margin:16px 0;padding:16px;background:var(--wash);border-radius:16px}.learning-levels{grid-template-columns:1.3fr 1fr}.main-tools .settings-launch{min-height:46px}.answer-grid{align-content:stretch}.question-editor>.primary{min-height:48px}
@keyframes deliver-letter{from{transform:translate(-20px,8px) rotate(-15deg);opacity:0}to{transform:translate(0,0);opacity:1}}@keyframes lion-hop{50%{transform:translateY(-7px) rotate(5deg)}}
@media(max-height:700px) and (min-width:650px){.lion-guide{min-height:38px;padding:0 10px}.lion-guide img{height:38px;width:38px}.lion-guide p{font-size:14px}.answer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.answer-button{font-size:17px}.feedback{font-size:13px}.earned-stamp{font-size:15px;padding:5px 12px}.result-view{gap:5px}}
@media(max-width:650px){.editor-grid{grid-template-columns:1fr}.lion-guide p{font-size:14px}.lion-guide img{width:42px;height:42px}.learning-levels{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.celebrating .flying-letter,.celebrating img{animation:none}}
.stats-strip span{color:var(--accent);opacity:.9}.answer-grid.three-options{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.answer-grid.three-options{grid-template-columns:1fr}}
/* v0.9: a playful invitation with three large, distinct time envelopes. */
body.home-active{background:radial-gradient(ellipse at 50% 38%,#fffde7bb,transparent 42%),radial-gradient(ellipse at 10% 15%,#ffffffd9,transparent 35%),linear-gradient(145deg,var(--sky),var(--ground))}.home-heading h1{font-size:clamp(42px,6.6vh,66px);font-weight:950;letter-spacing:3px;color:#ff9d28;-webkit-text-stroke:5px #fff;paint-order:stroke fill;text-shadow:0 5px 0 #c9792e,0 8px 0 #ffffff,0 11px 14px #98623e25}.home-heading p{margin-top:12px;font-weight:600;color:#587565;font-size:clamp(15px,2vh,19px)}.child-scene{width:min(720px,96%);flex-basis:355px;max-height:47%;overflow:visible}.child-mascot{margin-right:180px;max-width:52%;height:100%;filter:drop-shadow(0 9px 5px #8b66321c)}.scene-halo{width:65%;left:4%;height:94%;background:radial-gradient(ellipse,#fff4a4aa,transparent 70%)}.scene-stamp{left:auto;right:6%;width:clamp(150px,22vw,204px);height:29%;min-height:45px;max-height:105px;display:flex;flex-direction:row;gap:14px;border:4px solid #fff;border-radius:23px;outline:none;padding:8px 14px;box-shadow:0 6px 0 #b87c5330,0 10px 15px #485d5420;z-index:3}.scene-stamp strong{font-size:clamp(19px,2.5vw,27px);line-height:1.15;white-space:nowrap}.scene-stamp small{display:block;font-size:11px;font-weight:600;margin-top:5px;letter-spacing:1px}.stamp-yesterday{top:1%;bottom:auto;transform:rotate(-8deg);background:linear-gradient(145deg,#ffd2df,#ffabd1);color:#9d416b}.stamp-today{top:35%;bottom:auto;right:2%;transform:rotate(6deg);background:linear-gradient(145deg,#fff1a7,#ffd45f);color:#8b601b}.stamp-tomorrow{top:auto;bottom:0;right:6%;transform:rotate(-5deg);background:linear-gradient(145deg,#c8f6ff,#8edcff);color:#286f9b}.envelope-picture{position:relative;flex:none;width:52px;height:37px;display:grid;place-items:center;isolation:isolate;font-size:18px;font-style:normal;background:#fff9e9;border:2px solid currentColor;border-radius:7px;box-shadow:0 3px 0 #ffffff60;overflow:hidden}.envelope-picture:before{content:'';position:absolute;width:38px;height:38px;top:-27px;left:5px;border:2px solid currentColor;transform:rotate(45deg);border-radius:5px;background:#fffdf6;z-index:-1}.home-spark{position:absolute;color:#ffc64d;font-size:36px;text-shadow:0 3px 0 #eaaa30;pointer-events:none;z-index:1}.spark-one{left:5%;top:20%;transform:rotate(-12deg)}.spark-two{right:0;bottom:4%;font-size:27px}.home-cloud{position:absolute;width:66px;height:23px;left:4%;bottom:8%;border-radius:25px;background:#fff;box-shadow:0 5px 7px #6aac8b20}.home-cloud:before,.home-cloud:after{content:'';position:absolute;background:#fff;border-radius:50%;width:32px;height:32px;bottom:5px;left:12px}.home-cloud:after{width:25px;height:25px;left:35px;bottom:2px}.home-action{width:min(410px,88%)}.child-start,.child-start:hover{background:linear-gradient(180deg,#ffeb94,var(--button) 45%,#ffa344);border:3px solid #fff6c7;box-shadow:0 7px 0 #de8b31,0 12px 18px #c6873126;color:#7d471c;text-shadow:0 1px 0 #fff4ce;letter-spacing:2px}.access-form input{border:3px solid transparent;background:linear-gradient(#fffefa,#fffefa) padding-box,linear-gradient(100deg,#ffa8c2,#ffe886,#82deef) border-box;box-shadow:0 4px 0 #c8dccd55;border-radius:23px}.access-form label{font-size:16px}.access-locked .child-scene{flex-basis:300px;max-height:40%}.home-active .main-tools .settings-launch{border:2px solid #ffffff;background:#fffffff0;box-shadow:0 3px 0 #8aaa9824}.home-active #themeBtn{background:#f0e6ff}.home-active #helpBtn{background:#e1f5ff}.home-active #musicBtn{background:#fff0bc}.home-active #settingsBtn{background:#e3f8e8}.home-active #libraryBtn{background:#ffe4ee}.home-active #fullscreenBtn{background:#e3f8fa}
@media(max-height:700px){.home-heading h1{font-size:40px;-webkit-text-stroke-width:4px}.home-heading p{margin-top:8px;font-size:15px}.access-locked .child-scene{flex-basis:190px;max-height:36%}.scene-stamp{border-width:3px;border-radius:17px;gap:10px;padding:5px 10px}.scene-stamp small{display:none}.envelope-picture{width:42px;height:30px;font-size:15px}.envelope-picture:before{left:0}.home-spark{font-size:27px}.child-scene{max-height:43%}.scene-stamp strong{font-size:21px}}
@media(max-width:650px){.child-scene{width:100%}.child-mascot{margin-right:120px;max-width:57%}.scene-stamp{width:132px;right:0;padding:6px;gap:8px}.stamp-today{right:0}.stamp-yesterday,.stamp-tomorrow{right:2%}.scene-stamp strong{font-size:19px}.scene-stamp small{font-size:9px;letter-spacing:0}.envelope-picture{width:37px;height:29px;font-size:14px}.envelope-picture:before{left:-2px}.spark-one{left:0}.home-cloud{left:0;transform:scale(.75)}.home-heading h1{font-size:42px}.access-locked .child-scene{max-height:35%}}
/* Decorative garden stays outside the central invitation and never receives taps. */
.home-garden{display:none;position:fixed;inset:70px 0 0;pointer-events:none;overflow:hidden;z-index:0}.home-active .home-garden{display:block}.app-shell{position:relative;z-index:1}.garden-cloud{position:absolute;width:clamp(70px,9vw,145px);height:clamp(25px,3vw,46px);border-radius:60px;background:#fff;filter:drop-shadow(0 6px 5px #9cbfac24);opacity:.88}.garden-cloud:before,.garden-cloud:after{content:'';position:absolute;background:inherit;border-radius:50%;width:48%;height:170%;left:16%;bottom:7%}.garden-cloud:after{width:37%;height:130%;left:54%;bottom:6%}.cloud-a{left:9%;top:16%;transform:rotate(-5deg)}.cloud-b{right:10%;top:26%;transform:scale(.85) rotate(4deg)}.cloud-c{left:3%;top:52%;transform:scale(.65)}.cloud-d{right:4%;top:68%;transform:scale(.75)}.garden-flower{--petal:#ff9fbb;position:absolute;width:65px;height:110px;bottom:9%;left:12%;transform:rotate(-9deg);filter:drop-shadow(0 5px 3px #75984d15)}.garden-flower:before{content:'';position:absolute;width:6px;height:65px;background:#90bc6b;left:30px;bottom:0;border-radius:8px}.garden-flower:after{content:'';position:absolute;width:24px;height:13px;background:#aed786;left:9px;bottom:20px;border-radius:3px 18px 3px 18px;transform:rotate(18deg);box-shadow:27px -12px 0 #99c778}.garden-flower i{position:absolute;width:23px;height:23px;left:21px;top:20px;border-radius:50%;background:#ffe47a;border:3px solid #fff0a7;box-shadow:0 -17px 0 1px var(--petal),16px -5px 0 1px var(--petal),10px 14px 0 1px var(--petal),-10px 14px 0 1px var(--petal),-16px -5px 0 1px var(--petal);z-index:1}.flower-b{--petal:#ffd271;left:19%;bottom:4%;transform:scale(.72) rotate(12deg)}.flower-c{--petal:#bdaaf0;left:5%;bottom:29%;transform:scale(.64) rotate(-12deg)}.flower-d{--petal:#ffb98e;left:auto;right:12%;bottom:9%;transform:rotate(10deg)}.flower-e{--petal:#ff9fbd;left:auto;right:20%;bottom:3%;transform:scale(.72) rotate(-10deg)}.flower-f{--petal:#adcef7;left:auto;right:6%;bottom:30%;transform:scale(.62) rotate(12deg)}
@media(max-width:1000px){.cloud-a{left:3%;top:12%}.cloud-b{right:2%;top:17%}.flower-a{left:4%}.flower-b{left:13%}.flower-d{right:4%}.flower-e{right:13%}.flower-c,.flower-f{display:none}.cloud-c,.cloud-d{opacity:.65}}
@media(max-height:700px){.garden-flower{bottom:3%;transform:scale(.7)}.flower-b,.flower-e{bottom:-2%;transform:scale(.5)}.flower-c,.flower-f{bottom:28%;transform:scale(.5)}.cloud-a,.cloud-b{top:15%}}
@media(max-width:650px){.garden-cloud{opacity:.6}.flower-a{left:-12px}.flower-d{right:-12px}.flower-b,.flower-e{display:none}}/* Larger homepage title: twice the previous size at desktop/tablet breakpoints. */
.home-heading h1{font-size:clamp(84px,13.2vh,132px);line-height:1.1;-webkit-text-stroke-width:6px}
@media(max-height:700px){.home-heading h1{font-size:80px;-webkit-text-stroke-width:5px}.child-home{gap:9px}}
@media(max-width:650px){.home-heading h1{font-size:min(84px,18vw)}}/* Fuller upper-side sky, with a clear central space for the invitation. */
.cloud-a,.cloud-b{width:clamp(180px,20vw,340px);height:clamp(58px,6.5vw,108px);opacity:.96;filter:drop-shadow(0 10px 8px #91bcb82b)}
.cloud-a{left:2%;top:27%;transform:rotate(-6deg)}.cloud-b{right:2%;top:36%;transform:rotate(5deg)}
.cloud-e{left:17%;top:9%;width:clamp(80px,9vw,150px);transform:rotate(5deg);opacity:.78}.cloud-f{right:14%;top:12%;width:clamp(80px,10vw,165px);transform:rotate(-5deg);opacity:.85}
.garden-twinkle{position:absolute;font-size:clamp(28px,3vw,48px);color:#ffd061;text-shadow:0 3px 0 #efb14355}.twinkle-a{left:14%;top:43%;transform:rotate(-12deg)}.twinkle-b{right:9%;top:20%;color:#edb4d7;transform:rotate(10deg)}
@media(max-width:1100px){.cloud-a,.cloud-b{width:18vw;min-width:115px;height:6vw;min-height:38px}.cloud-a{left:-3%;top:26%}.cloud-b{right:-3%;top:34%}.cloud-e{left:5%;top:10%}.cloud-f{right:4%;top:12%}.twinkle-a{left:7%;top:43%}.twinkle-b{right:5%;top:21%}}
@media(max-width:650px){.cloud-a{left:-8%;opacity:.7}.cloud-b{right:-8%;opacity:.7}.cloud-e,.cloud-f{width:65px;height:24px;opacity:.65}.cloud-e{left:0;top:5%}.cloud-f{right:0;top:9%}.garden-twinkle{font-size:24px}.twinkle-a{left:2%}.twinkle-b{right:1%}}/* Show the complete import example inside the empty paste field. */
.field-label textarea::placeholder{color:#687e79;opacity:1;font-size:14px;line-height:1.65}/* Keep sentence and answer type large; do not stretch options into tall empty panels. */
#gameView .letter-card{padding:18px 28px;gap:12px}
#gameView .letter-kicker{display:none}
#gameView .question{font-size:clamp(34px,3.6vw,52px);line-height:1.35;margin-top:clamp(4px,1.5vh,18px)}
#gameView .verb-hint{font-size:22px;line-height:1.4}
#gameView .answer-grid{flex:1;align-content:center;grid-auto-rows:minmax(80px,clamp(80px,13vh,128px));gap:16px;padding:10px 0}
#gameView .answer-button{font-size:clamp(27px,2.6vw,38px);line-height:1.2;justify-content:center;position:relative;padding:14px 42px;border-radius:20px;border-width:2px;min-height:0}
#gameView .option-letter{position:absolute;left:12px;top:12px;font-size:14px;width:25px;height:27px;border-radius:7px}
#gameView .feedback{font-size:18px}
@media(max-height:740px){#gameView .letter-card{padding:10px 20px;gap:6px}#gameView .question{font-size:clamp(29px,3.3vw,40px);line-height:1.25;margin-top:3px}#gameView .verb-hint{font-size:19px}#gameView .answer-grid{grid-auto-rows:minmax(60px,clamp(60px,10vh,78px));gap:10px;padding:4px 0;grid-template-columns:repeat(3,minmax(0,1fr))}#gameView .answer-button{font-size:26px;padding:10px 34px}#gameView .option-letter{left:7px;top:8px;width:20px;height:23px;font-size:12px}#gameView .feedback{font-size:15px}}
@media(max-width:850px) and (min-height:741px){#gameView .question{font-size:36px}#gameView .answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:100px}#gameView .answer-grid.three-options{grid-template-columns:1fr;grid-auto-rows:90px}#gameView .answer-button{font-size:30px}}
@media(max-width:600px){#gameView .letter-card{padding:10px 12px}#gameView .question{font-size:27px}#gameView .answer-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:60px}#gameView .answer-grid.three-options{grid-template-columns:1fr;grid-auto-rows:60px}#gameView .answer-button{font-size:23px}#gameView .verb-hint{font-size:17px}}#gameView .answer-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-height:650px) and (min-width:650px){#gameView .letter-card{gap:4px;padding:8px 18px}#gameView .lion-guide{min-height:30px}#gameView .lion-guide img{height:30px;width:30px}#gameView .question{font-size:30px;line-height:1.2}#gameView .answer-grid{grid-auto-rows:56px;gap:8px}#gameView .answer-button{font-size:24px;padding:8px 32px}#gameView .verb-hint{font-size:17px}#gameView .feedback{font-size:14px}}/* A warm celebration and collectible postcard review. */
#resultView{max-width:1100px;gap:10px;padding:12px 0;isolation:isolate}
#resultView .result-heading{display:flex;align-items:center;justify-content:center;gap:18px;flex:none;min-height:112px;border-radius:28px;background:linear-gradient(110deg,#fff3ce,#fffdf0 55%,#def5ef);position:relative;padding:8px 24px;border:3px solid #fff;box-shadow:0 5px 0 #e4e7ca70}
.result-lion{width:112px;height:112px;object-fit:contain;flex:none;filter:drop-shadow(0 4px 2px #bd924324)}
#resultView .result-heading h1{font-size:clamp(25px,2.7vw,36px);color:#946125;margin:5px 0;line-height:1.25}
#resultView .result-heading .eyebrow{color:#b07b29;font-size:13px;display:block;letter-spacing:2px}
#resultView .result-heading p{font-size:16px;line-height:1.5;display:block}
.result-party{color:#f1b840;font-size:34px;line-height:1.5;transform:rotate(12deg);margin-left:12px}
#resultView .earned-stamp{background:#fff2bd;border:2px dashed #edb74a;border-radius:22px;color:#906223;font-size:18px;padding:7px 24px;box-shadow:0 3px 0 #f0db9e55;transform:rotate(-1deg)}
#resultView .result-stats{background:none;border:0;padding:0;gap:12px}
#resultView .result-stat{position:relative;border:2px solid #fff!important;border-radius:22px;padding:10px 8px;background:#ffead0;box-shadow:0 4px 0 #bfab9026}
#resultView .result-stat:nth-child(2){background:#daf3f9}#resultView .result-stat:nth-child(3){background:#e7f3cf}#resultView .result-stat:nth-child(4){background:#f2e3fb}
#resultView .result-stat strong{font-size:32px;color:#375d63;margin:0;line-height:1.2}#resultView .result-stat span{font-size:14px;color:#516969;font-weight:650}
#resultView .result-stat:before{content:'★';position:absolute;left:12px;top:10px;color:#d9a43e;font-size:20px}#resultView .result-stat:nth-child(2):before{content:'✦';color:#60b3cc}#resultView .result-stat:nth-child(3):before{content:'✉';color:#8bb34c}#resultView .result-stat:nth-child(4):before{content:'⚑';color:#b291d0}
#resultView .result-actions button{border-radius:18px;min-height:48px;font-size:18px}#resultView #againBtn{background:linear-gradient(#ffdf79,#ffba55);border:2px solid #fff1bf;color:#79511e;box-shadow:0 4px 0 #dfa348}#resultView #reviewRoundBtn{background:#e5f5fa;border-color:#b8e0ea}#resultView #resultHomeBtn{background:#f5ecfc;border-color:#e0ccef}
#resultView .review-heading h2{font-size:20px;color:var(--accent)}#resultView .review-heading h2:before{content:'✉ ';color:#e9b147}
#resultView .result-list{border-radius:24px;min-height:0}
#resultView .result-row{display:flex;flex-direction:column;justify-content:center;padding:18px 26px;border:2px solid #e3dbc4;border-radius:24px;background:linear-gradient(135deg,#fffcf1,#fff 60%,#effaf6);position:relative;overflow:auto;box-shadow:inset 0 7px 0 #f7dfad}
#resultView .result-list .row-top{flex:none;margin-bottom:12px}#resultView .result-list h3{font-size:clamp(24px,2.3vw,32px);line-height:1.35;margin-bottom:10px;color:#36566a}#resultView .result-list p{font-size:18px;line-height:1.6}#resultView .review-pagination{gap:20px;font-size:16px}#resultView .review-pagination button{border-radius:16px;background:#fffaf0}
@media(max-height:740px){#resultView{gap:6px;padding:5px 0}#resultView .result-heading{min-height:78px;padding:4px 15px;gap:10px}.result-lion{width:76px;height:76px}#resultView .result-heading h1{font-size:26px}#resultView .result-heading p{font-size:13px}#resultView .result-heading .eyebrow{display:none}.result-party{font-size:24px}#resultView .earned-stamp{font-size:15px;padding:4px 15px}#resultView .result-stat{padding:6px}#resultView .result-stat strong{font-size:25px}#resultView .result-stat span{font-size:12px}#resultView .result-actions button{min-height:42px;padding:7px 16px;font-size:16px}#resultView .review-heading h2{font-size:17px}#resultView .result-row{padding:12px 20px}#resultView .result-list h3{font-size:23px;margin-bottom:6px}#resultView .result-list p{font-size:15px;line-height:1.4}#resultView .result-list .row-top{margin-bottom:6px}#resultView .review-pagination button{min-height:40px}}
@media(max-width:800px){.result-party{display:none}#resultView .result-heading{padding:8px 10px;gap:8px}#resultView .result-heading h1{font-size:25px}#resultView .result-stats{gap:7px}#resultView .result-stat:before{display:none}#resultView .result-heading p{font-size:14px}.result-lion{width:90px;height:90px}#resultView .result-list h3{font-size:26px}}
.library-tense-entry{padding:16px 20px;border-radius:20px;background:var(--wash);border:2px solid var(--sky);margin-bottom:18px}.library-tense-entry strong{font-size:21px;color:var(--accent)}.library-tense-entry p{font-size:16px;margin:8px 0 12px}#startError{font-size:15px;line-height:1.5}#startError .text-button{display:block;margin:auto;color:var(--accent);text-decoration:underline}
/* Success is a cheerful reward, with readable sentence and answer emphasis. */
#gameView.showing-answer .lion-guide.celebrating{min-height:100px;padding:8px 28px;gap:18px;border:2px solid #ffe69a;background:linear-gradient(110deg,#fff0b9,#fff9e7 60%,#e3f6e4);border-radius:24px;overflow:hidden}
#gameView.showing-answer .lion-guide.celebrating img{width:88px;height:88px;filter:drop-shadow(0 4px 2px #c5943925)}
#gameView.showing-answer .lion-guide.celebrating p{font-size:clamp(23px,2.3vw,32px);color:#906021;line-height:1.3}
#gameView.showing-answer .lion-guide.celebrating:after{content:'★　✦　★';margin-left:auto;color:#edb02d;font-size:32px;white-space:nowrap;animation:praise-spark .9s ease-out both;pointer-events:none}
#gameView.showing-answer .flying-letter{font-size:32px}
#gameView.showing-answer .reveal{background:radial-gradient(ellipse at 100% 0,#fff2c7,transparent 50%),linear-gradient(130deg,#f0fbf3,#f6fcff);border:2px solid #d8ecde;border-radius:25px;padding:20px 28px;gap:14px}
#gameView.showing-answer .complete-sentence{font-size:clamp(32px,3.5vw,50px);line-height:1.4;font-weight:800;margin-top:auto;overflow-wrap:anywhere;color:#294d60}
.answer-word{color:#127859;background:#ffe99a;border-radius:12px;padding:1px 8px;box-decoration-break:clone;-webkit-box-decoration-break:clone;box-shadow:0 3px 0 #efc95f}
#gameView.showing-answer #translationText{font-size:clamp(23px,2.1vw,29px);line-height:1.5;color:#365e65}
#gameView.showing-answer #explanationText{font-size:clamp(19px,1.7vw,24px);line-height:1.55;border-top:2px dashed #c8ddce;padding-top:12px}
#gameView.showing-answer #speechStatus{font-size:13px;color:#6d8179}
#gameView.showing-answer .next-button{font-size:21px;min-height:54px;border-radius:17px;padding:10px 28px;background:linear-gradient(#ffdc77,#ffba54);color:#77521d;border:2px solid #fff1bd;box-shadow:0 4px 0 #dda24b}
@keyframes praise-spark{0%{opacity:0;transform:translateY(20px) scale(.5) rotate(-15deg)}65%{opacity:1;transform:translateY(-4px) scale(1.15) rotate(5deg)}100%{opacity:1;transform:none}}
@media(max-height:740px){#gameView.showing-answer .lion-guide.celebrating{min-height:64px;padding:3px 16px;gap:12px}#gameView.showing-answer .lion-guide.celebrating img{width:56px;height:56px}#gameView.showing-answer .lion-guide.celebrating p{font-size:23px}#gameView.showing-answer .lion-guide.celebrating:after{font-size:23px}#gameView.showing-answer .reveal{padding:12px 20px;gap:8px}#gameView.showing-answer .complete-sentence{font-size:32px;line-height:1.3}#gameView.showing-answer #translationText{font-size:21px}#gameView.showing-answer #explanationText{font-size:18px;line-height:1.4;padding-top:7px}#gameView.showing-answer .next-button{min-height:44px;font-size:18px;padding:7px 22px}}
@media(max-width:800px){#gameView.showing-answer .lion-guide.celebrating:after{display:none}#gameView.showing-answer .lion-guide.celebrating p{font-size:23px}#gameView.showing-answer .complete-sentence{font-size:34px}#gameView.showing-answer .reveal{padding:16px 18px}}
@media(max-height:650px){#gameView.showing-answer .lion-guide.celebrating{min-height:44px}#gameView.showing-answer .lion-guide.celebrating img{width:40px;height:40px}#gameView.showing-answer .lion-guide.celebrating p{font-size:20px}#gameView.showing-answer .reveal{gap:5px;padding:8px 16px}#gameView.showing-answer .reveal-title{min-height:30px}#gameView.showing-answer .complete-sentence{font-size:28px}#gameView.showing-answer #translationText{font-size:19px}#gameView.showing-answer #explanationText{font-size:16px}}
@media(prefers-reduced-motion:reduce){#gameView.showing-answer .lion-guide.celebrating:after{animation:none}}#explanationText,.review-explanation{white-space:pre-line}#gameView.showing-answer #explanationText{font-size:clamp(17px,1.5vw,22px);line-height:1.5}@media(max-height:740px){#gameView.showing-answer #explanationText{font-size:16px;line-height:1.4}}@media(max-height:650px){#gameView.showing-answer #explanationText{font-size:15px;line-height:1.3}}
/* v0.13: give reading space to the explanation before shrinking text. */
#gameView.showing-answer #explanationText{font-size:clamp(18px,1.5vw,22px);line-height:1.5}
#resultView .result-list .review-explanation{font-size:18px;line-height:1.5}
#gameView .feedback.bad{font-size:18px;line-height:1.45;color:var(--teal);background:var(--wash);padding:8px 12px;border-radius:14px}
#gameView.showing-answer .complete-sentence{margin-top:0}
@media(max-height:820px){
 #gameView.showing-answer .lion-guide.celebrating{min-height:48px;padding:2px 14px}
 #gameView.showing-answer .lion-guide.celebrating img{width:44px;height:44px}
 #gameView.showing-answer .lion-guide.celebrating p{font-size:21px}
 #gameView.showing-answer .letter-card{gap:5px}
 #gameView.showing-answer .reveal{padding:8px 16px;gap:5px}
 #gameView.showing-answer .reveal-title{min-height:32px}
 #gameView.showing-answer .reveal-title button{min-height:32px;padding:3px}
 #gameView.showing-answer #explanationText{font-size:18px;line-height:1.45;padding-top:6px}
 #gameView.showing-answer .next-button{min-height:44px;margin-top:auto}
}
@media(max-height:650px) and (min-width:900px){
 #gameView.showing-answer .reveal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr auto auto;column-gap:22px;align-items:start}
 #gameView.showing-answer .reveal-title{grid-column:1/-1;grid-row:1}
 #gameView.showing-answer .complete-sentence{grid-column:1;grid-row:2;font-size:30px;align-self:center}
 #gameView.showing-answer #translationText{grid-column:1;grid-row:3;font-size:20px}
 #gameView.showing-answer #explanationText{grid-column:2;grid-row:2/4;border-top:0;border-left:2px dashed #c8ddce;padding:0 0 0 18px;font-size:18px;align-self:center}
 #gameView.showing-answer #speechStatus{grid-column:1;grid-row:4}
 #gameView.showing-answer .next-button{grid-column:2;grid-row:4;justify-self:end}
}

.import-advanced{margin-top:16px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:var(--white)}.import-advanced summary{cursor:pointer;min-height:48px;padding:14px 0;color:var(--teal);font-size:16px;font-weight:650}.import-advanced[open]{padding-bottom:14px}.import-advanced textarea{font-size:16px;line-height:1.7}
/* Tablet landscape: reserve most of the viewport for the learning card. */
@media(min-width:900px) and (max-height:850px){
 #resultView{display:grid;grid-template-columns:minmax(230px,28%) minmax(0,1fr);grid-template-rows:76px 38px 112px minmax(0,1fr) 46px;gap:10px 20px;max-width:none;padding:8px 0;min-height:0}
 #resultView .result-heading{grid-column:1;grid-row:1;min-height:0;padding:4px 8px;gap:8px;border-radius:18px}
 #resultView .result-lion{width:54px;height:54px}
 #resultView .result-heading h1{font-size:21px;line-height:1.3;margin:0}
 #resultView .result-heading p,#resultView .result-heading .eyebrow,#resultView .result-party{display:none}
 #resultView .earned-stamp{grid-column:1;grid-row:2;align-self:center;justify-self:center;font-size:15px;padding:5px 10px;margin:0}
 #resultView .result-stats{grid-column:1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:6px}
 #resultView .result-stat{padding:4px;border-radius:14px}
 #resultView .result-stat:before{display:none}
 #resultView .result-stat strong{font-size:24px}
 #resultView .result-stat span{font-size:13px}
 #resultView .result-actions{grid-column:1;grid-row:4/6;display:flex;flex-direction:column;gap:8px;justify-content:center;margin:0}
 #resultView .result-actions button{flex:none;width:100%;min-height:44px;padding:6px 12px;font-size:17px}
 #resultView .review-heading{grid-column:2;grid-row:1;align-self:end;display:block;padding-bottom:8px}
 #resultView .review-heading h2{font-size:21px}
 #resultView .review-heading span{font-size:13px}
 #resultView .result-list{grid-column:2;grid-row:2/5;min-height:0}
 #resultView .result-row{justify-content:flex-start;padding:16px 20px;gap:7px}
 #resultView .result-list .row-top{margin:0}
 #resultView .result-list h3{font-size:clamp(23px,2.3vw,30px);line-height:1.3;margin:0}
 #resultView .result-list p{font-size:18px;line-height:1.45;margin:0;flex-shrink:0}
 #resultView .review-pagination{grid-column:2;grid-row:5;gap:18px;align-self:center}
 #gameView.showing-answer{grid-template-rows:32px 40px 0 3px minmax(0,1fr);gap:4px}
 #gameView.showing-answer .delivery-trail{visibility:hidden;height:0;overflow:hidden}
 #gameView.showing-answer .game-top button{min-height:32px}
 #gameView.showing-answer .stats-strip{padding:4px 14px}
 #gameView.showing-answer .letter-card{padding:8px 14px;gap:4px}
 #gameView.showing-answer .lion-guide,#gameView.showing-answer .lion-guide.celebrating{flex:none;height:44px;min-height:44px;padding:2px 12px;gap:10px}
 #gameView.showing-answer .lion-guide img,#gameView.showing-answer .lion-guide.celebrating img{width:38px;height:38px}
 #gameView.showing-answer .lion-guide p,#gameView.showing-answer .lion-guide.celebrating p{font-size:20px;line-height:1.2}
 #gameView.showing-answer .letter-meta{min-height:26px}
 #gameView.showing-answer .tense-badge{padding:3px 10px}
 #gameView.showing-answer .feedback{font-size:16px;min-height:22px;line-height:1.3}
 #gameView.showing-answer .reveal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:32px minmax(0,1fr) auto 44px;column-gap:20px;row-gap:6px;padding:8px 16px;align-items:start}
 #gameView.showing-answer .reveal-title{grid-column:1/-1;grid-row:1;min-height:32px}
 #gameView.showing-answer .reveal-title button{min-height:32px;padding:3px}
 #gameView.showing-answer .complete-sentence{grid-column:1;grid-row:2;align-self:center;font-size:clamp(25px,2.7vw,34px);line-height:1.3;margin:0}
 #gameView.showing-answer #translationText{grid-column:1;grid-row:3;font-size:20px;line-height:1.4}
 #gameView.showing-answer #explanationText{grid-column:2;grid-row:2/4;border-top:0;border-left:2px dashed #c8ddce;padding:0 0 0 16px;font-size:18px;line-height:1.45;align-self:center}
 #gameView.showing-answer #speechStatus{grid-column:1;grid-row:4;font-size:12px;line-height:1.3;align-self:center}
 #gameView.showing-answer .next-button{grid-column:2;grid-row:4;justify-self:end;align-self:end;min-height:44px;height:44px;margin:0;padding:6px 18px;font-size:18px}
}
