:root{--ink:#14161c;--ink-2:#1f2330;--ink-3:#2a2f3e;--paper:#f4efe1;--mute:#8a8f9c;--red:#e5322d;--yellow:#ffd23f;--cyan:#2ec4d6;--orange:#ff8a1f;--violet:#8f5cff;--green:#3fbf6f;--table:#3d4a3a;--pc:var(--yellow);--slant:-12deg;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Arial Rounded MT Bold,Nunito,Varela Round,system-ui,-apple-system,Segoe UI,sans-serif;font-weight:600}*{box-sizing:border-box}html,body,#root{background:var(--ink);height:100%;color:var(--paper);overscroll-behavior:none;margin:0}b,h1,h2,h3,.cTitle{letter-spacing:.02em;font-weight:900}button,select,input{font:inherit;color:inherit;min-height:44px}select,input{background:var(--ink-3);border:2px solid var(--ink);border-radius:2px;padding:8px 10px}button{isolation:isolate;cursor:pointer;text-transform:uppercase;letter-spacing:.03em;touch-action:manipulation;background:0 0;border:0;padding:10px 18px;font-size:.92em;font-weight:800;position:relative}button:before{content:"";z-index:-1;background:var(--ink-3);border:2px solid var(--ink);transform:skewX(var(--slant));transition:transform .12s cubic-bezier(.3,1.6,.6,1),background .12s;position:absolute;inset:0}button:active:before{transform:skewX(var(--slant)) translate(2px, 2px)}button.primary{color:var(--ink)}button.primary:before{background:var(--pc);filter:drop-shadow(3px 3px #000)}button.on:before{background:var(--paper)}button.on{color:var(--ink)}button:disabled{opacity:.4}button.ghostBtn:before{background:0 0;border-color:#0000}button.wide{width:100%;margin-top:10px}button.big{padding:16px 34px;font-size:1.2em}button.spell:before{background:var(--violet)}button.spell{color:#fff}button.iconBtn{text-transform:none;min-width:44px;padding:6px 10px;font-size:1.1em}button.iconBtn:before{background:0 0;border-color:#0000}button.iconBtn.on:before{background:var(--pc)}button.iconBtn.on{color:var(--ink)}.muted{color:var(--mute)}.small{font-size:.85em}.warn{color:var(--yellow)}.error{color:#fff;background:var(--red);margin:6px 0;padding:8px 12px;font-weight:800}.row{flex-wrap:wrap;gap:10px;margin:8px 0;display:flex}.dot{vertical-align:-1px;border:2px solid var(--ink);border-radius:50%;width:12px;height:12px;margin-right:6px;display:inline-block}.setup{max-width:880px;margin:0 auto;padding:16px 14px 70px}.setup h1{color:var(--ink);background:var(--yellow);text-transform:uppercase;transform:skewX(var(--slant));margin:10px 0 4px;padding:6px 22px;font-size:2.2em;display:inline-block}.setup section{margin:18px 0}.seat{background:var(--ink-2);border-left:10px solid;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;padding:10px 12px;display:flex}.seat input[aria-label=name]{width:9em}.seat .team{align-items:center;gap:6px;display:flex}.opts{flex-wrap:wrap;gap:12px;display:flex}.opts label{flex-direction:column;gap:4px;min-width:200px;display:flex}.builder{background:var(--ink);width:100%;padding:8px}.brow{border-bottom:2px solid var(--ink-3);flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0;display:flex}.brow label{align-items:center;gap:4px;display:flex}.links{z-index:40;background:var(--ink-2);border:3px solid var(--yellow);padding:12px;position:fixed;top:60px;left:8px;right:8px}.links input{width:100%}details summary{cursor:pointer}.game{position:fixed;inset:0;overflow:hidden}.board{touch-action:none;-webkit-user-select:none;user-select:none;background:var(--ink);width:100%;height:100%;display:block;position:absolute;inset:0}.topbar{z-index:10;padding:calc(4px + env(safe-area-inset-top)) 6px 4px;pointer-events:none;align-items:center;gap:4px;display:flex;position:absolute;top:0;left:0;right:0}.topbar>*{pointer-events:auto}.turnPlate{background:var(--ink);border-bottom:4px solid var(--pc);min-width:0;transform:skewX(var(--slant));white-space:nowrap;text-overflow:ellipsis;flex:0 auto;margin:0 auto 0 4px;padding:7px 18px;overflow:hidden}.turnPlate>*{display:inline-block;transform:skew(12deg)}.toast{z-index:30;transform:translateX(-50%) skewX(var(--slant));max-width:90vw;position:absolute;top:60px;left:50%}.drawer{z-index:20;background:var(--ink-2);border:0 solid var(--pc);padding:10px 14px 16px;transition:transform .18s cubic-bezier(.3,1.3,.6,1);position:absolute;overflow-y:auto}.drawer.left{width:min(360px,88vw);padding-top:calc(10px + env(safe-area-inset-top));border-right-width:4px;top:0;bottom:0;left:0;transform:translate(-104%)}.drawer.right{border-left-width:4px;width:360px;max-height:calc(100% - 140px);top:56px;right:0;transform:translate(104%)}.drawer.open{transform:none}.drawer:not(.open){visibility:hidden;pointer-events:none;transition:transform .18s cubic-bezier(.3,1.3,.6,1),visibility 0s linear .18s}.drawerHead{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.drawerHead b{background:var(--pc);color:var(--ink);transform:skewX(var(--slant));padding:3px 14px;display:inline-block}@media (width<=760px),(aspect-ratio<=1){.drawer.right{top:auto;bottom:calc(64px + env(safe-area-inset-bottom));border-top-width:4px;border-left-width:0;width:auto;max-height:42dvh;left:0;right:0;transform:translateY(calc(100% + 90px))}.drawer.right.open{transform:none}}.seg{flex-wrap:wrap;gap:8px;display:flex}.unitCard .hints{flex-direction:column;gap:4px;margin:8px 0;font-size:.9em;display:flex}.hMove{color:var(--cyan)}.hAtk{color:#ff8f80}.hShoot{color:var(--orange)}.hint{margin:6px 0;font-size:.92em}.reserves{flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;display:flex}.pl{padding:3px 0}.pl.out{opacity:.45;text-decoration:line-through}.result h3{color:var(--yellow);margin:4px 0;font-size:1.4em}.log{font-size:.86em}.ev{border-bottom:2px solid var(--ink-3);gap:8px;padding:6px 4px;display:flex}.ev.cur{background:var(--yellow);color:var(--ink)}.ev.turn,.ev.phase{color:var(--yellow)}.ev.cur.turn,.ev.cur.phase{color:var(--ink)}.ev.removed,.ev.over{color:#ff8f80;font-weight:800}.evIcon{text-align:center;flex:none;width:1.4em}.actionBar{z-index:15;padding:8px 10px calc(8px + env(safe-area-inset-bottom));pointer-events:none;justify-content:center;align-items:center;gap:10px;display:flex;position:absolute;bottom:0;left:0;right:0}.actionBar>*{pointer-events:auto}.actionBar .skipAll{margin-right:auto}.actionBar .next{min-width:110px;margin-left:auto;font-size:1.05em}.readPlate{background:var(--paper);min-width:0;max-width:720px;color:var(--ink);border:3px solid var(--ink);filter:drop-shadow(3px 3px #000);cursor:pointer;flex:auto;align-items:center;gap:8px;padding:8px 14px;font-size:.9em;animation:.16s cubic-bezier(.3,1.6,.6,1) plateIn;display:flex}.readPlate.quiet{background:var(--ink);color:var(--paper);filter:none;opacity:.85;cursor:default;border-color:var(--ink-3)}.readText{-webkit-line-clamp:3;-webkit-box-orient:vertical;flex:1;min-width:0;display:-webkit-box;overflow:hidden}.readCount{background:var(--ink);color:var(--yellow);transform:skewX(var(--slant));flex:none;padding:2px 8px;font-size:.8em}.dice{flex-wrap:wrap;gap:3px;max-width:40%;display:flex}.dice i{background:var(--ink);width:1.6em;height:1.6em;color:var(--paper);border-radius:3px;place-items:center;font-size:.85em;font-style:normal;font-weight:900;display:grid}@keyframes plateIn{0%{opacity:0;transform:translateY(8px)skew(-6deg)}to{opacity:1;transform:none}}@media (width<=560px){.actionBar{gap:6px}.actionBar .next{min-width:84px;padding:10px 12px}.actionBar .skipAll{padding:10px}.readPlate{padding:6px 8px;font-size:.8em}.dice{display:none}}.confirmPlate,.choicePlate,.chooser{z-index:25;background:var(--paper);color:var(--ink);border:3px solid var(--ink);filter:drop-shadow(4px 4px #000);padding:10px 14px;animation:.16s cubic-bezier(.3,1.6,.6,1) plateIn;position:absolute}.confirmPlate{width:250px;bottom:90px;left:50%}.confirmPlate.bad{background:var(--red);color:#fff}.confirmPlate .cTitle,.choicePlate .cTitle{font-size:1.05em}.confirmPlate .row,.choicePlate .row{margin:8px 0 0}.confirmPlate .row button{color:var(--paper);flex:1}.confirmPlate .row button.primary,.confirmPlate .row button.ghostBtn{color:var(--ink)}.choicePlate{left:50%;bottom:calc(80px + env(safe-area-inset-bottom));border-color:var(--yellow);width:min(520px,94vw);transform:translate(-50%)}.choicePlate .row button{color:var(--paper);flex:1}.choicePlate .row button.primary{color:var(--ink)}.chooser{gap:8px;display:flex}.chooser button{color:var(--paper)}.table{fill:var(--table)}.terrain{stroke:none}.terrain.wood{fill:#25402a}.terrain.hill{fill:#6f6a4a}.terrain.rocky{fill:#5a5650}.terrain.marsh{fill:#36524f}.terrain.ruins{fill:#5b5048}.terrain.lake{fill:#23486a}.terrain.barrier{fill:var(--violet)}.terrain.lava{fill:#c6401c}.terrain.thorns{fill:#4f3f25}.terrain.site{fill:#b8a865}.terrain.site.despair{fill:#3a3a3a}.terrain.site.faerie{fill:#6fa585}.terrain.site.logic{fill:#7d8fb0}.obstacle{fill:none;stroke-linecap:square}.obstacle.wall{stroke:#c9c1ae;stroke-width:.6px}.obstacle.hedge{stroke:#2f6a28;stroke-width:.9px}.tlabel{fill:#fff5;text-anchor:middle;pointer-events:none;letter-spacing:.05px;font-size:.85px;font-weight:900}.ulabel{fill:var(--paper);text-anchor:middle;paint-order:stroke;stroke:var(--ink);stroke-width:.22px;pointer-events:none;font-size:.95px;font-weight:800}.model{stroke:var(--ink);stroke-width:.12px}.model.leader{stroke:var(--yellow);stroke-width:.26px}.unit.sel .model{stroke:var(--paper);stroke-width:.24px}.unit.movable:not(.sel) .model{stroke:#fffb}.unit.battered .model{opacity:.7}.unit.dim{opacity:.55}.batteredSlash{stroke:var(--red);stroke-width:.35px;stroke-linecap:square;pointer-events:none}.reachFill{fill:var(--cyan);fill-opacity:.2}.reachEdge{fill:none;stroke:var(--cyan);stroke-width:.16px}.shootRange{fill:none;stroke:var(--orange);stroke-opacity:.22;stroke-width:.08px;stroke-dasharray:.3 .7}.tgtAtk{fill:none;stroke:var(--red);stroke-width:.25px}.tgtShoot{fill:none;stroke:var(--orange);stroke-width:.2px;stroke-dasharray:.4 .25}.tgtSpell{fill:none;stroke:var(--violet);stroke-width:.25px;stroke-dasharray:.5 .3}.oddsChip{text-anchor:middle;fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:.3px;pointer-events:none;font-size:.8px;font-weight:900}.movePlan .planPath{fill:none;stroke:var(--cyan);stroke-width:.22px;stroke-linejoin:round}.movePlan.clamped .planPath{stroke:var(--yellow)}.movePlan.bad .planPath{stroke:var(--red);stroke-dasharray:.4 .3}.movePlan .planGhost{fill:#fff3;stroke:var(--paper);stroke-width:.1px}.movePlan.bad .planGhost{fill:#e5322d44;stroke:var(--red)}.planCost{text-anchor:middle;fill:var(--ink);paint-order:stroke;stroke:var(--cyan);stroke-width:.35px;font-size:1.1px;font-weight:900}.confirmPlus circle{fill:var(--ink);stroke:var(--yellow);stroke-width:.2px;animation:.5s step-end infinite plusFlash}.confirmPlus path{stroke:var(--yellow);stroke-width:.32px;stroke-linecap:square;animation:.5s step-end infinite plusFlashLine}@keyframes plusFlash{0%{fill:var(--ink);stroke:var(--yellow)}50%{fill:var(--yellow);stroke:var(--ink)}}@keyframes plusFlashLine{0%{stroke:var(--yellow)}50%{stroke:var(--ink)}}@media (prefers-reduced-motion:reduce){.confirmPlus circle,.confirmPlus path{animation:none}}.ghost circle{fill:#fff3;stroke:var(--paper);stroke-width:.1px}.ghost.bad circle{fill:#e5322d44;stroke:var(--red)}.ghostReason{fill:#fff;text-anchor:middle;paint-order:stroke;stroke:var(--ink);stroke-width:.25px;font-size:1px;font-weight:800}.focusRing{fill:none;stroke:var(--yellow);stroke-width:.22px;stroke-dasharray:.7 .35}.focusRing.primary{stroke-width:.34px;stroke-dasharray:none;animation:1s ease-in-out infinite ringPulse}@keyframes ringPulse{50%{stroke-opacity:.35}}.focusTag rect{fill:var(--yellow);stroke:var(--ink);stroke-width:.12px}.focusTag text{text-anchor:middle;fill:var(--ink);font-size:.9px;font-weight:900}.marker circle{fill:#fff3;stroke:#fff;stroke-width:.15px}.marker.crystal circle{fill:#7fe8ff;stroke:#1b8fb0}.marker.exit circle{fill:#fff5;stroke:var(--yellow);stroke-dasharray:.4 .25;stroke-width:.25px}.marker.pot circle{fill:#3a2a1a;stroke:var(--orange);stroke-width:.3px}.marker.watcher circle{fill:#e8c93a88;stroke:#b08f10;stroke-width:.25px}.marker.token circle{fill:var(--yellow);stroke-width:.25px}.mlabel{fill:#fff;text-anchor:middle;paint-order:stroke;stroke:var(--ink);stroke-width:.18px;font-size:1.1px;font-weight:800}.quests{flex-basis:100%;font-size:.85em}.quests label.chk{margin:.15em 0;display:block}.selChip{background:var(--ink-2);color:var(--paper);text-transform:none;text-overflow:ellipsis;white-space:nowrap;max-width:52vw;font-weight:600;overflow:hidden}.selChip:before{background:var(--ink-2);box-shadow:inset 0 -4px 0 var(--pc)}.selChip b{color:var(--pc);margin-right:4px}@media (width<=560px){.selChip .muted{display:none}}
