@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

.builtin-guide-panel{margin-top:11px}.builtin-guide-panel #practiceGuideStatus{margin:7px 0 0;color:#7b8b6d;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.builtin-guide-panel #practiceGuideStatus:empty{display:none}

:root{--font:'Outfit','Noto Sans KR','Malgun Gothic',sans-serif;--ink:#254437;--cream:#fff7da;--gold:#e5c77c;--game-dialog-width:720px;--game-dialog-background:radial-gradient(ellipse at 50% 0,#3c6853 0,transparent 62%),linear-gradient(155deg,#234f40,#103b32);--game-dialog-shadow:0 25px 100px #001f24a6,inset 0 0 0 5px #173d2c,inset 0 0 0 6px #bfa57066;--dock-height:calc(100px + env(safe-area-inset-bottom,0px))}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:#173b2b;color:var(--ink);font:14px var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ffe5a0;outline-offset:3px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}svg use{pointer-events:none}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.game-shell{--realm-x:0%;--realm-y:0%;--focus-width:720px;--focus-left:max(20px,env(safe-area-inset-left,0px));--focus-right:max(20px,env(safe-area-inset-right,0px));position:relative;display:grid;grid-template-rows:minmax(0,1fr) var(--dock-height);width:100vw;height:100dvh;overflow:hidden;background:#143b2d}
.game-shell:fullscreen{width:100vw;height:100dvh}.game-shell[data-biome="1"]{--realm-x:100%}.game-shell[data-biome="2"]{--realm-y:100%}.game-shell[data-biome="3"]{--realm-x:100%;--realm-y:100%}
.battle-viewport{position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate;background:#487759 url('assets/realms.png') var(--realm-x) var(--realm-y)/200% 200%}
.game-shell:has(.game-overlay[data-mode="camp"]:not([hidden])) .battle-viewport{z-index:20}
.battle-viewport:after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;box-shadow:inset 0 0 60px #14382d40;background:linear-gradient(#102c3226,transparent 20%,transparent 86%,#143d3026)}
.battle-viewport canvas{position:relative;z-index:1;display:block;width:100%;height:100%}
.battle-topbar{position:absolute;z-index:6;top:max(14px,env(safe-area-inset-top,0px));left:max(20px,env(safe-area-inset-left,0px));right:max(20px,env(safe-area-inset-right,0px));display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:start;pointer-events:none;color:#fff8df}
.hero-hud{display:flex;align-items:center;gap:11px;min-width:0;filter:drop-shadow(0 2px 3px #12352d55)}
.hero-portrait{position:relative;width:50px;height:52px;border:2px solid #e1c477;border-radius:15px;background:#264a3b;box-shadow:0 0 0 3px #16372ed9;flex-shrink:0}
.portrait-art{position:absolute;inset:0;overflow:hidden;border-radius:12px}.hero-portrait img{position:absolute;width:1800%;height:900%;max-width:none;left:-105%;top:-85%;pointer-events:none}
.hero-level{position:absolute;right:-8px;bottom:-5px;z-index:1;padding:3px 6px;border:1px solid #c6b071;border-radius:6px;background:#173c31;color:#e2d9a4;font-size:9px;font-weight:600;line-height:1;white-space:nowrap}.hero-level b{font-size:12px;margin-left:2px;color:#fff0b8}
.hero-vitals{width:151px;min-width:0}.vital-track{position:relative;overflow:hidden;height:17px;border:2px solid #263c2f;border-radius:8px;background:#65382f;box-shadow:0 1px 0 #c8b96955}
.vital-fill{height:100%;width:100%;border-radius:5px;background:linear-gradient(#fa856b,#d64a43);box-shadow:inset 0 1px 0 #ffb69b;transition:width .15s}
.vital-track>span{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;line-height:1;color:#fff4df;text-shadow:0 1px 2px #74352d}.vital-track b{font-weight:600;font-variant-numeric:tabular-nums}
.stage-hud{width:174px;padding:9px 12px 8px;border:1px solid #b9c27d99;border-radius:10px;background:#173f33de;box-shadow:0 3px 10px #0c342c33,inset 0 1px 0 #e5ecc323;overflow:hidden}
.stage-hud>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:18px}.stage-hud>div>span{font-size:9px;letter-spacing:1.4px;color:#d4ddb4;white-space:nowrap}.stage-hud>div>span b{font-size:17px;letter-spacing:.7px;color:#ffebaa;font-weight:600;margin-left:3px}
.stage-hud strong{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.stage-hud strong svg{width:13px;height:13px;color:#a8c29c}.stage-hud small{font-size:10px;color:#b5c7a6;font-weight:400;white-space:nowrap}
.stage-progress{height:3px;margin-top:7px;border-radius:3px;background:#0c2c25;overflow:hidden}.stage-progress>div{height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#87d8a5,#ebd88d);transition:width .2s}
.battle-utilities{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;padding-top:4px}
.coin-hud{display:flex;align-items:center;gap:6px;min-width:50px;max-width:120px;padding:7px 10px;border:1px solid #c3bb7b80;border-radius:18px;background:#173c30d9;box-shadow:0 2px 5px #12382b33;color:#ffe69b;font-size:15px;line-height:1}
.coin-hud svg{width:19px;height:19px;color:#edcc73;fill:#c6a44c22}.coin-hud strong{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-variant-numeric:tabular-nums}
.hud-actions{display:flex;gap:6px;pointer-events:auto}.battle-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #b4bc8399;border-radius:10px;background:linear-gradient(#31573fe8,#193e32eb);box-shadow:0 2px 0 #14362ce6,inset 0 1px 0 #d7e3a326;color:#f0e4af;transition:filter .15s,transform .15s}.battle-icon svg{width:18px;height:18px}.battle-icon:hover{filter:brightness(1.15)}.battle-icon:active{transform:translateY(1px)}#fullscreenButton[aria-pressed=true]{background:#547349;color:#fff1ae}
.skill-banner{position:absolute;z-index:3;top:21%;left:50%;max-width:90%;transform:translate(-50%,6px);color:#fff2bd;font-size:25px;font-weight:900;text-align:center;text-shadow:0 2px 0 #354d3a,0 0 12px #326e5555;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.skill-banner.visible{opacity:1;transform:translate(-50%,0)}
.combo-skill-cue{--combo-color:#9df4ee;--combo-deep:#226c74;position:absolute;z-index:4;top:clamp(76px,12vh,128px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;width:330px;max-width:calc(100% - 28px);padding:12px 22px 12px 14px;border:1px solid #c6e9cba6;border-left:3px solid var(--combo-color);border-radius:5px 17px 17px 5px;background:linear-gradient(110deg,#153f38ed,#173f38d9 75%,#244e3ce8);box-shadow:0 5px 24px #072a2d55,inset 0 1px 0 #edffdf1a;color:#fff4d3;pointer-events:none;animation:combo-cue-enter .24s ease-out}
.combo-skill-cue[data-type=lightning]{--combo-color:#b0cfff;--combo-deep:#4b63ac}.combo-skill-cue[data-type=ultimate]{--combo-color:#ffe19a;--combo-deep:#a47c36;border-color:#edce8eaa;background:linear-gradient(110deg,#4c4930ee,#294633e6 80%)}
.combo-skill-emblem{display:grid;place-items:center;position:relative;width:52px;height:52px;flex-shrink:0;border:1px solid var(--combo-color);border-radius:50%;background:radial-gradient(var(--combo-deep),#173f36 75%);box-shadow:0 0 18px color-mix(in srgb,var(--combo-color) 28%,transparent),inset 0 0 0 4px #e4ffd910;color:var(--combo-color)}
.combo-skill-emblem:after{content:'✦';position:absolute;right:-4px;bottom:-5px;font-size:15px;color:var(--combo-color)}.combo-skill-emblem svg{display:none;width:29px;height:29px;filter:drop-shadow(0 0 4px var(--combo-color));stroke-width:1.8}.combo-skill-cue[data-type=slash] .combo-icon-slash,.combo-skill-cue[data-type=lightning] .combo-icon-lightning,.combo-skill-cue[data-type=ultimate] .combo-icon-ultimate{display:block}
.combo-skill-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.combo-skill-copy>small{color:var(--combo-color);font-size:10px;letter-spacing:2px;font-weight:700}.combo-skill-copy>small b{font-size:15px;letter-spacing:0}.combo-skill-copy>strong{font-size:26px;line-height:1.3;font-weight:900;letter-spacing:-.4px;white-space:nowrap;text-shadow:0 2px 0 #173b33}.combo-skill-results{display:flex;gap:17px;margin-top:2px;font-size:11px;line-height:1.4;color:#bfd2b9}.combo-skill-results b{font-size:14px;margin-left:4px;color:#fff2bb;font-weight:800;font-variant-numeric:tabular-nums}
.combo-skill-results>span{display:inline-flex;align-items:center;gap:5px}.combo-skill-results svg{width:14px;height:14px}.combo-skill-results>span>b{margin-left:0}
.battle-viewport:has(#comboSkillCue:not([hidden])) .skill-banner,.battle-viewport:has(#comboSkillCue:not([hidden])) .burst-indicator{visibility:hidden}
@keyframes combo-cue-enter{from{opacity:0;translate:0 8px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
@media(max-width:650px){.combo-skill-cue{top:72px;width:292px;padding:9px 14px 9px 12px;gap:11px}.combo-skill-emblem{width:42px;height:42px}.combo-skill-emblem svg{width:25px;height:25px}.combo-skill-copy>strong{font-size:22px}.combo-skill-copy>small{font-size:8px}.combo-skill-copy>small b{font-size:13px}.combo-skill-results{font-size:10px;gap:13px}.combo-skill-results b{font-size:12px}}
@media(max-height:500px){.combo-skill-cue{top:auto;bottom:12px;left:auto;right:12px;transform:none;width:255px;padding:7px 12px;gap:10px}.combo-skill-emblem{width:36px;height:36px}.combo-skill-emblem svg{width:22px;height:22px}.combo-skill-copy>strong{font-size:20px}.combo-skill-copy>small{font-size:8px;line-height:1}.combo-skill-results{font-size:9px;gap:12px;margin-top:0}.combo-skill-results b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.combo-skill-cue{animation:none}}
.combo-hud{position:absolute;z-index:3;right:5%;top:26%;display:flex;align-items:baseline;gap:5px;color:#ffe39a;text-shadow:0 2px 2px #6c4c2d,0 0 15px #183c2e66;pointer-events:none}.combo-hud>b{font-size:39px;font-style:italic;line-height:1;font-weight:800}.combo-hud>span{font-size:11px;font-style:italic;font-weight:800;letter-spacing:.5px}
.burst-indicator{position:absolute;z-index:3;left:50%;bottom:16px;transform:translateX(-50%);width:156px;padding:8px 12px;border:1px solid #c4d28c8c;border-radius:10px;background:#193f32df;box-shadow:0 3px 10px #12372c44;color:#ffebae;text-align:center;pointer-events:none}.burst-word{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#bdcfac;margin-bottom:2px}.burst-indicator>strong{font-size:14px;font-weight:700}.burst-track{height:3px;overflow:hidden;border-radius:3px;background:#0c3027;margin-top:6px}.burst-track>div{height:100%;width:0;background:linear-gradient(90deg,#80d8bf,#eee3a1);border-radius:3px;transition:width .08s linear}
.movement-pad{display:none;position:absolute;z-index:3;left:max(18px,env(safe-area-inset-left,0px));bottom:18px;grid-template-columns:repeat(3,40px);grid-template-rows:repeat(3,40px);gap:5px;touch-action:none;user-select:none}.movement-pad button{display:grid;place-items:center;border:1px solid #c3cf9a80;border-radius:9px;background:#1e493bd9;box-shadow:0 2px 0 #12382d88;color:#ecedbf;font-size:23px;touch-action:none}.movement-pad button:active,.movement-pad button.pressed{background:#779568;color:#fff5bd}.movement-pad button[data-move=up]{grid-area:1/2}.movement-pad button[data-move=left]{grid-area:2/1}.movement-pad button[data-move=right]{grid-area:2/3}.movement-pad button[data-move=down]{grid-area:3/2}.movement-pad>span{grid-area:2/2;display:grid;place-items:center;color:#e1e1a477;font-size:13px}

.typing-dock{position:relative;z-index:6;min-width:0;min-height:0;padding:6px var(--focus-right) calc(6px + env(safe-area-inset-bottom,0px)) var(--focus-left);border-top:1px solid #c9c17a7a;background:linear-gradient(#234d3c,#173e31);box-shadow:0 -6px 24px #12382b33,inset 0 1px 0 #d4dd9c1a;color:#fff5cf}
.typing-inner{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:28px minmax(0,1fr);gap:4px;align-items:center;height:100%;max-width:var(--focus-width);margin:0 auto}
.sentence-context{position:relative;grid-column:1/-1;min-width:0;max-width:100%;height:28px;color:#c8d9bc}.sentence-window{width:100%;height:100%;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}.sentence-trail{position:relative;display:flex;align-items:center;gap:8px;width:max-content;min-width:0;margin:0;white-space:nowrap;font-size:24px;line-height:28px;will-change:transform;pointer-events:none}.sentence-trail>span{flex-shrink:0;padding:0 3px;border-radius:4px}.sentence-trail>[data-status=done]{color:#bfd5b6}.sentence-trail>[data-status=upcoming]{color:#abc7ab}.sentence-trail>[data-status=current]{background:#d8df9a24;box-shadow:inset 0 -2px #e8d18b;color:#ffedb8;font-weight:800}.sentence-progress{flex-shrink:0;font-size:14px;line-height:28px;font-variant-numeric:tabular-nums;color:#c6d4aa}
.sentence-meta{position:absolute;z-index:1;top:0;right:0;display:flex;align-items:center;gap:10px;height:100%;padding-left:12px;background:linear-gradient(90deg,#234d3c00,#234d3c 12px);color:#b9cba7}.target-hint{display:flex;align-items:center;gap:3px;padding:3px 6px;border:1px solid #95b48266;border-radius:7px;color:#dbe3ac;font-size:10px;white-space:nowrap}.target-hint svg{width:13px;height:13px}.target-hint b{font-size:12px;font-weight:700;color:#ffe8a0}
#typingForm{min-width:0;margin:0}.input-shell{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;height:54px;padding:0 8px;border:1px solid #c4d7ba;border-radius:10px;background:#fffef2;box-shadow:0 3px 0 #0f3127,0 0 0 4px #456b4e44;color:#7d9478;transition:box-shadow .15s,border-color .15s}.input-shell>svg{width:22px;height:22px;justify-self:center;opacity:.7}.input-shell input{width:100%;min-width:0;height:100%;padding:0;border:0;outline:none;background:transparent;color:#264f3b;text-align:center;font-size:40px;line-height:1.2;font-weight:600;letter-spacing:.4px}.input-shell input::placeholder{color:#a7b19c;font:inherit;letter-spacing:inherit;opacity:1}.input-shell input:disabled{opacity:.55}.input-shell:focus-within{border-color:#d8ed9b;box-shadow:0 3px 0 #0f3127,0 0 0 4px #c3d68d2b}.input-shell:has(input[data-ready=true]){border-color:#d6bc66;box-shadow:0 3px 0 #0f3127,0 0 0 4px #efda8c29}.attack-submit{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid #719066;border-radius:7px;background:linear-gradient(#6f9763,#4b7d54);color:#fff3c9;box-shadow:0 2px 0 #365e40}.attack-submit svg{width:24px;height:24px}.typing-dock:has(#typedFeedback.error) .input-shell{border-color:#e28d79;box-shadow:0 3px 0 #623a2e,0 0 0 4px #e9906d24}




.game-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:20px;background:#143d2d47;backdrop-filter:blur(3px)}
.overlay-card{position:relative;width:360px;max-width:100%;max-height:calc(100% - 16px);overflow:auto;padding:25px 27px 26px;border:1px solid #d7c183;border-radius:19px;background:linear-gradient(145deg,#fffdf0f7,#edf0dff2);box-shadow:0 14px 50px #10352766,inset 0 0 0 4px #ffffff70;text-align:center;scrollbar-width:thin}
.overlay-symbol{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 14px;border:1px solid #bccea6;border-radius:15px;background:#e1e9cd;color:#496e4b}.overlay-symbol svg{width:27px;height:27px}
.overlay-card h2{margin:0 0 9px;white-space:pre-line;color:#294f3a;font-size:26px;line-height:1.35;font-weight:800;letter-spacing:-.8px}.overlay-card>p{margin:0 0 20px;color:#74856b;font-size:12px;line-height:1.7}
.overlay-card .brand-tagline{margin:-2px 0 13px;color:#708364;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:.25px}.game-overlay:not([data-mode="ready"]) .brand-tagline{display:none}
.primary-button{display:flex;align-items:center;justify-content:center;gap:24px;width:100%;min-height:44px;padding:10px 20px;border:1px solid #356544;border-radius:9px;background:linear-gradient(#518954,#2b6947);box-shadow:0 3px 0 #214d34,inset 0 1px 0 #accb8b66;color:#fff5d4;font-size:15px;font-weight:700}.primary-button svg{width:18px;height:18px}.primary-button:hover{filter:brightness(1.1)}.primary-button:active{transform:translateY(2px);box-shadow:0 1px 0 #214d34}
.overlay-retry-icon{display:none}
.defeat-hero{position:relative;flex-shrink:0;width:184px;height:126px;margin:0 auto 12px;isolation:isolate}.defeat-hero-shadow{position:absolute;left:19px;right:19px;bottom:10px;height:20px;border-radius:50%;background:radial-gradient(ellipse,#41533a50,transparent 72%)}.defeat-hero-body{position:absolute;left:20px;top:-30px;width:144px;height:144px;transform-origin:50% 72%;transform:translate(10px,9px) rotate(-68deg);filter:saturate(.7) drop-shadow(2px 4px 2px #334f3b38)}.defeat-hero-cell{display:block;position:relative;width:100%;height:100%;overflow:hidden}.defeat-hero-cell img{position:absolute;left:0;top:0;width:600%;height:300%;max-width:none;pointer-events:none;user-select:none}.defeat-hero-fallback{display:none;position:absolute;left:62px;top:35px;width:60px;height:60px;color:#8b9776;transform:rotate(-16deg)}.defeat-hero:has(img[hidden]) .defeat-hero-fallback{display:block}
.game-overlay[data-mode="ended"] .overlay-card{display:flex;flex-direction:column;align-items:center;width:320px;padding:22px 25px 24px}.game-overlay[data-mode="ended"] .overlay-symbol{display:none}.game-overlay[data-mode="ended"] #overlayDescription{order:0;margin:0 0 8px;font-size:11px;line-height:1.4;letter-spacing:1.8px}.game-overlay[data-mode="ended"] .defeat-hero{order:1}.game-overlay[data-mode="ended"] #overlayTitle{order:2;margin:0 0 20px;font-size:23px;letter-spacing:1px}.game-overlay[data-mode="ended"] #overlayButton{order:3;min-height:50px;gap:12px;font-size:17px}.game-overlay[data-mode="ended"] .overlay-retry-icon{display:block;width:22px;height:22px}.game-overlay[data-mode="ended"] .overlay-forward-icon{display:none}.game-overlay[data-mode="ended"] .defeat-hero-body{animation:hero-settle .42s ease-out both}
.game-overlay[data-mode="ended"]{display:flex;align-items:center;justify-content:center;padding:14px;overflow:hidden}.game-overlay[data-mode="ended"] .overlay-card{min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}.game-overlay[data-mode="ended"] .overlay-card>*{flex-shrink:0}.game-overlay:not([data-mode="ended"]) .defeat-upgrade-button{display:none}.defeat-upgrade-button{order:4;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;margin-top:11px;padding:10px 16px;border:1px solid #bdab70;border-radius:9px;background:linear-gradient(#fff9e2,#eee0ad);box-shadow:inset 0 1px #fffef0,0 2px 0 #bdad7b55;color:#665334;font:700 13px var(--font);letter-spacing:.8px}.defeat-upgrade-button svg{width:20px;height:20px;color:#8a713c}.defeat-upgrade-button:hover{background:linear-gradient(#fffbed,#f4e5b2)}.defeat-upgrade-button:focus-visible{outline:3px solid #9b7e37;outline-offset:3px}
.game-overlay[data-mode="ended"]{z-index:7;pointer-events:none}.game-overlay[data-mode="ended"] .overlay-card{pointer-events:auto}
@media(max-width:380px){.game-overlay[data-mode="ended"]{padding:10px}.game-overlay[data-mode="ended"] .overlay-card{padding-inline:20px}}
@media(max-height:480px){.game-overlay[data-mode="ended"]{padding:8px}.game-overlay[data-mode="ended"] .overlay-card{padding:16px 22px 18px}.game-overlay[data-mode="ended"] #overlayTitle{margin-bottom:13px}.game-overlay[data-mode="ended"] #overlayButton{min-height:44px}}
@keyframes hero-settle{from{opacity:0;transform:translate(3px,-8px) rotate(-30deg)}to{opacity:1;transform:translate(10px,9px) rotate(-68deg)}}
@media(prefers-reduced-motion:reduce){.game-overlay[data-mode="ended"] .defeat-hero-body{animation:none}}

dialog{position:fixed;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:1px solid #d0bd86;border-radius:19px;background:linear-gradient(145deg,#fffdf0,#edf1df);box-shadow:0 18px 70px #052d2899;color:#31523c;scrollbar-width:thin}dialog::backdrop{background:#0c332b99;backdrop-filter:blur(6px)}
.settings-panel{padding:23px 24px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{margin:0;font-size:23px;line-height:1.2;letter-spacing:1px;font-weight:800}.dialog-close{display:grid;place-items:center;width:31px;height:31px;border:1px solid #c9d3b6;border-radius:9px;background:#e5ebd6;color:#76916b;font-size:25px;font-weight:400;line-height:1}
.game-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:23px}.game-options>label{display:flex;flex-direction:column;gap:7px;color:#7b8b6d;font-size:12px}.game-options select{width:100%;height:38px;padding:0 10px;border:1px solid #c9d5b7;border-radius:8px;background:#fcfff3;color:#496642;font-size:13px;cursor:pointer}.game-options select:disabled{opacity:.6;cursor:not-allowed}
.character-settings{margin-top:22px;padding-bottom:20px;border-bottom:1px solid #d7dfc5}.character-settings h3{display:flex;align-items:center;gap:8px;margin:0 0 11px;color:#5b7851;font-size:14px}.character-settings h3 svg{width:17px;height:17px}.character-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.character-card{position:relative;min-width:0;padding:0 0 10px;overflow:hidden;border:1px solid #d1d9c0;border-radius:11px;background:linear-gradient(#fafff1,#e7edda);color:#74866c;text-align:center;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.character-card:hover{border-color:var(--character-accent,#9eb577);background:linear-gradient(#fffff4,#e2ebd0)}.character-card[aria-checked=true]{border-color:#4e9472;background:radial-gradient(ellipse at 50% 28%,#fff6cf 0,#edf3db 62%,#d8e9cf 100%);box-shadow:inset 0 0 0 2px #5ea383;color:#365d43}.character-card:focus-visible{outline:3px solid #d6b665;outline-offset:3px}.character-preview{display:block;position:relative;width:100%;aspect-ratio:1;overflow:hidden}.character-preview img{position:absolute;width:810%;height:auto;max-width:none;left:-18%;top:-28%;pointer-events:none;user-select:none}.character-card strong{display:block;font-size:12px;line-height:1.2;font-weight:700;letter-spacing:.3px}.character-check{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#3d8962;color:#fff9d3;font-size:12px;font-weight:800;opacity:0;transform:scale(.7);transition:opacity .15s,transform .15s}.character-card[aria-checked=true] .character-check{opacity:1;transform:scale(1)}
.game-options>label{min-width:0}
.practice-text-panel{padding:0 12px 12px}.practice-text-panel label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#7b8b6d;font-size:11px}.practice-text-panel select{width:100%;height:35px;padding:0 8px;border:1px solid #c9d5b7;border-radius:7px;background:#fcfff3;color:#496642;font-size:12px;cursor:pointer}.practice-text-panel #customTextPanel{margin-top:11px}.custom-text-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.custom-text-label small{color:#668257;font-size:10px}.practice-text-panel textarea{display:block;width:100%;min-width:0;max-width:100%;height:120px;min-height:80px;max-height:280px;padding:9px 10px;overflow:auto;resize:vertical;border:1px solid #c9d5b7;border-radius:7px;background:#fffef4;color:#31523c;font:13px/1.6 var(--font);text-align:start;overflow-wrap:break-word}.practice-text-panel textarea::placeholder{color:#96a486}.practice-text-panel textarea:focus-visible,.practice-text-panel select:focus-visible{outline:2px solid #a5bc7a;outline-offset:2px}.practice-text-panel textarea[aria-invalid=true]{border-color:#bd8067}.practice-text-panel #practiceTextStatus,.practice-text-help{margin:7px 0 0;color:#8a987d;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.practice-text-panel #practiceTextStatus[data-error=true]{color:#b05d45}
.audio-control{margin-bottom:13px}.audio-control label{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#809270;font-size:12px}.audio-control output{color:#5e8354;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.audio-control input[type=range]{display:block;width:100%;height:18px;margin:6px 0 0;accent-color:#71975f;cursor:pointer;touch-action:pan-y}
.sound-toggles{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #d7dfc5}.music-toggle{display:flex;align-items:center;gap:7px;color:#6b8560;font-size:12px;cursor:pointer}.music-toggle input{width:15px;height:15px;margin:0;accent-color:#71975f}.sound-toggle{display:flex;align-items:center;gap:6px;min-height:32px;padding:5px 10px;border:1px solid #bacda6;border-radius:7px;background:#e2edcf;color:#60844d;font-size:11px}.sound-toggle svg{width:15px;height:15px}.sound-toggle[aria-pressed=false]{opacity:.65;text-decoration:line-through}.audio-panel>p{min-height:16px;margin:12px 0 0;color:#97a486;font-size:10px;line-height:1.6}.audio-panel>p[data-error=true]{color:#b6775e}

@media(pointer:coarse),(max-width:680px){.movement-pad{display:grid}}
@media(max-width:680px){
  :root{--dock-height:calc(100px + env(safe-area-inset-bottom,0px))}
  .battle-topbar{top:max(10px,env(safe-area-inset-top,0px));left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));grid-template-columns:minmax(0,1fr) auto;gap:10px 8px}
  .hero-hud{gap:8px}.hero-portrait{width:39px;height:42px;border-radius:12px}.hero-level{font-size:7px;padding:3px 4px;bottom:-5px;right:-6px}.hero-level b{font-size:10px}.hero-vitals{width:110px}.vital-track{height:15px}.vital-track>span{font-size:8px}
  .stage-hud{grid-column:1/-1;grid-row:2;justify-self:center;width:158px;padding:6px 10px}.stage-hud>div:first-child{gap:13px}.stage-hud>div>span{font-size:8px}.stage-hud>div>span b{font-size:15px}.stage-hud strong{font-size:12px}.stage-hud small{font-size:9px}.stage-progress{margin-top:5px;height:2px}
  .battle-utilities{grid-column:2;grid-row:1;gap:7px;padding-top:3px}.coin-hud{max-width:88px;min-width:38px;padding:6px 7px;font-size:12px;gap:4px}.coin-hud svg{width:16px;height:16px}.hud-actions{gap:5px}.battle-icon{width:31px;height:31px;border-radius:8px}.battle-icon svg{width:16px;height:16px}
  .typing-dock{padding:8px var(--focus-right) calc(8px + env(safe-area-inset-bottom,0px)) var(--focus-left)}.typing-inner{grid-template-columns:minmax(0,1fr);grid-template-rows:28px minmax(0,1fr);gap:4px;align-content:center}.sentence-trail{font-size:22px;line-height:28px;gap:6px}.sentence-progress{font-size:12px;line-height:28px}.sentence-meta{gap:8px}.input-shell{grid-template-columns:40px minmax(0,1fr) 40px;height:50px;gap:8px;border-radius:9px}.input-shell input{font-size:34px}.input-shell>svg{width:20px;height:20px}.attack-submit{width:40px;height:40px}.attack-submit svg{width:22px;height:22px}
  .skill-banner{font-size:19px;top:25%}.combo-hud{right:5%;top:32%}.combo-hud>b{font-size:30px}.combo-hud>span{font-size:9px}.burst-indicator{bottom:16px;width:138px;padding:7px 10px}.burst-indicator>strong{font-size:12px}.burst-word{font-size:8px}
  .movement-pad{grid-template-columns:repeat(3,36px);grid-template-rows:repeat(3,36px);gap:4px;left:14px;bottom:17px}.movement-pad button{font-size:21px;border-radius:8px}
  .overlay-card{width:320px;padding:22px 24px}.overlay-card h2{font-size:23px}.overlay-card>p{font-size:11px}.overlay-symbol{width:43px;height:43px;margin-bottom:12px}.primary-button{min-height:42px;font-size:14px}
}
@media(max-width:380px){
  .battle-topbar{left:9px;right:9px;gap:9px 6px}.hero-portrait{width:33px;height:36px;border-radius:10px}.hero-hud{gap:7px}.hero-vitals{width:79px}.vital-track{height:13px;border-width:1px}.vital-track>span{font-size:7px}.hero-level{font-size:6px;padding:3px 4px}.hero-level b{font-size:9px}
  .battle-utilities{gap:5px;padding-top:1px}.coin-hud{max-width:65px;min-width:34px;gap:3px;padding:6px;font-size:11px}.coin-hud svg{width:13px;height:13px}.hud-actions{gap:4px}.battle-icon{width:28px;height:28px;border-radius:7px}.battle-icon svg{width:15px;height:15px}
  .stage-hud{width:149px;padding:5px 9px}.stage-hud>div>span b{font-size:14px}.stage-hud strong{font-size:11px}.stage-hud small{font-size:8px}
  .input-shell{height:50px}.input-shell input{font-size:32px}
  .movement-pad{grid-template-columns:repeat(3,32px);grid-template-rows:repeat(3,32px);gap:4px;left:12px;bottom:15px}.movement-pad button{font-size:19px}.burst-indicator{width:125px;bottom:16px;left:auto;right:12px;transform:none}.combo-hud{top:32%}.skill-banner{font-size:17px}
  .game-overlay{padding:16px}.overlay-card{padding:21px 20px}.overlay-card h2{font-size:21px}.overlay-card>p{font-size:10px}
  .settings-panel{padding:20px}.dialog-heading h2{font-size:21px}.game-options{gap:10px}
}
@media(max-height:460px) and (min-width:480px){
  :root{--dock-height:calc(96px + env(safe-area-inset-bottom,0px))}.typing-dock{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}.typing-inner{grid-template-columns:minmax(0,1fr);grid-template-rows:26px minmax(0,1fr);gap:4px;align-content:center}.sentence-trail{font-size:20px;line-height:26px}.sentence-progress{line-height:26px}.input-shell{height:50px}.input-shell input{font-size:32px}.overlay-symbol{display:none}.overlay-card{padding:17px 22px}.overlay-card>p{margin-bottom:14px}.movement-pad{grid-template-columns:repeat(3,28px);grid-template-rows:repeat(3,28px);gap:3px;bottom:10px}.movement-pad button{font-size:17px}.stage-hud{grid-row:1;grid-column:2;width:145px}.battle-topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.battle-utilities{grid-column:3}.hero-vitals{width:85px}
}
@media(max-height:460px) and (min-width:480px) and (max-width:680px){}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* The optional learning keyboard floats over the world and never catches input. */
.keyboard-overlay{--key-height:31px;--key-accent:#d9eee0;--keyboard-bg:#163c3b73;--key-bg:#d9eee014;position:absolute;z-index:3;left:var(--focus-left);right:var(--focus-right);bottom:12px;transform:none;width:min(var(--focus-width),calc(100% - var(--focus-left) - var(--focus-right)));margin-inline:auto;display:flex;flex-direction:column;gap:8px;padding:11px 12px 8px;border:1px solid #c2ddbf5e;border-radius:13px;background:var(--keyboard-bg);box-shadow:0 7px 24px #05241e26,inset 0 1px #ecffdf0d;backdrop-filter:blur(2px);color:#eff8df;pointer-events:none;user-select:none;contain:layout style}
.keyboard-overlay[data-skin=forest]{--key-accent:#a7e3b6;--keyboard-bg:#173f2f80;--key-bg:#92d1a51c;border-color:#a2d7ad66}.keyboard-overlay[data-skin=starlight]{--key-accent:#eddbac;--keyboard-bg:#342d4a78;--key-bg:#c8b5e01a;border-color:#d9c8e766}
.keyboard-keys{display:flex;flex-direction:column;gap:4px}.keyboard-row{display:flex;gap:4px;min-width:0}.keyboard-key{position:relative;display:flex;align-items:center;justify-content:center;flex:var(--key-units,1) 1 0;min-width:0;height:var(--key-height);padding:1px 2px;border:1px solid #d0e5ca57;border-bottom-color:#d0e5ca7a;border-radius:5px;background:var(--key-bg);box-shadow:inset 0 1px #fff9e00a;color:var(--key-accent);font-size:17px;line-height:1;font-weight:600;text-align:center;text-shadow:0 1px 2px #0a242c88}
.key-main{display:block;min-width:0;white-space:nowrap}.keyboard-key[data-kind=function] .key-main{font-family:'Segoe UI Symbol','Apple Symbols',var(--font)}.key-shift{position:absolute;top:3px;left:4px;font-size:9px;color:#e6eed3a6}.keyboard-key[data-kind=initial]{color:#b5e5b4}.keyboard-key[data-kind=vowel]{color:#f2d7a3}.keyboard-key[data-kind=final]{color:#d1c6f1}.keyboard-key[data-code=Space],.keyboard-key[data-code=Enter],.keyboard-key[data-code=ShiftLeft],.keyboard-key[data-code=ShiftRight],.keyboard-key[data-code=Backspace],.keyboard-key[data-code=Tab],.keyboard-key[data-code=CapsLock],.keyboard-key[data-code^=Control],.keyboard-key[data-code^=Alt],.keyboard-key[data-code^=Meta]{font-size:11px;font-weight:500;letter-spacing:.4px}
.keyboard-key[data-code=KeyF]:before,.keyboard-key[data-code=KeyJ]:before{content:'';position:absolute;bottom:4px;left:calc(50% - 5px);width:10px;height:1px;border-radius:2px;background:currentColor;opacity:.5}
.keyboard-key.next{border-color:#ffe09bd9;box-shadow:inset 0 0 0 1px #ffe09b66,0 0 8px #ffe09b24;background:#dcbf7130;color:#fff0bd}.keyboard-key.modifier{border-color:#edcf8580;background:#d8bb6b22;color:#fff1be}.keyboard-key.pressed{border-color:#b9efb4;box-shadow:inset 0 1px 5px #173b2633,0 0 8px #aee9a735;background:#a8dfa199;color:#133e2a;text-shadow:none}.keyboard-key.error{border-color:#f6a68f;background:#dc806432;color:#ffe1d0}
.keyboard-legend{min-height:14px;color:#d7e5c6b8;font-size:10px;line-height:14px;letter-spacing:.1px;text-align:center;text-shadow:0 1px 2px #173c36}.battle-viewport:has(#keyboardOverlay:not([hidden])) .burst-indicator{visibility:hidden}
.keyboard-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.keyboard-settings-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#7b8b6d}.keyboard-settings select{width:100%;height:38px;padding:0 8px;border:1px solid #c9d5b7;border-radius:8px;background:#fcfff3;color:#496642;font:13px var(--font);cursor:pointer}.keyboard-settings select:disabled{opacity:.55;cursor:default}.keyboard-settings .settings-section-panel>p{margin:10px 0 0;color:#89977a;font-size:10px;line-height:1.6}
.keyboard-settings .settings-section-panel>.keyboard-layout-status{padding:8px 10px;border-radius:7px;background:#e5edda;color:#5a7750;font-size:11px;line-height:1.6}.keyboard-settings-grid label{min-width:0}.keyboard-row{direction:ltr}.key-main{font-family:var(--font),'Segoe UI','Nirmala UI','Leelawadee UI','Ebrima','Gadugi','Microsoft Himalaya','Myanmar Text','Javanese Text','Nyala','Sylfaen','Estrangelo Edessa','MV Boli','Segoe UI Historic',sans-serif;unicode-bidi:plaintext}.keyboard-key[data-long=true] .key-main{font-size:.72em}.keyboard-key[data-dead=true]:after{content:'◌';position:absolute;top:2px;right:3px;color:#f3d698;font-size:7px;line-height:1}
.keyboard-settings-grid{grid-template-columns:minmax(0,2fr) minmax(100px,1fr)}@media(max-width:400px){.keyboard-settings-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.keyboard-overlay{--key-height:22px;bottom:10px;padding:8px 7px 6px;gap:5px;border-radius:9px}.keyboard-keys{gap:3px}.keyboard-row{gap:2px}.keyboard-key{padding:0 1px;border-radius:3px;font-size:13px}.key-shift{top:2px;left:2px;font-size:7px}.keyboard-key[data-code=Space],.keyboard-key[data-code=Enter],.keyboard-key[data-code=ShiftLeft],.keyboard-key[data-code=ShiftRight],.keyboard-key[data-code=Backspace],.keyboard-key[data-code=Tab],.keyboard-key[data-code=CapsLock],.keyboard-key[data-code^=Control],.keyboard-key[data-code^=Alt],.keyboard-key[data-code^=Meta]{font-size:8px;letter-spacing:0}.keyboard-key[data-code=KeyF]:before,.keyboard-key[data-code=KeyJ]:before{bottom:3px;width:6px;left:calc(50% - 3px)}.keyboard-legend{min-height:12px;font-size:8px;line-height:12px}.battle-viewport:has(#keyboardOverlay:not([hidden])) .movement-pad{bottom:170px}}
@media(pointer:coarse) and (min-width:681px) and (max-width:1024px){.battle-viewport:has(#keyboardOverlay:not([hidden])) .movement-pad{bottom:240px}}
@media(max-height:460px) and (min-width:480px){.keyboard-overlay{--key-height:18px;bottom:8px;padding:7px 7px 5px;gap:4px;border-radius:8px}.keyboard-keys{gap:2px}.keyboard-row{gap:2px}.keyboard-key{font-size:12px;border-radius:3px}.key-shift{top:1px;left:2px;font-size:7px}.keyboard-key[data-code=Space],.keyboard-key[data-code=Enter],.keyboard-key[data-code=ShiftLeft],.keyboard-key[data-code=ShiftRight],.keyboard-key[data-code=Backspace],.keyboard-key[data-code=Tab],.keyboard-key[data-code=CapsLock],.keyboard-key[data-code^=Control],.keyboard-key[data-code^=Alt],.keyboard-key[data-code^=Meta]{font-size:8px;letter-spacing:0}.keyboard-key[data-code=KeyF]:before,.keyboard-key[data-code=KeyJ]:before{bottom:2px}.keyboard-legend{min-height:11px;font-size:8px;line-height:11px}.battle-viewport:has(#keyboardOverlay:not([hidden])) .movement-pad{bottom:10px}}

/* A compact fantasy loadout: illustrated choices, one price, one way onward. */
body:has(.game-overlay[data-mode="camp"]:not([hidden])){overflow:hidden}
.game-overlay[data-mode="camp"]{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#082c25b8;backdrop-filter:blur(8px);overflow:auto}
.game-overlay[data-mode="camp"] .overlay-card{width:min(var(--game-dialog-width),100%);min-width:0;max-width:100%;max-height:calc(100dvh - 40px);margin:auto;padding:24px 28px 25px;overflow:auto;transform:none;border:1px solid #cbb276;border-radius:24px;background:var(--game-dialog-background);box-shadow:var(--game-dialog-shadow);scrollbar-color:#91a57d #214c3e;scrollbar-gutter:auto;overscroll-behavior:contain}
.game-overlay[data-mode="camp"] .overlay-card>.overlay-symbol,.game-overlay[data-mode="camp"] .overlay-card>.overlay-eyebrow,.game-overlay[data-mode="camp"] #overlayTitle,.game-overlay[data-mode="camp"] #overlayDescription{display:none}
.camp-shop{position:relative;width:100%;color:#fbf5dc}
.camp-header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:74px}
.camp-clear{display:flex;align-items:center;gap:5px;text-align:left}
.camp-retry-summary{display:flex;align-items:center;gap:13px;min-width:0;text-align:left}.camp-retry-emblem{display:grid;flex:0 0 auto;place-items:center;width:62px;height:62px;border:1px solid #d1bd7c;border-radius:50%;background:radial-gradient(circle at 40% 30%,#698257,#284d39);box-shadow:inset 0 0 0 4px #173d2d70;color:#f3d991}.camp-retry-emblem svg{width:31px;height:31px;stroke-width:1.6}.camp-retry-label{display:flex;flex-direction:column;gap:3px;min-width:0;color:#d9dba9;font-size:10px;font-weight:700;line-height:1.3;letter-spacing:2px}.camp-retry-label b{color:#fff0ba;font-size:28px;font-weight:800;line-height:1.1;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.camp-trophy{width:82px;height:72px;stroke:none;filter:drop-shadow(0 3px 4px #0c2f2b55)}
.camp-clear>div{display:flex;flex-direction:column;gap:5px}
.camp-clear>div>span{color:#d9dba9;letter-spacing:3px;font-size:11px;font-weight:800}
.camp-reward{display:flex;align-items:center;gap:4px;color:#ffe599;font-size:19px;font-weight:600;line-height:1}
.camp-reward b{font-weight:700}.camp-reward svg{width:17px;height:17px;color:#e7c160;fill:#d4a44225;stroke-width:1.8}
.camp-wallet{display:flex;align-items:center;gap:9px;max-width:50%;padding:10px 16px;border:1px solid #c5b67b66;border-radius:25px;background:#0d302885;box-shadow:inset 0 1px 0 #edf1a80d;color:#ffe29a}
.camp-wallet svg{width:23px;height:23px;fill:#e8c27022;stroke:#e8c270}.camp-wallet strong{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:24px;font-weight:600;letter-spacing:.4px;font-variant-numeric:tabular-nums}
.camp-heading{display:flex;justify-content:center;align-items:center;margin:2px 0 20px}
.camp-heading:before,.camp-heading:after{content:'';flex:1 1 24px;min-width:6px;max-width:66px;height:1px;background:linear-gradient(90deg,transparent,#bda66980);margin:0 10px}.camp-heading:after{transform:scaleX(-1)}
.camp-heading h3{margin:0;font-size:28px;font-weight:800;letter-spacing:2px;line-height:1.2;color:#fff4cb;text-shadow:0 2px 0 #17392f}
.camp-difficulty{flex-shrink:0;margin-left:10px;padding:4px 7px;border:1px solid #afbd7966;border-radius:6px;background:#14392d99;color:#d6dda8;font-size:10px;line-height:1.4}.camp-difficulty[data-extreme=true]{border-color:#ee9d6c88;color:#ffbf95}
.camp-upgrades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.camp-item{--accent:#ad7629;--card-top:#fff9df;--card-bottom:#f6e6b4;--glow:#f9d77b45;position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:20px 12px 12px;border:2px solid #bca878;border-radius:17px;background:radial-gradient(circle at 50% 30%,#fffef1b3 0,transparent 58%),linear-gradient(160deg,var(--card-top),var(--card-bottom));color:#4e4b32;box-shadow:0 4px 0 #082f28,0 9px 15px #082d2433;transition:transform .16s,box-shadow .16s,border-color .16s;isolation:isolate;overflow:hidden}
.camp-item:before{content:'';position:absolute;inset:4px;border:1px solid #fffaf0a6;border-radius:12px;pointer-events:none;z-index:-1}
.camp-armor{--accent:#437e9f;--card-top:#eefbff;--card-bottom:#c9e1ec;--glow:#8ed9ff45;border-color:#8baebf}
.camp-vitality{--accent:#b86164;--card-top:#fff1e8;--card-bottom:#f2d1c2;--glow:#ffb09c45;border-color:#c39887}
.camp-level{position:absolute;right:10px;top:9px;z-index:1;min-width:29px;padding:3px 6px;border:1px solid #c2b69455;border-radius:6px;background:#fffdf2c9;color:var(--accent);font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.camp-illustration{position:relative;display:grid;place-items:center;width:100%;height:145px;margin:0 0 4px}
.camp-illustration>svg{display:block;width:148px;max-width:100%;height:148px;stroke:none;filter:drop-shadow(0 5px 3px #4f52331a);transition:transform .2s}
.camp-gain{position:absolute;bottom:3px;right:9px;display:grid;place-items:center;min-width:42px;height:26px;padding:0 8px;border:1px solid #fffbea;border-radius:14px;background:var(--accent);box-shadow:0 2px 5px #614f3725;color:#fff8e1;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.camp-item>strong{font-size:19px;font-weight:800;letter-spacing:1px;line-height:1.35}
.upgrade-preview{display:block;max-width:100%;margin:7px 0 14px;color:#676746;font-size:17px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;font-weight:600;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.camp-armor .upgrade-preview{color:#4e7184}.camp-vitality .upgrade-preview{color:#8a635c}
.upgrade-price{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:36px;margin-top:auto;padding:6px 9px;border:1px solid #c3a45388;border-radius:9px;background:linear-gradient(#fff6d4,#eec878);box-shadow:inset 0 1px 0 #fffce8;color:#664b20}
.upgrade-price>svg{width:18px;height:18px;stroke:#96702e;fill:#e4b74d33}.upgrade-price>b{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:18px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}.upgrade-status{margin-left:1px;color:#517443;font-size:12px;line-height:1}
.camp-item.affordable{border-color:#e4cf80;box-shadow:0 4px 0 #082f28,0 0 21px var(--glow),inset 0 0 0 1px #fff6c988}
.camp-item.affordable:after{content:'✦';position:absolute;left:11px;top:9px;color:var(--accent);font-size:15px;opacity:.8}
.camp-item.affordable:hover{transform:translateY(-4px);box-shadow:0 8px 0 #082f28,0 0 27px var(--glow),inset 0 0 0 1px #fff6c9}.camp-item.affordable:hover .camp-illustration>svg{transform:translateY(-3px) rotate(-3deg)}
.camp-item.affordable:active{transform:translateY(2px);box-shadow:0 2px 0 #082f28,0 0 18px var(--glow)}
.camp-item:focus-visible,.camp-next:focus{outline:3px solid #fff0ab;outline-offset:4px}
.camp-item:disabled{opacity:1;border-color:#a5b4a1;background:linear-gradient(155deg,#e7ecdf,#d7dfd0);box-shadow:0 4px 0 #082f28;cursor:not-allowed}
.camp-item:disabled .camp-illustration>svg{opacity:.7;filter:grayscale(.35) drop-shadow(0 3px 3px #4a563322)}
.camp-item:disabled>strong{color:#596850}.camp-item:disabled .upgrade-preview{color:#6c7961}.camp-item:disabled .camp-level{background:#f2f4e8;color:#718069}
.camp-item:disabled .camp-gain{background:#829178;color:#fffdf1}.camp-item:disabled .upgrade-price{background:#e6e7d8;border-color:#c0c8b0;color:#5f6651;box-shadow:inset 0 1px 0 #fbfcf2}.camp-item:disabled .upgrade-price>svg{stroke:#817747;fill:#b0ab7422}.camp-item:disabled .upgrade-status{color:#6a755a}
.camp-item.maxed .upgrade-price>svg,.camp-item.maxed .upgrade-price>b{display:none}.camp-item.maxed .upgrade-status{font-size:11px;font-weight:800;letter-spacing:1px;margin:0}
.camp-next{position:relative;display:flex;align-items:center;justify-content:center;gap:15px;width:100%;min-height:66px;margin-top:23px;padding:9px 60px;border:1px solid #aeca8b;border-radius:12px;background:linear-gradient(110deg,#477b53,#598d58 50%,#477b53);box-shadow:0 4px 0 #092e25,inset 0 1px 0 #dcf3ad55;color:#fff9df;transition:transform .16s,filter .16s}
.camp-next:before,.camp-next:after{content:'✦';position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#cfe09a;font-size:12px}.camp-next:after{left:auto;right:15px}
.camp-next .camp-portal{width:47px;height:54px;position:static;stroke:none;filter:drop-shadow(0 2px 3px #193e2c66)}
.camp-next>span{display:flex;align-items:center;gap:17px}.camp-next strong{font-size:22px;letter-spacing:2px;font-weight:800}.camp-next small{display:flex;flex-direction:column;gap:2px;align-items:flex-start;color:#d6e4b3;font-size:8px;letter-spacing:1.7px}.camp-next small b{color:#ffefb8;font-size:17px;line-height:1;font-weight:600;letter-spacing:1px}.camp-next-arrow{width:22px;height:22px;margin-left:3px;color:#e2efbb}
.camp-next:hover{filter:brightness(1.1);transform:translateY(-2px)}.camp-next:active{transform:translateY(2px);box-shadow:0 2px 0 #092e25}
.camp-item.upgraded{animation:camp-upgrade-flare .65s ease-out}.camp-item.upgraded .camp-gain{animation:camp-gain-pop .65s ease-out}
@keyframes camp-upgrade-flare{0%{box-shadow:0 4px 0 #082f28,0 0 0 2px #fff4b3,0 0 35px #ffe69bcc;filter:brightness(1.22)}100%{filter:brightness(1)}}
@keyframes camp-gain-pop{0%{transform:translateY(0) scale(1)}30%{transform:translateY(-8px) scale(1.15)}100%{transform:translateY(0) scale(1)}}
@media(max-width:600px){
  .game-overlay[data-mode="camp"]{padding:14px}.game-overlay[data-mode="camp"] .overlay-card{max-height:calc(100dvh - 28px);padding:19px 19px 20px;border-radius:20px}
  .camp-header{min-height:60px;gap:9px}.camp-trophy{width:68px;height:60px}.camp-clear>div>span{font-size:9px;letter-spacing:2px}.camp-reward{font-size:17px}.camp-wallet{padding:8px 12px;gap:6px}.camp-wallet strong{font-size:20px}.camp-wallet svg{width:20px;height:20px}
  .camp-heading{margin:8px 0 17px}.camp-heading h3{font-size:26px}.camp-heading:before,.camp-heading:after{width:45px;margin:0 12px}
  .camp-upgrades{gap:10px}.camp-item{padding:21px 7px 9px;border-radius:13px}.camp-item:before{inset:3px;border-radius:9px}.camp-illustration{height:112px}.camp-illustration>svg{width:116px;height:116px}.camp-gain{right:1px;bottom:0;min-width:35px;height:22px;font-size:12px;padding:0 6px}
  .camp-item>strong{font-size:17px}.upgrade-preview{font-size:14px;margin:7px 0 12px}.upgrade-price{padding:6px;gap:4px;min-height:33px;border-radius:7px}.upgrade-price>b{font-size:16px}.upgrade-price>svg{width:16px;height:16px}.upgrade-status{font-size:10px}.camp-level{right:7px;top:7px;font-size:9px;padding:3px 5px;min-width:25px}.camp-item.affordable:after{left:8px;top:7px;font-size:13px}
  .camp-next{margin-top:20px;min-height:60px}.camp-next .camp-portal{width:48px;height:55px;bottom:6px}.camp-next strong{font-size:20px}.camp-next small b{font-size:16px}
}
@media(max-width:380px){
  .game-overlay[data-mode="camp"]{padding:10px}.game-overlay[data-mode="camp"] .overlay-card{padding:15px 12px 16px;max-height:calc(100dvh - 20px);border-radius:18px}
  .camp-header{min-height:53px}.camp-trophy{width:56px;height:50px}.camp-clear{gap:2px}.camp-clear>div{gap:4px}.camp-clear>div>span{font-size:8px;letter-spacing:1.5px}.camp-reward{font-size:15px;gap:2px}.camp-reward svg{width:14px;height:14px}.camp-wallet{gap:5px;padding:7px 9px;max-width:49%}.camp-wallet strong{font-size:18px}.camp-wallet svg{width:17px;height:17px}
  .camp-heading{margin:7px 0 15px}.camp-heading h3{font-size:24px}.camp-heading:before,.camp-heading:after{width:33px;margin:0 10px}
  .camp-upgrades{gap:7px}.camp-item{padding:22px 4px 7px;border-radius:11px}.camp-item:before{border-radius:7px}.camp-illustration{height:84px;margin-bottom:6px}.camp-illustration>svg{width:86px;height:86px}.camp-gain{right:0;bottom:0;min-width:30px;height:20px;font-size:11px;padding:0 5px}.camp-level{font-size:8px;padding:2px 4px;right:6px;min-width:22px}.camp-item.affordable:after{font-size:12px;left:7px}
  .camp-item>strong{font-size:15px;letter-spacing:.5px}.upgrade-preview{font-size:11px;margin:6px 0 11px;letter-spacing:-.5px}.upgrade-price{min-height:31px;padding:6px 3px;gap:3px}.upgrade-price>b{font-size:13px}.upgrade-price>svg{width:13px;height:13px}.upgrade-status{font-size:9px;margin:0}.camp-item.maxed .upgrade-status{font-size:10px}
  .camp-item[data-long-price="true"] .upgrade-price{flex-wrap:wrap;gap:2px 4px;padding:4px 3px}.camp-item[data-long-price="true"] .upgrade-price>b{order:0;flex:0 0 100%;font-size:10px;text-align:center}.camp-item[data-long-price="true"] .upgrade-price>svg{order:1;width:10px;height:10px}.camp-item[data-long-price="true"] .upgrade-status{order:2;font-size:9px}
  .camp-next{min-height:58px;margin-top:18px;padding:6px 28px;gap:11px;border-radius:10px}.camp-next .camp-portal{width:40px;height:46px}.camp-next>span{gap:12px}.camp-next strong{font-size:19px}.camp-next small{font-size:7px;letter-spacing:1.2px}.camp-next small b{font-size:15px}.camp-next-arrow{width:18px;height:18px}.camp-next:before,.camp-next:after{font-size:10px;left:11px}.camp-next:after{left:auto;right:11px}
}
@media(prefers-reduced-motion:reduce){.camp-item,.camp-next,.camp-illustration>svg{transition:none}.camp-item.upgraded,.camp-item.upgraded .camp-gain{animation:none}.camp-item.affordable:hover,.camp-item.affordable:hover .camp-illustration>svg,.camp-next:hover{transform:none}}

/* Keep the reading target, typing field and learning keyboard on one focal axis. */
@media(max-width:680px){.game-shell{--focus-left:max(10px,env(safe-area-inset-left,0px));--focus-right:max(10px,env(safe-area-inset-right,0px))}}
@media(max-width:600px){.sentence-meta{display:none}}
@media(max-height:460px) and (min-width:480px){.game-shell{--focus-width:630px}.sentence-context{height:26px}}
@media(max-height:460px) and (min-width:480px) and (pointer:coarse),(max-height:460px) and (min-width:480px) and (max-width:680px){.game-shell:has(#keyboardOverlay:not([hidden])){--focus-left:max(114px,env(safe-area-inset-left,0px));--focus-right:max(10px,env(safe-area-inset-right,0px))}}
.settings-section{margin-top:12px;border:1px solid #d3dcc0;border-radius:9px;background:#f5f8ea}.settings-section>summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;list-style:none;color:#5b7851;font-size:13px;font-weight:700;cursor:pointer}.settings-section>summary::-webkit-details-marker{display:none}.settings-section>summary svg{width:17px;height:17px}.settings-section-title{min-width:0;white-space:nowrap}.settings-section-value{min-width:0;max-width:54%;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#789067;font-size:11px;font-weight:500;text-align:end;unicode-bidi:isolate}.settings-section[open]>summary{margin-bottom:9px;border-bottom:1px solid #e2e8d5}.settings-section:focus-within{border-color:#a5bc7a}.settings-section-panel{padding:0 12px 12px}.difficulty-settings .game-options{margin-top:0;grid-template-columns:minmax(0,1fr)}

/* Center every settings chevron independently of font metrics and browser defaults. */
.settings-dialog,.settings-picker-dialog{--settings-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23789067' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.settings-dialog select{-webkit-appearance:none;appearance:none;padding-right:40px;background-image:var(--settings-chevron);background-position:right 14px center;background-size:16px 16px;background-repeat:no-repeat}
@media(forced-colors:active){.settings-dialog select{-webkit-appearance:auto;appearance:auto;background-image:none}}

/* Settings and upgrades share the same game frame; forms keep a readable width. */
.settings-dialog{width:min(var(--game-dialog-width),calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);overflow:hidden;border-color:#cbb276;border-radius:24px;background:var(--game-dialog-background);box-shadow:var(--game-dialog-shadow);color:#fff3ce;scrollbar-color:#91a57d #214c3e;overscroll-behavior:contain}
.settings-dialog[open]{display:flex;flex-direction:column}
.settings-panel{flex:1 1 auto;min-height:0;width:100%;max-width:656px;margin-inline:auto;padding:26px 28px 20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent;scrollbar-gutter:auto;scroll-padding-block:12px}
.settings-floating-footer{position:relative;z-index:1;flex:0 0 auto;padding:12px 28px max(18px,env(safe-area-inset-bottom,0px));background:linear-gradient(#123b32d9,#123b32f5);border-top:1px solid #cbb27633;box-shadow:0 -8px 18px #0b302525}
.settings-footer-inner{display:flex;align-items:center;justify-content:flex-end;gap:12px;max-width:600px;margin-inline:auto}.settings-draft-status{min-width:0;margin:0 auto 0 0;color:#dfd5ab;font-size:11px;line-height:1.4}
.settings-done-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:148px;min-height:52px;padding:12px 25px;border:1px solid #e1c681;border-radius:28px;background:linear-gradient(120deg,#4a8055,#66975e);box-shadow:0 5px 0 #153e2c,0 9px 20px #071f2380,inset 0 1px #ffffff33;color:#fff5cc;font:800 14px var(--font);letter-spacing:1.3px;cursor:pointer}.settings-done-button svg{width:23px;height:23px;stroke-width:2.4}.settings-done-button:hover{background:linear-gradient(120deg,#558d5d,#74a569)}.settings-done-button:focus-visible{outline:3px solid #fff0ab;outline-offset:4px}.settings-done-button:active{transform:translateY(2px);box-shadow:0 3px 0 #153e2c,0 5px 14px #071f2380}
.settings-dialog .dialog-heading{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:10px;padding-bottom:19px;border-bottom:1px solid #cbb27644}
.settings-dialog .dialog-heading h2{grid-column:2;display:flex;align-items:center;justify-content:center;gap:11px;color:#fff0ba;font-size:27px;letter-spacing:2px;text-transform:uppercase;text-shadow:0 2px 0 #14372c}
.settings-dialog .dialog-heading h2 svg{width:25px;height:25px;color:#e7c676}
.settings-dialog .dialog-close{grid-column:3;width:40px;height:40px;border-color:#b5bd7d88;border-radius:10px;background:#123a30aa;color:#f2e4b0;font-size:29px}
.settings-dialog .dialog-close:hover{background:#4a7551;color:#fff5cf}
.settings-dialog .dialog-close:focus-visible,.hero-navigation button:focus-visible{outline:3px solid #fff0ab;outline-offset:3px}
.settings-dialog .character-settings{margin-top:18px;padding-bottom:16px;border-bottom-color:#cbb27644}
.character-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.settings-dialog .character-settings h3{margin:0;color:#e9e4bd;font-size:14px;font-weight:600;letter-spacing:.5px}
.hero-navigation{display:flex;gap:6px}.hero-navigation:has(button:not(:disabled)){visibility:visible}.hero-navigation:not(:has(button:not(:disabled))){visibility:hidden}
.hero-navigation button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #b5bd7d88;border-radius:8px;background:#183e32;color:#f3e8b7}.hero-navigation button:first-child svg{transform:rotate(180deg)}.hero-navigation svg{width:17px;height:17px}.hero-navigation button:disabled{opacity:.35;cursor:default}
.settings-dialog .character-options{display:flex;justify-content:safe center;gap:12px;margin-inline:-4px;padding:4px 4px 10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:4px;scrollbar-width:thin;scrollbar-color:#b5bd7d66 #143d3000}
.settings-dialog .character-card{flex:0 0 132px;padding-bottom:12px;border-color:#d8c58a;border-radius:13px;background:linear-gradient(#fffced,#ebe9ce);color:#62664c;scroll-snap-align:center}
.settings-dialog .character-card:hover{border-color:#ffdf81;background:linear-gradient(#fffdea,#eee6bc)}
.settings-dialog .character-card[aria-checked=true]{border-color:#efd37c;background:radial-gradient(ellipse at 50% 28%,#fff9da 0,#e9edcf 62%,#cddfba 100%);box-shadow:inset 0 0 0 2px #b6c478,0 0 14px #d6c0752b;color:#2d573e}
.settings-dialog .character-card strong{font-size:13px}
.settings-dialog .settings-section{margin-top:12px;border-color:#d2c69488;border-radius:12px;background:linear-gradient(135deg,#fffbee,#edf1df);box-shadow:0 3px 0 #0a2d2444;color:#31523c}
.settings-dialog .settings-section>summary{min-height:54px;padding:12px 15px;gap:9px;color:#3f6147;font-size:14px}
.settings-dialog .settings-section-title{white-space:normal;line-height:1.3}
.settings-dialog .settings-section-value{flex:0 1 auto;max-width:40%;color:#60784f;font-size:11px}
.settings-dialog .settings-section[open]>summary{margin-bottom:13px;border-bottom-color:#d8dcc2}
.settings-dialog .settings-section:focus-within{border-color:#ead17e}
.settings-dialog summary:focus-visible{outline:3px solid #e6cb75;outline-offset:3px;border-radius:10px}
.settings-dialog .settings-section-panel,.settings-dialog .practice-text-panel{padding:0 15px 15px}
.settings-active-badge{flex:0 0 auto;padding:3px 6px;border:1px solid #abbf8c;border-radius:5px;background:#dce8c9;color:#3d6444;font-size:9px;font-weight:700;line-height:1.2}
.settings-dialog .game-options>label,.settings-dialog .practice-text-panel label,.settings-dialog .keyboard-settings-grid label{color:#556e4d;font-size:12px}
.settings-dialog select{height:40px;border-color:#bdc9a6;border-radius:8px;background-color:#fffef4;color:#36583e;font-size:13px}
.settings-dialog select:focus-visible,.settings-dialog textarea:focus-visible{outline:3px solid #d8bf6b;outline-offset:2px}
.settings-dialog .practice-text-panel textarea{height:145px;color:#31523c;font-size:14px}
.settings-dialog .builtin-guide-panel{margin-top:0}
.settings-dialog .practice-text-help,.settings-dialog #practiceTextStatus,.settings-dialog #practiceGuideStatus,.settings-dialog #audioStatus,.settings-dialog #keyboardOptions>p{margin:9px 0 0;color:#64785b;font-size:11px;line-height:1.6}
.settings-dialog #practiceTextStatus[data-error=true],.settings-dialog #practiceGuideStatus[data-error=true]{color:#9c493a}
.settings-toggle{position:relative;display:flex;align-items:center;gap:10px;min-height:40px;color:#3d6145;font-size:13px;font-weight:600;cursor:pointer}
.settings-toggle-state{margin-left:auto;color:#617951;font-size:11px;font-weight:700}
.settings-toggle input{position:absolute;right:0;top:50%;width:44px;height:28px;margin:0;transform:translateY(-50%);opacity:0;cursor:pointer}
.settings-switch-track{position:relative;flex:0 0 44px;height:26px;border:1px solid #aebc9a;border-radius:20px;background:#cad2bc;pointer-events:none;transition:background .15s,border-color .15s}
.settings-switch-track:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fffdf0;box-shadow:0 1px 3px #354d3833;transition:transform .15s}
.settings-toggle input:checked+.settings-switch-track{border-color:#477b52;background:#51875b}.settings-toggle input:checked+.settings-switch-track:after{transform:translateX(18px);background:#fff3bf}.settings-toggle input:focus-visible+.settings-switch-track{outline:3px solid #cfb45e;outline-offset:3px}.settings-toggle:has(input:disabled){opacity:.55;cursor:default}
.settings-dialog .settings-enabled-options{margin-top:0;padding-top:13px;border-top:1px solid #d6dfc3}
.settings-dialog #keyboardOptions>.keyboard-layout-status{padding:8px 10px;border-radius:7px;background:#e1ead0;color:#4d6a45}
.settings-dialog .audio-control label,.settings-dialog .music-toggle{color:#526e49}.settings-dialog .audio-control output{color:#386544}
.reset-settings .settings-popup-icon{margin-left:auto}
/* Selection headers and switches open their controls in one step. */
.settings-section-header{position:relative;display:flex;align-items:center;gap:9px;min-height:54px;padding:7px 15px;color:#3f6147;font-size:14px;font-weight:700}
.settings-section-header>svg{flex:0 0 17px;width:17px;height:17px}.settings-section-header>.settings-popup-icon,.settings-popup-icon{flex:0 0 19px;width:19px;height:19px;color:#73886a;stroke:currentColor}
.settings-picker-trigger{width:100%;padding-block:12px;border:0;border-radius:11px;text-align:start;cursor:pointer}.settings-picker-trigger:hover{background:#e4ecd44d}.settings-picker-trigger:focus-visible{outline:3px solid #d8bf6b;outline-offset:3px}
.settings-dialog .practice-language-settings .builtin-guide-panel{margin:0}.settings-dialog .practice-language-settings #practiceGuideStatus:not([hidden]):not(:empty){margin:0;padding:0 15px 12px}
.settings-dialog #customTextPanel{margin:0}
.settings-dialog .keyboard-settings .settings-section-header{padding-block:11px}.keyboard-helper-heading{display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0}.keyboard-helper-description{display:block;color:#64785b;font-size:11px;font-weight:400;line-height:1.45;overflow-wrap:break-word}.settings-dialog .keyboard-settings .settings-section-value{max-width:30%}
.keyboard-layout-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#556e4d;font-size:12px}.keyboard-layout-picker{display:flex;align-items:center;gap:8px;width:100%;min-width:0;height:40px;padding:0 12px 0 8px;border:1px solid #bdc9a6;border-radius:8px;background:#fffef4;color:#36583e;font:400 13px var(--font);text-align:start;cursor:pointer}.keyboard-layout-picker>span:first-child{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.keyboard-layout-picker:focus-visible{outline:3px solid #d8bf6b;outline-offset:2px}.keyboard-layout-picker:disabled{opacity:.55;cursor:default}
.settings-done-button:disabled{opacity:.55;cursor:default;transform:none}.settings-draft-status[data-error=true]{color:#ffd0ac}
@media(max-width:600px){.settings-dialog{width:calc(100vw - 28px);max-height:calc(100dvh - 28px);border-radius:20px}.settings-floating-footer{padding-inline:16px}}
@media(max-width:520px){.settings-panel{padding:20px 16px}.settings-dialog .dialog-heading{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;padding-bottom:15px}.settings-dialog .dialog-heading h2{gap:8px;font-size:22px}.settings-dialog .dialog-heading h2 svg{width:21px;height:21px}.settings-dialog .dialog-close{width:34px;height:34px;font-size:26px}.settings-dialog .character-card{flex-basis:112px}.settings-dialog .character-options{gap:9px}.settings-dialog .settings-section>summary{min-height:52px;padding:11px 12px;gap:7px;font-size:13px}.settings-dialog .settings-section-panel,.settings-dialog .practice-text-panel{padding:0 12px 12px}.settings-dialog .settings-section-value{max-width:32%;font-size:10px}.settings-active-badge{padding:3px 4px;font-size:8px}.settings-section-header{min-height:52px;padding:6px 12px;gap:7px;font-size:13px}.settings-language-header{padding-block:11px}.settings-dialog .practice-language-settings #practiceGuideStatus:not([hidden]):not(:empty){padding-inline:12px}}
@media(max-width:520px){.settings-dialog .practice-text-settings:has(#customTextActive:not([hidden])) .settings-section-value{display:none}.settings-dialog .practice-text-settings:has(#customTextActive:not([hidden])) .settings-popup-icon{margin-left:auto}.settings-dialog .settings-enabled-options{padding-top:12px}}
@media(max-width:520px){.settings-dialog .keyboard-settings .settings-section-value{max-width:26%}.keyboard-helper-heading{gap:3px}}
@media(max-width:380px){.settings-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:18px}}
@media(prefers-reduced-motion:reduce){.settings-switch-track,.settings-switch-track:after,.character-card,.character-check{transition:none}}
@media(forced-colors:active){.settings-dialog{border:2px solid CanvasText;background:Canvas;color:CanvasText}.settings-dialog .dialog-heading h2,.settings-dialog .character-settings h3{color:CanvasText}.settings-switch-track{background:Canvas;border-color:ButtonText}.settings-switch-track:after{background:ButtonText}.settings-toggle input:checked+.settings-switch-track{background:Highlight;border-color:Highlight}.settings-toggle input:checked+.settings-switch-track:after{background:HighlightText}.settings-active-badge{border-color:CanvasText}.settings-section-header>.settings-popup-icon,.settings-popup-icon{color:ButtonText}}

/* Lightweight crest cards and searchable language choices share one game picker. */
.settings-picker-dialog{width:min(660px,calc(100vw - 40px));max-width:none;max-height:min(760px,calc(100dvh - 40px));padding:20px;overflow:hidden;border:1px solid #d7bd79;border-radius:22px;background:var(--game-dialog-background);box-shadow:var(--game-dialog-shadow);color:#fff2c7;overscroll-behavior:contain}
.settings-picker-dialog[open]{display:flex;flex-direction:column;gap:16px}.settings-picker-dialog::backdrop{background:#041e1ac4;backdrop-filter:blur(5px)}
.settings-picker-dialog[data-picker=language],.settings-picker-dialog[data-picker=keyboard]{height:min(660px,calc(100dvh - 40px))}.settings-picker-dialog[data-picker=language] .language-picker-results,.settings-picker-dialog[data-picker=keyboard] .language-picker-results{max-height:none}
.settings-picker-dialog[data-picker=reset]{width:min(520px,calc(100vw - 40px))}.reset-progress-panel{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;min-height:0;margin:0;padding:5px 10px 10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent;text-align:center}.reset-progress-panel>*{flex-shrink:0}.reset-progress-medallion{display:grid;place-items:center;width:68px;height:68px;margin:3px 0 18px;border:1px solid #c9b477;border-radius:50%;background:radial-gradient(circle at 40% 30%,#668252,#254c38);box-shadow:inset 0 0 0 4px #183e3270;color:#ead497}.reset-progress-medallion svg{width:32px;height:32px;stroke-width:1.6}.reset-progress-panel h3{max-width:370px;margin:0;color:#fff0c4;font-size:20px;font-weight:700;line-height:1.4}.reset-progress-panel p{max-width:360px;margin:12px 0 0;color:#cbd4b6;font-size:13px;line-height:1.65}.reset-progress-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:360px;margin-top:25px}.reset-progress-actions button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:11px 16px;border:1px solid #dcc77f;border-radius:10px;background:linear-gradient(#577e50,#446740);box-shadow:0 3px 0 #0e302644;color:#fff1c7;font:700 12px var(--font);letter-spacing:.8px;cursor:pointer}.reset-progress-actions .reset-confirm-button{border-color:#b18a70;background:#855c4c;box-shadow:none;color:#ffe8d2}.reset-progress-actions button:hover{filter:brightness(1.1)}.reset-progress-actions button:focus-visible{outline:3px solid #ffe1a0;outline-offset:3px}
.settings-picker-heading{display:grid;flex:0 0 auto;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:8px;padding:0 1px 14px;border-bottom:1px solid #d1bb7440}.settings-picker-heading h2{margin:0;color:#fff0bc;font-size:23px;font-weight:800;line-height:1.3;letter-spacing:1px;text-align:center}.settings-picker-ornament{color:#e5c67f;font-size:23px;text-align:center}.settings-picker-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #b5bd7d88;border-radius:9px;background:#123a30aa;color:#f2e4b0;font-size:28px;line-height:1}.settings-picker-close:hover{background:#4a7551}.settings-picker-close:focus-visible{outline:3px solid #ffdf89;outline-offset:3px}
.difficulty-picker-panel{display:grid;flex:1 1 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;min-height:0;padding:4px 6px 8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent;scroll-padding-block:6px}
.difficulty-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:156px;padding:10px 8px 9px;overflow:hidden;border:1px solid #b7aa6966;border-radius:14px;background:radial-gradient(ellipse at 50% 22%,#ffffff0b,transparent 72%),linear-gradient(145deg,#2e4d3d,#18392e);box-shadow:inset 0 1px #ffffff09,0 3px 0 #092a224d;color:#f9eec6;text-align:center;transition:border-color .16s,background .16s,box-shadow .16s}
.difficulty-choice:hover{border-color:var(--crest-rim);background:radial-gradient(ellipse at 50% 22%,#ffffff15,transparent 72%),linear-gradient(145deg,#365b44,#1d4233)}.difficulty-choice[aria-pressed=true]{border-color:#ffe09a;background:radial-gradient(ellipse at 50% 22%,#c0ca7421,transparent 72%),linear-gradient(145deg,#43613f,#284a34);box-shadow:inset 0 0 0 1px #e6c372,0 0 16px #e8d17a12}.difficulty-choice:focus-visible{outline:3px solid #ffe6a3;outline-offset:2px}.difficulty-choice strong{max-width:100%;color:#fff1c7;font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.difficulty-rank{position:absolute;top:10px;left:12px;color:var(--crest-rim);font-size:11px;font-weight:700;line-height:1.2;letter-spacing:.8px}.difficulty-choice-check{position:absolute;top:8px;right:9px;display:grid;place-items:center;width:20px;height:20px;border:1px solid #ffe6a4;border-radius:50%;background:#d3b463;color:#204332;font-size:13px;font-weight:900;opacity:0}.difficulty-choice[aria-pressed=true] .difficulty-choice-check{opacity:1}
.difficulty-emblem{flex:0 0 auto;width:88px;height:88px;margin:0 0 3px;color:var(--crest-rim);fill:none;filter:drop-shadow(0 3px 3px #0b231e66);transition:transform .16s}.difficulty-choice:hover .difficulty-emblem{transform:translateY(-2px)}.difficulty-emblem .crest-halo{fill:none;stroke:var(--crest-rim);stroke-width:1;opacity:.3}.difficulty-emblem .crest-disc{fill:var(--crest-base);stroke:var(--crest-rim);stroke-width:1.5}.difficulty-emblem .crest-symbol{filter:drop-shadow(0 2px 1px #102c2670)}
.difficulty-choice-note{display:block;min-height:17px;margin-top:3px;color:#c3d5a3;font-size:9px;font-weight:600;line-height:1.5;letter-spacing:.25px}.difficulty-choice-extreme{color:#efbe82}
.language-picker-panel{display:flex;flex:1 1 auto;flex-direction:column;gap:12px;min-height:0;overflow:hidden}.language-picker-search{position:relative;flex:0 0 auto;display:flex;align-items:center}.language-picker-search>svg{position:absolute;left:14px;width:18px;height:18px;color:#a8b88f;pointer-events:none}.language-picker-search input{width:100%;min-width:0;height:46px;padding:10px 14px 10px 42px;border:1px solid #a8b77c88;border-radius:11px;background:#12392dcc;color:#fff4ce;font:14px var(--font);outline-offset:2px}.language-picker-search input::placeholder{color:#a7b89d}.language-picker-search input:focus-visible{outline:2px solid #e6c77d;border-color:#e6c77d}.language-picker-search input::-webkit-search-cancel-button{cursor:pointer;filter:grayscale(1) brightness(2)}
.language-picker-results{display:grid;flex:1 1 auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:8px;min-height:0;max-height:min(500px,calc(100dvh - 230px));padding:3px 6px 6px 3px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent;scroll-padding-block:4px}
.language-choice{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-width:0;min-height:65px;padding:11px 35px 11px 13px;border:1px solid #b7c78a55;border-radius:10px;background:linear-gradient(135deg,#2b4f3d,#234534);color:#f8efcd;text-align:start;transition:border-color .15s,background .15s}.language-choice:hover{border-color:#c3cc91;background:#365b42}.language-choice[aria-pressed=true]{border-color:#f3d27e;background:linear-gradient(135deg,#4c6846,#36573a);box-shadow:inset 0 0 0 1px #d1b86655}.language-choice[aria-pressed=true]:after{content:'✓';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#ffe4a0;font-size:17px;font-weight:800}.language-choice:focus-visible{outline:2px solid #ffe6a3;outline-offset:2px}.language-choice-native{display:block;max-width:100%;font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;unicode-bidi:plaintext}.language-choice-name{display:block;max-width:100%;color:#c1cdb0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.language-choice-code{color:#a8bb99;font-size:9px;line-height:1.3;letter-spacing:.5px}.language-picker-status{flex:0 0 auto;min-height:16px;margin:0;padding-inline:3px;color:#c0cba8;font-size:11px;line-height:1.5}.language-picker-empty{margin:18px 0 24px;color:#d0d8ba;font-size:14px;text-align:center}
.settings-panel::-webkit-scrollbar,.difficulty-picker-panel::-webkit-scrollbar,.language-picker-results::-webkit-scrollbar{width:5px;height:5px}.settings-panel::-webkit-scrollbar-track,.difficulty-picker-panel::-webkit-scrollbar-track,.language-picker-results::-webkit-scrollbar-track{background:transparent}.settings-panel::-webkit-scrollbar-thumb,.difficulty-picker-panel::-webkit-scrollbar-thumb,.language-picker-results::-webkit-scrollbar-thumb{border-radius:12px;background:#c8c38870}.settings-panel::-webkit-scrollbar-thumb:hover,.difficulty-picker-panel::-webkit-scrollbar-thumb:hover,.language-picker-results::-webkit-scrollbar-thumb:hover{background:#ddce8aa6}.settings-panel::-webkit-scrollbar-button,.difficulty-picker-panel::-webkit-scrollbar-button,.language-picker-results::-webkit-scrollbar-button{display:none;width:0;height:0}
.language-choice>span{flex-shrink:0}.language-choice-badge,.keyboard-layout-suggestion{display:inline-block;align-self:flex-start;margin-top:4px;padding:2px 6px;border:1px solid #c2c58d66;border-radius:4px;background:#657a4c55;color:#e8e6ba;font-size:9px;font-weight:600;line-height:1.4;letter-spacing:.15px}
@supports selector(::-webkit-scrollbar){.settings-panel,.difficulty-picker-panel,.language-picker-results{scrollbar-width:auto;scrollbar-color:auto}}
@media(max-width:520px){.settings-picker-trigger{padding-block:11px}.settings-picker-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:15px 12px;border-radius:18px}.settings-picker-dialog[open]{gap:11px}.settings-picker-heading{padding-bottom:11px}.settings-picker-heading h2{font-size:19px}.difficulty-picker-panel{gap:8px;padding-inline:4px}.difficulty-choice{min-height:139px;padding:9px 4px 7px;border-radius:11px}.difficulty-emblem{width:74px;height:74px}.difficulty-choice strong{font-size:12px}.difficulty-rank{top:8px;left:8px;font-size:9px}.difficulty-choice-check{top:6px;right:6px;width:17px;height:17px;font-size:11px}.difficulty-choice-note{font-size:8px;letter-spacing:0}.language-picker-results{grid-template-columns:minmax(0,1fr);max-height:min(500px,calc(100dvh - 208px))}.language-choice{min-height:61px}}
@media(max-width:520px){.settings-picker-dialog[data-picker=language],.settings-picker-dialog[data-picker=keyboard]{height:min(660px,calc(100dvh - 24px))}.settings-picker-dialog[data-picker=reset]{width:calc(100vw - 24px)}.reset-progress-panel{padding-inline:5px}.reset-progress-panel h3{font-size:18px}.reset-progress-actions{gap:9px}}
@media(max-width:350px){.difficulty-picker-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.difficulty-choice{min-height:133px}.difficulty-choice:last-child{grid-column:1/-1;justify-self:stretch}.difficulty-choice:last-child .difficulty-emblem{width:68px;height:68px}.settings-picker-heading h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.difficulty-choice,.difficulty-emblem,.language-choice{transition:none}.difficulty-choice:hover .difficulty-emblem{transform:none}}
@media(forced-colors:active){.settings-picker-dialog{border:2px solid CanvasText;background:Canvas;color:CanvasText}.settings-picker-heading{border-color:CanvasText}.settings-picker-heading h2,.settings-picker-ornament,.difficulty-choice strong,.difficulty-choice-note,.difficulty-rank,.language-choice-native,.language-choice-name,.language-choice-code,.language-picker-status,.language-picker-empty{color:CanvasText}.settings-picker-close,.difficulty-choice,.language-choice,.language-picker-search input{border-color:ButtonText;background:Canvas;color:ButtonText;box-shadow:none}.difficulty-choice[aria-pressed=true],.language-choice[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px;border-color:Highlight}.difficulty-choice-check{background:Highlight;color:HighlightText;border-color:HighlightText}.language-choice[aria-pressed=true]:after{color:Highlight}.difficulty-emblem{forced-color-adjust:none}.settings-panel,.difficulty-picker-panel,.language-picker-results{scrollbar-color:auto}}
@media(forced-colors:active){.keyboard-layout-picker{border-color:ButtonText;background:Canvas;color:ButtonText}.keyboard-layout-field{color:CanvasText}.language-choice-badge,.keyboard-layout-suggestion{border-color:CanvasText;background:Canvas;color:CanvasText}}
@media(forced-colors:active){.reset-progress-medallion,.reset-progress-actions button,.reset-progress-actions .reset-confirm-button{border-color:ButtonText;background:Canvas;color:ButtonText;box-shadow:none}.reset-progress-panel h3,.reset-progress-panel p{color:CanvasText}}

/* Form popups retain a fixed heading and Back action while their controls scroll. */
.settings-picker-dialog[data-picker=custom],.settings-picker-dialog[data-picker=helper],.settings-picker-dialog[data-picker=audio]{width:min(600px,calc(100vw - 40px))}
.settings-picker-ornament,.settings-picker-back{grid-column:1;grid-row:1}.settings-picker-heading h2{grid-column:2;grid-row:1}.settings-picker-close{grid-column:3;grid-row:1}.settings-picker-back{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #b5bd7d88;border-radius:9px;background:#123a30aa;color:#f2e4b0}.settings-picker-back svg{width:19px;height:19px;transform:rotate(180deg)}.settings-picker-back:hover{background:#4a7551}.settings-picker-back:focus-visible{outline:3px solid #ffdf89;outline-offset:3px}
.settings-form-panel{display:flex;flex:1 1 auto;flex-direction:column;gap:14px;min-width:0;min-height:0;padding:3px 5px 5px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent;scroll-padding-block:6px}.settings-form-panel>*{flex-shrink:0;min-width:0}.settings-form-panel .settings-form-description{margin:0 3px;color:#cbd6b4;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.settings-form-panel .settings-form-description[data-error=true]{color:#ffd0ac}
.settings-form-toggle{min-height:56px;padding:10px 14px;border:1px solid #d2c69488;border-radius:12px;background:linear-gradient(135deg,#fffbee,#edf1df);color:#3f6147;font-size:14px}.settings-form-toggle>span:first-child{min-width:0}.settings-form-toggle .settings-toggle-state{flex:0 0 auto}.settings-form-toggle input{right:14px;width:44px;height:40px}.settings-form-panel .settings-enabled-options{margin:0;padding:16px;border:1px solid #d2c69488;border-radius:12px;background:linear-gradient(135deg,#fffbee,#edf1df);color:#31523c}
.settings-form-panel .practice-text-panel label,.settings-form-panel .keyboard-settings-grid label{color:#556e4d;font-size:12px}.settings-form-panel select{width:100%;min-width:0;height:40px;padding:0 40px 0 10px;border:1px solid #bdc9a6;border-radius:8px;background:#fffef4 var(--settings-chevron) right 14px center/16px 16px no-repeat;color:#36583e;font:13px var(--font);-webkit-appearance:none;appearance:none;cursor:pointer}.settings-form-panel select:disabled{opacity:.55;cursor:default}.settings-form-panel select:focus-visible,.settings-form-panel textarea:focus-visible{outline:3px solid #d8bf6b;outline-offset:2px}
.settings-form-panel .practice-text-panel textarea{height:180px;min-height:100px;max-height:320px;font-size:14px;color:#31523c}.settings-form-panel #practiceTextStatus,.settings-form-panel .practice-text-help,.settings-form-panel #keyboardOptions>p{margin:10px 0 0;color:#64785b;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.settings-form-panel #practiceTextStatus[data-error=true]{color:#9c493a}.settings-form-panel #keyboardOptions>.keyboard-layout-status{padding:8px 10px;border-radius:7px;background:#e1ead0;color:#4d6a45}.settings-form-panel .audio-control label,.settings-form-panel .music-toggle{color:#526e49}.settings-form-panel .audio-control output{color:#386544}.settings-form-panel .audio-control{margin-bottom:18px}.settings-form-panel .sound-toggles{margin-top:0}
.settings-picker-footer{display:flex;flex:0 0 auto;justify-content:flex-end;padding:13px 1px 1px;border-top:1px solid #d1bb7440}.settings-picker-back-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:118px;min-height:42px;padding:10px 17px;border:1px solid #cabb80;border-radius:10px;background:linear-gradient(#4d7550,#3b5e41);box-shadow:0 3px 0 #10332866;color:#fff0bf;font:700 12px var(--font);letter-spacing:.8px}.settings-picker-back-action svg{width:18px;height:18px;transform:rotate(180deg)}.settings-picker-back-action:hover{background:linear-gradient(#5c845b,#486d4b)}.settings-picker-back-action:focus-visible{outline:3px solid #ffdf89;outline-offset:3px}
.settings-form-panel::-webkit-scrollbar{width:5px;height:5px}.settings-form-panel::-webkit-scrollbar-track{background:transparent}.settings-form-panel::-webkit-scrollbar-thumb{border-radius:12px;background:#c8c38870}.settings-form-panel::-webkit-scrollbar-thumb:hover{background:#ddce8aa6}.settings-form-panel::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports selector(::-webkit-scrollbar){.settings-form-panel{scrollbar-width:auto;scrollbar-color:auto}}
@media(max-width:520px){.settings-picker-dialog[data-picker=custom],.settings-picker-dialog[data-picker=helper],.settings-picker-dialog[data-picker=audio]{width:calc(100vw - 24px)}.settings-form-panel{gap:11px;padding-inline:3px}.settings-form-toggle{padding:10px 12px;font-size:13px}.settings-form-toggle input{right:12px}.settings-form-panel .settings-enabled-options{padding:13px}.settings-form-panel .practice-text-panel textarea{height:170px}.settings-picker-footer{padding-top:11px}.settings-picker-back-action{min-height:40px}}
@media(max-height:480px){.settings-form-panel .practice-text-panel textarea{height:110px}.settings-form-panel{gap:10px}.settings-picker-footer{padding-top:9px}}
@media(forced-colors:active){.settings-picker-back,.settings-picker-back-action,.settings-form-toggle,.settings-form-panel .settings-enabled-options{border-color:ButtonText;background:Canvas;color:ButtonText;box-shadow:none}.settings-form-panel .settings-form-description,.settings-form-panel .practice-text-panel label,.settings-form-panel .keyboard-settings-grid label,.settings-form-panel #practiceTextStatus,.settings-form-panel .practice-text-help,.settings-form-panel #keyboardOptions>p,.settings-form-panel .audio-control label,.settings-form-panel .music-toggle,.settings-form-panel .audio-control output{color:CanvasText}.settings-form-panel select{appearance:auto;background:Canvas;color:CanvasText;border-color:ButtonText}.settings-picker-footer{border-color:CanvasText}.settings-form-panel{scrollbar-color:auto}}
@media(max-width:600px){.camp-retry-summary{gap:10px}.camp-retry-emblem{width:52px;height:52px}.camp-retry-emblem svg{width:27px;height:27px}.camp-retry-label{font-size:9px}.camp-retry-label b{font-size:25px}}
@media(max-width:380px){.camp-retry-summary{gap:7px}.camp-retry-emblem{width:44px;height:44px}.camp-retry-emblem svg{width:23px;height:23px}.camp-retry-label{font-size:8px;letter-spacing:1.5px}.camp-retry-label b{font-size:22px}}
@media(forced-colors:active){.defeat-upgrade-button,.camp-retry-emblem{border-color:ButtonText;background:Canvas;color:ButtonText;box-shadow:none}.defeat-upgrade-button svg,.camp-retry-label,.camp-retry-label b{color:CanvasText}}

/* The estate lives between battles; its atlas is assigned only when requested. */
.estate-hud-button{color:#f5d58a;border-color:#d4b66caa;background:linear-gradient(#4a6343ed,#224c38ed);box-shadow:0 2px 0 #14362ce6,inset 0 1px 0 #fae5a332}.estate-hud-button svg{fill:#d7bc6024;stroke-width:1.7}.estate-hud-button[aria-expanded=true]{background:#5a7448;color:#fff0b3}.estate-hud-button:disabled{opacity:.45;cursor:default}
.camp-estate-button{display:flex;align-items:center;gap:11px;width:100%;min-height:65px;margin-top:17px;padding:8px 13px 8px 9px;border:1px solid #b8be7c80;border-radius:12px;background:linear-gradient(120deg,#2f5944,#1a4435);box-shadow:inset 0 1px #e8e5ae12;color:#fff0c1;text-align:left}.camp-estate-button:hover{border-color:#e0ce8b;background:linear-gradient(120deg,#38644b,#23503b)}.camp-estate-button:focus-visible{outline:3px solid #fff0ab;outline-offset:3px}.camp-estate-button+.camp-next{margin-top:14px}.camp-estate-icon{flex:0 0 48px;width:48px;height:48px}.camp-estate-copy{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.camp-estate-copy>small{color:#b3c99b;font-size:8px;font-weight:700;line-height:1.3;letter-spacing:1.6px}.camp-estate-copy>strong{overflow:hidden;color:#f4ecc1;font-size:13px;font-weight:600;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.camp-estate-track{display:block;width:100%;height:4px;margin-top:4px;overflow:hidden;border-radius:4px;background:#0c3026}.camp-estate-track>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9dcb87,#edcf79);transition:width .35s ease-out}.camp-estate-meta{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:4px}.camp-estate-meta>b{color:#f8df9e;font-size:13px;line-height:1.2;font-variant-numeric:tabular-nums}.camp-estate-meta>small{max-width:110px;overflow:hidden;color:#cde8a9;font-size:9px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.camp-estate-open{flex:0 0 18px;width:18px;height:18px;color:#c6d5a5}
.estate-dialog{width:min(980px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 36px);overflow:hidden;border:1px solid #d1bc7d;border-radius:24px;background:var(--game-dialog-background);box-shadow:var(--game-dialog-shadow);color:#fff0c6}.estate-dialog[open]{display:flex;flex-direction:column}.estate-dialog::backdrop{background:#06231dd4;backdrop-filter:blur(6px)}.estate-dialog-heading{display:flex;flex:0 0 auto;align-items:center;gap:13px;padding:19px 22px 17px;border-bottom:1px solid #c8b37145}.estate-title-emblem{display:grid;flex:0 0 44px;place-items:center;width:44px;height:44px;border:1px solid #cbb87980;border-radius:13px;background:radial-gradient(circle at 35% 25%,#62815a,#234c39);color:#edce84}.estate-title-emblem svg{width:27px;height:27px}.estate-dialog-heading>div{flex:1 1 auto;min-width:0}.estate-dialog-heading h2{margin:0;color:#fff1c5;font-size:24px;font-weight:800;line-height:1.2;letter-spacing:2px}.estate-dialog-heading p{margin:5px 0 0;color:#c5d1ac;font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums}.estate-close-button{display:grid;flex:0 0 40px;place-items:center;width:40px;height:40px;padding:0;border:1px solid #b7bd7c88;border-radius:10px;background:#123a30aa;color:#f3e4b0;font-size:28px;line-height:1}.estate-close-button:hover{background:#4a7551}.estate-close-button:focus-visible{outline:3px solid #ffe3a0;outline-offset:3px}
.estate-dialog-body{flex:1 1 auto;min-width:0;min-height:0;padding:17px 21px 21px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent;scroll-padding-block:8px}.estate-districts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:3px 3px 5px;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent}.estate-district-button{position:relative;display:grid;grid-template-columns:29px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 8px;min-width:0;min-height:61px;padding:9px 10px;border:1px solid #94ad7766;border-radius:11px;background:linear-gradient(135deg,#365c43,#214633);color:#d9e5c1;text-align:left;scroll-snap-align:center}.estate-district-button:hover{border-color:#d7d08a;background:#3b6548}.estate-district-button[aria-pressed=true]{border-color:#efce81;background:linear-gradient(135deg,#587345,#37583a);box-shadow:inset 0 0 0 1px #e2c77855}.estate-district-button[data-state=locked]{background:#1c3e31;color:#9eb096}.estate-district-button[data-state=complete]{border-color:#a4bd7e99}.estate-district-button:focus-visible{outline:3px solid #ffe3a0;outline-offset:2px}.estate-district-emblem{position:relative;display:grid;grid-column:1;grid-row:1/3;place-items:center;width:29px;height:35px;border:1px solid #c1ce8f55;border-radius:8px;background:#9cbb7224;color:#e3d69a;font-size:12px;font-weight:800;line-height:1;isolation:isolate}.estate-district-emblem:before{position:absolute;inset:7px 5px 5px;z-index:-1;background:currentColor;opacity:.2;clip-path:polygon(0 100%,0 27%,18% 27%,18% 0,37% 0,37% 42%,63% 42%,63% 0,82% 0,82% 27%,100% 27%,100% 100%);content:''}.estate-district-button>strong{grid-column:2;align-self:end;min-width:0;overflow:hidden;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.estate-district-button>small{grid-column:2;align-self:start;min-width:0;overflow:hidden;color:#b9cba6;font-size:9px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.estate-district-button[data-state=locked] .estate-district-emblem{color:#9db291;opacity:.65}.estate-district-button[data-state=locked]>small{color:#829c83}
.estate-district-view{min-width:0;margin-top:17px}.estate-scene-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;margin:0 4px 11px}.estate-scene-heading>div{min-width:0}.estate-scene-heading h3{margin:0;color:#f8edbf;font-size:20px;font-weight:700;line-height:1.3}.estate-scene-heading span{display:block;margin-top:3px;color:#b9c9a4;font-size:9px;line-height:1.4;letter-spacing:1.1px}.estate-scene-heading>p{flex:0 1 auto;max-width:40%;margin:0;color:#e7d69c;font-size:12px;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums}
.estate-scene{--estate-ground:#9dc880;--estate-water:#71b9b0;--estate-accent:#e8d37b;--estate-sky-top:#cce4cc;--estate-sky-bottom:#91bd9d;position:relative;isolation:isolate;width:100%;min-height:280px;aspect-ratio:1.7;overflow:hidden;border:1px solid #b8ca8c99;border-radius:17px;background:radial-gradient(ellipse at 72% 16%,#fff4cfaa,transparent 45%),linear-gradient(var(--estate-sky-top),var(--estate-sky-bottom));box-shadow:inset 0 0 35px #234b3533,0 5px 0 #0a2e2644}.estate-scene[data-theme=garden]{--estate-sky-top:#e8e8bf;--estate-sky-bottom:#a1c896}.estate-scene[data-theme=fortress]{--estate-sky-top:#d9d6b3;--estate-sky-bottom:#829e88}.estate-scene[data-theme=harbor]{--estate-sky-top:#c9e8e9;--estate-sky-bottom:#72aebc}.estate-scene[data-theme=academy]{--estate-sky-top:#ddd7ed;--estate-sky-bottom:#9ab6b8}.estate-scene[data-theme=sky]{--estate-sky-top:#dff0f4;--estate-sky-bottom:#8fc4dd}.estate-scene[data-theme=frost]{--estate-sky-top:#e2f0eb;--estate-sky-bottom:#96bcc9}.estate-scene[data-theme=ember]{--estate-sky-top:#e4c096;--estate-sky-bottom:#a6796c}.estate-scene[data-theme=astral]{--estate-sky-top:#595c8e;--estate-sky-bottom:#303d69}.estate-scene[data-theme=celestial]{--estate-sky-top:#f4e7be;--estate-sky-bottom:#a6c5b7}.estate-landscape{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}.estate-plot{position:absolute;z-index:2;width:18%;aspect-ratio:1;transform:translate(-50%,-85%);transform-origin:50% 85%}.estate-plot:before{position:absolute;left:24%;right:24%;bottom:10%;height:10%;border-radius:50%;background:#244c3630;filter:blur(3px);content:''}.estate-sprite{display:block;aspect-ratio:1;background-repeat:no-repeat;background-size:400% 400%;filter:hue-rotate(var(--estate-hue,0deg)) drop-shadow(0 3px 2px #183e3433)}.estate-plot>.estate-sprite{position:relative;width:100%;height:100%}.estate-plot.is-locked .estate-sprite,.estate-sprite.is-locked{opacity:.28;filter:grayscale(1) brightness(.65)}.estate-plot.is-locked:before{opacity:.35}.estate-plot.is-new{animation:estate-building-arrive .7s cubic-bezier(.2,.8,.3,1) both}.estate-plot.is-new .estate-sprite{filter:hue-rotate(var(--estate-hue,0deg)) drop-shadow(0 0 7px var(--estate-accent))}
.estate-milestones{display:grid;grid-template-columns:repeat(10,minmax(74px,1fr));gap:7px;margin-top:14px;padding:3px 3px 7px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:3px;scrollbar-width:thin;scrollbar-color:#c8c38870 transparent}.estate-milestone-button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:105px;padding:7px 5px 8px;border:1px solid #9caf7266;border-radius:11px;background:linear-gradient(#31573d,#204230);color:#e3ddbd;scroll-snap-align:center}.estate-milestone-button .estate-sprite{flex:0 0 48px;width:48px;height:48px}.estate-milestone-button>span:not(.estate-sprite){color:#ebd895;font-size:11px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}.estate-milestone-button>small{display:block;width:100%;overflow:hidden;color:#bfcbb0;font-size:9px;line-height:1.4;text-align:center;text-overflow:ellipsis;white-space:nowrap}.estate-milestone-button[data-state=locked] .estate-sprite{opacity:.35;filter:grayscale(1) brightness(.8)}.estate-milestone-button[data-state=locked]{border-color:#75907044;background:#1e3e30}.estate-milestone-button[data-state=locked]>span:not(.estate-sprite){color:#8da186}.estate-milestone-button[data-state=locked]>small{color:#819980}.estate-milestone-button[aria-pressed=true]{border-color:#f1d58b;background:linear-gradient(#567047,#34563a);box-shadow:inset 0 0 0 1px #e2c77855}.estate-milestone-button:hover{border-color:#cbd28f}.estate-milestone-button:focus-visible{outline:3px solid #ffe3a0;outline-offset:2px}.estate-milestone-button:disabled{cursor:default}.estate-next-reward{min-height:18px;margin:10px 4px 0;color:#d2d5ae;font-size:12px;line-height:1.5;text-align:center}.estate-next-reward:empty{display:none}
.estate-dialog-body::-webkit-scrollbar,.estate-districts::-webkit-scrollbar,.estate-milestones::-webkit-scrollbar{width:5px;height:5px}.estate-dialog-body::-webkit-scrollbar-track,.estate-districts::-webkit-scrollbar-track,.estate-milestones::-webkit-scrollbar-track{background:transparent}.estate-dialog-body::-webkit-scrollbar-thumb,.estate-districts::-webkit-scrollbar-thumb,.estate-milestones::-webkit-scrollbar-thumb{border-radius:12px;background:#c8c38870}.estate-dialog-body::-webkit-scrollbar-thumb:hover,.estate-districts::-webkit-scrollbar-thumb:hover,.estate-milestones::-webkit-scrollbar-thumb:hover{background:#ddce8aa6}.estate-dialog-body::-webkit-scrollbar-button,.estate-districts::-webkit-scrollbar-button,.estate-milestones::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports selector(::-webkit-scrollbar){.estate-dialog-body,.estate-districts,.estate-milestones{scrollbar-width:auto;scrollbar-color:auto}}
.estate-sprite{position:relative}.estate-art{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background-repeat:no-repeat;pointer-events:none}.estate-plot .estate-art{bottom:15%}
@keyframes estate-building-arrive{from{opacity:0;transform:translate(-50%,-95%) scale(.8)}to{opacity:1;transform:translate(-50%,-85%) scale(1)}}
@media(max-width:680px){.estate-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:19px}.estate-dialog-heading{gap:10px;padding:15px 16px 13px}.estate-dialog-heading h2{font-size:21px}.estate-title-emblem{width:40px;height:40px;flex-basis:40px}.estate-dialog-body{padding:12px 13px 16px}.estate-districts{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:3px}.estate-district-button{flex:0 0 137px;min-height:59px;padding:8px}.estate-district-view{margin-top:13px}.estate-scene-heading h3{font-size:18px}.estate-scene{min-height:220px;border-radius:13px}.estate-milestones{gap:6px;margin-top:11px;grid-template-columns:repeat(10,minmax(73px,1fr))}.estate-next-reward{font-size:11px}.camp-estate-button{gap:8px;min-height:61px;padding:7px 10px 7px 7px;margin-top:14px}.camp-estate-icon{width:43px;height:43px;flex-basis:43px}.camp-estate-copy>strong{font-size:12px}.camp-estate-meta>b{font-size:12px}.camp-estate-meta>small{max-width:85px;font-size:8px}}
@media(max-width:380px){.estate-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.estate-dialog-heading{padding:12px}.estate-dialog-body{padding:10px 10px 13px}.estate-title-emblem{width:35px;height:35px;flex-basis:35px}.estate-title-emblem svg{width:23px;height:23px}.estate-dialog-heading h2{font-size:19px}.estate-dialog-heading p{font-size:10px}.estate-close-button{width:36px;height:36px;flex-basis:36px}.estate-scene-heading{gap:9px;margin-inline:2px}.estate-scene-heading h3{font-size:16px}.estate-scene-heading>p{font-size:11px}.camp-estate-open{display:none}.camp-estate-copy>small{font-size:7px;letter-spacing:1.2px}.camp-estate-button{gap:7px}.camp-estate-meta>small{max-width:72px}.camp-estate-meta>b{font-size:11px}}
@media(max-height:480px){.estate-dialog{max-height:calc(100dvh - 20px)}.estate-dialog-heading{padding-block:10px}.estate-dialog-heading h2{font-size:19px}.estate-title-emblem{width:35px;height:35px;flex-basis:35px}.estate-dialog-body{padding-top:10px}.estate-scene{min-height:220px}}
@media(prefers-reduced-motion:reduce){.camp-estate-track>span{transition:none}.estate-plot.is-new{animation:none}}
@media(forced-colors:active){.estate-dialog{border-color:CanvasText;background:Canvas;color:CanvasText}.estate-dialog-heading{border-color:CanvasText}.estate-dialog-heading h2,.estate-dialog-heading p,.estate-scene-heading h3,.estate-scene-heading span,.estate-scene-heading>p,.estate-next-reward{color:CanvasText}.estate-title-emblem,.estate-close-button,.estate-hud-button,.camp-estate-button,.estate-district-button,.estate-milestone-button{border-color:ButtonText;background:Canvas;color:ButtonText;box-shadow:none}.camp-estate-copy>small,.camp-estate-copy>strong,.camp-estate-meta>b,.camp-estate-meta>small,.camp-estate-open,.estate-district-button>small,.estate-milestone-button>span:not(.estate-sprite),.estate-milestone-button>small{color:CanvasText}.estate-district-button[aria-pressed=true],.estate-milestone-button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}.estate-scene,.estate-sprite{forced-color-adjust:none}.estate-dialog-body,.estate-districts,.estate-milestones{scrollbar-color:auto}}
.estate-landscape>svg{display:block;width:100%;height:100%;stroke:none}.estate-building{display:block;width:100%;height:100%}.estate-capital-plot{width:22%}.estate-plot.is-preview .estate-building{opacity:.88;filter:hue-rotate(var(--estate-hue,0deg)) drop-shadow(0 0 6px var(--estate-accent))}.estate-plot-stage{position:absolute;left:50%;bottom:7%;z-index:1;transform:translateX(-50%);padding:3px 6px;border:1px solid #d5dda28c;border-radius:5px;background:#244f3bd9;color:#f1ecc4;font-size:clamp(8px,1vw,10px);font-weight:700;line-height:1.2;white-space:nowrap}.estate-district-emblem.estate-sprite{width:29px;height:35px;border:0;border-radius:0;background-color:transparent}.estate-district-emblem.estate-sprite:before{display:none}.estate-milestone-button .estate-reward-icon{display:block;flex:0 0 48px;width:48px;height:48px}.camp-estate-button.estate-unlocked{border-color:#f0d181;box-shadow:inset 0 0 0 1px #e0c57540,0 0 18px #d9c96a1a}.camp-estate-meta>small{overflow:visible;line-height:1.3;white-space:normal;text-align:right}

/* Fit the entire estate to the viewport; district choices open over the map. */
.estate-dialog{width:min(1080px,calc(100vw - 24px));height:min(800px,calc(100dvh - 24px));min-height:0;max-height:calc(100dvh - 24px);overflow:hidden}.estate-dialog-heading{height:56px;min-height:56px;gap:10px;padding:7px 16px}.estate-title-emblem{width:35px;height:35px;flex-basis:35px;border-radius:10px}.estate-title-emblem svg{width:23px;height:23px}.estate-dialog-heading h2{font-size:19px;line-height:1.1}.estate-dialog-heading p{margin-top:3px;overflow:hidden;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.estate-close-button{width:36px;height:36px;flex-basis:36px;font-size:26px}
.estate-dialog-body{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px;min-width:0;min-height:0;padding:12px 16px 14px;overflow:hidden}.estate-navigation{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;height:44px;min-width:0}.estate-navigation-arrow{display:grid;place-items:center;min-width:0;height:44px;padding:0;border:1px solid #aab47b80;border-radius:10px;background:#214e3b;color:#efe2ac}.estate-navigation-arrow svg{width:21px;height:21px}.estate-navigation-previous svg{transform:rotate(180deg)}.estate-navigation-arrow:disabled{opacity:.38;cursor:default}.estate-navigation-arrow:not(:disabled):hover{border-color:#e1cd82;background:#3e6648}.estate-district-trigger{display:flex;align-items:center;gap:12px;min-width:0;height:44px;padding:5px 13px;border:1px solid #c5bc7e88;border-radius:10px;background:linear-gradient(110deg,#3f6447,#2a4f39);color:#f6edc3;text-align:left}.estate-district-trigger:hover{border-color:#efd58a;background:#466c4b}.estate-district-trigger-copy{display:flex;flex:1 1 auto;flex-direction:column;gap:1px;min-width:0}.estate-district-trigger-copy>span{overflow:hidden;font-size:15px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.estate-district-trigger-copy>small{overflow:hidden;color:#c1d0a7;font-size:9px;line-height:1.2;letter-spacing:.8px;text-overflow:ellipsis;white-space:nowrap}#estateDistrictPosition{flex:0 0 auto;color:#d4dda9;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}.estate-district-trigger .settings-popup-icon{color:#c4d5a7}.estate-navigation-arrow:focus-visible,.estate-district-trigger:focus-visible{outline:3px solid #ffe3a0;outline-offset:2px}
.estate-scene-viewport{position:relative;display:grid;place-items:center;container-type:size;min-width:0;min-height:0;overflow:hidden;border:1px solid #91b68155;border-radius:15px;background:radial-gradient(ellipse at center,#406a4c,#183e30 85%);box-shadow:inset 0 0 40px #103d2633}.estate-scene-viewport>.estate-scene{width:min(100cqw,170cqh);height:min(100cqh,58.824cqw);min-width:0;min-height:0;max-width:100%;max-height:100%;aspect-ratio:1.7;margin:0;border:0;border-radius:10px;box-shadow:none}.estate-scene-status{position:absolute;top:8px;right:9px;z-index:110;max-width:70%;margin:0;padding:5px 8px;border:1px solid #c2c38980;border-radius:7px;background:#173e2bdb;color:#f0e6af;font-size:11px;line-height:1.2;text-align:right;font-variant-numeric:tabular-nums;pointer-events:none}
.estate-dialog .estate-milestones{grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:56px;gap:6px;min-width:0;margin:0;padding:2px 3px;overflow:hidden;scroll-snap-type:none}.estate-dialog .estate-milestone-button{position:relative;justify-content:center;gap:2px;min-width:0;min-height:0;height:56px;padding:3px 2px;border-radius:9px}.estate-dialog .estate-milestone-button .estate-reward-icon,.estate-dialog .estate-milestone-button .estate-sprite{flex:0 0 31px;width:31px;height:31px}.estate-dialog .estate-milestone-button>span:not(.estate-sprite){font-size:10px;line-height:1.2}.estate-dialog .estate-milestone-button>small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.estate-dialog .estate-next-reward{min-width:0;min-height:18px;max-height:18px;margin:0;overflow:hidden;font-size:11px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
.estate-district-picker{position:absolute;top:9px;left:10px;right:10px;z-index:200;display:flex;flex-direction:column;gap:9px;height:min(228px,calc(100% - 18px));min-height:0;padding:12px;border:1px solid #d9c585;border-radius:15px;background:linear-gradient(145deg,#315a43f7,#123b2ffb);box-shadow:0 10px 35px #051f1bc9;backdrop-filter:blur(7px);overflow:hidden}.estate-district-picker-heading{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;min-height:30px;padding:0 2px}.estate-district-picker-heading>strong{color:#f1e3ae;font-size:13px;line-height:1.2;letter-spacing:1.5px}.estate-district-picker-heading .estate-close-button{width:30px;height:30px;flex-basis:30px;font-size:24px}.estate-district-picker .estate-districts{display:grid;flex:1 1 auto;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;min-width:0;min-height:0;padding:3px;overflow:hidden;scroll-snap-type:none}.estate-district-picker .estate-district-button{grid-template-columns:25px minmax(0,1fr);gap:2px 6px;min-width:0;min-height:0;height:100%;padding:7px 8px;scroll-snap-align:none}.estate-district-picker .estate-district-emblem.estate-sprite{width:25px;height:32px}.estate-district-picker .estate-district-button>strong{font-size:11px}.estate-district-picker .estate-district-button>small{font-size:9px}
@media(max-width:680px){.estate-dialog{width:calc(100vw - 24px);height:min(800px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.estate-dialog-heading{padding-inline:12px}.estate-dialog-body{gap:8px;padding:10px 10px 12px}.estate-navigation{gap:6px;grid-template-columns:40px minmax(0,1fr) 40px}.estate-navigation-arrow{height:44px}.estate-district-trigger{gap:7px;padding-inline:9px}.estate-district-trigger-copy>span{font-size:13px}.estate-district-trigger-copy>small{font-size:8px;letter-spacing:.4px}#estateDistrictPosition{font-size:9px}.estate-district-trigger .settings-popup-icon{width:17px;height:17px;flex-basis:17px}.estate-scene-viewport{border-radius:11px}.estate-scene-status{top:6px;right:6px;padding:4px 6px;font-size:10px}.estate-dialog .estate-milestones{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,44px);gap:5px}.estate-dialog .estate-milestone-button{height:44px;gap:0;padding:2px}.estate-dialog .estate-milestone-button .estate-reward-icon,.estate-dialog .estate-milestone-button .estate-sprite{width:26px;height:26px;flex-basis:26px}.estate-district-picker{left:7px;right:7px;top:7px;height:min(430px,calc(100% - 14px));padding:10px;gap:7px}.estate-district-picker .estate-districts{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:6px}.estate-district-picker .estate-district-button{padding:6px 7px}.estate-dialog .estate-next-reward{font-size:10px}}
@media(max-height:480px){.estate-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.estate-dialog-heading{height:44px;min-height:44px;padding:4px 12px;gap:8px}.estate-title-emblem{width:30px;height:30px;flex-basis:30px}.estate-title-emblem svg{width:20px;height:20px}.estate-dialog-heading h2{font-size:16px}.estate-dialog-heading p{margin-top:2px;font-size:9px;line-height:1.1}.estate-close-button{width:32px;height:32px;flex-basis:32px;font-size:24px}.estate-dialog-body{gap:5px;padding:6px 9px 7px}.estate-navigation{height:34px;grid-template-columns:36px minmax(0,1fr) 36px;gap:6px}.estate-navigation-arrow,.estate-district-trigger{height:34px;border-radius:8px}.estate-navigation-arrow svg{width:18px;height:18px}.estate-district-trigger{padding:3px 9px}.estate-district-trigger-copy>span{font-size:12px}.estate-district-trigger-copy>small{font-size:8px}.estate-dialog .estate-milestones{grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:40px;gap:4px;padding-block:1px}.estate-dialog .estate-milestone-button{height:40px;gap:0;padding:1px}.estate-dialog .estate-milestone-button .estate-reward-icon,.estate-dialog .estate-milestone-button .estate-sprite{width:24px;height:24px;flex-basis:24px}.estate-dialog .estate-milestone-button>span:not(.estate-sprite){font-size:9px}.estate-dialog .estate-next-reward{min-height:14px;max-height:14px;font-size:9px;line-height:14px}.estate-scene-status{top:4px;right:4px;padding:3px 5px;font-size:9px}.estate-district-picker{top:5px;left:6px;right:6px;height:min(200px,calc(100% - 10px));padding:7px;gap:4px}.estate-district-picker-heading{min-height:25px}.estate-district-picker-heading>strong{font-size:11px}.estate-district-picker-heading .estate-close-button{width:25px;height:25px;flex-basis:25px;font-size:21px}.estate-district-picker .estate-districts{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px}.estate-district-picker .estate-district-button{padding:4px;grid-template-columns:21px minmax(0,1fr);gap:1px 4px}.estate-district-picker .estate-district-emblem.estate-sprite{width:21px;height:27px}.estate-district-picker .estate-district-button>strong{font-size:10px}.estate-district-picker .estate-district-button>small{font-size:8px}}
@media(max-width:380px) and (max-height:480px){.estate-dialog-heading{height:40px;min-height:40px}.estate-dialog-body{gap:4px;padding:5px 7px 6px}.estate-district-picker .estate-district-button{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:3px}.estate-district-picker .estate-district-emblem{display:none}.estate-district-picker .estate-district-button>strong,.estate-district-picker .estate-district-button>small{align-self:stretch;text-align:center}.estate-dialog .estate-milestones{gap:2px}.estate-dialog .estate-milestone-button .estate-reward-icon,.estate-dialog .estate-milestone-button .estate-sprite{width:21px;height:21px;flex-basis:21px}}
@media(forced-colors:active){.estate-navigation-arrow,.estate-district-trigger,.estate-district-picker,.estate-scene-status{border-color:ButtonText;background:Canvas;color:ButtonText;box-shadow:none}.estate-district-trigger-copy>small,#estateDistrictPosition,.estate-district-picker-heading>strong,.estate-district-trigger .settings-popup-icon{color:CanvasText}.estate-scene-viewport{border-color:CanvasText}}

@media(max-width:380px){.estate-collection-count{display:none}}
.character-card[data-attack-style=bow] .character-preview img{width:640%;left:-4%;top:-14%}
.character-card[data-attack-style=saber] .character-preview img{width:720%;left:-9%;top:-23%}
/* UI direction is scoped to menus; world coordinates and physical keys stay fixed. */
html:lang(ja){--font:'Outfit','Yu Gothic','Meiryo','Noto Sans KR',sans-serif}
html:lang(zh-CN){--font:'Outfit','Microsoft YaHei','PingFang SC','Noto Sans KR',sans-serif}
html:lang(zh-TW){--font:'Outfit','Microsoft JhengHei','PingFang TC','Noto Sans KR',sans-serif}
html:lang(ar){--font:'Tahoma','Arial',sans-serif}
[data-ui-direction]{text-align:start}
[data-ui-dir=rtl] :is(.settings-section-title,.keyboard-helper-description,.settings-form-description,.practice-text-help,.reset-progress-panel p){letter-spacing:normal}
[data-ui-dir=rtl] :is(.language-choice,.keyboard-layout-picker,.estate-district-button,.estate-district-trigger){text-align:start}
[data-ui-dir=rtl] .settings-picker-back svg,[data-ui-dir=rtl] .settings-picker-back-action svg{transform:rotate(0deg)}
[data-ui-dir=rtl] .settings-picker-back{margin-inline:0 5px}
[data-ui-dir=rtl] :is(.camp-next-arrow,.overlay-forward-icon){transform:rotate(180deg)}
:is(.battle-topbar,.movement-pad,.keyboard-overlay,.upgrade-preview,.upgrade-price,.camp-reward,.camp-wallet,.camp-level,.camp-gain,.estate-navigation,.estate-scene,.estate-milestones,.language-choice-code){direction:ltr;unicode-bidi:isolate}
:is(.difficulty-choice>strong,.settings-section-title,.settings-section-value,.settings-picker-heading h2){overflow-wrap:anywhere}
.settings-section-header{min-height:56px;height:auto}
.settings-section-title{line-height:1.35;white-space:normal}
.settings-section-value{line-height:1.4}
html:lang(ar) :is(.dialog-heading h2,.settings-picker-heading h2,.overlay-card h2,.camp-heading h3){letter-spacing:normal}
[data-ui-dir=rtl] .settings-section-value{margin-left:0;margin-right:auto}
[data-ui-dir=rtl] .settings-draft-status{margin:0 0 0 auto}
[data-ui-dir=rtl] :is(.settings-dialog,.settings-picker-dialog) select{padding-right:12px;padding-left:40px;background-position:left 14px center}
.character-options,.hero-navigation{direction:ltr}
