@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:block;src:url(/malpaco/fonts/InterVariable.woff2)format("woff2")}:root{--bg:#0c1722;--surface:#14232f;--surface-2:#1b2f3e;--line:#2b4457;--text:#e9eef2;--muted:#9bb0bf;--accent:#f2c14e;--accent-ink:#2a1d00;--sea-1:#1f5d82;--sea-2:#123c58;--sand:#e6d6a8;--focus:#fff;--danger:#ff7a66;--ok:#7ad69a;--radius:10px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:15px/1.4 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}#app{grid-template-rows:auto 1fr;height:100vh;display:grid}.topbar{background:var(--surface);border-bottom:1px solid var(--line);align-items:baseline;gap:16px;padding:10px 20px;display:flex}.topbar h1{letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0;font-size:22px}.subtitle{color:var(--muted)}.stage{grid-template-columns:minmax(0,1fr) 320px;min-height:0;display:grid}.board{min-height:0;padding:12px;position:relative}#map{border-radius:var(--radius);width:100%;height:100%;box-shadow:0 0 0 1px var(--line), 0 12px 40px #00000073;display:block}.sea{fill:url(#seaGradient)}.wave{fill:none;stroke:#fff;stroke-opacity:.06;stroke-width:3px}.lane{fill:none;stroke:#fff;stroke-opacity:.55;stroke-width:3px;stroke-dasharray:none;stroke-linecap:round}.shore path{fill:var(--sand);stroke:var(--sand);stroke-width:22px;stroke-linejoin:round}.province{cursor:default;outline:none;transition:opacity .2s}.province.is-mine{cursor:pointer}.province .shape{fill:var(--owner);stroke:var(--owner-dark);stroke-width:3px;stroke-linejoin:round;transition:fill .35s}.province .hatch{pointer-events:none;stroke:none;display:none}.province.seat-1 .hatch{display:block}.province.is-dim{opacity:.68}.badge-shape{fill:var(--owner-dark);stroke:#fff;stroke-opacity:.85;stroke-width:2.5px;vector-effect:non-scaling-stroke}.badge-initial,.badge-count,.name{text-anchor:middle;pointer-events:none;-webkit-user-select:none;user-select:none}.badge-initial{fill:#fff;fill-opacity:.8;font:700 15px Inter,system-ui,sans-serif}.badge-count{fill:#fff;font:800 25px Inter,system-ui,sans-serif}.name{fill:#fff;paint-order:stroke;stroke:#001423d9;stroke-width:5px;stroke-linejoin:round;font:600 21px Inter,system-ui,sans-serif}.province.flash .shape{animation:.9s ease-out flash}.province.flash .badge{transform-box:fill-box;transform-origin:50%;animation:.6s ease-out pop}@keyframes flash{0%{filter:brightness(1.9)}to{filter:brightness()}}@keyframes pop{0%{transform:scale(1.5)}to{transform:scale(1)}}.overlay path{fill:none;stroke-linejoin:round}.ov-hover{stroke:#fff;stroke-width:4px;fill:#ffffff24!important}.ov-selected{stroke:#fff;stroke-width:7px;filter:drop-shadow(0 0 8px #ffffffe6)}.ov-target{stroke:var(--accent);stroke-width:5px;stroke-dasharray:16 10;animation:.9s linear infinite march}.ov-chosen{stroke:var(--accent);stroke-width:8px;filter:drop-shadow(0 0 8px #f2c14ee6);fill:#f2c14e38!important}.ov-arrow{stroke:#fff;stroke-width:6px;stroke-dasharray:2 12;stroke-linecap:round;animation:.6s linear infinite march}@keyframes march{to{stroke-dashoffset:-26px}}.tag rect{fill:#fff;stroke:#001423b3;stroke-width:2px}.tag.target rect{fill:var(--accent)}.tag text{text-anchor:middle;letter-spacing:.06em;fill:#0c1722;font:800 16px Inter,system-ui,sans-serif}.crosshair circle{fill:#0c1722d9;stroke:var(--accent);stroke-width:3.5px}.crosshair path{stroke:var(--accent);stroke-width:3.5px;stroke-linecap:round}.tip{border:1px solid var(--line);pointer-events:none;z-index:3;background:#081018f0;border-radius:8px;gap:2px;min-width:170px;padding:8px 12px;font-size:14px;display:grid;position:absolute;top:0;left:0}.tip[hidden]{display:none}.muted{color:var(--muted)}.toast{background:var(--accent);color:var(--accent-ink);opacity:0;pointer-events:none;border-radius:999px;padding:10px 22px;font-size:18px;font-weight:700;position:absolute;top:28px;left:50%;transform:translate(-50%,-20px)}.toast.show{animation:1.8s ease-out toast}@keyframes toast{0%{opacity:0;transform:translate(-50%,-20px)}12%,75%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%)}}.panel{flex-direction:column;gap:12px;min-height:0;padding:12px 16px 12px 4px;display:flex;overflow:auto}.panel[data-phase=reinforce]{gap:8px}.panel[data-phase=reinforce] .card{padding:10px 12px}.panel[data-phase=reinforce] .legend{display:none}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}.card h3{letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 8px;font-size:12px}.turn{border-left:6px solid var(--owner,var(--line));align-items:center;gap:14px;display:flex}.turn-title{font-size:20px;font-weight:700}.turn-sub{color:var(--muted);font-size:13px}.chip{flex:none}.score{gap:8px;display:grid}.score-row{border-radius:6px;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:6px 8px;display:grid}.score-row.active{background:var(--surface-2)}.score-name{font-weight:600}.score-num{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}.steps{gap:6px;margin:0 0 8px;padding:0;list-style:none;display:grid}.steps li{color:var(--muted);grid-template-columns:24px 52px 1fr;align-items:center;gap:8px;display:grid}.steps li.done{color:var(--text)}.step-n{border:1.5px solid var(--line);border-radius:50%;place-items:center;width:22px;height:22px;font-size:12px;font-weight:700;display:grid}.steps li.done .step-n{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.income-row,.pool-row{color:var(--muted);justify-content:space-between;align-items:baseline;gap:12px;padding:3px 0;display:flex}.income-row strong,.pool-row strong{color:var(--text);font-variant-numeric:tabular-nums;font-size:17px}.pool-row{border-top:1px solid var(--line);color:var(--text);margin-top:5px;padding-top:8px;font-weight:700}.buttons #start-combat-button{grid-column:1/-1}.step-value{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.legend{color:var(--muted);align-items:center;gap:8px;margin:12px 0 0;font-size:12.5px;line-height:1.3;display:flex}.legend-icon{flex:none}.hint{max-height:4.1em;color:var(--muted);margin:0 0 6px;font-size:13.5px;overflow:hidden}.buttons{grid-template-columns:1fr 1fr;gap:10px;display:grid}button{font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--line);cursor:pointer;border-radius:8px;padding:11px 14px;font-weight:700;transition:background .15s,transform .1s,border-color .15s}button:hover:not(:disabled){background:#264257;border-color:#4a6a80}button:active:not(:disabled){transform:translateY(1px)}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}button.primary:hover:not(:disabled){background:#ffd36d;border-color:#ffd36d}button.quiet{padding:6px 12px;font-size:13px;font-weight:600}button:disabled,button.primary:disabled{opacity:1;border:1px dashed var(--line);color:#6f8696;cursor:not-allowed;background:0 0}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.province:focus-visible{outline:none}.log-card{flex:1;min-height:96px;overflow:auto}.log{color:var(--muted);gap:4px;margin:0;padding:0;font-size:13px;list-style:none;display:grid}.log li:last-child{color:var(--text);font-weight:600}.panel-foot{color:var(--muted);justify-content:space-between;align-items:center;font-size:12px;display:flex}dialog{width:min(520px,92vw);color:var(--text);background:var(--surface);border:1px solid #4a6a80;border-radius:14px;padding:24px 28px 20px;box-shadow:0 24px 80px #0009}dialog[open]{animation:.25s ease-out rise}dialog::backdrop{background:#040a1073}@keyframes rise{0%{opacity:0;transform:translateY(14px)scale(.98)}}dialog h2{margin:0 0 14px;font-size:20px}.dice-grid{grid-template-columns:repeat(var(--cols,3), 1fr);justify-items:center;gap:8px 10px;margin-bottom:14px;display:grid}.dice-grid .side{color:var(--muted);grid-column:1/-1;justify-self:start;font-weight:700}.versus{display:contents}.verdict{letter-spacing:.04em;text-transform:uppercase;font-size:13px;font-weight:800}.verdict.up{color:var(--ok)}.verdict.down{color:var(--danger)}.verdict.none{color:var(--muted)}.die{background:#f4f1e8;border-radius:10px;grid-template:repeat(3,1fr)/repeat(3,1fr);width:52px;height:52px;padding:7px;animation:.6s cubic-bezier(.2,.7,.3,1) tumble;display:grid;box-shadow:inset 0 -3px #0000002e,0 3px 8px #0006}.die.defender{background:#2b3b48}.die i{border-radius:50%;width:9px;height:9px;margin:auto;display:block}.die .pip{background:#1b2630}.die.defender .pip{background:#f4f1e8}@keyframes tumble{0%{opacity:0;transform:rotate(-200deg)scale(.3)}70%{opacity:1;transform:rotate(14deg)scale(1.08)}to{transform:rotate(0)scale(1)}}.headline{margin:4px 0 2px;font-size:26px;font-weight:800}.headline.captured,.headline.won{color:var(--ok)}.headline.lost{color:var(--danger)}.detail{color:var(--muted);margin:0 0 6px}.extra{background:var(--surface-2);border-radius:8px;margin:8px 0 0;padding:8px 12px;font-weight:700}.dialog-actions{justify-content:flex-end;margin-top:18px;display:flex}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:1600px) and (min-height:1000px){.stage{grid-template-columns:minmax(0,1fr) 440px}.panel,dialog{zoom:1.3}}#app.prototype-root{display:block}#generated-prototype{background:#0e2634;grid-template-rows:52px 24px minmax(0,1fr) 110px;gap:8px;height:100%;padding:12px 20px;display:grid}#generated-prototype .prototype-header{justify-content:space-between;align-items:center;gap:20px;display:flex}#generated-prototype h1{letter-spacing:-.035em;margin:0;font-size:23px;font-weight:600}#generated-prototype .prototype-eyebrow{color:#8daab7;letter-spacing:.17em;margin:0 0 3px;font-size:10px;font-weight:700}#generated-prototype .prototype-seed-control{color:#bed0d7;align-items:center;gap:10px;font-size:12px;display:flex}#generated-prototype input{color:#fff;width:112px;font:inherit;font-variant-numeric:tabular-nums;background:#0b1e2a;border:1px solid #456473;border-radius:5px;padding:8px 10px}#generated-prototype button{border-radius:5px;padding:8px 14px;font-size:12px}#generated-prototype .prototype-generate{color:#243624;background:#ddc982;border-color:#ddc982}#generated-prototype .prototype-legend{color:#b1c6ce;align-items:center;gap:24px;font-size:11px;display:flex}#generated-prototype .prototype-legend span{white-space:nowrap;align-items:center;gap:8px;display:flex}#generated-prototype .prototype-legend p{margin:0 0 0 auto}#generated-prototype .prototype-key{border-top:2px solid #e9dba6;width:26px;display:inline-block}#generated-prototype .prototype-key-sea{border-color:#83c9e5;border-top-style:dashed}#generated-prototype .prototype-map-wrap{background:#12374b;border:1px solid #355565;border-radius:7px;min-height:0;overflow:hidden}#generated-map{background:#12374b;width:100%;height:100%;display:block}#generated-map .prototype-sea{fill:#12374b}#generated-map .prototype-coast{fill:#445c57;stroke:#c7bc8e;stroke-width:7px;stroke-linejoin:round}#generated-map .prototype-island-title{fill:#d9e4e1;letter-spacing:.025em;font:600 15px Inter,system-ui,sans-serif}#generated-map [data-country]{cursor:pointer;outline:none}#generated-map .country-shape{fill:#7ba78c;stroke:#345746;stroke-width:1.5px;stroke-linejoin:round}#generated-map .country-name{fill:#10291e;text-anchor:middle;dominant-baseline:central;pointer-events:none;-webkit-user-select:none;user-select:none;font:600 18px Inter,system-ui,sans-serif}#generated-map [data-country]:hover .country-shape,#generated-map [data-country]:focus-visible .country-shape{stroke:#fff;stroke-width:3px}#generated-map [data-neighbour=true] .country-shape{stroke:#e9dba6;stroke-width:3px}#generated-map [aria-pressed=true] .country-shape{fill:#ddc982;stroke:#fff;stroke-width:3px}#generated-map .prototype-routes{pointer-events:none}#generated-map [data-connection]{fill:none;stroke:#e9dba6;stroke-width:2px;stroke-linecap:round;stroke-opacity:.55}#generated-map [data-connection=sea]{stroke:#83c9e5;stroke-width:2.5px;stroke-dasharray:none;stroke-opacity:.7}#generated-map [data-highlighted=true]{stroke-opacity:1;stroke-width:4px}#generated-prototype .prototype-selection{background:#142e3c;border-top:1px solid #355565;border-radius:5px;grid-template-columns:265px minmax(0,1fr);gap:20px;padding:13px 16px;display:grid}#generated-prototype #selected-country{overflow-wrap:anywhere;margin:0;font-size:15px;font-weight:600}#generated-prototype #selected-neighbours{grid-template-columns:1fr 1fr;align-content:start;gap:20px;display:grid}#generated-prototype .prototype-neighbour-list{flex-wrap:wrap;align-content:start;gap:4px 14px;display:flex}#generated-prototype .prototype-neighbour-list h3{color:#e9dba6;width:100%;margin:0 0 3px;font-size:11px;font-weight:600}#generated-prototype .prototype-neighbours-sea h3{color:#83c9e5}#generated-prototype .prototype-neighbour-list span,#generated-prototype .prototype-selection-hint{color:#c7d7dd;margin:0;font-size:11px;line-height:1.5}#generated-prototype .prototype-selection-hint{grid-column:1/-1;align-self:center}#generated-prototype .prototype-no-neighbours{color:#8daab7}#generated-prototype .prototype-error{background:#142e3c;border:1px solid #456473;border-radius:7px;grid-row:3/-1;place-self:center;width:min(600px,100%);padding:28px}#generated-prototype .prototype-error h2{color:#f0bd92}#generated-game{grid-template-rows:auto 1fr;height:100vh;display:grid}#generated-game .stage{grid-template-columns:minmax(0,1fr) 288px}#generated-game .subtitle{display:none}#generated-game .generated-seed,#generated-game .generated-legend{align-items:center;gap:8px;display:flex}#generated-game .generated-seed{margin-left:auto}#generated-game input{width:100px}#generated-game .generated-legend{color:var(--muted);gap:18px;font-size:12px}#generated-game .generated-legend span{align-items:center;gap:6px;display:flex}#generated-game .generated-legend i{border-top:2px solid #e9dba6;width:22px}#generated-game .generated-legend .generated-sea-key{border-color:#83c9e5;border-top-style:dashed}#generated-game #generated-map .country-name{fill:#071923;font-size:18px}#generated-game #generated-map .army-count{fill:#071923;text-anchor:middle;dominant-baseline:central;pointer-events:none;font:700 18px Inter,system-ui,sans-serif}#generated-game #generated-map [data-selected=true] .country-shape{stroke:#fff;stroke-width:4px}#generated-game #generated-map [data-target=true] .country-shape{stroke:#ffe08a;stroke-width:4px;stroke-dasharray:5 3}#generated-game #generated-map .prototype-island-title{font-size:18px}#generated-game .generated-error{padding:24px}#generated-game .generated-error form{justify-content:start;margin:20px 0}@media (min-width:1600px) and (min-height:1000px){#generated-game .stage{grid-template-columns:minmax(0,1fr) 440px}}#game-setup.setup-root{place-items:center;padding:32px;display:grid;position:relative}.setup-card{gap:14px;width:min(540px,100%);display:grid}.setup-card h1,.setup-card p{margin:0}.setup-card label{font-weight:700}.setup-card input,.setup-card select{width:100%;min-width:0;font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:12px}.setup-card [role=alert]{color:#f0bd92}#game-setup .help-open{position:absolute;top:16px;right:16px}#generated-game:is([data-seats="3"],[data-seats="4"]) .panel{gap:6px}#generated-game:is([data-seats="3"],[data-seats="4"]) .score{gap:2px;padding:8px}#generated-game:is([data-seats="3"],[data-seats="4"]) .score-row{gap:6px;padding:3px 4px}#generated-game:is([data-seats="3"],[data-seats="4"]) .card{padding:8px}#generated-game:is([data-seats="3"],[data-seats="4"]) .log-card{min-height:50px}#generated-game:is([data-seats="3"],[data-seats="4"]) .legend{margin-top:6px;font-size:11px}#generated-game .steps li{grid-template-columns:24px 44px minmax(0,1fr);gap:6px}#generated-game .step-value{white-space:normal;overflow-wrap:anywhere;overflow:visible}#generated-game[data-seats="2"] .panel[data-phase=attack] .log-card{min-height:50px}.match-files{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.match-load{align-items:center;gap:6px;display:flex}.match-load label{white-space:nowrap;font-size:12px}.match-load input{width:100%;min-width:0;max-width:100%;font-size:12px}.match-error{max-width:440px;margin:0;font-size:12px}.match-error:empty{display:none}#game-setup .match-load{margin-top:12px}#generated-game .topbar{flex-wrap:wrap;position:relative}#generated-game .match-error:not(:empty){z-index:5;border:1px solid var(--line);background:var(--surface);border-radius:6px;max-width:min(640px,100vw - 40px);padding:10px 12px;position:absolute;top:100%;left:20px;right:auto;box-shadow:0 4px 12px #0008}.help-dialog{box-sizing:border-box;zoom:1;color:#f2f5f7;background:#101f2b;border:1px solid #8a9ba8;border-radius:12px;max-width:min(42rem,100vw - 2rem);max-height:80vh;padding:1.25rem;overflow:auto}.help-dialog[open]{animation:none}.help-dialog::backdrop{background:#0009}.help-dialog h2{margin-top:0}.help-dialog h3{margin:1rem 0 .25rem}.help-dialog p{margin:.25rem 0;line-height:1.45}.help-actions{text-align:right;background:#101f2b;padding:.75rem 0 0;position:sticky;bottom:0}#reference-setup{place-items:center;height:100vh;padding:32px;display:grid}:is(#reference-game,#geographic-game){grid-template-rows:auto minmax(0,1fr);height:100vh;display:grid}:is(#reference-game,#geographic-game) .stage{grid-template-columns:minmax(0,1fr) 288px}#reference-map{width:100%;height:100%;display:block}:is(#reference-game,#geographic-game):is([data-seats="3"],[data-seats="4"]) .panel{gap:6px}:is(#reference-game,#geographic-game):is([data-seats="3"],[data-seats="4"]) .score{gap:2px;padding:8px}:is(#reference-game,#geographic-game):is([data-seats="3"],[data-seats="4"]) .score-row{gap:6px;padding:3px 4px}:is(#reference-game,#geographic-game):is([data-seats="3"],[data-seats="4"]) .card{padding:8px}:is(#reference-game,#geographic-game):is([data-seats="3"],[data-seats="4"]) .log-card{min-height:50px}:is(#reference-game,#geographic-game):is([data-seats="3"],[data-seats="4"]) .legend{margin-top:6px;font-size:11px}:is(#reference-game,#geographic-game) .steps li{grid-template-columns:24px 44px minmax(0,1fr);gap:6px}:is(#reference-game,#geographic-game) .step-value{white-space:normal;overflow-wrap:anywhere;overflow:visible}:is(#reference-game,#geographic-game)[data-seats="2"] .panel[data-phase=attack] .log-card{min-height:50px}@media (min-width:1600px) and (min-height:1000px){:is(#reference-game,#geographic-game) .stage{grid-template-columns:minmax(0,1fr) 440px}}:is(#reference-game,#geographic-game).battle-reference .stage{grid-template-columns:minmax(0,1fr) 350px}.battle-reference .panel{gap:8px;overflow-y:auto}.battle-reference .panel .card{padding:10px}.battle-reference .topbar{flex-wrap:wrap;align-items:center;gap:12px}.battle-reference .topbar>.score{background:0 0;border:0;gap:8px;margin-left:auto;padding:4px;display:flex}.battle-reference .topbar .score-row{gap:6px;padding:4px}.battle-reference .topbar .score-name{font-size:13px}.battle-reference .topbar .score-num{font-size:12px}.battle-reference .topbar .panel-foot{gap:8px;margin:0}.battle-reference .topbar .seed{display:none}.battle-reference .action{flex-direction:column;gap:8px;display:flex}.battle-reference #attack-button,.battle-reference .action[data-battle=true]>:is(.pick,.hint,.legend){display:none}.battle-reference .action[data-battle=true]>.buttons{order:2;margin-top:0}.battle-reference .action[data-battle=true] #end-turn-button{grid-column:1/-1;width:100%}.battle-reference .log-card{min-height:48px}.battle-controls{min-width:0}.battle-controls[hidden]{display:none}.battle-title{color:var(--accent);margin:0 0 8px;font-size:16px}.battle-context{gap:5px;display:grid}.battle-country{grid-template-columns:40px minmax(0,1fr) auto;align-items:baseline;gap:6px;display:grid}.battle-country strong{overflow-wrap:anywhere;font-size:13px}.battle-label,.battle-help{color:var(--muted);font-size:12px}.battle-count{border:1px solid var(--line);text-align:center;border-radius:4px;min-width:30px;padding:1px 5px;font-weight:750}.battle-settings{grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 0;display:grid}.battle-settings label{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.battle-settings :is(input,select),.capture-choice input{background:var(--bg);width:100%;min-width:0;height:34px;color:var(--text);font:inherit;border:1px solid #6c8597;border-radius:5px;padding:4px 8px}.battle-help{margin:5px 0 8px;line-height:1.3}.battle-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 64px;gap:6px;display:grid}.battle-controls button{min-height:36px;margin:0;padding:6px 10px;font-size:13px}#single-exchange-button{grid-area:1/2;padding-inline:4px}#stop-battle-button{grid-area:1/3}.battle-feedback{margin-top:10px}.battle-result{font-size:13px}.battle-result.captured{color:var(--ok)}#battle-status{margin:3px 0 0;font-size:12px;line-height:1.35}.battle-tally{color:var(--muted);margin:7px 0;font-size:12px}.battle-rolls{flex-direction:column;gap:5px;margin:0;padding:0;list-style:none;display:flex}.battle-rolls li{justify-content:center;align-items:center;gap:10px;padding:3px 0;display:flex}.battle-die{background:var(--bg);border:2px solid #9dbece;border-radius:5px;place-items:center;width:30px;height:30px;font-size:18px;font-weight:800;display:grid}.defender-die{border-color:#e5bb8c}.battle-dice-verdict{text-align:center;min-width:116px;font-size:12px}.battle-rolls [data-result=tie]{color:var(--accent)}.capture-choice{border-top:1px solid #6c8597;margin-top:9px;padding-top:9px}.capture-choice h3{color:var(--ok);margin:0;font-size:14px}.capture-choice p{color:var(--muted);margin:4px 0 7px;font-size:12px}.capture-choice label{align-items:center;gap:8px;font-size:12px;display:flex}.capture-choice input{flex:1}.capture-adjust{grid-template-columns:1fr 36px 36px 1fr;gap:5px;margin:6px 0;display:grid}.capture-adjust button{padding:4px}#confirm-capture-button{width:100%}@media (min-width:1600px) and (min-height:1000px){:is(#reference-game,#geographic-game).battle-reference .stage{grid-template-columns:minmax(0,1fr) 440px}.battle-controls button{min-height:40px}}.friendly-quantity{align-items:center;gap:8px;margin:12px 0;font-size:13px;display:flex}.friendly-quantity input{background:var(--bg);width:100px;min-width:0;color:var(--text);border:1px solid var(--line);font:inherit;border-radius:5px;flex:1;padding:6px}#confirm-friendly-move-button{width:100%;margin-bottom:8px}.friendly-draft-actions{gap:6px;display:grid}#reference-setup:has(.victory-setup){padding:20px;overflow-y:auto}.victory-setup{gap:9px}.reference-controller-fields,.reference-victory-options{grid-template-columns:1fr 1fr;gap:10px;display:grid}.reference-controller-fields>div,.reference-victory-options>div{align-content:start;gap:5px;display:grid}.victory-setup :is(input,select){padding:8px}.reference-victory-options .reference-domination{align-items:center;gap:8px;display:flex}.reference-domination input{width:20px;height:20px;margin:0}.victory-result[hidden]{display:none}#victory-reason{margin:0 0 12px}:is(#victory-standings,#give-up-standings){border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:13px}:is(#victory-standings,#give-up-standings) caption{text-align:left;color:var(--muted);margin-bottom:6px}:is(#victory-standings,#give-up-standings) :is(th,td){border-bottom:1px solid var(--line);text-align:right;padding:7px 4px}:is(#victory-standings,#give-up-standings) th:first-child{text-align:left}.victory-guidance{color:var(--muted);margin:12px 0 0;font-size:13px}.victory-choices{gap:8px;margin-top:12px;display:grid}.battle-reference .panel:is([data-phase=finished],[data-phase=human-loss]) .action>:is(.pick,.hint,.legend){display:none}.reference-match-files{flex-basis:100%;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:8px 16px;min-width:0;min-height:34px;display:grid}.reference-match-files .match-error{overflow-wrap:anywhere;max-width:none}.reference-match-files .match-load{min-width:0}.reference-match-files-setup{grid-template-columns:minmax(0,1fr)}.reference-match-files-setup .match-load{flex-wrap:wrap}.reference-match-files-setup .match-load input{flex:1;min-width:0}#reference-computer-status{color:var(--muted);margin:0;font-size:13px}[data-testid=player-army-total]{white-space:nowrap;font-size:16px;display:block}.game-playback{align-items:center;gap:8px;display:flex}.battle-reference #reference-computer-status{order:-1;margin:0}.battle-reference .reference-match-files{display:contents}.battle-reference .reference-match-files .match-error{flex-basis:100%}.game-event-log{border:1px solid var(--line);color:#f1f5f9;background:#12202e;border-radius:12px;width:min(900px,90vw);max-height:80vh;padding:0;overflow:auto}.game-event-log::backdrop{background:#000a}.game-event-log-head{z-index:1;border-bottom:1px solid var(--line);background:#1a2d3d;justify-content:space-between;align-items:center;gap:16px;padding:12px 20px;display:flex;position:sticky;top:0}.game-event-log-head h2{margin:0;font-size:20px}.game-event-log[open]{animation:none}.game-event-list{margin:0;padding:8px 24px 20px;list-style:none}.game-event{border-bottom:1px solid var(--line);padding:12px 0}.game-event h3,.game-event summary{color:#f2c14e;margin:0 0 8px;font-size:15px}.game-event summary{cursor:pointer}.game-event p{margin:5px 0}.game-event-note{color:#c3d3e2}#geographic-setup{place-items:center;height:100vh;padding:32px;display:grid;overflow:auto}#geographic-game{grid-template-rows:auto minmax(0,1fr);height:100vh;display:grid}#geographic-map{width:100%;height:100%;display:block}:is(#geographic-map,#reference-map) .water{fill:#102b36}:is(#geographic-map,#reference-map) .shelf{fill:#214c56;stroke:#214c56;stroke-width:10px;stroke-linejoin:round;pointer-events:none}:is(#geographic-map,#reference-map) .coast{fill:#3c7071;stroke:#dce4be;stroke-width:2.8px;stroke-linejoin:round}:is(#geographic-map,#reference-map) .lane{fill:none;stroke:#89aaa4;stroke-width:1.5px;stroke-dasharray:none;stroke-linecap:round;stroke-linejoin:round}:is(#geographic-map,#reference-map) .lane.active{stroke:#f0f1de;stroke-width:2.4px;stroke-dasharray:none}:is(#geographic-map,#reference-map) .port{fill:#89aaa4;stroke:none}:is(#geographic-map,#reference-map) .cell{stroke:#d0dfbf;stroke-width:.9px;stroke-linejoin:round;transition:filter .2s}:is(#geographic-map,#reference-map) .country{cursor:pointer;-webkit-user-select:none;user-select:none;outline:none}:is(#geographic-map,#reference-map) .ring{fill:none;stroke:none;pointer-events:none;stroke-linejoin:round}:is(#geographic-map,#reference-map) .country:is(.selected,.neighbor,.target) .cell{stroke:#102b36;stroke-width:5px}:is(#geographic-map,#reference-map) .country.selected .ring{stroke:#ffd06b;stroke-width:2.4px}:is(#geographic-map,#reference-map) .country.neighbor .ring{stroke:#f0f1de;stroke-width:1.8px;stroke-dasharray:6 4}:is(#geographic-map,#reference-map) .country.target .ring{stroke:#f0f1de;stroke-width:2.4px;stroke-dasharray:none}:is(#geographic-map,#reference-map) .target-mark{fill:none;stroke:#f0f1de;stroke-width:3px;stroke-linecap:round;paint-order:stroke;display:none}:is(#geographic-map,#reference-map) .country.target .target-mark{filter:drop-shadow(0 0 1px #102b36)drop-shadow(0 0 1px #102b36);display:inline}:is(#geographic-map,#reference-map) .country:focus-visible .cell{stroke:#fff;stroke-width:3px;stroke-dasharray:none}:is(#geographic-map,#reference-map)[data-choosing=true] .country:not(.selected,.neighbor,.target) .cell{filter:brightness(.6)saturate(.55)}:is(#geographic-map,#reference-map) .country-label{pointer-events:none}:is(#geographic-map,#reference-map) .badge{fill:#102b36;stroke-width:2.6px;stroke-linejoin:round}:is(#geographic-map,#reference-map) .country.selected .badge{fill:#ffd06b;stroke:#102b36!important}:is(#geographic-map,#reference-map) .count{fill:#f0f1de;stroke:none;text-anchor:middle;font:700 14px Inter,system-ui,sans-serif}:is(#geographic-map,#reference-map) .country.selected .count{fill:#102b36}:is(#geographic-map,#reference-map) .country.pending .badge{stroke-dasharray:5 4}:is(#geographic-map,#reference-map) :is(.name,.island-name){display:none}:is(#geographic-map,#reference-map) .country:is(:hover,:focus,.selected) .name{visibility:visible;fill:#102b36;stroke:#f0f1de;stroke-width:2.5px;paint-order:stroke;stroke-linejoin:round;font:600 12px Inter,system-ui,sans-serif;display:inline}:is(#geographic-map,#reference-map) .name-top{pointer-events:none}:is(#geographic-map,#reference-map) .name-top .name{visibility:visible;fill:#102b36;stroke:#f0f1de;stroke-width:2.5px;paint-order:stroke;stroke-linejoin:round;text-anchor:middle;font:600 12px Inter,system-ui,sans-serif;display:inline}:is(#geographic-map,#reference-map) .centre{text-anchor:middle;fill:#ffe082;stroke:#102b36;stroke-width:1.5px;paint-order:stroke;pointer-events:none;font:18px system-ui}@media (prefers-reduced-motion:reduce){:is(#geographic-map,#reference-map) .cell{transition:none}}.battle-reference[data-panel-detail] .panel{grid-template-rows:64px minmax(0,320px) minmax(100px,1fr);gap:8px;display:grid;overflow:visible}.battle-reference[data-panel-detail] .panel>.turn{min-height:0}.battle-reference[data-panel-detail] .panel>.action{gap:6px;min-height:0}.battle-reference[data-panel-detail] .panel>.log-card{flex-direction:column;min-height:0;display:flex;overflow:hidden}.battle-reference[data-panel-detail] .log-card .log{min-height:0;overflow:auto}.battle-reference[data-panel-detail] .panel .card{padding:10px}.battle-reference[data-panel-detail] .panel[data-phase=reinforce]{gap:8px}.battle-reference[data-panel-detail] .game-playback{flex-wrap:wrap}.battle-reference[data-panel-detail] #panel-detail{font:inherit;padding:4px}.battle-reference[data-panel-detail] .battle-controls{min-height:0}.battle-reference[data-panel-detail] .battle-rolls{min-height:0;max-height:100px;overflow:auto}.battle-reference[data-panel-detail=compact] .battle-rolls{display:none}.battle-reference[data-panel-detail] .panel[data-computer-active=true] .action{grid-template-rows:24px minmax(0,1fr);align-content:start;display:grid}.battle-reference[data-panel-detail] .panel[data-computer-active=true] #reference-computer-status{grid-row:1;margin:0}.battle-reference[data-panel-detail] .panel[data-computer-active=true] .action>:is(.buttons,.hint,.legend),.battle-reference[data-panel-detail] .panel[data-computer-active=true] .battle-controls>:is(.battle-settings,.battle-help,.battle-actions),.battle-reference[data-panel-detail] .panel[data-computer-active=true] .capture-choice,.battle-reference[data-panel-detail] .battle-controls[data-pending-capture=true]>:is(.battle-settings,.battle-help,.battle-actions){display:none}.battle-reference[data-panel-detail] .battle-controls[data-pending-capture=true] .battle-rolls{max-height:60px}.battle-reference[data-panel-detail] .battle-title{margin-bottom:5px}.battle-reference[data-panel-detail=detailed] .panel{grid-template-rows:64px minmax(0,380px) minmax(100px,1fr)}.battle-reference[data-panel-detail] .panel[data-computer-active=true] .action>.pick{align-self:start}.battle-reference[data-panel-detail] .action:has(.battle-controls[data-pending-capture=true])>.buttons{display:none}.battle-reference[data-panel-detail] .battle-controls[data-pending-capture=true]>.battle-title,.battle-reference[data-panel-detail] .battle-controls[data-pending-capture=true] #battle-status{display:none}.battle-reference[data-panel-detail] .friendly-draft-actions,.battle-reference[data-panel-detail] .victory-choices{grid-template-columns:1fr 1fr}.battle-reference[data-panel-detail] .friendly-quantity{margin-block:6px}.battle-reference[data-panel-detail] #victory-standings :is(th,td){padding-block:4px}.battle-reference[data-panel-detail=compact] .battle-controls>:is(.battle-title,.battle-help){display:none}.battle-reference[data-panel-detail] #victory-reason{margin-bottom:6px}.battle-reference[data-panel-detail] .victory-guidance{margin-top:6px}.log-card{flex-direction:column;display:flex;overflow:hidden}.log{min-height:0;overflow-y:auto}.card-interactions{flex-direction:column;gap:4px;min-height:0;display:flex;overflow:auto}.card-interactions[hidden]{display:none}.card-public-counts{margin:0;font-size:11px}.own-card-hand{flex-wrap:wrap;gap:3px;display:flex}.own-card-hand>strong{width:100%;font-size:12px}.own-card{border:1px solid #77848b;border-radius:4px;grid-template-columns:auto 1fr;gap:2px 4px;min-width:68px;padding:3px;font-size:11px;display:grid}.own-card small{grid-column:1/-1;max-width:95px;font-size:9px}.card-choice-controls{flex-direction:column;gap:3px;font-size:12px;display:flex}.card-choice-controls button{padding:5px;font-size:11px}.battle-reference[data-panel-detail] .action:has(.card-choice-controls strong)>:is(.battle-controls,.friendly-move-controls){display:none}.card-interactions{flex:1;gap:3px;overflow:hidden}.own-card-hand{flex-shrink:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;display:grid}.own-card-hand>strong{grid-column:1/-1}.own-card{flex-direction:column;gap:1px;min-width:0;padding:2px;font-size:10px;display:flex}.own-card small{max-width:none;font-size:8px;line-height:1.1}.card-choice-controls{flex:1;gap:3px;min-height:0;font-size:11px}.card-choice-controls p{margin:0}.card-choice-controls button{flex-shrink:0;min-height:23px;padding:3px;font-size:10px}.card-set-list{flex-direction:column;gap:3px;min-height:23px;display:flex;overflow:auto}.card-set-list:empty{display:none}.card-public-counts{flex-shrink:0;font-size:10px;line-height:1.15}.battle-reference[data-panel-detail] .action:has(.card-interactions:not([hidden])){overflow:hidden}.battle-reference[data-panel-detail] .action[data-card-choice=true]>:is(.pick,.hint,.legend,.buttons){display:none}.card-interactions[data-choice=false]{flex:none;min-height:50px}.card-interactions[data-choice=false]>.card-choice-controls:empty{display:none}.battle-reference[data-panel-detail] .action>.victory-result:not([hidden]){flex-direction:column;flex:1;min-height:0;display:flex}.battle-reference[data-panel-detail] .action>.victory-result:not([hidden])>:not(#victory-standings){flex-shrink:0}.battle-reference[data-panel-detail] .action>.victory-result:not([hidden])>#victory-standings{min-height:0;display:block;overflow:auto}.battle-reference[data-panel-detail] .panel{grid-template-rows:64px minmax(0,410px) minmax(88px,1fr)}.battle-reference[data-panel-detail] .action:has(.card-interactions[data-choice=false]:not([hidden]))>.battle-controls:not([hidden]){flex:none;overflow:visible}.battle-reference[data-panel-detail] .action[data-battle=true]>.buttons{grid-template-columns:1fr 1fr;gap:6px}.battle-reference[data-panel-detail] .action[data-battle=true] #end-turn-button{grid-column:auto;width:auto}.battle-reference[data-panel-detail] .action>.buttons button,.battle-reference[data-panel-detail] .card-interactions[data-choice=false] button{min-height:32px;padding:6px 8px}.battle-reference[data-panel-detail] .battle-settings{gap:6px;margin-top:4px}.battle-reference[data-panel-detail] .battle-context{gap:3px}.battle-reference[data-panel-detail] .battle-controls>.battle-title{display:none}.battle-reference[data-panel-detail] .battle-help{margin:1px 0}.battle-reference[data-panel-detail] .battle-feedback{margin-top:4px}.battle-reference[data-panel-detail] .battle-tally{margin:4px 0}.battle-reference[data-panel-detail] .battle-rolls{max-height:36px}.battle-reference[data-panel-detail] .battle-controls button{min-height:32px;padding:4px 8px}:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}#game-version{top:calc(var(--safe-top) + 1px);right:calc(var(--safe-right) + 4px);z-index:20;pointer-events:none;color:#e8f1ef;font-variant-numeric:tabular-nums;background:#102a36;border-radius:3px;padding:0 4px;font:12px/14px system-ui,sans-serif;position:fixed}:is(#reference-game,#geographic-game).battle-reference{--avail-h:calc(100dvh - var(--safe-top) - var(--safe-bottom));--gap:8px;--edge:16px;--target:48px;height:auto;display:block;position:fixed;inset:0;overflow:hidden}.battle-reference>.board{top:var(--safe-top);right:var(--safe-right);bottom:var(--safe-bottom);left:var(--safe-left);padding:0;position:absolute}.battle-reference>.board>svg{width:100%;height:100%;box-shadow:none;border-radius:0;display:block}.battle-reference>.game-store{display:none}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.game-overlay{z-index:3;top:var(--safe-top);right:var(--safe-right);bottom:var(--safe-bottom);left:var(--safe-left);padding:var(--edge);pointer-events:none;gap:var(--gap);grid-template:"start. .end""camera.side actions"minmax(0,1fr)/auto minmax(0,1fr) auto auto;display:grid;position:absolute}.game-overlay>*{pointer-events:none;min-width:0;min-height:0}.game-overlay button,.game-overlay .game-notice,.game-overlay #game-focus-drawer,.game-overlay .hud-chip{pointer-events:auto}.game-corner{gap:var(--gap);align-self:start;display:flex}.game-corner-start{grid-area:start}.game-corner-end{grid-area:end;justify-self:end}.game-corner[hidden],.game-overlay [hidden]{display:none!important}.game-pool-slot{grid-area:1/1/auto/-1;place-self:start center}.hud-chip{min-height:var(--target);font-variant-numeric:tabular-nums;color:var(--text);background:var(--surface);border:1px solid #3d5a6d;border-radius:12px;align-items:center;gap:8px;padding:0 16px;font:600 18px/1 Inter,system-ui,sans-serif;display:inline-flex;box-shadow:0 2px 10px #0006}.game-icon,#battle-action-rail button,.game-corner-end button,.map-camera-button{width:var(--target);height:var(--target);min-height:var(--target);color:var(--text);background:var(--surface);border:1px solid #3d5a6d;border-radius:12px;grid-area:auto;place-items:center;margin:0;padding:0;font-size:0;line-height:1;display:grid;box-shadow:0 2px 10px #0006}.game-overlay .map-camera-controls{align-self:end;gap:var(--gap);flex-direction:column-reverse;grid-area:camera;display:flex;position:static}#battle-action-rail{place-self:end;gap:var(--gap);grid-area:actions;grid-auto-flow:column;grid-template-rows:repeat(auto-fit, var(--target));grid-auto-columns:var(--target);max-height:calc(var(--avail-h) - 2 * var(--edge) - var(--target) - var(--gap));direction:rtl;display:grid}#battle-action-rail>*,#battle-action-rail .buttons>*{direction:ltr}#battle-action-rail>.buttons{display:contents}#battle-action-rail .buttons button:disabled{display:none!important}#battle-action-rail #end-turn-button{order:9}#battle-action-rail :is(#start-combat-button,#end-turn-button){border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}.rail-command-icon{display:none}.game-overlay .rail-command-icon{display:block}.game-action-symbol{flex-shrink:0}.game-side{align-items:flex-end;gap:var(--gap);flex-direction:column;grid-area:side;display:flex}.game-notice{min-height:var(--target);max-width:min(380px,42vw);color:var(--text);background:var(--surface);border:1px solid #3d5a6d;border-radius:12px;align-items:center;gap:10px;padding:6px 16px;font:600 16px/1.3 Inter,system-ui,sans-serif;display:flex;box-shadow:0 2px 10px #0006}.game-notice-slot{width:min(380px,42vw);min-height:var(--target);flex:none;justify-content:flex-end;align-items:flex-start;display:flex;position:relative}.game-notice-slot>.game-notice[data-open=true]{z-index:1;position:absolute;top:0;right:0}.game-overlay[data-primary-commands=true] .game-notice-slot:has(#open-changes){right:var(--edge);bottom:calc(var(--edge) + max(var(--target),var(--command-height,0px)) + var(--gap));width:min(360px,calc(100% - 2 * var(--edge)));z-index:4;position:absolute}.game-folded{margin-block:auto;padding-right:6px}.game-folded #open-required-action{background:var(--accent);width:44px;height:44px;min-height:44px;color:var(--accent-ink);border-color:var(--accent)}#game-focus-drawer{background:var(--surface);border:1px solid #3d5a6d;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px;width:min(380px,42vw);max-height:100%;margin-block:auto;padding:12px 12px 14px 16px;font-size:16px;display:grid;box-shadow:0 8px 32px #0009}#game-focus-drawer[data-placement=center]{width:min(400px,100%)}.game-overlay:has(#game-focus-drawer[data-placement=center]:not([hidden])) .game-side{grid-column:2/4;align-items:center}.game-drawer-content{overscroll-behavior:contain;min-height:0;max-height:100%;overflow-y:auto}#close-game-drawer{width:44px;height:44px;min-height:44px;box-shadow:none}@media (orientation:portrait){.game-overlay{grid-template:"start.end""side side side"minmax(0,1fr)"camera.actions"/auto minmax(0,1fr) auto}.game-overlay .map-camera-controls{flex-direction:row}#battle-action-rail{direction:ltr;flex-flow:wrap;justify-content:flex-end;max-height:none;display:flex}#battle-action-rail>.buttons{display:contents}.game-side{align-items:flex-end}.game-notice{max-width:100%}.game-notice-slot{width:100%}#game-focus-drawer{width:100%;max-height:calc(var(--avail-h) * .6);margin:auto 0 0}.game-overlay:has(#game-focus-drawer[data-placement=center]:not([hidden])) .game-side{grid-column:1/-1}#game-focus-drawer[data-placement=center]{margin:auto}}#game-focus-drawer .action{background:0 0;border:0;padding:0}#game-focus-drawer .action>:is(.legend,.hint),#game-focus-drawer .action[data-battle=true]>.pick,#game-focus-drawer .action[data-card-choice=true]>:is(.pick,.buttons,.battle-controls,.friendly-move-controls){display:none}#game-focus-drawer .action .buttons{grid-template-columns:1fr 1fr;gap:8px;display:grid}#game-focus-drawer .card-interactions{flex:none;min-height:0;overflow:visible}#game-focus-drawer .own-card-hand{margin-bottom:10px}#game-focus-drawer .own-card{padding:5px;font-size:12px}#game-focus-drawer .own-card small{font-size:10px}#game-focus-drawer .card-choice-controls{gap:8px}#game-focus-drawer .card-choice-controls button{min-height:34px;font-size:12px}#game-focus-drawer .card-set-list{flex-shrink:0;max-height:180px}#game-focus-drawer .log-card{height:260px;margin-top:12px}#game-focus-drawer .score{flex-wrap:wrap;gap:8px;display:flex}#game-focus-drawer .game-settings{flex-direction:column;gap:14px;display:flex}#game-focus-drawer .game-playback{flex-wrap:wrap}#game-focus-drawer .reference-match-files{flex-direction:column;align-items:stretch;gap:12px;display:flex}#game-focus-drawer .match-load{flex-direction:column;align-items:stretch;gap:8px;display:flex}#game-focus-drawer .match-load input{max-width:100%}#game-focus-drawer .panel-foot{margin:0}.map-camera-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.battle-reference>.board{background:#102b36}.battle-reference #game-focus-drawer .action{display:block}.battle-reference #game-focus-drawer .action>:is(.pick,.hint,.legend,#reference-computer-status){display:none}.battle-reference #game-focus-drawer :is(.battle-controls,.friendly-move-controls){background:0 0;border:0;min-height:0;margin:0;padding:0}.battle-reference #game-focus-drawer .card-line{color:var(--text);flex-wrap:wrap;align-items:center;gap:6px 8px;margin:2px 0 12px;font:600 16px/1.3 Inter,system-ui,sans-serif;display:flex}.battle-reference #game-focus-drawer .card-line .battle-count{font-variant-numeric:tabular-nums;border:1px solid #688497;border-radius:6px;place-items:center;min-width:30px;height:28px;padding:0 6px;display:inline-grid}.battle-reference #game-focus-drawer .battle-arrow{color:var(--accent)}.battle-reference #game-focus-drawer .card-prompt{font-weight:600}.battle-reference #game-focus-drawer .card-note{color:var(--muted);margin:8px 0 0;font-size:14px;line-height:1.35}.battle-reference #game-focus-drawer .card-icons{flex-wrap:wrap;align-items:flex-start;gap:8px;margin:0;display:flex}.battle-reference #game-focus-drawer .card-icon{min-width:48px;min-height:48px;color:var(--text);box-shadow:none;background:0 0;border:0;flex-direction:column;align-items:center;gap:4px;margin:0;padding:0;font:600 13px/1.2 Inter,system-ui,sans-serif;display:inline-flex}.battle-reference #game-focus-drawer .card-icon>svg{box-sizing:content-box;background:var(--surface-2);border:1px solid #3d5a6d;border-radius:12px;width:24px;height:24px;padding:11px}.battle-reference #game-focus-drawer .card-icon.primary>svg{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.battle-reference #game-focus-drawer .card-icon:disabled{opacity:.4}.battle-reference #game-focus-drawer .card-icon:focus-visible{outline:none}.battle-reference #game-focus-drawer .card-icon:focus-visible>svg{outline:3px solid var(--focus);outline-offset:2px}.battle-reference #game-focus-drawer .battle-actions .card-icon:disabled{display:none}.battle-reference #game-focus-drawer #cancel-battle-button{margin-left:auto}.battle-reference #game-focus-drawer .card-icons input[type=number]{text-align:center;width:60px;height:48px;color:var(--text);background:var(--bg);border:1px solid var(--accent);border-radius:12px;padding:0 4px;font:700 18px Inter,system-ui,sans-serif}.battle-reference #game-focus-drawer .amount-limit{border:1px solid var(--shell-line,#3d5a6d);background:var(--shell-bg,var(--surface));width:48px;min-width:48px;height:48px;min-height:48px;color:var(--text);text-transform:uppercase;border-radius:8px;flex:none;padding:0;font:700 14px/1 Ubuntu,system-ui,sans-serif}.battle-reference #game-focus-drawer .amount-limit:disabled{opacity:.4}.battle-reference #game-focus-drawer .card-range{align-items:center;gap:8px;margin-top:4px;display:flex}.battle-reference #game-focus-drawer .card-range input[type=range]{min-width:0;accent-color:var(--accent);flex:1}.battle-reference #game-focus-drawer .card-bound{min-width:44px;min-height:44px;color:var(--muted);box-shadow:none;background:0 0;border:0;padding:0;font:600 14px Inter,system-ui,sans-serif}.battle-reference #game-focus-drawer .card-fields{color:var(--muted);flex-wrap:wrap;gap:8px 16px;margin-top:8px;font-size:14px;display:flex}.battle-reference #game-focus-drawer .card-fields label{align-items:center;gap:6px;display:inline-flex}.battle-reference #game-focus-drawer .card-fields input{width:56px;min-height:36px}.battle-reference #game-focus-drawer .card-fields select{min-height:36px}.battle-reference #game-focus-drawer .battle-feedback{margin-top:10px}.battle-reference #game-focus-drawer .battle-message{color:var(--text);margin:6px 0 0}.battle-reference #game-focus-drawer .card-text-button{min-height:44px;color:var(--muted);box-shadow:none;background:0 0;border:0;margin-top:4px;padding:0;font:500 14px Inter,system-ui,sans-serif;text-decoration:underline}.battle-reference #game-focus-drawer .battle-controls[data-pending-capture=true]>:is(.battle-actions,.battle-feedback,.battle-settings,.battle-rolls){display:none}.battle-reference #game-focus-drawer .battle-controls[data-pending-capture=true]>.battle-context{color:var(--muted);margin-bottom:6px;font-size:14px;font-weight:500}.battle-reference #game-focus-drawer .battle-controls[data-pending-capture=true]>.battle-context .battle-count{height:24px}.battle-reference #game-focus-drawer .capture-choice{border:0;margin:0;padding:0}.battle-reference #game-focus-drawer .capture-adjust #confirm-capture-button,.battle-reference #game-focus-drawer .capture-adjust #confirm-friendly-move-button{margin-left:4px}.battle-reference #game-focus-drawer .victory-result{text-align:center;flex-direction:column;align-items:center;display:flex}.battle-reference #game-focus-drawer .result-title{margin:2px 0 4px;font:700 26px/1.2 Inter,system-ui,sans-serif}.battle-reference #game-focus-drawer .victory-result .card-note{margin:0 0 14px}.battle-reference #game-focus-drawer .victory-choices{justify-content:center;gap:12px}.battle-reference #game-focus-drawer #victory-standings{margin-top:12px;font-size:14px}.battle-reference #game-focus-drawer[data-surface=actions] .card-public-counts{display:none}.battle-reference #game-focus-drawer .card-choice-controls button{min-height:44px;font-size:14px}.battle-reference #game-focus-drawer .game-info-line{margin:2px 0 8px;font:600 16px/1.3 Inter,system-ui,sans-serif}.battle-reference #game-focus-drawer .phase-explanation{color:var(--muted);margin:0;font-size:14px}.battle-reference #game-focus-drawer :is(#capture-amount,#friendly-move-amount){flex:none;width:64px;max-width:64px}.battle-reference #game-focus-drawer[data-surface=actions] .action:not([data-card-choice=true]) .card-interactions:not(:has([role=status])){display:none}.battle-reference #game-focus-drawer[data-surface=actions] .action:not([data-card-choice=true]) .card-interactions>:not(.card-choice-controls){display:none}.battle-reference #game-focus-drawer .card-icon{flex:none;width:auto}.battle-reference #game-focus-drawer .score{background:0 0;border:0;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px;margin:0 0 10px;padding:0;display:grid}.battle-reference #game-focus-drawer .score-row{padding:4px 6px}.battle-reference #game-focus-drawer .own-card small{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.battle-reference #game-focus-drawer .own-card-hand{flex-wrap:wrap;gap:6px;display:flex}.battle-reference #game-focus-drawer .own-card{min-width:0;padding:6px 8px;font-size:14px}.game-info-store{display:none}.battle-reference #game-focus-drawer[data-surface=menu] .score{grid-template-columns:1fr;gap:2px}.battle-reference #game-focus-drawer[data-surface=menu] .score-row{align-items:center;gap:10px;min-width:0;display:flex}.battle-reference #game-focus-drawer[data-surface=menu] .score-row .score-num{flex-wrap:wrap;gap:0 10px;font-size:14px;display:flex}.battle-reference #game-focus-drawer[data-surface=menu] .score-row .score-num>*{font-size:14px}.battle-reference #game-focus-drawer .log-card{flex-direction:column;height:auto;margin:0 0 12px;padding:8px;display:flex}.battle-reference #game-focus-drawer .log-card .log{min-height:44px;max-height:180px;overflow:auto}.battle-reference #game-focus-drawer .game-identity{color:var(--muted);margin:0;font-size:14px}.battle-reference #game-focus-drawer .game-playback{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 12px;display:grid}.battle-reference #game-focus-drawer .game-playback>:is(#game-log-button,#game-changes-button,#game-help-button){grid-column:1/-1;min-height:44px}.battle-reference #game-focus-drawer .game-playback select{min-height:40px;font-size:15px}.game-side{overflow:hidden}#game-focus-drawer{flex:0 auto;grid-template-rows:minmax(0,1fr);min-height:0}.game-drawer-content{height:100%}.battle-reference #game-focus-drawer[data-surface=menu] .score-row .score-num,.battle-reference #game-focus-drawer[data-surface=menu] .score-row .score-num>*{font-size:16px}.game-overlay #active-seat-notice{pointer-events:none}.battle-reference #game-focus-drawer .capture-adjust{flex-wrap:wrap;gap:6px}.battle-reference #game-focus-drawer :is(#capture-amount,#friendly-move-amount){width:56px;max-width:56px}.battle-reference{--shell-bg:#173d47;--shell-line:#335863;--shell-gold:#ffd06b;--shell-ink:#102b36;--shell-muted:#a9c0c8}.battle-reference .game-overlay :is(.game-icon,#battle-action-rail button,.game-corner-end button,.map-camera-button,.hud-chip,.game-notice),.battle-reference #game-focus-drawer,.battle-reference #game-focus-drawer .card-icon>svg{background:var(--shell-bg);border-color:var(--shell-line)}.battle-reference #game-focus-drawer .card-icon.primary>svg,.battle-reference .game-folded #open-required-action,.battle-reference #battle-action-rail :is(#start-combat-button,#end-turn-button){background:var(--shell-gold);border-color:var(--shell-gold);color:var(--shell-ink)}.battle-reference #placement-pool{color:var(--text);border-color:var(--shell-line)}.battle-reference .game-notice{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;width:min(360px,100%);max-width:100%;padding:10px 16px}.battle-reference .game-notice-title{font:700 16px/1.3 Inter,system-ui,sans-serif}.battle-reference .game-notice-detail{color:var(--shell-muted);font:500 14px/1.35 Inter,system-ui,sans-serif}.battle-reference .game-folded{flex-direction:column;align-items:center;gap:8px;width:auto;min-width:min(260px,100%);padding:12px 16px}.battle-reference .game-folded .game-notice-text{font:700 15px/1.3 Inter,system-ui,sans-serif}.battle-reference #game-focus-drawer :is(#capture-amount,#friendly-move-amount){color:var(--shell-ink);border:1px solid var(--shell-gold);background:#f0f1de;border-bottom-width:3px}.battle-reference #game-focus-drawer .card-range input[type=range]{accent-color:var(--shell-gold)}.battle-reference #game-focus-drawer .card-note{color:var(--shell-muted)}.battle-reference #game-focus-drawer .card-head{align-items:flex-start;gap:8px;display:flex}.battle-reference #game-focus-drawer .card-head>.card-line{flex:1}.battle-reference #game-focus-drawer #battle-settings-button>svg{width:20px;height:20px;padding:9px}.battle-reference #game-focus-drawer .battle-settings[hidden],.battle-reference #game-focus-drawer:is([data-surface=info],[data-surface=actions]:has(.battle-controls:not(.friendly-move-controls):not([hidden]),.friendly-move-controls:not([hidden]),.victory-result:not([hidden]))) #close-game-drawer{display:none}.battle-reference #game-focus-drawer[data-surface=info]{padding:12px 16px}.battle-reference #game-focus-drawer[data-surface=info] .game-info-line{margin:0}.battle-reference #game-focus-drawer[data-surface=info] .phase-explanation{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.battle-reference #game-focus-drawer .battle-controls[data-pending-capture=true]>.card-head{display:none}.battle-reference .game-overlay .game-folded #open-required-action{background:var(--shell-gold)!important;border-color:var(--shell-gold)!important;color:var(--shell-ink)!important}@media (orientation:portrait){.battle-reference .game-side>.game-folded{margin:auto auto 0}}.battle-reference .game-overlay #active-seat-notice{pointer-events:auto;touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:22px;flex-flow:wrap;align-items:center;gap:0 4px;width:auto;max-width:min(420px,100%);min-height:44px;padding:0 0 0 18px}.battle-reference #active-seat-notice .game-notice-title{flex:1;padding:10px 0;font:700 15px/1.25 Inter,system-ui,sans-serif}.battle-reference #active-seat-notice>button{width:44px;height:44px;min-height:44px;box-shadow:none;color:var(--shell-muted);background:0 0;border:0}.battle-reference #active-seat-notice>button svg{width:18px;height:18px}.battle-reference #active-seat-notice .game-notice-detail{flex-basis:100%;padding:0 18px 10px 0}.battle-reference #active-seat-notice[data-open=true]{border-radius:16px}.battle-reference #active-seat-notice[data-fading=true]{animation:4s linear forwards notice-fade}@keyframes notice-fade{0%,85%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){.battle-reference #active-seat-notice[data-fading=true]{animation:none}}@media (orientation:portrait){.battle-reference .game-side>#active-seat-notice{align-self:center}}.country-picker{gap:10px;font-size:16px;display:grid}.country-filters{gap:8px;display:flex}.country-filter{border:1px solid var(--shell-line,#517580);min-height:40px;color:inherit;background:0 0;border-radius:20px;padding:0 14px;font:600 15px Inter,system-ui,sans-serif}.country-filter[aria-pressed=true]{background:var(--accent,#ffd06b);border-color:var(--accent,#ffd06b);color:#102b36}.country-filter:disabled{opacity:.45}.country-group{gap:4px;display:grid}.country-island{color:var(--shell-muted,#a9c0c8);margin:4px 0 0;font:700 14px Inter,system-ui,sans-serif}.country-bonus{font-weight:600}.country-list,.country-neighbours{gap:4px;margin:0;padding:0;list-style:none;display:grid}.country-item{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;display:grid}.country-row{min-height:44px;color:inherit;text-align:left;background:#102b3699;border:1px solid #0000;border-radius:10px;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:0 12px;font:600 16px Inter,system-ui,sans-serif;display:grid}.country-row:not(:disabled):hover,.country-row:focus-visible{border-color:var(--accent,#ffd06b)}.country-row:disabled{opacity:.6}.country-row-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.country-row-count{font-variant-numeric:tabular-nums;font-weight:700}.country-row-centre{color:#f2d69a}.country-chip{display:block}.country-inspect{width:44px;height:44px;min-height:44px}.country-inspected{align-items:center;gap:10px;margin:0;font:700 18px Inter,system-ui,sans-serif;display:flex}.country-facts{grid-template-columns:auto minmax(0,1fr);gap:4px 14px;margin:0;display:grid}.country-facts dt{color:var(--shell-muted,#a9c0c8)}.country-facts dd{margin:0;font-weight:600}.country-neighbours-title{color:var(--shell-muted,#a9c0c8);margin:4px 0 0;font:700 14px Inter,system-ui,sans-serif}.country-neighbour{width:100%;min-height:40px;color:inherit;text-align:left;background:#102b3699;border:1px solid #0000;border-radius:10px;align-items:center;gap:8px;padding:0 10px;font:600 15px Inter,system-ui,sans-serif;display:flex}.country-neighbour:hover,.country-neighbour:focus-visible{border-color:var(--accent,#ffd06b)}.country-by-sea{color:var(--shell-muted,#a9c0c8);font-weight:500}#game-focus-drawer[data-surface=countries]{max-height:calc(var(--avail-h) - 2 * var(--edge))}@media (max-height:500px){.battle-reference #game-focus-drawer .own-card-hand{gap:4px;margin-bottom:6px}.battle-reference #game-focus-drawer .own-card{flex-direction:row;align-items:center;gap:4px;padding:2px 6px;font-size:12px;display:flex}.battle-reference #game-focus-drawer .card-choice-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.battle-reference #game-focus-drawer .card-choice-controls>:not(button){grid-column:1/-1;margin:0}.battle-reference #game-focus-drawer .card-choice-controls button{min-height:44px;padding:2px 6px;font-size:13px}.battle-reference #game-focus-drawer .card-choice-controls>strong{font-size:12px}.battle-reference #game-focus-drawer .card-interactions[data-phase=discard] .own-card{display:none}}.game-event.since{border-left:3px solid var(--accent,#f2c14e);padding-left:8px}.game-event-since{margin:0 0 8px;font-size:13px}.battle-reference #active-seat-notice #fast-forward-button{color:var(--accent)}.game-help{border:1px solid var(--line);color:#f1f5f9;background:#12202e;border-radius:12px;width:min(720px,92vw);max-height:86vh;padding:0 0 16px;overflow:auto}.game-help[aria-labelledby=game-help-title]{zoom:1}.game-help::backdrop{background:#000a}.game-help-head{z-index:1;border-bottom:1px solid var(--line);background:#1a2d3d;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex;position:sticky;top:0}.game-help-head h2{margin:0;font-size:20px}.game-help>:is(section,h3,ul){margin-inline:16px}.game-help section h3,.game-help>h3{margin:14px 0 4px;font-size:15px}.game-help section p{margin:0;font-size:14px;line-height:1.4}.game-help-icons{gap:6px;padding:0;list-style:none;display:grid}.game-help-icons li{grid-template-columns:28px minmax(90px,auto) 1fr;align-items:center;gap:8px;font-size:14px;display:grid}.game-help-icons li svg{width:22px;height:22px}@media (max-width:480px){.game-help-icons li{grid-template-columns:28px 1fr}.game-help-icons li span{color:var(--muted);grid-column:2}}.game-overlay :is(.map-camera-controls,.game-corner-camera,#battle-action-rail,.game-corner)>button{flex:none}@media (max-height:239px){.game-overlay .map-camera-controls{flex-direction:row}#battle-action-rail{flex-direction:row;max-height:none;display:flex}#battle-action-rail>.buttons{display:contents}.game-overlay:has(#game-focus-drawer:not([hidden])) .game-side{z-index:1;grid-area:2/1/auto/-1}.game-overlay:has(#game-focus-drawer:not([hidden])) .game-notice-slot{display:none}.game-overlay #game-focus-drawer{max-height:100%}}.battle-reference{--notice-line:calc(var(--edge) + var(--target) + 2 * var(--gap) + 44px)}.battle-reference #game-focus-drawer{--card-line:calc(var(--card-top,calc(var(--notice-line) - var(--gap))) + var(--gap));z-index:2;top:auto;bottom:var(--edge);left:auto;right:calc(var(--edge) + var(--target) + var(--gap));width:min(380px, calc(100% - 2 * (var(--edge) + var(--target) + var(--gap))));max-height:calc(100% - var(--card-line) - var(--edge));margin:0;position:absolute}.battle-reference #game-focus-drawer:is([data-corner=start],[data-corner=top-start]){right:auto;left:calc(var(--edge) + var(--target) + var(--gap))}.battle-reference #game-focus-drawer:is([data-corner=top-end],[data-corner=top-start]){bottom:auto;top:var(--card-line)}.battle-reference #game-focus-drawer[data-placement=center]{width:min(400px, calc(100% - 2 * var(--edge)));inset:50% auto auto 50%;translate:-50% -50%}.battle-reference .game-overlay .game-side{grid-column:2/-2}.battle-reference .game-side>.game-folded{margin:auto 0 0 auto}@media (orientation:portrait){.battle-reference #game-focus-drawer{bottom:calc(var(--edge) + var(--target) + var(--gap));right:var(--edge);width:min(380px, calc(100% - 2 * var(--edge)));max-height:min(calc(var(--avail-h) * .6), calc(100% - var(--card-line) - var(--edge) - var(--target) - var(--gap)))}.battle-reference #game-focus-drawer:is([data-corner=start],[data-corner=top-start]){left:var(--edge);right:auto}.battle-reference .game-overlay .game-side{grid-column:1/-1}.battle-reference .game-side>.game-folded{margin:auto auto 0}}@media (max-height:239px){.battle-reference #game-focus-drawer,.battle-reference #game-focus-drawer[data-corner]{top:calc(var(--edge) + var(--target) + var(--gap));bottom:var(--edge);left:var(--edge);right:var(--edge);width:auto;max-height:none;translate:none}}.battle-reference #game-focus-drawer .game-menu-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.battle-reference #game-focus-drawer .game-menu-actions>:is(#game-help-button,#new-game-button){min-height:44px;padding:0 14px;font-size:15px}.battle-reference #game-focus-drawer .game-playback select{min-height:44px}.game-history-icon{border-radius:10px;place-items:center;width:44px;height:44px;min-height:44px;padding:0;display:inline-grid}.game-history-icon svg{width:20px;height:20px}.game-event-log{touch-action:pan-y}.game-event-log-close{place-items:center;width:44px;height:44px;min-height:44px;padding:0;display:grid}.country-filter,.country-neighbour{min-height:44px}.battle-reference #game-focus-drawer .private-card-reward{margin:0 0 8px;font:600 16px/1.3 Inter,system-ui,sans-serif}.battle-reference #game-focus-drawer .card-choice-controls{flex-wrap:wrap;gap:8px;display:flex}.battle-reference #game-focus-drawer .card-choice-controls button{min-width:44px;min-height:44px;padding:0 14px;font-size:15px}.battle-reference #game-focus-drawer .card-choice-controls>p{flex-basis:100%}.battle-reference #game-focus-drawer .friendly-move-controls :is(button,input)[hidden]{display:none}.scoreboard .scoreboard-body{margin-inline:16px}.scoreboard .scoreboard-body>.card-note{color:var(--muted);margin:12px 0 8px;font-size:14px}.scoreboard-totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 12px;display:grid}.scoreboard-totals>div{border:1px solid var(--line);text-align:center;border-radius:8px;padding:8px 4px}.scoreboard-totals dt{color:var(--muted);font-size:12px}.scoreboard-totals dd{font-variant-numeric:tabular-nums;margin:2px 0 0;font:700 18px/1.2 Inter,system-ui,sans-serif}#scoreboard-games{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:13px}#scoreboard-games caption{text-align:left;color:var(--muted);margin-bottom:6px}#scoreboard-games :is(th,td){white-space:nowrap;border-bottom:1px solid var(--line);text-align:right;padding:6px 4px;font-weight:400}#scoreboard-games :is(th,td):is(:first-child,:nth-child(2)){text-align:left}#scoreboard-games tr[data-result=won] th{color:#86efac;font-weight:600}.score-field-label{display:none}#scoreboard-rules{width:100%;min-width:0;min-height:48px;margin-block:12px;padding:8px;font:18px/1.3 Inter,system-ui,sans-serif}@media (max-width:600px){#scoreboard-games{font-size:16px;display:block}#scoreboard-games caption{white-space:normal;overflow-wrap:anywhere;display:block}#scoreboard-games thead{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}#scoreboard-games tbody{gap:12px;display:grid}#scoreboard-games tbody tr{border:1px solid var(--line);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px;display:grid}#scoreboard-games tbody :is(th,td){text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;min-width:0;padding:0;display:block}#scoreboard-games [data-score-field=rules],#scoreboard-games [data-score-field=seed]{grid-column:1/-1}#scoreboard-games .score-field-label{color:var(--muted);font-size:12px;font-weight:400;display:block}}.scoreboard .help-actions,.scoreboard-confirm{background:#12202e;margin-top:12px}.scoreboard-confirm>p{margin:0;font-weight:600}.scoreboard :is(.help-actions button),#close-scoreboard{min-height:44px;padding:0 14px}@media (max-width:480px){.scoreboard-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}.result-totals{font-variant-numeric:tabular-nums}#give-up-dialog{width:min(400px,100vw - 32px);padding:20px}#give-up-dialog h2{margin:0 0 8px;font-size:20px}#give-up-dialog>p{margin:0 0 8px;font-size:14px;line-height:1.4}#give-up-dialog>.result-totals{margin-bottom:12px}#give-up-dialog .help-actions{background:0 0;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;padding:0;display:flex;position:static}#give-up-dialog .help-actions button{min-width:44px;min-height:44px;padding:0 16px;font-size:15px}.battle-reference #game-focus-drawer{touch-action:none}.battle-reference #game-focus-drawer .game-drawer-content{touch-action:pan-y;grid-area:1/1}.battle-reference #game-focus-drawer :is(#fold-card,#close-game-drawer){grid-area:1/2}.battle-reference #game-focus-drawer #fold-card{width:44px;height:44px;min-height:44px;box-shadow:none}.card-grip{cursor:grab;touch-action:none;height:12px;position:absolute;top:0;left:0;right:56px}.card-grip:after{content:"";background:var(--shell-line,#335863);border-radius:2px;width:36px;height:4px;margin-left:-18px;position:absolute;top:4px;left:50%}.battle-reference #game-focus-drawer[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}.battle-reference #game-focus-drawer[data-folded=true]{width:auto;max-width:calc(100% - 2 * var(--edge));padding:12px 8px 8px}.battle-reference #game-focus-drawer .card-chip{text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--shell-gold,#ffd06b);background:var(--shell-bg,#173d47);max-width:280px;min-height:44px;color:var(--text);border-radius:22px;grid-area:1/1/auto/-1;padding:0 16px;font:600 15px/1.2 Inter,system-ui,sans-serif;overflow:hidden}.game-speed-control{display:flex}.battle-reference .game-overlay #game-speed{height:var(--target);min-height:var(--target);width:104px;color:var(--text);background:var(--shell-bg,#173d47);border:1px solid var(--shell-line,#335863);pointer-events:auto;border-radius:12px;padding:0 8px;font:600 15px Inter,system-ui,sans-serif;box-shadow:0 2px 10px #0006}.battle-reference .game-overlay #fast-forward-button{color:var(--shell-gold,#ffd06b)}.battle-reference .game-overlay #fast-forward-button[aria-pressed=true]{background:var(--shell-gold,#ffd06b);color:var(--shell-ink,#102b36)}.battle-reference .game-overlay[data-quiet=true] :is(#game-status,.map-camera-controls,#battle-action-rail,#game-folded-choice){visibility:hidden}.battle-reference .game-overlay .game-corner-end{width:var(--target);justify-content:flex-end}@media (max-width:479px){.battle-reference .game-pool-slot{margin-left:calc(var(--target) + var(--gap));justify-self:start}.battle-reference .game-overlay #game-speed{width:86px;padding:0 4px;font-size:14px}}.battle-reference .game-overlay #active-seat-notice:not(:has(button)){padding-right:18px}.province-action{z-index:55;border-radius:12px;width:44px;min-width:44px;height:44px;padding:0;position:fixed;box-shadow:0 2px 8px #000a}.province-action[hidden]{display:none}.province-action:disabled{opacity:.55}.province-action#province-action-button[data-both=true]{place-items:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;font-size:0;display:grid}.province-action#province-action-button[data-both=true][hidden]{display:none}.province-action#province-action-button[data-both=true] svg{width:26px;height:26px}.province-action#province-move-button{color:#05212c;background:#5ce6e8;border:2px solid #c4ffff;place-items:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;display:grid}.province-action#province-move-button[hidden]{display:none}.province-action#province-move-button svg{width:26px;height:26px}.province-action[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:3px}.hand-button{position:relative}.hand-button .hand-count{background:var(--accent);min-width:20px;height:20px;color:var(--accent-ink);text-align:center;border-radius:10px;padding:0 5px;font-size:13px;font-weight:700;line-height:20px;position:absolute;top:-4px;right:-4px}.hand-dialog{z-index:70;inset:auto;top:calc(env(safe-area-inset-top,0px) + 76px);width:min(360px,92vw);max-height:calc(100vh - 160px);margin:0;position:fixed;left:50%;translate:-50%;box-shadow:0 8px 24px #000b}.hand-body{padding:12px 16px 4px}.hand-plays{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.hand-plays button{min-height:44px}.private-card-reward+.hand-list{margin-top:4px}.hand-grip{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.card-tiles{flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:0;list-style:none;display:flex}.card-tile{color:#1d2a35;background:#f4ead2;border:2px solid #c9b88f;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:64px;height:88px;display:flex;position:relative;box-shadow:0 2px 4px #0006}.card-tile[data-new=true]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent)}.card-tile-symbol{font-size:30px;font-weight:800;line-height:1}.card-tile[data-kind=Lantern] .card-tile-symbol{font-size:26px}.card-tile[data-kind=Wild] .card-tile-symbol{color:#b8860b}.card-tile-bomb{fill:#1d2a35;stroke:#1d2a35;stroke-width:2px;stroke-linecap:round}.card-tile-bomb path{fill:none}.card-tile-bomb .card-tile-cross{stroke:#c0392b;stroke-width:3.5px}.card-tile-name{letter-spacing:.02em;font-size:11px;font-weight:700}.card-tile-new{background:var(--accent);color:var(--accent-ink);border-radius:8px;padding:0 5px;font-size:10px;font-weight:800;line-height:16px;position:absolute;top:-8px;right:-6px}.next-game-settings>p{margin:12px 16px}.next-game-settings .next-game-setting{justify-content:space-between;align-items:center;gap:1rem;margin:12px 16px;display:flex}.next-game-settings :is(button,select){min-height:44px}.next-game-settings .next-game-setting select{min-width:5rem}.game-primary-buttons{grid-template-columns:repeat(3,max-content);display:grid}.game-primary-buttons>.primary-command{width:var(--target);min-width:44px;height:var(--target);min-height:44px;color:var(--text);background:var(--surface);border:1px solid #3d5a6d;border-radius:12px;place-items:center;margin:0;padding:0;font-size:0;display:grid;box-shadow:0 2px 10px #0006}.game-primary-buttons>.hand-button{grid-area:1/4}@media (max-width:600px){.game-overlay[data-primary-commands=true] .game-pool-slot{padding-top:calc(var(--target) + var(--gap))}}.game-corner-end[data-stack-speed=true]{padding-bottom:calc(var(--target) + var(--gap));position:relative}.game-corner-end[data-stack-speed=true]>.game-speed-control{right:0;top:calc(var(--target) + var(--gap));position:absolute}.game-settings>.next-game-settings>p{margin:12px 0}.game-settings>.next-game-settings .next-game-setting{flex-direction:column;align-items:stretch;gap:6px;margin:12px 0}.game-settings>.next-game-settings select{width:100%}.game-settings>.next-game-settings :is(label,select){font:400 18px/1.4 Inter,system-ui,sans-serif}.game-settings>.next-game-settings select{min-height:48px;padding:8px 10px}.battle-reference #game-focus-drawer .game-settings .game-identity{font-size:16px}#world-event-card{right:var(--edge);bottom:var(--edge);z-index:8;width:min(360px,calc(100% - 2 * var(--edge)));pointer-events:auto;border:1px solid var(--line);background:var(--surface);max-height:calc(100% - 110px);color:var(--text);border-radius:12px;padding:14px;font:16px/1.4 Inter,system-ui,sans-serif;position:absolute;overflow:auto;box-shadow:0 8px 24px #0008}#world-event-card>header{justify-content:space-between;align-items:center;gap:12px;display:flex}#world-event-card h2{margin:0;font-size:20px}#world-event-card button{min-height:44px}#world-event-card .world-event-context{color:var(--muted);margin:8px 0;font-size:14px}.world-event-changes{gap:10px;margin:12px 0;padding:0;list-style:none;display:grid}.world-event-changes li{gap:2px;display:grid}#acknowledge-world-event{width:100%}#world-event-card[data-folded=true]{width:auto;box-shadow:none;background:0 0;border:0;padding:0}.world-event-mark{fill:var(--accent);stroke:#102532;stroke-width:1.5px}:is(#geographic-map,#reference-map) .country.world-event-affected .ring{opacity:1;stroke:var(--accent);stroke-width:2px;stroke-dasharray:5 3}#turn-tracker{top:calc(var(--edge) + var(--target) + var(--gap));left:var(--edge);border:1px solid var(--line);width:184px;color:var(--text);pointer-events:auto;background:#102634f2;border-radius:10px;padding:8px;position:absolute;box-shadow:0 3px 12px #0005}#turn-guidance-title{font-size:15px}#turn-instruction{min-height:19px;color:var(--accent);font-size:15px}.turn-row{font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:4px;grid-template-columns:12px 14px minmax(0,1fr) 23px 13px 10px 14px;align-items:center;gap:3px;min-height:23px;padding:1px 2px;font:600 13px/1.2 Inter,system-ui,sans-serif;display:grid}.turn-row[data-current=true]{border-color:var(--seat);background:#ffffff13}.turn-row[data-eliminated=true]{opacity:.4}.turn-colour{color:var(--seat)}.turn-pointer{color:#fff;font-size:16px}#turn-tracker svg{width:13px;height:13px;display:block}.turn-action{opacity:.85}.guided-command{outline:2px solid var(--accent);outline-offset:2px}:is(#geographic-map,#reference-map) .country.computer-reinforce .ring,:is(#geographic-map,#reference-map) .country.computer-moving .ring{opacity:1;stroke:#8fe68b;stroke-width:3px}:is(#geographic-map,#reference-map) .country.computer-attacker .ring,:is(#geographic-map,#reference-map) .country.computer-defender .ring{opacity:1;stroke:#ffd574;stroke-width:3px}.computer-attacker .cell,.computer-defender .cell{animation:.3s ease-in-out infinite alternate computer-clash}:is(#geographic-map,#reference-map) .country.computer-hit .count{fill:#ffe491}:is(#geographic-map,#reference-map) .country.computer-shield .ring{opacity:1;stroke:#8bd4ff;stroke-width:4px}.computer-transfer-trail{stroke:#ffe491;stroke-width:2px;opacity:.85}.computer-troop{fill:#ffe491}.computer-action-layer,.world-event-mark{pointer-events:none}@keyframes computer-clash{0%{filter:brightness()}to{filter:brightness(1.35)}}@media (prefers-reduced-motion:reduce){.computer-attacker .cell,.computer-defender .cell{animation:none}}.game-overlay:has(#turn-tracker) .game-pool-slot{top:calc(var(--edge) + var(--target) + var(--gap));right:var(--edge);padding-top:0;position:absolute;left:auto}#geographic-setup.game-entry{padding:calc(20px + var(--safe-top)) calc(20px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(20px + var(--safe-left));background:#102a36;justify-content:flex-start;align-items:flex-start;display:flex;position:fixed;inset:0;overflow:hidden}#game-launcher{flex-direction:column;width:min(720px,100%);min-height:0;max-height:100%;margin:0;padding:18px;display:flex}#game-launcher>:not(.game-settings){flex-shrink:0}#game-launcher>.game-settings{overscroll-behavior:contain;min-height:0;padding-right:4px;overflow-y:auto}#game-launcher .next-game-settings{gap:12px;display:grid}#game-launcher .next-game-setting{flex-direction:column;align-items:stretch;gap:4px;min-width:0;margin:0;display:flex}#game-launcher .next-game-setting select{width:100%;min-width:0;min-height:44px}#game-launcher .next-game-settings>:is(.card-note,.match-error){grid-column:1/-1;margin:0}@media (min-width:600px){#game-launcher .next-game-settings{grid-template-columns:repeat(2,minmax(0,1fr))}}.game-launcher-head{justify-content:space-between;align-items:center;gap:16px;display:flex}.game-launcher-head h1{margin:0}#game-launcher h2{margin:16px 0 8px;font-size:20px}.game-launcher-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.game-launcher-actions button{min-height:48px;padding:10px 16px;font-size:18px}#start-game{width:100%}#game-launcher [hidden]{display:none!important}#game-launcher .match-error:empty{display:none}@media (max-height:400px){#game-launcher{overscroll-behavior:contain;overflow-y:auto}#game-launcher>.game-settings{flex-shrink:0;overflow:visible}}.game-primary-buttons>.primary-command,#battle-action-rail button,#province-action-button,#game-launcher .launcher-help{letter-spacing:.2px;text-transform:uppercase;color:#fff;text-shadow:0 1px 1px #0008;background:#a51e2c;border:3px solid #530a16;border-color:#ff969b #530a16 #530a16 #ff969b;border-radius:3px;min-height:44px;padding:0 9px;font-family:Impact,Arial Narrow,system-ui,sans-serif;font-size:18px;font-weight:900;line-height:1;box-shadow:2px 3px #071b25,inset 0 1px #fff5}.game-primary-buttons>.primary-command{width:auto;height:44px;font-size:16px}.game-primary-buttons>#open-game-menu{color:#05212c;text-shadow:none;background:#5ce6e8;border-color:#c4ffff #167075 #167075 #c4ffff}.game-primary-buttons>#game-help-button{color:#1b2227;text-shadow:none;background:#fff8d9;border-color:#fff #777363 #777363 #fff}#battle-action-rail button{width:auto;min-width:80px;font-size:18px}#battle-action-rail button svg{display:none}#battle-action-rail #start-friendly-move-button{color:#05212c;text-shadow:none;background:#5ce6e8;border-color:#c4ffff #167075 #167075 #c4ffff}#battle-action-rail #end-turn-button{color:#1b2227;text-shadow:none;background:#fff8d9;border-color:#fff #777363 #777363 #fff}#province-action-button{width:88px;min-width:88px;height:44px;padding:0;font-size:20px}#province-action-button[data-kind=move]{color:#05212c;text-shadow:none;background:#5ce6e8;border-color:#c4ffff #167075 #167075 #c4ffff}#province-action-button[aria-pressed=true]{outline-offset:2px;outline:3px solid #fff}.game-primary-buttons>.primary-command:active,#province-action-button:active{box-shadow:inset 1px 2px 3px #0008}@media (max-width:600px){.game-primary-buttons{gap:4px}.game-overlay[data-primary-commands=true] .game-corner-end{top:calc(var(--target) + var(--gap));position:relative}.game-overlay[data-primary-commands=true] #turn-tracker{top:calc(var(--edge) + 2 * (var(--target) + var(--gap)))}.game-overlay[data-primary-commands=true]:has(#turn-tracker) .game-pool-slot{top:calc(var(--edge) + 2 * (var(--target) + var(--gap)))}}#battle-action-rail{grid-auto-columns:max-content}.battle-reference .game-overlay .game-primary-buttons>#open-game-menu{color:#05212c;background:#5ce6e8;border-color:#c4ffff #167075 #167075 #c4ffff}.battle-reference .game-overlay .game-primary-buttons>#game-help-button{color:#1b2227;background:#fff8d9;border-color:#fff #777363 #777363 #fff}.game-primary-buttons>.primary-command,#battle-action-rail button,#province-action-button,#game-launcher .launcher-help{letter-spacing:1.4px;font-family:Impact,Arial Black,system-ui,sans-serif;font-size:22px;font-weight:900;line-height:1.15}.game-primary-buttons>.primary-command{height:52px;min-height:52px;padding:0 10px}.game-overlay[data-primary-commands=true]{--primary-height:52px}#turn-tracker{width:248px;padding:10px}.turn-guidance{min-height:56px;margin-bottom:6px}#turn-guidance-title{font-size:22px;font-weight:800}#turn-instruction{min-height:26px;font-size:20px;line-height:1.3}.turn-row{grid-template-columns:18px 18px minmax(0,1fr) 30px 18px 18px 18px;gap:4px;min-height:32px;font-size:18px;font-weight:700}.turn-pointer{font-size:22px}#turn-tracker svg{width:18px;height:18px}.game-settings>.next-game-settings :is(label,select),#game-launcher .game-settings>.next-game-settings :is(label,select){letter-spacing:1.2px;text-transform:uppercase;font-family:Impact,Arial Black,system-ui,sans-serif;font-size:22px;font-weight:700;line-height:1.4}.game-settings>.next-game-settings select{min-height:54px;font-size:24px}.battle-reference #game-focus-drawer .game-settings .game-identity{letter-spacing:1px;text-transform:uppercase;font:700 20px/1.3 Impact,Arial Black,system-ui,sans-serif}@media (max-width:479px){.game-primary-buttons{grid-template-columns:repeat(2,max-content);gap:8px}.game-primary-buttons>.primary-command{font-size:20px}.game-primary-buttons>.hand-button{grid-area:2/2;justify-self:start}.game-overlay[data-primary-commands=true]{--primary-height:112px}.game-overlay[data-primary-commands=true] .game-corner-end{top:calc(var(--primary-height) + var(--gap));position:relative}.game-overlay[data-primary-commands=true] #turn-tracker{top:calc(var(--edge) + var(--primary-height) + var(--target) + 2 * var(--gap))}.game-overlay[data-primary-commands=true]:has(#turn-tracker) .game-pool-slot{top:calc(var(--edge) + var(--primary-height) + var(--gap));right:auto;left:var(--edge);margin-left:0}}#province-action-button{width:120px;min-width:120px}.game-overlay:has(#turn-tracker) .game-pool-slot{grid-area:auto}@media (max-width:479px){.game-primary-buttons>#game-help-button{grid-area:1/2}.game-primary-buttons>#open-game-menu{grid-area:2/1}}@media (orientation:landscape) and (min-height:240px){.battle-reference #game-focus-drawer{right:calc(var(--edge) + max(var(--target), var(--command-width,0px)) + var(--gap))}.battle-reference #game-focus-drawer:is([data-corner=start],[data-corner=top-start]),.battle-reference #game-focus-drawer[data-placement=center]{right:auto}}@media (orientation:portrait){.battle-reference #game-focus-drawer{bottom:calc(var(--edge) + max(var(--target), var(--command-height,0px)) + var(--gap))}.battle-reference #game-focus-drawer:is([data-corner=top-end],[data-corner=top-start],[data-placement=center]){bottom:auto}}button.game-text-command{text-align:center;text-shadow:0 1px 1px #0008;justify-content:center;align-items:center;gap:6px;max-width:100%;letter-spacing:1.2px!important;text-transform:uppercase!important;color:#fff!important;background:#a51e2c!important;border:3px solid #530a16!important;border-color:#ff969b #530a16 #530a16 #ff969b!important;border-radius:3px!important;flex-direction:row!important;width:auto!important;min-width:max-content!important;min-height:48px!important;padding:8px 10px!important;font:900 20px/1.2 Impact,Arial Black,system-ui,sans-serif!important;display:inline-flex!important;box-shadow:2px 3px #071b25,inset 0 1px #fff5!important}button.game-text-command svg,button.game-text-command img{display:none!important}.game-text-command .card-icon-caption{letter-spacing:inherit;font:inherit!important}button.game-text-command:focus-visible{outline-offset:3px;outline:3px solid #fff!important}button.game-text-command:disabled{opacity:.45}#province-action-button.game-text-command{min-width:120px!important;font-size:22px!important}.game-primary-buttons>.game-text-command{height:52px;padding:0 8px!important}#start-game.game-text-command{width:100%!important}.game-overlay[data-primary-commands=true]>.game-corner-end{display:none!important}.game-overlay[data-primary-commands=true] .map-camera-controls{flex-direction:column-reverse;align-items:flex-start}.game-overlay[data-primary-commands=true] #battle-action-rail{grid-template-rows:none;grid-template-columns:max-content;grid-auto-flow:row}#resume-turn-button{margin-top:0;position:absolute;top:calc(100% + 8px);left:0}@media (max-height:500px) and (min-width:600px){#resume-turn-button{top:0;left:calc(100% + 8px)}}@media (min-width:480px){.game-primary-buttons>.game-text-command{font-size:22px!important}}@media (max-width:479px){.game-overlay[data-primary-commands=true] #turn-tracker{top:calc(var(--edge) + var(--primary-height) + var(--gap))}.game-overlay[data-primary-commands=true]:has(#placement-pool:not([hidden])) #turn-tracker{top:calc(var(--edge) + var(--primary-height) + var(--target) + 2 * var(--gap))}.game-overlay[data-primary-commands=true]:has(#turn-tracker) .game-pool-slot{left:auto;right:var(--edge)}}@media (max-height:500px){.game-overlay[data-primary-commands=true] .map-camera-controls{flex-direction:row;align-items:flex-end}.game-overlay[data-primary-commands=true] .turn-row{min-height:28px}.game-overlay[data-primary-commands=true] .turn-guidance{min-height:52px}}.game-overlay[data-primary-commands=true] :is(#game-pause-button,#fast-forward-button,.game-speed-control){display:none!important}.game-overlay[data-primary-commands=true]>.game-corner-end:has(#close-result-card:not([hidden])){position:relative;top:0;display:flex!important}button.game-text-command[hidden]{display:none!important}#open-game-menu.game-text-command,#start-friendly-move-button.game-text-command,#province-move-button.game-text-command,#province-action-button.game-text-command[data-kind=move]{text-shadow:none;color:#05212c!important;background:#5ce6e8!important;border-color:#c4ffff #167075 #167075 #c4ffff!important}#game-help-button.game-text-command{text-shadow:none;color:#1b2227!important;background:#fff8d9!important;border-color:#fff #777363 #777363 #fff!important}:is(#start-game,#resume-game,#resume-turn-button,#give-up-cancel,#end-turn-button,#open-hand).game-text-command{color:#fff!important;background:#267147!important;border-color:#85daa6 #123d26 #123d26 #85daa6!important}button.game-close-command{border:1px solid var(--shell-line,#517580);background:var(--shell-bg,#173d47);color:#fff;letter-spacing:0;border-radius:8px;place-items:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;display:grid;font:400 30px/1 system-ui,sans-serif!important}button.game-close-command[hidden]{display:none!important}.game-overlay[data-primary-commands=true] .map-camera-controls{flex-direction:row}.game-overlay[data-primary-commands=true] #open-countries{font-size:0}.game-utility-command>svg{display:block}@font-face{font-family:Ubuntu;src:url(/malpaco/fonts/Ubuntu%5Bwdth,wght%5D.ttf)format("truetype");font-weight:100 900;font-display:swap}button.game-text-command{letter-spacing:.7px!important;font-family:Ubuntu,Inter,system-ui,sans-serif!important;font-weight:700!important}.game-settings>.next-game-settings :is(label,select),#game-launcher .game-settings>.next-game-settings :is(label,select),#game-launcher :is(h1,h2),#turn-tracker :is(.turn-row,#turn-guidance-title,#turn-instruction){letter-spacing:.7px;font-weight:700;font-family:Ubuntu,Inter,system-ui,sans-serif!important}button.game-help-command{letter-spacing:0;border:3px solid #777363;border-color:#fff #777363 #777363 #fff;border-radius:3px;place-items:center;min-width:48px;height:52px;min-height:48px;padding:0;display:grid;box-shadow:2px 3px #071b25;color:#17313d!important;background:#fff8d9!important;width:48px!important;font:700 32px/1 Ubuntu,system-ui,sans-serif!important}.battle-reference #game-focus-drawer .game-utility-command.primary>svg{color:#fff;background:#267147;border-color:#85daa6}.game-settings .game-identity{letter-spacing:.7px;font-weight:700;font-family:Ubuntu,Inter,system-ui,sans-serif!important}#game-launcher .game-settings>.next-game-settings select{font-size:24px}.battle-reference #game-focus-drawer[data-surface=menu]{z-index:9;grid-template-rows:auto minmax(0,1fr);padding:12px 8px 8px}.battle-reference #game-focus-drawer[data-surface=menu] .game-drawer-content{grid-area:2/1/auto/-1;height:auto}.game-settings>.next-game-settings select#next-game-combat-rules{letter-spacing:0;max-width:100%;padding-inline:3px;font-size:22px}@media (max-height:500px) and (min-width:600px){.battle-reference #game-focus-drawer[data-surface=menu]{grid-template-rows:minmax(0,1fr)}.battle-reference #game-focus-drawer[data-surface=menu] .game-drawer-content{grid-area:1/1;height:100%}}.game-overlay[data-primary-commands=true] #acknowledge-world-event,.game-overlay[data-primary-commands=true] .card-interactions[data-phase=reward] .card-choice-controls button{display:none!important}.game-overlay[data-primary-commands=true] #placement-pool{color:#09232e;letter-spacing:.5px;border-color:#c5e8fb;font:700 20px/1.2 Ubuntu,Inter,system-ui,sans-serif;background:var(--pool-colour,#279fd8)!important}.card-tile-name{text-align:center}.private-card-reward,.battle-reference #game-focus-drawer .private-card-reward{font:700 22px/1.3 Ubuntu,Inter,system-ui,sans-serif}.game-overlay[data-primary-commands=true]:has(#turn-tracker) .game-pool-slot{grid-area:auto}button.game-text-command[data-card-set]:not([data-card-set=Raid]),.hand-plays button.game-text-command:not([data-set=Raid]){background:#267147!important;border-color:#85daa6 #123d26 #123d26 #85daa6!important}#geographic-map .lane{stroke:#bdd7ce;stroke-width:3px;vector-effect:non-scaling-stroke}#geographic-map .lane.active{stroke:#fff8cf;stroke-width:4px}#geographic-map .lane-port-stem{stroke:#f4efcf;stroke-width:3px;vector-effect:non-scaling-stroke;pointer-events:none}#geographic-map .lane-port{fill:#f4efcf;stroke:#17313d;stroke-width:1.5px;vector-effect:non-scaling-stroke;pointer-events:none}#geographic-map .lane-ports.active .lane-port{fill:#fff;stroke:#ffd06b;stroke-width:2px}@media (min-width:1024px) and (min-height:650px){#turn-tracker{width:320px;padding:16px}#turn-guidance-title{font-size:28px}#turn-instruction{min-height:32px;font-size:24px}.turn-row{grid-template-columns:24px 24px minmax(0,1fr) 34px 24px 24px 24px;gap:6px;min-height:44px;font-size:22px}.turn-pointer{font-size:28px}#turn-tracker svg{width:24px;height:24px}}.battle-reference #game-focus-drawer .capture-adjust{grid-template-columns:minmax(0,1fr) 48px;align-items:stretch;gap:12px;display:grid}.battle-reference #game-focus-drawer .amount-adjust{grid-template-rows:48px 48px;grid-template-columns:48px 56px 48px;justify-content:start;gap:6px;display:grid}.battle-reference #game-focus-drawer .amount-adjust>input{grid-area:1/2/3;height:100%}.battle-reference #game-focus-drawer .amount-adjust>:nth-child(2){grid-area:1/1}.battle-reference #game-focus-drawer .amount-adjust>:nth-child(4){grid-area:1/3}.battle-reference #game-focus-drawer .amount-adjust>:first-child{grid-area:2/1}.battle-reference #game-focus-drawer .amount-adjust>:last-child{grid-area:2/3}.battle-reference #game-focus-drawer .capture-adjust :is(#confirm-capture-button,#confirm-friendly-move-button){grid-area:1/2;justify-content:center;width:48px;height:100%;margin:0}.battle-reference #game-focus-drawer .transfer-cancel{margin-top:8px}.battle-reference #game-focus-drawer .capture-adjust[hidden]{display:none}.battle-reference #game-focus-drawer:has(.capture-adjust:not([hidden])){min-width:272px}.battle-reference #game-focus-drawer:has(.capture-adjust:not([hidden])) .game-drawer-content{grid-area:2/1/auto/-1}@media (max-height:260px){.battle-reference #game-focus-drawer:has(.capture-adjust:not([hidden])){grid-template-rows:minmax(0,1fr);padding:12px 8px 8px}.battle-reference #game-focus-drawer:has(.capture-adjust:not([hidden])) .game-drawer-content{grid-area:1/1;height:auto}.battle-reference #game-focus-drawer .capture-adjust{grid-template-columns:minmax(0,1fr) 44px;gap:6px}.battle-reference #game-focus-drawer .amount-adjust{grid-template-rows:44px 44px;grid-template-columns:44px 48px 44px;gap:4px}.battle-reference #game-focus-drawer .amount-adjust>input[type=number]{width:48px;max-width:48px}.battle-reference #game-focus-drawer .amount-limit{width:44px;min-width:44px;height:44px;min-height:44px}.battle-reference #game-focus-drawer .capture-adjust .card-icon,.battle-reference #game-focus-drawer .transfer-cancel .card-icon{min-width:44px;min-height:44px}.battle-reference #game-focus-drawer .capture-adjust .card-icon>svg,.battle-reference #game-focus-drawer .transfer-cancel .card-icon>svg{padding:9px}.battle-reference #game-focus-drawer .capture-adjust :is(#confirm-capture-button,#confirm-friendly-move-button){width:44px}.battle-reference #game-focus-drawer .transfer-cancel{margin-top:4px}}.battle-reference #game-focus-drawer:not([data-folded=true]):has(.victory-result:not([hidden])){width:min(560px, calc(100% - 2 * var(--edge)));padding:28px 24px 30px 28px}.battle-reference #game-focus-drawer .victory-result .result-title{margin:4px 0 12px;font-size:clamp(30px,3.2vw,40px)}.battle-reference #game-focus-drawer .victory-result .card-note{margin-bottom:20px;font-size:18px;line-height:1.45}.battle-reference #game-focus-drawer .victory-result .victory-choices{gap:20px}.battle-reference #game-focus-drawer .victory-result .card-icon{gap:6px;font-size:15px}.battle-reference #game-focus-drawer .victory-result .card-icon>svg{width:28px;height:28px;padding:14px}.battle-reference #game-focus-drawer .victory-result #victory-standings{margin-top:20px;font-size:16px}@media (max-width:479px),(max-height:500px){.battle-reference #game-focus-drawer:not([data-folded=true]):has(.victory-result:not([hidden])){padding:16px}.battle-reference #game-focus-drawer .victory-result .card-note{margin-bottom:14px;font-size:16px}.battle-reference #game-focus-drawer .victory-result .victory-choices{gap:12px}.battle-reference #game-focus-drawer .victory-result .card-icon>svg{padding:11px}}button.game-mobile-command{flex-shrink:0;place-items:center;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;font-size:0!important;display:inline-grid!important}button.game-mobile-command[hidden]{display:none!important}button.game-mobile-command:not(.province-action){position:relative}button.game-mobile-command>svg{display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:0 0!important;border:0!important;width:24px!important;height:24px!important;padding:0!important}button.game-mobile-command>:not(svg):not(.hand-count){display:none!important}button.game-mobile-command>.hand-count{font-size:13px}@media (max-width:900px){.game-primary-buttons{width:max-content;max-width:calc(100vw - 2 * var(--edge) - var(--target) - var(--gap));flex-wrap:nowrap;gap:8px;display:flex}.game-primary-buttons>.primary-command{height:48px;min-height:48px}.game-overlay[data-primary-commands=true]{--primary-height:48px}.battle-reference #game-focus-drawer .game-utility-command>.card-icon-caption{display:none}}#phase-announcement{z-index:12;color:#fff8df;text-align:center;pointer-events:none;background:#081a26c7;border:1px solid #bdd7ce88;border-radius:16px;width:min(760px,100% - 32px);padding:24px 28px;font-family:Ubuntu,Inter,system-ui,sans-serif;position:absolute;top:50%;left:50%;translate:-50% -50%;box-shadow:0 8px 36px #0005}#phase-announcement strong{text-wrap:balance;font-size:clamp(28px,4.5vw,60px);font-weight:700;line-height:1.15;display:block}#phase-announcement span{margin-top:12px;font-size:clamp(18px,2vw,28px);line-height:1.3;display:block}#phase-announcement[hidden]{display:none}body{--command-font:clamp(14px, min(1.7vw, 3.5vh), 22px);--map-command-font:clamp(13px, min(1.5vw, 3.5vh), 20px)}button.game-text-command{font-size:var(--command-font)!important;letter-spacing:.7px!important;min-height:44px!important;padding:6px clamp(6px,.8vw,10px)!important}.game-primary-buttons>.game-text-command{font-size:var(--command-font)!important}:is(#province-action-button,#province-move-button).game-text-command{width:auto!important;min-width:44px!important;height:44px!important;min-height:44px!important;font-size:var(--map-command-font)!important;padding:6px clamp(6px,.8vw,10px)!important;display:inline-flex!important}:is(#province-action-button,#province-move-button).game-text-command[hidden]{display:none!important}button.game-mobile-command>svg{color:inherit;stroke:currentColor;visibility:visible!important;display:block!important}.game-overlay[data-primary-commands=true] #battle-action-rail{right:var(--edge);bottom:var(--edge);width:max-content;max-width:calc(100% - 2 * var(--edge));position:absolute}@media (max-width:900px){body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons{grid-template-columns:max-content max-content 48px;grid-auto-rows:48px;display:grid}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#new-game-button{grid-area:1/1}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#open-game-menu{grid-area:1/2}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#game-help-button{grid-area:1/3}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#open-hand{grid-area:2/1}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])):has(#open-hand:not([hidden])){--primary-height:104px}}@media (max-width:379px){body[data-button-labels=text] .game-primary-buttons{max-width:calc(100vw - var(--safe-left) - var(--safe-right) - 2 * var(--edge));grid-template-columns:max-content max-content 48px;grid-auto-rows:48px;display:grid}body[data-button-labels=text] .game-primary-buttons>#new-game-button{grid-area:1/1}body[data-button-labels=text] .game-primary-buttons>#open-game-menu{grid-area:1/2}body[data-button-labels=text] .game-primary-buttons>#game-help-button{grid-area:1/3}body[data-button-labels=text] .game-primary-buttons>#open-hand{grid-area:2/1}body[data-button-labels=text] .game-overlay[data-primary-commands=true]:has(#open-hand:not([hidden])){--primary-height:104px}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons{grid-template-columns:repeat(2,max-content)}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#game-help-button{grid-area:1/2}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#open-game-menu{grid-area:2/1}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])) .game-primary-buttons>#open-hand{grid-area:2/2}body[data-button-labels=text] .game-overlay:has(#close-result-card:not([hidden])){--primary-height:104px}}@media (max-height:500px){#phase-announcement{padding:14px 20px}#phase-announcement strong{font-size:32px}#phase-announcement span{margin-top:6px;font-size:18px}}body{--map-command-font:clamp(13px, min(1.3vw, 3.2vh), 18px)}:is(#province-action-button,#province-move-button).game-text-command{letter-spacing:0!important;padding:4px 6px!important}.game-primary-buttons>.game-pool-slot{align-self:center;width:max-content;margin:0;padding:0;position:static!important;inset:auto!important}.game-primary-buttons #placement-pool{align-items:center;gap:4px;min-height:44px;padding:6px;display:flex;font-size:16px!important}.game-primary-buttons #placement-pool[hidden]{display:none}.game-primary-buttons #placement-pool>svg{width:22px;height:22px;display:none}body[data-button-labels=icons] #placement-pool>svg{display:block}body[data-button-labels=icons] #placement-pool .placement-pool-unit{display:none}@media (max-width:600px){body[data-button-labels=text] .game-primary-buttons>.game-pool-slot{grid-area:2/2/auto/-1!important}body[data-button-labels=text] .game-overlay[data-primary-commands=true]:is(:has(#open-hand:not([hidden])),:has(#placement-pool:not([hidden]))){--primary-height:104px}}.game-primary-buttons>.game-pool-slot:has(#placement-pool[hidden]){display:none}@media (min-width:901px){.game-primary-buttons>.game-pool-slot{grid-area:1/5!important}}.game-primary-buttons #placement-pool .placement-pool-unit{white-space:nowrap}@media (max-width:600px){body[data-button-labels=text] #game-status.game-primary-buttons{max-width:calc(100vw - var(--safe-left) - var(--safe-right) - 2 * var(--edge));grid-template-columns:max-content max-content 48px;grid-auto-rows:48px;display:grid}body[data-button-labels=text] #game-status>#new-game-button{grid-area:1/1}body[data-button-labels=text] #game-status>#open-game-menu{grid-area:1/2}body[data-button-labels=text] #game-status>#game-help-button{grid-area:1/3}body[data-button-labels=text] #game-status>#open-hand{grid-area:2/1}}.game-overlay[data-primary-commands=true]:has(#placement-pool:not([hidden])) #turn-tracker{top:calc(var(--edge) + var(--primary-height) + var(--gap))}#game-launcher{gap:0;padding:16px}#game-launcher .next-game-settings{gap:8px 16px}#game-launcher .game-settings>.next-game-settings :is(label,select){letter-spacing:0;text-transform:none;font-size:18px;line-height:1.25}#game-launcher .game-settings>.next-game-settings select{min-height:44px;padding:6px}#game-launcher .next-game-settings>.card-note{font-size:14px;line-height:1.35}@media (orientation:landscape) and (min-width:900px) and (min-height:401px){#game-launcher{grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-columns:minmax(200px,.7fr) minmax(0,1.5fr);column-gap:24px;width:min(1100px,100%);display:grid}#game-launcher .game-launcher-head{grid-area:1/1}#game-launcher .game-launcher-actions{grid-area:2/1;align-self:start}#game-launcher #game-launcher-settings-title{grid-area:1/2;align-self:center;margin:0 0 8px}#game-launcher>.game-settings{grid-area:2/2/4}#game-launcher>.match-error{grid-area:4/1/auto/-1}#game-launcher>#download-recovery-game{grid-area:3/1;align-self:start}}.game-overlay[data-primary-commands=true] #game-folded-choice{margin-bottom:calc(var(--command-height,44px) + var(--gap))}#turn-tracker{--tracker-width:248px;--tracker-title:22px;--tracker-instruction:20px;--tracker-row:18px;--tracker-mark:18px;width:calc(var(--tracker-width) * var(--tracker-scale,1));max-width:calc(100% - 2 * var(--edge));max-height:calc(100% - 2 * var(--edge) - var(--primary-height,48px) - var(--target) - 2 * var(--gap));flex-direction:column;gap:4px;padding:10px;display:flex}#turn-widget-content{overscroll-behavior:contain;min-height:0;overflow-y:auto}#turn-tracker .turn-widget-controls{flex-shrink:0;gap:4px;display:flex}#turn-tracker .turn-widget-control{background:var(--surface);width:44px;min-width:44px;height:44px;min-height:44px;color:var(--text);border:1px solid var(--line);border-radius:6px;flex:none;place-items:center;padding:0;display:grid}#turn-tracker .turn-widget-control>svg{width:22px;height:22px}#turn-tracker [hidden]{display:none!important}#turn-tracker[data-folded=true]{width:max-content;padding:4px}#turn-tracker #resume-turn-button{flex-shrink:0;min-width:44px;min-height:44px}#turn-tracker #turn-guidance-title{font-size:calc(var(--tracker-title) * var(--tracker-scale,1))}#turn-tracker #turn-instruction{font-size:calc(var(--tracker-instruction) * var(--tracker-scale,1))}#turn-tracker .turn-row{font-size:calc(var(--tracker-row) * var(--tracker-scale,1));grid-template-columns:calc(var(--tracker-mark) * var(--tracker-scale,1)) calc(var(--tracker-mark) * var(--tracker-scale,1)) minmax(0,1fr) calc(30px * var(--tracker-scale,1)) calc(var(--tracker-mark) * var(--tracker-scale,1)) calc(var(--tracker-mark) * var(--tracker-scale,1)) calc(var(--tracker-mark) * var(--tracker-scale,1));min-height:calc(28px * var(--tracker-scale,1));gap:3px}#turn-tracker .turn-row svg{width:calc(var(--tracker-mark) * var(--tracker-scale,1));height:calc(var(--tracker-mark) * var(--tracker-scale,1))}#turn-tracker .turn-pointer{font-size:inherit}@media (min-width:1024px) and (min-height:650px){#turn-tracker{--tracker-width:320px;--tracker-title:28px;--tracker-instruction:24px;--tracker-row:22px;--tracker-mark:24px}#turn-tracker .turn-row{min-height:calc(44px * var(--tracker-scale,1))}}#turn-tracker{--resume-width:clamp(80px,calc(var(--command-font) * 6),120px)}body[data-button-labels=icons] #turn-tracker{--resume-width:48px}#turn-tracker #resume-turn-button{top:10px;left:min(max(154px,calc(100% - var(--resume-width) - 10px)),calc(100vw - var(--safe-left) - var(--safe-right) - 2 * var(--edge) - var(--resume-width)));max-width:none;margin:0;position:absolute;width:var(--resume-width)!important}#turn-tracker[data-folded=true] #resume-turn-button{top:4px;left:calc(100% + 8px)}@media (max-width:600px){body[data-button-labels=text] .game-overlay[data-primary-commands=true]:is(:has(#open-hand:not([hidden])),:has(#placement-pool:not([hidden]))){--primary-height:104px}}.game-overlay[data-primary-commands=true] #turn-tracker{top:calc(var(--edge) + var(--primary-height) + var(--gap))}#turn-tracker[data-folded=true]{flex-direction:row;align-items:center}.card-set-choice,.battle-reference #game-focus-drawer .card-choice-controls button.card-set-choice{color:#fff;background:#205c3a;border:2px solid #85daa6;border-radius:6px;flex:none;justify-content:center;align-items:center;min-width:112px;min-height:48px;padding:6px;display:inline-flex}.card-set-choice:disabled{opacity:.45}.card-set-choice:focus-visible{outline-offset:3px;outline:3px solid #fff}.card-set-icons{gap:4px;display:flex}.card-set-symbol{color:#1d2a35;background:#f4ead2;border:1px solid #c9b88f;border-radius:4px;flex:none;place-items:center;width:28px;height:34px;display:grid}.card-set-symbol .card-tile-symbol{font:800 22px/1 Inter,system-ui,sans-serif}.card-set-symbol[data-kind=Wild] .card-tile-symbol{color:#986600}.card-set-symbol .card-tile-bomb{width:24px;height:26px}#friendly-move-direction{grid-template-columns:20px minmax(0,1fr) 44px;align-items:center;gap:4px 6px;margin:0 0 8px;font:600 14px/1.3 Inter,system-ui,sans-serif;display:grid}#friendly-move-direction>div:first-child{grid-area:1/2}#friendly-move-direction>div:nth-child(3){grid-area:2/2}#friendly-move-direction strong{overflow-wrap:anywhere}.move-direction-label{min-width:34px;color:var(--muted);margin-right:4px;font-size:12px;display:inline-block}.move-direction-arrow{color:var(--accent);grid-area:1/1/3;font-size:24px;transform:rotate(90deg)}#swap-friendly-move-button{grid-area:1/3/3;min-width:44px;min-height:44px}#swap-friendly-move-button:disabled{opacity:.4}.friendly-move-preview{pointer-events:none}.friendly-move-preview>path{fill:none;stroke:#fff3a6;stroke-width:3px;vector-effect:non-scaling-stroke}.friendly-move-preview marker path{fill:#fff3a6}[data-move-role=from] .ring{stroke:#fff3a6!important}[data-move-role=to] .ring{stroke:#fff!important}.game-overlay[data-primary-commands=true] #game-focus-drawer #swap-friendly-move-button{width:44px;height:44px}.game-overlay[data-primary-commands=true] #game-focus-drawer #swap-friendly-move-button>svg{padding:9px}.game-overlay[data-primary-commands=true] #game-focus-drawer:has(#friendly-move-direction){grid-template-rows:44px minmax(0,1fr)}.game-overlay[data-primary-commands=true] #game-focus-drawer:has(#friendly-move-direction) .game-drawer-content{grid-area:2/1/auto/-1;height:auto}@media (max-height:500px){.game-overlay[data-primary-commands=true] #game-focus-drawer:has(#friendly-move-direction){width:272px;min-width:272px;max-height:calc(100% - 2 * var(--edge))}.game-overlay[data-primary-commands=true] #game-focus-drawer .friendly-move-controls .amount-adjust{grid-template-rows:44px 44px;grid-template-columns:44px 48px 44px;gap:4px}.game-overlay[data-primary-commands=true] #game-focus-drawer .friendly-move-controls .amount-adjust>:is(button,input){width:44px;min-width:44px;height:44px;min-height:44px}.game-overlay[data-primary-commands=true] #game-focus-drawer .friendly-move-controls .amount-adjust>input{width:48px;height:92px}.game-overlay[data-primary-commands=true] #game-focus-drawer .friendly-move-controls .capture-adjust{grid-template-columns:minmax(0,1fr) 44px;gap:6px}.game-overlay[data-primary-commands=true] #game-focus-drawer .friendly-move-controls #confirm-friendly-move-button{width:44px}.game-overlay[data-primary-commands=true] #game-focus-drawer .friendly-move-controls .card-icon>svg{padding:9px}.game-overlay[data-primary-commands=true] #game-focus-drawer:has(#friendly-move-direction){grid-template-rows:minmax(0,1fr)}.game-overlay[data-primary-commands=true] #game-focus-drawer:has(#friendly-move-direction) .game-drawer-content{grid-row:1}.game-overlay[data-primary-commands=true] #game-focus-drawer:has(#friendly-move-direction) #fold-card{position:absolute;top:auto;bottom:12px;right:12px}}.game-overlay[data-primary-commands=true] .victory-new-game{width:100%;margin:0 0 16px;display:grid}.game-overlay[data-primary-commands=true] .victory-new-game #result-new-game-button{place-items:center;max-width:100%;color:#fff!important;background:#267147!important;border:3px solid #123d26!important;border-color:#a7efc2 #123d26 #123d26 #a7efc2!important;border-radius:4px!important;width:100%!important;min-width:0!important;height:64px!important;min-height:64px!important;display:grid!important;box-shadow:2px 3px #071b25,inset 0 1px #fff5!important}.game-overlay[data-primary-commands=true] .victory-new-game #result-new-game-button.game-text-command{font-size:24px!important}.game-overlay[data-primary-commands=true] .victory-new-game #result-new-game-button.game-mobile-command>svg{width:32px!important;height:32px!important;color:inherit!important;stroke:currentColor!important}@media (max-height:500px){.game-overlay[data-primary-commands=true] #game-focus-drawer .victory-result:has(.victory-new-game) .result-title{margin:0 0 8px;font-size:24px}.game-overlay[data-primary-commands=true] #game-focus-drawer .victory-result:has(.victory-new-game) .card-note{margin:0 0 8px;font-size:14px;line-height:1.35}.game-overlay[data-primary-commands=true] #game-focus-drawer .victory-result:has(.victory-new-game) .victory-choices{gap:8px}.game-overlay[data-primary-commands=true] .victory-new-game{margin-bottom:12px}.game-overlay[data-primary-commands=true] .victory-new-game #result-new-game-button{height:56px!important;min-height:56px!important}}
