:root{--ink:#11152b;--sea:#1a2142;--panel:#232c58;--panel-hi:#2f3a72;--line:#3d4880;--text:#eef0fb;--muted:#a7afd8;--paper:#f1efff;--font:ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;--gutter:16px}.btn,.chip-btn{font:inherit;color:var(--text);background:var(--panel);border:2px solid var(--line);cursor:pointer;touch-action:manipulation;border-radius:12px;min-height:44px;padding:0 18px;font-weight:700}.btn:active,.chip-btn:active{transform:translateY(1px)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--paper);border-color:var(--paper);color:var(--ink)}.btn-quiet{color:var(--muted);background:0 0;padding:0 12px}.btn-big{min-height:56px;padding:0 40px;font-size:1.2rem}.btn:focus-visible,.chip-btn:focus-visible,.hud select:focus-visible{outline-offset:2px;outline:3px solid #fff}.chip-btn[aria-pressed=true]{background:var(--paper);border-color:var(--paper);color:var(--ink);box-shadow:0 0 0 3px var(--ink), 0 0 0 5px var(--paper)}.title{max-width:560px;min-height:100dvh;padding:36px var(--gutter);flex-direction:column;justify-content:center;gap:22px;margin:0 auto;display:flex}.title-name{letter-spacing:-.04em;margin:0;font-size:clamp(3.4rem,17vw,6rem);font-weight:900;line-height:.95}.title-mark{width:min(320px,100%);height:auto}.title-tagline{color:var(--muted);margin:0;font-size:1.1rem}.choice{flex-direction:column;gap:10px;display:flex}.choice-label{color:var(--muted);margin:0;font-size:1rem;font-weight:600}.choice-row{flex-wrap:wrap;gap:10px;display:flex}.title .btn-big{align-self:flex-start;margin-top:8px}.game{max-width:1100px;padding:10px var(--gutter) 14px;flex-direction:column;gap:10px;min-height:100dvh;margin:0 auto;display:flex}.board-wrap{flex:1;min-height:320px;position:relative}.board-wrap .board{background:#1d4f86;border-radius:16px;height:100%;position:absolute;inset:0}@media (width>=720px){.game{height:100dvh}.board-wrap{min-height:0}}.board{touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;width:100%;height:auto;display:block}.board .layer-sea,.board .layer-ground,.board .layer-over{pointer-events:none}.board .territory{cursor:pointer;transition:opacity .15s}.board.is-locked .territory{cursor:default}.board .fill{fill:var(--c);stroke:var(--c);stroke-width:3px;stroke-linejoin:round;opacity:.44}.board .borders{pointer-events:none}.board .border-diff,.board .border-same{fill:none;stroke:var(--cd);stroke-linecap:round;stroke-linejoin:round}.board .border-diff{stroke-width:8px}.board .border-same{stroke-width:2px;stroke-opacity:.3}.board .layer-highlight{pointer-events:none}.board .token{cursor:pointer;transition:opacity .15s}.board.is-locked .token{cursor:default}.token-plate{fill:var(--ink);stroke:var(--c);stroke-width:3px}.units-hit{fill:#0000}.token-emblem{fill:var(--c)}.token-count{fill:#fff;font-family:var(--font);font-variant-numeric:tabular-nums;font-size:22px;font-weight:800}.units-stack .token-count{font-size:23px}.u-die{fill:var(--c);stroke:#ffffffb3;stroke-width:.8px}.u-pip{fill:var(--pip)}.u-edge{fill:none;stroke:var(--cd);stroke-width:1.2px;stroke-linecap:round}.u-ground{fill:#141e1466}.u-base{fill:var(--c);stroke:#ffffffb3;stroke-width:.8px}.u-pole{fill:none;stroke:#e9e3d0;stroke-width:1.4px;stroke-linecap:round}.u-flag{fill:var(--c);stroke:#ffffffbf;stroke-width:.8px;stroke-linejoin:round}.is-full .token-plate{stroke-width:6px}.token-body{transition:transform .12s}.is-selected .token-body{transform:scale(1.2)}.has-selection .territory:not(.is-selected):not(.is-target),.has-attack .territory:not(.is-attack),.has-selection .token:not(.is-selected):not(.is-target),.has-attack .token:not(.is-attack){opacity:.5}.hl-halo,.hl-line{fill:none;stroke-linecap:round;stroke-linejoin:round}.hl-halo{stroke:var(--ink);stroke-width:10px}.hl-line{stroke:#fff;stroke-width:4.5px}.hl-target .hl-line{stroke-dasharray:9 8}.hl-selected .hl-line,.hl-from .hl-line{stroke-width:6px}.hl-to .hl-line{stroke-width:6px;stroke-dasharray:14 7}.hl-hatch{fill:url(#hexdice-hatch)}.arrow-halo{fill:none;stroke:var(--ink);stroke-width:11px;stroke-linecap:round}.arrow-line{fill:none;stroke:#fff;stroke-width:5px;stroke-linecap:round}.arrow-head{fill:#fff;stroke:var(--ink);stroke-width:3px;stroke-linejoin:round;paint-order:stroke}.roll{--die:28px;background:var(--panel);border-radius:14px;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;height:124px;padding:10px 12px;display:grid;position:relative}.roll-side{border:2px solid #0000;border-radius:10px;grid-template-columns:auto 1fr;grid-template-areas:"who who""dice dice""sum cost";align-items:baseline;gap:4px 8px;min-width:0;padding:4px 8px;transition:opacity .2s;display:grid}.roll-attacker{text-align:right;grid-template-columns:1fr auto;grid-template-areas:"who who""dice dice""cost sum"}.roll-attacker .roll-who{justify-self:end}.roll-who{grid-area:who;align-items:center;gap:6px;max-width:100%;font-weight:700;display:flex}.roll-attacker .roll-who{flex-direction:row-reverse}.roll-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.emblem{width:20px;height:20px;fill:var(--c);flex:none}.roll-dice{flex-wrap:wrap;grid-area:dice;gap:4px;display:flex}.roll-attacker .roll-dice{justify-content:flex-end}.die{width:var(--die);height:var(--die)}.die-plate{fill:var(--ink);stroke:var(--c);stroke-width:6px}.die-pip{fill:var(--c)}.is-rolling .die{animation:.16s linear infinite alternate tumble}@keyframes tumble{0%{transform:rotate(-9deg)translateY(-1px)}to{transform:rotate(9deg)translateY(1px)}}.roll-sum{font-variant-numeric:tabular-nums;grid-area:sum;min-height:1.15em;font-size:1.5rem;font-weight:800;line-height:1.15}.roll-cost{white-space:nowrap;min-height:1.2em;color:var(--muted);font-variant-numeric:tabular-nums;grid-area:cost;font-size:.8rem;font-weight:700}.roll-side.is-loser .roll-cost{color:#ff8a7a}.roll-mid{text-align:center;min-width:4.2rem;color:var(--muted);font-weight:700}.is-settled .roll-mid{color:var(--text)}.roll-side.is-winner{border-color:var(--c);background:var(--panel-hi)}.roll-side.is-winner .roll-sum{font-size:1.7rem}.roll-side.is-winner .roll-sum:after{content:" ✓";font-size:1.1rem}.roll-side.is-loser{opacity:.55}.roll.is-idle .roll-side,.roll.is-idle .roll-mid{visibility:hidden}.roll-hint{color:var(--muted);justify-content:center;align-items:center;margin:0;display:none;position:absolute;inset:0}.roll.is-idle .roll-hint{display:flex}.roll-message{text-align:center;grid-column:1/-1;margin:0;font-size:1.1rem;font-weight:700;line-height:1.35;display:none}.roll.is-message .roll-side,.roll.is-message .roll-mid{display:none}.roll.is-message .roll-message{display:block}.board .layer-placements{pointer-events:none}.placement.is-loss{fill:#ff8a7a}.placement{fill:#fff;stroke:var(--ink);stroke-width:5px;paint-order:stroke;font-family:var(--font);animation:placement-float var(--dur,.7s) ease-out forwards;font-size:34px;font-weight:800}@keyframes placement-float{0%{opacity:0;transform:translateY(6px)}15%{opacity:1;transform:translateY(0)}80%{opacity:1}to{opacity:0;transform:translateY(-14px)}}.token.is-placed .token-body{animation:.5s ease-in-out infinite placement-pulse}.token.is-placed .token-plate{stroke:#fff}@keyframes placement-pulse{50%{transform:scale(1.25)}}.chips{grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.chip{background:var(--panel);border:3px solid #0000;border-radius:12px;align-items:center;gap:6px;min-width:0;padding:6px 8px;display:flex;position:relative}.chip-badge{background:var(--c);border-radius:8px;flex:none;place-items:center;width:26px;height:26px;display:grid}.chip-badge .emblem{width:18px;height:18px;fill:var(--ink)}.chip-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.9rem;font-weight:600;overflow:hidden}.chip-group{font-variant-numeric:tabular-nums;margin-left:auto;font-size:1.1rem;font-weight:800}.chip-reserve{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem;font-weight:700}.chip-bonus{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.8rem;font-weight:700}.chip.is-current{background:var(--panel-hi);border-color:#fff}.chip.is-out{opacity:.4;filter:grayscale()}.chip.is-out .chip-name{text-decoration:line-through}.chip.is-out .chip-group{font-size:.8rem;font-weight:600}.chip.is-you .chip-name{color:var(--paper);font-weight:800}.controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;margin-top:10px;display:flex}.controls-secondary{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.round{color:var(--muted);white-space:nowrap;font-weight:700}.speed{color:var(--muted);align-items:center;gap:6px;font-weight:600;display:flex}.hud select{font:inherit;color:var(--text);background:var(--panel);border:2px solid var(--line);border-radius:10px;min-height:40px;padding:0 8px;font-weight:600}.end-turn{min-width:150px;min-height:52px;font-size:1.1rem}.preview{background:var(--panel);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.preview-question{margin:0;font-size:1.3rem;font-weight:800}.preview-head{flex-wrap:wrap;align-items:center;gap:4px 12px;display:flex}.preview-you{color:var(--muted);align-items:center;gap:6px;font-weight:700;display:inline-flex}.preview-you[hidden]{display:none}.preview-you-chip{display:inline-flex}.preview-seed{color:var(--muted);font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:.8rem}.preview-actions{gap:10px;display:flex}.preview-actions .btn{min-width:84px;min-height:52px}.overlay{text-align:center;border-block:3px solid var(--paper);background:#11152bf0;padding:22px 16px;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.overlay-heading{letter-spacing:-.02em;margin:0 0 14px;font-size:clamp(1.6rem,6vw,2.6rem);font-weight:900}.overlay-actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}@media (width<=640px){.roll{--die:16px;gap:4px;height:96px;padding:6px 8px}.roll-dice{flex-wrap:nowrap;gap:2px}.roll-message{font-size:.95rem}.roll-side{padding:2px 4px}.roll-sum{font-size:1.3rem}.roll-side.is-winner .roll-sum{font-size:1.6rem}.roll-mid{min-width:2.4rem;font-size:.8rem}.chips{grid-template-columns:repeat(4,1fr);gap:10px 6px;padding-top:6px}.chip{flex-wrap:wrap;gap:4px;padding:6px}.chip-bonus{text-align:right;flex:1 0 100%}.chip-name{display:none}.chip.is-you .chip-name{background:var(--paper);color:var(--ink);border-radius:6px;padding:0 6px;font-size:.7rem;line-height:1.4;display:block;position:absolute;top:-9px;left:8px}.speed-label{display:none}.controls-secondary{gap:8px}.end-turn{flex:140px}}@media (prefers-reduced-motion:reduce){.token.is-placed .token-body,.is-rolling .die{animation:none}.token-body,.board .territory{transition:none}}*,:before,:after{box-sizing:border-box}[hidden]{display:none!important}html,body{min-height:100%;font-family:var(--font);background:var(--ink);color:var(--text);-webkit-text-size-adjust:100%;margin:0}body{overflow-x:hidden}.placeholder{text-align:center;padding:2rem 1rem}
