:root{--bg:#1d2421;--fg:#ece6d6;--muted:#a9a28f;--acc:#d9a441;--bad:#e0574a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;color:var(--fg);overscroll-behavior:none;margin:0}button,select,input{font:inherit;color:inherit;background:#2f3a35;border:1px solid #4a574f;border-radius:10px;min-height:44px;padding:10px 14px}button{cursor:pointer}button.primary{background:var(--acc);color:#1a1a1a;border-color:var(--acc);font-weight:600}button.on{outline:2px solid var(--acc)}button:disabled{opacity:.45}button.ghostBtn{background:0 0;border-color:#0000;min-width:44px}button.wide{width:100%;margin-top:8px}button.big{padding:14px 28px;font-size:1.15em}.muted{color:var(--muted)}.small{font-size:.85em}.warn{color:var(--acc)}.error{color:#fff;background:var(--bad);border-radius:8px;margin:6px 0;padding:8px 12px}.row{flex-wrap:wrap;gap:8px;margin:6px 0;display:flex}.dot{vertical-align:-1px;border-radius:50%;width:12px;height:12px;margin-right:6px;display:inline-block}.setup{max-width:860px;margin:0 auto;padding:16px 14px 60px}.setup h1{color:var(--acc);margin:8px 0 0;font-family:Georgia,serif;font-size:2.2em}.setup section{margin:18px 0}.seat{background:#26302b;border-left:6px solid;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;padding:10px;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:#1f2824;border-radius:10px;width:100%;padding:8px}.brow{border-bottom:1px solid #333;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:30;background:#26302b;border-radius:12px;padding:12px;position:fixed;top:60px;left:8px;right:8px;box-shadow:0 8px 30px #000a}.links input{width:100%}.game{flex-direction:column;height:100dvh;display:flex}.topbar{padding:2px 6px;padding-top:env(safe-area-inset-top);background:#161c19;border-bottom:3px solid;align-items:center;gap:6px;display:flex}.turnInfo{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.main{flex:1;min-height:0;display:flex}.board{touch-action:none;-webkit-user-select:none;user-select:none;background:#121614;flex:1;min-width:0;display:block}.panel{background:#1a201d;border-left:1px solid #333;width:340px;padding:10px;overflow-y:auto}@media (width<=820px),(aspect-ratio<=1){.main{flex-direction:column}.board{flex:60%}.panel{width:100%;max-height:40dvh;padding-bottom:calc(10px + env(safe-area-inset-bottom));border-top:1px solid #333;border-left:0;flex:0 auto}.panel.withLog{max-height:60dvh}.roster{display:none}}.unitCard{background:#26302b;border-radius:12px;padding:10px}.hints{flex-direction:column;gap:2px;margin:6px 0;font-size:.9em;display:flex}.hAtk{color:#ff8f80}.hShoot{color:#ffbf66}.reserves{flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;display:flex}.roster{margin-top:10px;font-size:.9em}.pl.out{opacity:.45;text-decoration:line-through}.log,.lastLog{margin-top:10px;font-size:.82em}.log{max-height:50vh;overflow-y:auto}.ev{border-bottom:1px solid #2a2f2c;padding:3px 0}.ev.turn,.ev.phase{color:var(--acc)}.ev.removed,.ev.over{color:#ff8f80;font-weight:600}.result h3{color:var(--acc);margin:4px 0}.chooser{z-index:20;background:#26302b;border-radius:12px;gap:6px;padding:8px;display:flex;position:fixed;box-shadow:0 6px 24px #000c}.modal{z-index:25;background:#0006;justify-content:center;align-items:flex-end;padding:12px;display:flex;position:fixed;inset:0}.modal .card{width:100%;max-width:520px;margin-bottom:env(safe-area-inset-bottom);background:#26302b;border-radius:14px;padding:14px;box-shadow:0 8px 30px #000c}.modal .row button{flex:1}.terrain{stroke-width:.12px}.terrain.wood{fill:#2f5a2a;stroke:#1f3b1c}.terrain.hill{fill:#9a8c5e;stroke:#7a6c40;opacity:.85}.terrain.rocky{fill:#8a857a;stroke:#66625a;opacity:.8}.terrain.marsh{fill:#4d6f6a;stroke:#3b5550;opacity:.85}.terrain.ruins{fill:#7c6f66;stroke:#5d524b;stroke-dasharray:.5 .3}.terrain.lake{fill:#2e5f86;stroke:#234a69}.obstacle{fill:none;stroke-linecap:round}.obstacle.wall{stroke:#b9b2a2;stroke-width:.6px}.obstacle.hedge{stroke:#3e7a2f;stroke-width:.9px}.tlabel{fill:#fff8;text-anchor:middle;pointer-events:none;font-size:1px}.ulabel{fill:#fff;text-anchor:middle;paint-order:stroke;stroke:#000;stroke-width:.18px;pointer-events:none;font-size:.95px}.model.mounted{filter:drop-shadow(0 0 .1px #000)}.unit.battered .model{opacity:.6}.unit.movable .model{stroke-dasharray:none}.unit.movable:not(.sel) .model{stroke:#fff9}.range circle{fill:#fff;fill-opacity:.035;stroke:none}.range .shootRange{fill:none;stroke:#ffbf66;stroke-opacity:.25;stroke-width:.1px;stroke-dasharray:.6 .4}.tgtAtk{fill:none;stroke:#ff5a4a;stroke-width:.22px}.tgtShoot{fill:none;stroke:#ffb347;stroke-width:.18px;stroke-dasharray:.4 .25}.ghost circle{fill:#fff3;stroke:#fff;stroke-width:.1px}.ghost.clamped circle{stroke:var(--acc)}.ghost.bad circle{fill:#e0574a44;stroke:var(--bad)}.ghostReason{fill:#fff;text-anchor:middle;paint-order:stroke;stroke:#000;stroke-width:.2px;font-size:1px}.tgtSpell{fill:none;stroke:#b36bff;stroke-width:.25px;stroke-dasharray:.5 .3}.terrain.barrier{fill:#c9a7ff;opacity:.85;stroke:#7a3cff;stroke-width:.15px}button.spell{border-color:#8a5cd6}button.spell.on{color:#fff;background:#6a3cb0}.terrain.lava{fill:#d2461e;opacity:.8;stroke:#ffb347;stroke-width:.15px}.terrain.thorns{fill:#5b4a2a;opacity:.75;stroke:#a33;stroke-width:.12px;stroke-dasharray:.4 .25}.terrain.site{fill:#f5e6a8;opacity:.55;stroke:#b08d2a;stroke-width:.15px;stroke-dasharray:.6 .3}.terrain.site.despair{fill:#444}.terrain.site.faerie{fill:#c9f0d9}.terrain.site.logic{fill:#c8d6f0}.marker circle{fill:#fff3;stroke:#fff;stroke-width:.15px}.marker.crystal circle{fill:#7fe8ff;stroke:#1b8fb0}.marker.exit circle{fill:#fff5;stroke:#ffe066;stroke-dasharray:.4 .25;stroke-width:.25px}.marker.pot circle{fill:#3a2a1a;stroke:#ff8c3a;stroke-width:.3px}.marker.watcher circle{fill:#e8c93a88;stroke:#b08f10;stroke-width:.25px}.marker.token circle{fill:#ffd54a;stroke-width:.25px}.mlabel{fill:#fff;text-anchor:middle;paint-order:stroke;stroke:#0008;stroke-width:.15px;font-size:1.1px}.scenario{margin:.2em 0 .4em;font-size:.85em}.scenario summary{cursor:pointer}.quests{flex-basis:100%;font-size:.85em}.quests label.chk{margin:.15em 0;display:block}.panel [data-testid=end-phase]{z-index:2;position:sticky;bottom:0;box-shadow:0 -8px 12px #1a201d}
