.game-surface{position:relative;isolation:isolate;min-width:0}
.game-surface>svg{display:block;width:100%;height:auto;max-width:100%}
.game-surface__layer{position:absolute;inset:0;z-index:5;pointer-events:none;font-family:Inter,ui-sans-serif,system-ui,sans-serif;line-height:1.2;color:#effffa}
.game-surface [hidden]{display:none!important}
.game-surface [data-game-lifted]{opacity:0!important}
.game-surface__actor{position:absolute;z-index:3;transform:translate(-50%,-50%);width:40px;height:44px;margin:0;padding:0;box-sizing:border-box;border:0;border-radius:var(--radius-control,4px);color:inherit;background:transparent;pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;cursor:grab}
.game-surface__actor:focus-visible{outline:2px solid #fff7cd;outline-offset:2px;box-shadow:0 0 0 6px #ffdf7430}
.game-surface--dragging,.game-surface--dragging .game-surface__actor{cursor:grabbing;user-select:none;-webkit-user-select:none}
.game-surface[data-game-swipe=true]{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.game-surface__fields,.game-surface__lift{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.game-surface__fields{z-index:1}
.game-surface__lift{z-index:4}
/* Field tiles lie on the board itself; strokes keep their screen width at any board scale. */
.game-surface__fieldset{--game-actor-color:#ffd85e;pointer-events:none;animation:game-surface-field-in .16s ease-out both}
.game-surface__fieldset--preview{opacity:.55}
.game-surface__field{fill:color-mix(in srgb,var(--game-actor-color) 16%,transparent);stroke:color-mix(in srgb,var(--game-actor-color) 75%,transparent);stroke-width:1.5px;vector-effect:non-scaling-stroke;stroke-linejoin:round;transform-box:fill-box;transform-origin:center;transition:fill .14s,stroke .14s,opacity .14s}
.game-surface__field--home{fill:color-mix(in srgb,#fff 5%,transparent);stroke:#ffffff6b;stroke-dasharray:3 4}
.game-surface__field.is-target{fill:color-mix(in srgb,var(--game-actor-color) 48%,transparent);stroke:var(--game-actor-color);stroke-width:2.5px;animation:game-surface-field-pop .28s cubic-bezier(.3,1.6,.5,1) both,game-surface-field-breathe 1s ease-in-out .28s infinite alternate}
.game-surface__fieldset[data-state=home] .game-surface__field--home{stroke:var(--game-actor-color);stroke-dasharray:none}
.game-surface__fieldset[data-state=overdrag] .game-surface__field:not(.game-surface__field--home){opacity:.3}
.game-surface__fieldset[data-state=overdrag] .game-surface__field--home{fill:color-mix(in srgb,var(--game-actor-color) 30%,transparent);stroke:var(--game-actor-color);stroke-width:2.5px;stroke-dasharray:none;animation:game-surface-field-pop .28s cubic-bezier(.3,1.6,.5,1) both}
@keyframes game-surface-field-in{from{opacity:0}}
@keyframes game-surface-field-pop{0%{transform:scale(.84)}100%{transform:scale(1)}}
@keyframes game-surface-field-breathe{to{fill:color-mix(in srgb,var(--game-actor-color) 32%,transparent)}}
.game-surface__status{position:absolute;left:9px;top:9px;max-width:calc(100% - 100px);padding:5px 10px;border:1px solid #b5e5d929;border-radius:var(--radius-label,999px);color:#e5f5ef;background:#11282cce;font-size:10px;text-align:center;backdrop-filter:blur(8px);box-shadow:0 2px 10px #0002}
.game-surface__start{position:absolute;right:12px;bottom:12px;pointer-events:auto;cursor:pointer;border:1px solid #b8e7c866;border-radius:var(--radius-control,4px);padding:8px 17px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;color:#f1ffed;background:#193e36df;box-shadow:0 3px 14px #001b2259;backdrop-filter:blur(8px)}
.game-surface__start:hover,.game-surface__start:focus-visible{background:#285947;outline:2px solid #bbebc9;outline-offset:2px}
svg[data-game-layout="compact"] [data-game-chrome],svg[data-game-layout="compact"] [data-game-decoration]{display:none!important}
svg[data-game-layout="compact"] [data-game-compact-score]{display:inline!important}
svg[data-game-layout="full"] [data-game-compact-score]{display:none!important}
svg[data-game-layout="full"] [data-game-chrome],svg[data-game-layout="full"] [data-game-decoration]{display:inline!important}
@media(pointer:coarse){.game-surface__actor{min-width:48px;min-height:52px}}
@media(prefers-reduced-motion:reduce){.game-surface__field,.game-surface__fieldset{transition:none;animation:none}}
/* Lifted game figure (GameSurfaceFigure in game-surface.js). Geometry and motion are
   written per frame as SVG attributes; these rules only paint the accents. */
.game-surface__figure,
.game-surface__figure-ground{pointer-events:none}
.game-surface__figure-sweat path{fill:#9ddcff;stroke:#2f6f99;stroke-width:.11;stroke-linejoin:round}
.game-surface__figure-glint{fill:#fff;opacity:.85}
.game-surface__figure-strain path{fill:none;stroke:#ff7a59;stroke-width:.24;stroke-linecap:round}
.game-surface__figure-impact{fill:#fff6c4;stroke:#f29a2e;stroke-width:.12;stroke-linejoin:round}
.game-surface__figure-dust-ring{fill:none;stroke:#e6f1f0;stroke-width:.07}
.game-surface__figure-dust{fill:#e6f1f0}
