:root{--ink:#172a27;--green:#164b3c;--lime:#d8ed80;--cream:#f7f5ef;--muted:#75817b;--line:#e4e6dc;--orange:#eea276}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.055em}em{font-family:Georgia,serif;font-weight:400}a{color:inherit}.wrap{max-width:1320px;margin:auto;padding-left:44px;padding-right:44px}.header{height:80px;background:var(--cream);border-bottom:1px solid #e8e9df}.header-inner{max-width:1408px;height:100%;margin:auto;padding:0 44px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--ink);font-family:Manrope,sans-serif;font-weight:800;font-size:23px;letter-spacing:-1.5px}.brand-dot{color:#8aa947}.brand-mark{background:var(--green);color:white;width:30px;height:30px;border-radius:50%;font-size:21px;line-height:28px;position:relative;text-align:center}.brand-mark span{position:absolute;font-size:10px;right:-4px;top:-8px;color:#b1cc59}.header nav{display:flex;gap:37px}.header nav button,.text-link{background:none;border:0;color:#52635b;font-size:13px;font-weight:700}.header nav button:hover,.text-link:hover{color:#80a33e}.header-right{display:flex;align-items:center;gap:22px}.local-pill{font-size:9px;letter-spacing:.08em;font-weight:800;color:#6b7b70;white-space:nowrap}.local-pill span{display:inline-block;background:#8dbf65;width:7px;height:7px;border-radius:50%;margin-right:5px}.header-cta{border:1px solid #193f34;background:transparent;border-radius:5px;padding:12px 17px;font-size:12px;font-weight:700;color:var(--ink)}.header-cta span{margin-left:15px}.hero{padding-top:72px;padding-bottom:72px;display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}.hero-copy{padding:10px 0}.eyebrow,.label{font-size:10px;letter-spacing:.15em;font-weight:800;color:#73866d}.spark{color:#8aa947;font-size:17px;vertical-align:middle;margin-right:8px}.hero h1{font-size:clamp(44px,5.1vw,69px);line-height:1.12;margin:24px 0}.hero h1 em,.section-top h2 em,.how h2 em,.page-heading h1 em,.result-page h1 em{color:#648b54}.hero h1>span,.arena-heading h1 span{color:#8cac53}.hero-copy>p{max-width:460px;color:#6b7972;font-size:15px;line-height:1.9}.hero-actions{display:flex;align-items:center;gap:25px;margin-top:31px}.btn{border:0;border-radius:5px;padding:18px 22px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:space-between;gap:35px;transition:transform .2s,background .2s}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn.primary{background:var(--green);color:white}.btn.primary:hover{background:#23664e}.btn.light{background:#d9ec9e;color:var(--green);margin-top:26px}.btn span{font-size:18px}.play-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #bcc8b9;border-radius:50%;font-size:9px;margin-right:8px}.hero-proof{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:44px;padding-top:23px}.proof-icons{display:flex;padding-left:4px}.proof-icons span{display:flex;align-items:center;justify-content:center;border:2px solid var(--cream);width:29px;height:29px;margin-left:-4px;border-radius:50%;background:#dfbda5;color:#426a4f;font-size:11px}.proof-icons span:nth-child(2){background:#d8e6ae}.proof-icons span:nth-child(3){background:#f1d8a6}.hero-proof strong,.hero-proof small{display:block}.hero-proof strong{font-size:11px}.hero-proof small{font-size:10px;color:#8a968e;margin-top:4px}
.hero-art{height:510px;overflow:hidden;background:#d9e8cb;border-radius:8px;position:relative}.art-sun{position:absolute;width:175px;height:175px;right:53px;top:45px;border-radius:50%;background:#e8d9ad}.art-cloud{position:absolute;border-radius:30px;background:#edf2df;opacity:.8;height:11px;width:90px}.art-cloud:before{content:"";position:absolute;background:inherit;width:35px;height:24px;border-radius:50%;bottom:0;left:20px}.cloud-one{top:86px;left:63px}.cloud-two{top:165px;right:35px;width:70px}.art-plane{position:absolute;top:86px;left:42%;font-size:45px;color:#406d5b;transform:rotate(-20deg)}.flight-path{position:absolute;top:125px;left:23%;width:140px;height:75px;border-bottom:1px dashed #7e9e84;border-radius:50%;transform:rotate(-20deg)}.art-city{position:absolute;bottom:80px;width:100%;height:150px;display:flex;align-items:end;justify-content:center;gap:4px;opacity:.5}.building{background:#90ab91;width:55px;position:relative}.building:after{content:"▯ ▯ ▯";position:absolute;top:15px;left:5px;color:#d4e4cc;line-height:25px;font-size:13px}.b1{height:75px}.b2{height:115px}.b3{height:86px}.b4{height:140px;width:45px}.b4:before{content:"";position:absolute;top:-27px;left:12px;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:27px solid #90ab91}.b5{height:105px}.b6{height:68px}.art-ground{position:absolute;bottom:0;height:100px;background:#a0bd9c;width:100%;border-radius:50% 50% 0 0}.passport{position:absolute;width:174px;height:247px;left:20%;bottom:48px;transform:rotate(-12deg);background:#285e4c;border-radius:5px 12px 12px 5px;box-shadow:8px 13px 15px #54786155;color:#d4d69f;text-align:center;border-left:5px solid #1f4b3e}.passport-top{font-size:8px;letter-spacing:.12em;margin-top:28px}.passport-top span{font-size:14px}.passport-globe{font-size:70px;line-height:1;margin:25px 0 10px}.passport-title{font-size:11px;letter-spacing:.2em}.passport-lines{font-size:9px;margin-top:12px;opacity:.7}.boarding{position:absolute;right:12%;bottom:75px;width:195px;height:155px;background:#fff8df;border-radius:4px;padding:17px;transform:rotate(11deg);box-shadow:5px 10px 16px #607e6455;color:#365b4b}.boarding>span{font-size:8px;letter-spacing:.15em}.boarding>strong{display:block;font:800 21px Manrope;margin:10px 0}.boarding i{float:right;font-size:19px}.boarding>div:not(.barcode){display:flex;justify-content:space-between}.boarding small{font-size:7px;color:#91a592;line-height:1.5}.boarding b{font-size:11px;color:#365b4b}.barcode{height:17px;width:100%;margin-top:10px;background:repeating-linear-gradient(90deg,#628372 0 2px,transparent 2px 4px,#628372 4px 5px,transparent 5px 8px)}.art-sticker{position:absolute;right:32px;top:186px;background:#f5e6b5;border-radius:50%;width:93px;height:93px;text-align:center;padding:17px 5px;font-size:7px;font-weight:800;line-height:1.4;transform:rotate(12deg);color:#537251}.art-sticker span{display:block;font-size:28px}.art-caption{position:absolute;bottom:14px;left:22px;right:22px;font-size:8px;letter-spacing:.12em;font-weight:800;color:#406b54}.art-caption span{float:right;font-size:14px}
.ticker{background:var(--green);color:#dae9b4;overflow:hidden;white-space:nowrap;padding:16px 0;font-size:9px;font-weight:800;letter-spacing:.18em;text-align:center}.ticker span{font-size:15px;padding:0 38px;color:#a6c85f}.journey{padding-top:112px;padding-bottom:105px}.section-top{display:flex;justify-content:space-between;align-items:end;gap:40px}.section-top h2,.how h2{font-size:clamp(34px,3.8vw,48px);line-height:1.2;margin-top:20px}.section-top>p,.how-heading>p{max-width:320px;font-size:13px;color:#839087;line-height:1.8}.chapter-head{display:flex;justify-content:space-between;align-items:end;margin:58px 0 20px}.chapter-number,.label{font-size:9px;letter-spacing:.15em;font-weight:800;color:#849574}.chapter-head h3{font-size:23px;margin-top:8px}.chapter-head h3 span{color:#89a75f;font-size:17px}.chapter-head p{font-size:12px;color:#8d9991;margin-top:8px}.level{font-size:9px;letter-spacing:.12em;font-weight:700;color:#7a8a7d}.level strong{font-size:12px;background:#e6eddb;padding:8px 10px;border-radius:4px;color:#577b52;margin-left:5px}.quest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.quest-card{border:1px solid #e4e8df;border-radius:7px;background:#fff;text-align:left;overflow:hidden;padding:0;color:var(--ink);transition:transform .2s,box-shadow .2s}.quest-card:hover:not(:disabled){transform:translateY(-5px);box-shadow:0 15px 25px #263e2912}.quest-card:disabled{opacity:.74}.card-top{padding:17px 20px;display:flex;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:.1em;color:#7c8f7e}.card-top b{padding:0 4px}.card-status{font-size:8px;color:#71905e}.card-illustration{height:155px;background:#dce9d5;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.q02 .card-illustration,.mission-panel.q02{background:#eadbc7}.q03 .card-illustration,.mission-panel.q03{background:#efdfc3}.card-illustration:before,.card-illustration:after{content:"";position:absolute;border:1px solid #91ad91;border-radius:50%;width:190px;height:190px}.card-illustration:after{width:125px;height:125px}.card-illustration>span{font-size:68px;color:#668b6b;z-index:1}.q02 .card-illustration>span{color:#ac866d}.q03 .card-illustration>span{color:#b18e5f}.card-stamp{position:absolute;right:18px;top:18px;width:42px;height:42px;border:1px solid #9db59a;border-radius:50%;font-size:6px;line-height:1.2;text-align:center;padding-top:7px;color:#85a286}.card-bottom{padding:23px 20px}.card-bottom>span{font-size:10px;color:#95a498}.card-bottom h3{font-size:19px;margin:6px 0 10px}.card-bottom p{font-size:12px;color:#87938b;line-height:1.7;min-height:42px}.card-action{border-top:1px solid #edf0e9;margin-top:19px;padding-top:16px;color:#456d50;font-size:11px;font-weight:700}.card-action span{float:right;font-size:16px}
.how{display:grid;grid-template-columns:1fr 1.4fr;gap:70px;padding-top:40px;padding-bottom:125px}.how-heading>p{margin-top:20px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.steps>div{border-top:1px solid #b9cbb4;padding-top:15px}.steps>div>span{font-size:9px;letter-spacing:.12em;font-weight:800;color:#98a89b}.step-icon{font-size:35px;color:#83a76f;margin:24px 0}.steps h3{font-size:16px;letter-spacing:-.03em}.steps p{font-size:12px;line-height:1.75;color:#8b988f;margin-top:10px}.bottom-cta{margin-bottom:90px}.bottom-cta>div:first-child{background:var(--green);border-radius:8px;padding:58px 65px;color:white;position:relative;overflow:hidden}.bottom-cta>div:first-child:after{content:"";position:absolute;right:14%;top:-90px;font-size:300px;color:#ffffff0b}.bottom-cta span{font-size:9px;letter-spacing:.15em;color:#c3dca7;font-weight:800}.bottom-cta h2{font-size:42px;line-height:1.2;margin-top:17px}.bottom-cta h2 em{color:#d5eaa2}.cta-orbit{display:none}footer{border-top:1px solid #e3e7dd}.footer-inner{max-width:1320px;padding:30px 44px;margin:auto;display:flex;align-items:center;justify-content:space-between;color:#9aa59a;font-size:11px}.footer-inner>span:last-child{font-size:9px;letter-spacing:.1em}.footer-brand{font-family:Manrope,sans-serif;font-size:19px;letter-spacing:-1px;font-weight:800;color:var(--green)}.footer-brand span{color:#94b254}
.inner-page{padding-top:40px;padding-bottom:100px;min-height:75vh}.back-link{border:0;background:none;color:#788b7d;font-size:12px;font-weight:700;padding:0}.back-link:hover{color:var(--green)}.page-heading{margin:45px 0 32px}.page-heading h1,.arena-heading h1,.result-page h1{font-size:clamp(37px,4.5vw,56px);line-height:1.15;margin:15px 0}.page-heading>p,.result-page>p{font-size:14px;color:#859288;line-height:1.8}.prep-grid{display:grid;grid-template-columns: .85fr 1.35fr;gap:22px}.mission-panel{background:#dce9d5;border-radius:8px;padding:30px;min-height:570px;display:flex;flex-direction:column}.mission-panel-top{font-size:9px;letter-spacing:.13em;font-weight:800;color:#749172}.mission-panel-top>span:last-child{float:right;font-size:17px}.mission-icon{font-size:120px;color:#6f9672;text-align:center;margin:35px 0}.mission-place{font-size:10px;font-weight:700;color:#79937c}.mission-panel h2{font-size:29px;margin:7px 0 12px}.mission-panel>p{font-size:13px;line-height:1.7;color:#718674;max-width:310px}.mission-details{border-top:1px solid #aebfa8;display:grid;gap:18px;margin-top:auto;padding-top:23px}.mission-details div{display:flex;justify-content:space-between}.mission-details span{font-size:9px;letter-spacing:.1em;font-weight:800;color:#829987}.mission-details strong{font-size:12px}.guide-panel{border:1px solid var(--line);border-radius:8px;background:white;padding:35px 40px}.guide-heading{display:flex;align-items:center;justify-content:space-between}.guide-heading h2{font-size:27px;margin-top:8px}.guide-heading h2 span{color:#90af67}.guide-badge{background:#eff4e8;color:#819775;padding:9px;font-size:9px;font-weight:700;border-radius:4px}.guide-intro{font-size:12px;color:#929d94;line-height:1.7;margin:17px 0 28px}.guide-title{font-size:10px;letter-spacing:.08em;font-weight:800;margin:25px 0 12px}.guide-title span{color:#a1b78f;margin-right:10px}.vocab-list div{border-bottom:1px solid #f0f1ec;display:flex;justify-content:space-between;padding:11px 0;font-size:12px}.vocab-list span{color:#9aa59d}.phrases{background:#f5f8f0;border-radius:5px;padding:15px 18px}.phrases p{font-family:Georgia,serif;font-style:italic;font-size:13px;color:#5e7b60;line-height:2}.full{width:100%;margin-top:24px}.small-note{text-align:center;font-size:10px;color:#9aa69c;margin-top:12px;line-height:1.6}
.arena-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px}.arena-heading .eyebrow{margin-top:35px}.timer{padding:14px 20px;border:1px solid var(--line);border-radius:5px;background:white;text-align:center}.timer span,.timer strong{display:block}.timer span{font-size:9px;font-weight:800;letter-spacing:.1em;color:#9ca99e}.timer strong{font-family:Manrope;font-size:23px;margin-top:4px;color:#467055}.arena-grid{display:grid;grid-template-columns:1.8fr .8fr;gap:20px}.conversation,.objectives{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.conversation{display:flex;flex-direction:column;height:610px}.conversation-header{padding:19px 24px;border-bottom:1px solid #edf0e9;display:flex;align-items:center;gap:11px}.avatar{height:42px;width:42px;border-radius:50%;display:grid;place-items:center;background:#d8e8d2;color:#63866a;font-weight:800;font-size:12px}.conversation-header strong,.conversation-header span{display:block}.conversation-header strong{font-size:13px}.conversation-header span{font-size:10px;color:#9aa89d;margin-top:4px}.sound-toggle{margin-left:auto;background:#f3f7ef;border:0;border-radius:4px;color:#789078;font-size:10px;padding:9px}.messages{overflow:auto;flex:1;padding:25px}.message{max-width:80%;margin-bottom:22px}.message.user{margin-left:auto;text-align:right}.message-label{font-size:9px;letter-spacing:.1em;font-weight:800;color:#9ba99d;margin-bottom:8px}.bubble{display:inline-block;border-radius:3px 14px 14px 14px;background:#f0f5ed;color:#365846;text-align:left;padding:14px 17px;font-size:13px;line-height:1.6}.user .bubble{background:#1b5441;color:white;border-radius:14px 3px 14px 14px}.feedback{font-size:11px;color:#86a06e;margin-top:8px}.thinking{color:#869d86;font-size:12px}.composer{border-top:1px solid #edf0e9;padding:16px 20px 8px;display:flex;gap:10px}.composer input{flex:1;min-width:0;border:0;outline:0;font-size:13px;color:var(--ink)}.composer input::placeholder{color:#b3beb5}.mic,.send-btn{width:39px;height:39px;border:0;border-radius:50%;background:#ecf3e7;color:#547e5a}.mic.listening{background:#e88e79;color:#fff;animation:pulse 1s infinite}.send-btn{background:var(--green);color:white;font-size:19px}@keyframes pulse{50%{box-shadow:0 0 0 7px #e88e7933}}.composer-note{padding:0 20px 15px 70px;font-size:9px;color:#b0bab0}.objectives{padding:25px}.objectives-heading{display:flex;justify-content:space-between}.objectives-heading h2{font-size:21px;margin-top:7px}.objectives-heading h2 span,.objectives-heading>span{color:#91ae71}.objectives>p{font-size:12px;line-height:1.7;color:#96a399;margin:15px 0}.objective-list{margin:20px 0}.objective{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f2ed}.check{width:28px;height:28px;border:1px solid #e1e9dd;border-radius:50%;display:grid;place-items:center;color:#aab8a8;font-size:9px;flex-shrink:0}.objective strong{font-size:12px;font-weight:600}.objective.done .check{background:#d8eac7;color:#4f8057;border-color:#d8eac7}.objective.done strong{text-decoration:line-through;color:#9eac9d}.reward-box{text-align:center;background:#f4f7ef;border-radius:5px;padding:19px}.reward-box>span{font-size:9px;font-weight:800;letter-spacing:.1em;color:#9aaa94}.reward-icon{font-size:30px;color:#8da77e;margin:8px}.reward-box strong{font-size:12px}.reward-box p,.objectives details p{font-size:10px;color:#9ba99b;margin-top:7px;line-height:1.6}.objectives details{border-bottom:1px solid #edf0e9;padding:18px 0}.objectives summary{font-size:11px;font-weight:700;cursor:pointer;list-style:none}.objectives summary span{float:right}.turns{text-align:center;font-size:9px;color:#a4b0a5;font-weight:800;letter-spacing:.1em;margin-top:19px}
.result-page{text-align:center;max-width:850px;padding-top:70px}.result-stamp{margin:auto auto 23px;width:75px;height:75px;border-radius:50%;background:#dceccc;display:grid;place-items:center;font-size:38px;color:#759c63}.result-page>p{max-width:520px;margin:auto}.result-card{background:white;border:1px solid var(--line);border-radius:8px;margin:35px auto 0;padding:27px;max-width:540px}.result-card>span{font-size:9px;font-weight:800;letter-spacing:.12em;color:#96a78f}.result-reward{position:relative;display:inline-block;font-size:56px;line-height:1.1;color:#9cba76;margin:13px}.result-reward.pending{opacity:.35;filter:grayscale(100%)}.result-reward .item-count{position:absolute;top:-4px;right:-22px;margin:0}.result-card h2{font-size:21px}.result-card>p{font-size:12px;color:#98a49a;margin-top:8px}.result-stats{border-top:1px solid #edf0e9;display:flex;justify-content:center;gap:55px;margin-top:25px;padding-top:22px}.result-stats strong,.result-stats span{display:block}.result-stats strong{font-size:19px;color:#507858}.result-stats span{font-size:9px;letter-spacing:.08em;color:#a2afa2;margin-top:6px}.result-actions{display:flex;justify-content:center;align-items:center;gap:25px;margin-top:28px}.error-banner{background:#fff1e9;border-bottom:1px solid #edc8b7;color:#934d3a;padding:14px 44px;font-size:13px}.error-banner button{float:right;border:0;background:none;color:inherit;font-size:20px}.loading{text-align:center;padding:100px 20px;color:#708274;line-height:2}
.resume-link{display:block;margin-top:20px;padding:0;border:0;background:none;color:#577d50;font-size:12px;font-weight:700;text-decoration:underline}
h1 em,h2 em{font-family:Manrope,sans-serif;font-style:italic;letter-spacing:-.06em}
#guide-root{position:fixed;right:16px;bottom:16px;z-index:90}
.guide-toggle{width:50px;height:50px;border:0;border-radius:50%;background:var(--green);color:white;font-size:24px;box-shadow:0 4px 16px #172a2755}
.context-guide-panel{position:absolute;right:0;bottom:60px;width:min(380px,calc(100vw - 32px));max-height:min(680px,calc(100dvh - 100px));overflow:auto;background:white;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 8px 32px #172a2733}
.context-guide-panel[hidden]{display:none}
.context-guide-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.context-guide-panel h2{font-size:19px}.context-guide-panel h3{font-size:14px;margin:16px 0 8px}
.context-guide-panel header button{border:0;background:transparent;font-size:25px;line-height:1;color:var(--ink)}
.guide-usage{font-size:12px;color:#52635b;margin:8px 0 12px}
.guide-recommendation{background:#f0f5ed;border-radius:8px;padding:12px;font-size:13px;line-height:1.5}
.guide-recommendation p{margin:5px 0 9px}
.guide-recommendation button,.context-guide-panel form button{border:0;border-radius:5px;background:var(--green);color:white;padding:8px 12px;font-weight:700}
.guide-chips{display:flex;flex-wrap:wrap;gap:6px}
.guide-chips button{border:1px solid #c9dbc6;background:#f7faf4;color:var(--green);border-radius:16px;padding:7px 10px;font-size:12px;text-align:left}
.guide-answer,.guide-error{font-size:13px;line-height:1.5;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.guide-error{color:#934d3a}
.context-guide-panel form{display:flex;gap:8px}.context-guide-panel input{min-width:0;flex:1;border:1px solid #b9cbb4;border-radius:5px;padding:9px}
.guide-tabs{display:flex;gap:6px;margin:12px 0}.guide-tabs button{flex:1;border:1px solid #c9dbc6;border-radius:6px;padding:8px;background:#fff;color:var(--green);font-weight:700}.guide-tabs button[aria-selected="true"]{background:var(--green);color:white}
.context-guide-panel #planner-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}.context-guide-panel #planner-form label:first-child,.context-guide-panel #planner-form button{grid-column:1/-1}
#planner-form label{display:grid;gap:4px;font-size:12px;font-weight:700}#planner-form select{min-width:0;width:100%;padding:8px;border:1px solid #b9cbb4;border-radius:5px;background:white;color:var(--ink)}
#planner-content{font-size:13px;line-height:1.5}#planner-content>p{margin:10px 0}#planner-content progress{width:100%;accent-color:var(--green)}#planner-content summary{cursor:pointer;font-weight:700}
.planner-list{list-style:none;padding:0;margin:6px 0}.planner-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:7px 0}.planner-list button{flex-shrink:0;border:1px solid #b9cbb4;border-radius:5px;background:#f0f5ed;color:var(--green);padding:6px;font-size:12px}
.replay{display:block;border:0;background:none;color:#718d72;padding:7px 0 0;font-size:10px;font-weight:700}
@media(max-width:900px){.header nav{gap:15px}.local-pill{display:none}.hero{gap:30px}.hero-art{height:430px}.passport{left:12%}.boarding{right:7%}.how{grid-template-columns:1fr;gap:35px}.arena-grid{grid-template-columns:1.4fr 1fr}.wrap{padding-left:26px;padding-right:26px}.header-inner{padding:0 26px}}
@media(max-width:680px){.header{height:66px}.header nav{display:none}.header-inner{padding:0 20px}.header-cta{padding:10px}.hero{padding-top:35px;padding-bottom:40px;grid-template-columns:1fr;gap:35px}.hero h1{font-size:44px}.hero-art{height:365px}.passport{height:205px;width:145px;bottom:33px}.passport-globe{font-size:50px;margin:20px 0 8px}.boarding{width:165px;height:140px;bottom:55px}.art-sticker{top:120px}.art-city{bottom:55px}.art-ground{height:75px}.section-top{display:block}.section-top>p{margin-top:16px}.journey{padding-top:70px;padding-bottom:65px}.quest-grid{grid-template-columns:1fr}.card-illustration{height:130px}.how{padding-top:20px;padding-bottom:70px}.steps{gap:12px}.steps h3{font-size:14px}.steps p{font-size:11px}.bottom-cta{margin-bottom:50px}.bottom-cta>div:first-child{padding:35px 25px}.bottom-cta h2{font-size:32px}.bottom-cta>div:first-child:after{right:-70px;font-size:200px;top:-20px}.footer-inner{padding:25px;gap:15px;flex-wrap:wrap}.footer-inner>span:last-child{display:none}.prep-grid,.arena-grid{grid-template-columns:1fr}.mission-panel{min-height:420px}.mission-icon{font-size:80px;margin:20px}.guide-panel{padding:25px}.guide-badge{display:none}.inner-page{padding-top:25px;padding-bottom:60px}.page-heading{margin:35px 0 25px}.conversation{height:520px}.arena-heading{align-items:center}.arena-heading h1{font-size:32px}.timer{padding:10px}.timer span{font-size:8px}.timer strong{font-size:19px}.result-stats{gap:25px}.result-actions{flex-direction:column}.hero-actions{gap:12px}.text-link{font-size:11px}.ticker{text-align:left}.ticker>div{width:max-content}.error-banner{padding:12px 20px}}

.character-svg{display:block;width:100%;height:100%;overflow:visible}
.studio-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:22px}
.studio-preview{min-height:550px;position:relative;overflow:hidden;border-radius:8px;background:#dce9d5;padding:28px;display:flex;flex-direction:column;align-items:center}
.studio-preview-label{align-self:stretch;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.13em;font-weight:800;color:#729078}
.studio-orbit{position:absolute;width:300px;height:300px;top:82px;border:1px solid #a7c3a5;border-radius:50%;box-shadow:0 0 0 38px #ffffff18,0 0 0 76px #ffffff12}
.studio-orbit:before,.studio-orbit:after{content:"";position:absolute;color:#92b491;font-size:26px;top:25px;left:-32px}
.studio-orbit:after{content:"✦";left:auto;right:-25px;top:180px}
.studio-character{position:relative;width:235px;height:305px;margin:52px auto 5px}
.studio-caption{text-align:center;z-index:1}
.studio-caption span,.studio-caption strong{display:block}
.studio-caption span{color:#8ba38a;font-size:9px;letter-spacing:.14em;font-weight:800}
.studio-caption strong{font:800 17px Manrope;margin-top:8px;letter-spacing:-.03em}
.random-button{margin-top:auto;border:1px solid #a0b99e;background:#ffffff6b;border-radius:5px;padding:12px 16px;color:#57765c;font-size:11px;font-weight:700;z-index:1}
.studio-controls{background:#fff;border:1px solid var(--line);border-radius:8px;padding:42px}
.studio-controls h2{font-size:30px;margin:9px 0 12px}.studio-controls h2 span,.location-panel h2 span{color:#92af70}
.studio-controls>p{font-size:13px;color:#8b9b8e;line-height:1.75;max-width:380px}
.palette{border:0;border-bottom:1px solid #edf0e9;padding:22px 0;margin:0}
.palette legend{padding:0;font:700 13px Manrope}.palette legend span{color:#a7ba9b;font-size:10px;letter-spacing:.08em;margin-right:10px}
.swatches{display:flex;gap:13px;margin:14px 0 7px}.swatch{width:38px;height:38px;border:1px solid transparent;background:transparent;border-radius:50%;padding:4px}
.swatch.selected{border-color:#507458}.swatch:focus-visible,.map-node:focus-visible,.map-filters button:focus-visible{outline:2px solid #355f48;outline-offset:3px}
.swatch span{display:block;width:100%;height:100%;border-radius:50%;border:1px solid #283b3022}.palette small{font-size:10px;color:#91a294}
.studio-controls .hat-note{margin-top:15px;color:#6b8c5a;font-size:11px}
.world-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin:28px 0 32px}
.world-heading h1{font-size:clamp(36px,4vw,51px);line-height:1.15;margin:15px 0}.world-heading h1 em{color:#648b54}
.world-heading p{font-size:13px;color:#8a998e;line-height:1.7}
.avatar-edit{display:flex;gap:12px;align-items:center;border:1px solid #e0e8da;background:white;border-radius:7px;padding:6px 15px 6px 7px;text-align:left;color:#8b9d8b;font-size:9px;font-weight:800;letter-spacing:.08em}
.avatar-edit-art{width:42px;height:52px;background:#e6f0df;border-radius:4px;overflow:hidden}.avatar-edit strong{display:block;color:#426b4c;font-size:11px;letter-spacing:0;margin-top:6px}
.world-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}
.map-filters{display:flex;flex-wrap:wrap;gap:8px}.map-filters button{border:1px solid #e1e7dd;background:white;border-radius:20px;padding:10px 14px;font-size:10px;font-weight:700;color:#88978b}
.map-filters button.active{background:#204f3d;color:#fff;border-color:#204f3d}.inventory-count{font-size:10px;letter-spacing:.08em;color:#819380;font-weight:800;white-space:nowrap}.inventory-count strong{background:#e2ebd8;border-radius:50%;padding:6px 9px;margin-left:4px;color:#517551}
.world-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(230px,20vw,300px);gap:18px}
.city-map{position:relative;overflow:hidden;min-height:540px;background:#e6eee0;border:1px solid #d6e3d2;border-radius:8px;padding:28px}
.city-map:before,.city-map:after{content:"";position:absolute;width:180px;height:100px;border-radius:25px;background:#cfdcc7;transform:rotate(-15deg);top:85px;left:-25px;box-shadow:270px 55px 0 #d5e2cd,450px 270px 0 #d2e0cd}
.city-map:after{background:#d2dfcc;width:120px;height:60px;top:325px;left:45px;box-shadow:200px -260px 0 #d9e5d3,350px -75px 0 #cdddc8}
.city-map-label{position:relative;z-index:1;font-size:9px;color:#86a087;letter-spacing:.15em;font-weight:800}.city-map-label span{float:right;font-size:18px}
.city-river{position:absolute;width:150%;height:100px;background:#c8dfdb;transform:rotate(-15deg);left:-25%;top:210px;border:9px solid #e7f1e8}
.city-road{position:absolute;background:#f7f6e8;border:1px solid #ecebdc;transform:rotate(22deg);width:110%;height:13px;top:130px;left:-10%}.road-two{top:380px;transform:rotate(-20deg)}
.map-decor{position:absolute;color:#adc7a3;font-size:33px}.decor-one{left:8%;top:42%}.decor-two{right:13%;bottom:12%}
.map-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px;margin-top:32px}
.map-node{min-height:98px;position:relative;border:1px solid #d5e4d3;border-radius:7px;background:#ffffffef;padding:12px 9px;display:flex;align-items:center;gap:9px;text-align:left;color:#385747;box-shadow:0 5px 15px #46694a0c}
.map-node.selected{border:2px solid #719a6b;box-shadow:0 7px 18px #53755424}.map-node-icon{width:37px;height:37px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:#e5efdd;color:#72966e;font-size:20px}
.map-node.intermediate .map-node-icon{background:#e4edf4;color:#6c91aa}.map-node.advanced .map-node-icon{background:#f0e9f2;color:#987b9f}
.map-node-copy small,.map-node-copy strong{display:block}.map-node-copy small{font-size:8px;letter-spacing:.08em;color:#89a38c;font-weight:800}.map-node-copy strong{font-size:11px;line-height:1.35;margin-top:5px}
.map-player{position:absolute;width:40px;height:52px;right:-6px;bottom:-16px;background:#faf9ef;border:2px solid #8dac7d;border-radius:50%;overflow:hidden}
.map-legend{position:absolute;bottom:19px;left:28px;z-index:1;display:flex;gap:16px;font-size:9px;font-weight:800;color:#79a079}.map-legend span:nth-child(2){color:#7998af}.map-legend span:nth-child(3){color:#9e86a5}
.location-panel{align-self:start;border:1px solid var(--line);border-radius:8px;background:#fff;padding:27px}
.location-icon{width:72px;height:72px;border-radius:20px;background:#e7f0e0;color:#7a9f76;font-size:38px;display:grid;place-items:center;margin:30px 0 22px}
.location-level{font-size:9px;color:#89a282;font-weight:800;letter-spacing:.13em}.location-panel h2{font-size:24px;line-height:1.2;margin:11px 0}.location-panel>p{font-size:12px;line-height:1.7;color:#97a59a}
.location-meta{border-top:1px solid #eef0ea;padding:14px 0;display:flex;flex-direction:column;gap:6px}.location-meta:first-of-type{margin-top:25px}.location-meta span{font-size:9px;letter-spacing:.1em;color:#acb9aa;font-weight:800}.location-meta strong{font-size:11px;color:#526e5a}
.locked-panel{margin-top:16px;display:grid;gap:12px}.locked-button{background:#e9ede5;color:#5f7166;border:1px dashed #b9c6b5;cursor:not-allowed}.locked-zone{background:#f4f6f1;border-radius:8px;padding:12px;color:#365847;font-size:13px;line-height:1.45}.locked-zone p{margin:0 0 8px}.locked-zone small{color:#5f7166}.locked-progress{position:relative;height:8px;border-radius:999px;background:#dfe6da;overflow:visible;margin-bottom:6px}.locked-progress span{display:block;height:100%;border-radius:999px;background:#729b5b}.locked-progress i{position:absolute;top:-3px;width:2px;height:14px;background:#1f4d3a}.locked-heading{margin:0;font-size:13px;font-weight:700;color:#365847}.locked-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}.locked-items li{display:flex;gap:10px;align-items:flex-start;background:#f4f6f1;border-radius:8px;padding:10px 12px;color:#365847;font-size:13px}.locked-items strong{display:block}.locked-items small{display:block;color:#5f7166;margin-top:2px}.locked-item-icon{font-size:22px;line-height:1}.locked-go{margin-top:6px;border:1px solid #729b5b;background:#fff;color:#1f4d3a;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer}.locked-go:hover,.locked-go:focus-visible{background:#eef5e6}.locked-note{background:#f4f6f1;border-radius:5px;color:#899a8d;font-size:11px;line-height:1.5;padding:14px;margin-top:14px}
.prep-characters{height:225px;margin:10px auto 5px;display:flex;justify-content:center;align-items:end;gap:0}.prep-characters>div{width:155px;height:205px}.prep-characters>div+div{margin-left:-30px;transform:scale(.88)}
.stage-conversation{height:auto;min-height:610px}
.roleplay-stage{position:relative;flex:1;min-height:440px;overflow:hidden;background:#dbe9df}
.stage-backdrop{position:absolute;inset:0 0 25%;background:linear-gradient(180deg,#d9e9df,#c9dfd4);overflow:hidden}
.stage-backdrop>span{position:absolute;left:20px;top:17px;font-size:9px;font-weight:800;letter-spacing:.14em;color:#8fae9e}
.stage-q02 .stage-backdrop{background:linear-gradient(180deg,#eadfd2,#decdbb)}.stage-q03 .stage-backdrop{background:linear-gradient(180deg,#efe2cf,#e1cbb0)}
.stage-window{position:absolute;top:65px;left:10%;width:105px;height:165px;background:#e8f4ed;border:8px solid #f6f5ea;border-radius:50px 50px 2px 2px;box-shadow:0 0 0 2px #a4c0af}
.stage-window:after{content:"";position:absolute;left:50%;height:100%;border-left:4px solid #f6f5ea}.stage-window.second{left:auto;right:11%}
.stage-sign{position:absolute;top:65px;left:43%;width:14%;height:52px;display:grid;place-items:center;border:4px solid #eaf1e4;background:#6c9a83;color:white;font-size:27px}
.stage-floor{position:absolute;bottom:0;left:0;right:0;height:25%;background:#afcbb5;border-top:9px solid #9dbda7}
.stage-q02 .stage-floor{background:#cbb59e;border-color:#bca58b}.stage-q03 .stage-floor{background:#c7ae8d;border-color:#b99e7b}
.stage-people{position:absolute;z-index:2;bottom:13px;left:0;right:0;display:flex;justify-content:space-around;align-items:end}
.stage-person{width:170px;height:220px;position:relative;text-align:center}.stage-person>span{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:12px;background:#fffdf0e8;padding:5px 10px;color:#55725b;font-size:9px;font-weight:800}
.stage-dialogue{position:absolute;z-index:3;top:21px;left:23%;width:52%;border:1px solid #d7e5d4;border-radius:13px 13px 13px 2px;background:#fffef9f5;padding:13px 15px;box-shadow:0 8px 20px #2c51410e}
.stage-dialogue small{font-size:9px;font-weight:800;letter-spacing:.1em;color:#6c9372}.stage-dialogue small span{font-weight:500;letter-spacing:0;color:#96aa97}
.stage-dialogue p{font-size:12px;line-height:1.5;color:#365445;margin:7px 0 0}.stage-replay{padding:7px 0 0;border:0;background:none;color:#86a586;font-size:10px;font-weight:700}
.user-dialogue{top:auto;bottom:145px;left:auto;right:15px;width:36%;border-radius:13px 13px 2px 13px;background:#f8f6eaf5}.user-dialogue p{font-size:11px}.stage-feedback{display:block;font-size:10px;color:#7b9b6b;margin-top:7px;line-height:1.4}
.thinking-person{animation:bob 1s ease-in-out infinite alternate}.history-list{max-height:210px;overflow:auto;margin-top:12px}.history-list>div{border-bottom:1px solid #edf0e9;padding:8px 0;font-size:11px;line-height:1.5;color:#7f9182}.history-list strong{color:#486b51}.history-list p{color:#87a476}
.result-avatar{height:180px;width:140px;margin:0 auto 15px;border-radius:50%;background:#e0edd7;overflow:hidden}.result-avatar.celebrating .character-svg{animation:bob .7s ease-in-out infinite alternate}.hat-reward{margin:14px auto 0!important;color:#6c925b!important;font-size:11px!important}
@keyframes bob{from{transform:translateY(0)}to{transform:translateY(-7px)}}
@media(max-width:1100px){.world-layout{grid-template-columns:1fr}}
@media(max-width:900px){.world-layout{grid-template-columns:1fr}.city-map{min-height:480px}.location-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.location-panel .location-icon{margin:8px 0}.location-panel .full{align-self:end}.location-panel .small-note{grid-column:1/-1}.studio-controls{padding:30px}}
@media(max-width:680px){.studio-layout{grid-template-columns:1fr}.studio-preview{min-height:390px}.studio-character{height:220px;width:170px;margin:22px auto 0}.studio-orbit{top:60px;width:220px;height:220px}.studio-controls{padding:25px}.world-heading{align-items:start;flex-direction:column}.world-heading h1{font-size:37px}.world-toolbar{align-items:start;flex-direction:column}.city-map{padding:20px;min-height:450px}.map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;margin-top:25px}.map-node{min-height:76px}.map-node-icon{width:32px;height:32px;font-size:17px}.map-node-copy strong{font-size:10px}.map-player{width:32px;height:41px}.map-legend{left:20px;bottom:15px}.location-panel{display:block}.location-panel .location-icon{margin:20px 0}.prep-characters{height:180px}.prep-characters>div{height:170px;width:130px}.stage-conversation{min-height:570px;height:auto}.roleplay-stage{min-height:410px}.stage-window{width:65px;height:125px}.stage-person{width:130px;height:170px}.stage-dialogue{left:12%;width:75%}.user-dialogue{left:auto;right:10px;width:49%;bottom:112px}.user-dialogue p{max-height:45px;overflow:auto}}
@media(prefers-reduced-motion:reduce){.thinking-person,.result-avatar.celebrating .character-svg{animation:none}}
.town-section{min-width:0;background:#f8f6ec;border:1px solid #dfe8d8;border-radius:20px;padding:18px}
.town-title{display:flex;justify-content:space-between;color:#55725b;font-size:13px;margin:0 0 12px}
#town-canvas{display:block;width:100%;aspect-ratio:768/460;height:auto;border-radius:12px;background:#bfe4a3;touch-action:pinch-zoom;outline-offset:3px;cursor:grab}
#town-canvas:active{cursor:grabbing}
.town-help,.town-resident,.town-answer{font-size:12px;line-height:1.5;color:#55725b;margin:10px 0}
.town-resident{font-weight:700;min-height:18px}.town-answer{min-height:18px}
.town-form{display:flex;gap:8px;align-items:center}.town-form input{min-width:0;flex:1;padding:12px;border:1px solid #dbe5d6;border-radius:10px;background:white}
.town-teleport{margin-top:16px;font-size:12px;color:#55725b}.town-teleport summary{cursor:pointer;font-weight:700}.town-teleport button{margin:8px 6px 0 0;padding:8px;border:1px solid #dbe5d6;border-radius:8px;background:white;color:#486b51}.town-teleport button:disabled{opacity:.5}
.map-filters button:disabled{opacity:.55;cursor:not-allowed}
.event-notice,.event-card{padding:12px 15px;border-radius:10px;background:#fff2cf;color:#745d32;font-size:12px;line-height:1.6}.event-card{margin-top:12px}.event-card button{display:block;border:0;background:none;color:#745d32;font-weight:800;padding:8px 0 0;cursor:pointer}
.wrap:not(.result-page),.footer-inner,.header-inner{max-width:1920px}
@media(min-width:901px){.wrap:not(.result-page),.footer-inner,.header-inner{padding-left:clamp(24px,2vw,44px);padding-right:clamp(24px,2vw,44px)}}
@media(min-width:1101px){#town-canvas{aspect-ratio:2/1}}
.town-enter-hint{margin:9px 0 0;color:#55725b;font-size:11px;line-height:1.5}
body.immersive{overflow:hidden}
body.immersive #app>.header,body.immersive #app>footer{display:none}
body.immersive .error-banner{position:fixed;z-index:40;left:12px;right:12px;bottom:12px;border:1px solid #edc8b7;border-radius:10px}
.immersive-page{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;overflow:hidden;background:#dce9df}
.immersive-hud{position:absolute;z-index:20;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none}
.locale-control{position:relative;display:inline-flex}
.btn [data-i18n]{font-size:inherit}
[data-locale-error]:not(:empty){position:absolute;top:100%;right:0;width:220px;padding:8px;background:#fff;color:#8e3020;border-radius:6px;z-index:30}
.immersive-hud .hud-button,.immersive-hud .device-menu>summary{max-width:190px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-cta span:first-child{margin-left:0}.header-admin{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid var(--green);border-radius:999px;color:var(--green);font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap}.header-admin:hover,.header-admin:focus-visible{background:#eef5e6}.auth-admin{display:block;text-align:center;text-decoration:none}@media(max-width:680px){.header-admin{padding:8px 10px}.header-admin span:first-child{display:none}}
@media(max-width:680px){.header-right{gap:6px}.header-right .local-pill{display:none}.locale-switch{white-space:nowrap}}
.immersive-hud>*{pointer-events:auto}.hud-actions{display:flex;gap:8px;align-items:flex-start}
.hud-button,.device-menu>summary,.world-settings>summary,.town-tools>summary,.location-drawer>summary,.objectives-drawer>summary,.conversation-tools>summary{list-style:none;border:1px solid #ffffffa6;border-radius:12px;padding:10px 14px;background:#fffef0e8;color:#204b3a;font-size:12px;font-weight:800;box-shadow:0 4px 18px #204b3a1c;cursor:pointer;backdrop-filter:blur(8px)}
.device-menu>summary::-webkit-details-marker,.world-settings>summary::-webkit-details-marker,.town-tools>summary::-webkit-details-marker,.location-drawer>summary::-webkit-details-marker,.objectives-drawer>summary::-webkit-details-marker,.conversation-tools>summary::-webkit-details-marker{display:none}
.device-menu{position:relative}.device-menu>div{position:absolute;right:0;top:45px;width:250px;padding:16px;border-radius:12px;background:#fffef8;box-shadow:0 5px 20px #204b3a33;font-size:12px;line-height:1.5}
.device-menu button,.device-dialog button{border:0;border-radius:7px;background:#164b3c;color:white;font-size:12px;font-weight:700;padding:10px 12px;margin:8px 6px 0 0}
.world-page,.world-page :is(h1,h2,h3,em),.error-banner:has(~ .world-page),.world-page ~ #device-overlay,.world-page ~ #device-overlay :is(h1,h2,h3,em){font-family:"DM Sans",sans-serif}
.world-page .world-layout{position:absolute;inset:0;display:block}
.world-page .town-section{position:absolute;inset:0;padding:0;border:0;border-radius:0;background:transparent}
.world-page #town-canvas{width:100%;height:100%;aspect-ratio:auto;border-radius:0}
.world-page .town-title{display:none}
.world-settings,.town-tools,.location-drawer,.objectives-drawer,.conversation-tools{position:absolute;z-index:10}
.world-settings[open]{z-index:11}
.world-settings{top:64px;left:12px}.town-tools{bottom:12px;left:12px}.location-drawer{bottom:12px;right:12px}
.town-zoom{position:absolute;z-index:10;top:110px;left:12px;display:flex;overflow:hidden;border:1px solid #ffffffa6;border-radius:12px;background:#fffef0ed;box-shadow:0 4px 18px #204b3a1c}
.town-zoom button{min-width:38px;height:38px;border:0;background:transparent;color:#204b3a;font-size:18px;font-weight:800}.town-zoom button+button{border-left:1px solid #d6e3d2}.town-zoom #zoom-level{min-width:52px;font-size:11px}.town-zoom button:disabled{opacity:.35}
.hud-drawer,.location-drawer .location-panel,.objectives-drawer .objectives{max-height:min(65vh,600px);overflow:auto;border:1px solid #ffffffb3;border-radius:12px;background:#fffef8ed;box-shadow:0 8px 30px #204b3a2b;backdrop-filter:blur(8px)}
.hud-drawer{width:min(380px,calc(100vw - 24px));padding:16px}.world-settings .hud-drawer{margin-top:8px}.town-tools .hud-drawer{margin-bottom:8px}
.town-tools[open]{display:flex;flex-direction:column-reverse}
.world-settings .world-heading{margin:0 0 16px}.world-settings .world-heading h1{font-size:25px;margin:6px 0}.world-settings .world-heading p{font-size:12px}
.world-settings .world-toolbar{align-items:flex-start;flex-direction:column}.world-settings .map-filters{display:flex}.world-settings .small-note{text-align:left}
.location-drawer .location-panel{width:min(290px,calc(100vw - 24px));margin-top:8px;padding:18px}.location-drawer .location-icon{width:48px;height:48px;font-size:25px;margin:12px 0}.location-drawer .location-meta{padding:9px 0}.location-drawer .full{margin-top:12px}
.arena-page .arena-grid{position:absolute;inset:0;display:block}
.arena-page .conversation{width:100%;height:100%;min-height:0;border:0;border-radius:0}
.voice-dock{position:absolute;z-index:10;bottom:12px;left:12px;display:flex;align-items:flex-end;gap:8px}
.voice-control{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.voice-button{min-height:44px;padding:10px 16px;border:0;border-radius:12px;background:#164b3c;color:white;font-size:14px;font-weight:800;box-shadow:0 4px 18px #204b3a33}
.voice-button.listening{background:#b94f3e;animation:pulse 1s infinite}.voice-button:disabled{opacity:.65}
#voice-status{max-width:125px;padding:4px 7px;border-radius:7px;background:#fffef0ed;color:#204b3a;font-size:10px;font-weight:700}
.voice-dock .conversation-tools{position:relative;bottom:auto;left:auto}.conversation-tools[open]{display:flex;flex-direction:column-reverse}
.conversation-panel{width:min(480px,calc(100vw - 175px));max-height:50vh;overflow:auto;margin-bottom:8px;border:1px solid #ffffffb3;border-radius:12px;background:#fffef8ed;box-shadow:0 8px 30px #204b3a2b}
.arena-page .conversation-header{flex:none;padding:10px 16px;background:#fffef8e8}
.arena-page .roleplay-stage{min-height:0}.arena-page .composer{flex:none;background:#fffef8;padding:10px 16px}
.arena-page .composer-note{flex:none;background:#fffef8;padding:0 16px 8px}
.arena-page .arena-heading{position:absolute;z-index:9;right:12px;top:64px;margin:0;gap:8px;align-items:start}
.arena-page .arena-heading h1,.arena-page .arena-heading .eyebrow{display:none}
.arena-page .timer{padding:8px 12px;background:#fffef0e8}.arena-page .timer strong{font-size:16px}
.arena-page .objectives-drawer{right:12px;top:120px}.arena-page .stage-dialogue{top:70px}.arena-page .user-dialogue{top:auto}
.objectives-drawer .objectives{width:min(320px,calc(100vw - 24px));margin-top:8px;padding:18px}
.device-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#16372c77;backdrop-filter:blur(4px)}
.device-dialog{max-width:470px;padding:24px;border-radius:16px;background:#fffef8;color:#173b2c;box-shadow:0 12px 40px #102d2344}
.device-dialog h2{font-size:22px;margin-bottom:12px}.device-dialog p{font-size:14px;line-height:1.6;margin:8px 0}.permission-arrow{position:absolute;top:15px;left:22px;color:white;font-size:58px;line-height:1;animation:permission-pulse 1s ease-in-out infinite alternate}
@keyframes permission-pulse{to{transform:translate(-5px,-5px);opacity:.6}}
@media(max-width:680px){.immersive-hud{top:8px;left:8px;right:8px}.hud-button,.device-menu>summary,.world-settings>summary,.town-tools>summary,.location-drawer>summary,.objectives-drawer>summary,.conversation-tools>summary{font-size:11px;padding:9px}.world-settings{top:55px;left:8px}.town-tools{bottom:8px;left:8px}.voice-dock{bottom:8px;left:8px}.location-drawer{bottom:8px;right:8px}.arena-page .arena-heading{top:55px;right:8px}.arena-page .objectives-drawer{top:110px;right:8px}.arena-page .stage-person{width:clamp(90px,30vw,150px);height:clamp(120px,24vh,200px)}.arena-page .stage-dialogue{left:8px;width:min(65%,360px)}.arena-page .user-dialogue{left:auto;right:8px;width:45%}}
@media(max-width:680px){.town-zoom{top:97px;left:8px}}
@media(max-width:680px){.arena-page .npc-dialogue{max-height:18vh;overflow:auto}.arena-page .objectives-drawer{top:calc(78px + 18vh)}.objectives-drawer .objectives{width:45vw;max-height:30vh;padding:12px}.arena-page .user-dialogue{top:calc(78px + 18vh);bottom:auto;left:8px;right:auto;width:45%;max-height:18vh;overflow:auto}}
@media(max-height:500px){.arena-page .stage-person{width:clamp(55px,23vh,95px);height:clamp(70px,30vh,120px)}.arena-page .stage-dialogue{top:60px;left:25%;width:48%;padding:8px;max-height:35%;overflow:auto}.arena-page .user-dialogue{top:auto;bottom:8px;left:auto;right:12px;width:35%}.arena-page .stage-window{height:100px;top:20px}.arena-page .stage-sign{top:20px}}
@media(prefers-reduced-motion:reduce){.permission-arrow{animation:none}}

/* Map HUD and touch controls */
.world-page #town-canvas{touch-action:none}
.world-page .hud-identity{display:flex;align-items:center;gap:8px;pointer-events:auto}
.world-page .hud-actions{pointer-events:auto;align-items:center}
.world-page .hud-button,.world-page .device-menu>summary,.world-page .world-settings>summary,.world-page .town-tools>summary,.world-page .map-notebook>summary,.world-page .location-drawer>summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:9px 12px;font-size:14px;font-weight:700;color:#173b2c}
.world-page button{min-height:44px;min-width:44px;font-size:14px}
.world-page .map-identity-card{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 10px;border:1px solid #ffffffa6;border-radius:12px;background:#fffef0ed;color:#173b2c;font-size:14px;font-weight:700;line-height:1.2;backdrop-filter:blur(8px)}
.map-identity-card small{font-size:14px;font-weight:600}.map-player-avatar{display:block;width:32px;height:36px}.map-player-avatar svg{width:100%;height:100%}
.map-identity-card progress{display:block;width:100%;height:4px;accent-color:#28633a}
.world-page .town-tools,.world-page .map-notebook{position:relative;inset:auto;z-index:auto}
.world-page .town-tools[open]{display:block}
.world-page .town-tools>summary,.world-page .map-notebook>summary{list-style:none;border:1px solid #ffffffa6;border-radius:12px;background:#fffef0ed;box-shadow:0 4px 18px #204b3a1c;cursor:pointer;backdrop-filter:blur(8px)}
.world-page .town-tools .hud-drawer,.world-page .map-notebook .hud-drawer{position:absolute;top:52px;right:0;margin:0;color:#173b2c}
.world-page .town-zoom{position:static;overflow:visible;gap:8px;border:0;background:transparent;box-shadow:none}
.world-page .town-zoom button{height:44px;min-width:44px;border:1px solid #ffffffa6;border-radius:12px;background:#fffef0ed;color:#173b2c;font-size:18px}
.world-page .town-zoom #zoom-level{font-size:14px}
.world-page .town-help,.world-page .town-resident,.world-page .town-answer,.world-page .town-teleport,.world-page .map-destinations,.world-page .location-vocabulary{font-size:14px;line-height:1.5;color:#264b3a}
.world-page .hud-drawer p,.world-page .location-panel p,.world-page .location-meta span,.world-page .location-meta strong,.world-page .inventory-count,.world-page .avatar-edit,.world-page .avatar-edit strong,.world-page .map-filters button{font-size:14px;color:#264b3a}
.world-page .map-filters button[aria-pressed="true"]{background:#204b3a;color:white}
.world-page .town-form button{flex:none}
.world-page .town-teleport button,.world-page .map-destinations button{display:block;width:100%;margin:8px 0 0;padding:10px;text-align:left;border:1px solid #bdcfc0;border-radius:8px;background:#fff;color:#173b2c;font-size:14px}
.map-destinations{margin-top:16px}.map-destinations summary,.location-vocabulary summary{cursor:pointer;font-weight:700}.map-destinations p{margin:8px 0}
.world-page .map-destinations summary,.world-page .town-teleport summary,.world-page .location-vocabulary summary{display:flex;align-items:center;min-height:44px}
.world-page .device-menu button{margin:8px 8px 0 0}
.map-route-notice{position:absolute;z-index:9;left:50%;bottom:16px;transform:translateX(-50%);max-width:45vw;margin:0;padding:10px 14px;border-radius:12px;background:#fffef0ed;color:#173b2c;font-size:14px;box-shadow:0 4px 18px #204b3a1c}.map-route-notice[hidden]{display:none}
.location-vocabulary{margin-top:12px}.location-vocabulary .vocab-list{margin-top:8px}
.touch-joystick{display:none}
/* The location drawer sits left of the fixed assistant button (#guide-root) so neither covers the other. */
.world-page .location-drawer{right:78px}
.touch-actions{position:absolute;z-index:9;left:50%;bottom:76px;transform:translateX(-50%);display:flex;gap:8px}
.touch-actions button{min-height:48px;padding:10px 18px;border:1px solid #fff;border-radius:12px;background:#164b3c;color:#fff;font-size:15px;font-weight:700;box-shadow:0 6px 20px #102d2340;cursor:pointer;white-space:nowrap;max-width:80vw;overflow:hidden;text-overflow:ellipsis}
.touch-actions button[hidden]{display:none}
@media(pointer:fine){#touch-ask{display:none}}
@media(pointer:coarse){
  .world-page .town-zoom{display:none}
  .world-page .town-enter-hint{display:none}
  .touch-joystick{position:absolute;z-index:9;bottom:16px;left:16px;display:grid;place-items:center;width:108px;height:108px;border:2px solid #ffffffb3;border-radius:50%;background:#204b3a55;touch-action:none;user-select:none;opacity:.35}
  .touch-joystick span{width:44px;height:44px;border:2px solid #fff;border-radius:50%;background:#173b2cbf;opacity:0}.touch-joystick.active{background:#204b3a99;opacity:1}.touch-joystick.active span{opacity:1}
  .touch-actions{left:auto;right:12px;bottom:76px;transform:none}
}
@media(max-width:1100px){
  .world-page .immersive-hud{display:block}
  .world-page .hud-identity{width:max-content}
  .world-page .hud-actions{position:absolute;top:52px;right:0;gap:8px}
  .world-page .world-settings{top:112px}
  .world-page .location-drawer>summary{max-width:65vw}
}
@media(max-width:680px){
  .world-page #device-status,.world-page #fullscreen-button{font-size:0}
  .world-page #device-status::before{content:'🎙';font-size:18px}
  .world-page #fullscreen-button::before{content:'⛶';font-size:22px}
  .world-page .map-route-notice{bottom:120px;max-width:75vw}
  .world-page .town-tools .hud-drawer,.world-page .map-notebook .hud-drawer,.world-page .device-menu>div{position:fixed;top:164px;right:8px;max-width:calc(100vw - 16px)}
  /* HUD buttons wrap onto two rows instead of overflowing off the left edge (passport and events stay visible). */
  .world-page .hud-actions{left:0;flex-wrap:wrap;justify-content:flex-end}.world-page .world-settings{top:164px}
}
@media(max-width:680px) and (pointer:fine){.world-page .town-zoom{position:absolute;top:52px;right:0}}

/* Interior dialogue stage */
.arena-page .hud-identity,.arena-page .hud-actions{display:flex;align-items:center;gap:8px}
.arena-page .hud-button,.arena-page .device-menu>summary,.hud-timer{min-height:44px;display:flex;align-items:center;padding:9px 12px;border:1px solid #ffffffa6;border-radius:12px;background:#fffef0ed;color:#173b2c;font-size:13px;font-weight:700;box-shadow:0 4px 18px #204b3a1c}
.hud-timer{gap:7px}.hud-timer span{font-size:10px;letter-spacing:.08em}.hud-timer strong{font-size:16px}
.arena-page .roleplay-stage{position:absolute;inset:0;height:100%;background:#dfebdf}
.arena-page .stage-backdrop{inset:0 0 25%;background:linear-gradient(180deg,#e9efe5,#cbded2)}
.arena-page .interior-food .stage-backdrop{background:linear-gradient(180deg,#f6ead9,#e5cead)}
.arena-page .interior-travel .stage-backdrop{background:linear-gradient(180deg,#e6eef1,#c8dce2)}
.arena-page .interior-hotel .stage-backdrop{background:linear-gradient(180deg,#f3eadc,#dccbb6)}
.arena-page .interior-health .stage-backdrop{background:linear-gradient(180deg,#eaf2ef,#cce2da)}
.arena-page .interior-study .stage-backdrop{background:linear-gradient(180deg,#e9e9df,#d2d3bd)}
.arena-page .interior-nature .stage-backdrop{background:linear-gradient(180deg,#e3efdf,#bad6bb)}
.arena-page .interior-shop .stage-backdrop{background:linear-gradient(180deg,#f0e9dd,#dccdbb)}
.arena-page .stage-backdrop>span{top:72px;left:24px;color:#577466;font-size:11px}
.interior-window{position:absolute;top:22%;left:10%;width:18%;height:43%;border:10px solid #f7f6ec;border-radius:60px 60px 4px 4px;background:linear-gradient(155deg,#b9dbdf,#e8f4e3);box-shadow:0 0 0 2px #a5bba9}
.interior-window:after{content:"";position:absolute;left:50%;height:100%;border-left:6px solid #f7f6ec}
.interior-board{position:absolute;top:22%;left:37%;width:25%;min-height:85px;display:grid;place-content:center;gap:5px;padding:12px;text-align:center;border:6px solid #e7e7d8;border-radius:8px;background:#5b806d;color:#fff;box-shadow:0 6px 15px #32504420}
.interior-board strong{font-size:clamp(12px,1.3vw,18px)}.interior-board small{font-size:12px}
.interior-shelf{position:absolute;top:40%;right:12%;display:flex;justify-content:space-around;align-items:end;width:20%;height:18%;padding:8px;border:7px solid #b3987a;border-bottom-width:12px;border-radius:5px;background:#f9f4e6}
.interior-shelf span{font-size:clamp(20px,3vw,42px)}
.interior-counter{position:absolute;bottom:0;left:35%;width:30%;height:22%;border:9px solid #c7aa86;border-bottom:0;border-radius:8px 8px 0 0;background:#e6d5bd;box-shadow:inset 0 0 0 5px #f4e8d2;display:grid;place-items:center}
.interior-counter span{font-size:clamp(28px,4vw,55px);opacity:.7}
.arena-page .stage-floor{height:25%;background:#c9b9a2;border-color:#bca98f}
.arena-page .stage-people{left:0;right:280px;bottom:26%;justify-content:space-evenly}
.arena-page .stage-person{width:clamp(160px,17vw,265px);height:clamp(210px,35vh,360px)}
.arena-page .stage-person svg{width:100%;height:100%}.arena-page .stage-person .layer-face{transform:translateX(7px)}.arena-page .player-person svg{transform:scaleX(-1)}
.arena-page .stage-person>span{font-size:12px;background:#fffef0ed}
.arena-page .dialogue-dock,.arena-page .dialogue-dock[open]{position:absolute;z-index:11;bottom:calc(12px + var(--keyboard-inset, 0px));left:calc((100% - 280px)/2);width:min(740px,calc(100vw - 304px));transform:translateX(-50%);display:block}
.arena-page .dialogue-dock>summary{display:inline-block;margin-bottom:5px}
.arena-page .conversation-panel{width:100%;max-height:min(50vh,420px);display:flex;flex-direction:column;overflow:hidden;margin:0;padding:16px;border:1px solid #ffffffb3;border-radius:16px;background:#fffffff2;box-shadow:0 8px 30px #204b3a2b;backdrop-filter:blur(12px)}
.dialogue-top{display:flex;gap:12px;align-items:flex-start;min-height:0;overflow:auto}.dialogue-portrait{flex:none;width:52px;height:60px;overflow:hidden;border-radius:12px;background:#dcebdd}.dialogue-portrait svg{width:100%;height:100%;transform:scale(1.8);transform-origin:50% 28%}
.dialogue-copy{flex:1;min-width:0}.dialogue-name{text-transform:uppercase;font-size:14px;font-weight:800;letter-spacing:.04em;color:#245a45}.dialogue-name span{text-transform:none;font-size:12px;font-weight:500;letter-spacing:0;color:#6d8576}
.dialogue-text{margin-top:5px;font-size:16px;line-height:1.45;color:#274737;overflow-wrap:anywhere}
.dialogue-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:210px}
.dialogue-actions button{padding:7px;border:0;border-radius:7px;background:#edf5eb;color:#315d45;font-size:12px;font-weight:700}.dialogue-actions button:disabled{opacity:.5}
.dialogue-last,.transcript-preview{flex:none;max-height:2.8em;overflow:auto;margin-top:9px;font-size:13px;line-height:1.4;color:#536c5d;overflow-wrap:anywhere}.dialogue-last .stage-feedback{display:inline;margin-left:8px;font-size:12px}.transcript-preview{border-left:3px solid #10b981;padding-left:8px}.transcript-preview[hidden]{display:none}
.keyword-hit{border-radius:3px;padding:0 2px;background:#d9f5c2;color:#176044}
.arena-page .composer{align-items:center;gap:8px;padding:8px 0 0;margin-top:10px;background:transparent}
.arena-page .composer input{min-height:48px;padding:0 12px;border:1px solid #d5e4d7;border-radius:10px;background:#fff;font-size:15px;outline-offset:2px}
.arena-page .composer input:focus{outline:2px solid #10b981}
.arena-page .voice-button,.arena-page .send-btn{flex:none;width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:12px;font-size:20px;box-shadow:none}
.arena-page .voice-button{background:#e8f3ed;color:#22583f}.arena-page .voice-button[aria-pressed="false"]{background:#ecece8;color:#6b756d}.arena-page .voice-button.listening{background:#10b981;color:#fff;animation:listen-pulse 1.4s infinite}
.voice-wave{display:none;align-items:center;gap:2px;height:22px}.voice-wave.listening{display:flex}.voice-wave i{display:block;width:3px;height:8px;border-radius:2px;background:#10b981;animation:listen-wave .8s ease-in-out infinite alternate}.voice-wave i:nth-child(2){height:16px;animation-delay:.2s}.voice-wave i:nth-child(3){height:12px;animation-delay:.4s}.voice-wave i:nth-child(4){animation-delay:.1s}
@keyframes listen-pulse{50%{box-shadow:0 0 0 6px #10b98133}}@keyframes listen-wave{to{transform:scaleY(.5)}}
.arena-page .composer-note{padding:7px 0 0;background:transparent;color:#607a6a;font-size:12px}
.arena-page #voice-status{max-width:none;padding:0;background:transparent;color:#216343;font-size:12px}
.arena-page .objectives-drawer{top:72px;right:12px;width:260px}
.arena-page .objectives-drawer>summary{width:100%}
.arena-page .objectives-drawer .objectives{width:100%;max-height:calc(100dvh - 135px);padding:16px;background:#fffffff2;border-radius:16px}
.arena-page .objectives-heading h2{font-size:20px}.reward-badge{display:inline-block;max-width:100%;margin-top:10px;padding:6px 9px;border-radius:20px;background:#fff0c9;color:#72551a;font-size:12px;font-weight:700}
.arena-page .objective-list{margin:12px 0}.arena-page .objective{gap:8px;padding:9px 8px;border:0;border-radius:8px}.arena-page .objective strong{font-size:14px;line-height:1.35}
.arena-page .objective.done{background:#dcfce7;animation:objective-enter .35s ease-out}.arena-page .objective.done .check{background:#15803d;border-color:#15803d;color:white}.arena-page .objective.done strong{color:#15803d;text-decoration:none}
@keyframes objective-enter{from{transform:scale(.97)}to{transform:scale(1)}}
.vocab-heading{margin:12px 0 7px;font-size:10px;font-weight:800;letter-spacing:.07em;color:#65806c}.vocab-chips{display:flex;flex-wrap:wrap;gap:5px}.vocab-chip{padding:5px 7px;border-radius:8px;background:#f0f3ed;color:#5d7463;font-size:11px}.vocab-chip.used{background:#d9f5c2;color:#176044}
.arena-page .history-list>div,.arena-page .objectives details p{font-size:12px;color:#536c5d}
@media(max-width:680px){
  .arena-page .immersive-hud{gap:4px}.arena-page .hud-actions{gap:4px}
  .arena-page .hud-button,.arena-page .device-menu>summary{min-width:40px;padding:8px;font-size:11px}
  .arena-page #device-status,.arena-page #fullscreen-button{font-size:0}.arena-page #device-status:before{content:'🎙';font-size:16px}.arena-page #fullscreen-button:before{content:'⛶';font-size:20px}
  .hud-timer{min-height:40px;padding:6px 8px}.hud-timer span{display:none}.hud-timer strong{font-size:14px}
  .arena-page .stage-backdrop>span{top:60px;left:10px;max-width:47%;font-size:9px}
  .arena-page .interior-board{top:23%;left:29%;width:42%;min-height:55px;padding:6px}.interior-board small{font-size:10px}
  .interior-window{left:4%;width:21%;border-width:5px}.interior-shelf{right:4%;width:22%;border-width:4px;border-bottom-width:8px}.interior-shelf span{font-size:18px}
  .arena-page .stage-people{right:0;bottom:42%}.arena-page .stage-person{width:clamp(100px,32vw,155px);height:clamp(150px,27vh,230px)}
  .arena-page .dialogue-dock,.arena-page .dialogue-dock[open]{left:50%;bottom:calc(8px + var(--keyboard-inset, 0px));width:94%}
  .arena-page .conversation-panel{max-height:42vh;padding:12px}
  .dialogue-top{flex-wrap:wrap;gap:8px}.dialogue-portrait{width:42px;height:48px}.dialogue-copy{flex:1 1 calc(100% - 50px)}.dialogue-actions{flex:1 0 calc(100% - 50px);max-width:none;margin-left:50px;justify-content:flex-start}.dialogue-text{font-size:16px}
  .arena-page .objectives-drawer{top:56px;right:8px;width:min(210px,49vw)}.arena-page .objectives-drawer .objectives{max-height:24vh;padding:10px}.arena-page .objective strong{font-size:13px}
  .arena-page .objectives-heading{display:none}.arena-page .reward-badge{margin-top:0}.arena-page .objective-list{margin:6px 0}.arena-page .objective{padding:5px 2px}
}
@media(max-height:500px){
  .arena-page .stage-people{bottom:38%}.arena-page .stage-person{width:clamp(80px,23vh,130px);height:clamp(110px,35vh,175px)}
  .arena-page .conversation-panel{max-height:48vh}.arena-page .objectives-drawer .objectives{max-height:35vh}
}
@media(prefers-reduced-motion:reduce){.arena-page .voice-button.listening,.voice-wave i,.arena-page .objective.done{animation:none}}

/* Passport and daily quest */
.passport-dialog{width:min(920px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:24px;border:0;border-radius:20px;background:#f8f8ef;color:#173b2c;box-shadow:0 20px 70px #102d2366}
.passport-dialog::backdrop{background:#102d23a8}
.passport-header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:20px}.passport-header h2{margin-top:5px;font-size:25px}.passport-header-actions{display:flex;align-items:start;gap:8px}.passport-header-actions>button{width:44px;height:44px;border:0;border-radius:10px;background:#e6eee2;color:#173b2c;font-size:25px}
.passport-layout{display:grid;grid-template-columns:minmax(240px, .8fr) minmax(0,1.2fr);gap:24px}
.passport-preview{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:24px 18px;border-radius:16px;background:#164b3c;color:#fffdf0}
.passport-preview>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:#d8ed80}.passport-preview>strong{font-size:20px}.passport-preview p,.passport-preview small{font-size:13px}.passport-avatar{width:130px;height:160px}.passport-avatar svg{width:100%;height:100%}
.passport-items{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.passport-items span{padding:5px 7px;border-radius:8px;background:#ffffff20;font-size:10px}.passport-preview img{background:#fff;border-radius:6px}
.passport-actions h3{margin:12px 0 8px;font-size:20px}.passport-actions p{margin:7px 0;color:#526c5c;font-size:14px;line-height:1.5}.passport-actions label{display:block;margin:14px 0 6px;font-size:12px;font-weight:700}.passport-actions button{min-height:44px;padding:9px 12px;border:0;border-radius:9px;background:#164b3c;color:#fff;font-size:13px;font-weight:700}.passport-actions button:disabled{opacity:.5}.passport-buttons{display:flex;flex-wrap:wrap;gap:8px}.passport-link{display:flex;gap:6px}.passport-link input{min-width:0;flex:1;padding:9px;border:1px solid #c9dbca;border-radius:8px;background:white;font-size:12px}
@media(max-width:680px){
  .world-page .passport-trigger{font-size:0}.world-page .passport-trigger:before{content:'🛂';font-size:18px}.world-page .events-trigger-text{display:none}
  .passport-dialog{padding:16px}.passport-layout{grid-template-columns:1fr}.passport-preview{padding:16px}.passport-avatar{width:90px;height:110px}.passport-actions h3{font-size:18px}
}

.auth-page{min-height:75vh;padding:54px 20px 80px;display:grid;place-items:start center}
.auth-card{width:min(100%,520px);padding:36px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 12px 40px #173b2c0c}
.auth-card h1{font-size:38px;margin:12px 0}.auth-card p{color:#667a6d;font-size:14px;line-height:1.6;margin:14px 0}
.auth-progress{display:flex;align-items:center;gap:20px;margin:22px 0;padding:16px;border-radius:12px;background:#edf5e6;color:var(--green);font-size:13px;line-height:1.7}
.auth-avatar{width:70px;height:86px;flex-shrink:0}.auth-avatar svg{width:100%;height:100%}
.auth-card form{display:grid;gap:15px;margin-top:20px}.auth-card label{display:grid;gap:7px;font-size:13px;font-weight:700}
.auth-card input,.auth-card select{width:100%;padding:12px;border:1px solid #cdd9cd;border-radius:8px;background:white;font:inherit;color:var(--ink)}
.auth-primary,.auth-secondary{display:block;width:100%;padding:13px 16px;border-radius:8px;font:inherit;font-weight:700;text-align:center;cursor:pointer}
.auth-primary{border:1px solid var(--green);background:var(--green);color:white}.auth-secondary{margin-top:10px;border:1px solid #b9cbb4;background:white;color:var(--green)}
.auth-link{text-decoration:none}.auth-note{font-size:12px!important}.auth-back{margin-top:22px;border:0;background:none;color:#577d50;font-weight:700}
@media(max-width:680px){.auth-page{padding:24px 12px 50px}.auth-card{padding:24px}.auth-card h1{font-size:30px}}

.vault-page{max-width:1450px;margin:auto;padding:30px 36px 80px}.vault-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:0 0 30px}.vault-heading .auth-back{display:block;margin:0 0 25px;padding:0}.vault-heading h1{font-size:clamp(34px,4vw,52px);margin:10px 0}.vault-heading h1 em{color:#648b54}.vault-heading p,.vault-altar>p{color:#718379;font-size:14px;line-height:1.6}.vault-heading>strong{white-space:nowrap;color:#648b54;font-size:14px}
.vault-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:22px;align-items:start}.vault-shelf,.vault-altar{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}.vault-title{display:flex;justify-content:space-between;align-items:end;gap:12px}.vault-title h2,.vault-altar h2{font-size:25px;margin:8px 0}.vault-title>span{font-size:11px;color:#7a8a7d}
.vault-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.vault-filters button{border:1px solid #d5e0d1;background:white;color:#55715a;border-radius:20px;padding:8px 14px;font-weight:700;font-size:12px}.vault-filters button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
.vault-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;max-height:690px;overflow:auto;padding:4px}.vault-item{position:relative;min-height:145px;border:1px solid #e2e8de;border-radius:12px;background:#f6f8f2;padding:12px 8px;color:#365847;text-align:center}.item-count{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#1f4d3a;color:#fff;font-size:11px;font-weight:700;line-height:1.5;vertical-align:middle}.vault-item .item-count{position:absolute;top:6px;right:6px;margin:0}.vault-item[aria-pressed=true]{outline:3px solid #729b5b}.vault-icon{display:block;font-size:38px;line-height:1.2;margin-bottom:8px}.vault-item strong,.vault-item small{display:block}.vault-item strong{font-size:12px;line-height:1.25}.vault-item small{font-size:10px;line-height:1.35;margin-top:6px;color:#75867a}.vault-item.unlit .vault-icon{opacity:.25;filter:grayscale(100%)}.vault-item.lit{background:#f6faee}.vault-item.tier-1{box-shadow:inset 0 0 0 2px #b7784a}.vault-item.tier-2{box-shadow:inset 0 0 0 2px #a8b7bc}.vault-item.tier-3{box-shadow:inset 0 0 0 2px #d5ac3c,0 0 12px #e6ca6655}
.vault-detail{display:flex;gap:16px;margin-top:18px;padding:18px;background:#f1f6eb;border-radius:12px;min-height:80px}.vault-detail-icon{font-size:36px}.vault-detail h3{font-size:17px}.vault-detail p{font-size:13px;color:#607666;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}
.vault-altar>p{margin:10px 0 18px}.relic-card{border:1px solid #e1e9dd;border-radius:12px;padding:16px;margin:12px 0;background:#fafbf7}.relic-card.active{border-color:#9abc78;box-shadow:0 0 14px #9dc77d40}.relic-card h3{font-size:17px}.relic-card p{font-size:12px;color:#677b6b;line-height:1.5;margin:10px 0}.relic-card small{display:block;color:#6b865e;margin-bottom:8px}.relic-inputs{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:12px 0}.relic-inputs span{font-size:11px;padding:6px;border-radius:6px;background:#e8ebe6;color:#818e83}.relic-inputs span.owned{background:#e2efd9;color:#315b3b}.relic-inputs b{color:#b4c1b2}.relic-card button,.free-form button{border:0;border-radius:7px;background:var(--green);color:white;padding:10px 14px;font-weight:700}.relic-card button:disabled{background:#e3e9e1;color:#92a194}.free-form{display:grid;gap:10px;margin-top:22px}.free-form label{display:grid;gap:8px;font-size:13px;font-weight:700}.free-form select{max-width:100%;padding:10px;border:1px solid #cdd9cd;border-radius:8px;background:white;font:inherit}.relic-keyword{background:#d7ee9c!important;box-shadow:0 0 0 3px #a7d278,0 0 16px #a7d278}.relic-guidance{color:#416c36;font-size:12px;margin:6px 0}.reward-badge[hidden]{display:none}
@media(max-width:800px){.vault-page{padding:22px 12px 55px}.vault-heading{align-items:start;flex-direction:column}.vault-layout{grid-template-columns:1fr}.vault-shelf,.vault-altar{padding:16px}.vault-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));max-height:480px}.vault-title{align-items:start;flex-direction:column}}
/* Stage 10.1 seasonal event hub */
.events-trigger{display:inline-flex;align-items:center;gap:6px}.events-dot{width:9px;height:9px;border-radius:50%;background:#e2553f;box-shadow:0 0 0 2px #fff;flex:none}
.hub-page{max-width:1450px;margin:auto;padding:30px 36px 80px}.hub-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:0 0 24px}.hub-heading .auth-back{display:block;margin:0 0 25px;padding:0}.hub-heading h1{font-size:clamp(32px,4vw,50px);margin:10px 0}.hub-heading p{color:#718379;font-size:14px;line-height:1.6}.hub-stats{display:grid;gap:6px;text-align:right;font-size:13px;color:#4f6a55}.hub-stats strong{font-size:16px;color:var(--green)}
.hub-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;align-items:start}.hub-barter,.hub-events,.hub-run,.hub-collection{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}.hub-barter h2,.hub-events h2,.hub-run h2,.hub-collection h2{font-size:23px;margin:0 0 10px}.hub-barter>.small-note{text-align:left}
.hub-ticket-card,.hub-event-card{border:1px solid #e1e9dd;border-radius:12px;padding:16px;margin:12px 0;background:#fafbf7}.hub-ticket-card h3,.hub-event-card h3{font-size:17px;margin-bottom:8px}.hub-event-card h3 small{font-size:12px;color:#75867a;font-weight:600;letter-spacing:0}.hub-event-card p{font-size:13px;color:#4f6656;line-height:1.55;margin:6px 0}.hub-recipe{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;margin:8px 0}.hub-recipe b{color:#9db08f}.hub-recipe em{font-family:inherit;font-style:normal;color:#8a6b3c;font-weight:700}.hub-ticket-card .small-note,.hub-event-card small{text-align:left;display:block;margin-top:8px}.hub-ticket-card .btn,.hub-event-card .btn{padding:12px 16px;margin-top:10px;gap:12px}.hub-ticket-card .btn:not(.primary){background:#e2efd9;color:#315b3b}.hub-ticket-card .btn:disabled.primary,.hub-event-card .btn:disabled{background:#e3e9e1;color:#92a194}.hub-upcoming{font-size:13px;color:#6b7d70;margin:6px 0}
.hub-run{margin-bottom:22px;border-color:#b8d39a}.hub-run-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.hub-progress{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#3f6a45}.hub-progress progress{width:110px}.hub-timer{font-size:13px;color:#7b5a2e}.hub-messages{max-height:340px;overflow:auto;margin:14px 0;padding:12px;background:#f6f8f2;border-radius:12px;display:grid;gap:10px}.hub-message{font-size:14px;line-height:1.5}.hub-message.user{text-align:right}.hub-message p{font-size:12px;color:#6a7d6e;margin-top:3px}.hub-turn-form{display:grid;gap:8px}.hub-turn-form textarea{width:100%;padding:12px;border:1px solid #cdd9cd;border-radius:10px;font:inherit;resize:vertical}.hub-label{font-size:12px;font-weight:700;color:#55715a}.hub-turn-actions{display:flex;flex-wrap:wrap;gap:10px}.hub-turn-actions .btn{padding:12px 18px;gap:12px}.hub-turn-form small{font-size:11px;color:#7a8a7d}.hub-result p{margin:6px 0;font-size:14px}.hub-collection{margin-top:22px}.hub-collection ul{padding-left:18px;font-size:13px;color:#4f6656;line-height:1.7}.hub-collection h3{font-size:16px;margin-top:12px}
@media(max-width:800px){.hub-page{padding:22px 12px 55px}.hub-heading{align-items:start;flex-direction:column}.hub-stats{text-align:left}.hub-layout{grid-template-columns:1fr}.hub-barter,.hub-events,.hub-run,.hub-collection{padding:16px}}
@keyframes item-illuminate{from{filter:brightness(.7);transform:scale(.94)}to{filter:brightness(1);transform:scale(1)}}
@media(prefers-reduced-motion:no-preference){.vault-item.lit .vault-icon{animation:item-illuminate .5s ease-out}}
/* Vietnamese UI: DM Sans has no Vietnamese glyphs and Manrope has no true italic, so swap to Be Vietnam Pro; English content (lang="en") keeps the original fonts. */
:lang(vi):is(body,h1,h2,h3,h1 em,h2 em,.brand,.boarding>strong,.footer-brand,.timer strong,.studio-caption strong,.palette legend,.world-page,.world-page :is(h1,h2,h3,em),#device-overlay,#device-overlay :is(h1,h2,h3,em)){font-family:"Be Vietnam Pro",sans-serif}
:lang(vi):is(h1,h2,h3){letter-spacing:-.035em}:lang(vi):is(h1 em,h2 em){letter-spacing:-.04em}
.startup-error p{margin:0}.startup-error .btn{margin-top:18px}
.turn-wait{margin:6px 0 0;font-size:12px;color:#5e7b60}.turn-retry{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;padding:8px 10px;border:1px solid #edc8b7;border-radius:8px;background:#fff7f2;font-size:12px}.turn-retry button{border:0;border-radius:6px;padding:6px 10px;background:var(--green);color:#fff;font-weight:700}
.hud-timer.warning{background:#fff1e8;border-color:#eea276}.hud-timer.warning strong{color:#b4532a}.time-warning{margin:6px 0 0;padding:6px 10px;border-radius:8px;background:#fff1e8;color:#8a3f1f;font-size:12px;font-weight:700}.note-toggle{border:0;background:none;padding:0;color:var(--green);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.not-found .result-actions{justify-content:center}
.confirm-overlay{z-index:200}.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}.confirm-actions button{margin:0}.device-dialog .confirm-cancel{background:#eef0e8;color:#173b2c}.device-dialog .confirm-ok{background:#9b3b25}
#confirm-root,#confirm-root :is(h2,p,button){font-family:"DM Sans",sans-serif}:lang(vi) #confirm-root,:lang(vi) #confirm-root :is(h2,p,button){font-family:"Be Vietnam Pro",sans-serif}
.field-error,.auth-card p.field-error{color:#9b3b25;font-size:13px;font-weight:600;line-height:1.4;margin:6px 0 0}[aria-invalid="true"]{border-color:#9b3b25!important;outline-color:#9b3b25}
.first-quest-card{position:fixed;z-index:30;top:118px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 32px));display:grid;gap:8px;padding:14px 16px;border-radius:14px;background:#fffef8;color:#173b2c;box-shadow:0 8px 24px #102d2333}.first-quest-card strong{font-size:15px}.first-quest-card>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.first-quest-card .eyebrow{font-size:11px;letter-spacing:.08em}
.prep-mic{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 12px}.prep-mic p{flex:1 1 220px;margin:0;font-size:13px;color:#456152}.prep-mic button{margin:0}
.signin-dialog .signin-field{display:grid;gap:6px;margin:10px 0 0;font-size:13px;font-weight:600}.signin-dialog input{padding:9px 10px;border:1px solid #c9d2c4;border-radius:7px;font:inherit}

.header-cta{background:var(--green);border-color:var(--green);color:#fff}.header-cta:hover{background:#23664e}
.have-account{margin-top:14px;font-size:12px;color:#6b7972}.have-account .text-link{padding:0;font-size:12px;text-decoration:underline;color:var(--green)}
/* Stage 2.5: interior dialogue stage */
.mission-pill,.sheet-close{display:none}
.arena-page .objectives{position:relative}
.arena-page .objectives-heading{flex-wrap:wrap;align-items:center;gap:6px 8px}
.arena-page .objectives-heading .reward-badge{flex:none;max-width:100%;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arena-page .hud-identity>.hud-button{font-size:14px}
.arena-page .hud-actions{padding:4px;gap:2px;border:1px solid #ffffffb3;border-radius:14px;background:#fffef0ed;box-shadow:0 4px 18px #204b3a1c;backdrop-filter:blur(8px)}
.arena-page .hud-actions>.hud-button,.arena-page .hud-actions>.hud-timer,.arena-page .hud-actions .device-menu>summary,.arena-page .hud-actions>.locale-switch{min-height:40px;border-color:transparent;background:transparent;box-shadow:none;backdrop-filter:none}
.arena-page .hud-actions>*+*{border-left:1px solid #204b3a1a !important;border-radius:0 !important}
.arena-page .dialogue-name{letter-spacing:.05em}
.arena-page .conversation-panel{background:rgba(255,255,255,.95);box-shadow:0 8px 32px rgba(0,0,0,.12)}
@media(min-width:681px){.arena-page .voice-button{width:40px;height:40px;min-height:40px;border-radius:10px;font-size:18px}}
@media(max-width:680px){
  .arena-page .objectives-drawer{width:auto}
  .arena-page .objectives-drawer>summary{width:auto;border-radius:999px}
  .mission-full{display:none}.mission-pill{display:inline}
  .arena-page .objectives-drawer[open] .objectives{position:fixed;z-index:40;left:0;right:0;bottom:0;width:100%;max-height:70dvh;margin:0;padding:20px 16px calc(16px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;box-shadow:0 -8px 32px rgba(0,0,0,.18);animation:sheet-up .25s ease-out}
  .arena-page .objectives-drawer[open]{z-index:45}
  .arena-page .objectives-drawer[open] .objectives{box-shadow:0 -8px 32px rgba(0,0,0,.18),0 0 0 100vmax rgba(23,42,39,.28)}
  .arena-page .objectives-drawer[open] .objectives-heading{display:flex;padding-right:48px}
  .sheet-close{display:block;position:absolute;top:8px;right:10px;width:44px;height:44px;border:0;border-radius:50%;background:#edf5eb;color:#22583f;font-size:22px;line-height:1}
  body.arena-active #guide-root{top:60px;left:8px;right:auto;bottom:auto}
  body.arena-active .guide-toggle{width:44px;height:44px;font-size:20px}
  body.arena-active .context-guide-panel{top:52px;bottom:auto;left:0;right:auto}
  .arena-page .stage-backdrop>span{left:60px}
}
@keyframes sheet-up{from{transform:translateY(100%)}to{transform:none}}
@media(prefers-reduced-motion:reduce){.arena-page .objectives-drawer[open] .objectives{animation:none}}
/* Stage 2.6: modular avatar studio and speaking mouth */
.studio-row{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center;margin:8px 0}
.studio-row-label{font-size:11px;font-weight:700;color:#6f8573}
.studio-row .swatches{margin:0;flex-wrap:wrap;gap:8px}.studio-row .swatch{width:32px;height:32px}
.option-chips{display:flex;flex-wrap:wrap;gap:6px}
.option-chip{border:1px solid #d6dfd2;background:#f7f9f5;color:#344a3b;border-radius:999px;padding:6px 11px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.3;cursor:pointer}
.option-chip.selected{background:#355f48;border-color:#355f48;color:#fff}
.option-chip:focus-visible{outline:2px solid #355f48;outline-offset:2px}
.studio-note{margin-top:14px;color:#6b8c5a;font-size:11px}
@keyframes mouth-talk{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.35)}}
.speaking .layer-mouth{transform-box:fill-box;transform-origin:center;animation:mouth-talk .28s ease-in-out infinite}
@media(max-width:560px){.studio-row,.studio-page .studio-row{grid-template-columns:78px 1fr;gap:8px}.studio-row .swatch{width:30px;height:30px}.studio-row .swatches{gap:5px}}
@media(prefers-reduced-motion:reduce){.speaking .layer-mouth{animation:none}}
/* Avatar studio fits one screen: layer tabs, viewport-height layout */
.studio-page{padding-top:16px;padding-bottom:20px;min-height:0}
.studio-page .page-heading{margin:8px 0 14px;display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.studio-page .page-heading .eyebrow{flex-basis:100%}
.studio-page .page-heading h1{font-size:clamp(26px,2.6vw,36px);margin:4px 0 0}
.studio-page .page-heading>p{font-size:12px;line-height:1.5}
.studio-page .studio-layout{gap:16px;height:clamp(360px,calc(100vh - 235px),720px)}
.studio-page .studio-preview{min-height:0;padding:16px 20px}
.studio-page .studio-orbit{width:min(300px,52vh);height:min(300px,52vh);top:50%;transform:translateY(-58%)}
.studio-page .studio-character{width:auto;height:min(305px,calc(100vh - 430px));min-height:180px;aspect-ratio:235/305;margin:auto auto 4px}
.studio-page .studio-character svg{width:100%;height:100%}
.studio-page .studio-caption strong{font-size:15px;margin-top:4px}
.studio-page .random-button{margin-top:10px}
.studio-page .studio-controls{padding:20px 26px;display:flex;flex-direction:column;min-height:0;overflow:auto}
.studio-page .studio-controls h2{font-size:22px;margin:4px 0 4px}
.studio-page .studio-controls>p{font-size:12px;line-height:1.5;max-width:none}
.studio-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:14px 0 4px;border-bottom:1px solid #edf0e9}
.studio-tab{border:0;border-bottom:2px solid transparent;background:none;padding:8px 10px;font-size:12px;font-weight:700;color:#7b8f7f;margin-bottom:-1px}
.studio-tab span:first-child{color:#a7ba9b;font-size:10px;margin-right:3px}
.studio-tab.selected{color:var(--green);border-bottom-color:var(--green)}
.studio-tab:focus-visible{outline:2px solid #355f48;outline-offset:2px}
.studio-page .studio-layer{border:0;padding:10px 0;margin:0;flex:1 1 auto}
.studio-page .studio-layer[hidden]{display:none}
.studio-page .studio-row small{grid-column:2;margin-top:-4px}
.studio-page .hat-note{margin:4px 0 0}
.studio-page .studio-controls .full{margin-top:auto}
.studio-page .small-note{margin-top:6px}
.studio-page .studio-controls .btn.full{padding:13px 20px}
.studio-page .studio-row{margin:5px 0}
.studio-page .studio-controls .label{display:none}
@media(max-width:900px){.studio-page .studio-layout{grid-template-columns:1fr;height:auto;gap:10px}.studio-page .studio-preview{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;align-items:center;gap:6px 14px;padding:10px 14px}.studio-page .studio-orbit,.studio-page .studio-preview-label{display:none}.studio-page .studio-character{grid-row:1/3;height:130px;min-height:0;margin:0}.studio-page .studio-caption{text-align:left;align-self:end}.studio-page .random-button{margin:0;justify-self:start}.studio-page .studio-controls{overflow:visible;padding:14px 16px}.studio-page .page-heading>p,.studio-page .studio-controls>p,.studio-page .studio-controls h2{display:none}.studio-page .studio-tabs{margin-top:0}.studio-tab{padding:7px 8px}}
@media(max-height:620px) and (min-width:901px){.studio-page .page-heading>p,.studio-page .studio-controls>p,.studio-page .studio-preview-label{display:none}}
/* Quest prep fits one screen: one-line heading, compact panels, two-column pocket guide on wide screens */
.prep-page{padding-top:14px;padding-bottom:24px;min-height:0}
.prep-page .page-heading{margin:8px 0 14px;display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.prep-page .page-heading{align-items:center}.prep-page .page-heading .eyebrow{order:-1}
.prep-page .page-heading h1{font-size:clamp(26px,2.6vw,36px);margin:4px 0 0}
.prep-page .page-heading>p{font-size:12px;line-height:1.5}
.prep-page .prep-grid{gap:16px}
.prep-page .mission-panel{min-height:0;padding:20px 24px}
.prep-page .prep-characters{height:min(225px,30vh);margin:4px auto 0}
.prep-page .prep-characters>div{height:100%;width:auto;aspect-ratio:155/205}
.prep-page .prep-characters svg{width:100%;height:100%}
.prep-page .mission-panel h2{font-size:24px;margin:4px 0 8px}
.prep-page .mission-details{gap:10px;padding-top:14px;margin-top:14px}
.prep-page .guide-panel{padding:22px 28px}
.prep-page .guide-heading h2{font-size:23px;margin-top:4px}
.prep-page .guide-intro{margin:8px 0 6px}
.prep-page .guide-title{margin:12px 0 6px}
.prep-page .vocab-list div{padding:8px 0}
.prep-page .phrases{padding:10px 14px}.prep-page .phrases p{line-height:1.8}
.prep-page .prep-mic{margin:12px 0 4px}.prep-page .prep-mic p{font-size:12px}
.prep-page .full{margin-top:10px}.prep-page .small-note{margin-top:6px}
@media(min-width:1100px){.prep-page .guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px}.prep-page .guide-intro{display:none}}
@media(max-height:760px) and (min-width:1100px){.prep-page .page-heading>p{display:none}.prep-page .prep-characters{height:min(190px,26vh)}}
@media(max-width:680px){.prep-page .page-heading>p{display:none}.prep-page .prep-grid{grid-template-columns:minmax(0,1fr)}.prep-page .prep-characters{height:170px}}
/* Inventory panel on the quest result and account pages */
.inventory-panel{background:white;border:1px solid var(--line);border-radius:8px;margin:24px auto 0;padding:18px 20px;max-width:540px;text-align:left}
.auth-card .inventory-panel{margin:18px 0}
.inventory-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.inventory-panel-head h2{font-size:16px;margin:0;display:flex;align-items:center;gap:8px}
.inventory-panel-count{font-size:11px;font-weight:700;background:#edf5e6;color:var(--green);border-radius:999px;padding:2px 9px}
.inventory-panel .text-link{font-size:12px}
.inventory-items{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;max-height:168px;overflow-y:auto}
.inventory-items li{display:flex;align-items:center;gap:6px;border:1px solid #e3e9dc;background:#f7faf3;border-radius:999px;padding:4px 10px 4px 6px;font-size:12px;color:#405a46}
.inventory-items li.fresh{border-color:#9cba76;background:#eaf4dc;font-weight:600}
.inventory-items li b{font-size:9px;letter-spacing:.08em;color:white;background:#7fa35c;border-radius:999px;padding:1px 6px}
.inventory-icon{font-size:14px}
.inventory-empty{font-size:13px;color:#7c8a7f;margin:0}

.coach-hint{margin:6px 0 0;padding:6px 10px;border-left:3px solid #9cba76;background:#f3f7ec;border-radius:0 6px 6px 0;color:#365847;font-size:13px;line-height:1.4}.coach-hint q{font-weight:700;color:#1f4d3a}
.finish-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;padding:8px 12px;border:1px solid #9cba76;background:#f3f7ec;border-radius:8px;color:#365847;font-size:14px;line-height:1.4}.finish-bar span{flex:1 1 220px}.finish-bar .btn{white-space:nowrap}
.level-card{margin:18px auto;max-width:520px;padding:18px 20px;border:2px solid #1f4d3a;border-radius:12px;background:#fffdf6;text-align:center}.level-card>span{display:block;font-size:12px;letter-spacing:.08em;font-weight:700;color:#5b6b60}.level-card.muted{border-style:dashed;border-color:#9aa59d}.level-card.muted p{color:#4d5a52}
.level-badge{display:inline-block;margin:10px 0 2px;min-width:84px;padding:6px 14px;border-radius:10px;background:#1f4d3a;color:#fffdf6;font-size:40px;font-weight:800;line-height:1.1}.level-name{margin:2px 0 8px;font-weight:700;color:#1f4d3a}.level-feedback{margin:8px 0;color:#2c3a32}.level-coins{margin:8px 0;font-weight:700;color:#8a5a00}
.level-scale{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:10px 0 4px;font-size:12px}.level-scale span{padding:2px 8px;border:1px solid #c9d2cb;border-radius:999px;color:#5b6b60}.level-scale span.current{border-color:#1f4d3a;background:#1f4d3a;color:#fffdf6;font-weight:700}
.shop-card,.receipt-card{margin:10px 0;padding:10px 12px;border:1px solid #d8c9a3;border-radius:10px;background:#fffaf0;font-size:13px;color:#3d3a30}.shop-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.shop-head h3{margin:0;font-size:14px}.shop-balance{font-weight:700;color:#8a5a00;white-space:nowrap}
.shop-status{margin:6px 0;color:#365847}.shop-starter{margin:6px 0;color:#8a5a00}.shop-cart,.shop-menu ul,.receipt-card ul{list-style:none;margin:6px 0;padding:0}.shop-cart li,.shop-menu li,.receipt-card li{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px dashed #e6dcc2}
.shop-total,.receipt-total{margin:6px 0 0;font-weight:700;text-align:right}.shop-error{margin:6px 0 0;color:#a3341f;font-weight:600}.shop-menu summary{cursor:pointer;font-weight:600;margin-top:6px}
.receipt-card{max-width:520px;margin:18px auto}.receipt-card>span{display:block;text-align:center;font-size:12px;letter-spacing:.08em;font-weight:700;color:#5b6b60}
/* Stage 4.1: English score card on the result page and the /progress page. */
.level-score{display:flex;justify-content:center;align-items:baseline;gap:12px;margin-top:10px}.level-score strong{font-size:48px;line-height:1;color:#1f4d3a}.level-score small{font-size:16px;color:#5b6b60}.level-score .level-badge{font-size:26px;margin:0;min-width:0}
.level-skills{list-style:none;margin:12px auto;padding:0;max-width:420px;text-align:left;font-size:13px}.level-skills li{display:grid;grid-template-columns:150px 1fr 64px;align-items:center;gap:10px;padding:3px 0}.level-skills b{text-align:right;color:#1f4d3a;white-space:nowrap}
.skill-bar{position:relative;height:9px;border-radius:999px;background:#e7ebe5;overflow:hidden}.skill-bar i,.skill-bar em{position:absolute;left:0;top:0;bottom:0;border-radius:999px}.skill-bar i{background:#4f8a5e}.skill-bar em{background:#c7d3c5;height:100%}.skill-bar em+i{top:3px;bottom:3px}
.level-card .text-link{margin-top:6px}
.progress-page{padding-top:30px;padding-bottom:70px}.progress-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:22px}.progress-heading h1{font-size:clamp(34px,4vw,50px)}.progress-heading h1 em{color:#94b254}.progress-heading p{color:#5b6b60;margin-top:8px;max-width:560px}
.progress-ranges{display:flex;gap:6px;flex-wrap:wrap}.progress-ranges button{border:1px solid var(--line);background:white;border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;color:#33453a;cursor:pointer}.progress-ranges button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:white}
.progress-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}.progress-tile{background:white;border:1px solid var(--line);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}.progress-tile>span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#7a8a7e;font-weight:700}.progress-tile strong{font-size:30px;color:#1f4d3a;line-height:1}.progress-tile strong small{font-size:14px;color:#7a8a7e}.progress-tile>small{color:#5b6b60;font-size:12px}.level-badge.small{font-size:15px;padding:2px 8px;margin:0;min-width:0;align-self:flex-start}
.progress-panel{background:white;border:1px solid var(--line);border-radius:10px;padding:18px 20px;margin-bottom:16px}.progress-panel h2{font-size:18px;margin-bottom:8px}.progress-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.progress-columns .progress-panel{margin-bottom:16px}.progress-skills{max-width:none;margin:10px 0}.progress-skills li{grid-template-columns:170px 1fr 86px}.progress-skills small{font-size:11px;color:#7a8a7e}.progress-skills small.up{color:#2f7d47}.progress-skills small.down{color:#b4543b}
.progress-chart{margin:0}.progress-chart svg{width:100%;height:auto;display:block}.progress-chart .band-0{fill:#f4f7f1}.progress-chart .band-1{fill:#fbfcf9}.progress-chart .band-label{font-size:11px;font-weight:700;fill:#7a8a7e}.progress-chart .tick{font-size:10px;fill:#8d9a90}.progress-chart .score-line{fill:none;stroke:#4f8a5e;stroke-width:2.5;stroke-linejoin:round}.progress-chart .score-dot{fill:#1f4d3a;stroke:white;stroke-width:1.5}
.progress-report ul{margin:6px 0 10px;padding-left:18px;line-height:1.6;color:#2c3a32}.progress-table{width:100%;border-collapse:collapse;font-size:13px}.progress-table th{text-align:left;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#7a8a7e;border-bottom:1px solid var(--line);padding:8px 6px}.progress-table td{border-bottom:1px solid #f0f2ec;padding:9px 6px}
.progress-empty,.progress-loading,.progress-error{background:white;border:1px dashed #b9c4bb;border-radius:10px;padding:30px;text-align:center;color:#4d5a52}.progress-empty .btn{margin-top:14px}
@media(max-width:900px){.progress-tiles{grid-template-columns:repeat(2,1fr)}.progress-columns{grid-template-columns:1fr}}
@media(max-width:560px){.level-skills li,.progress-skills li{grid-template-columns:110px 1fr 70px;font-size:12px}.progress-table th:nth-child(5),.progress-table td:nth-child(5){display:none}.progress-panel{padding:14px}}
.progress-heading .auth-back{display:block;margin-bottom:10px}.progress-heading .eyebrow{display:block;margin-top:0}
@media(max-width:560px){.progress-chart{overflow-x:auto}.progress-chart svg{min-width:620px}}
.progress-panel .small-note{text-align:left}
