/* tecla.kids, September 2026: bright, spacious navigation and an animal expedition. */
:root{--ink:#183f64;--muted:#56748d;--green:#0877b7;--lime:#ffe06a;--bg:#fff;--line:#dce9f1;--orange:#ffbf35;--shadow:0 8px 28px #153c6410;background:#fff;color:var(--ink)}
body{background:#fff}h1,h2,h3{letter-spacing:-.035em}h1,h2{font-weight:900}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #0878bf;outline-offset:4px}.workspace{margin-left:0;padding-bottom:0}.main{max-width:1240px;padding:40px 36px 64px}.topbar{height:84px;padding:0 max(24px,calc((100vw - 1320px)/2));background:#fff;border-bottom:1px solid #e8f0f6;gap:22px}.topbar:before{display:none}.brand{white-space:nowrap;font-size:1.52rem;letter-spacing:-.055em;flex-shrink:0;color:#087bbe}.brand-word>span{color:#183f64}.brand-mark{width:33px;height:36px;background:#ffd94d;color:#183f64;border-radius:10px;font-size:25px;transform:rotate(-7deg);box-shadow:0 3px 0 #efbd30}.main-nav{display:flex;align-items:center;gap:7px;margin:auto;min-width:0}.nav-item{border:1px solid #e0ebf2;border-radius:9px;background:#fff;padding:10px 12px;min-height:43px;gap:7px;font-size:.85rem;white-space:nowrap;width:auto;text-align:center;color:#476986;flex-direction:row}.nav-item:hover{background:#edf8ff;color:#126fa2}.nav-item.active{background:#e6f6ff;color:#056ca8;border-color:#83d3f4;box-shadow:0 2px 0 #a9dff5}.nav-item .nav-icon{width:22px;height:22px;background:none;display:flex}.nav-item .nav-icon svg{width:22px;height:22px}.nav-label{font-size:inherit}.top-actions{gap:10px;flex-shrink:0}.lang{max-width:65px;color:#426581}.avatar-small{width:40px;height:40px;background:#fff3d3;border:1px solid #f7d977}.music-toggle{color:#0975aa;background:#e5f7ff;border-color:#b7e6f6}.music-toggle.muted{background:#f0f3f6;color:#738ba0}.header-logout{box-shadow:none!important;font-size:.72rem!important;padding:8px!important;min-height:36px!important}.btn{border:1px solid #079edc;background:#08a9e6;color:#073d61;border-radius:10px;box-shadow:0 4px 0 #008bc6;min-height:49px;padding:13px 23px;font-size:1rem;font-weight:850}.btn:hover{background:#31b9ef;color:#123d60;transform:translateY(-1px)}.btn.lime{border:1px solid #f3bf28;background:#ffdc55;color:#423617;box-shadow:0 4px 0 #e8b225}.btn.lime:hover{background:#ffe67a}.btn.light{background:#eaf7ff;color:#126995;border:1px solid #76c7f0;box-shadow:0 3px 0 #b4dff2}.btn.light:hover{background:#daf2ff}.btn.ghost{background:#fff;color:#456a83;border-color:#d2e4ee}.btn.small{min-height:40px}.btn.danger{background:#b42e40;border-color:#b42e40;color:#fff}.btn:disabled{transform:none;box-shadow:none}.eyebrow{color:#0879b2;font-size:.72rem;letter-spacing:.12em}.pill{background:#edf8ff;color:#34728e;border-color:#d3eaf5}.intro-row{margin-bottom:26px}.intro-row h1{font-size:2.3rem}.panel,.stat-card,.plan{border-color:#deebf3;box-shadow:0 3px 0 #edf3f7;border-radius:18px}.panel h3{color:#234c70}.panel p{color:#56748d}.stat-icon{background:#eaf6ff;color:#0875ad}.stat-card:nth-child(2) .stat-icon{background:#fff4c9}.stat-card:nth-child(3) .stat-icon{background:#f0edff}.stat-card:nth-child(4) .stat-icon{background:#e4f8ee}.progress{background:#e5edf3}.progress i{background:#1ea9e0}.text-button{color:#0878b4}.notice{background:#edf7ff;border-color:#cae6f5;color:#315f7d}.form input,.form select,.form textarea{border-color:#cadfe9;background:#fbfdff;color:#183f64}.form input:focus,.form select:focus{border-color:#079bd8}.choice{border-color:#d8e7ef}.choice.selected{background:#e1f4ff;border-color:#43aede;color:#126b97}.smallcaps{color:#577d97}.footer{border-color:#dfebf2;color:#5f7d94;margin-top:64px;padding-top:25px;gap:18px}.footer button{color:#1875a6}.section-title small{color:#57748b}.plan.featured{border:2px solid #51b7e1;background:#f0faff}.plan-badge{background:#ffdc55;color:#4e411e}.plan .price{color:#176da0}.collection{gap:22px}.pet-card{background:#f1faff;border:1px solid #dcecf6;border-bottom:4px solid #d2e7f2;border-radius:22px}.pet-card:nth-child(3n+2){background:#fff9e9}.pet-card:nth-child(3n){background:#f4f1ff}.pet-card.selected{border-color:#34a8d9;box-shadow:0 0 0 2px #c1ecff}.pet-card.locked{opacity:.8}.pet-card h3{font-size:1.3rem}.pet-card p{color:#56718a}.customizer{background:#edf9ff}.family-fields{border-color:#c8e2ef;background:#f5fbff}.chart .bar{background:#28aadd}
/* A friendly public home, with ample space and one unmistakable first step. */
.landing-page{max-width:1200px;padding-top:28px}.welcome-hero{display:flex;flex-direction:column;align-items:center;text-align:center;background:none;border-radius:0;overflow:visible;box-shadow:none;min-height:0}.welcome-hero:after{display:none}.welcome-hero .hero-content{max-width:850px;padding:12px 15px 20px}.welcome-hero .eyebrow{justify-content:center;font-size:.69rem;color:#5d8098}.welcome-hero h1{font-size:clamp(2.5rem,4vw,3.65rem);line-height:1.1;margin:17px 0 20px;letter-spacing:-.045em}.welcome-hero h1 em{font-style:normal;color:#049bd7}.welcome-hero p{max-width:600px;margin:0 auto 23px;color:#5b7a94;font-size:1.12rem;line-height:1.5}.hero-buttons{display:flex;gap:12px;justify-content:center}.hero-buttons .btn{min-height:53px;padding:13px 25px}.welcome-hero small{color:#5c7c93;font-size:.8rem;margin-top:18px}.hero-mascots{height:198px;width:min(480px,100%);position:relative;margin:0 auto}.mascot-island{position:absolute;width:320px;height:90px;background:#bfe99d;border-radius:50%;bottom:29px;left:50%;transform:translateX(-50%);box-shadow:0 10px 0 #f9df99,0 17px 0 #deeff7}.hero-friend{position:absolute;bottom:13px;display:block}.hero-friend .pet{animation:none;filter:drop-shadow(0 5px 1px #29687f12)}.friend-fox{left:83px;bottom:14px}.friend-fox .pet{font-size:154px}.friend-turtle{left:8px;bottom:11px}.friend-turtle .pet{font-size:92px}.friend-bird{right:0;bottom:21px}.friend-bird .pet{font-size:106px}.hero-keys{position:absolute;left:50%;bottom:0;transform:translateX(-50%) rotate(-3deg);display:flex;gap:5px;padding:7px 9px;border-radius:10px;background:#dfeff7;box-shadow:0 4px 0 #c7e0ed}.hero-keys span{width:31px;height:29px;background:#fff;border-radius:5px;border-bottom:3px solid #bad7e7;font-weight:850;font-size:.82rem;display:grid;place-items:center;color:#387793}.hero-keys span:nth-child(4),.hero-keys span:nth-child(5){background:#ffdf64;border-color:#e9bb36}.hero-cloud{position:absolute;width:69px;height:22px;border-radius:30px;background:#edf7fd;top:87px}.hero-cloud:before{content:'';position:absolute;width:33px;height:32px;background:inherit;border-radius:50%;left:15px;top:-15px}.cloud-left{left:12px}.cloud-right{right:0;top:39px}.hero-spark{position:absolute;color:#ffc73e;font-size:35px}.spark-one{left:69px;top:11px}.spark-two{right:35px;top:104px;font-size:27px;color:#4cbaeb}.discovery-strip{display:flex;justify-content:center;gap:35px;border-top:1px solid #e3eff5;border-bottom:1px solid #e3eff5;padding:24px 0;margin:27px 0 0;color:#638096;font-size:.82rem}.discovery-strip strong{color:#1476a7;margin-right:5px;font-size:1.15rem}.section-heading{text-align:center;margin-bottom:35px}.section-heading .eyebrow{justify-content:center;margin-bottom:12px}.section-heading h2{font-size:2rem}.section-heading p{margin-top:12px;color:#688397}.how-section{padding:65px 0 60px;scroll-margin-top:25px}.learning-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;text-align:center}.learning-steps article{position:relative;padding:0 15px}.learning-steps h3{font-size:1.23rem;margin:14px 0 10px}.learning-steps p{color:#5d7b92;font-size:.93rem}.step-number{display:inline-grid;place-items:center;background:#eaf6fd;border:2px solid #fff;color:#1d81b1;width:28px;height:28px;border-radius:50%;font-size:.8rem;font-weight:900}.step-art{height:100px;position:relative;display:flex;align-items:center;justify-content:center;margin-bottom:12px}.keyboard-step{gap:11px;transform:rotate(-7deg)}.keyboard-step span{display:grid;place-items:center;width:63px;height:60px;border:2px solid #71b7dd;background:#e3f5ff;border-bottom:6px solid #9ecde3;border-radius:12px;font-size:1.8rem;font-weight:900}.keyboard-step span:last-child{background:#ffec9b;border-color:#ecc54e;transform:rotate(12deg) translateY(6px)}.mini-island .island-terrain{width:150px;height:92px;left:50%;top:12px;transform:translateX(-50%);filter:none}.mini-island .pet{font-size:95px;z-index:1;animation:none;transform:translateY(-6px)}.animal-step .pet{font-size:117px;animation:none}.adventure-invite{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;overflow:hidden;background:#5b55cc;color:white;border-radius:27px;padding:45px 48px;min-height:330px}.adventure-invite .eyebrow{color:#d4d6ff}.adventure-invite h2{font-size:2.6rem;margin:14px 0}.adventure-invite p{color:#eeedff;max-width:430px;font-size:1rem;margin-bottom:24px}.invite-map{position:relative;min-height:275px}.invite-map>svg{position:absolute;width:100%;height:100%;opacity:.6}.invite-island{position:absolute;width:190px;height:135px}.invite-island .island-terrain{inset:20px 0 0;width:100%;height:120px}.invite-island .pet{position:absolute;left:42px;top:-15px;font-size:110px;animation:none}.invite-island b{position:absolute;bottom:0;left:80px;display:grid;place-items:center;border-radius:50%;background:#ffdc55;color:#564014;width:34px;height:34px;border:3px solid #fff5c9;box-shadow:0 3px 0 #d29f29}.invite-one{left:-10px;bottom:0}.invite-two{right:0;top:0;transform:scale(.85)}.invite-treasure{position:absolute;right:15px;bottom:18px;color:#ffdc55;font-size:55px;transform:rotate(15deg)}.family-intro{display:grid;grid-template-columns:1fr 1.3fr;gap:70px;align-items:center;padding:80px 35px}.family-intro h2{font-size:2.15rem;margin:12px 0 20px}.family-intro p{color:#5c7b93}.family-animals{position:relative;display:flex;align-items:flex-end;justify-content:center;border-radius:50%;background:#ecf8ff;height:245px}.family-animals .pet:first-child{font-size:230px;animation:none}.family-animals .pet:last-child{font-size:130px;margin-left:-60px;margin-bottom:-12px;animation:none}.family-pills{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.family-pills span{font-size:.75rem;border-radius:7px;background:#f0f7fb;color:#447695;padding:7px 9px}.faq-section{max-width:780px;margin:0 auto}.faq-section details{border-bottom:1px solid #dce9f2;padding:19px 4px}.faq-section summary{font-weight:800;cursor:pointer;font-size:1rem}.faq-section details p{padding-top:14px;color:#5c7b93;font-size:.95rem}.closing-invite{text-align:center;padding:60px 15px 20px}.closing-invite h2{font-size:1.65rem;margin-bottom:23px}
/* The map is still the course: clear next step, bright sea, original animal companions. */
.adventure-dashboard{max-width:1240px}.next-adventure{display:flex;gap:24px;align-items:center;background:#eaf8ff;border:1px solid #cdebf8;border-radius:22px;padding:23px 28px;position:relative;overflow:hidden}.next-pet{width:100px;flex-shrink:0;height:96px;display:grid;place-items:center;border-radius:50%;background:#fff1bd}.next-pet .pet{font-size:105px;animation:none}.next-copy{flex:1}.next-copy h2{font-size:1.5rem;margin:9px 0}.next-copy p{font-size:.9rem;color:#567a94}.next-adventure>.btn{min-width:165px}.map-summary{margin:22px 0;gap:25px;justify-content:flex-start}.map-stat{color:#5b7891;background:none;font-size:.83rem;gap:7px}.map-stat strong{color:#214d71}.map-stat svg{width:25px;height:25px}.map-dashboard-grid{grid-template-columns:minmax(0,1fr) 260px;gap:24px}.map-panel{border:1px solid #c3e3f4;box-shadow:0 4px 0 #dcecf5;border-radius:22px;overflow:hidden}.map-panel-title{background:#f4fbff;color:#245774;padding:19px 24px;font-size:1.07rem;font-weight:850;letter-spacing:0;text-transform:none;gap:16px}.map-panel-title small{font-size:.73rem;color:#617f94;font-weight:400;letter-spacing:0}.treasure-map{background:radial-gradient(ellipse at 10% 20%,#d9f6ff 0,transparent 55%),repeating-radial-gradient(ellipse at 50% 50%,transparent 0 58px,#ffffff30 60px 62px,transparent 64px 82px),#b6e8f5;min-height:620px}.island-map-title{color:#214f68;text-shadow:0 1px #e8fbff;font-size:12px;line-height:1.2}.island-map-progress{color:#386d88}.map-island.unexplored{opacity:.72;filter:saturate(.75)}.map-island.island-current .island-terrain{filter:drop-shadow(0 0 10px #fffbd5)}.map-explorer{border-color:#ffcc36;background:#fff9da;box-shadow:0 3px 0 #d5a83b}.map-explorer i{color:#e9b12d}.map-compass{color:#408fad88}.map-legend{color:#427b97}.map-ocean-label{color:#397ba477}.camp-companion{background:#fff8e4;border-color:#f4e2a9;border-radius:22px;padding:24px 16px}.camp-companion>.pet-art{font-size:135px}.camp-companion p{color:#786c48}.camp-companion h2{font-size:1.5rem;color:#5f542e}.camp-goal{background:#edf9ff;border-color:#d3eaf6}.camp-goal p{color:#517a94}.camp-tip{background:#f3f0ff;border-color:#e1daf9}.camp-tip p{color:#766c9a}.camp-goal h3,.camp-tip h3{font-size:1.06rem}.island-modal{border:1px solid #d5eafa}.island-dialog-hero{background:#eef9ff;border-radius:16px;padding:18px;margin:8px 0 20px}.island-challenge{background:#f2f7fb;border:1px solid #d9e7f0;border-bottom:4px solid #cfdfeb;color:#4c718c;border-radius:15px;min-height:118px}.island-challenge.ready{background:#fff3bc;border-color:#ebc34b;color:#735615}.island-challenge.passed{background:#e0f6ed;border-color:#86cdb1;color:#257754}.island-challenge.locked{opacity:.7}.challenge-token{box-shadow:0 3px 0 #0000000a}.island-challenge strong{font-size:.8rem}dialog{border:1px solid #d9e7f0;border-radius:23px;box-shadow:0 18px 80px #163e6440}dialog::backdrop{background:#133d626e;backdrop-filter:blur(3px)}.dialog-head h2{color:#204e71}.lesson-note{color:#55758e}.lesson-voice{background:#eaf6ff;color:#1975a1}.results .quick-stats{gap:12px}.result-stars{color:#f4ba25}#toast{background:#174e76}#support-contact .btn{font-size:.8rem;min-height:40px;padding:8px 14px}
/* Compact practice layout keeps the full physical keyboard within laptop height. */
.game-mode{background:#f6fbfe}.game-mode .topbar{height:64px}.game-mode .game-main{max-width:1240px;padding-top:12px}.game-mode .game-heading h1{color:#174a70}.game-mode .game-board{background:#fff;border-color:#d8eaf4;box-shadow:0 4px 0 #e3f0f8;border-radius:20px}.game-mode .game-stats{color:#6a8499}.game-mode .game-stats strong{color:#1f5980}.game-mode .game-scene{background:#eaf7fe}.game-mode .scene-track{border-color:#7db4cb}.game-mode .typing-area{background:#fbfdff;border-color:#d9e9f2}.game-mode .typing-area:focus-within{border-color:#4aabd8;box-shadow:0 0 0 3px #d9f3ff}.game-mode .typing-text{color:#5a7891}.game-mode .typing-text .current{background:#ffea92;color:#34455a}.game-mode .physical-keyboard{background:#e9f1f7;border-color:#cadfe9;border-bottom-color:#bdd5e3}.game-mode .physical-key{border-color:#c4d6e1;border-bottom-color:#b7cddc;color:#244d6b}.game-mode .physical-key.next{background:#ffe788!important;border-color:#d6b348}.game-mode .keyboard-toolbar,.game-mode .game-hint{color:#577990}.game-mode .keyboard-toolbar button{color:#1479a9}.game-mode .start-overlay .notice{background:#edf8ff}.game-mode .game-pet .speech{background:#fff6d8;color:#6b582b;border-color:#f3e1a7}.game-mode .game-top>.progress{height:10px}.game-mode .start-overlay>.btn[data-action=begin]{background:#ffdc55;color:#4a3b1a;border-color:#eac13c;box-shadow:0 3px 0 #d9ad28}
@media(min-width:1600px){.treasure-map{min-height:670px}.island-map-title{font-size:13px}}
@media(max-width:1150px){.topbar{padding:0 20px;gap:14px}.brand{font-size:1.3rem}.main-nav{gap:5px}.nav-item{padding:9px;font-size:.78rem}.nav-item .nav-icon{display:none}.top-actions{gap:5px}.map-dashboard-grid{grid-template-columns:minmax(0,1fr) 225px}.expedition-camp{grid-template-columns:1fr}.camp-companion{display:block}.island-mascot .pet-art{font-size:70px}.discovery-strip{gap:20px}.family-intro{gap:35px}.map-panel-title{flex-direction:column;align-items:flex-start;gap:5px}}
@media(max-width:850px){.topbar{height:auto;min-height:110px;display:grid;grid-template-columns:1fr auto;padding:16px 24px 12px;gap:14px}.brand{font-size:1.45rem}.main-nav{grid-row:2;grid-column:1/-1;justify-content:center;margin:0;flex-wrap:wrap}.main-nav .nav-item{font-size:.84rem;padding:9px 13px;min-height:40px}.top-actions{grid-column:2;grid-row:1}.main{padding:30px 24px 50px}.game-mode .topbar{height:auto}.game-mode .main-nav{display:none}.game-mode .topbar{min-height:65px;padding:12px 20px}.map-dashboard-grid{grid-template-columns:1fr}.expedition-camp{grid-template-columns:1fr 1fr}.camp-companion{display:none}.treasure-map{min-height:620px}.map-panel-title{flex-direction:row;align-items:center}.next-adventure{gap:15px;padding:20px}.next-copy h2{font-size:1.3rem}.next-pet{width:80px;height:80px}.next-pet .pet{font-size:88px}.next-adventure>.btn{min-width:130px;padding:12px 15px}.map-summary{gap:15px;flex-wrap:wrap}.map-stat{font-size:.78rem}.hero-mascots{height:180px}.welcome-hero .hero-content{max-width:100%;padding:20px 0 10px}.welcome-hero h1{font-size:3rem}.discovery-strip{display:grid;grid-template-columns:1fr 1fr;text-align:center;gap:18px}.learning-steps{gap:15px}.learning-steps article{padding:0}.adventure-invite{padding:32px;gap:0}.adventure-invite h2{font-size:2.1rem}.invite-island{width:145px;height:115px}.invite-island .pet{font-size:90px;left:30px;top:0}.invite-island b{left:62px}.invite-one{left:0}.invite-two{right:-25px}.family-intro{padding:65px 0;gap:25px}.family-animals{height:190px}.family-animals .pet:first-child{font-size:180px}.family-animals .pet:last-child{font-size:100px}.family-intro h2{font-size:1.8rem}.intro-row h1{font-size:2rem}}
@media(max-width:540px){.topbar{padding:14px 16px 10px;gap:14px;min-height:108px}.brand{font-size:1.25rem;gap:7px}.brand-mark{width:28px;height:30px;font-size:21px}.top-actions .lang{max-width:49px;padding:4px;font-size:.75rem}.top-actions .avatar-small{display:none}.main-nav{gap:5px;justify-content:center}.main-nav .nav-item{flex-direction:row;gap:0;padding:8px 10px;font-size:.72rem;min-height:37px}.nav-item .nav-label{font-size:inherit}.top-actions .btn{font-size:.73rem;padding:8px 10px}.header-logout{font-size:.64rem!important;padding:6px!important}.music-toggle{width:29px;height:29px}.main{padding:24px 18px 45px}.landing-page{padding-top:17px}.hero-mascots{width:330px;max-width:100%;height:170px;transform:scale(.87);margin-top:-6px;margin-bottom:-10px}.welcome-hero .hero-content{max-width:100%;padding:12px 0}.welcome-hero h1{font-size:2.45rem;margin:15px 0}.welcome-hero .eyebrow{font-size:.58rem;letter-spacing:.07em}.welcome-hero p{font-size:.98rem;max-width:100%}.hero-buttons{flex-direction:column;max-width:290px;margin:auto;gap:12px}.hero-buttons .btn{font-size:.95rem;min-height:48px;padding:12px 16px}.welcome-hero small{max-width:none;font-size:.73rem;margin-top:17px}.discovery-strip{font-size:.72rem;gap:14px;padding:20px 0;margin-top:15px}.discovery-strip strong{font-size:1rem}.how-section{padding:42px 0}.section-heading h2{font-size:1.6rem}.section-heading p{font-size:.9rem}.learning-steps{grid-template-columns:1fr;gap:29px}.learning-steps article{max-width:300px;margin:auto}.step-art{height:85px;margin-bottom:9px}.learning-steps h3{margin-top:10px}.adventure-invite{grid-template-columns:1fr;padding:28px;border-radius:20px}.adventure-invite h2{font-size:2rem}.adventure-invite p{font-size:.92rem}.invite-map{min-height:210px;margin-top:22px}.invite-two{right:5px}.invite-one{left:0}.family-intro{grid-template-columns:1fr;padding:48px 0;gap:32px}.family-animals{max-width:270px;width:100%;margin:auto}.family-intro h2{font-size:1.9rem}.faq-section summary{font-size:.9rem}.closing-invite{padding:42px 5px 10px}.closing-invite h2{font-size:1.4rem}.footer{flex-direction:column;margin-top:40px;gap:10px;font-size:.72rem}.intro-row h1{font-size:1.8rem}.next-adventure{display:grid;grid-template-columns:60px 1fr;padding:20px 16px;gap:14px}.next-pet{width:60px;height:65px}.next-pet .pet{font-size:72px}.next-copy h2{font-size:1.12rem;line-height:1.25}.next-copy p{font-size:.8rem}.next-copy .eyebrow{font-size:.59rem}.next-adventure>.btn{grid-column:1/-1;width:100%;min-height:46px}.map-summary{gap:11px;margin:20px 0}.map-stat{font-size:.7rem;gap:5px}.map-stat svg{width:21px}.map-panel-title{padding:15px;flex-direction:column;align-items:flex-start;font-size:1rem}.map-panel-title small{display:block;font-size:.69rem}.treasure-map{min-height:600px}.island-map-title{font-size:10px}.island-mascot .pet-art{font-size:48px}.map-legend{font-size:7px}.expedition-camp{gap:12px}.camp-goal,.camp-tip{padding:16px}.camp-goal h3,.camp-tip h3{font-size:.92rem}.camp-tip p,.camp-goal p{font-size:.76rem}.game-mode .topbar{padding:10px 12px;min-height:56px}.game-mode .game-main{padding:12px 8px}.game-mode .game-top .btn{font-size:.72rem;padding:7px 10px;min-height:34px}.game-mode .game-board{padding:12px 9px}.game-mode .game-heading h1{font-size:1.3rem}#support-contact{bottom:12px;right:12px}#toast{bottom:65px}.pet-card .pet-art{font-size:110px}}
@media(max-height:850px) and (min-width:900px){.game-mode .topbar{height:58px}.game-mode .game-main{max-width:1160px;padding:10px 20px}.game-mode .game-top{margin-bottom:6px}.game-mode .game-heading{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.topbar,#support-contact{display:none!important}}
/* Purposeful learning feedback, translated labels and a short, non-blocking celebration. */
.top-actions .lang{max-width:145px;width:auto;font-size:.76rem}.daily-mission{display:flex;align-items:center;gap:20px;background:#fff9e7;border:1px solid #f3e0a0;border-radius:17px;margin:20px 0;padding:17px 22px;flex-wrap:wrap}.daily-mission strong{font-size:1rem;color:#78601f}.daily-mission p{font-size:.84rem;color:#817145;margin-top:5px}.daily-mission small{width:100%;font-size:.72rem;color:#7a7155}.mission-tokens{display:flex;gap:9px;margin-left:auto}.mission-tokens span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;border:2px dashed #dcc986;color:#958554;font-weight:900}.mission-tokens .done{border-style:solid;background:#ffe079;color:#7c5d09;border-color:#eec34a}.practice-steps{display:flex;list-style:none;gap:22px;justify-content:center;padding:0;margin:4px 0 12px;font-size:.8rem;color:#53778d}.practice-steps li{display:flex;gap:7px;align-items:center}.practice-steps span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e5f5ff;color:#187cb2;font-weight:900}.practice-tip{font-size:.8rem;color:#56798d;margin:7px 0}.practice-tip summary{cursor:pointer}.result-guidance{background:#fff7e5;border:1px solid #efdda8;border-radius:15px;padding:16px;text-align:left;margin:16px 0}.result-guidance.passed{background:#edf9f2;border-color:#bedfcb}.result-guidance h3{font-size:1.02rem;margin-bottom:7px}.result-guidance p{font-size:.85rem;color:#527387}.result-target{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.8rem;margin-top:12px}.family-progress{margin-top:28px}.family-progress h2{font-size:1.4rem}.family-progress-grid{display:grid;grid-template-columns:1fr 2fr;gap:20px;margin:20px 0}.family-progress-grid strong,.family-progress-grid span{display:block}.family-progress-grid strong{font-size:1.4rem;color:#197ca9}.family-progress-grid span{font-size:.8rem;color:#678598;margin-top:7px}.family-progress p{font-size:.9rem;margin:12px 0}.family-progress .btn{margin-top:12px}.results{position:relative;isolation:isolate}.results.is-success{overflow:hidden;border-radius:18px}.celebration{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}.celebration i{position:absolute;left:var(--x);top:-18px;background:var(--color);width:9px;height:15px;border-radius:2px;opacity:0;animation:celebrate-fall 2.9s ease-out var(--delay) both}.celebration i:nth-child(3n){border-radius:50%;height:9px}.celebration-medal{width:58px;height:58px;display:grid;place-items:center;margin:12px auto 0;border:4px solid #fff1b2;border-radius:50%;background:#ffcf40;box-shadow:0 4px 0 #e3b12b;color:#7d5a00;font-size:35px;animation:medal-pop .7s cubic-bezier(.25,1.3,.4,1) both}.results.is-success>.pet-art{animation:happy-hop .65s ease-in-out .3s 3;transform-origin:50% 100%}.result-actions{position:relative;z-index:3}.reduced-motion .celebration{display:none}.reduced-motion .celebration-medal,.reduced-motion .results.is-success>.pet-art{animation:none!important}
@keyframes celebrate-fall{0%{opacity:0;transform:translate(0,-15px) rotate(0)}8%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(var(--drift),500px) rotate(var(--turn))}}
@keyframes medal-pop{0%{opacity:0;transform:scale(.65) rotate(-15deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes happy-hop{0%,100%{transform:translateY(0)}45%{transform:translateY(-12px) rotate(-3deg)}70%{transform:translateY(-5px) rotate(2deg)}}
@media(max-width:1100px){.topbar{flex-wrap:wrap;height:auto;padding-top:12px;padding-bottom:12px}.main-nav{order:3;flex-basis:100%;justify-content:center}.top-actions{margin-left:auto}.game-mode .main-nav{display:none}.game-mode .topbar{height:58px;flex-wrap:nowrap;padding:8px 16px}.game-mode .top-actions .lang{max-width:130px}}
@media(max-width:850px){.main-nav{order:initial}.top-actions .lang{max-width:118px}.game-mode .topbar{display:flex}.family-progress-grid{grid-template-columns:1fr}.daily-mission{gap:12px;padding:15px}}
@media(max-width:540px){.top-actions .lang{max-width:86px;font-size:.67rem}.topbar{padding-left:12px;padding-right:12px}.brand{font-size:1.1rem}.top-actions{gap:3px}.header-logout{font-size:.58rem!important}.daily-mission small{font-size:.7rem}.mission-tokens{gap:6px}.mission-tokens span{width:29px;height:29px}.practice-steps{gap:12px;font-size:.7rem}.result-target{flex-direction:column}.result-actions{flex-wrap:wrap}.result-actions .btn{font-size:.86rem}.game-mode .top-actions .lang{max-width:72px}}
@media(prefers-reduced-motion:reduce){.celebration{display:none}.celebration-medal,.results.is-success>.pet-art{animation:none!important}}
/* Keep the next action visible on short screens during the celebration. */
.results>.pet-art{font-size:80px}.celebration-medal{position:absolute;top:10px;left:calc(50% + 55px);width:44px;height:44px;font-size:27px;margin:0}.results .result-stars{font-size:1.8rem;margin:8px 0}.results .quick-stats{margin:14px 0}.results .stat-card{padding:13px;display:flex;align-items:center;gap:12px}.results .stat-icon{width:30px;height:30px;font-size:18px;margin:0;flex-shrink:0}.results .stat-card strong{font-size:1.3rem}.results .stat-card span{font-size:.74rem}.results .result-guidance{padding:13px;margin:13px 0}.results .result-actions{margin-top:14px}.results>p{font-size:.9rem}.lesson-voice select{max-width:230px;border:1px solid #bddfeb;border-radius:7px;padding:5px;background:#fff;color:#315e79;font:inherit;margin-left:8px}
@media(max-width:540px){.topbar{grid-template-columns:minmax(0,1fr) auto;column-gap:6px}.top-actions .lang{max-width:70px}.main-nav{min-width:0;max-width:100%}.main-nav .nav-item{padding:8px}.lesson-voice{display:flex;flex-direction:column;gap:6px}.lesson-voice select{margin-left:0;max-width:100%}}
@media(max-width:380px){.topbar .brand{font-size:.98rem;gap:4px}.topbar .brand-mark{width:24px}.top-actions .lang{max-width:60px}.header-logout{font-size:.54rem!important}}
.settings-grid>*{min-width:0}.panel p{overflow-wrap:anywhere}.form input,.form select,.form textarea{min-width:0;max-width:100%}.footer{flex-wrap:wrap}#support-contact{position:static;margin:0;box-shadow:none;flex-basis:100%}#support-contact .btn{font-size:.77rem;background:#edf8ff;border-color:#c6e5f5;color:#256e94;box-shadow:none}.lesson-voice{max-width:100%}
.brand .brand-logo{display:block;width:177px;height:40px;object-fit:contain;max-width:100%}
@media(max-width:600px){.brand .brand-logo{width:138px;height:32px}}
.brand .brand-logo{width:112px;height:44px}
@media(max-width:600px){.brand .brand-logo{width:94px;height:37px}}
.brand .brand-logo{width:100px;height:60px}
@media(max-width:600px){.brand .brand-logo{width:80px;height:48px}}
body.in-game .brand .brand-logo{width:80px;height:48px}
/* The camp companion rests on the ground; celebrate only after an achievement. */
.camp-companion>.pet-art{animation:none;transform:none;filter:drop-shadow(0 2px 2px #5f542e20)}
