:root{--bg:#0b1c2e;--bg2:#10283f;--panel:#14304d;--panel2:#1a3c5f;--line:#2a527b;--fg:#eaf3fb;--muted:#9bb4ca;--accent:#ffd36b;--danger:#ff6b5e;--ok:#7dff9b;--cyan:#36e0ff;--ink:#16304f;--p-vermelho:#e5484d;--p-azul:#3e8ef7;--p-amarelo:#f5c542;--p-verde:#3fb36b;--p-roxo:#8e5ad7;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}*,:before,:after{box-sizing:inherit}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{background:radial-gradient(1200px 700px at 30% -10%,#17406b 0%,var(--bg) 60%);color:var(--fg);min-height:100vh;margin:0;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button{font:inherit;color:inherit;cursor:pointer}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--muted)}#app{grid-template-columns:minmax(0,1fr);gap:12px;max-width:1280px;margin:0 auto;padding:10px 12px 24px;display:grid}.panel,.panel>.box{min-width:0}header.top{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}header.top h1{letter-spacing:.02em;margin:0;font-size:1.15rem}header.top h1 small{color:var(--muted);margin-left:6px;font-weight:400}#hud{flex-wrap:wrap;align-items:center;gap:6px;margin-left:auto;display:flex}.chip{background:var(--panel);border:1px solid var(--line);border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.88rem;display:inline-flex}.chip--turn{background:var(--panel2);border-color:var(--accent)}.chip--warn{border-color:var(--danger);color:#ffd9d4}main.game{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}@media (width>=960px){main.game{grid-template-columns:minmax(0,1fr) 360px;align-items:start}}.boardwrap{position:relative}svg#board{touch-action:none;-webkit-user-select:none;user-select:none;background:#1c5a93;border-radius:14px;width:100%;height:auto;max-height:calc(100vh - 84px);margin:0 auto;display:block;box-shadow:0 6px 28px #0008}.zoom{gap:6px;display:flex;position:absolute;bottom:8px;right:8px}.zoom button{border:1px solid var(--line);background:#0b1c2ecc;border-radius:10px;width:40px;height:40px;font-size:1.2rem}.panel{gap:10px;display:grid}.box{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:12px;padding:10px 12px}.box h2{letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:0 0 8px;font-size:.78rem;font-weight:600}#prompt{margin:0 0 8px;font-size:1rem}#prompt b{color:var(--accent)}.btns{gap:6px;display:grid}.btn{border:1px solid var(--line);background:var(--bg2);text-align:left;border-radius:10px;min-height:44px;padding:10px 12px}.btn:hover:not(:disabled){border-color:var(--accent)}.btn--primary{background:var(--accent);color:#2b1d00;border-color:var(--accent);text-align:center;font-weight:700}.btn--repellent{border-color:#ff9a3c}.btn--ability{border-color:var(--ok)}.btn--pass{color:var(--muted)}.btn--ghost{background:0 0}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:focus-visible,.card:focus-visible,.hit:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.chooser{gap:6px;margin-top:8px;display:grid}.chooser h3{color:var(--muted);margin:0;font-size:.85rem;font-weight:600}.hand{gap:6px;display:grid}.card{border:2px solid var(--ok);background:var(--bg2);text-align:left;border-radius:10px;align-items:center;gap:10px;min-height:52px;padding:6px 8px;display:flex}.card small{color:var(--muted);font-size:.78rem;display:block}.card.is-wait{filter:grayscale();opacity:.7;border-color:#6c7b8a}.card.is-active{background:#1e5a3a}.card:disabled{cursor:default}.ico{flex:none;width:28px;height:28px}.ico--sm{vertical-align:middle;width:20px;height:20px}.ico--card{width:44px;height:44px}.ico--die{vertical-align:middle;width:34px;height:34px}.die{align-items:center;gap:8px;margin:6px 0;display:inline-flex}table.score{border-collapse:collapse;width:100%;font-size:.88rem}table.score th{text-align:left;white-space:nowrap;font-weight:600}table.score td{white-space:nowrap}table.score td,table.score th{border-bottom:1px solid #ffffff14;padding:4px 6px}table.score tr.is-cur{background:#ffffff0d}ol#log{max-height:260px;margin:0;padding:0;font-size:.86rem;list-style:none;overflow:auto}#log li{border-bottom:1px solid #ffffff10;padding:3px 0}#log li.ev--turnStarted{color:var(--accent);margin-top:4px;font-weight:600}#log li.ev--explorerKilled,#log li.ev--raftDestroyed{color:#ffb4ab}#log li.ev--explorerSaved{color:var(--ok)}details.help summary{cursor:pointer;color:var(--muted)}.help-steps{margin:8px 0;padding-left:18px}.legend{gap:4px;margin:8px 0;padding:0;font-size:.86rem;list-style:none;display:grid}.sw{vertical-align:middle;border:2px solid;border-radius:3px;width:16px;height:12px;margin-right:8px;display:inline-block}.sw--walk{background:#ffd23f33;border-color:#ffd23f}.sw--swim{border:2px dashed var(--cyan)}.sw--creature{border:2px dashed #ff9a3c}.sw--place{border-color:var(--ok)}.sw--remove{border:2px dashed #fff}.hit{fill:#0000;cursor:pointer;-webkit-tap-highlight-color:transparent}.hit:hover{fill:#ffffff24}#f,#explorers,#creatures,#rafts,#x,#t,#w,#o,#beach{pointer-events:none}.hl{fill:none;stroke-linejoin:round;pointer-events:none}.hl-walk{stroke:#ffd23f;stroke-width:4px;fill:#ffd23f33}.hl-swim{stroke:var(--cyan);stroke-width:4px;stroke-dasharray:8 6;fill:#36e0ff29}.hl-creature{stroke:#ff9a3c;stroke-width:4px;stroke-dasharray:8 6;fill:#ff9a3c2e}.hl-place{stroke:var(--ok);stroke-width:3.5px;fill:#7dff9b29}.hl-remove{stroke:#fff;stroke-width:3.5px;stroke-dasharray:7 5;fill:#ffffff1f}.hl-sel{stroke:#fff;stroke-width:4.5px}.hl-can{stroke:#fffc;stroke-width:2.5px;fill:#ffffff14}.glyph{fill:#fff;stroke:#16304f;stroke-width:2.4px;paint-order:stroke;text-anchor:middle;pointer-events:none;font:800 9px system-ui,sans-serif}.val{fill:#16304f;text-anchor:middle;pointer-events:none;font:800 8px system-ui,sans-serif}.valbg{fill:#fff;stroke:#16304f;stroke-width:1.2px}.selring{fill:none;stroke:#fff;stroke-width:3px;stroke-dasharray:4 3}.screen{z-index:50;background:radial-gradient(900px 600px at 50% 0,#17406b,#07121f);place-items:center;padding:20px;display:grid;position:fixed;inset:0;overflow:auto}.screen[hidden]{display:none}.screen .sheet{text-align:center;gap:14px;width:100%;max-width:460px;display:grid}.screen h1{margin:0;font-size:2rem}.screen h2{margin:0}.screen label{text-align:left;gap:4px;display:grid}.screen select,.screen input[type=number]{font:inherit;border:1px solid var(--line);background:var(--bg2);color:var(--fg);border-radius:10px;padding:10px}.screen .row{text-align:left;align-items:center;gap:8px;display:flex}.screen .btn{text-align:center;font-weight:700}table.final{border-collapse:collapse;width:100%}table.final td,table.final th{text-align:left;border-bottom:1px solid #fff2;padding:6px}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}svg.idle-off *{animation-play-state:paused!important}@media (width<=600px){table.score td,table.score th{white-space:normal}table.score{font-size:.82rem}.chip{padding:3px 8px;font-size:.8rem}}.t-pop{transform-box:fill-box;transform-origin:50%;animation:.35s cubic-bezier(.3,1.5,.5,1) backwards tpop}@keyframes tpop{0%{opacity:0;transform:scale(.2)}}.ghost{pointer-events:none}.fly{z-index:60;pointer-events:none;border:2px solid var(--ok);background:#14304d;border-radius:50%;place-items:center;width:44px;height:44px;display:grid;position:fixed;top:0;left:0;overflow:hidden}.fly svg{width:100%;height:100%}.fly b{color:var(--accent);font-size:1.4rem}.dicefx{z-index:20;pointer-events:none;filter:drop-shadow(0 6px 10px #0009);width:92px;height:92px;position:absolute;top:42%;left:50%;transform:translate(-50%,-50%)}.dicefx svg{width:100%;height:100%}.mp--win{filter:drop-shadow(0 0 6px #ffd36b)drop-shadow(0 0 2px #fff)}#skip{z-index:25;border:1px solid var(--line);background:#0b1c2ecc;border-radius:10px;min-height:40px;padding:8px 14px;position:absolute;bottom:8px;left:8px}#skip[hidden]{display:none}body.is-busy .panel .btn,body.is-busy .panel .card{pointer-events:none;opacity:.55}body.is-busy .hit{cursor:progress}@media (prefers-reduced-motion:reduce){.t-pop{animation:none}}.snd{z-index:80;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:fixed;top:8px;right:8px}#snd{border:1px solid var(--line);background:#0b1c2ecc;border-radius:12px;min-width:44px;min-height:44px;font-size:1.2rem}.sndp{border:1px solid var(--line);background:#0e2238;border-radius:12px;gap:8px;min-width:230px;padding:10px 12px;display:grid}.sndp[hidden]{display:none}.sndp .row{justify-content:space-between;align-items:center;gap:10px;display:flex}.sndp input[type=range]{width:120px}.top{padding-right:64px}.hit:focus{stroke:#fff;stroke-width:4px;fill:#ffe080;fill-opacity:.25;outline:none}.info-dialog{color:#fff;background:#102e40;border:1px solid #85dace;border-radius:16px;max-width:min(800px,90vw);max-height:85vh;padding:24px}.info-dialog::backdrop{background:#041622dd}.info-dialog pre{white-space:pre-wrap;font:inherit;line-height:1.6}button,select,summary{min-height:44px}.brand{vertical-align:middle;width:36px;height:36px}#skip{min-height:44px}#app{max-width:1800px}@media (width>=960px){main.game{grid-template-columns:minmax(0,1fr) 300px}}.zoom #island-view{width:auto;padding:0 12px;font-size:.85rem}table.score td,table.score th{white-space:normal}.three-host{background:#182e42;position:absolute;inset:0;overflow:hidden}.three-host canvas{width:100%;height:100%;display:block}.three-status{z-index:2;pointer-events:none;background:#142d40e8;padding:4px 8px;font-size:12px;position:absolute;top:6px;left:8px}.three-controls{z-index:2;flex-wrap:wrap;align-items:start;gap:4px;display:flex;position:absolute;top:32px;left:8px;right:8px}.three-controls details{background:#142d40ed;max-width:300px;padding:8px}.three-controls p{font-size:13px;line-height:1.5}.three-controls button,.three-controls select{min-height:44px}.three-host:focus-visible{outline-offset:-3px;outline:3px solid #ffe5a1}.three-access{z-index:3;background:#142d40e8;max-width:90%;max-height:30%;position:absolute;bottom:58px;left:8px;overflow:auto}.three-access button{min-width:44px;min-height:44px}.zoom{z-index:4}.zoom #retry-three{width:auto;padding:0 10px;font-size:.8rem}.renderer-notice{z-index:5;pointer-events:none;background:#142d40e8;max-width:90%;padding:5px 8px;font-size:12px;position:absolute;top:0;left:8px}#occupants{max-height:14rem;font-size:.85rem;overflow:auto}#occupants ul{padding-left:1.25rem}#occupants li{padding:5px 0}.three-access{border:1px solid #66869e;border-radius:6px;max-height:none;overflow:visible}.three-access summary{cursor:pointer;box-sizing:border-box;background:#142d40;min-height:44px;padding:8px}.three-access [role=group]{grid-template-columns:repeat(5,minmax(44px,1fr));gap:3px;max-height:92px;padding:4px;display:grid;overflow:auto}.three-access button{color:#fff;background:#183b54;border:1px solid #66869e;border-radius:4px}.three-access button:focus-visible{outline-offset:-3px;background:#295571;outline:3px solid #f5ce67}@media (width<=600px){.three-controls{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;display:grid}.three-controls button{padding:4px;font-size:12px}.three-controls details{padding:6px;font-size:12px}.three-controls details[open]{z-index:5;width:250px;position:absolute;top:0;right:0;box-shadow:0 6px 20px #07151c}.three-controls details[open] button,.three-controls details[open] select{margin:4px}.three-host~.zoom{display:none}}.boardwrap:has(>.three-host)>.zoom{display:none}:root{--bg:#081c25;--bg2:#102c35;--panel:#102c35;--panel2:#193d44;--line:#31545a;--muted:#aec5c6;--accent:#f5cf79;--ok:#91e2bd}body{background:radial-gradient(at 15% 0,#20464b,#0000 60%),#081c25}header.top{border-bottom:1px solid #31545a;padding-block:8px}.box{background:linear-gradient(145deg,#17383f,#102a33);border-radius:14px;padding:14px}.action-box{box-shadow:inset 3px 0 var(--accent);border-color:#ba9b58}.eyebrow{text-transform:uppercase;letter-spacing:.17em;color:var(--accent);font-size:.7rem;font-weight:800}.mission-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.mission-count{color:var(--ok);font-size:1.8rem;font-weight:800;line-height:1}.mission-count small{color:var(--muted);font-size:.75rem;font-weight:500}.rescue-progress{appearance:none;width:100%;height:7px;accent-color:var(--ok);background:#071d26;border:0;border-radius:9px;margin:12px 0 8px;display:block;overflow:hidden}.rescue-progress::-webkit-progress-bar{background:#071d26}.rescue-progress::-webkit-progress-value{background:var(--ok);border-radius:9px}.rescue-progress::-moz-progress-bar{background:var(--ok)}.mission-stats{color:var(--muted);justify-content:space-between;font-size:.78rem;display:flex}.mission-goal{color:var(--muted);margin:10px 0;font-size:.79rem}.mission-goal b{color:var(--accent)}.danger-track{border-block:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;padding:10px 0;font-size:.8rem;display:flex}.danger-track>span:last-of-type{gap:5px;display:flex}.danger-track i{width:23px;height:23px;color:var(--muted);border:1px solid #688080;border-radius:50%;place-items:center;font-style:normal;display:grid}.danger-track i.is-filled{color:#fff;background:#a34535;border-color:#fa9b76}.danger-track small{color:var(--muted);flex-basis:100%}.danger-track.is-critical small{color:#ffba9e;font-weight:700}.phase-track{color:var(--muted);justify-content:space-between;gap:6px;margin:12px 0;padding:0;font-size:.72rem;list-style:none;display:flex}.phase-track li{align-items:center;gap:4px;display:flex}.phase-track li>span{border:1px solid var(--line);border-radius:50%;place-items:center;width:20px;height:20px;display:grid}.phase-track .is-current{color:var(--accent);font-weight:700}.phase-track .is-current>span{background:var(--accent);color:#182b2b}.phase-setup{color:var(--accent);margin:12px 0;font-size:.78rem}.mission-tip{font-size:.84rem}.mission-tip b{color:#fff1cc}.mission-tip p{color:var(--muted);margin:4px 0 0;font-size:.79rem}.rescue-badge{color:var(--ok);border-top:1px solid var(--line);margin-top:12px;padding-top:9px;font-size:.8rem;font-weight:700}.move-pips{align-items:center;gap:5px;margin-bottom:10px;display:flex}.move-pips i{border:1px solid #77918b;width:13px;height:13px;margin-right:3px;transform:rotate(45deg)}.move-pips .is-ready{background:var(--accent);border-color:var(--accent)}.move-pips span{color:var(--accent);margin-left:6px;font-size:.75rem}#reserve-slot label{color:var(--accent);gap:8px;padding:12px 0;font-size:.82rem;display:grid}#reserve-slot select{max-width:100%;color:var(--fg);background:var(--bg2);border:1px solid var(--accent);font:inherit;border-radius:8px;padding:10px}.panel summary{cursor:pointer;color:var(--muted);align-items:center;font-size:.85rem;display:flex}.panel details[open]>summary{color:var(--accent);margin-bottom:10px}.btn--primary{box-shadow:0 3px #8d7136}.btn--primary:hover{background:#ffe2a0}.btn:active:not(:disabled){transform:translateY(1px)}.screen{background:radial-gradient(at 20% 35%,#285a58 0,#0000 55%),radial-gradient(at 90% 90%,#513e2c 0,#0000 55%),#081d28}.screen .start-sheet{text-align:left;border:1px solid #66817b;border-radius:22px;grid-template-columns:1.1fr 1fr;gap:0;max-width:920px;overflow:hidden;box-shadow:0 30px 100px #0007}.start-story{background:linear-gradient(150deg,#1c4444cc,#091e2ce8);padding:40px;position:relative}.start-emblem{filter:drop-shadow(0 8px 16px #0006);width:76px;height:76px;margin:22px 0 16px;display:block}.start-story h1{letter-spacing:-.04em;font:800 clamp(2rem,4vw,3.3rem)/1.07 Georgia,serif}.start-story h1 em{color:var(--accent);font-style:normal}.start-story>p{color:#d0e1d9;margin:20px 0;font-size:1.1rem;line-height:1.6}.start-loop{gap:15px;margin:28px 0;padding:0;list-style:none;display:grid}.start-loop li{padding-left:38px;font-size:.9rem;font-weight:700;position:relative}.start-loop b{color:var(--accent);font:italic 1.25rem Georgia,serif;position:absolute;left:0}.start-loop small{color:var(--muted);margin-top:3px;font-size:.78rem;font-weight:400;display:block}.start-stakes{text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-size:.72rem}.start-config{background:#102b34f5;align-content:center;gap:14px;padding:40px 32px;display:grid}.start-config h2{font:700 1.6rem Georgia,serif}.start-config>p{margin:0;font-size:.86rem}.start-config>label{font-size:.85rem}.start-config .row{font-size:.8rem}.start-config .btn{min-height:52px;margin-top:8px}.start-note{color:var(--muted);text-align:center;font-size:.75rem!important}@media (width>=960px){.panel{scrollbar-width:thin;max-height:calc(100dvh - 100px);padding-right:4px;overflow:auto}.boardwrap{position:sticky;top:10px}.mission-box{padding:16px}}@media (width<=959px){.panel{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.mission-box,.action-box{align-self:stretch}.boardwrap{min-width:0}}@media (width<=600px){.screen{place-items:start center;padding:14px}.screen .start-sheet{grid-template-columns:1fr;margin:20px 0}.start-emblem{width:48px;height:48px;margin:12px 0}.start-story h1{font-size:2.3rem}.start-story>p{margin:12px 0;font-size:.95rem}.start-loop{gap:10px;margin:18px 0}.start-config{gap:12px;padding:25px}.panel{grid-template-columns:1fr}.action-box{grid-row:1}.mission-box{grid-row:2}header.top h1 small{display:none}.mission-tip p{font-size:.85rem}.start-story .start-loop,.start-story .start-emblem,.start-story .start-stakes{display:none}.start-story{padding:20px 25px}.start-story h1{margin-top:10px;font-size:1.9rem}.start-story>p{margin-bottom:0}.start-config{padding:20px 25px}.start-config>p.muted{display:none}.three-host{min-height:420px}.boardwrap:has(>.three-host){min-height:420px}.three-controls{display:flex}.three-controls>.camera-extra{display:none}.three-controls details[open] .camera-extra{display:inline-block}.three-access{bottom:8px}.three-status{font-size:10px}.three-controls details{padding:0 8px}.three-controls details>summary{align-items:center;display:flex}}.panel>.action-box{order:-2}.panel>.mission-box{order:-1}@media (width<=600px){.three-controls>button{min-width:44px}.three-controls{gap:5px}}.action-box{z-index:30;bottom:max(18px,env(safe-area-inset-bottom));border:1px solid #d9bc77;border-top:3px solid var(--accent);background:linear-gradient(145deg,#193e45f7,#0b2533fa);border-radius:18px;width:min(600px,100vw - 32px);max-height:38dvh;padding:14px 20px;position:fixed;left:50%;overflow:auto;transform:translate(-50%);box-shadow:0 12px 48px #0009}.action-box h2{text-align:center;color:var(--accent);margin-bottom:8px}.action-box #prompt{text-align:center;margin-bottom:10px;font-size:.94rem}.action-box .move-pips{justify-content:center}.action-box .btns{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.action-box .btns>.btn{text-align:center;flex:1;min-width:160px}.action-box #reserve-slot label{padding:0 0 6px}.action-box #dice{text-align:center}.action-box #chooser{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.action-box #chooser h3{grid-column:1/-1}.action-box{background:linear-gradient(145deg,#193e45,#0b2533)}.command-topline{color:var(--accent);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid #6b7e80;justify-content:space-between;align-items:center;margin-bottom:10px;padding-bottom:8px;font-size:.72rem;display:flex}.command-topline ol{color:var(--muted);letter-spacing:0;gap:12px;margin:0;padding:0;font-size:.68rem;list-style:none;display:flex}.command-topline [aria-current]{color:#fff1c1;border-bottom:2px solid var(--accent);font-weight:800}.unit-summary{text-align:left;align-items:center;gap:12px;display:flex}.unit-medallion{border:2px solid var(--accent);background:#174b67;border-radius:50%;flex-shrink:0;place-items:center;width:52px;height:52px;display:grid;box-shadow:0 0 0 4px #d4b46516}.unit-medallion img{width:30px;height:30px}.unit-summary small{color:var(--accent);text-transform:uppercase;letter-spacing:.1em;font-size:.65rem}.unit-summary h3{color:#fff1c4;margin:2px 0;font:700 1.12rem Georgia,serif}.unit-summary span:not(.unit-medallion){color:var(--muted);font-size:.73rem}.unit-orders{align-items:center;gap:8px;margin-top:10px;display:flex}.unit-orders .btn{border-radius:5px;min-height:36px;padding:6px 10px;font-size:.76rem}.command-next{background:#174b67;border-color:#bba16b;align-items:center;gap:7px;display:flex}.command-next img{width:18px;height:18px}.command-count{color:var(--muted);margin-left:auto;font-size:.7rem}kbd{border:1px solid #83928c;border-radius:3px;padding:1px 4px;font-size:.65rem}.unit-roster{scrollbar-width:thin;gap:5px;max-height:44px;margin:8px 0;display:flex;overflow-x:auto}.unit-token{color:#dce6eb;background:#102e42;border:1px solid #597a88;border-radius:5px;flex-shrink:0;align-items:center;gap:6px;min-height:34px;padding:5px 9px;font-size:.7rem;display:flex}.unit-token.is-selected{border-color:var(--accent);box-shadow:inset 0 -2px var(--accent);background:#28536a}.action-box{background:linear-gradient(130deg,#15384bf5,#0b2233fa);border-color:#b9a67a;border-radius:10px;width:min(680px,100vw - 32px);max-height:45dvh;padding:12px 18px}.action-box #prompt{color:var(--muted);margin:8px 0;font-size:.79rem}.action-box .move-pips{justify-content:flex-start;margin:8px 0}.action-box .move-pips span{font-size:.7rem}.action-box .btns{border-top:1px solid #536d78;padding-top:9px}.action-box .btns>.btn{border-radius:5px;min-height:42px;font-size:.8rem}.action-box .die{margin:0;font-size:.72rem}#destination-preview{color:#a1e6ff;text-align:center;min-height:0;font-size:.81rem;font-weight:650}#destination-preview:not(:empty){background:#153c52;border:1px solid #5e9daf;border-radius:4px;margin-bottom:7px;padding:8px}button[data-key=endAction],button[data-key=roll]{flex:1.3!important}button[data-key=endAction]:after{content:" →"}.hl-walk,.hl-swim{fill:#59c9ff;fill-opacity:.22;stroke:#89ddff;stroke-width:3px}.hl-can{stroke:#f5d386;fill:#f5d386;fill-opacity:.1}.hl-sel{stroke:#ffe9ac;stroke-width:5px;fill:#ffdc7e;fill-opacity:.15}.has-unit-selection #board #w,.has-unit-selection #board #t{filter:brightness(.8)}@media (width<=600px){.action-box{width:calc(100vw - 16px);max-height:39dvh;padding:10px}.unit-summary h3{font-size:.95rem}.unit-medallion{width:40px;height:40px}.unit-medallion img{width:24px;height:24px}.command-topline{font-size:.65rem}.command-topline ol{gap:6px;font-size:.6rem}.unit-orders .btn,.unit-token{min-height:44px}.unit-roster{max-height:50px}.action-box .move-pips{margin:5px 0}.action-box #prompt{font-size:.72rem}.command-count{display:none}.unit-summary span:not(.unit-medallion){font-size:.65rem}}.action-box{background:linear-gradient(130deg,#15384b,#0b2233);max-height:330px}.roster-details>summary{cursor:pointer;min-height:24px;color:var(--muted);margin:3px 0;font-size:.68rem}.roster-details[open]>.unit-roster{max-height:80px}.action-box .btns{z-index:2;background:#0d2839;padding-bottom:3px;position:sticky;bottom:-12px}.unit-medallion{border-color:#ffcf5c}.command-next{font-weight:700}@media (width>=960px){.boardwrap{height:calc(100dvh - 450px);min-height:280px}svg#board{height:100%;max-height:100%}.three-host{min-height:0}}@media (width<=600px){.action-box{max-height:300px}.action-box .unit-orders{margin-top:6px}.action-box .roster-details,.has-unit-selection:not(.has-special-prompt) .action-box #prompt{display:none}.action-box .unit-summary h3{font-size:.9rem}.action-box .command-topline{margin-bottom:6px;padding-bottom:5px}.action-box .btns{bottom:-10px}.boardwrap:has(>.three-host){height:calc(100dvh - 450px);min-height:300px}.three-host{min-height:0}.action-box .die{display:none}.has-unit-selection .action-box #move-budget{margin-bottom:5px}}.has-unit-selection:not(.has-special-prompt) .action-box #prompt{display:none}@media (width>=960px){.action-box{max-height:360px}.boardwrap{height:calc(100dvh - 480px)}}.three-host canvas{cursor:grab}.three-host.is-camera-dragging canvas{cursor:grabbing}.camera-minimap{z-index:6;background:#0c2839f5;border:1px solid #bdac79;border-radius:9px;width:178px;padding:6px;position:absolute;bottom:8px;right:8px;box-shadow:0 5px 20px #0005}.camera-minimap summary{color:#f0d596;cursor:pointer;justify-content:center;align-items:center;min-height:28px;font-size:.72rem;display:flex}.camera-minimap svg{touch-action:none;cursor:crosshair;border-radius:5px;width:100%;height:120px;display:block}.camera-minimap small{text-align:center;color:#b1c6d0;margin-top:4px;font-size:.6rem;display:block}.camera-option{align-items:center;gap:7px;min-height:44px;font-size:.78rem;display:flex}.camera-option input{width:18px;height:18px}.three-controls details[open]{z-index:8;max-height:85%;overflow:auto}.camera-minimap:not([open]){width:116px}@media (width<=600px){.camera-minimap{width:132px;bottom:6px;right:6px}.camera-minimap svg{height:92px}.camera-minimap:not([open]){width:100px}.camera-minimap summary{min-height:44px}.camera-minimap small{display:none}.three-controls details[open]{max-height:280px}}.camera-minimap summary:after{content:" ▸";margin-left:6px}.camera-minimap[open] summary:after{content:" ▾"}html,body{height:100%;overflow:hidden}#app{width:100%;max-width:none;height:100dvh;margin:0;padding:0;display:block}header.top{z-index:22;background:linear-gradient(#091d2df5,#0c2632dc);border-bottom:1px solid #bfa47055;min-height:62px;padding:10px 70px 10px 16px;position:fixed;inset:0 0 auto}header.top h1{font-size:1rem}header.top h1 small{display:none}main.game{display:block}:is(.boardwrap,.boardwrap:has(>.three-host)){width:100vw;position:fixed;inset:0;height:100dvh!important;min-height:0!important}svg#board{width:100vw;height:100dvh;max-height:none;box-shadow:none;border-radius:0}.three-host{min-height:0;inset:0}.three-controls{max-width:calc(100vw - 28px);top:76px;left:14px;right:auto}.three-status{color:#c0d0d4;background:0 0;font-size:9px;top:63px;left:16px}.three-access{bottom:242px;left:auto;right:14px}.camera-minimap{width:164px;bottom:24px;right:18px}.three-host~.zoom{display:none}.panel{pointer-events:none;max-height:none;display:contents;overflow:visible}.panel>.box{pointer-events:auto;display:none}.panel>.action-box{z-index:30;background:linear-gradient(145deg,#15384bf2,#091e2ef7);border-radius:12px;width:min(550px,42vw);max-height:300px;padding:10px 14px;display:block;position:fixed;bottom:14px;left:50%;right:auto;transform:translate(-50%);box-shadow:0 10px 36px #0008}.action-box .command-topline{margin-bottom:7px;padding-bottom:6px}.unit-summary h3{font-size:1.05rem}.unit-summary{gap:10px}.unit-medallion{width:44px;height:44px}.unit-orders{margin-top:6px}.action-box .roster-details{display:none}.action-box .btns{bottom:-10px}.action-box #prompt{margin:5px 0}.action-box .die{font-size:.65rem;display:inline-flex}.action-box .ico--die{width:22px;height:22px}.action-box #reserve-slot label{font-size:.75rem}.hud-tools{z-index:24;gap:5px;display:flex;position:fixed;top:76px;right:16px}.hud-tools button,.drawer-close{color:#e8efdf;background:#102d3fe8;border:1px solid #8b947e;border-radius:6px;min-height:40px;padding:8px 12px;font-size:.75rem}.hud-tools button[aria-expanded=true]{color:#ffe7ae;background:#28556a;border-color:#edce88}.panel>.hud-drawer{z-index:32;background:#102c3bf5;border-color:#a39369;width:min(370px,100vw - 32px);max-height:calc(100dvh - 370px);position:fixed;top:126px;right:16px;overflow:auto;box-shadow:0 10px 35px #0008}.drawer-close{min-height:36px;margin:0 0 12px auto;display:block}body[data-hud-panel=mission-box] #mission-box,body[data-hud-panel=cell-box] #cell-box,body[data-hud-panel=score-box] #score-box,body[data-hud-panel=log-box] #log-box,body[data-hud-panel=help-box] #help-box{display:block}.panel>#hand-box{z-index:34;width:min(440px,31vw);box-shadow:none;background:0 0;border:0;padding:0;display:block;position:fixed;bottom:0;left:16px;overflow:visible}#hand-toggle{z-index:1;color:#f8dd9a;background:#102d3feb;border:1px solid #c3ab71;border-radius:18px;min-height:36px;margin:0 0 10px 6px;padding:7px 15px;font-size:.75rem;display:block;position:relative}#hand{isolation:isolate;justify-content:center;align-items:flex-end;min-height:90px;padding:0 20px 0 0;display:flex;overflow:visible}#hand-box:not(.hand-open) #hand{display:none}#hand>.muted{background:#112c3be8;border:1px solid #8b947e;border-radius:10px;width:100%;margin:0 0 18px;padding:14px;font-size:.74rem}#hand .card{color:#fff1cc;width:116px;height:165px;min-height:0;transform:translateY(10px) rotate(var(--fan));transform-origin:50% 110%;cursor:pointer;z-index:calc(2 + var(--i));background:radial-gradient(at 50% 30%,#427f7e,#173448 60%,#102130);border:2px solid #d3b96c;border-radius:12px;flex-direction:column;flex:0 0 116px;justify-content:flex-start;align-items:center;margin:0 -22px -12px 0;padding:8px 8px 10px;transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;position:relative;box-shadow:0 4px 12px #000a,inset 0 0 0 3px #071925}#hand .card[data-kind=dolphin]{background:radial-gradient(at 50% 30%,#3497ad,#153e61 65%,#102130)}#hand .card[data-kind=die]{background:radial-gradient(at 50% 30%,#7f698f,#30294d 65%,#102130)}#hand .card[data-kind=repellent]{background:radial-gradient(at 50% 30%,#73924a,#30482a 65%,#102130)}#hand .card .ico--card{filter:drop-shadow(0 4px 5px #0008);background:#e8cf8b22;border-radius:50%;width:72px;height:72px;margin:5px 0}.card-copy{text-align:center;width:100%;display:block}.card-copy b{border-block:1px solid #e7c88180;padding:5px 0;font:700 .85rem Georgia,serif;display:block}.card-copy small{margin-top:5px;line-height:1.25;display:block;color:#e1e9dd!important;font-size:.57rem!important}.card-copy em{color:#f7d47f;margin-top:5px;font-size:.55rem;font-style:normal;display:block}.card-rune{color:#fff;background:#1d6c83;border:2px solid #e2c178;border-radius:50%;place-items:center;width:25px;height:25px;display:grid;position:absolute;top:-8px;left:-8px}#hand .card.is-wait{filter:saturate(.5);opacity:.92}#hand .card.is-active{border-color:#9cf3bd;box-shadow:0 0 22px #60e8a880}#hand .card:hover,#hand .card:focus-visible{z-index:50;outline-offset:5px;border-color:#fff1ba;transform:translateY(-85px)rotate(0)scale(1.25);box-shadow:0 12px 35px #000b,0 0 25px #f4cf6b55}.card:focus-visible{outline:3px solid #fff}#card-inspector{color:#edf0e5;text-align:center;background:radial-gradient(at 50% 20%,#36636b,#102c40 70%);border:2px solid #d8be78;border-radius:20px;max-width:min(360px,100vw - 32px);padding:24px;box-shadow:0 15px 90px #000c}#card-inspector::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#04121caa}.card-detail-art svg{filter:drop-shadow(0 8px 10px #0008);width:125px;height:125px}#card-title{color:#ffe2a0;margin:12px 0;font:700 1.9rem Georgia,serif}.card-close{margin:0 0 10px auto;font-size:.75rem;display:block}.card-availability{color:#e4cb8a;font-size:.8rem}#card-use{width:100%}#rescue-toast{z-index:40;color:#d5ffdf;background:#164f3aef;border:1px solid #b3f3cc;border-radius:30px;padding:14px 28px;font-weight:800;position:fixed;top:130px;left:50%;transform:translate(-50%);box-shadow:0 0 30px #71df9c44}#rescue-toast[hidden]{display:none}.hl-rescue{fill:#7af3ad;fill-opacity:.3;stroke:#a6ffd0;stroke-width:5px}body:has(.screen:not([hidden])) .hud-tools{visibility:hidden}body:has(.screen:not([hidden])) .panel>.box{visibility:hidden}@media (width<=1100px) and (width>=701px){.hud-tools{top:132px}.panel>.hud-drawer{top:180px}.panel>.action-box{width:57vw;left:68%}.panel>#hand-box{width:30vw;left:8px}#hand .card{flex-basis:96px;width:96px;height:155px;margin-right:-30px}.camera-minimap{width:140px;bottom:328px}}@media (width<=700px){header.top{gap:4px;min-height:50px;padding:6px 54px 6px 8px}header.top h1{font-size:.78rem}header.top .brand{width:25px;height:25px}#hud{gap:3px;margin-left:0}.chip{padding:2px 6px;font-size:.63rem}.three-controls{max-width:calc(100vw - 16px);top:110px;left:8px}.three-status{display:none}.hud-tools{gap:4px;top:70px;left:8px;right:auto}.hud-tools button{min-height:34px;padding:4px 8px;font-size:.65rem}.panel>.hud-drawer{width:calc(100vw - 16px);max-height:calc(100dvh - 440px);top:164px;right:8px}.panel>.action-box{width:auto;max-height:255px;padding:8px 10px;bottom:8px;left:8px;right:8px;transform:none}.unit-summary h3{font-size:.85rem}.action-box .unit-summary span:not(.unit-medallion){font-size:.62rem}.action-box .unit-medallion{width:34px;height:34px}.action-box .unit-orders .btn{min-height:36px;font-size:.66rem}.action-box .btns>.btn{min-width:110px;min-height:40px;font-size:.7rem}.action-box .die{display:none}.action-box .command-topline{font-size:.6rem}.action-box .command-topline ol{font-size:.56rem}.action-box #prompt{font-size:.7rem}.action-box .move-pips{margin:4px 0}.action-box #reserve-slot select{padding:7px}.camera-minimap{width:128px;bottom:280px;right:8px}.three-access{max-width:150px;inset:158px 8px auto auto}.three-access summary{padding:5px;font-size:.65rem}.panel>#hand-box{z-index:35;width:calc(100vw - 155px);bottom:270px;left:8px}#hand-toggle{min-height:36px;margin-bottom:0;padding:5px 10px;font-size:.65rem}#hand-box:not(.hand-open) #hand{display:none}#hand-box.hand-open #hand{justify-content:flex-start;padding:8px 0}#hand .card{flex:0 0 90px;width:90px;height:142px;margin-right:-24px}.card-copy b{font-size:.7rem}.card-copy small{font-size:.5rem!important}#hand .card .ico--card{width:50px;height:50px}#hand .card:hover,#hand .card:focus-visible{transform:translateY(-25px)rotate(0)scale(1.05)}#rescue-toast{width:max-content;max-width:90vw;padding:10px 18px;font-size:.8rem;top:170px}}@media (prefers-reduced-motion:reduce){#hand .card{transition:none}}#hand .card{margin-right:calc(-1 * var(--overlap,22px))}#hand .card:last-child{margin-right:0}@media (width>=1101px){.panel>.action-box{width:min(540px,42vw);left:auto;right:200px;transform:none}}@media (width<=700px){#hand-box.hand-open{width:calc(100vw - 16px)}#hand-box.hand-open #hand{scrollbar-width:thin;gap:6px;max-height:150px;padding:8px;overflow:auto hidden}#hand .card{flex-basis:112px;width:112px;height:125px;margin:0;transform:none}#hand .card .ico--card{width:38px;height:38px;margin:2px 0}.card-copy b{font-size:.78rem}.card-copy small{display:none}.card-copy em{font-size:.72rem;line-height:1.2}#hand .card:hover,#hand .card:focus-visible{transform:none}}.chip--rescued{color:#b9f6cc;border-color:#61937e}@media (width<=700px){header.top{flex-wrap:nowrap;align-items:center;min-height:54px}header.top h1{flex-shrink:0;width:28px;font-size:0}header.top #hud{flex-wrap:wrap;max-width:calc(100vw - 100px);overflow:visible}header.top .chip{flex-shrink:0}.hud-tools{top:82px}.three-controls{top:124px}}@media (width>=701px){#hand .card:hover,#hand .card:focus-visible{height:235px;transform:translateY(-42px)rotate(0)scale(1.12)}#hand .card:hover .card-copy small,#hand .card:focus-visible .card-copy small{line-height:1.25;font-size:.68rem!important}#hand .card:hover .card-copy em,#hand .card:focus-visible .card-copy em{font-size:.62rem}}#card-inspector{max-height:calc(100dvh - 32px);overflow:auto}.dice-roll{left:50%}body:has(.screen:not([hidden])) .action-box{visibility:hidden}#app{padding-bottom:210px}.panel{padding-bottom:10px}.dice-roll{z-index:40;pointer-events:none;background:#102f3af5;border:1px solid #f5cf79;border-radius:24px;justify-items:center;gap:14px;width:220px;padding:22px;display:grid;position:fixed;top:35%;left:50%;transform:translate(-50%,-50%);box-shadow:0 15px 70px #0009}.dice-roll[hidden]{display:none}.roll-caption{text-transform:uppercase;letter-spacing:.13em;color:var(--accent);font-size:.7rem;font-weight:800}.roll-cube{background:#ffebc2;border:3px solid #ffd47a;border-radius:20px;width:100px;height:100px;box-shadow:0 8px #a57b3d}.roll-cube svg{width:100%;height:100%}.dice-roll strong{color:#fff1c9}.dice-roll.is-settled{border-color:var(--ok)}@media (height<=500px) and (orientation:landscape){body:has(.three-host) header.top{flex-wrap:nowrap;height:50px;min-height:0;padding:4px 60px 4px 8px}body:has(.three-host) header.top h1{flex:none;width:32px;font-size:0}body:has(.three-host) header.top .brand{width:28px;height:28px}body:has(.three-host) #hud{flex-wrap:nowrap;gap:4px;margin-left:0}body:has(.three-host) #hud .chip{white-space:nowrap;padding:3px 7px;font-size:.7rem}body:has(.three-host) .panel>.action-box{width:min(310px,38vw);max-height:58dvh;padding:6px 8px;bottom:8px;left:auto;right:8px;transform:none}body:has(.three-host) .panel>#hand-box{width:38vw;bottom:8px;left:8px}body:has(.three-host) .hud-tools{flex-direction:column;gap:3px;top:56px;left:8px;right:auto}body:has(.three-host) .hud-tools button{min-height:30px;padding:3px 8px;font-size:.66rem}body:has(.three-host) .three-controls{grid-template-columns:repeat(3,auto);gap:3px;max-width:none;display:grid;top:56px;left:auto;right:8px}body:has(.three-host) .three-controls button{min-width:0;min-height:30px;padding:3px 8px;font-size:.68rem}body:has(.three-host) .three-controls details{grid-column:1/-1}:is(body:has(.three-host) .action-box .command-topline,body:has(.three-host) .action-box .command-count){display:none}body:has(.three-host) .camera-minimap{bottom:8px;right:calc(38vw + 16px)}body:has(.three-host) .three-access{bottom:54px;right:calc(38vw + 16px)}body:has(.three-host) .panel>.hud-drawer{max-height:55dvh;top:100px}body:has(.three-host) .action-box .command-topline{margin-bottom:3px;padding-bottom:3px}body:has(.three-host) .action-box .unit-medallion{width:32px;height:32px}body:has(.three-host) .action-box .btns{padding-top:3px}body:has(.three-host) #hand-box.hand-open #hand{max-height:112px;padding:4px 8px;overflow:auto hidden}body:has(.three-host) #hand .card{flex:0 0 104px;width:104px;height:104px;margin:0 4px 0 0;transform:none}body:has(.three-host) #hand .card:hover{flex:0 0 104px;width:104px;height:104px;margin:0 4px 0 0;transform:none}body:has(.three-host) #hand .card:focus-visible{flex:0 0 104px;width:104px;height:104px;margin:0 4px 0 0;transform:none}body:has(.three-host) #hand .card .ico--card{width:34px;height:34px;margin:0}body:has(.three-host) .card-copy small{display:none}body:has(.three-host) .card-copy em{font-size:.62rem}body:has(.three-host) .panel>.action-box{max-height:58dvh}}@media (width<=600px){.action-box{width:calc(100vw - 20px);max-height:35dvh;padding:10px 12px;bottom:8px}.action-box #prompt{font-size:.85rem}.action-box .btn{min-height:44px;padding:8px}.action-box .btns>.btn{min-width:130px}.dice-roll{width:180px;padding:16px;top:32%}.roll-cube{width:80px;height:80px}}#turn-banner{z-index:45;border:1px solid #f1d589;border-top:3px solid var(--accent);color:#fff1cc;text-align:center;opacity:0;pointer-events:none;background:linear-gradient(145deg,#15384bf6,#091e2efa);border-radius:12px;justify-items:center;gap:2px;min-width:220px;max-width:min(92vw,420px);padding:10px 26px;transition:opacity .25s,transform .25s;display:grid;position:fixed;top:148px;left:50%;transform:translate(-50%,-14px);box-shadow:0 10px 36px #000a}#turn-banner[hidden]{display:none}#turn-banner.is-in{opacity:1;transform:translate(-50%)}#turn-banner small{text-transform:uppercase;letter-spacing:.14em;color:var(--accent);font-size:.65rem;font-weight:800}#turn-banner b{font:700 1.2rem Georgia,serif}#turn-banner span{color:#cfe0e6;font-size:.78rem}#turn-banner.is-react{background:linear-gradient(145deg,#4a2218f6,#2a0f0afa);border-color:#ff6b4a #ff9a7a #ff9a7a}#turn-banner.is-react small{color:#ffb59c}@media (width<=700px){#turn-banner{padding:8px 18px;top:168px}#turn-banner b{font-size:1rem}}@media (height<=500px) and (orientation:landscape){#turn-banner{top:56px}}@media (prefers-reduced-motion:reduce){#turn-banner{transition:none;transform:translate(-50%)}}.online-seats{gap:.25rem;margin:.6rem 0;padding:0;list-style:none;display:grid}.online-seats li{border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:.5rem;padding:.35rem .6rem}.net-state{z-index:60;color:#fff;background:#7a1f1f;border-radius:999px;padding:.5rem .9rem;font-size:.9rem;position:fixed;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #0006}.net-state[hidden]{display:none}.online-badge{z-index:55;color:#fff;pointer-events:none;background:#141828d9;border-radius:999px;padding:.25rem .65rem;font-size:.8rem;position:fixed;top:.6rem;left:.6rem}.online-howto{margin-top:1rem}.online-howto summary{cursor:pointer;font-weight:600}.online-howto ol{gap:.45rem;padding-left:1.2rem;font-size:.92rem;display:grid}
