:root {
  color-scheme: dark;
  --cream: #fff0cf;
  --cream-soft: #dfcba7;
  --brass: #d7ae6c;
  --brass-bright: #ffdc96;
  --brass-line: rgba(226, 185, 116, 0.38);
  --rust: #a74e2d;
  --rust-light: #c2683e;
  --ink: #241a14;
  --panel: rgba(38, 27, 22, 0.74);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: #b78466;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hidden,
[hidden] {
  display: none !important;
}

button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid rgba(255, 217, 160, 0.48);
  border-radius: 3px;
  background: linear-gradient(180deg, #b85d35, #904125);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 194, 0.13),
    0 5px 18px rgba(26, 15, 9, 0.2);
  color: #fff0d6;
  font: 600 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 120ms ease,
    opacity 150ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 5px;
}

button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 7px rgba(41, 19, 9, 0.28);
}

button:disabled {
  opacity: 0.43;
  border-color: rgba(221, 193, 152, 0.27);
  background: rgba(116, 85, 65, 0.55);
  box-shadow: none;
  cursor: default;
}

@media (hover: hover) {
  button:hover:not(:disabled) {
    border-color: rgba(255, 229, 176, 0.86);
    background: linear-gradient(180deg, #ca7043, #a34b2c);
    box-shadow:
      inset 0 1px 0 rgba(255, 238, 194, 0.18),
      0 6px 22px rgba(26, 15, 9, 0.28);
  }
}

#game {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  background: linear-gradient(180deg, #77aaa7 0%, #e5b698 53%, #b88c60 100%);
}

#game canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  touch-action: none;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 43%,
    transparent 32%,
    rgba(46, 25, 16, 0.035) 58%,
    rgba(36, 20, 14, 0.3) 100%
  );
}

#vignette::after,
#hud::after,
#game.hurt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 29%,
    rgba(146, 41, 23, 0.13) 61%,
    rgba(165, 40, 22, 0.67) 100%
  );
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.hurt {
  --damage-feedback: 1;
}

#vignette.hurt::after,
.hurt #vignette::after,
#hud.hurt::after,
#game.hurt::after {
  opacity: 1;
  transition-duration: 35ms;
}

#title,
#result {
  position: fixed;
  z-index: 40;
  left: 50%;
  width: min(660px, calc(100% - 36px - var(--safe-left) - var(--safe-right)));
  padding: 30px 38px 28px;
  transform: translateX(-50%);
  border: 1px solid rgba(237, 202, 145, 0.22);
  border-top-color: rgba(247, 215, 163, 0.55);
  border-radius: 3px;
  background: linear-gradient(
    145deg,
    rgba(49, 36, 29, 0.76),
    rgba(41, 30, 24, 0.49) 65%,
    rgba(46, 32, 24, 0.63)
  );
  box-shadow:
    0 18px 65px rgba(38, 21, 12, 0.16),
    inset 0 0 32px rgba(226, 169, 102, 0.025);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  text-align: center;
  pointer-events: none;
}

#title {
  top: max(calc(var(--safe-top) + 32px), 15vh);
}

#title::before,
#result::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 23px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

#title h1 {
  margin: 0 0 15px;
  color: #fff0d0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 10.8vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.075em;
  text-indent: 0.075em;
  text-shadow: 0 3px 23px rgba(31, 16, 9, 0.3);
}

#title h2,
#title .subtitle,
#title .tagline {
  margin: 0 0 18px;
  color: var(--brass-bright);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

#title p {
  max-width: 440px;
  margin: 12px auto;
  color: var(--cream-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

#title h1 + p {
  margin-top: 0;
  color: var(--brass-bright);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#title small,
#title .controls,
#title .instructions {
  display: block;
  margin: 16px auto 0;
  color: rgba(244, 224, 189, 0.76);
  font-size: 11px;
  line-height: 1.85;
  letter-spacing: 0.025em;
}

#title ul {
  margin: 14px auto;
  padding: 0;
  list-style: none;
  color: var(--cream-soft);
  font-size: 11px;
  line-height: 1.85;
}

#title strong {
  color: var(--cream);
  font-weight: 600;
}

kbd {
  display: inline-block;
  min-width: 19px;
  margin: 0 2px;
  padding: 1px 5px;
  border: 1px solid rgba(235, 204, 155, 0.3);
  border-radius: 3px;
  background: rgba(27, 20, 16, 0.24);
  color: #f4dfbc;
  font: inherit;
  font-size: 10px;
  line-height: 1.55;
  vertical-align: 1px;
}

#start {
  min-width: 184px;
  min-height: 48px;
  margin: 15px 0 0;
}

#loading {
  min-height: 16px;
  margin: 15px auto 0;
  color: rgba(237, 211, 170, 0.67);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

#loading:empty {
  min-height: 0;
  margin-top: 0;
}

#hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(36, 22, 13, 0.65);
}

#wave,
#remaining,
#score {
  position: fixed;
  top: calc(var(--safe-top) + 27px);
  min-height: 20px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

#wave {
  left: calc(var(--safe-left) + 28px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brass-line);
}

#remaining {
  left: 50%;
  max-width: 42%;
  transform: translateX(-50%);
  color: #f6ddb2;
  text-align: center;
}

#score {
  right: calc(var(--safe-right) + 28px);
  text-align: right;
}

#health {
  position: fixed;
  top: calc(var(--safe-top) + 68px);
  left: calc(var(--safe-left) + 28px);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
}

.pip {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 16px;
  border: 1px solid rgba(255, 227, 166, 0.83);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #f6d89b, #c28a4b);
  box-shadow:
    inset 0 1px 1px rgba(255, 247, 217, 0.42),
    0 1px 5px rgba(41, 23, 12, 0.24);
  transition:
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.pip.empty,
.pip.lost,
.pip.dead,
.pip.off,
.pip.used,
.pip[data-filled="false"],
.pip[data-active="false"],
.pip[aria-checked="false"] {
  background: rgba(47, 28, 20, 0.22);
  border-color: rgba(241, 207, 157, 0.3);
  box-shadow: none;
  opacity: 0.55;
  transform: scale(0.92);
}

#ammo {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 32px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 126px;
  min-height: 34px;
  padding: 9px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(232, 196, 140, 0.28);
  border-radius: 22px;
  background: rgba(40, 28, 20, 0.35);
  box-shadow: 0 3px 18px rgba(29, 17, 10, 0.1);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.chamber {
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1px solid #f0cd87;
  border-radius: 50%;
  background: radial-gradient(circle, #8f5d32 0 20%, #e9c17e 26% 65%, #b77f43 74%);
  box-shadow: 0 0 5px rgba(249, 201, 122, 0.12);
  transition:
    opacity 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.chamber.empty,
.chamber.spent,
.chamber.off,
.chamber.used,
.chamber[data-filled="false"],
.chamber[data-loaded="false"],
.chamber[aria-checked="false"] {
  border-color: rgba(222, 189, 138, 0.5);
  background: rgba(26, 21, 17, 0.32);
  box-shadow: inset 0 0 0 2px rgba(216, 171, 103, 0.08);
  opacity: 0.62;
}

#crosshair {
  position: fixed;
  z-index: 12;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0 1px, transparent 1.5px);
  color: rgba(255, 242, 212, 0.87);
  filter: drop-shadow(0 1px 2px rgba(36, 23, 16, 0.8));
  pointer-events: none;
  transition: color 75ms ease;
}

#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#crosshair::before {
  background:
    linear-gradient(currentColor, currentColor) center top / 1px 5px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 1px 5px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 5px 1px no-repeat;
  opacity: 0.8;
}

#crosshair::after {
  inset: 4px;
  background:
    linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, currentColor 46% 54%, transparent 55%);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 70ms ease, transform 100ms ease;
}

.hit {
  --hit-feedback: 1;
  color: var(--brass-bright);
}

#crosshair.hit,
.hit #crosshair {
  color: #ffe0a0;
}

#crosshair.hit::before,
.hit #crosshair::before {
  opacity: 0.25;
}

#crosshair.hit::after,
.hit #crosshair::after {
  opacity: 1;
  transform: scale(1);
}

#notice {
  position: fixed;
  z-index: 15;
  top: calc(var(--safe-top) + 112px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 9px 16px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(48, 31, 20, 0.4) 20% 80%,
    transparent
  );
  color: #ffe0a8;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(31, 17, 10, 0.6);
  pointer-events: none;
}

#notice:empty {
  display: none;
}

#touch-controls {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  touch-action: none;
}

#joystick,
#fire,
#reload,
#stick {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#joystick {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 28px);
  left: calc(var(--safe-left) + 24px);
  display: none;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(244, 215, 169, 0.35);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 206, 148, 0.04) 0 48%,
    rgba(34, 27, 21, 0.14) 49% 100%
  );
  box-shadow:
    inset 0 0 22px rgba(34, 24, 17, 0.13),
    0 2px 12px rgba(34, 24, 17, 0.08);
  pointer-events: auto;
}

#joystick::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(245, 215, 165, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

#stick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  border: 1px solid rgba(255, 229, 185, 0.56);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 26%,
    rgba(245, 213, 158, 0.4),
    rgba(132, 93, 58, 0.35)
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 242, 208, 0.21),
    0 3px 12px rgba(37, 23, 13, 0.19);
  pointer-events: none;
  will-change: transform;
}

#fire {
  position: fixed;
  right: calc(var(--safe-right) + 24px);
  bottom: calc(var(--safe-bottom) + 28px);
  display: none;
  width: 76px;
  height: 76px;
  min-height: 76px;
  padding: 0 0 0 2px;
  border: 1px solid rgba(255, 219, 160, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(193, 106, 58, 0.9), rgba(126, 56, 30, 0.91));
  box-shadow:
    inset 0 0 0 5px rgba(243, 199, 137, 0.07),
    inset 0 1px 1px rgba(255, 225, 175, 0.2),
    0 5px 20px rgba(40, 23, 12, 0.2);
  font-size: 12px;
  letter-spacing: 0.18em;
}

#fire:active {
  transform: scale(0.95);
  background: #c17546;
}

#reload {
  position: fixed;
  right: calc(var(--safe-right) + 28px);
  bottom: calc(var(--safe-bottom) + 31px);
  min-width: 92px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(235, 200, 143, 0.42);
  border-radius: 24px;
  background: rgba(46, 32, 23, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 233, 190, 0.08);
  font-size: 10px;
  letter-spacing: 0.12em;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#reload-progress {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: inherit;
  background: conic-gradient(
    var(--brass-bright) calc(var(--progress, var(--reload-progress, 0)) * 1turn),
    rgba(233, 196, 137, 0.12) 0
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 1px)
  );
  pointer-events: none;
}

#reload-progress circle {
  fill: none;
  stroke: var(--brass-bright);
  stroke-linecap: round;
  stroke-width: 2;
}

#result {
  z-index: 45;
  top: 50%;
  width: min(480px, calc(100% - 40px - var(--safe-left) - var(--safe-right)));
  padding: 35px 28px 32px;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, rgba(49, 33, 24, 0.88), rgba(35, 26, 22, 0.74));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#result-title {
  margin: 0 0 18px;
  color: #ffedc8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 8vw, 53px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

#result-stats {
  margin: 0 auto 25px;
  padding: 17px 0;
  border-top: 1px solid rgba(230, 190, 124, 0.2);
  border-bottom: 1px solid rgba(230, 190, 124, 0.2);
  color: var(--cream-soft);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.09em;
  font-variant-numeric: tabular-nums;
  white-space: pre-line;
}

#result-stats strong,
#result-stats b {
  color: var(--brass-bright);
  font-weight: 500;
}

#restart,
#share {
  min-width: 132px;
  margin: 4px;
}

#share {
  border-color: rgba(226, 189, 134, 0.36);
  background: rgba(88, 65, 44, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 228, 177, 0.05);
  color: var(--cream-soft);
}

#mute {
  position: fixed;
  z-index: 60;
  bottom: calc(var(--safe-bottom) + 27px);
  left: calc(var(--safe-left) + 26px);
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border-color: rgba(232, 199, 148, 0.22);
  border-radius: 22px;
  background: rgba(42, 29, 22, 0.3);
  box-shadow: none;
  color: rgba(255, 234, 198, 0.8);
  font-size: 10px;
  letter-spacing: 0.09em;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#mute svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

#mute[aria-pressed="true"] {
  color: rgba(224, 198, 160, 0.53);
  border-color: rgba(232, 199, 148, 0.15);
}

@media (pointer: coarse), (hover: none) {
  #joystick {
    display: block;
  }

  #fire {
    display: inline-flex;
  }

  #reload {
    right: calc(var(--safe-right) + 24px);
    bottom: calc(var(--safe-bottom) + 123px);
    width: 76px;
    min-width: 76px;
    min-height: 42px;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  #ammo {
    bottom: calc(var(--safe-bottom) + 34px);
    gap: 7px;
    min-width: 118px;
    padding-right: 10px;
    padding-left: 10px;
  }

  #mute {
    top: calc(var(--safe-top) + 67px);
    right: calc(var(--safe-right) + 20px);
    bottom: auto;
    left: auto;
    min-height: 36px;
  }

  #game {
    cursor: default;
  }
}

@media (max-width: 600px) {
  #title {
    top: max(calc(var(--safe-top) + 46px), 13vh);
    padding: 25px 20px 24px;
  }

  #title::before {
    margin-bottom: 20px;
  }

  #title p {
    font-size: 12px;
    line-height: 1.65;
  }

  #title small,
  #title .controls,
  #title .instructions {
    font-size: 10px;
    line-height: 1.9;
  }

  #start {
    min-width: 170px;
  }

  #wave,
  #remaining,
  #score {
    top: calc(var(--safe-top) + 23px);
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  #wave,
  #health {
    left: calc(var(--safe-left) + 20px);
  }

  #score {
    right: calc(var(--safe-right) + 20px);
  }

  #health {
    top: calc(var(--safe-top) + 62px);
  }

  #remaining {
    max-width: 39%;
    line-height: 1.7;
  }

  #notice {
    top: calc(var(--safe-top) + 111px);
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  #result {
    padding: 28px 20px 25px;
  }

  #restart,
  #share {
    min-width: 120px;
    padding-right: 17px;
    padding-left: 17px;
    font-size: 10px;
  }
}

@media (max-width: 359px) {
  #title {
    width: calc(100% - 24px - var(--safe-left) - var(--safe-right));
    padding-right: 14px;
    padding-left: 14px;
  }

  #title h1 {
    font-size: 38px;
  }

  #wave,
  #remaining,
  #score {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  #joystick {
    left: calc(var(--safe-left) + 12px);
  }

  #fire,
  #reload {
    right: calc(var(--safe-right) + 12px);
  }

  #ammo {
    min-width: 102px;
    gap: 5px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .chamber {
    width: 10px;
    height: 10px;
  }
}

@media (max-height: 650px) {
  #title {
    top: calc(var(--safe-top) + 30px);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #title::before {
    margin-bottom: 16px;
  }

  #title h1 {
    margin-bottom: 12px;
  }

  #title p {
    margin-top: 9px;
    margin-bottom: 9px;
  }

  #title small,
  #title .controls,
  #title .instructions {
    margin-top: 10px;
  }

  #loading {
    margin-top: 10px;
  }

  #start {
    margin-top: 10px;
  }
}

@media (max-height: 500px) and (min-width: 600px) {
  #title {
    top: calc(var(--safe-top) + 16px);
    width: min(650px, calc(100% - 100px));
    padding: 15px 28px 17px;
  }

  #title::before {
    margin-bottom: 10px;
  }

  #title h1 {
    font-size: 52px;
    margin-bottom: 9px;
  }

  #title p {
    margin: 7px auto;
    font-size: 11px;
    line-height: 1.5;
  }

  #title small,
  #title .controls,
  #title .instructions {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.6;
  }

  #start {
    min-height: 42px;
    margin-top: 8px;
  }

  #loading {
    margin-top: 7px;
    font-size: 9px;
  }

  #result {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #result::before {
    margin-bottom: 13px;
  }

  #result-title {
    margin-bottom: 12px;
    font-size: 38px;
  }

  #result-stats {
    margin-bottom: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #notice {
    top: calc(var(--safe-top) + 76px);
  }

  #joystick,
  #fire {
    bottom: calc(var(--safe-bottom) + 18px);
  }

  #reload {
    bottom: calc(var(--safe-bottom) + 112px);
  }

  #health {
    top: calc(var(--safe-top) + 57px);
  }
}

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