
:root{--ink:#102d2c;--deep:#071e23;--panel:#102e32;--cream:#f7f2dc;--muted:#b1c8bd;--gold:#f5d482;--gold-deep:#b89449;--mint:#a8e7c5;--line:#91b7a33b;font-family:'Trebuchet MS','Segoe UI',sans-serif;color:var(--cream);background:var(--deep);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffdc87;outline-offset:4px}button,a{transition:background .15s,transform .15s,border-color .15s}button:hover:not(:disabled){filter:brightness(1.08)}button:active:not(:disabled){transform:translateY(2px)}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:normal}p{font-size:16px;line-height:1.65}button img{pointer-events:none}img{max-width:100%;user-select:none}svg{display:block}.overline{display:block;color:var(--gold);font-size:12px;font-weight:bold;letter-spacing:2.3px;line-height:1.5}.muted{color:var(--muted);font-size:14px}.gold-btn,.outline-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:13px 22px;border-radius:8px;text-decoration:none;border:1px solid #ffe4a1;background:linear-gradient(135deg,#f7d991,#e7bd65);color:#293829;font-weight:bold;font-size:16px;box-shadow:0 3px 0 #967846,0 8px 25px #0002}.gold-btn:hover{background:#ffe5a7}.outline-btn{background:#1b4140;color:var(--cream);border:1px solid #718f73;box-shadow:none}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:none;color:#c6dfc9;border:0;padding:9px 5px;font-size:14px;font-weight:bold;text-decoration:none}.text-button:hover{color:#ffdf94}.small-btn,.round-btn{min-height:40px;border:1px solid #d5e0c534;background:#112b2bcf;color:#eeeeda;border-radius:7px;font-weight:bold;font-size:13px;padding:9px 13px;backdrop-filter:blur(12px)}.round-btn{width:40px;padding:5px;font-size:20px}.small-btn:hover,.round-btn:hover{background:#3b5145}.world-game{height:100svh;min-height:620px;overflow:hidden}.world-viewport{height:100%;width:100%;position:relative;overflow:hidden;background:#153933;isolation:isolate}.world-camera{position:absolute;left:0;top:0;width:max(100%,calc(100svh * 1.5));height:100%;transform-origin:0 0;will-change:transform}.world-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;filter:brightness(var(--brightness)) saturate(var(--saturation));transition:filter 3s}.shadow-veil{position:absolute;inset:0;background:linear-gradient(130deg,#19323d33,#172a61a8 70%,#331c4870);pointer-events:none;transition:opacity 3s}.world-vignette{position:absolute;inset:0;pointer-events:none;z-index:4;background:linear-gradient(#071b23b5,transparent 28%,transparent 70%,#061b23ef),linear-gradient(90deg,#061c234d,transparent 40%)}.map-mist{position:absolute;inset:0;pointer-events:none;opacity:.18;background:radial-gradient(ellipse at 30% 40%,#c5e7e270,transparent 48%),radial-gradient(ellipse at 65% 65%,#c2d7dc80,transparent 50%);animation:mist 24s ease-in-out infinite alternate}.world-header{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:25px 36px;gap:15px;z-index:10}.wordmark{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:13px;font-weight:900;letter-spacing:1.6px;line-height:1.4;text-shadow:0 2px 6px #071d22}.wordmark small{display:block;font-size:9px;letter-spacing:3px;color:#d1c693;margin-top:3px}.wordmark-emblem{border:1px solid #e4ce83;border-radius:7px;width:35px;height:39px;display:grid;place-content:center;font-size:27px;position:relative;color:#f3d187;font-family:Georgia,serif}.wordmark-emblem>span{position:absolute;top:-9px;right:-4px;font-size:18px}.world-utilities{display:flex;gap:8px}.region-heading{position:absolute;top:112px;left:42px;z-index:6;max-width:420px;pointer-events:none}.region-heading .overline{font-size:10px;letter-spacing:2.2px;display:flex;align-items:center;gap:10px}.overline i{width:20px;height:1px;background:#d8c587}.region-heading h1{font-size:clamp(46px,5vw,74px);letter-spacing:-2px;line-height:1.08;margin:8px 0 12px;text-shadow:0 3px 25px #08242bb0}.region-heading p{font-size:14px;color:#e1e6ce;text-shadow:0 1px 8px #082b2b}.seed-counter{position:absolute;right:42px;top:110px;z-index:6;text-align:center;padding:10px 20px;background:#0b29279c;border:1px solid #f0dc9c33;border-radius:12px;backdrop-filter:blur(7px)}.seed-icons,.reward-seeds{display:flex;gap:12px;justify-content:center}.seed{font-size:35px;color:#a8c1a441;line-height:1.15;text-shadow:0 0 10px #8da99244}.seed.lit{color:#ffde8a;text-shadow:0 0 15px #ffd78bbb,0 0 30px #ffdb9344}.seed-counter>span{display:block;letter-spacing:1.5px;font-size:10px;color:#d8dfc2;margin-top:8px}.world-node{position:absolute;z-index:5;transform:translate(-50%,-50%);width:48px;height:48px;background:#132f2dec;border:1px solid #d6bd79;outline:5px solid #0a272642;border-radius:50%;color:#fce5a8;box-shadow:0 8px 17px #0317187a;display:grid;place-items:center;transition:background .2s,box-shadow .2s}.world-node:hover{background:#3f5947;box-shadow:0 0 0 5px #f4d17d44,0 8px 30px #ffe69a55;z-index:8}.world-node:active{transform:translate(-50%,-50%) scale(.95)!important}.node-symbol{font-size:21px;font-weight:bold;letter-spacing:-.5px}.node-label{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:165px;white-space:normal;background:#0b2524db;border:1px solid #d3c9994f;border-radius:6px;padding:7px 11px;font-size:12px;font-weight:bold;line-height:1.25;color:#f4efda;pointer-events:none;box-shadow:0 4px 10px #0003}.node-label small{display:block;font-size:10px;font-weight:normal;color:#c5c6ac;margin-top:4px}.world-node.sealed{border-color:#8ba19b;color:#abc4b3;background:#1c3038b8}.world-node.sealed .node-label{opacity:.78}.world-node.done{background:#326954;border-color:#ceebac;color:#e9f8cf}.world-node.next-node{background:#e4c277;color:#294132;border:2px solid #fbe7ac;box-shadow:0 0 0 5px #f2d48b20,0 0 40px #fbd9914d;animation:beacon 3s ease-in-out infinite}.node-tag{position:absolute;bottom:calc(100% + 14px);left:50%;transform:translateX(-50%);background:#f1d68e;color:#264135;padding:4px 8px;white-space:nowrap;border-radius:4px;letter-spacing:1.2px;font-size:9px;font-weight:bold}.secret-node{width:35px;height:35px;background:#0b3a3659;border-style:dashed;opacity:.6}.secret-node:hover{opacity:1}.secret-node .node-label{opacity:0}.secret-node:hover .node-label,.secret-node:focus-visible .node-label{opacity:1}.world-avatar{position:absolute;z-index:7;width:72px;height:72px;transform:translate(-50%,-65%);pointer-events:none;filter:drop-shadow(0 7px 5px #0007)}.world-avatar img{height:100%;width:100%;object-fit:contain}.world-avatar span{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);font-size:10px;white-space:nowrap;background:#102d2ee0;color:#fff5d9;border:1px solid #e7d19966;padding:2px 7px;border-radius:5px}.world-avatar.walking img{animation:walk .24s infinite alternate}.mote{position:absolute;z-index:3;width:3px;height:3px;border-radius:50%;background:#f9eab4;box-shadow:0 0 7px 2px #cce892;pointer-events:none;animation:drift var(--duration) ease-in-out var(--delay) infinite;opacity:0}.world-bottom{position:absolute;bottom:42px;left:32px;right:32px;z-index:9;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.companion-chip{display:flex;align-items:center;gap:10px;background:#0a2929df;border:1px solid #a0b58a66;border-radius:11px;padding:10px 12px 10px 7px;min-width:224px;backdrop-filter:blur(14px)}.companion-chip>img{height:57px;width:57px;object-fit:contain;margin-top:-17px}.companion-chip b{font-size:16px;display:block}.companion-chip span{font-size:11px;color:#b3c7b6;display:block;margin-top:3px}.companion-chip .round-btn{margin-left:auto;width:27px;min-height:27px;font-size:13px;border-radius:50%}.map-toolbar{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;max-width:270px}.map-toolbar>span{flex-basis:100%;text-align:center;font-size:11px;color:#d4dec6;text-shadow:0 1px 3px #000}.map-toolbar .round-btn{width:32px;min-height:30px;font-size:18px}.quest-compass{border:1px solid #c8b87c78;background:#112c2bed;border-radius:10px;display:flex;align-items:center;text-align:left;color:var(--cream);padding:16px 18px;gap:14px;min-width:295px;box-shadow:0 8px 24px #0003;backdrop-filter:blur(15px)}.quest-compass small{display:block;font-size:9px;color:#d7c084;letter-spacing:1.3px;margin-bottom:5px}.quest-compass b{font-family:Georgia,serif;font-size:19px;font-weight:normal}.quest-compass>span:last-child{margin-left:auto;color:#edd089;font-size:23px}.compass-icon{font-size:25px;color:#f6d384}.world-save{position:absolute;bottom:14px;left:32px;z-index:9;font-size:10px;letter-spacing:.3px;color:#91ad9e}.movement-pad{position:absolute;z-index:15;left:50%;transform:translateX(-50%);bottom:145px;display:grid;grid-template-columns:repeat(4,42px);gap:6px;background:#0b292aeb;border:1px solid #bccc9066;border-radius:10px;padding:12px}.movement-pad[hidden]{display:none}.movement-pad button{border:1px solid #8ca38b66;background:#254845;color:#f3efcc;border-radius:6px;min-height:39px;font-weight:bold}.movement-pad #interactBtn{grid-column:1/-1;font-size:13px}
#toast{position:fixed;z-index:100;bottom:22px;left:50%;max-width:min(560px,90vw);transform:translate(-50%,20px);padding:14px 22px;background:#fbefd0;color:#1b3b32;border:1px solid #d4b875;border-radius:10px;box-shadow:0 8px 40px #0007;font-size:15px;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
.game-dialog{border:1px solid #c4c09866;padding:0;max-width:min(930px,calc(100vw - 36px));width:100%;max-height:calc(100svh - 44px);background:linear-gradient(135deg,#163d3c,#0e292e);color:var(--cream);border-radius:19px;box-shadow:0 30px 150px #000b;overflow:auto;scrollbar-width:thin;scrollbar-color:#768c65 #0f302d}.game-dialog::backdrop{background:#03181bb0;backdrop-filter:blur(5px)}.dialog-shell{position:relative;padding:36px}.dialog-close{position:absolute;top:14px;right:14px;z-index:5;width:34px;height:34px;border:1px solid #a8c1a14d;border-radius:50%;background:#183d3c;color:#e9ecd6;font-size:24px;display:grid;place-content:center}.game-dialog h2{font-size:38px;line-height:1.15;letter-spacing:-1px;margin:10px 0 16px}.game-dialog p{color:#c0d1c1}.dialog-actions{display:flex;flex-wrap:wrap;gap:15px;align-items:center;justify-content:center;margin-top:25px}.welcome-dialog{max-width:900px;background:radial-gradient(ellipse at 50% -30%,#51785065,transparent 65%),linear-gradient(135deg,#143a36f7,#0c262cfb);text-align:center;border:1px solid #c8b77b80}.welcome-dialog .dialog-shell{padding:35px 40px 24px}.welcome-heading h2{font-size:55px;line-height:.98;letter-spacing:-2px;margin:15px 0}.welcome-heading p{font-size:16px;line-height:1.5;color:#c1d2c1}.welcome-roster{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:25px 0 14px}.hero-choice{border:1px solid #d6daa321;background:#31554933;color:#e7ebd5;border-radius:10px;padding:12px 7px;text-align:center;position:relative}.hero-choice img{width:95px;height:95px;object-fit:contain;filter:drop-shadow(0 8px 8px #0004);transition:transform .2s}.hero-choice b{display:block;font-size:13px;margin-top:5px}.hero-choice>span{display:block;font-size:11px;color:var(--hero-color);margin-top:5px}.hero-choice:hover img{transform:translateY(-5px)}.hero-choice.chosen{border-color:#f3d484;background:linear-gradient(155deg,#a7ba6e30,#6b775429);box-shadow:0 0 20px #f5d77f10}.hero-choice.chosen:after{content:'✓';position:absolute;top:6px;right:8px;color:#ffe399;font-size:13px}.hero-preview{display:flex;gap:12px;justify-content:center;align-items:center;min-height:35px;font-size:14px;margin-bottom:18px}.hero-preview b{color:#eed18b}.hero-preview span{color:#c1d4c1}.welcome-actions{display:flex;flex-direction:column;gap:12px;align-items:center}.welcome-actions .gold-btn{min-width:310px}.welcome-note{font-size:11px!important;color:#92afa2!important;letter-spacing:.5px;margin-top:15px!important}
.story-dialog{max-width:770px}.story-dialog .dialog-shell{display:grid;grid-template-columns:175px 1fr;align-items:center;gap:30px;padding:40px}.story-art{filter:drop-shadow(0 12px 22px #0005)}.story-art img{width:100%;object-fit:contain;max-height:280px}.story-content h2{font-size:37px}.story-content .overline{font-size:10px;letter-spacing:1.7px}.story-content p{font-size:17px;line-height:1.7}.story-actions{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin-top:24px}.menu-dialog{max-width:540px;text-align:center}.menu-list{display:flex;flex-direction:column;gap:12px;margin:25px 0}.menu-dialog .muted{margin-top:15px}.journal-dialog{max-width:740px}.journal-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0;padding:20px 0;border-block:1px solid var(--line)}.journal-stats span{text-align:center;font-size:12px;color:#c4d4c2}.journal-stats b{display:block;font-family:Georgia,serif;font-size:32px;color:#f4d48f;margin-bottom:5px}.journal-quests>div{display:flex;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.journal-check{font-size:24px;color:#6b8c80}.journal-check.yes{color:#b7e19d}.journal-quests b{font-size:17px}.journal-quests p{font-size:14px;color:#9cb9a9;margin-top:5px}.journal-discoveries{padding:20px 0}.journal-discoveries h3{font-family:Georgia,serif;font-size:23px;font-weight:normal;margin-bottom:15px}.journal-discoveries p{font-size:14px;margin-top:10px}
.puzzle-dialog{max-width:900px}.puzzle-dialog .dialog-shell{padding:32px 38px}.puzzle-header{padding-right:15px}.puzzle-header h2{font-size:36px;margin-bottom:10px}.puzzle-header p{font-size:15px;max-width:720px;line-height:1.6}.puzzle-header .overline{font-size:10px}.puzzle-steps{display:flex;align-items:center;gap:8px;margin:19px 0 22px}.puzzle-steps>span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #708f7799;border-radius:50%;font-size:11px;color:#a4bdae}.puzzle-steps>span.step-active{background:#e4c981;border-color:#ffe5a4;color:#214738}.puzzle-steps>span.step-done{background:#4c7854;border-color:#aad18e;color:#e7f6d3}.puzzle-steps>b{font-size:12px;color:#bcd1bc;margin-left:8px;font-weight:normal}.puzzle-work{border:1px solid #71907877;background:#f4f0dc;border-radius:13px;color:#214b3d;overflow:hidden}.target-banner{display:flex;align-items:center;gap:24px;padding:18px 26px;border-bottom:1px solid #aab28f66;background:#e9e8ce}.target-banner>span{font-size:11px;letter-spacing:1.3px;color:#506b53;max-width:60px;font-weight:bold}.target-banner>strong{font-family:Georgia,serif;font-size:50px;line-height:1;color:#214b3d;font-weight:normal}.target-banner>div{margin-left:auto;text-align:right}.target-banner small{font-size:12px;color:#698066;display:block}.target-banner b{font-size:30px;font-family:Georgia,serif;font-weight:normal}.place-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px}.place-column{border:1px solid #a3b7a2;border-radius:9px;background:#fffef166;overflow:hidden;text-align:center;--block:#5c965c}.place-column.t{--block:#417a94}.place-column.o{--block:#be8c37}.place-title{padding:12px 8px 0}.place-title h3{font-size:17px;color:#254e3c}.place-title>span{font-size:11px;color:#6e8069}.block-source{display:flex;align-items:center;justify-content:center;gap:10px;width:calc(100% - 20px);height:76px;margin:12px 10px;background:#e7edcf;border:1px dashed #879d66;border-radius:7px;color:var(--block)}.block-source>svg{height:56px;width:auto}.place-column.o .block-source>svg{height:18px}.block-source>span{font-size:13px;font-weight:bold;color:#36583a}.block-tray{display:flex;align-content:flex-start;align-items:flex-start;justify-content:center;flex-wrap:wrap;gap:5px;min-height:98px;max-height:190px;overflow:auto;padding:10px;color:var(--block)}.math-block.h{display:block;width:49px;height:49px}.math-block.t{display:block;width:7px;height:62px}.math-block.o{display:block;width:14px;height:14px}.math-block>svg{width:100%;height:100%}.empty-tray{font-size:12px;color:#8a9983;margin-top:20px}.block-controls{border-top:1px solid #bcc8aa66;display:flex;justify-content:space-between;align-items:center;padding:7px 10px;background:#eaf0dc}.block-controls button{width:30px;height:30px;border:1px solid #a4b798;border-radius:5px;background:#f8f9e9;color:#31513a;font-size:20px}.block-controls output{font-size:18px;font-weight:bold}.trade-row{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;border-top:1px solid #b5c0a655;padding:6px 15px}.trade-row>span{font-size:11px;color:#688263}.trade-row .text-button{font-size:12px;color:#47765b}.puzzle-help{font-size:12px!important;text-align:center;padding:8px 14px 15px;color:#667d61!important;line-height:1.5}.puzzle-footer{display:flex;flex-wrap:wrap;gap:15px;align-items:center;margin:20px 0 0}.puzzle-footer .gold-btn{margin-left:auto}.puzzle-footer .text-button{font-size:13px}.puzzle-feedback{margin-top:19px;border:1px solid #7d9c6888;border-radius:9px;background:#42604955;padding:15px 18px}.puzzle-feedback p{font-size:16px;line-height:1.7;color:#e4ecd2}.puzzle-feedback.success{background:#3f784452;border-color:#a9d28288}.puzzle-feedback.try-again{background:#81653545;border-color:#d5aa5b77}.puzzle-feedback.hint{background:#45665c55}.garden-target{display:flex;justify-content:center;align-items:center;gap:16px;padding:20px;background:#e7e8d0;border-bottom:1px solid #bdc7a777}.garden-target strong{font-family:Georgia,serif;font-size:29px;font-weight:normal}.garden-target>span{font-size:14px;color:#728369}.garden-workspace{display:flex;justify-content:center;gap:28px;padding:26px}.garden-grid{display:grid;grid-template-columns:repeat(6,49px);gap:8px;padding:15px;background:#dadfbd;border:1px solid #adb98a;border-radius:10px}.garden-grid button{height:46px;width:49px;border-radius:7px;background:#eaf0d6;border:1px solid #a1b184;box-shadow:0 2px 0 #a4b489;color:#91a67b;font-size:22px;transition:background .15s,box-shadow .15s}.garden-grid button.planted{color:#f8d779;background:#3c704e;border-color:#c9d592;box-shadow:0 0 16px #e3d17077,0 2px 0 #28543b}.garden-grid button.planted>span{font-size:25px;text-shadow:0 0 12px #eada6b}.garden-tally{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}.garden-tally small{font-size:10px;letter-spacing:1px}.garden-tally b{font-family:Georgia,serif;font-size:48px;font-weight:normal}.garden-tally>span{font-size:13px;color:#6c8263;line-height:1.5}.garden-tally .text-button{color:#356b4d;font-size:12px}.clock-target{display:flex;align-items:center;justify-content:center;gap:20px;background:#e9e6cd;padding:14px;border-bottom:1px solid #b4bc9377}.clock-target>span{font-size:11px;letter-spacing:1.3px;color:#6a7959;font-weight:bold}.clock-target>strong{font-family:Georgia,serif;font-size:41px;font-weight:normal}.clock-workspace{display:flex;align-items:center;justify-content:center;gap:45px;padding:24px}.clock-face{width:245px;max-width:100%;touch-action:none}.clock-controls{max-width:225px;flex:1}.clock-controls>label{display:block;font-size:13px;color:#597356;font-weight:bold;margin-bottom:9px}.hour-control{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:24px;max-width:175px}.hour-control button{width:38px;height:35px;border:1px solid #a5b493;border-radius:6px;background:#e2e9ce;color:#3b6348;font-size:22px}.hour-control output{font-size:25px;font-family:Georgia,serif}.clock-controls input[type=range]{width:100%;accent-color:#477851}.minute-presets{display:flex;gap:6px;margin:8px 0 20px}.minute-presets>button{flex:1;min-height:32px;background:#e0e7cc;color:#3e6249;border:1px solid #bac4a1;border-radius:5px;font-size:12px}.selected-time{border-top:1px solid #bac4a166;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.selected-time>span{font-size:12px;color:#6c7c5d}.selected-time>output{font-size:27px;font-family:Georgia,serif}.reward-dialog{max-width:550px;text-align:center}.reward-rune{display:block;font-size:84px;line-height:1.2;color:#fbd888;text-shadow:0 0 45px #ebcc8277;margin:10px 0 20px;animation:float 4s ease-in-out infinite}.reward-dialog .reward-seeds{margin:24px 0}.reward-dialog p{font-size:17px}
.battle-game{min-height:100svh;background:radial-gradient(ellipse at 15% 10%,#34504b,#0a222a 70%);padding:26px 34px}.battle-screen{max-width:1450px;margin:auto}.battle-header{display:flex;align-items:center;gap:25px;margin-bottom:25px}.battle-header>div{flex:1}.battle-header h1{font-size:28px;margin-top:6px}.battle-header .overline{font-size:10px}.battle-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr);gap:25px;align-items:start}.arena-panel{min-width:0}.arena-scene{position:relative;aspect-ratio:1.24;border-radius:17px;overflow:hidden;border:1px solid #b7bc9580;background:#153637;box-shadow:0 12px 70px #0003;isolation:isolate}.arena-backdrop{position:absolute;inset:0;background-image:linear-gradient(#123c3866,#082a36c9),url('assets/live-db9c09b087168bb8.webp');background-size:auto 150%;background-position:95% 25%;filter:saturate(.6) brightness(.8);z-index:-3}.arena-atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 65% 50%,#8253bd39,transparent 65%);z-index:-2}.phase-1 .arena-atmosphere{background:radial-gradient(ellipse at 65% 45%,#bd579550,transparent 65%)}.phase-2 .arena-atmosphere{background:radial-gradient(ellipse at 65% 45%,#69cea557,transparent 65%)}.enemy-hud{position:absolute;top:22px;left:22px;right:22px;padding:14px 18px;border:1px solid #cbd5b245;border-radius:10px;background:#0d252ac7;z-index:3;backdrop-filter:blur(5px)}.enemy-hud>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.enemy-hud b{font-family:Georgia,serif;font-size:25px;font-weight:normal}.enemy-hud span{font-size:9px;letter-spacing:1.5px;color:#c5add9}.enemy-hud small{font-size:10px;display:block;text-align:right;margin-top:5px;color:#d1c0de}.enemy-meter,.hero-meter{height:8px;border-radius:10px;background:#071d23;overflow:hidden}.enemy-meter i,.hero-meter i{display:block;height:100%;border-radius:10px;transition:width .6s;background:linear-gradient(90deg,#956ab5,#d2a1d2)}.hero-meter i{background:linear-gradient(90deg,#6bba93,#cee59b)}.arena-enemy{position:absolute;right:4%;top:19%;width:61%;height:65%;z-index:1;filter:drop-shadow(0 14px 14px #0007);animation:guardian-breathe 4s ease-in-out infinite}.arena-enemy img{width:100%;height:100%;object-fit:contain}.arena-enemy.scout-enemy{width:48%;right:11%;filter:drop-shadow(0 0 14px #b787c88c) saturate(.65)}.arena-hero{position:absolute;left:5%;bottom:11%;width:32%;height:42%;z-index:3;filter:drop-shadow(0 8px 10px #0007)}.arena-hero img{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}.arena-floor-glow{position:absolute;inset:55% 0 0;background:radial-gradient(ellipse at 55% 50%,#adb86233,transparent 65%);pointer-events:none}.hero-hud{position:absolute;bottom:18px;left:18px;right:18px;z-index:4;border:1px solid #bed4a75c;border-radius:10px;padding:11px 16px;background:#0d292adc;backdrop-filter:blur(6px)}.hero-hud>div:first-child{display:flex;align-items:center;gap:10px;margin-bottom:9px}.hero-hud img{width:33px;height:33px;object-fit:contain}.hero-hud b{display:block;font-size:14px}.hero-hud small{display:block;font-size:10px;color:#a5c4ac;margin-top:2px}.hero-hud strong{font-size:15px;color:#dce8b8;margin-left:auto}.resource-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px}.resource-row>span{font-size:9px;letter-spacing:1px;color:#a4c3b1;display:flex;align-items:center;gap:10px}.resource-row b{display:inline!important;font-size:15px;color:#f2d07e;letter-spacing:2px}.resource-row i{font-style:normal;color:#537363}.phase-track{display:flex;gap:8px;justify-content:space-between;margin:18px 0}.phase-track>span{display:flex;flex:1;align-items:center;gap:8px;font-size:11px;color:#74988b}.phase-track b{display:grid;place-content:center;flex-shrink:0;width:22px;height:22px;border-radius:50%;border:1px solid #6d9481;font-size:10px}.phase-track .active{color:#f5d78e}.phase-track .active b{background:#edd18a;color:#1b4838;border-color:#f8df9c}.phase-track .passed{color:#a7d39f}.battle-tip{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid #88ab8a36;border-radius:9px;background:#29423a4d}.battle-tip>span{font-size:23px;color:#d5d099}.battle-tip p{font-size:13px;color:#b8cdbd;line-height:1.6}.battle-console{background:#153436;border:1px solid #78978355;border-radius:17px;padding:23px;box-shadow:0 12px 60px #0003}.enemy-intent{display:flex;align-items:center;gap:14px;border:1px solid #ac99ac55;border-radius:9px;padding:14px;background:#56425939}.intent-icon{display:grid;place-content:center;font-size:24px;border:1px solid #b69aad77;width:40px;height:40px;flex-shrink:0;border-radius:50%;color:#e8bed1}.enemy-intent small{display:block;font-size:9px;letter-spacing:1.2px;color:#bfaec0;margin-bottom:5px}.enemy-intent b{display:block;font-size:17px;color:#f4d9e4}.enemy-intent p{font-size:12px;color:#c3b7c8;line-height:1.5;margin-top:6px}.turn-title{margin:26px 0 22px}.turn-title .overline{font-size:10px}.turn-title h2{font-size:34px;margin:8px 0 10px;line-height:1.1}.turn-title p{font-size:14px;color:#a7c2b4}.move-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.move-button{background:linear-gradient(145deg,#3b5c4780,#23493870);border:1px solid #8fac7766;border-radius:10px;color:#e6edd3;min-height:127px;padding:16px;text-align:left}.move-button .move-icon{font-size:24px;color:#e5d59a;display:block;margin-bottom:10px}.move-button>b{display:block;font-size:16px;line-height:1.3;margin-bottom:8px}.move-button>small{display:block;font-size:11px;color:#b4ccb6;line-height:1.5}.move-button.power{background:linear-gradient(140deg,#816b3452,#4b4c3855);border-color:#b3a06088}.move-button.guard{background:linear-gradient(140deg,#46677955,#28495050);border-color:#709caa70}.move-button.heal{background:linear-gradient(140deg,#416a4b66,#224d3c70);border-color:#82b88566}.move-button:hover:not(:disabled){transform:translateY(-2px);border-color:#f1d88a}.strategy-note{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.strategy-note b{font-size:13px;color:#d5d6aa}.strategy-note p{font-size:13px;color:#a6c3b2;line-height:1.7;margin-top:7px}.challenge-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:19px 0}.challenge-top>span{font-size:13px;color:#eed28c}.challenge-top .text-button{font-size:12px}.battle-question{font-size:27px;line-height:1.3;margin:12px 0 23px;color:#f4ecd1}.answer-label{display:block;font-size:12px;color:#c4d5ba;margin-bottom:8px}.answer-form{display:flex;gap:10px;align-items:stretch}.answer-form input{min-width:0;width:90px;flex-shrink:0;border:1px solid #d3c38a;border-radius:8px;background:#eff0d9;color:#224739;text-align:center;font-size:31px;font-family:Georgia,serif;padding:10px}.answer-form .gold-btn{flex:1;font-size:14px;padding:12px;line-height:1.5}.challenge-tools{display:flex;gap:20px;margin-top:15px}.challenge-tools .text-button{font-size:12px}.battle-hint{background:#526d463d;border:1px solid #9cae6177;border-radius:8px;padding:13px 15px;color:#d9e2b5;font-size:15px;line-height:1.65;margin:15px 0}.battle-feedback{margin-top:22px;background:#33573e55;border:1px solid #97b58055;padding:18px;border-radius:10px}.battle-feedback.retry{background:#6e513744;border-color:#bba57477}.battle-feedback .overline{font-size:10px}.battle-feedback h3{font-family:Georgia,serif;font-weight:normal;font-size:24px;line-height:1.2;margin:9px 0 12px}.battle-feedback p{font-size:16px;color:#d3e0c8;line-height:1.6}.turn-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.turn-summary span{font-size:11px;background:#112f2a85;color:#c6d9bb;padding:6px 9px;border-radius:5px}.battle-feedback .gold-btn{width:100%;margin-top:17px;font-size:15px}.phase-notice{font-size:14px!important;color:#f0d492!important;margin-top:15px!important}.battle-array{display:grid;gap:8px;justify-content:center;width:max-content;margin:0 auto 22px}.battle-array i{font-style:normal;color:#e4d783;text-shadow:0 0 10px #d6ce8980;width:20px;text-align:center;font-size:24px}.battle-clock{display:flex;justify-content:center;margin:10px 0 20px}.battle-clock .clock-face{width:170px}.battle-effect{position:absolute;left:40%;top:45%;z-index:8;font-size:35px;font-weight:bold;color:#ffe1a1;text-shadow:0 0 30px #ffe1a1,0 2px 8px #000;pointer-events:none}.battle-effect:not(:empty){animation:float-text 1s ease-out both}.battle-effect.guard{color:#b4e3f3}.battle-effect.heal{color:#c3f1a0}.battle-effect.miss{font-size:22px;color:#e8d7b4}.arena-hero.hero-act{animation:lunge .6s ease}.arena-enemy.enemy-hit{animation:enemy-hit .5s ease}
.restoration-flash{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:radial-gradient(ellipse,#faf0b7dd,#b5e6cd8c 30%,transparent 70%);pointer-events:none;animation:restore-light 2.6s both}.restoration-flash span{color:#fff9d7;font-family:Georgia,serif;font-size:clamp(25px,4vw,60px);letter-spacing:5px;text-shadow:0 3px 20px #526c42}.ending-dialog{max-width:960px;overflow:hidden}.ending-dialog .dialog-shell{display:grid;grid-template-columns:37% 1fr;gap:32px;align-items:center;background:radial-gradient(ellipse at 5% 50%,#799a5255,transparent 70%);padding:45px}.ending-guardian img{filter:drop-shadow(0 0 40px #d8db9850)}.ending-copy h2{font-size:55px;line-height:1.02;letter-spacing:-2px}.ending-copy>p{font-size:16px}.ending-copy blockquote{font-family:Georgia,serif;font-size:20px;line-height:1.5;color:#f5e2a9;margin:22px 0;padding-left:18px;border-left:2px solid #b99a5d}.ending-medal{display:flex;gap:14px;align-items:center;margin:25px 0}.ending-medal>span{font-size:45px;color:#f4d38a;text-shadow:0 0 25px #dbd57777}.ending-medal b{font-size:17px;color:#f4dfac}.ending-medal small{display:block;color:#aec6ad;font-size:13px;margin-top:4px}.ending-stats{display:flex;justify-content:space-between;gap:12px;border-block:1px solid var(--line);padding:16px 0}.ending-stats>span{font-size:10px;color:#a5c3ae;text-align:center}.ending-stats b{display:block;font-family:Georgia,serif;font-size:27px;color:#f2d793;font-weight:normal;margin-bottom:5px}.ending-copy .dialog-actions{justify-content:flex-start}.ending-copy .gold-btn{font-size:14px}
@keyframes float{50%{transform:translateY(-8px)}}@keyframes beacon{50%{box-shadow:0 0 0 9px #f2d48b15,0 0 45px #fbd99155}}@keyframes drift{0%,100%{opacity:0;transform:translate(0,0)}30%,70%{opacity:.7}50%{transform:translate(18px,-25px)}}@keyframes mist{to{transform:translate(40px,15px)}}@keyframes walk{from{translate:0 -2px}to{translate:0 3px}}@keyframes guardian-breathe{50%{translate:0 -5px;rotate:.4deg}}@keyframes lunge{30%{translate:20px -10px}65%{translate:0 0}}@keyframes enemy-hit{20%{translate:6px 0;filter:brightness(1.8)}50%{translate:-6px 0}80%{translate:3px 0}}@keyframes float-text{0%{opacity:0;translate:0 10px}20%,80%{opacity:1}100%{opacity:0;translate:0 -30px}}@keyframes restore-light{0%{opacity:0}30%,60%{opacity:1}100%{opacity:0}}
@media(min-width:1500px){.world-header{padding:30px 45px}.region-heading{top:125px;left:48px}.seed-counter{top:126px;right:48px}.world-bottom{left:44px;right:44px;bottom:45px}.world-node{width:55px;height:55px}.node-label{font-size:13px}.world-avatar{width:85px;height:85px}}
@media(max-width:1050px){.battle-game{padding:22px}.battle-layout{gap:18px;grid-template-columns:minmax(0,1.12fr) minmax(340px,1fr)}.battle-console{padding:18px}.battle-header{gap:17px}.battle-header h1{font-size:25px}.enemy-hud{top:14px;left:14px;right:14px;padding:11px 13px}.enemy-hud b{font-size:21px}.enemy-hud span{font-size:8px}.hero-hud{left:12px;right:12px;bottom:12px;padding:9px 12px}.phase-track{flex-direction:column;gap:8px}.phase-track>span{font-size:12px}.world-bottom{gap:12px}.companion-chip{min-width:200px}.quest-compass{min-width:270px}.map-toolbar{max-width:200px}.world-node{width:43px;height:43px}.node-label{font-size:11px}.world-header{padding:20px 26px}.region-heading{left:30px;top:100px}.seed-counter{right:30px;top:100px}.welcome-dialog .dialog-shell{padding:28px}.welcome-roster{gap:7px}.hero-choice img{height:85px}.ending-dialog .dialog-shell{padding:38px;gap:25px}.ending-copy h2{font-size:48px}}
@media(max-width:790px){.world-game{min-height:580px}.world-header{padding:18px}.wordmark{font-size:11px;letter-spacing:1px;gap:8px}.wordmark small{font-size:8px;letter-spacing:2px}.world-utilities{gap:6px}.world-utilities .small-btn{font-size:12px;padding:7px 10px;min-height:35px}.world-utilities .round-btn{width:35px;min-height:35px;font-size:17px}.region-heading{left:24px;top:92px}.region-heading h1{font-size:53px}.region-heading p{font-size:12px;max-width:230px}.seed-counter{top:91px;right:22px;padding:9px 13px}.seed{font-size:28px}.seed-icons{gap:7px}.seed-counter>span{font-size:9px;letter-spacing:1px}.world-bottom{display:grid;grid-template-columns:1fr auto;left:20px;right:20px;bottom:35px;gap:12px}.quest-compass{grid-column:1/-1;grid-row:2;min-width:0;width:100%;padding:13px 17px}.companion-chip{width:max-content;min-width:210px;padding:8px}.companion-chip>img{width:45px;height:45px}.companion-chip b{font-size:14px}.map-toolbar>span{display:none}.map-toolbar{flex-wrap:nowrap}.world-save{left:22px;font-size:9px;bottom:12px}.node-label{font-size:12px}.game-dialog{max-width:calc(100vw - 28px)}.story-dialog .dialog-shell{grid-template-columns:130px 1fr;gap:20px;padding:32px}.story-content h2{font-size:32px}.story-content p{font-size:16px}.welcome-heading h2{font-size:50px}.welcome-roster{grid-template-columns:repeat(3,1fr);gap:9px;max-width:560px;margin:20px auto 15px}.hero-choice{padding:9px;display:grid;grid-template-columns:65px 1fr;align-items:center;text-align:left;column-gap:8px}.hero-choice img{width:65px;height:65px;grid-row:1/3}.hero-choice b{font-size:12px;align-self:end}.hero-choice>span{font-size:10px;align-self:start}.welcome-heading p{font-size:15px}.welcome-heading br{display:none}.hero-preview{font-size:13px;margin-bottom:16px}.welcome-note{font-size:10px!important}.welcome-dialog .dialog-shell{padding:28px}.puzzle-dialog .dialog-shell{padding:28px}.puzzle-header h2{font-size:31px}.puzzle-header p{font-size:14px}.puzzle-footer{gap:10px}.puzzle-footer .text-button{font-size:12px}.garden-grid{grid-template-columns:repeat(6,42px);gap:7px}.garden-grid button{width:42px;height:42px}.garden-workspace{gap:20px;padding:20px}.clock-workspace{gap:25px}.clock-face{width:220px}.battle-layout{grid-template-columns:1fr}.arena-scene{aspect-ratio:1.65;max-height:420px}.arena-enemy{height:72%;width:44%;top:14%;right:16%}.arena-hero{height:48%;width:26%;bottom:9%;left:8%}.hero-hud{left:14px;right:auto;width:44%;bottom:14px}.enemy-hud{left:auto;right:14px;width:48%;top:14px}.enemy-hud>div:first-child{flex-wrap:wrap;gap:5px}.enemy-hud b{font-size:21px}.enemy-hud span{font-size:8px}.hero-hud>div:first-child{margin-bottom:6px}.hero-hud small{display:none}.resource-row{margin-top:7px}.phase-track{flex-direction:row;margin:14px 0;gap:10px}.phase-track>span{font-size:10px}.phase-track b{width:20px;height:20px}.battle-tip{display:none}.battle-header{margin-bottom:18px;gap:12px}.battle-header h1{font-size:24px}.battle-header .overline{font-size:9px;letter-spacing:1px}.battle-console{padding:22px}.turn-title{margin:22px 0 18px}.move-button{min-height:113px;padding:16px}.move-button .move-icon{margin-bottom:6px}.strategy-note{margin-top:16px;padding-top:16px}.battle-question{font-size:28px}.answer-form input{width:100px}.answer-form .gold-btn{font-size:16px}.ending-dialog .dialog-shell{grid-template-columns:30% 1fr;padding:32px;gap:20px}.ending-copy h2{font-size:43px}.ending-copy blockquote{font-size:18px}.ending-copy>p{font-size:15px}.ending-medal{margin:18px 0}.ending-medal b{font-size:15px}.ending-stats b{font-size:24px}}
@media(max-width:520px){.world-header{padding:16px 14px;gap:8px}.wordmark{font-size:9px;letter-spacing:.6px}.wordmark small{font-size:7px;letter-spacing:1.5px}.wordmark-emblem{width:28px;height:32px;font-size:23px}.world-utilities{gap:5px}.world-utilities .small-btn{padding:6px 8px;font-size:11px;min-height:32px}.world-utilities .round-btn{width:30px;min-height:32px;font-size:16px}.world-utilities #soundBtn{display:none}.region-heading{top:90px;left:18px}.region-heading .overline{font-size:8px;letter-spacing:1.1px;gap:7px}.region-heading h1{font-size:43px;letter-spacing:-1.5px;margin:7px 0}.region-heading p{font-size:11px;max-width:175px;line-height:1.5}.seed-counter{top:92px;right:16px;padding:9px}.seed-counter .seed{font-size:24px}.seed-icons{gap:5px}.seed-counter>span{font-size:8px;letter-spacing:.5px}.world-bottom{left:14px;right:14px;gap:10px}.companion-chip{min-width:0;width:205px;gap:7px}.companion-chip>img{width:40px;height:40px}.companion-chip span{font-size:10px}.companion-chip b{font-size:13px}.map-toolbar{gap:5px}.map-toolbar .round-btn{width:30px;min-height:32px}.quest-compass{padding:13px 15px;gap:12px}.quest-compass small{font-size:8px}.quest-compass b{font-size:18px}.compass-icon{font-size:23px}.world-save{left:16px}.world-node{width:43px;height:43px}.world-avatar{width:66px;height:66px}.movement-pad{bottom:205px}.game-dialog{border-radius:14px;max-width:calc(100vw - 20px);max-height:calc(100svh - 24px)}.dialog-shell{padding:28px 20px}.game-dialog h2{font-size:31px}.dialog-close{top:10px;right:10px;width:30px;height:30px;font-size:22px}.overline{font-size:10px;letter-spacing:1.8px}.welcome-dialog .dialog-shell{padding:28px 18px 20px}.welcome-heading h2{font-size:42px;line-height:1.03;margin:14px 0}.welcome-heading br{display:block}.welcome-heading p{font-size:14px}.welcome-roster{gap:8px;margin-top:19px}.hero-choice{display:block;text-align:center;padding:9px 5px}.hero-choice img{width:70px;height:67px}.hero-choice b{font-size:11px;margin-top:3px}.hero-choice>span{font-size:10px;margin-top:3px}.hero-preview{display:block;min-height:49px;font-size:12px;line-height:1.5;margin-bottom:12px}.hero-preview b{display:block;margin-bottom:4px}.welcome-actions{gap:8px}.welcome-actions .gold-btn{min-width:0;width:100%;font-size:15px}.welcome-note{font-size:9px!important;letter-spacing:0;margin-top:12px!important}.welcome-actions .text-button{font-size:12px}.story-dialog .dialog-shell{display:flex;flex-direction:column;gap:16px;padding:28px 22px}.story-art{width:120px;height:110px}.story-art img{height:100%;object-fit:contain}.story-content h2{font-size:31px}.story-content p{font-size:16px}.story-actions{gap:10px;margin-top:20px}.story-actions .gold-btn{width:100%}.story-content .overline{font-size:9px}.menu-dialog .dialog-shell{text-align:left}.menu-list .text-button{justify-content:flex-start}.journal-stats{padding:17px 0}.journal-stats span{font-size:10px}.journal-stats b{font-size:27px}.journal-quests b{font-size:15px}.journal-quests p{font-size:12px}.puzzle-dialog .dialog-shell{padding:27px 15px 20px}.puzzle-header{padding-right:8px}.puzzle-header .overline{font-size:9px;letter-spacing:.8px}.puzzle-header h2{font-size:28px;margin:11px 0}.puzzle-header p{font-size:14px}.puzzle-steps{margin:15px 0 18px}.puzzle-work{border-radius:9px}.target-banner{gap:16px;padding:15px}.target-banner>strong{font-size:43px}.target-banner b{font-size:27px}.target-banner>span{font-size:9px;letter-spacing:.6px}.target-banner small{font-size:11px}.place-values{padding:12px 9px;gap:7px}.place-title{padding:10px 5px 0}.place-title h3{font-size:13px}.place-title>span{font-size:10px}.block-source{margin:10px 5px;width:calc(100% - 10px);height:87px;flex-direction:column;gap:5px;padding:8px 3px}.block-source>svg{height:48px}.block-source>span{font-size:11px}.place-column.o .block-source{justify-content:center;gap:19px}.place-column.o .block-source>svg{height:12px}.block-tray{min-height:110px;padding:7px 5px;gap:4px}.math-block.h{height:38px;width:38px}.math-block.t{height:52px;width:6px}.math-block.o{height:12px;width:12px}.block-controls{padding:6px;gap:5px}.block-controls button{width:26px;height:30px}.block-controls output{font-size:16px}.trade-row{gap:3px 12px;padding:8px}.trade-row>span{width:100%;text-align:center;font-size:10px}.trade-row .text-button{font-size:11px}.puzzle-help{font-size:11px!important;padding:8px 12px 12px}.puzzle-footer{gap:7px 16px;margin-top:14px}.puzzle-footer .text-button{font-size:12px}.puzzle-footer .gold-btn{width:100%;margin-top:5px;font-size:15px}.puzzle-feedback{padding:14px;margin-top:15px}.puzzle-feedback p{font-size:15px}.garden-target{gap:10px;padding:16px 10px}.garden-target strong{font-size:21px}.garden-target>span{font-size:12px}.garden-workspace{display:flex;flex-direction:column;gap:17px;align-items:center;padding:16px 10px}.garden-grid{grid-template-columns:repeat(6,minmax(0,1fr));width:100%;max-width:310px;gap:7px;padding:12px}.garden-grid button{width:100%;height:auto;aspect-ratio:1/1;font-size:21px;min-height:32px}.garden-tally{display:grid;grid-template-columns:1fr auto 1fr;gap:9px 16px;width:100%}.garden-tally small{font-size:9px}.garden-tally b{font-size:35px}.garden-tally>span{font-size:11px}.garden-tally>.text-button{grid-column:1/-1;padding:2px}.clock-target{gap:12px;padding:12px}.clock-target>span{font-size:9px}.clock-target>strong{font-size:34px}.clock-workspace{gap:16px;padding:17px 12px;align-items:center}.clock-workspace #clockHolder{width:57%;flex-shrink:0}.clock-face{width:100%}.clock-controls{width:43%;min-width:0}.clock-controls>label{font-size:10px;margin-bottom:8px}.hour-control{gap:6px;margin-bottom:18px}.hour-control button{width:28px;height:31px;font-size:19px}.hour-control output{font-size:21px}.minute-presets{gap:3px;margin-bottom:13px}.minute-presets>button{font-size:10px;padding:4px;min-height:29px}.selected-time{display:block;padding-top:8px}.selected-time>span{font-size:10px;display:block;margin-bottom:4px}.selected-time>output{font-size:25px}.reward-rune{font-size:70px}.reward-dialog .dialog-shell{padding:30px 24px}.reward-dialog p{font-size:16px}.battle-game{padding:15px 12px}.battle-header{gap:10px;margin-bottom:15px}.battle-header .small-btn{font-size:11px;padding:8px;min-height:34px}.battle-header .overline{font-size:8px;letter-spacing:.5px}.battle-header h1{font-size:21px;line-height:1.12;margin-top:5px}.battle-header .round-btn{width:32px;min-height:34px;font-size:17px}.battle-layout{gap:13px}.arena-scene{aspect-ratio:1.23;border-radius:12px}.enemy-hud{width:58%;top:12px;right:12px;padding:10px}.enemy-hud b{font-size:20px}.enemy-hud span{font-size:7px;letter-spacing:1px}.enemy-hud small{font-size:9px}.enemy-hud>div:first-child{display:block}.enemy-hud span{display:block;margin-top:3px}.hero-hud{width:calc(100% - 24px);padding:9px 12px}.hero-hud img{width:27px;height:27px}.hero-hud>div:first-child{margin-bottom:5px}.hero-hud b{font-size:13px}.hero-hud strong{font-size:13px}.hero-hud small{display:block;font-size:9px}.resource-row{margin-top:6px}.resource-row>span{font-size:8px}.resource-row b{font-size:12px}.hero-meter{height:6px}.arena-enemy{right:2%;top:17%;width:65%;height:68%}.arena-hero{width:36%;height:46%;left:4%;bottom:19%}.phase-track{gap:7px;margin:11px 0 0}.phase-track>span{font-size:9px;line-height:1.4;gap:5px}.phase-track b{width:18px;height:18px;font-size:9px}.battle-console{padding:16px;border-radius:12px}.enemy-intent{padding:11px;gap:11px}.intent-icon{width:32px;height:32px;font-size:21px}.enemy-intent small{font-size:8px;letter-spacing:.7px}.enemy-intent b{font-size:15px}.enemy-intent p{font-size:12px}.turn-title{margin:20px 0 16px}.turn-title h2{font-size:30px}.turn-title p{font-size:13px}.move-grid{gap:10px}.move-button{padding:13px;min-height:123px}.move-button>b{font-size:15px}.move-button>small{font-size:10px}.move-button .move-icon{font-size:22px}.strategy-note{padding-top:14px;margin-top:14px}.strategy-note p{font-size:12px}.battle-question{font-size:25px;line-height:1.35;margin:15px 0 20px}.challenge-top{margin:16px 0;gap:5px}.challenge-top>span{font-size:12px}.answer-form{gap:8px}.answer-form input{width:80px;font-size:29px}.answer-form .gold-btn{font-size:13px;padding:10px}.challenge-tools{gap:15px}.challenge-tools .text-button{font-size:12px}.battle-feedback{padding:15px}.battle-feedback p{font-size:15px}.battle-feedback h3{font-size:22px}.battle-feedback .overline{font-size:9px}.battle-feedback .gold-btn{font-size:14px}.battle-clock .clock-face{width:150px}.ending-dialog{overflow:auto}.ending-dialog .dialog-shell{display:flex;flex-direction:column;gap:15px;padding:30px 23px}.ending-guardian{height:160px;width:190px}.ending-guardian img{height:100%;object-fit:contain}.ending-copy h2{font-size:43px;line-height:1.03}.ending-copy .overline{font-size:10px}.ending-copy h2 br{display:none}.ending-copy>p{font-size:15px}.ending-copy blockquote{font-size:18px;margin:20px 0}.ending-stats>span{font-size:9px}.ending-copy .gold-btn{width:100%;font-size:14px}.ending-copy .dialog-actions{gap:10px}.restoration-flash span{font-size:25px;letter-spacing:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.mote{opacity:.45}.restoration-flash{opacity:.5}.battle-effect:not(:empty){opacity:1}}
.journal-travel{margin-top:24px;display:flex;flex-wrap:wrap;gap:10px}.journal-travel h3{font-family:Georgia,serif;font-size:22px;font-weight:normal;width:100%;margin-bottom:5px}.journal-travel .outline-btn{font-size:13px;min-height:40px;padding:9px 13px}
.restored-zone{position:absolute;width:250px;height:210px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#e9e39833,#a4dda718 35%,transparent 70%);mix-blend-mode:screen;pointer-events:none;animation:float 7s ease-in-out infinite}
/* Creature progression and interactive training */
.champion-status{position:absolute;right:32px;top:114px;z-index:9;width:290px;padding:20px;background:#0c292bea;border:1px solid #d8c28270;border-radius:14px;box-shadow:0 12px 35px #06191d66;backdrop-filter:blur(12px)}
.champion-level{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0 14px}.champion-level>b{font:25px Georgia,serif}.champion-level>strong{background:#eed082;color:#263e32;border-radius:6px;padding:6px 9px;white-space:nowrap}.xp-progress{height:9px;border-radius:10px;background:#041f25;overflow:hidden;border:1px solid #97bba14d;margin:10px 0 6px}.xp-progress>i{display:block;height:100%;background:linear-gradient(90deg,#7fc9a2,#f6d784);border-radius:10px;transition:width .8s}.xp-caption{display:block;font-size:12px;color:#d1dfca}.champion-numbers{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin:13px 0;color:#f3d88f;font-size:14px}.champion-status p{font-size:13px;line-height:1.5;margin:12px 0;color:#cbd9ca}.champion-status .gold-btn{width:100%;font-size:15px;padding:11px}.champion-status .text-button{width:100%;margin-top:5px;font-size:13px}.world-node .map-location-art{display:block;width:104px;aspect-ratio:16/9;border-radius:4px;margin:-2px -4px 6px;background-image:url('assets/live-7e7ca4b6022c1e47.webp');background-size:300% 400%}.node-label:has(.map-location-art){max-width:120px;text-align:center;font-size:11px}.node-label .training-state{display:block;font-size:10px;color:#eed18a;margin-top:3px}.region-heading{max-width:360px}.region-heading h1{font-size:clamp(42px,5vw,65px)}.story-text{color:#c0d1c1;font-size:16px;line-height:1.65}.training-dialog{max-width:940px}.training-dialog>.dialog-shell>p{max-width:720px}.training-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.training-card{border:1px solid #bcc29a60;border-radius:12px;overflow:hidden;padding:0;text-align:left;background:#1b4241;color:var(--cream);box-shadow:0 7px 15px #0002}.training-card:hover{border-color:#f3d48b;transform:translateY(-3px)}.scene-photo{background-image:url('assets/live-7e7ca4b6022c1e47.webp');background-size:300% 400%;background-repeat:no-repeat}.card-scene{display:block;aspect-ratio:16/9;width:100%}.training-card-copy{display:flex;flex-direction:column;gap:6px;padding:17px}.training-card-copy>small{font-size:12px;color:#cbdbbe}.training-card-copy>b{font-family:Georgia,serif;font-size:22px;font-weight:normal}.training-card-copy>strong{color:#f4d78b;font-size:14px}.training-card-copy>span{color:#d1ddce;font-size:13px}.training-reward{margin:13px 0;color:#244b3e;font-size:14px;font-weight:bold;padding:10px 14px;background:#dce7bf;border:1px solid #bbcba0;border-radius:7px}.training-scene{position:relative;overflow:hidden;border:1px solid #b8a567;border-radius:11px;height:210px;margin:18px 0;background:#203c33}.training-scene>.scene-photo{position:absolute;inset:0;transition:filter .5s}.scene-shade{position:absolute;inset:0;background:linear-gradient(transparent 55%,#041d27b0)}.scene-label{position:absolute;bottom:15px;left:14px;right:10px;color:#fff7d9;font-size:14px;text-shadow:0 2px 4px #000}.scene-live{height:5px;background:#081f2670;position:absolute;bottom:0;left:0;right:0}.scene-live>i{display:block;height:100%;background:#ffe098;transition:width .4s}.scene-companion{position:absolute;bottom:30px;left:7%;width:88px;height:88px;filter:drop-shadow(0 4px 4px #0007);transition:left 1.8s ease-in-out}.scene-companion>img{width:100%;height:100%;object-fit:contain}.scene-working .scene-companion>img{animation:train-work 1.1s ease-in-out infinite alternate}.scene-complete .scene-companion{left:74%}.scene-complete .scene-companion>img{animation:train-celebrate .45s ease-in-out 3 alternate}.reward-dialog .training-scene{height:190px}.reward-growth{padding:18px;background:#183e3c;border:1px solid #e3ca7e55;border-radius:12px;margin:20px auto;max-width:430px}.reward-growth h3{font-family:Georgia,serif;font-weight:normal;font-size:28px;margin:8px 0 14px}.xp-earned{font-size:32px;color:#ffe099}.battle-reward-art{height:115px}.battle-reward-art img{height:115px;object-fit:contain;animation:train-celebrate .7s ease-in-out infinite alternate}.puzzle-header .puzzle-steps{margin-top:16px}.garden-workspace{gap:24px;padding:22px 10px;align-items:center}.garden-beds{display:flex;flex-direction:column;gap:10px;max-width:100%;flex:1}.garden-bed{display:flex;align-items:center;gap:9px;border:2px solid transparent;border-radius:9px;padding:4px;transition:background .25s,border-color .25s}.row-label{font-size:14px;min-width:64px;font-weight:bold;color:#315a46;white-space:nowrap}.bed-cells{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:5px;border-radius:8px;border:1px solid #a6b787;background:#d0d9b4;flex:1}.bed-cells>button{height:44px;min-width:0;display:grid;place-items:center;border-radius:5px;border:1px dashed #879c6d;background:#e6e8cd;color:#718964;font-size:23px;padding:0}.bed-cells>button.planted{background:#f8efb4;border:1px solid #bead56;color:#4c713a;box-shadow:0 0 10px #e8d46877}.row-count{color:#315a46;font-size:17px;font-weight:bold;width:20px;text-align:center}.garden-bed.counting{border-color:#b88a32;background:#f8e8b0}.plant-light{position:relative}.plant-light>i{position:absolute;top:-9px;right:-7px;font-style:normal;font-size:13px;color:#eeae1f;text-shadow:0 0 8px #ffbf28;animation:firefly-land .45s ease-out}.garden-tally{min-width:105px}.garden-tally .text-button{font-size:13px;color:#385a3f;text-decoration:underline}.array-equation{text-align:center;font-size:21px!important;font-weight:bold;color:#365641!important;background:#e6e9cb;padding:13px;margin:5px 10px;border-radius:8px}.row-demo{display:flex;gap:14px;padding:18px;background:#e9e6c2;border-radius:8px;color:#2e513b;margin:8px 10px}.row-demo[hidden]{display:none}.row-demo>img{width:75px;height:75px;object-fit:contain}.row-demo p{color:#31563f;font-size:14px}.demo-lights{display:flex;gap:13px;font-size:24px;color:#b78524}.demo-lights>span{animation:firefly-land .5s both;animation-delay:calc(var(--n) * .22s)}.puzzle-help{font-size:14px!important}.block-trade .math-block{animation:block-combine .65s ease-out}.measurement-workspace{padding:50px 25px 20px}.measure-ruler{position:relative;height:58px;margin:0 10px;border-bottom:2px solid #315747;color:#264b3b}.measure-ruler>span{position:absolute;bottom:0;transform:translateX(-50%);padding-bottom:12px;font-weight:bold;font-size:18px}.measure-ruler>span:after{content:'';position:absolute;bottom:0;left:50%;height:9px;border-left:2px solid #315747}.measure-ruler small{position:absolute;bottom:45px;left:50%;transform:translateX(-50%);font-size:10px;color:#376447;white-space:nowrap;background:#dde5bd;border-radius:3px;padding:4px}.measure-gap{position:relative;margin:10px;height:70px;background:#b9d9d3}.measure-slots{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));height:100%}.measure-slots>button{border:1px dashed #6a8f83;background:#e4f0e844;color:#365c4d;font-size:24px;min-width:0;padding:0}.measure-slots>button.placed{background:#dfbd77;border:2px solid #99713a;color:#3c4b32;font-weight:bold;animation:block-combine .3s ease-out}.bank-line{position:absolute;left:var(--bank);top:-17px;bottom:-10px;border-left:3px solid #395b40;pointer-events:none}.measure-total{display:flex;justify-content:space-between;align-items:center;color:#294f3c;margin:20px 10px}.measure-total .text-button{color:#315e43;text-decoration:underline}.measure-total output{font-weight:bold}
@keyframes train-work{to{transform:translateY(-4px) rotate(2deg)}}@keyframes train-celebrate{to{transform:translateY(-10px) rotate(-3deg)}}@keyframes firefly-land{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@keyframes block-combine{from{opacity:.2;transform:translateY(-12px) scale(.7)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1000px){.champion-status{width:245px;right:20px;padding:15px}.champion-level>b{font-size:21px}.champion-numbers{gap:10px}.champion-status p{font-size:12px}.map-toolbar{display:none}.world-bottom{gap:12px}.quest-compass{min-width:255px}.region-heading{max-width:300px}.garden-workspace{gap:10px}}
@media(max-width:650px){.world-header{padding:18px 14px}.world-utilities{gap:4px}.world-utilities .small-btn{padding:7px;font-size:12px}.world-utilities #musicBtn{display:none}.wordmark{font-size:10px;gap:6px}.wordmark small{font-size:7px;letter-spacing:1px}.wordmark-emblem{width:28px;height:32px;font-size:22px}.region-heading{top:90px;left:16px;max-width:180px}.region-heading h1{font-size:39px}.region-heading .overline{font-size:8px;letter-spacing:1px}.region-heading p{max-width:155px;font-size:12px;line-height:1.45}.champion-status{top:88px;right:12px;width:169px;padding:11px}.champion-status>.overline{font-size:9px;letter-spacing:1px}.champion-level{margin:6px 0}.champion-level>b{font-size:18px}.champion-level>strong{font-size:12px;padding:4px}.champion-status .xp-caption{font-size:10px}.champion-numbers{gap:8px;font-size:12px}.champion-status p{display:none}.champion-status .gold-btn{font-size:12px;min-height:42px;padding:8px 4px}.champion-status .text-button{font-size:11px;padding:6px 0}.champion-status .champion-numbers{margin:8px 0}.world-bottom{left:12px;right:12px;bottom:35px;align-items:stretch;flex-direction:column;gap:8px}.companion-chip{min-width:0;width:max-content;padding:6px 10px}.companion-chip>img{width:42px;height:42px}.companion-chip b{font-size:14px}.companion-chip span{font-size:10px}.quest-compass{padding:11px 14px;min-width:0;width:100%;gap:10px}.quest-compass b{font-size:17px}.quest-compass small{font-size:9px}.world-save{left:13px;font-size:9px}.training-cards{gap:12px;grid-template-columns:1fr}.training-card{display:grid;grid-template-columns:40% 1fr;align-items:stretch}.card-scene{height:100%;aspect-ratio:auto;min-height:130px}.training-card-copy{padding:13px;gap:5px}.training-card-copy>b{font-size:19px}.training-card-copy>strong{font-size:12px}.training-card-copy>small,.training-card-copy>span{font-size:11px}.training-scene{height:160px;margin:14px 0}.scene-companion{width:67px;height:67px}.scene-label{font-size:12px;bottom:12px}.garden-target{gap:8px;flex-wrap:wrap;justify-content:center;padding:15px}.garden-target strong{font-size:22px}.garden-workspace{padding:12px 0;flex-direction:column}.garden-beds{width:100%;gap:5px}.garden-bed{gap:4px;padding:2px}.row-label{font-size:11px;min-width:48px}.bed-cells{gap:3px;padding:4px}.bed-cells>button{height:39px;font-size:21px}.row-count{font-size:14px;width:15px}.garden-tally{width:100%;display:flex;flex-direction:row;justify-content:center;gap:10px;flex-wrap:wrap;align-items:center}.garden-tally>small{font-size:10px}.garden-tally>b{font-size:23px}.garden-tally .text-button{font-size:12px}.array-equation{font-size:17px!important;margin:4px 0;padding:11px}.row-demo{margin:6px 0;padding:12px;gap:8px}.row-demo>img{width:55px;height:55px}.row-demo b,.row-demo p{font-size:12px}.demo-lights{font-size:20px;gap:10px}.measurement-workspace{padding:40px 9px 12px}.measure-ruler>span{font-size:15px}.measure-ruler small{font-size:8px}.measure-gap{height:53px}.measure-slots>button{font-size:20px}.measure-total{font-size:13px;gap:10px}.world-node .map-location-art{width:77px}.node-label:has(.map-location-art){max-width:93px;font-size:10px}.scene-complete .scene-companion{left:70%}.reward-growth h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.scene-working .scene-companion>img,.scene-complete .scene-companion>img,.battle-reward-art img,.plant-light>i,.demo-lights>span,.block-trade .math-block,.measure-slots>button{animation:none!important}.scene-companion,.scene-live>i,.xp-progress>i{transition:none}}

.carried-block{position:absolute;right:3px;bottom:12px;width:10px;height:38px;color:#fce6a2;filter:drop-shadow(0 2px 3px #0007)}.carried-block svg{width:100%;height:100%}


/* Restore the original illustrated arena and its exact 1200 × 675 framing. */
.battle-layout{grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr)}
.arena-scene{aspect-ratio:1200/675;max-height:none;background:#8fd08a;overflow:hidden}
.arena-backdrop{background-image:url('assets/live-e93f4c9db79f53e6.webp');background-position:center;background-size:100% 100%;filter:none}
.arena-atmosphere,.arena-floor-glow{display:none}
.arena-scene .arena-hero{left:15%;top:68%;right:auto;bottom:auto;width:30%;height:auto;aspect-ratio:1;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 3px #0004);animation:none;z-index:3}
.arena-scene .arena-enemy,.arena-scene .arena-enemy.scout-enemy{left:70.7%;top:40%;right:auto;bottom:auto;width:22%;height:auto;aspect-ratio:1;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 3px #0004);animation:none;z-index:2}
/* The guardian is larger, but keeps its feet on the same far arena circle. */
.arena-scene .arena-enemy.guardian-enemy{width:32%;top:33%}
.arena-scene .fighter-art{width:100%;height:100%;aspect-ratio:1}
.arena-scene .fighter-art img{width:100%;height:100%;object-fit:contain;transform:none}
.arena-scene .enemy-hud{top:3%;left:3%;right:auto;width:43%;padding:10px 12px;background:#fdfaf3ed;color:#20352d;border:2px solid #294f43;backdrop-filter:none;z-index:5}
.arena-scene .enemy-hud b{font-family:inherit;font-size:16px;font-weight:bold}.arena-scene .enemy-hud>div:first-child{display:block;margin-bottom:5px}.arena-scene .enemy-hud span{display:none}.arena-scene .enemy-hud small{color:#385248;font-size:11px}.arena-scene .enemy-meter{background:#b1c3a1}
.arena-scene .hero-hud{left:auto;right:3%;bottom:3%;top:auto;width:51%;padding:10px 12px;background:#fdfaf3ef;color:#20352d;border:2px solid #294f43;backdrop-filter:none;z-index:5}
.arena-scene .hero-hud b{font-size:14px}.arena-scene .hero-hud strong{color:#315934;font-size:13px}.arena-scene .hero-hud small{color:#4d7058;font-size:10px}.arena-scene .hero-hud img{width:28px;height:28px}.arena-scene .hero-hud>div:first-child{gap:7px;margin-bottom:6px}.arena-scene .hero-meter{background:#b1c3a1}.arena-scene .resource-row{color:#3a5849;font-size:10px;margin-top:6px}.arena-scene .resource-row b{color:#90621b;font-size:12px}.arena-scene .resource-row i{color:#8fa18a}
.arena-scene .fx-projectile{position:absolute;width:13%;height:auto;pointer-events:none;z-index:20;transition:left .32s cubic-bezier(.4,.2,.3,1),top .32s cubic-bezier(.4,.2,.3,1);filter:drop-shadow(0 2px 4px #0005)}
.arena-scene .fx-impact{position:absolute;width:20%;height:auto;pointer-events:none;z-index:21;transform:translate(-50%,-50%) scale(.3);opacity:0}
.arena-scene .fx-impact.show{animation:original-impact-pop .45s ease forwards}.arena-scene .power-projectile{width:19%}.arena-scene .power-impact{width:29%}
.arena-scene .original-lunge-player{animation:original-lunge-right .45s ease}.arena-scene .original-lunge-opponent{animation:original-lunge-left .45s ease}.arena-scene .original-hit{animation:original-shake .4s ease}.arena-scene .original-flash{filter:brightness(2.2) saturate(0)}
.arena-scene .shield-active:after{content:'';position:absolute;inset:-4%;border:3px solid #81eaff;border-radius:50%;box-shadow:0 0 20px #baf6ff,inset 0 0 20px #96f5ff66;pointer-events:none}.arena-scene .healing-active{filter:drop-shadow(0 0 15px #a0ff90)}
.arena-scene .battle-effect{font-size:clamp(17px,2.5vw,30px);white-space:nowrap;z-index:25;color:#fff0a0;text-shadow:0 2px 5px #132d25,0 0 8px #132d25}.arena-scene .battle-effect.miss{color:#ffe1d4;font-size:clamp(14px,2vw,24px)}
@keyframes original-lunge-right{0%,100%{transform:translate(0,0) scale(1)}40%{transform:translate(50px,-15px) scale(1.08)}}
@keyframes original-lunge-left{0%,100%{transform:translate(0,0) scale(1)}40%{transform:translate(-50px,15px) scale(1.08)}}
@keyframes original-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px) rotate(-4deg)}40%{transform:translateX(8px) rotate(4deg)}60%{transform:translateX(-6px) rotate(-3deg)}80%{transform:translateX(6px) rotate(3deg)}}
@keyframes original-impact-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.05)}}
@media(max-width:900px){.battle-layout{grid-template-columns:1fr}.arena-panel{width:100%;max-width:850px;margin:auto}}
@media(max-width:520px){.arena-scene{border-radius:10px}.arena-scene .enemy-hud{padding:6px 8px;border-width:1px;width:45%}.arena-scene .enemy-hud b{font-size:11px}.arena-scene .enemy-hud small{font-size:9px;margin-top:3px}.arena-scene .hero-hud{width:56%;padding:6px 8px;border-width:1px}.arena-scene .hero-hud b{font-size:10px}.arena-scene .hero-hud strong{font-size:10px}.arena-scene .hero-hud img,.arena-scene .hero-hud small{display:none}.arena-scene .hero-hud>div:first-child{margin-bottom:4px}.arena-scene .resource-row{font-size:8px;margin-top:4px;gap:4px}.arena-scene .resource-row b{font-size:10px}.arena-scene .hero-meter,.arena-scene .enemy-meter{height:6px}}
@media(prefers-reduced-motion:reduce){.arena-scene .fighter-art,.arena-scene .fx-impact.show{animation:none!important}.arena-scene .fx-projectile{transition:none}.arena-scene .battle-effect{animation:none}}

/* A brighter, moving forest, with room to explore. */
.world-vignette{background:linear-gradient(#061b2377,transparent 25%,transparent 78%,#061b23ae)}
.map-mist{opacity:.06}.world-art{transition:filter 1.2s}.living-forest{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.moving-water,.wind-canopy{position:absolute;inset:0;background-image:url('assets/live-db9c09b087168bb8.webp');background-size:100% 100%;background-repeat:no-repeat;filter:brightness(1.03) saturate(1.16)}
.moving-water{filter:url('#waterMotion') brightness(1.07) saturate(1.2);opacity:.8}
.river-left{clip-path:polygon(8% 1%,12% 1%,12% 23%,18% 27%,18% 32%,12% 36%,12% 41%,23% 43%,22% 51%,18% 54%,20% 60%,25% 62%,29% 69%,27% 73%,22% 74%,22% 67%,18% 65%,13% 60%,13% 53%,16% 51%,17% 47%,8% 44%,7% 38%,12% 31%,12% 27%,8% 21%)}
.river-right{clip-path:polygon(91% 33%,96% 34%,94% 47%,90% 53%,92% 55%,92% 60%,85% 61%,86% 68%,80% 76%,84% 85%,77% 96%,68% 100%,62% 99%,74% 92%,77% 85%,76% 80%,76% 73%,79% 69%,81% 64%,82% 59%,74% 59%,71% 57%,66% 55%,66% 51%,69% 52%,69% 55%,76% 56%,85% 56%,89% 51%,89% 44%)}
.wind-canopy{opacity:.85;transform-origin:29% 42%;mask-image:radial-gradient(ellipse 11% 13% at 29% 32%,#000 55%,transparent 99%);animation:forest-sway 6s ease-in-out infinite alternate}
.canopy-two{transform-origin:92% 22%;mask-image:radial-gradient(ellipse 14% 13% at 92% 6%,#000 45%,transparent 99%);animation-duration:8s;animation-delay:-3s}
.wind-leaf{position:absolute;left:-8%;top:var(--leaf-y);width:var(--leaf-size);height:auto;opacity:0;animation:leaf-breeze var(--leaf-duration) linear var(--leaf-delay) infinite;filter:drop-shadow(0 2px 2px #173c3355);will-change:transform}
.world-camera .mote{width:7px;height:7px;z-index:4;background:#ffef8f;box-shadow:0 0 7px 3px #ffe976,0 0 20px 7px #ffd74b88;border-radius:50%;animation:bright-firefly var(--duration) ease-in-out var(--delay) infinite}
@keyframes forest-sway{from{transform:rotate(-.65deg) translateX(-2px)}to{transform:rotate(.65deg) translateX(3px)}}
@keyframes leaf-breeze{0%{transform:translate(0,0) rotate(0);opacity:0}8%{opacity:.8}45%{transform:translate(55vw,35px) rotate(150deg);opacity:.8}92%{opacity:.7}100%{transform:translate(125vw,-20px) rotate(320deg);opacity:0}}
@keyframes bright-firefly{0%,100%{opacity:.25;transform:translate(0,0) scale(.7)}35%{opacity:1;transform:translate(22px,-28px) scale(1.2)}65%{opacity:.8;transform:translate(-12px,-42px) scale(1)}}
button.companion-chip{color:var(--cream);font:inherit;text-align:left;cursor:pointer;width:auto;min-width:215px}.companion-chip:hover{border-color:#ffdf85;background:#214b43}.companion-copy{display:block}.companion-chip .chip-chevron{font-size:23px;color:#ffe295;margin-left:auto}.companion-chip>img{pointer-events:none}.profile-dialog{max-width:650px}.champion-profile{text-align:center}.profile-portrait{height:140px}.profile-portrait img{height:100%;width:auto;object-fit:contain}.champion-profile>p{margin:15px 0}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.profile-stats span{padding:15px 8px;border:1px solid #aac49560;border-radius:9px;color:#cad9c5;font-size:13px}.profile-stats b{display:block;font:30px Georgia,serif;color:#ffe196;margin-bottom:6px}.profile-badges{margin:16px 0;padding:12px;background:#4d684c33;border-radius:8px}.profile-badges p{font-size:14px}.game-dialog .dialog-shell{padding-top:62px}.dialog-music{position:absolute;right:60px;top:14px;min-height:34px;padding:6px 12px;font-size:12px}.welcome-dialog .dialog-music{right:18px}.music-volume{display:block;text-align:left;margin:24px 0;color:#eee9cc;font-size:15px}.music-volume output{float:right;color:#ffde87}.music-volume input{display:block;width:100%;margin-top:12px;accent-color:#f6d88d;min-height:28px}.battle-header{gap:12px}.battle-header>div{flex:1}.battle-header>[data-music-toggle]{white-space:nowrap}.world-utilities #soundBtn{font-size:17px}
.scene-companion.activity-guide{left:8%;bottom:23px;width:125px;height:125px}.scene-companion.activity-guide img{object-fit:contain}.scene-visitor{position:absolute;right:5%;bottom:27px;width:65px;height:65px;filter:drop-shadow(0 3px 3px #0006)}.scene-visitor img{width:100%;height:100%;object-fit:contain}.scene-complete .activity-guide{left:58%}.scene-complete .scene-visitor{animation:train-celebrate .5s ease-in-out 3 alternate}.scene-label{z-index:4}.scene-fireflies{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .5s}.garden-scene[data-stage="1"] .scene-fireflies,.garden-scene[data-stage="2"] .scene-fireflies,.garden-scene.scene-working .scene-fireflies,.garden-scene.scene-complete .scene-fireflies{opacity:1}.scene-fireflies i{position:absolute;width:7px;height:7px;background:#ffed8d;border-radius:50%;box-shadow:0 0 7px 4px #ffe680,0 0 20px 9px #eac84470;animation:bright-firefly 5s ease-in-out infinite;animation-delay:var(--delay)}.plant-light>i{font-size:17px;top:-13px;right:-9px;color:#ffd438;text-shadow:0 0 5px #ffe57d,0 0 13px #ffdf56;animation:firefly-land .6s ease-out,planted-glow 2s ease-in-out .6s infinite alternate}.bed-cells>button.planted{box-shadow:0 0 12px #e8d468aa;background:#fff3b8}@keyframes planted-glow{to{text-shadow:0 0 8px #fff6b2,0 0 20px #ffd244;transform:translateY(-3px)}}
@media(max-width:650px){.world-utilities #musicBtn{display:inline-flex;font-size:11px;padding:7px}.world-utilities #soundBtn{display:none}.world-header{padding:14px 10px;gap:7px}.wordmark{font-size:9px;letter-spacing:.7px}.wordmark small{font-size:7px}.wordmark-emblem{width:24px;height:29px}.world-utilities .round-btn{width:32px;min-height:35px}.world-utilities .small-btn{min-height:35px}.world-utilities #journalBtn{display:none}.region-heading{max-width:100%;top:91px}.region-heading p{max-width:260px}.companion-chip{align-self:flex-start}.world-bottom button.companion-chip{min-width:190px;width:auto}.world-bottom{pointer-events:none}.world-bottom>*{pointer-events:auto}.profile-portrait{height:110px}.profile-stats b{font-size:25px}.profile-stats span{font-size:11px;padding:12px 5px}.battle-header h1{font-size:23px}.battle-header .overline{font-size:8px;letter-spacing:1px}.battle-header .small-btn{font-size:11px;padding:7px}.battle-header #battleAudio{width:31px;min-height:34px;font-size:17px}.scene-companion.activity-guide{width:100px;height:100px;bottom:22px}.scene-visitor{width:50px;height:50px}.scene-complete .activity-guide{left:50%}.world-camera .mote{width:6px;height:6px}.game-dialog .dialog-shell{padding-top:60px}.row-demo>img{width:70px;height:70px}}
@media(prefers-reduced-motion:reduce){.wind-leaf,.moving-water,.wind-canopy{display:none}.world-camera .mote,.scene-fireflies i{animation:none!important;opacity:.7}.plant-light>i{animation:none}.scene-visitor{animation:none!important}}

.boss-portrait{display:inline-block;position:relative;width:100%;aspect-ratio:1;vertical-align:middle}.boss-portrait>img{display:block;width:100%;height:100%;object-fit:contain}.boss-portrait>img.boss-gaze{position:absolute;inset:0;width:100%;height:100%;mask-image:radial-gradient(ellipse 2.2% 2.5% at 25.2% 33.3%,black 70%,transparent 100%),radial-gradient(ellipse 3.8% 3% at 33% 31.5%,black 70%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 2.2% 2.5% at 25.2% 33.3%,black 70%,transparent 100%),radial-gradient(ellipse 3.8% 3% at 33% 31.5%,black 70%,transparent 100%)}.story-art .boss-portrait{max-width:330px}

.activity-guide img{border:0;border-radius:0;background:transparent;box-shadow:none}.scene-companion.activity-guide{filter:none}.scene-working .activity-guide>img{animation:none}.scene-complete .activity-guide{left:8%}.scene-complete .activity-guide>img{animation:guide-cheer .55s ease-in-out 3 alternate}.row-demo>img{border:0;border-radius:0;background:transparent;box-shadow:none}.scene-visitor{transition:transform 1s}.scene-complete .scene-visitor{transform:translateX(-15px)}@keyframes guide-cheer{to{transform:translateY(-5px) rotate(-2deg)}}@media(prefers-reduced-motion:reduce){.scene-complete .activity-guide>img{animation:none!important}.scene-visitor{transition:none}}

.question-skill{font-size:12px;color:#47624c;font-weight:700;margin:16px 0 6px}.battle-choices{display:grid;grid-template-columns:1fr;gap:9px;margin:12px 0 16px}.battle-choice{display:flex;gap:12px;align-items:center;text-align:left;min-height:51px;padding:11px 14px;border:2px solid #c7c9ae;border-radius:9px;background:#fffdf1;color:#203f38;font-family:inherit;font-size:16px;font-weight:600;line-height:1.35;cursor:pointer}.battle-choice:hover:not(:disabled){border-color:#407361;background:#e9f2db}.battle-choice:focus-visible{outline:3px solid #bf841e;outline-offset:3px}.choice-letter{display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:7px;background:#e6ead5;font-weight:800}.battle-choice:disabled{opacity:.65;cursor:default}.battle-choice.correct-choice{border-color:#34804c;background:#e0f0d8;opacity:1}.battle-choice.wrong-choice{border-color:#ba633f;background:#fce5d8;opacity:1}.battle-choice.correct-choice .choice-letter{background:#2e6d44;color:white}

.explore-game{height:100dvh;min-height:480px;background:#102e30;color:#f6f3da}.explore-shell{height:100%;display:flex;flex-direction:column;overflow:hidden}.explore-header{min-height:65px;padding:9px 23px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#122f31;border-bottom:2px solid #d2b767;z-index:2}.explore-brand{display:flex;align-items:center;gap:12px}.explore-brand b{display:block;font-size:14px;letter-spacing:1.6px;color:#f7dc8f}.explore-brand>div>span{display:block;font-size:11px;letter-spacing:1px;margin-top:4px;color:#c5ddd0}.explore-emblem{border:2px solid #d6bb68;color:#f5d581;border-radius:9px;font:700 29px Georgia;padding:2px 8px;position:relative}.explore-emblem>span{font:700 13px system-ui;position:absolute;right:-5px;bottom:-3px;background:#173a3b}.explore-header nav{display:flex;gap:9px;align-items:center}.explore-header .small-btn{font-size:14px;background:#214346;color:#f8eac3;border:1px solid #75958c66}.explore-stage{position:relative;flex:1;min-height:260px;overflow:hidden;background:#477943}.explore-stage canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.explore-stage canvas:focus-visible{box-shadow:inset 0 0 0 4px #ffdc80}.explore-location{position:absolute;top:17px;left:20px;background:#102d2cdd;padding:11px 17px 12px;border:1px solid #d4d79b55;border-radius:9px;pointer-events:none;box-shadow:0 5px 18px #082b2d33;max-width:360px}.explore-location>span{font-size:10px;letter-spacing:1.6px;color:#e6ca7b}.explore-location h1{font:29px Georgia;margin:4px 0 0;color:#fff6ce}.explore-goal{position:absolute;top:17px;right:20px;border:1px solid #d6cd9477;background:#173b32e8;border-radius:9px;color:#f7efd0;max-width:260px;text-align:left;padding:11px 15px;cursor:pointer;box-shadow:0 5px 18px #082b2d33}.explore-goal small{display:block;font-size:10px;letter-spacing:1.4px;color:#b9d3a6}.explore-goal b{display:block;font-size:14px;margin:5px 0}.explore-goal>span{font-size:12px;color:#eed594}.explore-goal:hover{background:#285241}.explore-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 22px;min-height:78px;background:#112e31;border-top:2px solid #65866b}.explore-champion{display:flex;gap:9px;align-items:center;padding:0;border:0;background:transparent;color:#faf0c9;text-align:left;cursor:pointer;min-width:215px}.explore-champion>img{width:62px;height:62px;object-fit:contain}.explore-champion b{font-size:17px}.explore-champion em{font-style:normal;color:#e9cf81;font-size:13px;margin-left:6px}.explore-champion small{display:block;font-size:12px;margin:5px 0;color:#bdd8c7}.explore-xp{height:5px;width:150px;background:#041b22;display:block;border-radius:3px;overflow:hidden}.explore-xp>i{display:block;height:100%;background:#d9c171}.explore-controls{font-size:13px;line-height:1.7;color:#c5d8cb;text-align:center;margin:0}.explore-controls b{color:#f5e9c0;font-weight:600}.explore-controls>span{margin:0 8px}.explore-controls small{font-size:12px;color:#a9c6bd}.explore-footer>.small-btn{color:#f6eac2;border-color:#a0ba8866;background:#27494a;font-size:13px}.explore-footer>.small-btn span{display:inline-block;background:#132f2a;border-radius:4px;margin-left:7px;padding:3px 5px;color:#e6c779}.explore-touch{position:absolute;bottom:18px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.explore-touch button{pointer-events:auto;touch-action:none;user-select:none}.explore-dpad{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,41px);gap:4px;filter:drop-shadow(0 3px 3px #08262877)}.explore-dpad button{font-size:22px;border:1px solid #e2e7ba80;background:#133d35dc;color:#fff0b4;border-radius:9px}.explore-dpad button:active{background:#759e60}.explore-dpad [data-direction=up]{grid-column:2}.explore-dpad [data-direction=left]{grid-column:1;grid-row:2}.explore-dpad [data-direction=down]{grid-column:2;grid-row:2}.explore-dpad [data-direction=right]{grid-column:3;grid-row:2}#exploreAction{font-size:14px;min-height:47px;padding:10px 19px;border-radius:12px;box-shadow:0 3px 8px #0f252a66}.explore-nearby{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);border:1px solid #f7d582;background:#173930ef;border-radius:8px;padding:12px 16px;color:#fff0c3;font-size:14px;max-width:43%;text-align:center;pointer-events:none}.area-arrival{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#fff2c0;font:36px Georgia;text-shadow:0 3px 6px #062a2f;background:#0c2c2c55;animation:area-reveal 2.3s both}.area-arrival[hidden]{display:none}@keyframes area-reveal{0%{background:#0c2c2cf0;opacity:1}15%,50%{background:#0c2c2c38;opacity:1}100%{background:transparent;opacity:0}}.field-map-dialog{max-width:800px}#fieldMap{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border:1px solid #829b7866;background:#102f32;border-radius:10px;margin:18px 0 10px}.map-key{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;font-size:13px!important;color:#c6dfc5}.map-key>span:first-child{color:#ffe381}.map-key>span:last-child{color:#90f3f2}.map-destinations{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.map-destinations button{display:flex;align-items:center;gap:9px;text-align:left;padding:12px;border:1px solid #9fbe9366;border-radius:7px;background:#25463c;color:#f3e9c6;font:600 14px/1.3 system-ui;cursor:pointer}.map-destinations button>span{color:#9ce4ca}.map-destinations button>small{margin-left:auto;font-size:11px;color:#c0d4b5;font-weight:400}.map-destinations button:hover{background:#3b6048;border-color:#e2ca86}.region-connections{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;font-size:12px;color:#a6c3b6;margin:19px 0}.region-connections .here{padding:5px 8px;background:#e4cc88;border-radius:4px;color:#17362c;font-weight:700}.chapter-steps{list-style:none;padding:0;margin:22px 0}.chapter-steps>li{display:flex;gap:12px;align-items:center;border-bottom:1px solid #adbc8155;padding:13px 0;font-size:16px;color:#d3dfc4}.chapter-steps>li>span{display:grid;place-items:center;width:27px;height:27px;border:1px solid #9bac8155;border-radius:50%;color:#d6c58e}.chapter-steps .done{color:#f3e5ba}.chapter-steps .done>span{background:#c8dba5;color:#244938;border-color:#c8dba5;font-weight:800}.journal-badges{background:#16372e;padding:15px;border:1px solid #a3b87a55;border-radius:9px;margin:17px 0;color:#f3d792}.journal-badges p{font-size:14px!important;line-height:1.6;color:#c7dabb!important;margin:7px 0 0}.journal-intro{font-size:16px!important;line-height:1.6}
@media(max-width:850px){.explore-controls{display:none}.explore-location h1{font-size:25px}.explore-goal{max-width:225px}.explore-nearby{bottom:112px;max-width:80%;width:max-content}}
@media(max-width:600px){.explore-header{padding:8px 12px;min-height:57px}.explore-brand b{font-size:11px;letter-spacing:.5px}.explore-brand>div>span{font-size:9px;letter-spacing:.4px}.explore-emblem{display:none}.explore-header nav{gap:5px}.explore-header .small-btn{font-size:12px;padding:7px}.explore-header .round-btn{width:32px;min-height:33px}.explore-location{top:12px;left:12px;padding:9px 12px;max-width:calc(100% - 24px)}.explore-location h1{font-size:23px}.explore-location>span{font-size:9px;letter-spacing:1px}.explore-goal{top:87px;left:12px;right:auto;padding:8px 11px;max-width:calc(100% - 24px)}.explore-goal small{display:none}.explore-goal b{font-size:12px;margin:0}.explore-goal>span{font-size:11px}.explore-footer{padding:5px 10px;gap:8px;min-height:69px}.explore-champion{min-width:0;gap:4px}.explore-champion>img{width:48px;height:52px}.explore-champion b{font-size:14px}.explore-champion small{font-size:11px}.explore-xp{width:115px}.explore-footer>.small-btn{font-size:12px;padding:8px}.explore-footer>.small-btn span{margin-left:3px}.explore-touch{left:12px;right:12px;bottom:16px}.explore-nearby{bottom:118px;max-width:90%;padding:9px 12px;font-size:13px}.explore-dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,43px)}#exploreAction{padding:9px 13px;font-size:13px}.map-destinations{grid-template-columns:1fr}.area-arrival{font-size:27px}.region-connections{gap:5px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.area-arrival{animation:none;background:#123a32e8;inset:15px 15px auto auto;padding:14px;border-radius:8px;font-size:22px}.explore-stage canvas{scroll-behavior:auto}}
.encounter-notice{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);max-width:85%;padding:17px 27px;border:2px solid #ffdc85;background:#173a30f2;border-radius:12px;box-shadow:0 8px 30px #071e2a77;color:#fff1c6;font:700 23px/1.35 system-ui;text-align:center;pointer-events:none;z-index:6;animation:encounter-pop .18s ease-out}.encounter-notice[hidden]{display:none}.encounter-notice[data-element=Fire]{border-color:#ff9e62}.encounter-notice[data-element=Water]{border-color:#6ad6ff}.encounter-notice[data-element=Nature]{border-color:#b4ef7a}.encounter-notice[data-element=Electric]{border-color:#ffe568}.encounter-notice[data-element=Earth]{border-color:#e1c68d}.encounter-notice[data-element=Air]{border-color:#d4c9ff}.encounter-summary{font-size:14px!important;color:#eed795!important;line-height:1.6}@keyframes encounter-pop{from{opacity:0;transform:translate(-50%,-50%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(max-width:600px){.encounter-notice{font-size:18px;padding:14px 20px}}@media(prefers-reduced-motion:reduce){.encounter-notice{animation:none}}

/* Fit the available browser viewport, including Safari's expanding toolbar. */
:root { --play-height: 100vh; }
.fullscreen-button { white-space: nowrap; min-height: 44px; font-size: 14px; }
.fullscreen-message { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; background: #f7e9bd; color: #16392f; border-radius: 8px; font-size: 16px; line-height: 1.4; }
.fullscreen-message > span { flex: 1; }
.fullscreen-message > button { flex-shrink: 0; min-height: 44px; }
@media (max-width: 699px) {
  .explore-header { flex-wrap: wrap; }
  .explore-header nav { margin-left: auto; flex-wrap: wrap; }
  .battle-header { flex-wrap: wrap; }
  .battle-header > div { min-width: 150px; }
}
@supports (height: 100dvh) { :root { --play-height: 100dvh; } }
.explore-game, .world-game { height: var(--play-height); min-height: 0; }
.explore-stage { min-height: 0; }
.explore-header, .explore-footer { flex-shrink: 0; }
.explore-footer { padding-bottom: max(7px, env(safe-area-inset-bottom)); }

/* Dialog navigation stays outside the scrollable content. Longer guides and
   enlarged text can still scroll without losing Close, Check, or Continue. */
.game-dialog {
  max-height: calc(var(--play-height) - 24px);
  max-width: min(960px, calc(100vw - 24px));
  overflow: hidden;
}
.game-dialog .dialog-shell {
  display: flex; flex-direction: column; gap: 0;
  padding: 0; max-height: calc(var(--play-height) - 28px);
}
.dialog-toolbar {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 10px; padding: 6px 12px; flex: 0 0 auto;
}
.game-dialog .dialog-toolbar .dialog-music,
.game-dialog .dialog-toolbar .dialog-close {
  position: static; margin: 0; min-height: 44px;
}
.game-dialog .dialog-toolbar .dialog-close { width: 44px; }
.dialog-body {
  min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 0 24px 18px; scrollbar-width: thin;
}
.dialog-footer {
  flex: 0 0 auto; padding: 12px 24px;
  border-top: 1px solid var(--line); background: #123335;
}
.dialog-footer > .dialog-actions, .dialog-footer > .puzzle-footer,
.dialog-footer > .story-actions, .dialog-footer > .welcome-actions { margin: 0; }
.dialog-footer > .gold-btn { display: flex; margin-inline: auto; }
.game-dialog h2 { margin: 6px 0 12px; font-size: 32px; }
.story-dialog .dialog-body {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px; align-items: center;
}
.story-text { font-size: 16px; line-height: 1.55; }
.menu-dialog { max-width: min(720px, calc(100vw - 24px)); }
.reward-dialog { max-width: min(690px, calc(100vw - 24px)); }
.profile-dialog { max-width: min(790px, calc(100vw - 24px)); }
.welcome-dialog { max-width: min(960px, calc(100vw - 24px)); }
.welcome-heading h2 { font-size: 44px; }
.welcome-roster { margin: 18px 0 12px; }
.hero-preview { margin-bottom: 8px; flex-wrap: wrap; }
.welcome-note { margin-top: 8px !important; }
.puzzle-feedback { margin: 12px 0 0; }
.dialog-body > .puzzle-feedback { grid-column: 1 / -1; }
.puzzle-footer .text-button, .challenge-tools .text-button,
.challenge-top .text-button { min-height: 44px; font-size: 14px; }
.training-dialog .dialog-body > p { max-width: 760px; }
.training-cards { margin: 16px 0 0; gap: 12px; }
.training-card { display: grid; grid-template-columns: 35% minmax(0, 1fr); }
.training-card .card-scene { height: 100%; min-height: 136px; aspect-ratio: auto; }
.training-card-copy { padding: 12px; }
.training-card-copy > b { font-size: 21px; }
.training-card-copy > small, .training-card-copy > span { font-size: 14px; }
.menu-list { margin: 14px 0; gap: 10px; }
.music-volume { margin: 14px 0; }
.chapter-steps { margin: 14px 0; }
.chapter-steps > li { padding: 9px 0; }
.journal-badges { padding: 10px 12px; margin: 10px 0; }
.reward-growth { margin: 10px auto; padding: 12px 18px; }
.reward-growth h3 { margin: 5px 0 8px; }
.battle-reward-art, .battle-reward-art img { height: 80px; }
.reward-dialog .training-scene { height: 130px; margin: 10px 0; }
.reward-dialog p { font-size: 16px; line-height: 1.45; }

/* Tablet layout uses space beside the activity instead of a tall introduction. */
@media (min-width: 700px) {
  .puzzle-dialog { max-width: min(1120px, calc(100vw - 24px)); }
  .puzzle-dialog .dialog-body {
    display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 12px 18px; align-items: start;
  }
  .puzzle-header { padding: 0; }
  .puzzle-header h2 { font-size: 30px; }
  .puzzle-header p { font-size: 16px; line-height: 1.4; }
  .training-reward { padding: 8px 10px; margin: 10px 0; }
  .puzzle-header .training-scene { height: clamp(125px, 23dvh, 190px); margin: 12px 0; }
  .puzzle-steps { margin: 12px 0 0; }
  .puzzle-work { min-width: 0; }
  .place-values { gap: 8px; padding: 12px; }
  .place-title { padding-top: 8px; }
  .place-title h3 { font-size: 16px; }
  .block-source { height: 60px; margin: 8px 6px; width: calc(100% - 12px); gap: 5px; }
  .block-source > svg { height: 42px; }
  .block-source > span { font-size: 14px; }
  .block-tray { min-height: 68px; max-height: 112px; padding: 7px; }
  .math-block.h { width: 36px; height: 36px; }
  .block-controls { padding: 5px; }
  .block-controls button { width: 44px; height: 44px; }
  .target-banner { padding: 12px 16px; }
  .target-banner > strong { font-size: 40px; }
  .trade-row { gap: 5px 14px; }
  .trade-row .text-button { min-height: 44px; font-size: 14px; }
  .puzzle-help { font-size: 14px !important; padding: 8px 12px; line-height: 1.35; }
  .garden-target { gap: 8px; padding: 10px; flex-wrap: wrap; }
  .garden-target strong { font-size: 24px; }
  .garden-workspace { display: block; padding: 10px; }
  .garden-beds { gap: 5px; }
  .garden-bed { gap: 6px; }
  .row-label { min-width: 62px; font-size: 14px; }
  .bed-cells { gap: 4px; padding: 3px; }
  .bed-cells > button { height: 44px; }
  .garden-tally { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding-top: 6px; }
  .garden-tally b { font-size: 26px; }
  .garden-tally .text-button { min-height: 44px; font-size: 14px; }
  .garden-tally small { font-size: 12px; }
  .array-equation { padding: 7px; margin: 0 10px; font-size: 18px !important; }
  .clock-workspace { gap: 16px; padding: 16px; }
  #clockHolder { min-width: 0; flex: 1; }
  .clock-controls { min-width: 140px; }
  .hour-control button, .minute-presets button { min-width: 44px; min-height: 44px; }
  .minute-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .clock-controls input { min-height: 44px; }
  .clock-controls > label { font-size: 14px; }
  .menu-list { display: grid; grid-template-columns: 1fr 1fr; }
  .menu-list > :first-child { grid-column: 1 / -1; }
  .champion-profile { display: grid; grid-template-columns: 135px minmax(0, 1fr); column-gap: 18px; }
  .champion-profile > * { grid-column: 2; }
  .champion-profile > .profile-portrait { grid-column: 1; grid-row: 1 / 6; height: 145px; align-self: center; }
  .profile-stats { margin: 12px 0; gap: 8px; }
  .profile-stats span { padding: 9px 5px; font-size: 14px; }
  .profile-stats b { font-size: 26px; }
  .champion-profile > p { margin: 6px 0; font-size: 16px; line-height: 1.4; }
  .profile-badges { margin: 8px 0; padding: 8px; }
  .field-map-dialog { max-width: min(1020px, calc(100vw - 24px)); }
  .field-map-dialog .dialog-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr); gap: 10px 18px; }
  .field-map-dialog .dialog-body > .overline, .field-map-dialog h2 { grid-column: 1 / -1; margin: 0; }
  #fieldMap { grid-column: 1; grid-row: 3; margin: 0; max-height: 310px; align-self: center; }
  .map-destinations { grid-column: 2; grid-row: 3 / 5; grid-template-columns: 1fr; margin: 0; align-content: start; }
  .map-destinations button { padding: 9px 10px; min-height: 44px; }
  .map-key { grid-column: 1; gap: 8px; }
  .region-connections { grid-column: 1 / -1; margin: 4px 0; }
}

/* The arena and next enemy move share one column; questions own the other.
   Answer feedback replaces the choice list instead of extending the page. */
@media (min-width: 700px) and (max-width: 1400px) {
  .battle-game { min-height: var(--play-height); padding: 12px 16px; }
  .battle-header { margin-bottom: 12px; gap: 12px; }
  .battle-header h1 { margin-top: 3px; font-size: 24px; }
  .battle-header .small-btn, .battle-header .round-btn { min-height: 44px; }
  .battle-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: 'arena controls' 'intent controls' '. controls';
    grid-template-rows: auto auto 1fr; gap: 12px 16px;
  }
  .arena-panel { grid-area: arena; width: 100%; margin: 0; }
  .battle-console { display: contents; }
  .enemy-intent { grid-area: intent; padding: 12px; }
  .enemy-intent p { font-size: 14px; }
  .enemy-intent small { font-size: 12px; letter-spacing: .6px; }
  #battleControls { grid-area: controls; min-width: 0; padding: 16px; background: #153436; border: 1px solid #78978355; border-radius: 14px; }
  .battle-tip { display: none; }
  .phase-track { margin: 10px 0 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .phase-track > span { font-size: 12px; }
  .turn-title { margin: 0 0 14px; }
  .turn-title h2 { font-size: 29px; margin: 6px 0; }
  .turn-title p { font-size: 16px; line-height: 1.4; }
  .move-grid { gap: 10px; }
  .move-button { min-height: 112px; padding: 12px; }
  .move-button .move-icon { font-size: 22px; margin-bottom: 4px; }
  .move-button > b { margin-bottom: 5px; }
  .move-button > small { font-size: 14px; line-height: 1.3; }
  .strategy-note { margin-top: 12px; padding-top: 10px; }
  .strategy-note p { font-size: 14px; line-height: 1.45; margin-top: 5px; }
  .challenge-top { margin: 0 0 4px; }
  .question-skill { margin: 4px 0 8px; color: #c4d9c5; font-size: 14px; }
  .battle-question { font-size: 24px; line-height: 1.3; margin: 8px 0 12px; }
  .answer-label { display: none; }
  .battle-choices { grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
  .battle-choice { min-height: 58px; padding: 10px; font-size: 16px; gap: 8px; overflow-wrap: anywhere; }
  .choice-letter { flex-basis: 25px; height: 28px; }
  .challenge-tools { margin-top: 6px; gap: 16px; }
  .battle-hint { margin: 8px 0 0; padding: 10px 12px; font-size: 16px; line-height: 1.4; }
  .showing-feedback .battle-choices, .showing-feedback .challenge-top,
  .showing-feedback .challenge-tools, .showing-feedback .answer-label,
  .showing-feedback .question-skill { display: none; }
  .battle-feedback { margin-top: 12px; padding: 12px; }
  .battle-feedback h3 { font-size: 24px; margin: 6px 0 10px; }
  .battle-feedback p { font-size: 16px; line-height: 1.45; }
  .battle-feedback .answer-recap { margin-bottom: 8px; color: #ffdfa0; }
  .battle-feedback .gold-btn { margin-top: 12px; min-height: 48px; }
  .turn-summary { margin-top: 10px; }
  .turn-summary span { font-size: 14px; }
  .arena-scene .hero-hud { width: 55%; padding: 8px; }
  .arena-scene .hero-hud img, .arena-scene .hero-hud small { display: none; }
  .arena-scene .enemy-hud { padding: 8px; width: 47%; }
  .arena-scene .enemy-hud b { font-size: 14px; }
  .arena-scene .hero-hud b, .arena-scene .hero-hud strong { font-size: 14px; }
  .arena-scene .enemy-hud small, .arena-scene .resource-row { font-size: 12px; }
}

@media (min-width: 700px) and (orientation: landscape) {
  .puzzle-dialog .dialog-body { grid-template-rows: auto 1fr; }
  .puzzle-header { grid-column: 1; grid-row: 1; }
  .puzzle-work { grid-column: 2; grid-row: 1 / 3; }
  .dialog-body > .puzzle-feedback { grid-column: 1; grid-row: 2; margin: 0; }
}

/* Portrait keeps a compact arena above the question, with two answer columns. */
@media (min-width: 700px) and (orientation: portrait) {
  .battle-layout { grid-template-columns: 1fr; grid-template-areas: 'arena' 'intent' 'controls'; grid-template-rows: auto auto auto; gap: 10px; }
  .arena-panel { max-width: min(520px, 56dvh); margin-inline: auto; }
  .enemy-intent { padding: 8px 12px; }
  .enemy-intent > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
  .enemy-intent small, .enemy-intent p { margin: 0; }
  .enemy-intent p { flex-basis: 100%; }
  #battleControls { padding: 12px 16px; }
  .move-button { min-height: 94px; }
  .move-button .move-icon { float: right; margin: 0; }
  .strategy-note { padding-top: 8px; margin-top: 8px; }
  .turn-title { margin-bottom: 10px; }
  .battle-question { font-size: 24px; }
  .puzzle-dialog .dialog-body { grid-template-columns: 1fr; }
  .puzzle-header { display: grid; grid-template-columns: 1fr 210px; gap: 0 16px; }
  .puzzle-header > * { grid-column: 1; }
  .puzzle-header .training-scene { grid-column: 2; grid-row: 1 / 6; height: 180px; margin: 0; }
  .puzzle-header h2 { font-size: 28px; }
  .puzzle-header .training-reward { margin: 8px 0; }
  .puzzle-steps { margin-top: 5px; }
  .garden-workspace { display: flex; gap: 16px; }
  .garden-tally { flex: 0 0 150px; flex-direction: column; gap: 5px; }
}
@media (min-width: 700px) and (max-height: 740px) {
  .explore-header { min-height: 56px; padding: 5px 16px; }
  .explore-footer { min-height: 64px; padding: 5px 16px; }
  .explore-champion > img { width: 50px; height: 50px; }
  .explore-location { padding: 8px 12px; top: 12px; left: 16px; }
  .explore-location h1 { font-size: 25px; }
  .explore-goal { top: 12px; right: 16px; padding: 8px 12px; }
  .explore-controls { display: none; }
  .welcome-heading h2 { font-size: 38px; }
  .hero-choice img { width: 76px; height: 76px; }
  .hero-choice { padding-block: 8px; }
  .welcome-roster { margin-top: 12px; }
  .dialog-body { padding-inline: 20px; }
}
@media (max-width: 699px) {
  .dialog-body { padding: 0 16px 16px; }
  .dialog-footer { padding: 10px 16px; }
  .dialog-footer .dialog-actions, .dialog-footer .puzzle-footer { gap: 8px; }
  .story-dialog .dialog-body { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .training-card { grid-template-columns: 32% minmax(0, 1fr); }
  .puzzle-header .training-scene { height: 140px; }
}

.coin-total { color: #ffdc80 !important; font-size: 20px !important; font-weight: 700; }
.read-section-button { min-height: 44px; white-space: nowrap; font-size: 14px; color: #fff1c5; border-color: #d6c17d99; }
.read-section-button[aria-pressed=true] { background: #f3d187; color: #19392e; }
.read-status { flex: 0 0 auto; margin: 0 16px 8px; padding: 8px 12px; font-size: 15px; line-height: 1.4; background: #f3dfad; color: #19392e !important; border-radius: 8px; }
@media (min-width: 700px) and (max-width: 1000px) {
  .explore-header { padding-inline: 12px; gap: 10px; }
  .explore-header nav { gap: 6px; }
  .explore-header .small-btn { padding-inline: 9px; }
  .explore-brand { gap: 8px; }
  .explore-brand b { font-size: 12px; letter-spacing: .6px; }
  .explore-brand > div > span { font-size: 10px; letter-spacing: .5px; }
}
.shop-dialog, .save-dialog { max-width: min(920px, calc(100vw - 24px)); }
.shop-heading, .save-current { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.shop-heading > img { width: 100px; height: 100px; object-fit: contain; }
.shop-heading h2 { margin: 5px 0; }
.shop-dialog .dialog-body > p { line-height: 1.4; }
.supply-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.supply-card { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 8px 12px; padding: 14px; border: 1px solid #acc59366; border-radius: 12px; background: #254a40; }
.supply-symbol { font-size: 30px; color: #ffe09b; }
.supply-card h3 { font: 23px Georgia, serif; margin-bottom: 6px; }
.supply-card p { font-size: 16px; line-height: 1.4; }
.supply-card small { display: block; margin-top: 7px; font-size: 14px; color: #eddbad; }
.supply-card > button { grid-column: 1 / -1; min-height: 44px; padding: 8px 14px; box-shadow: none; }
.shop-earnings { font-size: 14px !important; color: #dbd7b5 !important; }
.purchase-message { padding: 10px 12px; border-radius: 8px; background: #315d44; color: #f3edc6 !important; }
.supply-note, .tutorial-note { font-size: 14px; line-height: 1.45; color: #d4d8b3; margin-top: 12px; }
.tutorial-move { width: 100%; border: 2px solid #ffdb86; }
.battle-bag { margin-top: 12px; padding: 10px 12px; border: 1px solid #dfc78077; border-radius: 9px; }
.battle-bag summary { cursor: pointer; font-size: 16px; color: #ffe3a2; min-height: 34px; padding-block: 6px; }
.battle-bag p { font-size: 14px; line-height: 1.4; margin: 6px 0 10px; }
.battle-bag > div { display: grid; grid-template-columns: 1fr; gap: 8px; }
.battle-bag button { display: block; width: 100%; text-align: left; min-height: 44px; padding: 10px 12px; }
.battle-bag button small { display: block; font-size: 14px; font-weight: normal; margin-top: 5px; }
.battle-bag [aria-pressed=true] { border-color: #ffdc86; background: #466045; }
.showing-feedback > .supply-note { display: none; }
.explore-footer-actions { display: flex; align-items: center; gap: 10px; }
.explore-footer-actions .small-btn { min-height: 44px; font-size: 14px; }
.explore-footer-actions .badge-tracker { color: #ffe6a5; border-color: #e6c47f99; background: #36563e; }
.explore-footer-actions #exploreGuide > span { margin-left: 5px; color: #f6d786; }
.save-current > img { width: 85px; height: 85px; object-fit: contain; }
.save-current b { font-size: 21px; }
.save-current small { font-size: 14px; color: #f1d794; }
.save-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.save-options > section { border: 1px solid #9db78a77; border-radius: 12px; padding: 16px; background: #21433b; }
.save-options h3 { font: 23px Georgia,serif; margin-bottom: 10px; }
.save-options p { margin-bottom: 15px; line-height: 1.45; }
.save-options .gold-btn, .save-options .outline-btn { width: 100%; }
.save-upload { position: relative; cursor: pointer; }
.save-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.save-upload:focus-within { outline: 3px solid #ffdc87; outline-offset: 3px; }
.save-status { color: #ffe09f !important; font-size: 15px; line-height: 1.45; margin-top: 12px; }
.restore-facts { background: #21443b; padding: 12px 16px; border-radius: 10px; margin: 10px 0 16px; }
.restore-facts p { font-size: 16px; line-height: 1.55; }
.welcome-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.welcome-actions .text-button { min-height: 44px; }
@media (max-width: 1200px) { .explore-controls { display: none; } }
@media (min-width: 700px) and (orientation: landscape) {
  .shop-heading > img { width: 72px; height: 72px; }
  .supply-card { grid-template-columns: minmax(0,1fr) 94px; padding: 12px; }
  .supply-card > .supply-symbol { display: none; }
  .supply-card > div { grid-column: 1; }
  .supply-card > button { grid-column: 2; grid-row: 1; align-self: center; padding-inline: 8px; }
  .supply-card h3 { font-size: 21px; }
}
@media (max-width: 699px) {
  .supply-cards, .save-options { grid-template-columns: 1fr; }
  .explore-footer { flex-wrap: wrap; }
  .explore-footer-actions { gap: 6px; margin-left: auto; }
  .explore-footer-actions .small-btn { font-size: 13px; padding: 8px; }
  .shop-heading > img { width: 70px; height: 70px; }
  .shop-heading h2 { font-size: 27px; }
}

/* Section readers stay with the learning content, outside game toolbars. */
.section-readers { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.dialog-body h2 + .read-section-button { margin:0 0 10px; }
.puzzle-feedback .read-section-button, .battle-hint .read-section-button { margin-top:6px; }
.battle-feedback > .read-section-button { display:block; margin:8px 0; }
.explore-footer-actions { flex-wrap:wrap; }
@media (max-width:1100px) { .explore-controls { display:none; } }
@media (max-width:600px) { .explore-footer-actions { justify-content:flex-end; gap:4px; } .explore-footer-actions .read-section-button { font-size:12px; padding-inline:8px; } }

/* Student-friendly save names */
.save-name-label{display:block;font-size:16px;font-weight:700;margin:10px 0 8px}.save-name-input{display:block;width:100%;min-height:44px;padding:10px 12px;border:2px solid #9fc6cf;border-radius:8px;background:#f4faf8;color:#17343e;font:18px system-ui;box-sizing:border-box}.save-name-input[aria-invalid=true]{border-color:#ef635f;outline:2px solid #ef635f}.save-name-preview{overflow-wrap:anywhere;font-size:16px!important;line-height:1.5!important;color:#ffe5aa}.save-date{font-size:18px!important;font-weight:700;color:#fff0c7}.save-status{overflow-wrap:anywhere}

/* A game-native welcome and compact field guide for touch and mouse. */
.journey-home-dialog{max-width:1060px;width:calc(100vw - 24px)}.journey-home-dialog .dialog-body{padding:0}.journey-home{display:grid;grid-template-columns:1fr 1fr;min-height:390px;background:linear-gradient(90deg,#092c3ce8,#092c3cbb),var(--journey-art) center/cover}.journey-home-copy{padding:30px;display:flex;flex-direction:column;justify-content:center}.journey-home h2{font:42px/1.08 Georgia,serif;color:#fff0bd;margin:10px 0 18px}.journey-home p{font:17px/1.45 system-ui;color:#eaf7f2;margin:8px 0}.home-partner{display:flex;align-items:center;gap:14px;margin:10px 0}.home-partner img{width:95px;height:105px;object-fit:contain}.home-partner b,.home-partner span{display:block}.home-partner b{font-size:20px;color:#fff2bb}.home-partner span{font-size:15px;line-height:1.4;color:#d1ecea;margin-top:5px}.home-next{border-left:3px solid #ffdb88;padding-left:12px}.journey-road{background:#092c3bcc;padding:25px 26px;border-left:1px solid #9fcbc655}.journey-road h3{font:25px Georgia;margin:0 0 14px;color:#ffe6a3}.journey-road ol{padding:0;margin:0;list-style:none;display:grid;gap:13px}.journey-road li b,.journey-road li span{display:block}.journey-road li b{font-size:17px;color:#ffe6a3}.journey-road li span{font-size:16px;line-height:1.4;color:#e2f2ef;margin-top:4px}.journey-home-dialog .dialog-actions{flex-wrap:wrap}.intro-dialog{max-width:830px}.intro-dialog .dialog-body{padding:0}.intro-scene{min-height:360px;background-position:center;background-size:cover;padding:50px 42px 30px;display:flex;flex-direction:column;justify-content:flex-end}.intro-scene h2{font:36px/1.1 Georgia;color:#ffe6a3;margin:16px 0}.intro-scene p{font:20px/1.55 system-ui;color:#f1fbf4;max-width:650px;margin:0}.intro-scene .overline{color:#ffdc88}.guide-dialog{max-width:820px}.guide-dialog p{font-size:18px;line-height:1.5}.guide-companion{display:flex;align-items:center;gap:24px}.guide-companion img{width:150px;height:150px;object-fit:contain;flex-shrink:0}.guide-companion p{margin:0}.field-help{position:absolute;top:155px;right:20px;min-height:46px;padding:9px 15px;border:2px solid #ffdfa0;border-radius:10px;background:#123b4eee;color:#fff5cb;font:700 16px system-ui;cursor:pointer}.explore-goal{background:#ffe098!important;color:#183b42!important;border:2px solid #fff3c5!important;min-width:245px;max-width:290px;padding:12px 16px!important}.explore-goal small{font-size:14px!important;color:#385250!important;letter-spacing:.05em}.explore-goal b{font-size:18px!important;line-height:1.25;margin:7px 0!important}.explore-goal>span{font-size:16px!important;color:#163c47!important}.field-hint{position:absolute;bottom:19px;left:50%;transform:translateX(-50%);max-width:48%;border:1px solid #a9d3d3aa;border-radius:8px;background:#0b3047ed;color:#f7f4d6;padding:8px 12px;font:14px/1.35 system-ui;text-align:center;pointer-events:none}.explore-nearby:not([hidden])~.field-hint{display:none}.field-hint[data-safe=true]{border-color:#9aeaff}.visual-guide-dialog{max-width:1060px;width:calc(100vw - 20px)}.visual-guide-dialog h2{font-size:27px;margin:4px 0 12px}.guide-tabs{display:flex;gap:10px;margin-bottom:12px}.guide-tabs button{min-height:44px;font-size:16px}.guide-tabs [aria-pressed=true]{background:#ffe098;color:#173f48}.guide-picture{position:relative;width:100%;aspect-ratio:1000 / 630;max-width:690px;margin:0 auto;overflow:hidden;border:2px solid #86c4c7;border-radius:10px;background:#153e45}.guide-screenshot{position:absolute;top:0;left:0;width:1000px;height:630px;transform-origin:top left;pointer-events:none;user-select:none}.guide-screenshot>.explore-shell{width:1000px;height:630px}.guide-screenshot button:disabled{opacity:1}.captured-world{display:block;width:100%;height:100%;object-fit:fill}.guide-picture>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 1px 2px #000)}.guide-number circle{fill:#ffe098;stroke:#13394a;stroke-width:3}.guide-number text{fill:#13394a;font:800 23px system-ui}.control-key{display:grid;grid-template-columns:1fr 1fr;gap:8px 28px;font:16px/1.4 system-ui;color:#e0f2ed;margin:12px 0 0;padding-left:24px}.control-key b{color:#ffe098}.places-guide{display:grid;grid-template-columns:1fr 1fr;gap:24px}.places-guide h3{color:#ffe098;font-size:21px;margin:10px 0}.places-guide p,.places-guide li{font-size:16px;line-height:1.5}.places-guide ul{padding-left:20px}.places-guide li{margin-bottom:10px}.evolution-status{background:#284955;border-left:3px solid #ffdb88;padding:12px;font:16px/1.5 system-ui;color:#ffebbb}.evolution-reveal{padding:12px;border:2px solid #ffe098;border-radius:12px;text-align:center;background:radial-gradient(ellipse,#207384,#102e45)}.evolution-reveal>span,.evolution-reveal>b{display:block;color:#ffe098}.evolution-reveal>span{font-size:14px;font-weight:700;letter-spacing:.07em}.evolution-reveal>img{height:140px;max-width:100%;object-fit:contain;animation:evolution-arrive 1.2s ease-out}.evolution-reveal>b{font-size:23px}.evolution-reveal p{font-size:16px!important;line-height:1.4!important}.reward-next{font:17px/1.4 system-ui!important;color:#ffe4a2!important}.reward-dialog .reward-next{margin:12px 0}.region-stormwatch .battle-evidence,.region-stormwatch .battle-question{font-size:24px!important;line-height:1.35!important;font-family:system-ui!important}.region-stormwatch .battle-evidence{font-weight:600;padding:0;background:transparent;border:0;color:#f3f6e9;margin:10px 0 14px}.region-stormwatch .battle-question{font-weight:600}.battle-console{overflow-y:auto;overscroll-behavior:contain}
@keyframes evolution-arrive{from{opacity:0;transform:scale(.7);filter:brightness(3)}to{opacity:1;transform:scale(1);filter:brightness(1)}}
@media(min-width:700px) and (max-height:850px){.journey-home{min-height:340px}.journey-home-copy{padding:20px 25px}.journey-home h2{font-size:36px;margin-bottom:10px}.journey-road{padding:20px}.journey-road ol{gap:10px}.journey-road li b{font-size:16px}.journey-road li span{font-size:16px;line-height:1.3}.home-partner{margin:3px 0}.home-partner img{height:85px;width:80px}.intro-scene{min-height:310px;padding:35px}.intro-scene p{font-size:20px}.guide-picture{max-width:560px}.control-key{font-size:15px}.field-help{top:145px}.field-hint{bottom:12px;max-width:43%;font-size:14px}.visual-guide-dialog .dialog-body{padding:12px 18px}.evolution-reveal>img{height:110px}.region-stormwatch .battle-evidence,.region-stormwatch .battle-question{font-size:22px!important}}
@media(max-width:699px){.journey-home{grid-template-columns:1fr}.journey-home h2{font-size:32px}.journey-home-copy,.journey-road{padding:20px}.journey-road{border-left:0;border-top:1px solid #9fcbc655}.intro-scene{padding:25px;min-height:340px}.intro-scene h2{font-size:29px}.intro-scene p{font-size:18px}.guide-companion{gap:12px}.guide-companion img{width:90px;height:110px}.guide-dialog p{font-size:16px}.control-key,.places-guide{grid-template-columns:1fr}.control-key{font-size:16px}.explore-goal{left:auto;right:12px;top:88px;min-width:0;max-width:240px}.explore-goal small{display:block;font-size:12px!important}.explore-goal b{font-size:16px!important}.explore-goal>span{font-size:14px!important}.field-help{top:207px;right:12px;font-size:15px}.field-hint{max-width:80%;bottom:116px;width:max-content}.region-stormwatch .battle-evidence,.region-stormwatch .battle-question{font-size:22px!important}.guide-picture{min-height:210px;aspect-ratio:1000/630}.visual-guide-dialog h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.evolution-reveal>img{animation:none}}

.explore-stage:has(.explore-nearby:not([hidden])) .field-hint{display:none}
.guide-picture .field-hint{display:none}

.guide-place-location{display:block;color:#b9d8d8;font-size:14px;margin-top:3px}

/* Fourth-grade manipulatives extend the original woodland game. */
.g3-model{color:#214d54;background:#f7fbf6;border-radius:12px;padding:8px;margin:8px auto;max-width:440px}.g3-model svg{display:block;width:100%;max-height:170px;fill:currentColor;font-family:system-ui,sans-serif}.battle-question{white-space:pre-line}.battle-question,.battle-question p{font-size:clamp(20px,2.1vw,25px);line-height:1.32}.battle-choices{margin-block:8px}.showing-feedback>.g3-model{display:none}#battleControls>.g3-model{max-height:148px}#battleControls>.g3-model svg{max-height:130px}.g3-training-dialog{width:min(1050px,calc(100vw - 24px))}.g3-training-dialog .dialog-body{padding-bottom:12px}.g3-training-head{display:grid;grid-template-columns:1fr auto;gap:4px 16px;align-items:center}.g3-training-head>.overline{grid-column:1/-1}.g3-training-head h2{font-size:28px;margin:4px 0 8px}.g3-steps{display:flex;gap:6px;align-items:center}.g3-steps>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #98bcaf}.g3-steps>span.active,.g3-steps>span.done{background:#f8cc69;color:#163a35}.g3-steps b{font-size:14px;margin-left:5px}.g3-training-layout{display:grid;grid-template-columns:165px minmax(0,1fr);gap:20px;align-items:start}.g3-companion{text-align:center;padding-top:15px}.g3-companion img{width:100%;height:160px;object-fit:contain;filter:drop-shadow(0 8px 14px #0004)}.g3-companion p{font-size:16px!important;line-height:1.4}.g3-companion small{font-size:14px;color:#c5ddd3}.g3-seal-meter{display:flex;justify-content:center;gap:12px;margin:14px 0}.g3-seal-meter i{font-style:normal;font-size:28px;color:#537067;transition:color .3s,filter .3s}.g3-seal-meter i.lit{color:#ffdf72;filter:drop-shadow(0 0 8px #ffcf45)}.g3-work{min-width:0}.g3-prompt{font-size:19px!important;line-height:1.4!important;color:#fff3cd!important;margin:6px 0 10px!important}.g3-work p{font-size:16px;line-height:1.35;margin:8px 0}.g3-work button{background:#244e4b;color:#eef7ea;border:1px solid #6b9c89;border-radius:8px;min-height:44px;padding:6px 12px;font-family:inherit;font-size:16px;cursor:pointer}.g3-work button:hover{background:#376960}.g3-work button[aria-pressed=true]{background:#f5cb66;color:#163d33;border-color:#fff2b2;box-shadow:inset 0 0 0 2px #fef5ca}.g3-work button:disabled{cursor:default;opacity:.65}.g3-work button:focus-visible,.g3-work input:focus-visible{outline:3px solid #ffe18b;outline-offset:3px}.g3-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.g3-choices.compact{display:flex;flex-wrap:wrap}.g3-fields{display:flex;flex-wrap:wrap;gap:10px}.g3-number-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;flex:1;margin-top:10px}.g3-number-label input{width:100px;max-width:40%;min-height:44px;border:2px solid #9fc1a7;border-radius:8px;background:#f7fbef;color:#163d35;padding:6px 10px;font-size:22px;font-weight:700}.g3-tile-grid{max-width:490px;margin:10px auto}.g3-tile-row{display:flex;gap:10px;align-items:center;margin:5px 0}.g3-tile-row>span{font-size:14px;min-width:62px}.g3-tile-row>div{display:grid;grid-template-columns:repeat(var(--columns),1fr);flex:1;gap:5px}.g3-tile-row button{padding:0;min-width:0;height:44px}.g3-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:8px 0}.g3-actions output{margin-right:auto;font-size:16px}.g3-equation{font-size:24px;font-weight:700;text-align:center;margin:10px 0}.g3-sharing{display:flex;gap:10px}.g3-sharing>button{width:25%;display:flex;align-items:center;flex-direction:column}.g3-sharing img{width:80px;max-width:100%;height:66px;object-fit:contain}.g3-sharing b{font-size:24px}.g3-strip{display:grid;grid-template-columns:repeat(var(--parts),1fr);border:2px solid #fff4c0;margin:12px 0;height:56px;border-radius:6px;overflow:hidden}.g3-strip>span,.g3-strip>button{border:1px solid #719e8f;border-radius:0;background:#f3f6e8;padding:0}.g3-strip>span.filled{background:#2cc0a2}.g3-strip>button[aria-pressed=true]{background:#2cc0a2;box-shadow:none}.g3-unpartitioned{text-align:center;background:#335c52;border:2px solid #acc7a7;border-radius:8px;padding:16px;margin:12px 0}.g3-ticks{display:flex;gap:0;justify-content:space-between}.g3-ticks button{width:11.111%;padding:0;min-width:0;border-radius:4px}.g3-ribbon-model .g3-model{overflow:hidden}.g3-align{display:block;margin:auto}.g3-crates{display:flex;gap:12px;justify-content:center;margin:20px 0}.g3-crates button{min-width:85px;min-height:60px;border:3px double #e8bc6e;background:#68543b}.g3-scale{display:flex;gap:20px;align-items:center;justify-content:center;padding:12px;border-bottom:4px solid #97beb0;background:#244c48;border-radius:8px}.g3-scale strong{font-size:30px}.g3-time{display:flex;justify-content:space-around;align-items:center;background:#234c47;border-radius:12px;padding:14px;text-align:center}.g3-time b{font-size:24px}.g3-time strong{font-size:30px}.g3-timeline{height:12px;background:#345d53;border-radius:20px;margin:12px 0;overflow:hidden}.g3-timeline i{display:block;height:100%;background:#ffdb72;transition:width .25s}.g3-bars{display:flex;gap:12px;justify-content:center}.g3-bars>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:center;flex:1}.g3-bars span{width:100%;text-align:center}.g3-bars button{padding:0;width:44px}.g3-blocks{display:flex;gap:10px}.g3-blocks>div{flex:1;background:#244d48;text-align:center;padding:8px;border-radius:9px;min-width:0}.g3-blocks b{font-size:16px}.g3-block-pile{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;min-height:52px;max-height:84px;overflow:auto;padding:6px 0}.g3-block-pile i{font-style:normal;font-size:12px;background:#f2cf78;color:#194437;padding:2px;border:1px solid #b59346}.g3-block-pile .block-h{width:27px;height:27px}.g3-block-pile .block-t{width:15px;height:27px}.g3-block-pile .block-o{width:15px;height:17px}.g3-blocks output{display:block;font-size:20px}.g3-blocks button{width:100%;font-size:14px;margin-top:5px;padding-inline:2px}.g3-number-track{display:flex;align-items:center;justify-content:space-between;padding:20px;background:#244c48;border-radius:8px;font-size:20px}.g3-number-track b{color:#ffe590;font-size:28px}.g3-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.g3-packs>div{border:1px solid #88b4a5;border-radius:9px;padding:8px;text-align:center;background:#214a44}.g3-packs>div>div{display:flex;justify-content:center;gap:6px;margin-top:6px}.g3-packs i{font-style:normal;display:grid;place-items:center;width:20px;height:42px;background:repeating-linear-gradient(0deg,#f3d881 0 3px,#bd9b4b 3px 4px);font-size:14px;color:#254236;border:1px solid #dac279}.g3-table{border-collapse:collapse;width:100%;margin:14px 0;font-size:18px}.g3-table caption{font-size:16px;margin:8px}.g3-table td,.g3-table th{padding:12px 6px;border:1px solid #7aa791;text-align:center}.g3-table td{background:#254f46}.g3-feedback{padding:10px 14px;background:#4c4225;border:1px solid #cfb968;border-radius:10px;margin-top:12px}.g3-feedback.success{background:#204e38;border-color:#82cc97}.g3-feedback p{margin-top:0}.g3-badge-reveal{text-align:center}.g3-badge-reveal img{height:95px;max-width:130px;object-fit:contain;display:block;margin:auto}.g3-guide-art{background:radial-gradient(ellipse,#3e7060,#203f3b)!important;display:grid;place-items:center}.g3-guide-art img{width:100%;height:100%;max-height:110px;object-fit:contain}.training-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.training-card{grid-template-columns:30% minmax(0,1fr)}.training-card .card-scene{min-height:110px}.training-card-copy{padding:9px}.training-card-copy>b{font-size:18px}.training-card-copy>strong{font-size:14px}.g3-training-dialog>.dialog-shell>.dialog-body>.dialog-read-row{display:none}
@media(min-width:700px) and (max-height:740px){.g3-companion img{height:130px}.g3-training-head h2{font-size:25px}.g3-training-dialog .dialog-toolbar{padding-block:2px}.g3-training-dialog .dialog-footer{padding-block:8px}.g3-work>.g3-prompt{margin-top:0!important}.g3-work .g3-model svg{max-height:140px}.g3-work .g3-model{margin:5px auto;padding:5px}.g3-training-layout{gap:15px;grid-template-columns:135px minmax(0,1fr)}.g3-work p{margin:6px 0}.g3-training-head{margin-bottom:3px}.g3-work .g3-model:has(svg[viewBox="0 0 200 200"]) svg{max-height:165px}.g3-feedback{padding:8px 10px}.g3-work .g3-actions{margin:5px 0}.training-card-copy>span{font-size:14px}.battle-header h1{font-size:22px}.question-skill{margin:2px 0;font-size:14px}.battle-question{margin:5px 0 8px;font-size:22px}.battle-choice{min-height:50px}.challenge-tools{margin:0}}
@media(max-width:699px){.g3-training-head{display:block}.g3-training-head h2{font-size:25px}.g3-steps{margin-bottom:10px}.g3-training-layout{display:block}.g3-companion{display:none}.g3-tile-row{gap:5px}.g3-tile-row>span{min-width:55px;font-size:14px}.g3-tile-row>div{gap:3px}.g3-tile-row button{height:44px}.g3-number-label{font-size:16px}.g3-ticks button{font-size:16px}.g3-fields{display:block}.g3-work .g3-bars{gap:4px}.g3-sharing{gap:5px}.g3-sharing button{padding:4px}.training-cards{grid-template-columns:1fr 1fr}.training-card{grid-template-columns:1fr}.training-card .card-scene{min-height:60px;height:65px}.g3-guide-art img{height:60px}.g3-prompt{font-size:18px!important}.g3-table{font-size:16px}}
@media(prefers-reduced-motion:reduce){.g3-timeline i,.g3-seal-meter i{transition:none}}
/* Clear task steps and shorter training milestones. */
.g3-action-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px;list-style:none;margin:8px 0;padding:0}.g3-action-steps li{display:grid;grid-template-columns:24px 1fr;gap:2px 7px;align-items:start;padding:8px;background:#153e3b;border:1px solid #92b8a5;border-radius:8px}.g3-action-steps li>span{display:grid;place-items:center;border-radius:50%;background:#f5d27d;color:#163d35;font-size:16px;font-weight:700;width:24px;height:24px}.g3-action-steps b{font-size:16px;line-height:1.25;font-weight:500}.g3-action-steps small{grid-column:2;font-size:14px;color:#ffe6a0}.g3-action-steps .ready{border-color:#68c899;background:#204e41}.g3-action-steps .ready small{color:#b8f4ce}.g3-action-steps .ready>span{background:#b8f4ce}.g3-needs-action{outline:3px solid #ffdb7e!important;outline-offset:3px;scroll-margin-block:18px}.g3-task-footer{flex-wrap:wrap;gap:8px!important}.g3-task-footer #g3NextAction{flex:0 0 100%;margin:0 0 2px;font-size:16px;line-height:1.25;color:#fff2bf}.g3-task-footer .text-button{font-size:14px}.g3-task-footer .gold-btn{margin-left:auto}.g3-demo{border-left:4px solid #ffd978;background:#244f50;padding:8px 12px;margin:8px 0;border-radius:6px}.g3-demo[hidden]{display:none}.g3-demo>b{font-size:16px;color:#fff0b0}.g3-demo p{font-size:16px}.g3-demo button{min-height:36px;font-size:14px;margin-right:5px}.g3-feedback.incomplete{background:#244f50;border-color:#ffdc7e}.g3-unlock{border:2px solid #ffdd78;background:#244a40;padding:14px;border-radius:12px;text-align:center}.g3-unlock h3{font-size:24px;color:#ffe8a5;margin:0 0 8px}.g3-town-button{margin-top:10px}.g3-companion img{height:120px}.g3-number-label input{width:130px}.g3-number-label input::placeholder{font-size:16px;color:#49675c;font-weight:400}.g3-work .g3-task-help{font-size:16px}
@media(min-width:700px) and (max-height:740px){.g3-action-steps{margin:6px 0}.g3-action-steps li{padding:6px}.g3-demo{padding:6px 10px}.g3-companion img{height:100px}.g3-task-footer{gap:5px!important}.g3-training-dialog .dialog-footer{padding-block:6px}.g3-demo p{margin:5px 0}.g3-training-dialog .g3-model svg{max-height:125px}}
@media(max-width:699px){.g3-action-steps{grid-template-columns:1fr}.g3-action-steps li{grid-template-columns:24px 1fr auto;align-items:center}.g3-action-steps small{grid-column:3}.g3-task-footer .gold-btn{flex:1 1 100%;margin:0}.g3-task-footer #g3NextAction{font-size:16px}}

/* Checking unfinished work draws attention to the exact missing control. */
.g3-needs-action.g3-incomplete-action{outline:3px solid #ff7777!important;outline-offset:4px;box-shadow:0 0 0 6px #ff777725;border-radius:8px}.g3-shake{animation:g3-missing-shake 1s ease-in-out!important}
@keyframes g3-missing-shake{0%,100%{transform:translateX(0)}10%,30%,50%{transform:translateX(-5px)}20%,40%,60%{transform:translateX(5px)}75%{transform:translateX(-3px)}90%{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){.g3-shake{animation:none!important}}
/* Grade 4: larger quantities, clean model controls, and classroom notes. */
.g4-counter{display:flex;align-items:center;justify-content:center;gap:12px;background:#204c45;padding:9px;border-radius:10px;margin:8px 0}.g4-counter>span{margin-right:auto;font-size:17px}.g4-counter button{width:44px;padding:4px}.g4-counter output{min-width:24px;text-align:center;font-size:22px;color:#ffe296}.g4-counter-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.g4-share{display:flex;justify-content:space-around;gap:12px}.g4-share>div{display:flex;align-items:center;flex-direction:column;background:#254f47;padding:6px 14px;border-radius:12px;flex:1}.g4-share img{width:74px;height:70px;object-fit:contain}.g4-share b{font-size:25px;color:#ffe496}.g4-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:center}.g4-bed-model{display:flex;gap:8px}.g4-whole-bed{background:#279a78;border:2px solid #83d9a6;border-radius:8px;padding:14px;flex:1;text-align:center}.g4-rope{display:flex;gap:3px;justify-content:center;align-items:center;min-height:60px;margin:10px 0}.g4-rope span{flex:1;border:3px solid #d1b475;border-radius:8px;background:#615232;padding:8px;text-align:center;font-size:15px}.g4-pattern{display:flex;align-items:center;justify-content:center;gap:12px;margin:25px 0}.g4-pattern span{background:#295647;color:#ffe08d;border:1px solid #84b5a1;padding:13px;border-radius:10px;font-size:24px}.g4-pattern i{font-size:16px;font-style:normal}.g4-teacher-dialog{width:min(900px,calc(100vw - 24px))}.g4-teacher-dialog details{border:1px solid #739981;border-radius:10px;padding:13px 16px;margin:12px 0;background:#153c35}.g4-teacher-dialog summary{font-size:20px;font-weight:700;cursor:pointer;color:#ffe19c;padding:6px}.g4-teacher-dialog details section{border-top:1px solid #ffffff25;padding:7px 0}.g4-teacher-dialog details h3{font-size:19px;margin-bottom:4px}.g4-teacher-dialog details p{font-size:17px;line-height:1.5;margin:8px 0}.g4-teacher-dialog small{color:#b2d9c5}.g4-teacher-dialog a{color:#ffe29a;text-decoration:underline}.g4-teacher-summary{display:flex;flex-wrap:wrap;gap:8px}.g4-teacher-summary b{padding:10px;background:#2c5445;border:1px solid #749b79;border-radius:10px;color:#ffe29a;font-size:16px}.question-skill{font-size:18px!important}.g3-choices button{overflow-wrap:anywhere}.g3-training-dialog .g3-number-label input{max-width:46%}.g3-model svg{overflow:visible}
@media(min-width:700px) and (max-height:740px){.g4-share img{height:55px}.g4-share b{font-size:22px}.g4-counter{padding:5px}.g4-rope{min-height:45px}.g4-pattern{margin:12px 0}.g3-companion img{height:115px}.g3-work .g3-model svg{max-height:150px}}
@media(max-width:699px){.g4-counter-row{grid-template-columns:1fr}.g4-share{gap:4px}.g4-share>div{padding:4px}.g4-share img{width:52px}.g4-pattern{gap:4px}.g4-pattern span{padding:9px;font-size:20px}.g4-pattern i{font-size:13px}.g4-rope span{padding:4px;font-size:13px}.g3-bars>div{gap:3px}.g4-teacher-dialog summary{font-size:18px}}

.evolution-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:24}.move-button .move-role{display:block;font:700 12px/1.25 system-ui;letter-spacing:.08em;text-transform:uppercase;opacity:.8}.move-button b{overflow-wrap:anywhere;line-height:1.18}.move-button small{line-height:1.25}.evolution-reveal img{object-fit:contain}.evolution-reveal p{line-height:1.5}.final-form-note{color:#ffe7a6}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}

/* Clearly labelled experience; shared by map, battle, and reward screens. */
.xp-panel{min-width:0;text-align:left}.xp-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;line-height:1.3;margin-bottom:5px}.xp-label strong,.xp-label span{white-space:nowrap}.xp-track{height:14px;overflow:hidden;border:2px solid #2e685a;border-radius:99px;background:#163c3d}.xp-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#42d8ad,#c5f66b);box-shadow:inset 0 2px 0 #ffffff70}.world-heading .xp-panel{width:210px;flex-shrink:0}.world-heading{gap:16px}.world-heading h2{min-width:0}.hero-hud .xp-panel{margin-top:6px}.hero-hud .xp-track{height:10px;border-width:1px}.hero-hud .xp-label{font-size:14px;gap:4px;margin-bottom:3px}.hero-hud .xp-label strong{display:none}.xp-reward{max-width:380px;margin:14px auto 4px;padding:14px 18px 10px;background:#e6f3da;border:2px solid #8dbb71;border-radius:18px;color:#214f3a}.xp-reward .xp-label{font-size:18px}.xp-reward .xp-track{height:25px;border-width:3px}.xp-note{font-size:18px;font-weight:800;text-align:center;line-height:1.3;min-height:24px;margin-top:8px}.xp-level-up{border-color:#ba8a16;background:#fff2b7}.xp-level-up .xp-track i{background:linear-gradient(90deg,#e8b432,#fcdf74)}
@media(max-width:759px){.world-heading{height:auto;min-height:76px;flex-wrap:wrap;gap:5px 12px;padding:8px 12px}.world-heading h2{flex:1}.world-heading .xp-panel{order:3;flex-basis:100%;width:auto;display:flex;align-items:center;gap:12px}.world-heading .xp-label{margin:0;gap:8px}.world-heading .xp-track{flex:1;min-width:50px}.hero-hud .xp-label{font-size:12px}.xp-reward{padding:10px 12px}.xp-reward .xp-label,.xp-note{font-size:16px}}
@media(prefers-reduced-motion:reduce){.xp-track i{transition:none!important}}.reduce .xp-track i{transition:none!important}

.hero-hud .xp-panel{margin-top:7px;color:#f8fff3}.hero-hud .xp-track{height:10px}.hero-hud .xp-label{font-size:14px}.explore-xp{height:12px!important;background:#163c3d!important;border:1px solid #86bd82}.explore-xp i{background:linear-gradient(90deg,#42d8ad,#c5f66b)!important}.reward-growth .xp-reward{width:100%;box-sizing:border-box}.reward-growth .xp-label strong{font-size:18px;color:#214f3a}.reward-growth .xp-note{color:#214f3a}.xp-reward .xp-label{flex-wrap:wrap}

.n5-place,.n5-division{padding:1rem;border:2px solid #b8d5d1;border-radius:18px;background:#f0faf7;color:#183634;margin:1rem 0}
.n5-target,.n5-comparison,.n5-align{text-align:center;font-size:1.3rem;margin:.8rem auto}
.n5-target strong,.n5-comparison b,.n5-align strong{font-variant-numeric:tabular-nums}
.n5-comparison{display:flex;gap:1rem;justify-content:center;align-items:center}
.n5-align{display:grid;grid-template-columns:2rem auto;max-width:15rem;gap:.25rem;margin-inline:auto}
.n5-align span{grid-row:2;grid-column:1}.n5-align strong{grid-column:2;text-align:right}
.n5-place>p{font-size:.92rem;margin:.7rem 0;color:#28534f}
.n5-cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem}
.n5-cells button{border:2px solid #5d827c;background:#fff;color:#193b39;border-radius:12px;min-height:4.4rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.25rem;cursor:pointer}
.n5-cells button.selected{border-color:#d87828;box-shadow:0 0 0 3px #ffe0a8}.n5-cells strong{font-size:1.7rem}.n5-cells small{font-size:.7rem;white-space:normal}
.n5-pad{display:flex;flex-wrap:wrap;gap:.35rem}.n5-pad button{min-width:2.6rem;min-height:2.8rem;background:#163c45;color:#fff;border:0;border-radius:9px;font-weight:700;cursor:pointer}
.n5-area{display:grid;grid-template-columns:4rem repeat(var(--parts),minmax(5rem,1fr));min-width:20rem;max-width:100%;overflow-x:auto;gap:.35rem;margin:1rem 0}
.n5-area>b,.n5-corner{display:grid;place-items:center;border-radius:8px;background:#dcece6;color:#20423d;padding:.5rem}
.n5-area label{display:flex;flex-direction:column;gap:.3rem;font-size:.83rem;padding:.35rem;background:#f2f8f6;color:#20423d;border:1px solid #a5c7be;border-radius:8px;min-width:0}
.n5-area input,.n5-row-model input{width:100%;min-width:0;border-radius:6px;border:2px solid #678d85;padding:.45rem;background:#fff;color:#183634;font:inherit;font-size:1rem}
.n5-row-model{display:grid;gap:.65rem}.n5-row-model>div{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.5rem;border:1px solid #aac6c0;border-radius:10px}.n5-row-model label{flex:1 1 9rem}
.n5-division-chips{display:flex;flex-wrap:wrap;gap:.35rem;min-height:2.4rem}.n5-division-chips span{background:#d6eae7;padding:.35rem .65rem;border-radius:8px}
.n5-division .g3-actions button{min-width:5.3rem;line-height:1.3}.n5-division .g3-actions button:disabled{opacity:.45}
.n5-area input:focus-visible,.n5-cells button:focus-visible,.n5-pad button:focus-visible,.n5-division button:focus-visible{outline:3px solid #e89131;outline-offset:2px}
body.region-numberlight .welcome-heading{background:linear-gradient(140deg,#0c3943,#315c60 60%,#7b543d)}
@media(max-width:720px){.n5-area{grid-template-columns:3rem repeat(var(--parts),minmax(3.8rem,1fr));gap:.2rem}.n5-area label{font-size:.7rem}.n5-area input{padding:.25rem;font-size:.85rem}.n5-cells small{font-size:.61rem}.n5-pad button{min-width:2.35rem}}
/* Place-value chart with a fixed decimal point (Tens | Ones | . | Tenths | Hundredths | Thousandths) */
.n5-cells.n5-cells-5{grid-template-columns:repeat(2,minmax(0,1fr)) 1.4rem repeat(3,minmax(0,1fr))}
.n5-point{display:grid;place-items:end center;font-size:2.4rem;font-weight:800;line-height:1;color:#b35d1c;padding-bottom:.55rem}
.n5-pad .n5-clear{min-width:4.2rem;background:#fff;color:#163c45;border:2px solid #163c45}
.n5-target strong{display:inline-block;padding:.15rem .5rem;border-radius:8px;background:#fff6dc;color:#3b2a0c}
/* Slide-to-align board */
.n5-slide{padding:1rem;border:2px solid #b8d5d1;border-radius:18px;background:#f0faf7;color:#183634;margin:1rem 0;overflow-x:auto}
.n5-slide-row{display:grid;grid-template-columns:1.6rem repeat(2,3.2rem) 1.6rem repeat(3,3.2rem) 6.4rem;gap:.3rem;align-items:center;justify-content:center;min-width:max-content}
.n5-slide-head small{font-size:.66rem;text-align:center;color:#28534f;line-height:1.1}
.n5-slide-row .op{font-size:1.6rem;font-weight:800;text-align:center}
.n5-slot{height:3.2rem;display:grid;place-items:center;border-radius:10px;background:#fff;border:2px solid #9dbfb8;font-size:1.7rem;font-weight:700;font-variant-numeric:tabular-nums;color:#183634}
.n5-slot.pt{background:#fff1d6;border-color:#e2b36b}
.n5-slot.dot{color:#b35d1c;font-size:2.2rem}
.n5-slot.zero{color:#b35d1c;background:#fff7e8}
button.n5-slot.empty{border-style:dashed;background:#f7fcfb;color:#4f7b75;font-size:1rem;cursor:pointer}
.n5-shift{display:flex;gap:.3rem;padding-left:.4rem}
.n5-shift button{width:2.8rem;height:2.8rem;border-radius:10px;border:0;background:#163c45;color:#fff;font-size:1.1rem;cursor:pointer}
.n5-shift button:disabled{opacity:.35;cursor:default}
.n5-slide-line{height:3px;background:#183634;border-radius:2px;margin:.35rem auto 0;width:calc(1.6rem + 6.4rem + 1.6rem + 9.6rem + 1.8rem);transform:translateX(-3.2rem)}
.n5-slide-status{text-align:center;font-size:.95rem;margin:.6rem 0 0;color:#28534f;font-weight:600}
.n5-warn{margin:.4rem 0;padding:.45rem .7rem;border-radius:8px;background:#fff1d6;color:#6a3b08;font-weight:600}
.n5-division>p:first-child{color:#183634}
.n5-division>p:first-child b{color:#0f2f2c}
.n5-shift button:focus-visible,button.n5-slot.empty:focus-visible,.n5-pad .n5-clear:focus-visible{outline:3px solid #e89131;outline-offset:2px}
@media(max-width:720px){.n5-slide-row{grid-template-columns:1.2rem repeat(2,2.5rem) 1.1rem repeat(3,2.5rem) 5.4rem}.n5-slot{height:2.6rem;font-size:1.35rem}.n5-shift button{width:2.4rem;height:2.4rem}.n5-slide-line{width:calc(1.2rem + 5rem + 1.1rem + 7.5rem + 1.5rem);transform:translateX(-2.7rem)}.n5-point{font-size:1.9rem}}

#g3Controls .n5-slide-status,#g3Controls .n5-division>p:first-child{color:#1f4642}
#g3Controls .n5-warn{color:#6a3b08}
#g3Controls .n5-place>p{color:#28534f}
.n5-slide-head .short{display:none}
@media(max-width:520px){.n5-slide{padding:.7rem .4rem}.n5-slide-row{grid-template-columns:1rem repeat(2,2.25rem) .8rem repeat(3,2.25rem) 4.3rem;gap:.2rem}.n5-slot{height:2.4rem;font-size:1.25rem;border-radius:8px}.n5-slot.dot{font-size:1.6rem}button.n5-slot.empty{font-size:.8rem}.n5-shift{gap:.2rem;padding-left:.2rem}.n5-shift button{width:2.05rem;height:2.4rem}.n5-slide-head .full{display:none}.n5-slide-head .short{display:inline}.n5-slide-row .op{font-size:1.25rem}.n5-slide-line{width:calc(1rem + 4.5rem + .8rem + 6.75rem + 1.2rem);transform:translateX(-2.25rem)}}

