.tanks{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%}
.tanks-hud{display:flex;align-items:center;justify-content:space-between;width:min(100%,360px);gap:8px;padding:0 2px}
.tanks-hp{display:flex;align-items:center;gap:4px}
.tanks-hp.p1{flex-direction:row-reverse}
.tanks-pip{width:13px;height:13px;border:2px solid var(--ink);border-radius:3px 4px 3px 5px;background:transparent;position:relative;transition:transform .2s ease,opacity .2s ease}
.tanks-hp.p1 .tanks-pip{border-color:var(--red)}
.tanks-pip.on{background:color-mix(in srgb,var(--ink) 78%,var(--paper))}
.tanks-hp.p1 .tanks-pip.on{background:color-mix(in srgb,var(--red) 78%,var(--paper))}
.tanks-pip:not(.on){opacity:.3}
.tanks-wind{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1.5px solid var(--pencil);border-radius:var(--sketch,10px 14px 12px 11px);background:rgba(255,255,255,.55);color:var(--ink);font-weight:700;font-size:15px;line-height:1}
.tanks-wind-ico{width:32px;height:15px;display:block}
.tanks-wind-ico .pen{stroke:var(--game);stroke-width:2.2}
.tanks-wind-num{min-width:12px;text-align:center}

.tanks-field{position:relative;width:min(100%,360px);aspect-ratio:3/2;max-height:52dvh;border:2px solid var(--ink);border-radius:8px 11px 9px 12px;background:color-mix(in srgb,var(--paper) 94%,#fff);overflow:hidden}
.tanks-svg{display:block;width:100%;height:100%;touch-action:none;user-select:none;cursor:crosshair}
.tanks-hatch{stroke:color-mix(in srgb,var(--game) 52%,var(--pencil));stroke-width:1.6;opacity:.55}
.tanks-hill-fill{opacity:.9}
.tanks-hill-line{fill:none;stroke:var(--game);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.tanks-breeze{fill:none;stroke:var(--pencil);stroke-width:1.2;stroke-dasharray:4 4;opacity:.45;stroke-linecap:round}

.tanks-unit{color:var(--ink)}
.tanks-unit.p1{color:var(--red)}
.tanks-unit.dropping{animation:tanks-drop 260ms var(--ease-pen,ease-out) both}
@keyframes tanks-drop{from{transform:translateY(var(--dy))}to{transform:translateY(0)}}
.tanks-barrel{stroke:currentColor;stroke-width:2.8;stroke-linecap:round}
.tanks-turret,.tanks-hull,.tanks-tread{fill:var(--paper);stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tanks-hull{fill:color-mix(in srgb,currentColor 22%,var(--paper))}
.tanks-wheel{fill:currentColor}
.tanks-dead-x{fill:none;stroke:var(--red);stroke-width:2.4;stroke-linecap:round}

.tanks-aim{color:var(--ink);pointer-events:none}
.tanks-aim.p1{color:var(--red)}
.tanks-aim-line{stroke:currentColor;stroke-width:2.1;stroke-dasharray:5 4;stroke-linecap:round;opacity:.85}
.tanks-aim-head{fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.tanks-aim-knob{fill:color-mix(in srgb,var(--game-2) 45%,var(--paper));stroke:currentColor;stroke-width:1.8}

.tanks-arc{fill:none;stroke:var(--ink);stroke-width:2.1;stroke-dasharray:2.5 4.5;stroke-linecap:round;stroke-linejoin:round}
.tanks-arc.p1{stroke:var(--red)}
.tanks-arc.faded{opacity:.42}

.tanks-splat{color:var(--game-2)}
.tanks-splat-core{fill:color-mix(in srgb,currentColor 70%,var(--paper));stroke:var(--ink);stroke-width:1.6}
.tanks-splat-rays{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

.tanks-controls{display:flex;align-items:center;justify-content:space-between;width:min(100%,360px);gap:10px}
.tanks-readout{display:flex;flex-direction:column;min-width:0;gap:1px}
.tanks-vals{font-size:18px;font-weight:700;color:var(--ink);line-height:1.1}
.tanks-hint{margin:0;font-size:14px;min-height:1.1em}
.tanks-fire{min-width:108px;padding:9px 20px;font-size:19px;letter-spacing:.03em}
.tanks-fire:disabled{opacity:.45;pointer-events:none}

@media (max-height:660px){
  .tanks{gap:5px}
  .tanks-field{max-height:46dvh}
  .tanks-fire{padding:7px 16px;font-size:17px}
}
