:root{--safe-top:max(env(safe-area-inset-top,0px),var(--world-safe-top,0px));--safe-right:max(env(safe-area-inset-right,0px),var(--world-safe-right,0px));--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--world-safe-bottom,0px));--safe-left:max(env(safe-area-inset-left,0px),var(--world-safe-left,0px));--lightningcss-light: ;--lightningcss-dark:initial;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--gold:#d1b27a;--pale:#f2e5c8;--panel:#071924ed;--line:#a58b5a66}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{color:var(--pale);background:#03121e;font-family:Arial,Malgun Gothic,sans-serif}button,input{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,input:focus-visible{outline-offset:4px;outline:2px solid #f0d18d}button:disabled{opacity:.3;cursor:default}.battlefield{isolation:isolate;background:radial-gradient(at 50% 40%,#11405a,#020e19);height:100dvh;position:relative;overflow:hidden}.battlefield:after{content:"";pointer-events:none;z-index:1;position:absolute;inset:0;box-shadow:inset 0 0 90px 20px #0007}.map-viewport{overscroll-behavior:none;scrollbar-width:none;position:absolute;inset:0;overflow:auto}.map-viewport::-webkit-scrollbar{display:none}.map-viewport.zoomed{cursor:grab}.map-viewport.zoomed:active{cursor:grabbing}.map-canvas{min-width:100%;min-height:100%;position:relative}.world-map{-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block;position:absolute;inset:0}.ocean-lettering{letter-spacing:8px;fill:#95b7c4;opacity:.22;font-family:Georgia,serif;font-size:15px}.coast-aura{fill:none;stroke:#47d5eb;stroke-width:22px;opacity:.7}.coast-waves{fill:none;stroke:#78def0;stroke-width:13px;opacity:.18}.coast-cliff{fill:none;stroke:#202c3a;stroke-width:14px;stroke-linecap:round}.coast-foam{fill:none;stroke:#c6f2ed;stroke-width:2.5px;stroke-linecap:round}.border-shadow{fill:none;stroke:#1b2c19;stroke-width:4.5px;opacity:.65}.land-borders{fill:none;stroke:#fff3d6;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;opacity:.88}.territory{cursor:pointer;outline:none}.territory-hit{fill:#0000;stroke:#0000;stroke-width:2.5px;pointer-events:all;transition:fill .15s,stroke .15s}.territory:hover .territory-hit{fill:#f8e3a128}.territory.neighbor .territory-hit{fill:#56e3e631;stroke:#b8f6ed;stroke-width:2px}.territory.selected .territory-hit{fill:#ffbc4d36;stroke:#ffe09b;stroke-width:4px;filter:drop-shadow(0 0 4px #ffbf60)}.territory:focus-visible .territory-hit{stroke:#fff;stroke-width:4px;fill:#fff2}.map-label{pointer-events:none;text-anchor:middle}.number-backdrop{fill:#091510a8;stroke:#e5d5a12b;stroke-width:1px}.territory-number{fill:#fff9ec;paint-order:stroke;stroke:#111d19;stroke-width:3px;font-family:Arial,sans-serif;font-size:28px;font-weight:700}.territory-name{fill:#ffefc6;stroke:#07131b;stroke-width:4px;paint-order:stroke;letter-spacing:1px;font-size:15px;font-weight:600}.selected .number-backdrop{fill:#583514df;stroke:#f2d096;stroke-width:2px}.neighbor .number-backdrop{stroke:#a6eee9;stroke-width:1.5px}.route,.route-shadow{fill:none;stroke-linecap:round;stroke-dasharray:7 10}.route-shadow{stroke:#071b32;stroke-width:6px}.route{stroke:#c1f5ff;stroke-width:3px;filter:drop-shadow(0 0 3px #54cbe4)}.active-route{stroke:#ffe39c}.sea-routes{pointer-events:none;transition:opacity .2s}.sea-routes.hidden{opacity:0}.clouds{fill:#c4d9e1;opacity:.2;pointer-events:none}.compass{stroke:#c5ac77;fill:none;stroke-width:1px;opacity:.75;pointer-events:none}.compass>path{fill:#0b2536;stroke-width:1.2px}.compass .compass-needle{fill:#bba36e}.compass text{fill:#d7bd83;stroke:none;text-anchor:middle;font-family:Georgia,serif;font-size:15px}.hud-top{left:max(22px,var(--safe-left));right:max(22px,var(--safe-right));top:max(19px,var(--safe-top));z-index:3;pointer-events:none;justify-content:space-between;align-items:flex-start;gap:15px;display:flex;position:absolute}.map-title{clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);background:linear-gradient(110deg,#071a24f5,#071923d9);border:1px solid #bb9f6c;align-items:center;gap:14px;padding:13px 25px 13px 17px;display:flex;box-shadow:0 4px 20px #0008}.title-emblem{color:#dbc38d;font-family:Georgia,serif;font-size:47px;line-height:1}.map-title h1{letter-spacing:2px;text-shadow:0 2px 3px #000;margin:0;font-size:23px;font-weight:600}.map-title h1>span{letter-spacing:.5px;color:#d1c4a5;margin-left:9px;font-size:14px;font-weight:400}.map-title p{letter-spacing:4px;color:#aa976e;margin:7px 0 0;font-size:8px}.map-title p>span{letter-spacing:2px;color:#88999d;margin-left:14px;font-size:9px}.hud-button{pointer-events:auto;background:var(--panel);border:1px solid var(--line);border-radius:4px;justify-content:center;align-items:center;gap:10px;min-width:86px;min-height:48px;display:flex;box-shadow:0 5px 20px #0005}.hud-button:hover,.zoom-controls button:hover{background:#1a3540}.menu-button{font-size:12px}.menu-button>span:first-child{color:var(--gold);font-size:20px}.zoom-controls{right:max(22px,var(--safe-right));bottom:max(24px,var(--safe-bottom));z-index:3;border:1px solid var(--line);border-radius:4px;flex-direction:column;display:flex;position:absolute;overflow:hidden;box-shadow:0 4px 20px #0007}.zoom-controls button{background:var(--panel);color:#dfc997;border:0;width:46px;height:46px;font-size:25px}.zoom-controls button+button{border-top:1px solid var(--line)}.zoom-controls .fit-button{letter-spacing:1px;font-size:10px}.map-hint{bottom:max(28px,var(--safe-bottom));white-space:nowrap;letter-spacing:1px;color:#b2c2c6;z-index:2;pointer-events:none;background:#04121cb0;border:1px solid #7d9ba22b;border-radius:3px;padding:12px 18px;font-size:11px;position:absolute;left:50%;transform:translate(-50%)}.map-hint span{color:#9f8862;margin:0 10px}.territory-card{left:50%;bottom:max(24px,var(--safe-bottom));z-index:4;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(125deg,#102632f7,#06131ff7);border:1px solid #aa925b99;border-radius:5px;width:min(470px,100% - 175px);padding:17px 20px;position:absolute;transform:translate(-50%);box-shadow:0 8px 40px #0009}.card-heading{align-items:center;gap:14px;display:flex}.card-number{color:#edd4a0;background:#b69b5a12;border:1px solid #b59a6090;border-radius:50%;place-items:center;width:43px;height:43px;font-family:Georgia,serif;font-size:26px;display:grid}.region-caption{letter-spacing:1px;color:#9cacae;font-size:9px}h2{letter-spacing:1px;margin:6px 0 0;font-size:19px;font-weight:500}.close-button{color:#bea878;background:0 0;border:0;min-width:40px;min-height:40px;margin-left:auto;font-size:25px}.close-button:hover{color:#fff0cb}.neighbor-list{border-top:1px solid #9c8a5a3d;flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:12px;display:flex}.neighbor-list button{background:#bfd7d109;border:1px solid #91aba42f;border-radius:3px;align-items:center;gap:6px;min-height:38px;padding:5px 9px;font-size:10px;display:flex}.neighbor-list button:hover{background:#81b7ad25}.neighbor-list button>span{color:#dfc28e;font-size:12px}.neighbor-list small{color:#92b5b7;font-size:8px}.game-menu{width:min(420px,100% - 32px);max-height:calc(100dvh - 48px);color:var(--pale);background:linear-gradient(135deg,#112b39,#06141f);border:1px solid #b49a66;border-radius:6px;padding:27px;overflow:auto;box-shadow:0 25px 100px #000a}.game-menu::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#010b14b8}.menu-heading{align-items:center;display:flex}.menu-heading p{letter-spacing:4px;color:#b99e6b;margin:0 0 10px;font-size:9px}.menu-heading h2{font-size:24px}.menu-section{border-top:1px solid var(--line);margin-top:24px;padding-top:19px}.menu-section h3{color:#d3ba87;margin:0 0 12px;font-size:12px;font-weight:500}.menu-section p{color:#a3b7bd;margin:9px 0;font-size:11px;line-height:1.9}.menu-section label{color:#c2cdd0;cursor:pointer;justify-content:space-between;align-items:center;min-height:45px;font-size:12px;display:flex}.menu-section input{accent-color:#ba995c;width:19px;height:19px}.development p{color:#8e9da1}.return-button{color:#f2dfb4;letter-spacing:1px;background:linear-gradient(#605132,#3f3524);border:1px solid #aa8f5b;border-radius:3px;width:100%;min-height:46px;margin-top:23px;font-size:12px}@media (max-width:700px){.hud-top{left:max(13px,var(--safe-left));right:max(13px,var(--safe-right));top:max(13px,var(--safe-top))}.map-title{gap:8px;padding:11px 14px 11px 10px}.title-emblem{font-size:30px}.map-title h1{letter-spacing:1px;font-size:16px}.map-title h1>span{margin-left:4px;font-size:11px}.map-title p{letter-spacing:2px;margin-top:5px;font-size:7px}.map-title p>span{letter-spacing:1px;margin-left:7px;font-size:7px}.hud-button{min-width:47px;min-height:47px}.menu-button>span:last-child{display:none}.zoom-controls{right:max(13px,var(--safe-right));bottom:max(17px,var(--safe-bottom))}.zoom-controls button{width:43px;height:43px}.map-hint{left:max(13px,var(--safe-left));bottom:max(20px,var(--safe-bottom));letter-spacing:0;max-width:calc(100% - 83px);padding:11px 12px;font-size:9px;transform:none}.map-hint span{margin:0 5px}.territory-card{left:max(13px,var(--safe-left));width:calc(100% - 83px);bottom:max(17px,var(--safe-bottom));padding:12px;transform:none}.card-heading{gap:10px}.card-number{width:35px;height:35px;font-size:21px}h2{font-size:16px}.region-caption{font-size:8px}.neighbor-list{gap:5px;margin-top:10px;padding-top:9px}.neighbor-list button{min-height:36px;padding:4px 6px;font-size:9px}.battlefield:after{box-shadow:inset 0 0 50px 5px #0006}}.rotate-screen{display:none}.battlefield{container-type:size}@media (orientation:portrait){.battlefield{--safe-top:max(env(safe-area-inset-left,0px),var(--world-safe-left,0px));--safe-right:max(env(safe-area-inset-top,0px),var(--world-safe-top,0px));--safe-bottom:max(env(safe-area-inset-right,0px),var(--world-safe-right,0px));--safe-left:max(env(safe-area-inset-bottom,0px),var(--world-safe-bottom,0px));width:100dvh;height:100dvw;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)rotate(90deg)}.battlefield>:not(.rotate-screen):not(dialog){animation:1.9s both battlefield-enter}.rotate-screen{z-index:20;text-align:center;background:radial-gradient(#103346,#03121e 75%);flex-direction:column;justify-content:center;align-items:center;width:100dvw;height:100dvh;padding:32px;animation:1.9s forwards rotate-dismiss;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}.rotate-screen svg{fill:none;stroke:#d1b27a;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;width:100px;height:80px;margin-bottom:24px}.rotate-screen h1{margin:0 0 14px;font-size:23px;font-weight:500}.rotate-screen p{color:#c1d4de;margin:0 0 12px;font-size:13px}.rotate-screen small{color:#8fa9b7;max-width:250px;font-size:11px;line-height:1.8}.game-menu{width:min(420px,100dvh - 32px);max-height:calc(100dvw - 48px);transform:rotate(90deg)}}@keyframes rotate-dismiss{0%,70%{opacity:1;visibility:visible}to{opacity:0;visibility:hidden;pointer-events:none}}@keyframes battlefield-enter{0%,70%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.rotate-screen{display:none!important}}.ownership-layer{pointer-events:none}.ownership-tint{fill:currentColor;opacity:.16}.realm-shadow{fill:none;stroke:#04131b;stroke-width:8px;stroke-linecap:round;stroke-linejoin:round;opacity:.7}.realm-border{fill:none;stroke:currentColor;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px)}.army-emblem{fill:currentColor;fill-opacity:.85;stroke:#e9f6ff;stroke-width:1.8px;filter:drop-shadow(0 3px 4px #000c)}.emblem-crown{fill:none;stroke:#fff;stroke-opacity:.7;stroke-width:1.5px}.army-number{fill:#fffef5;paint-order:stroke;stroke:#05141bd9;stroke-width:3px;font-family:Arial,sans-serif;font-size:24px;font-weight:700}.neutral-marker .army-number{fill:#e2e4d8;stroke-width:2px;font-size:23px}.neutral-marker .number-backdrop{fill:#14201bb8;stroke:#c4cfc366;stroke-width:1.5px}.my-land-label{letter-spacing:1px;fill:#b8e7ff;stroke:#061729;stroke-width:5px;paint-order:stroke;font-size:14px;font-weight:700}.selected .army-emblem{stroke:#ffe39a;stroke-width:3px}.territory.owned.neighbor .territory-hit{fill:#7adbd714;stroke:#d2fcf1;stroke-dasharray:6 5}.territory.owned.selected .territory-hit{fill:#ffbc4d20;stroke:#ffe09b;stroke-dasharray:none}.faction-key{z-index:3;right:max(22px,var(--safe-right));top:calc(max(19px,var(--safe-top)) + 63px);pointer-events:none;background:#04121bd9;border:1px solid #9aa9a537;border-radius:4px;align-items:center;gap:15px;padding:10px 13px;display:flex;position:absolute}.faction-key>span{color:#c2d0d4;align-items:center;gap:6px;font-size:10px;display:flex}.faction-key svg{width:15px;height:18px;overflow:visible}.key-human svg{fill:#349be1;stroke:#aee0ff;stroke-width:1.5px}.key-enemy svg{fill:#c94745;stroke:#ffb1ab;stroke-width:1.5px}.key-neutral i{background:#27352e;border:1px solid #a3aaa3;border-radius:50%;width:12px;height:12px}.card-number{flex-shrink:0;align-content:center;gap:0;height:48px;line-height:1.05}.card-number small{color:#a0b2b7;margin-top:2px;font-family:Arial,sans-serif;font-size:8px}@media (max-width:700px){.faction-key{top:calc(max(13px,var(--safe-top)) + 68px);right:max(13px,var(--safe-right));gap:10px;padding:8px 10px}.faction-key>span{font-size:9px}.faction-key svg{width:13px;height:16px}.card-number{height:41px}}.action-effects{pointer-events:none}.action-trail{fill:none;stroke:#ffe7a2;stroke-width:3px;stroke-dasharray:8 7;filter:drop-shadow(0 0 3px #ffb34d);animation:.55s ease-out both trail-fade}.transfer-trail{stroke:#9df}.impact-burst{transform-box:fill-box;transform-origin:50%;animation:.48s ease-out both impact-pop}.impact-ring{fill:none;stroke:#ffd998;stroke-width:3px;transform-origin:50%;animation:.5s ease-out both impact-expand}.impact-flash{fill:#fff2ae;stroke:#ff994c;stroke-width:2px;filter:drop-shadow(0 0 7px #ff9b46)}.impact-sparks{fill:none;stroke:#ffe9b0;stroke-width:3px;stroke-linecap:round}.floating-number{text-anchor:middle;paint-order:stroke;stroke:#08151e;stroke-width:5px;font-family:Arial,Malgun Gothic,sans-serif;font-size:25px;font-weight:700;animation:.85s ease-out both number-rise}.loss-number{fill:#ffb3a2}.reinforcement-number{fill:#bff5cf}.capture-ring{fill:none;stroke:#c3f6ff;stroke-width:4px;transform-origin:50%;animation:.85s ease-out both capture-expand}.action-help{color:#b8ccd1;margin:12px 0 0;font-size:10px;line-height:1.6}.battle-announcement{z-index:5;pointer-events:none;max-width:calc(100% - 32px);position:absolute;top:135px;left:50%;transform:translate(-50%)}.battle-announcement p{color:#f4e6c5;text-align:center;background:#071c2aef;border:1px solid #bb9c6377;border-radius:4px;min-width:210px;max-width:440px;margin:0;padding:12px 18px;font-size:12px;line-height:1.6;animation:.15s ease-out notice-in;box-shadow:0 4px 20px #0008}@keyframes trail-fade{0%{opacity:.9;stroke-dashoffset:30px}to{opacity:0;stroke-dashoffset:0}}@keyframes impact-pop{0%{opacity:1;scale:.35}35%{opacity:1;scale:1}to{opacity:0;scale:1.2}}@keyframes impact-expand{0%{opacity:1;scale:.4}to{opacity:0;scale:2.6}}@keyframes number-rise{0%{opacity:1;transform:translateY(0)}65%{opacity:1}to{opacity:0;transform:translateY(-32px)}}@keyframes capture-expand{0%{opacity:1;scale:.6}to{opacity:0;scale:2.5}}@keyframes notice-in{0%{opacity:0;translate:0 -5px}to{opacity:1;translate:0}}@media (max-width:700px){.battle-announcement{width:calc(100% - 32px);top:130px}.battle-announcement p{min-width:0;padding:10px 13px;font-size:11px}.action-help{margin-top:9px;font-size:9px}}.blast-shadow{fill:#070b0c;animation:.8s ease-out both blast-shadow}.blast-dust{fill:url(#blast-dust);transform-origin:0 17px;animation:.85s ease-out both blast-dust}.blast-shockwave{fill:none;stroke:#c8a478;stroke-width:4px;transform-origin:0 14px;animation:.4s ease-out both blast-shockwave}.blast-fireball{fill:url(#blast-fire);transform-origin:0 0;animation:.48s ease-out both blast-fireball}.blast-whiteout{fill:#fff7d5;animation:.16s ease-out both blast-whiteout}.blast-smoke{fill:url(#blast-smoke);transform-origin:0 0;animation:.9s ease-out both blast-smoke}.blast-debris{fill:#4b3423;stroke:#a37942;stroke-width:1px;transform-origin:0 0;animation:.65s ease-out both blast-debris}.marching-soldier{filter:drop-shadow(0 2px 2px #0008)}@keyframes blast-whiteout{0%{opacity:0;scale:.3}25%{opacity:1;scale:1}to{opacity:0;scale:1.4}}@keyframes blast-fireball{0%{opacity:0;scale:.2}15%{opacity:1;scale:.9}40%{opacity:1;scale:1.2}to{opacity:0;translate:0 -10px;scale:.9}}@keyframes blast-smoke{0%{opacity:0;scale:.2}18%{opacity:0;scale:.5}40%{opacity:.9;scale:1}75%{opacity:.65;translate:2px -17px;scale:1.3}to{opacity:0;translate:5px -30px;scale:1.5}}@keyframes blast-dust{0%{opacity:0;scale:.3}20%{opacity:.85;scale:.8}to{opacity:0;scale:1.9}}@keyframes blast-shockwave{0%{opacity:.85;stroke-width:6px;scale:.3}to{opacity:0;stroke-width:1px;scale:2.6}}@keyframes blast-shadow{0%{opacity:0}20%{opacity:.55}to{opacity:0}}@keyframes blast-debris{0%{opacity:0;scale:.4}18%{opacity:1;scale:1}75%{opacity:.8;translate:0 8px;scale:2.2}to{opacity:0;translate:0 16px;scale:2.6}}.sea-routes{pointer-events:none}.sea-routes.hidden{display:none}.sea-route-control,.sea-port{cursor:pointer;outline:none}.sea-route-hit{fill:none;stroke:#0000;stroke-width:24px;pointer-events:stroke}.sea-route-control .route,.sea-route-control .route-shadow{pointer-events:none}.sea-route-control:hover .route,.sea-route-control:focus-visible .route{stroke:#ffe4a3;stroke-width:4px}.sea-port-hit{fill:#0000;pointer-events:all}.port-ring{fill:#071c2cf0;stroke:#bde9f0;stroke-width:2.5px;filter:drop-shadow(0 0 3px #56d7ee);pointer-events:none}.port-center{fill:#bde9f0;pointer-events:none}.selected-port .port-ring,.sea-port:hover .port-ring,.sea-port:focus-visible .port-ring{stroke:#ffe29c;stroke-width:4px}.selected-port .port-center{fill:#ffe29c}.turn-panel{z-index:4;top:max(21px,var(--safe-top));background:linear-gradient(135deg,#0b2634f5,#051723f5);border:1px solid #668d9a88;border-radius:4px;align-items:center;gap:20px;min-width:310px;padding:12px 15px;display:flex;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 5px 25px #0007}.turn-panel p{color:#c9e9f3;letter-spacing:1px;margin:0 0 7px;font-size:13px;font-weight:600}.turn-panel span{color:#99b4bf;white-space:nowrap;font-size:9px}.turn-panel button{color:#f7e5bc;background:linear-gradient(#665333,#423421);border:1px solid #c4a66b;border-radius:3px;flex-shrink:0;min-width:86px;min-height:42px;font-size:11px}.turn-panel button:disabled{opacity:.55;color:#b4c5cb;background:#132b35;border-color:#617b83}.computer-turn p{color:#edb3a8}.resident-bonus{fill:#b7efca;stroke:#061b14;stroke-width:4px;paint-order:stroke;text-anchor:middle;font-family:Arial,Malgun Gothic,sans-serif;font-size:13px;font-weight:700}.game-result{text-align:center;padding:32px}.result-eyebrow{letter-spacing:3px;color:#a38c64;margin:0 0 25px;font-size:8px}.result-emblem{margin:8px 0 20px;font-size:66px;line-height:1.2}.result-emblem.victory{color:#e2c27c;text-shadow:0 0 30px #d2ac6133}.result-emblem.defeat{color:#bda18e}.game-result h2{margin:0 0 17px;font-size:30px}.result-description{color:#adbec1;font-size:12px;line-height:1.9}.result-stat{border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#d6c49e;justify-content:center;gap:24px;margin-top:20px;padding:18px 0;font-size:12px;display:flex}.review-button{color:#a8bcc2;background:0 0;border:0;width:100%;min-height:44px;margin-top:9px;font-size:11px}@media (max-width:900px){.turn-panel{top:119px;left:max(22px,var(--safe-left));gap:16px;min-width:0;transform:none}.battle-announcement{top:206px}.turn-panel span{font-size:9px}}@media (max-width:700px){.turn-panel{left:max(13px,var(--safe-left));right:max(13px,var(--safe-right));justify-content:space-between;gap:8px;padding:10px 13px;top:119px}.turn-panel p{font-size:12px}.turn-panel span{font-size:9px}.turn-panel button{min-width:83px;min-height:42px}.battle-announcement{top:202px}.game-result{padding:27px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}.battle-blast,.marching-soldier,.impact-burst,.impact-ring,.capture-ring,.action-trail{display:none}.floating-number,.battle-announcement p{animation:none}}.world-map .route{stroke-width:2px;filter:none}.world-map .route-shadow{stroke-width:4px}.world-map .port-ring{stroke-width:1.8px;filter:none}.territory.neighbor,.sea-route-control,.sea-port,.neighbor-list button{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}@container (max-height:500px){.hud-top{top:max(8px,var(--safe-top));left:max(10px,var(--safe-left));right:10px}.map-title{gap:7px;padding:6px 11px}.title-emblem{font-size:26px}.map-title h1{letter-spacing:1px;font-size:14px}.map-title h1>span{margin-left:5px;font-size:10px}.map-title p{display:none}.hud-button{min-width:42px;min-height:36px}.menu-button>span:last-child{display:none}.turn-panel{top:max(8px,var(--safe-top));gap:10px;min-width:0;padding:6px 9px;left:50%;right:auto;transform:translate(-50%)}.turn-panel p{letter-spacing:0;margin-bottom:4px;font-size:10px}.turn-panel span{font-size:8px}.turn-panel button{min-width:66px;min-height:32px;font-size:10px}.faction-key{top:calc(max(8px,var(--safe-top)) + 45px);right:max(10px,var(--safe-right));gap:9px;padding:6px 8px}.faction-key>span{font-size:9px}.territory-card{left:max(10px,var(--safe-left));bottom:max(10px,var(--safe-bottom));width:min(300px,100% - 68px);max-height:calc(100dvh - 110px);padding:8px 10px;overflow:auto;transform:none}.card-heading{gap:8px}.card-number{width:32px;height:35px;font-size:19px}.region-caption{font-size:8px}.territory-card h2{margin-top:4px;font-size:14px}.territory-card .close-button{min-width:32px;min-height:32px}.action-help{margin:6px 0 0;font-size:9px}.neighbor-list{gap:4px;margin-top:7px;padding-top:7px}.neighbor-list button{min-height:32px;padding:4px 6px;font-size:9px}.zoom-controls{right:max(10px,var(--safe-right));bottom:max(10px,var(--safe-bottom))}.zoom-controls button{width:36px;height:36px}.map-hint{bottom:max(10px,var(--safe-bottom));padding:8px 11px;font-size:9px}.battle-announcement{top:calc(max(8px,var(--safe-top)) + 49px);width:auto;max-width:360px}.battle-announcement p{min-width:0;padding:7px 11px;font-size:10px}}.difficulty-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.difficulty-options button{text-align:center;background:#071b25;border:1px solid #668d9a66;border-radius:4px;min-height:44px;padding:10px 8px;font-size:12px}.difficulty-options button[aria-pressed=true]{color:#f2e5c8;background:#51432866;border-color:#d1b27a}.territory-totals{align-items:center;gap:18px;margin:0 0 5px;display:flex}.menu-scroll-close{z-index:5;height:0;position:sticky;top:0}.menu-scroll-close button{background:#071924;border:1px solid #a58b5a99;border-radius:4px;width:42px;height:42px;margin:0;position:absolute;top:-12px;right:-12px;box-shadow:0 3px 12px #0008}.turn-panel .territory-total{color:#e3eef2;font-variant-numeric:tabular-nums;align-items:center;gap:6px;font-size:11px;line-height:14px;display:inline-flex}.faction-orb{background:radial-gradient(circle at 30% 25%,#ffffffa6,transparent 60%),var(--faction-color);width:9px;height:9px;box-shadow:inset 0 -1px 2px #0007,0 0 4px color-mix(in srgb,var(--faction-color) 35%,transparent);border-radius:50%;flex-shrink:0;display:block}.choosing-battle>:not(.battle-setup):not(.rotate-screen){display:none!important}.battle-setup{z-index:10;padding:clamp(22px,5vh,65px) max(30px,var(--safe-right)) clamp(22px,5vh,65px) max(30px,var(--safe-left));background:linear-gradient(100deg,#03121ee8,#03121ef5),url(/art/battlefield-declutter-v16.png) 50%/cover;grid-template-columns:1fr 1.1fr;align-items:center;gap:clamp(24px,6vw,100px);display:grid;position:absolute;inset:0;overflow:auto}.setup-brand{justify-content:center;align-items:center;gap:15px;display:flex}.setup-brand>span{color:#d1b27a;font:80px Georgia,serif}.setup-brand h1{letter-spacing:3px;margin:0;font-size:clamp(24px,4vw,48px);font-weight:500}.setup-brand p{color:#b29e77;letter-spacing:4px;margin:12px 0 0;font-size:10px}.setup-options{justify-self:center;width:100%;max-width:420px}.setup-options fieldset{border:0;margin:0 0 20px;padding:0}.setup-options legend{color:#b7cbd4;letter-spacing:1px;margin-bottom:10px;font-size:11px}.mode-options{grid-template-columns:1fr 1fr;gap:10px;display:grid}.mode-options button{color:#b8c9d0;background:#071b25;border:1px solid #668d9a66;border-radius:4px;min-height:80px;padding:12px}.mode-options button[aria-pressed=true]{color:#f2e5c8;background:#51432866;border-color:#d1b27a}.mode-options strong{font-size:15px;font-weight:500}.mode-orbs{justify-content:center;gap:7px;margin-bottom:12px;display:flex}.mode-orbs i{border-radius:50%;width:8px;height:8px;box-shadow:inset 0 1px 2px #fff6}.setup-play{color:#fff0cb;letter-spacing:2px;background:linear-gradient(#6b5634,#44351f);border:1px solid #d1b27a;border-radius:4px;width:100%;min-height:44px;font-size:15px}.setup-resume{color:#9eb6c2;background:0 0;border:0;min-height:30px;margin:10px auto 0;font-size:11px;display:block}.compact-mode-options button{min-height:44px;font-size:12px}@container (max-height:500px){.battle-setup{gap:30px;padding-top:18px;padding-bottom:18px}.setup-options fieldset{margin-bottom:13px}.setup-options legend{margin-bottom:7px}.mode-options button{min-height:66px;padding:9px}.mode-orbs{margin-bottom:9px}.setup-brand>span{font-size:56px}.setup-brand h1{font-size:27px}.setup-brand p{letter-spacing:2px}.setup-options .difficulty-options button{min-height:38px;padding:8px}.territory-totals{gap:12px}}.turn-panel{left:auto;right:calc(max(22px,var(--safe-right)) + 98px);gap:10px;min-width:0;max-width:280px;padding:7px 9px;transform:none}.turn-panel p{letter-spacing:0;margin-bottom:3px;font-size:11px}.turn-panel .territory-totals{gap:12px;margin-bottom:3px}.turn-panel .territory-total{font-size:10px;line-height:12px}.turn-panel button{min-width:68px;min-height:36px;font-size:10px}@container (max-height:500px){.turn-panel{top:max(8px,var(--safe-top));left:auto;right:calc(max(10px,var(--safe-right)) + 52px);gap:7px;max-width:260px;padding:5px 7px;transform:none}.turn-panel p{margin-bottom:2px;font-size:9px}.turn-panel span{font-size:8px}.turn-panel .territory-total{font-size:9px;line-height:11px}.turn-panel button{min-width:61px;min-height:34px;font-size:9px}.turn-panel .faction-orb{width:7px;height:7px}.faction-key{top:calc(max(8px,var(--safe-top)) + 53px);background:#04121b99;gap:8px;padding:3px 5px}.faction-key>span{font-size:8px}}
