:root {
  color-scheme: light;
  --ink: #203021;
  --ink-soft: #43533f;
  --forest: #4f682f;
  --forest-dark: #34451f;
  --forest-light: #7d9650;
  --accent: #d89b3c;
  --sky: #cfe8e5;
  --ground: #90ac67;
  --mud: #806044;
  --paper: #f5f7ea;
  --radius: 18px;
  --shadow: 0 18px 42px rgb(52 69 31 / 0.2);
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background: #b9d5b3;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 4px solid #fff7b1;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.game-shell {
  min-height: 100dvh;
}

.start-screen {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(24px, 6vw, 88px);
  background:
    radial-gradient(circle at 14% 17%, rgb(255 255 255 / 0.62) 0 6%, transparent 6.5%),
    linear-gradient(142deg, #dcecc8 0 48%, #a7c681 48.2% 100%);
}

.start-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.game-kicker {
  margin: 0 0 14px;
  color: var(--forest-dark);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
}

.start-copy h1 {
  max-width: 6em;
  margin: 0;
  font-size: clamp(58px, 8.4vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.start-copy > p:not(.game-kicker) {
  max-width: 20em;
  margin: 24px 0 30px;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.4;
}

.primary-button {
  display: inline-flex;
  min-width: 188px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: var(--radius);
  padding: 16px 26px;
  color: #f9fbef;
  background: var(--forest-dark);
  box-shadow: 0 10px 0 #243116, var(--shadow);
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 #243116, 0 9px 18px rgb(52 69 31 / 0.18);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #f9fbef;
}

.hero-tank {
  position: relative;
  width: min(54vw, 720px);
  aspect-ratio: 1.45;
  justify-self: end;
  filter: drop-shadow(0 30px 25px rgb(35 54 26 / 0.22));
}

.tank-large {
  left: 2%;
  bottom: 18%;
  transform: scale(2.55);
  transform-origin: left bottom;
}

.hero-mud {
  position: absolute;
  border-radius: 50%;
  background: var(--mud);
  opacity: 0.72;
}

.mud-one { right: 5%; bottom: 20%; width: 16%; height: 8%; transform: rotate(12deg); }
.mud-two { right: 16%; bottom: 13%; width: 8%; height: 5%; transform: rotate(-10deg); }
.mud-three { left: 20%; bottom: 8%; width: 54%; height: 8%; opacity: 0.34; }

.play-screen {
  min-height: 100dvh;
  padding: 14px;
  background: #afcfa6;
}

.game-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1420px;
  margin: 0 auto 12px;
  padding: 0 10px;
}

.game-header h1 {
  margin: 0 0 3px;
  font-size: clamp(25px, 3vw, 39px);
  letter-spacing: -0.04em;
}

.game-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flag-progress {
  display: flex;
  gap: 9px;
}

.flag-progress span {
  position: relative;
  width: 31px;
  height: 34px;
  border-left: 4px solid var(--forest-dark);
  opacity: 0.28;
  transition: opacity 220ms ease, transform 220ms ease;
}

.flag-progress span::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 25px;
  height: 17px;
  border-radius: 3px 7px 7px 3px;
  background: #faf9ec;
  box-shadow: inset 0 0 0 2px rgb(52 69 31 / 0.2);
  content: "";
}

.flag-progress span.is-complete {
  opacity: 1;
  transform: translateY(-3px) rotate(-3deg);
}

.sound-button {
  min-width: 86px;
  min-height: 52px;
  border: 2px solid rgb(52 69 31 / 0.35);
  border-radius: 14px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgb(245 247 234 / 0.74);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.arena {
  position: relative;
  max-width: 1420px;
  height: calc(100dvh - 118px);
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid rgb(52 69 31 / 0.7);
  border-radius: var(--radius);
  background: linear-gradient(var(--sky) 0 56%, var(--ground) 56% 100%);
  box-shadow: var(--shadow), inset 0 0 0 4px rgb(255 255 255 / 0.34);
  isolation: isolate;
}

.sun {
  position: absolute;
  top: 6%;
  right: 7%;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f3c85b;
  box-shadow: 0 0 0 18px rgb(243 200 91 / 0.16);
}

.cloud {
  position: absolute;
  width: 110px;
  height: 34px;
  border-radius: 30px;
  background: rgb(255 255 255 / 0.62);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 2px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before { left: 18px; width: 46px; height: 46px; }
.cloud::after { right: 14px; width: 34px; height: 34px; }
.cloud-one { top: 9%; left: 9%; }
.cloud-two { top: 20%; left: 45%; transform: scale(0.72); opacity: 0.72; }

.hill {
  position: absolute;
  left: -5%;
  width: 110%;
  border-radius: 50% 50% 0 0;
}

.hill-back {
  bottom: 38%;
  height: 28%;
  background: #94b580;
  clip-path: polygon(0 76%, 14% 34%, 29% 70%, 43% 24%, 61% 69%, 78% 31%, 100% 71%, 100% 100%, 0 100%);
}

.hill-front {
  bottom: 34%;
  height: 20%;
  background: #73965d;
  clip-path: polygon(0 74%, 19% 38%, 34% 76%, 55% 30%, 71% 66%, 89% 42%, 100% 70%, 100% 100%, 0 100%);
}

.course-flag {
  position: absolute;
  bottom: 35%;
  width: 5px;
  height: 72px;
  background: var(--forest-dark);
}

.course-flag i {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 40px;
  height: 24px;
  border-radius: 2px 7px 7px 2px;
  background: #f4efe0;
}

.flag-left { left: 9%; }
.flag-right { right: 11%; transform: scaleX(-1); }

.mud-track {
  position: absolute;
  border-radius: 50%;
  background: rgb(108 77 53 / 0.43);
  transform: rotate(-5deg);
}

.mud-track-one { left: 5%; bottom: 9%; width: 48%; height: 15%; }
.mud-track-two { right: 6%; bottom: 23%; width: 43%; height: 12%; transform: rotate(5deg); }

.player-position {
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: 250px;
  height: 135px;
  z-index: 4;
}

.player-label {
  position: absolute;
  left: 36px;
  bottom: -2px;
  min-width: 136px;
  border-radius: 12px;
  padding: 8px 10px;
  color: #f9fbef;
  background: var(--forest-dark);
  box-shadow: 0 5px 0 rgb(36 49 22 / 0.45);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.tank {
  --tank-main: var(--forest);
  --tank-dark: var(--forest-dark);
  --tank-light: var(--forest-light);
  position: absolute;
  left: 18px;
  bottom: 24px;
  width: 196px;
  height: 102px;
  pointer-events: none;
}

.tank-turret {
  position: absolute;
  left: 78px;
  top: 13px;
  width: 92px;
  height: 39px;
  transform-origin: 24px 23px;
  transition: transform 480ms cubic-bezier(0.22, 0.78, 0.2, 1);
  z-index: 5;
}

.turret-body {
  position: absolute;
  left: 0;
  top: 10px;
  width: 68px;
  height: 31px;
  border: 3px solid var(--tank-dark);
  border-radius: 55% 45% 12px 12px;
  background: linear-gradient(150deg, var(--tank-light), var(--tank-main));
  box-shadow: inset 0 -7px 0 rgb(0 0 0 / 0.08);
}

.cannon {
  position: absolute;
  left: 55px;
  top: 20px;
  width: 112px;
  height: 11px;
  border: 3px solid var(--tank-dark);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: var(--tank-main);
  transform-origin: left center;
}

.cannon::after {
  position: absolute;
  right: -9px;
  top: -4px;
  width: 12px;
  height: 13px;
  border-radius: 3px;
  background: var(--tank-dark);
  content: "";
}

.top-gun {
  position: absolute;
  left: 98px;
  top: 0;
  width: 58px;
  height: 23px;
  z-index: 7;
}

.top-gun i {
  position: absolute;
  left: 5px;
  bottom: 1px;
  width: 8px;
  height: 18px;
  border-radius: 3px;
  background: var(--tank-dark);
}

.top-gun b {
  position: absolute;
  left: 7px;
  top: 1px;
  width: 50px;
  height: 7px;
  border-radius: 5px;
  background: var(--tank-dark);
}

.tank-hull {
  position: absolute;
  left: 16px;
  top: 47px;
  width: 165px;
  height: 40px;
  border: 3px solid var(--tank-dark);
  border-radius: 10px 18px 12px 16px;
  background: linear-gradient(160deg, var(--tank-light) 0 25%, var(--tank-main) 26% 100%);
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / 0.08);
  z-index: 3;
}

.tank-hull::before,
.tank-hull::after {
  position: absolute;
  top: 8px;
  width: 34px;
  height: 18px;
  border: 2px solid rgb(35 47 24 / 0.35);
  border-radius: 5px;
  content: "";
}

.tank-hull::before { left: 30px; }
.tank-hull::after { left: 72px; }

.front-slope {
  position: absolute;
  right: -11px;
  top: 4px;
  width: 28px;
  height: 30px;
  border-radius: 5px 17px 10px 4px;
  background: var(--tank-main);
  transform: skewX(-18deg);
}

.mud-shield {
  position: absolute;
  left: 14px;
  bottom: 11px;
  width: 171px;
  height: 29px;
  border: 3px solid var(--tank-dark);
  border-bottom: 0;
  border-radius: 18px 18px 4px 4px;
  background: var(--tank-main);
  z-index: 4;
}

.tank-track {
  position: absolute;
  left: 18px;
  bottom: 0;
  display: flex;
  width: 164px;
  height: 38px;
  align-items: center;
  justify-content: space-evenly;
  border: 6px solid #31352b;
  border-radius: 20px 18px 19px 18px;
  background: #565c4e;
  box-shadow: inset 0 0 0 3px #272b23;
  z-index: 2;
}

.tank-track i {
  width: 24px;
  height: 24px;
  border: 4px solid #272b23;
  border-radius: 50%;
  background: #8f967e;
}

.tank-target {
  left: 0;
  bottom: 0;
  transform: scaleX(-1) scale(0.78);
  transform-origin: left bottom;
  transition: transform 260ms ease, filter 260ms ease, opacity 260ms ease;
}

.tank-target .top-gun {
  transform: scaleX(-1);
}

.tank-sage {
  --tank-main: #677b45;
  --tank-dark: #3d4b29;
  --tank-light: #8fa263;
}

.tank-sand {
  --tank-main: #97764a;
  --tank-dark: #5a432d;
  --tank-light: #baa06e;
}

.tank-rust {
  --tank-main: #8d6045;
  --tank-dark: #563928;
  --tank-light: #b17e5d;
}

.target {
  position: absolute;
  width: 184px;
  height: 118px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  touch-action: manipulation;
}

.target-one { left: 44%; bottom: 40%; }
.target-two { right: 9%; bottom: 49%; }
.target-three { right: 20%; bottom: 14%; }

.target:hover .tank-target,
.target:focus-visible .tank-target {
  filter: brightness(1.07);
}

.target:active .tank-target {
  transform: scaleX(-1) scale(0.75);
}

.target.is-selected .tank-target {
  filter: drop-shadow(0 0 0.75rem rgb(255 243 157 / 0.88));
  transform: scaleX(-1) scale(0.83);
}

.target-hint {
  position: absolute;
  right: 17px;
  top: -17px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 3px solid var(--forest-dark);
  border-radius: 13px;
  padding: 7px 10px;
  color: var(--forest-dark);
  background: #fff9c8;
  box-shadow: 0 5px 0 rgb(52 69 31 / 0.2);
  font-size: 14px;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 12;
}

.target-hint i {
  width: 18px;
  height: 23px;
  border: 3px solid currentColor;
  border-radius: 9px 9px 7px 7px;
  transform: rotate(-12deg);
}

.target-hint i::before {
  position: absolute;
  left: 5px;
  top: -10px;
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: currentColor;
  content: "";
}

.target.show-hint .target-hint,
.target.is-selected .target-hint {
  opacity: 1;
  transform: translateY(0);
}

.target.is-selected .target-hint b::before {
  content: "再";
}

.target.is-hit {
  cursor: default;
}

.target.is-hit .tank-target {
  filter: saturate(0.55);
  opacity: 0.9;
  transform: scaleX(-1) scale(0.78) translateY(4px);
}

.target.is-hit .target-hint {
  display: none;
}

.tank.is-recoiling .tank-turret {
  animation: recoil 340ms ease-out;
}

.target.is-impacting .tank-target {
  animation: tank-shake 420ms ease-out;
}

.smoke-rings {
  position: absolute;
  left: 74px;
  top: 27px;
  width: 52px;
  height: 52px;
  pointer-events: none;
}

.smoke-rings i {
  position: absolute;
  inset: 12px;
  border: 5px solid rgb(76 83 71 / 0.62);
  border-radius: 50%;
  opacity: 0;
}

.target.is-impacting .smoke-rings i {
  animation: smoke-ring 1.1s ease-out forwards;
}

.target.is-impacting .smoke-rings i:nth-child(2) { animation-delay: 160ms; }
.target.is-impacting .smoke-rings i:nth-child(3) { animation-delay: 320ms; }

.soldier {
  position: absolute;
  left: 86px;
  top: 34px;
  width: 58px;
  height: 80px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(36px) scale(0.88);
  transform-origin: bottom center;
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
  z-index: 15;
}

.target.is-hit .soldier {
  opacity: 1;
  transform: translateY(-33px) scale(0.88);
}

.soldier .head {
  position: absolute;
  left: 19px;
  top: 12px;
  width: 21px;
  height: 22px;
  border: 2px solid #4e3a2c;
  border-radius: 45% 45% 50% 50%;
  background: #c98f67;
}

.soldier .helmet {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 30px;
  height: 17px;
  border: 2px solid #34451f;
  border-radius: 18px 18px 6px 6px;
  background: #647a42;
  z-index: 2;
}

.soldier .body {
  position: absolute;
  left: 17px;
  top: 33px;
  width: 26px;
  height: 36px;
  border: 2px solid #34451f;
  border-radius: 7px;
  background: #718b4c;
}

.soldier .arm {
  position: absolute;
  left: 35px;
  top: 37px;
  width: 25px;
  height: 8px;
  border-radius: 5px;
  background: #718b4c;
  transform: rotate(-18deg);
}

.flag-pole {
  position: absolute;
  left: 8px;
  top: 12px;
  width: 3px;
  height: 62px;
  background: #4a3b2a;
}

.white-flag {
  position: absolute;
  left: 10px;
  top: 13px;
  width: 29px;
  height: 19px;
  border: 2px solid rgb(52 69 31 / 0.25);
  border-radius: 2px 7px 7px 2px;
  background: #fbfaf0;
  transform-origin: left center;
  animation: flag-wave 1.2s ease-in-out infinite alternate;
}

.toy-gun {
  position: absolute;
  left: 45px;
  top: 37px;
  width: 28px;
  height: 6px;
  border-radius: 5px;
  background: #3f4f37;
  transform: rotate(-6deg);
}

.light-dot {
  position: absolute;
  left: 71px;
  top: 32px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff6aa;
  border-radius: 50%;
  background: #f4c84b;
  opacity: 0;
}

.soldier.is-biuing .light-dot {
  animation: light-biu 620ms ease-out;
}

.effects-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.projectile {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 5px solid #f9ed9a;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgb(216 155 60 / 0.2);
  transition: transform 430ms cubic-bezier(0.38, 0.1, 0.76, 0.3);
}

.projectile::after {
  position: absolute;
  right: 14px;
  top: 3px;
  width: 44px;
  height: 7px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgb(255 246 170 / 0.8));
  content: "";
}

.light-beam {
  position: absolute;
  height: 8px;
  border-radius: 8px;
  background: #f4c84b;
  box-shadow: 0 0 0 5px rgb(244 200 75 / 0.2);
  opacity: 0;
  transform-origin: left center;
  animation: beam-biu 620ms ease-out;
}

.result-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 30;
  width: min(92%, 460px);
  border: 5px solid var(--forest-dark);
  border-radius: var(--radius);
  padding: 38px 26px 34px;
  background: rgb(245 247 234 / 0.96);
  box-shadow: 0 24px 80px rgb(32 48 33 / 0.3);
  text-align: center;
  transform: translate(-50%, -50%);
}

.result-panel::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgb(42 62 38 / 0.34);
  content: "";
}

.result-panel p {
  margin: 6px 0 3px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
}

.result-panel h2 {
  margin: 0 0 23px;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.result-flags {
  display: flex;
  height: 64px;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.result-flags i {
  position: relative;
  width: 6px;
  height: 54px;
  background: var(--forest-dark);
  transform-origin: bottom;
  animation: result-flag 700ms cubic-bezier(0.2, 1.35, 0.4, 1) both;
}

.result-flags i::before {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 34px;
  height: 24px;
  border-radius: 3px 8px 8px 3px;
  background: #fffef3;
  box-shadow: inset 0 0 0 2px rgb(52 69 31 / 0.2);
  content: "";
}

.result-flags i:nth-child(2) { animation-delay: 110ms; }
.result-flags i:nth-child(3) { animation-delay: 220ms; }

.confetti {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--confetti-color);
  opacity: 0;
  animation: confetti-fall 1.6s ease-out forwards;
}

@keyframes recoil {
  0%, 100% { transform: translateX(0); }
  38% { transform: translateX(-13px); }
}

@keyframes tank-shake {
  0%, 100% { transform: scaleX(-1) scale(0.78) translateX(0); }
  30% { transform: scaleX(-1) scale(0.78) translateX(-7px) rotate(-2deg); }
  62% { transform: scaleX(-1) scale(0.78) translateX(6px) rotate(2deg); }
}

@keyframes smoke-ring {
  0% { opacity: 0.8; transform: scale(0.25) translateY(0); }
  100% { opacity: 0; transform: scale(1.8) translateY(-34px); }
}

@keyframes flag-wave {
  from { transform: skewY(-4deg) scaleX(0.9); }
  to { transform: skewY(5deg) scaleX(1); }
}

@keyframes light-biu {
  0% { opacity: 0; transform: translateX(0) scale(0.2); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translateX(38px) scale(1.2); }
}

@keyframes beam-biu {
  0% { opacity: 0; transform: scaleX(0); }
  30% { opacity: 0.94; }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes result-flag {
  from { opacity: 0; transform: translateY(30px) scaleY(0.3); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), 240px, 0) rotate(260deg); }
}

@media (max-width: 820px) {
  body { overflow: hidden; }

  .start-screen {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 100dvh;
    padding: 30px 24px;
  }

  .start-copy { align-self: end; }
  .start-copy h1 { font-size: clamp(56px, 18vw, 86px); }
  .hero-tank { width: min(94vw, 570px); justify-self: center; }
  .tank-large { left: 6%; transform: scale(1.65); }

  .play-screen {
    min-width: 0;
    overflow: hidden;
    padding: 8px;
  }

  .game-header {
    min-width: 0;
    min-height: 88px;
    gap: 8px;
    margin-bottom: 5px;
    padding: 0 4px;
  }

  .game-header h1 { font-size: 25px; }
  .game-header p { max-width: 170px; font-size: 14px; line-height: 1.25; }
  .header-actions { gap: 8px; }
  .flag-progress { gap: 4px; }
  .flag-progress span { width: 23px; height: 30px; border-left-width: 3px; }
  .flag-progress span::before { width: 19px; height: 14px; }
  .sound-button { min-width: 68px; min-height: 48px; padding: 6px 8px; font-size: 14px; }

  .arena {
    min-width: 0;
    min-height: 0;
    height: calc(100dvh - 109px);
    border-width: 4px;
  }

  .sun { top: 5%; right: 7%; width: 50px; }
  .cloud-one { top: 11%; left: 7%; transform: scale(0.7); transform-origin: left; }
  .cloud-two { top: 24%; left: 42%; transform: scale(0.55); }
  .course-flag { bottom: 34%; transform: scale(0.75); transform-origin: bottom; }
  .flag-right { transform: scaleX(-1) scale(0.75); }
  .mud-track-one { left: 2%; bottom: 6%; width: 67%; }
  .mud-track-two { right: 2%; bottom: 27%; width: 65%; }

  .player-position {
    left: -1%;
    bottom: 7%;
    width: 190px;
    height: 105px;
  }

  .player-position .tank {
    transform: scale(0.72);
    transform-origin: left bottom;
  }

  .player-label {
    left: 25px;
    bottom: -3px;
    min-width: 112px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .target {
    width: 146px;
    height: 98px;
  }

  .target-one { left: 1%; bottom: 43%; }
  .target-two { right: -4%; bottom: 53%; }
  .target-three { right: 3%; bottom: 22%; }

  .tank-target { transform: scaleX(-1) scale(0.58); }
  .target:active .tank-target { transform: scaleX(-1) scale(0.55); }
  .target.is-selected .tank-target { transform: scaleX(-1) scale(0.63); }
  .target.is-hit .tank-target { transform: scaleX(-1) scale(0.58) translateY(4px); }

  .target-hint {
    right: 4px;
    top: -10px;
    padding: 6px 8px;
    font-size: 12px;
    transform: scale(0.88) translateY(6px);
    transform-origin: right bottom;
  }

  .target.show-hint .target-hint,
  .target.is-selected .target-hint {
    transform: scale(0.88) translateY(0);
  }

  .soldier {
    left: 58px;
    top: 34px;
    transform: translateY(36px) scale(0.72);
  }

  .target.is-hit .soldier { transform: translateY(-22px) scale(0.72); }
  .smoke-rings { left: 52px; top: 31px; transform: scale(0.75); }
  .result-panel { padding: 28px 18px 27px; }
  .result-panel h2 { font-size: 42px; }
}

@media (max-width: 420px) and (max-height: 700px) {
  .game-header { min-height: 76px; }
  .arena { height: calc(100dvh - 97px); }
  .target-one { bottom: 42%; }
  .target-two { bottom: 50%; }
  .target-three { bottom: 20%; }
  .player-position { bottom: 4%; }
}

@media (max-height: 700px) and (min-width: 821px) {
  .arena { min-height: 460px; }
  .target-one { bottom: 39%; }
  .target-two { bottom: 48%; }
  .player-position { bottom: 9%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
