.rpg-dpad{position:relative}.rpg-dpad>.joystick-centre{z-index:2;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#315a59c9;border-color:#e5d8a257;padding:0;position:relative;overflow:visible}.joystick-knob{color:#f4e5b9;pointer-events:none;will-change:transform;background:#416e68;border:1px solid #e6d5a488;border-radius:50%;place-items:center;width:30px;height:30px;transition:transform .12s ease-out;display:grid;position:absolute;box-shadow:0 2px 7px #153b3966}.rpg-dpad .joystick-knob>svg{stroke-width:1.5px;width:16px;height:16px}.joystick-range{opacity:0;pointer-events:none;background:#244a4933;border:1px solid #f0e2ac66;border-radius:50%;width:84px;height:84px;transition:opacity .12s;position:absolute}.rpg-dpad>.joystick-centre.dragging{cursor:grabbing;background:#456e64}.joystick-centre.dragging .joystick-knob{background:#6b9280;border-color:#ffedb6;transition:none;box-shadow:0 2px 10px #143a3b88}.joystick-centre.dragging .joystick-range{opacity:1}.joystick-caption{white-space:nowrap;letter-spacing:.3px;color:#f6edcf;text-shadow:0 1px 3px #173d3d;pointer-events:none;-webkit-user-select:none;user-select:none;font-size:8px;position:absolute;bottom:-15px;left:50%;transform:translate(-50%)}@media (pointer:coarse){.joystick-knob{width:34px;height:34px}.rpg-dpad .joystick-knob>svg{width:19px;height:19px}}@media (prefers-reduced-motion:reduce){.joystick-knob,.joystick-range{transition:none}}.rpg-dpad>.joystick-centre{background:radial-gradient(circle at 40% 30%,#60897a,#315a55);border-radius:50%;box-shadow:0 3px 8px #183e3c35,inset 0 1px #f3e5b355}.joystick-knob{background:radial-gradient(circle at 40% 30%,#7b9b82,#416e68);width:34px;height:34px;box-shadow:0 3px 5px #153b3966,inset 0 1px #e8e3b74d}.joystick-centre.dragging .joystick-range{border-style:dashed}.rpg-dpad>button:active,.battle-direction:active{box-shadow:inset 0 2px 4px #204c4544;background:#6f8f76!important}.joystick-centre:focus-visible{outline-offset:3px;outline:3px solid #f4e4a9}.battle-overlay{z-index:65;color:#f3e8bd;background:#203d38;font-family:Avenir Next,Avenir,sans-serif;position:fixed;inset:0}.battle-stage{background:#b5cfb3;width:100%;height:100%;min-height:480px;position:relative;overflow:hidden}.battle-stage>canvas{touch-action:none;outline:none;width:100%;height:100%;display:block}.battle-top{pointer-events:none;justify-content:space-between;align-items:flex-start;gap:12px;display:flex;position:absolute;top:19px;left:25px;right:25px}.battle-top>div{background:#244c44ed;border:1px solid #d8cf9f44;border-radius:10px;max-width:420px;padding:14px 19px}.battle-top span{letter-spacing:1.7px;color:#cfbf87;font-size:8px}.battle-top h2{color:#f1e8c7;margin:7px 0;font:30px/1.2 Georgia,serif}.battle-top small{color:#bfd0b1;font-size:11px}.battle-top>button{pointer-events:auto;color:#e6dcae;background:#244c44ed;border:1px solid #d7d4aa66;border-radius:9px;place-items:center;width:44px;height:44px;display:grid}.battle-health{color:#44604d;background:#f6efd9ed;border-radius:9px;width:220px;padding:12px 15px;position:absolute;top:25px;right:95px}.battle-health>div+div{margin-top:10px}.battle-health span{align-items:center;gap:6px;margin-bottom:5px;font-size:10px;display:flex}.battle-health progress{accent-color:#6d9b7c;background:#cfd3b6;border:0;border-radius:8px;width:100%;height:7px;display:block;overflow:hidden}.battle-health progress::-webkit-progress-value{background:#789d74}.battle-instruction{color:#e9e6c3;text-align:center;pointer-events:none;background:#294e45e8;border:1px solid #e4d5a58a;border-radius:7px;width:max-content;max-width:90%;padding:10px 17px;font-size:12px;position:absolute;top:146px;left:50%;transform:translate(-50%)}.battle-story-shade,.spell-overlay{z-index:8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#183e38bd;justify-content:center;align-items:center;padding:26px;display:flex;position:absolute;inset:0;overflow:auto}.battle-story-card{color:#4b6650;text-align:center;background:#f4edd4;border:1px solid #d5c38f;border-radius:15px;width:min(560px,100%);max-height:100%;padding:32px 39px;overflow:auto;box-shadow:0 20px 65px #16362f44}.battle-story-card h2{color:#31584d;margin:15px 0;font:34px/1.2 Georgia,serif}.battle-story-card>p{margin:12px 0;font:17px/1.65 Georgia,serif}.battle-story-card>.rpg-kicker{color:#8e7949;letter-spacing:2px;justify-content:center;align-items:center;gap:7px;font-size:8px;display:flex}.battle-story-card>.rpg-text{color:#6b775b;justify-content:center;align-items:center;gap:7px;margin:15px auto 0;font-size:12px;display:flex}.battle-story-actions{justify-content:space-between;align-items:center;gap:13px;margin:22px 0 15px;display:flex}.battle-story-actions>.rpg-text{color:#65765b;font-size:11px}.battle-story-card>small{color:#819072;margin-top:14px;font-size:9px;line-height:1.7;display:block}.battle-creature-portrait{filter:drop-shadow(0 7px 10px #8b795e28);background-size:200% 200%;width:155px;height:155px;margin:16px auto 0}.battle-reward{background:#e8dfb9;border-radius:8px;justify-content:center;align-items:center;gap:8px;margin:19px 0;padding:13px;font-size:12px;line-height:1.6;display:flex}.battle-next{text-align:left;border:1px solid #c5c9a2;border-radius:7px;margin-bottom:18px;padding:14px}.battle-next>span{letter-spacing:2px;color:#8c794a;font-size:8px}.battle-next>p{margin:5px 0 0;font-size:12px;line-height:1.7}.spell-overlay{z-index:12;background:#183e38db}.spell-panel{color:#3a5f50;background:#f4edd6;border:1px solid #d6c48e;border-radius:15px;width:min(620px,100%);max-height:100%;padding:25px 30px;overflow:auto}.spell-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.spell-top>span{letter-spacing:1.5px;color:#947b46;font-size:8px}.spell-top button{color:#748060;background:0 0;border:0;place-items:center;width:44px;height:44px;display:grid}.spell-panel h2{margin:10px 0 12px;font:33px/1.2 Georgia,serif}.spell-panel>p{font-size:13px;line-height:1.8}.spell-thinking{background:#e7e6c9;border-radius:5px;justify-content:center;align-items:center;gap:8px;padding:9px;font-size:10px;display:flex}.spell-ring{max-width:285px;margin:13px auto 3px}.spell-ring svg{touch-action:manipulation;width:100%;height:auto;display:block}.spell-ring path{cursor:pointer}.spell-ring path:focus-visible{stroke:#fff4c2;stroke-width:7px;outline:none}.spell-panel .spell-caption{text-align:center;color:#708262;margin:5px 0 13px;font-size:10px}.spell-baskets{flex-wrap:wrap;justify-content:center;gap:10px;padding:18px 0;display:flex}.spell-baskets>div{text-align:center;background:#e7e6c8;border:1px solid #bbc49c;border-radius:10px;width:120px;padding:12px}.spell-baskets>div>span{letter-spacing:1px;font-size:8px}.spell-orbs{flex-wrap:wrap;place-content:center;gap:4px;min-height:55px;padding:7px 0;display:flex}.spell-orbs>i{background:#d8b869;border:1px solid #b79750;border-radius:50%;width:11px;height:11px;box-shadow:0 0 8px #ddc77c55}.spell-orbs small{color:#899270;font-size:9px}.spell-counter{justify-content:center;align-items:center;display:flex}.spell-counter>button{color:#526c52;background:0 0;border:0;place-items:center;width:38px;height:44px;display:grid}.spell-counter strong{min-width:24px;font:22px Georgia,serif}.spell-baskets>.spell-caption{flex-basis:100%}.spell-mirror{text-align:center;margin:14px 0}.spell-mirror svg{width:225px;max-width:100%;margin:auto;display:block}.spell-mirror button{color:#48634d;background:#e4d6a9;border:1px solid #c2ac70;border-radius:7px;align-items:center;gap:10px;min-height:44px;padding:10px 17px;font-size:11px;display:inline-flex}.spell-hint{background:#e6e8cf;border-left:2px solid #a8935b;align-items:flex-start;gap:9px;margin-top:12px;padding:11px 14px;display:flex}.spell-hint svg{flex-shrink:0;margin-top:2px}.spell-hint p{margin:0;font-size:11px;line-height:1.7}.spell-feedback{color:#758367;min-height:32px;font-size:11px!important}.spell-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.spell-actions>button:first-child{color:#68775a;background:0 0;border:0;align-items:center;gap:7px;min-height:44px;font-size:11px;display:flex}.spell-curriculum{color:#929776;margin-top:15px;font-size:8px;display:block}.battle-story-card button,.spell-panel button{flex-shrink:0}.battle-story-card button:disabled,.spell-panel button:disabled{opacity:.5}.battle-victory-card h2{font-size:30px}.battle-victory-card>p{font-size:15px}@media (max-width:600px){.battle-top{top:12px;left:12px;right:12px}.battle-top>div{max-width:calc(100% - 52px);padding:10px 13px}.battle-top h2{margin:5px 0;font-size:21px}.battle-top span{letter-spacing:1px;font-size:6px}.battle-top small{font-size:9px}.battle-health{gap:13px;width:auto;padding:10px 12px;display:flex;top:112px;left:12px;right:12px}.battle-health>div{flex:1;min-width:0}.battle-health>div+div{margin:0}.battle-health span{font-size:8px;line-height:1.5}.battle-instruction{max-width:calc(100% - 24px);padding:8px 11px;font-size:10px;line-height:1.6;top:177px}.battle-story-shade,.spell-overlay{padding:16px}.battle-story-card{padding:23px}.battle-story-card h2{font-size:29px}.battle-story-card>p{font-size:16px}.battle-story-actions{flex-wrap:wrap;justify-content:center}.battle-story-card .rpg-primary{min-height:44px;font-size:11px}.battle-creature-portrait{width:130px;height:130px}.spell-panel{padding:17px 20px}.spell-panel h2{font-size:27px}.spell-panel>p{font-size:12px}.spell-ring{max-width:245px}.spell-baskets{gap:6px}.spell-baskets>div{width:calc(50% - 5px);padding:8px}.spell-panel .spell-caption{font-size:9px}.spell-actions{gap:8px}.spell-actions .rpg-primary{min-height:44px;padding:11px 13px;font-size:10px}.battle-next>p{font-size:11px}.battle-victory-card>p{font-size:14px}.battle-reward{font-size:10px}}@media (max-height:540px) and (min-width:601px){.battle-top{top:10px}.battle-top h2{font-size:21px}.battle-health{top:12px}.battle-instruction{top:108px}.battle-stage{min-height:0}.battle-story-card{padding:18px 27px}.battle-creature-portrait{width:100px;height:100px}}.encounter-log{background:#e9ecd5;border:1px solid #b7c19c;border-radius:10px;margin:20px 0;padding:18px}.encounter-log-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.encounter-log-heading span{letter-spacing:1.6px;color:#8d794c;font-size:7px}.encounter-log-heading h3{color:#355d50;margin:6px 0;font:24px/1.2 Georgia,serif}.encounter-log>p{color:#718164;font-size:11px;line-height:1.8}.encounter-support{color:#5d7456;flex-wrap:wrap;align-items:center;gap:8px;margin:15px 0;font-size:10px;display:flex}.encounter-support select{color:#49664d;background:#f5f0dc;border:1px solid #b8bc92;border-radius:5px;max-width:100%;min-height:44px;padding:8px;font-size:10px}.encounter-log-grid{gap:12px;display:grid}.encounter-log-grid article{background:#f3efd8;border-radius:8px;gap:13px;padding:13px 10px;display:flex}.encounter-mini{background-size:200% 200%;flex-shrink:0;width:76px;height:76px;margin-top:9px}.encounter-log-grid article>div+div{min-width:0}.encounter-log-grid article span{letter-spacing:1px;color:#8d7f4c;font-size:7px}.encounter-log-grid h4{color:#3d624f;margin:5px 0;font:20px/1.25 Georgia,serif}.encounter-log-grid p{color:#6f7e60;margin:6px 0;font-size:11px;line-height:1.65}.encounter-log-grid small{color:#8c8560;font-size:9px;line-height:1.6;display:block}.encounter-log-grid button{color:#44634c;background:#d8c993;border:0;border-radius:5px;align-items:center;gap:7px;min-height:44px;margin-top:9px;padding:8px 11px;font-size:10px;display:flex}.encounter-log-grid button:disabled{opacity:.45}.encounter-arena-link{color:#46694f;background:#dce4c8;border-radius:7px;align-items:center;gap:11px;margin-top:14px;padding:14px;font-size:13px;text-decoration:none;display:flex}.encounter-arena-link>span{flex:1}.encounter-arena-link small{color:#728063;margin-top:4px;font-size:9px;line-height:1.6;display:block}.rpg-error-front{z-index:100!important;position:fixed!important;bottom:15px!important}.rpg-header .gear-header-button:disabled{opacity:.4}@media (max-width:390px){.rpg-tools .seed-header-pouch{display:none}.rpg-header{padding-left:10px;padding-right:10px}.rpg-tools{gap:3px}.rpg-tools>button{width:44px;height:44px}.rpg-brand{letter-spacing:1px;gap:5px;font-size:9px}.rpg-brand>svg{width:23px}.encounter-log{padding:12px}.encounter-log-heading h3{font-size:21px}.encounter-mini{width:58px;height:58px}.encounter-log-grid article{gap:7px;padding:11px 8px}.encounter-log-grid h4{font-size:18px}}.battle-overlay{justify-content:center;align-items:center;display:flex}.battle-overlay>.battle-stage{width:min(100%,1440px);height:min(100dvh,900px);min-height:0}.spell-panel:focus,.battle-story-card:focus{outline:none}.battle-story-card .battle-fragments{color:#8a815d;margin:0 0 14px;font-family:Avenir Next,sans-serif;font-size:10px;line-height:1.6}.battle-practice{color:#365b4d;text-align:center;background:#f4edd7f5;border:1px solid #d2bd80;border-radius:12px;width:min(430px,100% - 28px);padding:17px 22px;position:absolute;top:140px;left:50%;transform:translate(-50%);box-shadow:0 7px 28px #294c3824}.battle-practice>.rpg-kicker{letter-spacing:1.2px;color:#827041;font-size:8px}.battle-practice ol{gap:6px;margin:12px 0;padding:0;list-style:none;display:flex}.battle-practice li{color:#778467;background:#e1e3ca;border:1px solid #0000;border-radius:5px;flex:1;padding:7px 3px;font-size:10px}.battle-practice li.current{color:#5c663d;background:#f0e0ad;border-color:#a68b45}.battle-practice li.complete{color:#426949;background:#cbdcbb}.battle-practice strong{font:21px/1.25 Georgia,serif}.battle-practice p{min-height:36px;margin:8px 0 12px;font-size:11px;line-height:1.65}.battle-practice .rpg-primary{justify-content:center;min-height:44px;margin:auto;font-size:11px}.battle-practice .rpg-primary:disabled{opacity:.45}.battle-practice .rpg-text{color:#607253;min-height:44px;margin:auto;font-size:10px;display:block}@media (max-width:600px){.battle-practice{padding:12px 15px;top:112px}.battle-practice strong{font-size:19px}.battle-practice p{margin:6px 0;font-size:10px}.battle-practice ol{margin:8px 0}.battle-practice li{padding:6px 2px;font-size:9px}}@media (max-height:540px) and (min-width:601px){.battle-practice{width:min(300px,40vw);max-height:calc(100dvh - 110px);padding:10px 15px;top:98px;left:50%;overflow:auto;transform:translate(-50%)}.battle-practice ol{margin:7px 0}.battle-practice p{min-height:0;margin:5px 0;font-size:10px}.battle-practice .rpg-primary,.battle-practice .rpg-text{min-height:44px}.battle-practice{text-align:left;grid-template-columns:minmax(0,1fr) 130px;gap:5px 12px;width:min(530px,100% - 350px);max-height:none;display:grid;top:10px;left:auto;right:90px;overflow:visible;transform:none}.battle-practice>.rpg-kicker{letter-spacing:.8px;grid-column:1/3;font-size:7px}.battle-practice ol{display:none}.battle-practice>[role=status]{grid-area:2/1/4;align-self:center}.battle-practice strong{font-size:17px}.battle-practice p{font-size:10px;line-height:1.45}.battle-practice .rpg-primary{grid-area:2/2;gap:4px;width:100%;padding:6px;font-size:9px}.battle-practice .rpg-text{text-align:center;grid-area:3/2;width:100%;padding:4px;font-size:9px;line-height:1.4}}.battle-overlay{background:#153c3b}.battle-top>div{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(125deg,#173e3bf2,#28574de8);border-color:#c9b97a75 #c9b97a75 #c9b97a75 #c7aa65;border-left-style:solid;border-left-width:3px;border-radius:4px 13px 13px 4px;padding:14px 19px 15px;box-shadow:0 8px 28px #193a3826}.battle-top span{color:#d4be84}.battle-top h2{color:#fff0d1;letter-spacing:-.6px}.battle-top small{color:#c9dbc5}.battle-top>button{color:#f3e7bd;background:#173f3bea;border-color:#b9b08080;box-shadow:0 4px 15px #183b3826}.battle-health{color:#eadfbd;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(120deg,#173e3bed,#28594de8);border:1px solid #b3ad7b6b;box-shadow:0 6px 25px #173d3326}.battle-health span{color:#e7dfbf}.battle-health progress{accent-color:#9fb98a;background:#133c39;border:1px solid #d7ce9c33;height:8px}.battle-health progress::-webkit-progress-bar{background:#133c39}.battle-health progress::-webkit-progress-value{background:linear-gradient(90deg,#7ca780,#c3cd91);border-radius:8px}.battle-health>div+div progress::-webkit-progress-value{background:linear-gradient(90deg,#9181ac,#d5b6de)}.battle-instruction{color:#fff0cb;letter-spacing:.1px;background:#173e3bec;border-color:#d7c48f80;font-size:11px;box-shadow:0 3px 15px #193d2e1f}.battle-story-shade{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:linear-gradient(120deg,#123b3594,#183b46ab)}.battle-story-card{background:linear-gradient(145deg,#fbf4de,#eee3c5);border:1px solid #d9be7e;border-radius:17px;box-shadow:0 0 0 5px #eee6ca1a,0 24px 90px #102e3a66}.battle-creature-portrait{filter:drop-shadow(0 10px 13px #5c684336)}.battle-release-banner{white-space:nowrap;color:#fff0c2;pointer-events:none;background:#194c43e6;border:1px solid #d8c07b;border-radius:9px;align-items:center;gap:10px;padding:17px 24px;font:23px Georgia,serif;display:flex;position:absolute;top:28%;left:50%;transform:translate(-50%);box-shadow:0 8px 35px #153e352c}.battle-release-banner svg{color:#e6cb86}.battle-picture-controls{text-align:left;color:#4b6750;background:#e6e8d157;border:1px solid #bdc4a0;border-radius:9px;min-width:0;margin:20px 0 22px;padding:12px 15px 13px}.battle-picture-controls legend{color:#526e55;align-items:center;gap:7px;padding:0 7px;font-size:11px;display:flex}.battle-picture-controls label{align-items:center;gap:9px;min-height:36px;font-size:11px;line-height:1.5;display:flex}.battle-picture-controls input[type=checkbox]{accent-color:#486e59;flex-shrink:0;width:18px;height:18px}.battle-picture-controls .battle-shake-label{min-height:64px;display:block}.battle-shake-label>span{justify-content:space-between;align-items:center;display:flex}.battle-shake-label output{font-variant-numeric:tabular-nums;color:#7f794d}.battle-picture-controls input[type=range]{accent-color:#7b9569;width:100%;min-height:36px;margin:0;display:block}.battle-picture-controls small{color:#7a8568;margin-top:7px;font-size:9px;line-height:1.6;display:block}.battle-picture-controls input:focus-visible{outline-offset:3px;outline:2px solid #9b834c}.battle-picture-controls input:disabled{opacity:.5}.arena-rest .battle-picture-controls{color:#49674f;background:#f0ead5;flex-shrink:0;width:min(360px,90%);margin:12px auto}.arena-rest{overscroll-behavior:contain;overflow-y:auto}@media (max-width:600px){.battle-top>div{padding:10px 13px}.battle-top h2{font-size:22px}.battle-health{padding:10px 12px;top:113px}.battle-instruction{padding:7px 10px;font-size:10px;top:181px}.battle-release-banner{gap:7px;padding:13px 17px;font-size:18px;top:30%}.battle-picture-controls{margin:17px 0;padding:10px 12px}.battle-picture-controls label{font-size:10px}}@media (max-height:540px) and (min-width:601px){.battle-health{top:12px}.battle-top h2{font-size:21px}.battle-instruction{top:113px}.battle-release-banner{font-size:20px;top:32%}.battle-picture-controls{margin:12px 0}.arena-rest{justify-content:flex-start;padding-top:15px;padding-bottom:15px}}@media (prefers-reduced-motion:reduce){.battle-overlay *,.arena-world-wrap *{scroll-behavior:auto!important}}@media (min-width:601px) and (min-height:541px){.battle-practice{top:24px}}@keyframes battle-result-arrive{0%{-webkit-backdrop-filter:blur();backdrop-filter:blur();background:#173b3b26}to{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#173b3bf0}}.arena-result{animation:.8s ease-out both battle-result-arrive}.battle-stage[data-calm=true] .arena-result{animation:none}@media (prefers-reduced-motion:reduce){.arena-result{animation:none}}.battle-stage{container-type:inline-size}.spell-explanation{background:#e7e8ce;border:1px solid #bdc6a0;border-radius:10px;margin:20px 0;padding:20px}.spell-method-kicker{letter-spacing:1.6px;color:#647b5b;font-size:8px}.spell-explanation h3{margin:11px 0 18px;font:24px/1.3 Georgia,serif}.spell-explanation p{margin:12px 0;font-size:13px;line-height:1.8}.spell-explanation>small,.spell-check-note{color:#667958;line-height:1.7;font-size:11px!important}.spell-model-bars>div{margin:14px 0}.spell-model-bars span{margin:0 0 7px;font-size:11px;display:block}.spell-model-bar{background:#9daf97;border-radius:4px;gap:2px;height:34px;padding:2px;display:grid}.spell-model-bar i{background:#d4ddc0}.spell-model-bar i.lit{background:#b89145}.spell-model-groups{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.spell-model-groups>div{border:1px solid #a6b38d;border-radius:8px;grid-template-columns:repeat(2,12px);gap:5px;padding:10px;display:grid}.spell-model-groups i{background:#b89145;border-radius:50%;width:12px;height:12px}.spell-model-angle{width:210px;max-width:100%;margin:auto;display:block}.spell-review-actions{flex-wrap:wrap;justify-content:flex-end}.spell-review-actions>button:first-child:not(.rpg-primary){margin-right:auto}.spell-review-actions>.rpg-primary{gap:9px;padding:12px 20px;color:#f3e7b8!important;background:#365e50!important;font-size:12px!important;display:flex!important}.spell-review-actions>button:focus-visible{outline-offset:3px;outline:3px solid #967b38}@media (max-width:600px){.spell-explanation{padding:15px}.spell-explanation h3{font-size:22px}.spell-explanation p{font-size:12px}.spell-model-bar{height:29px}.spell-review-actions{justify-content:center}.spell-review-actions>button:first-child:not(.rpg-primary){margin-right:0}}.battle-feedback{z-index:3;flex-direction:column;gap:3px;min-width:190px;padding:8px 15px;line-height:1.4;display:flex}.battle-feedback strong{color:#f5ebc5;font-size:12px;font-weight:600}.battle-feedback span{color:#d7e0c5;font-size:10px}.battle-feedback[data-tone=magic]{background:#234e49f2;border-color:#b5ddcc}.battle-feedback[data-tone=magic] strong{color:#d0f1e1}.battle-feedback[data-tone=danger]{background:#57452ff5;border-color:#e5b36f}.battle-feedback[data-tone=danger] strong{color:#ffe0a4}.battle-top>button{flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex}.battle-top>button small{color:#f2e3b6;font-size:10px}.battle-pause-card{width:min(780px,100%)}.battle-pause-card>p{font-size:14px}.battle-picture-details{text-align:left;color:#516a52;margin:15px 0;font-size:12px}.battle-picture-details>summary{cursor:pointer;min-height:44px;padding:12px 0}.arena-rest>.play-controls-guide{flex-shrink:0;width:min(650px,100%)}.arena-rest .battle-picture-details{color:#d7e4c3;flex-shrink:0}.battle-story-card .play-controls-guide p{font-size:12px}.battle-story-card .play-controls-guide h3{font-size:20px}@media (max-width:600px){.battle-pause-card{padding:20px 17px}}@media (max-height:540px) and (min-width:601px){.arena-rest .play-controls-guide{margin:12px 0}.arena-rest .play-controls-guide>p{white-space:normal}}@media (max-height:540px) and (min-width:760px){.arena-immersive .arena-rest{grid-template-rows:auto auto auto 1fr;grid-template-columns:190px minmax(0,1fr);place-content:start stretch;align-items:start;gap:9px 18px;padding:15px 18px;display:grid}.arena-rest>svg{display:none}.arena-immersive .arena-rest>h2{grid-area:1/1;margin:0;font-size:22px}.arena-immersive .arena-rest>p{white-space:normal;grid-area:2/1;margin:0;font-size:11px;line-height:1.6}.arena-rest>button.rpg-primary{grid-area:3/1;min-height:44px}.arena-rest>.play-controls-guide{grid-area:1/2/5;width:100%;padding:12px 14px;margin:0!important}.arena-rest>.battle-picture-details{grid-area:4/1;margin:0}.arena-rest .play-controls-guide h3{margin-bottom:9px;font-size:19px}.arena-rest .play-controls-head{grid-template-columns:52px 1fr 1fr;gap:8px;font-size:10px}.arena-rest .play-controls-guide dl>div{grid-template-columns:52px 1fr 1fr;gap:8px;padding:6px 0;font-size:11px;line-height:1.5}}.battle-top>.battle-top-actions{pointer-events:auto;background:0 0;border:0;align-items:flex-start;gap:8px;max-width:none;padding:0;display:flex}.battle-top-actions>button{color:#f2e3b6;cursor:pointer;background:#244c44ed;border:1px solid #d7d4aa66;border-radius:9px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:48px;min-height:48px;display:flex}.battle-top-actions small{font-size:9px}.battle-top-actions>button:focus-visible{outline-offset:3px;outline:3px solid #ffefbd}.battle-health{right:155px}.battle-sound-details{text-align:left;margin:14px 0;font-size:13px}.battle-sound-details>summary{cursor:pointer;min-height:44px;padding:12px 0}.battle-sound-details .sound-settings{margin:8px 0}.arena-rest>.battle-sound-details{color:#d7e4c3;flex-shrink:0;width:min(650px,100%)}.arena-rest>.battle-sound-details .sound-settings{color:#34594d;background:#e8ead3;border-radius:9px;padding:13px 17px}.battle-top-actions>button[aria-pressed=false]{color:#ffe5a7;border-color:#e5c77e}@media (max-width:600px){.battle-top>div:first-child{max-width:calc(100% - 108px)}.battle-top>.battle-top-actions{gap:6px}.battle-top-actions>button{min-width:44px;min-height:48px}.battle-health{right:12px}}@media (max-height:540px) and (min-width:760px){.arena-rest>.battle-sound-details{grid-area:4/1;width:100%;margin:0}.arena-rest>.battle-picture-details{grid-row:5}.arena-rest>.play-controls-guide{grid-row:1/6}}@media (min-width:601px) and (max-width:900px){.battle-top>div:first-child{max-width:calc(100% - 355px)}}@media (max-width:360px){.battle-top>div:first-child{padding:9px 10px}.battle-top h2{font-size:18px;line-height:1.18}.battle-top>div:first-child>span{letter-spacing:.7px;font-size:6px}.battle-top>div:first-child>small{font-size:8px}}.battle-practice strong,.battle-practice li{justify-content:center;align-items:center;gap:5px;display:flex}.battle-practice strong svg,.battle-practice li svg{flex:none}.battle-practice-inputs{color:#244d3d;text-align:left;gap:3px;margin:6px 0;display:grid}.battle-practice-inputs div{grid-template-columns:4.4rem 1fr;align-items:baseline;gap:4px;display:grid}.battle-practice-inputs dt{font-size:12px;font-weight:750}.battle-practice-inputs dd{margin:0;font-size:12px;line-height:1.45}.battle-practice-inputs kbd{font:inherit;font-weight:750}.battle-overlay[data-practice-step=strike] .battle-strike,.battle-overlay[data-practice-step=dodge] .battle-dodge{outline-offset:3px;outline:3px solid #f4d67b}@media (max-height:540px) and (min-width:601px){.battle-practice strong{justify-content:flex-start}.battle-practice .rpg-primary,.battle-practice .rpg-text{grid-area:2/2/4;align-self:center}}@media (max-width:600px) and (max-height:670px){.battle-practice{padding:8px 12px;top:96px}.battle-practice ol{margin:5px 0}.battle-practice-inputs{margin:4px 0}}@media (max-height:540px) and (min-width:601px){.battle-practice{grid-template-columns:minmax(0,1fr) 130px;gap:3px 8px;width:min(490px,100% - 190px);padding:7px 11px}.battle-practice-inputs div{grid-template-columns:3.8rem 1fr}.battle-practice-inputs dt,.battle-practice-inputs dd{font-size:11px;line-height:1.3}}.battle-controls{left:max(15px,env(safe-area-inset-left));right:max(15px,env(safe-area-inset-right));bottom:max(15px,env(safe-area-inset-bottom));z-index:2;pointer-events:none;justify-content:space-between;align-items:end;gap:10px;display:flex;position:absolute}.battle-controls:before{content:"";z-index:-1;pointer-events:none;background:linear-gradient(#0000,#112b38ae);position:absolute;inset:-28px -16px -18px}.battle-controls button{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.battle-controls button:focus-visible{outline-offset:3px;outline:2px solid #fff0bd}.battle-dpad,.battle-action-buttons{pointer-events:auto;background:linear-gradient(145deg,#172d3be8,#0d2631f0);border:1px solid #9ab5b36b;border-radius:15px;padding:6px;box-shadow:inset 0 1px #f4eece26,0 5px 18px #0d293d82}.battle-controls .battle-dpad{grid-template-rows:auto;grid-template-columns:61px auto;place-items:center;gap:5px 9px;min-width:0;padding-right:10px;display:grid}.battle-dpad>.joystick-centre{background-color:#0000;background-image:linear-gradient(#cec49a75,#cec49a75),linear-gradient(#cec49a75,#cec49a75),linear-gradient(#cec49a75,#cec49a75),linear-gradient(#cec49a75,#cec49a75),radial-gradient(circle,#223e4e 41%,#d7bf7e8c 43% 44%,#284b56 46% 66%,#142c3c 68%);background-position:50% 5px,50% calc(100% - 5px),5px,calc(100% - 5px),0 0;background-repeat:no-repeat;background-size:1px 6px,1px 6px,6px 1px,6px 1px,auto;background-attachment:scroll,scroll,scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box,border-box;border:1px solid #e5d29c;grid-area:1/1/3;place-items:center;width:59px;height:59px;margin:0;display:grid;box-shadow:inset 0 0 0 3px #0f2c38aa,0 2px 5px #0d2333}.battle-dpad>.joystick-centre.dragging{background:radial-gradient(circle,#365e68 48%,#234550 69%,#152b38 71%)}.battle-dpad .joystick-knob{background:radial-gradient(circle at 40% 25%,#719897,#385a64 68%);border-color:#f6de9dbb;width:29px;height:29px}.battle-dpad .joystick-range{width:102px;height:102px}.battle-dpad .joystick-caption{display:none}.battle-steering-copy{color:#fcf4db;text-align:left;place-self:end start;gap:2px;line-height:1.24;display:grid}.battle-steering-copy strong{font-size:.85rem}.battle-drag-label,.battle-move-keys{color:#c7dcd8;font-size:.66rem}.battle-move-keys{align-items:center;gap:3px;display:flex}.battle-move-keys kbd,.battle-action-buttons kbd{font-family:inherit}.battle-step-buttons{grid-column:2;align-self:start;gap:3px;display:flex}.battle-step-buttons>button{color:#fff1c5;background:#244857;border:1px solid #c5d8c877;border-radius:5px;place-items:center;width:27px;height:25px;padding:0;display:grid;box-shadow:inset 0 1px #eef3e029}.battle-step-buttons svg{width:15px;height:15px}.battle-action-buttons{grid-auto-columns:minmax(83px,1fr);grid-auto-flow:column;gap:5px;min-width:0;display:grid}.battle-action-buttons>button{--action-edge:#93bfc4;--action-light:#f1f6e5;--action-mid:#315966;--action-base:#1a3745;border:1px solid var(--action-edge);background:linear-gradient(154deg,var(--action-mid),var(--action-base));min-width:0;min-height:61px;color:var(--action-light);text-align:left;font:inherit;cursor:pointer;border-radius:9px;grid-template-columns:19px minmax(0,1fr);align-items:center;gap:6px;margin:0;padding:15px 8px 9px;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 1px #fff8cf48,0 2px #0d2536}.battle-action-buttons .battle-strike{--action-edge:#ffdf8c;--action-light:#2f271b;--action-mid:#f4d180;--action-base:#d8a455}.battle-action-buttons .battle-heavy{--action-edge:#e7b980;--action-light:#fff1d6;--action-mid:#69563f;--action-base:#412f2b}.battle-action-buttons .battle-guard{--action-edge:#8bd9cd;--action-light:#edfff1;--action-mid:#305c56;--action-base:#173c3a}.battle-action-buttons .battle-cast{--action-edge:#ceb7f5;--action-light:#fff5ff;--action-mid:#665682;--action-base:#3b3159}.battle-action-icon{stroke-width:1.65px;width:19px;height:19px}.battle-action-copy{gap:1px;min-width:0;display:grid}.battle-action-copy strong{overflow-wrap:anywhere;font-size:.83rem;font-weight:780;line-height:1.1}.battle-action-copy small{color:inherit;opacity:.9;font-size:.64rem;line-height:1.26}.battle-action-copy small:empty{display:none}.battle-action-buttons kbd{text-align:center;letter-spacing:.01em;background:#1d27382b;border:1px solid;border-radius:3px;min-width:15px;padding:0 3px;font-size:.6rem;line-height:1.2;position:absolute;top:3px;right:4px}.battle-action-buttons :is(.battle-dodge,.battle-heavy,.battle-guard):after{content:"";background:linear-gradient(90deg,var(--action-edge) var(--action-fill,0%),#0d2634a3 0);border-radius:2px;height:2px;position:absolute;bottom:3px;left:4px;right:4px}.battle-action-buttons>button:disabled{opacity:.72;cursor:default;filter:saturate(.45)}.battle-action-buttons>button:is([data-active=true],:active):not(:disabled){filter:brightness(1.15);box-shadow:inset 0 0 0 2px #f7f4da51,inset 0 3px 8px #142c4394}.battle-action-buttons>button:is([data-danger=true],[data-ready=true]){outline-offset:-3px;outline:2px solid #ffe0a5}.battle-action-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@container (width>=720px){.battle-action-buttons>button{min-width:97px}.battle-action-buttons .battle-cast{min-width:116px}}@container (width<=719px){.battle-step-buttons{display:none}.battle-controls .battle-dpad{grid-template-rows:auto auto;grid-template-columns:1fr;justify-items:center;padding:7px 8px}.battle-dpad>.joystick-centre{grid-row:1;width:64px;height:64px}.battle-steering-copy{text-align:center;white-space:nowrap;justify-self:center;justify-items:center}.battle-action-buttons{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;width:min(100% - 91px,209px)}.battle-action-buttons>button{grid-template-columns:16px minmax(0,1fr);gap:4px;min-height:47px;padding:11px 5px 5px}.battle-action-buttons .battle-cast{grid-column:1/-1;grid-template-columns:19px minmax(0,1fr);min-height:43px;padding-block:8px}.battle-cast .battle-action-copy{flex-wrap:wrap;align-items:baseline;gap:2px 6px;display:flex}.battle-cast kbd{top:5px}.battle-action-icon{width:16px;height:16px}}@container (width<=340px){.battle-controls{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(9px,env(safe-area-inset-bottom));gap:7px}.battle-dpad,.battle-action-buttons{gap:4px;padding:4px}.battle-controls .battle-dpad{padding:6px}.battle-action-copy strong{font-size:.78rem}}@media (any-pointer:coarse) and (hover:none){.battle-action-buttons kbd,.battle-move-keys,.battle-step-buttons{display:none}.battle-controls .battle-dpad{grid-template-rows:auto}.battle-action-buttons>button{padding-top:7px}}@media (max-height:460px) and (min-width:720px){.battle-controls{bottom:max(8px,env(safe-area-inset-bottom))}.battle-action-buttons>button{min-height:53px}.battle-dpad>.joystick-centre{width:50px;height:50px}}.play-controls-guide{color:#34594d;text-align:left;background:#e8ead3;border:1px solid #b6c6a0;border-radius:10px;margin:18px 0;padding:16px 18px}.play-controls-guide h3{color:#284f45;margin:0 0 14px;font:600 20px/1.2 Georgia,serif}.play-controls-head,.play-controls-guide dl>div{grid-template-columns:65px 1fr 1fr;gap:12px;display:grid}.play-controls-head{padding-bottom:8px;font-size:11px}.play-controls-head strong{align-items:center;gap:6px;display:flex}.play-controls-guide dl{margin:0}.play-controls-guide dl>div{border-top:1px solid #b2c49e66;padding:10px 0;font-size:12px;line-height:1.5}.play-controls-guide dt{font-weight:600}.play-controls-guide dd{margin:0}.play-controls-guide>p{color:#4c6552;margin:12px 0 0;font:12px/1.6 Avenir Next,sans-serif}.control-device{display:none}@media (max-width:600px){.play-controls-guide{padding:13px 14px}.play-controls-head{display:none}.play-controls-guide dl>div{grid-template-columns:56px 1fr;gap:5px 9px}.play-controls-guide dt{grid-row:1/3}.play-controls-guide dd{grid-column:2;font-size:12px}.control-device{font-weight:600;display:inline}.play-controls-guide h3{font-size:19px}}.sound-settings{text-align:left;border:1px solid #c8d0b4;border-radius:8px;min-width:0;margin:14px 0 20px;padding:14px 17px}.sound-settings legend{color:#44635b;padding:0 7px;font:16px Georgia,serif}.sound-enable{color:#526d62;align-items:center;gap:8px;font-size:12px;display:flex}.sound-enable input{accent-color:#4a7563;width:17px;height:17px}.sound-level{margin-top:13px;display:block}.sound-level>span{color:#687d69;justify-content:space-between;font-size:11px;display:flex}.sound-level output{font-variant-numeric:tabular-nums}.sound-level input{accent-color:#66816b;width:100%;min-height:28px}.sound-bottom{align-items:center;gap:12px;display:flex}.sound-bottom .rpg-text{white-space:nowrap;padding:8px 0;font-size:11px}.sound-bottom small{color:#89917d;font-size:10px;line-height:1.5}.sound-bottom .rpg-text{color:#476759;opacity:1;font-weight:500}.sound-bottom small{color:#71816a}
