#warmup {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  align-items: safe center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 5vh, 56px) clamp(18px, 7vw, 120px);
  background: radial-gradient(
    ellipse at 57% 50%,
    #292e2c,
    #141918 62%,
    #101413
  );
}
.range-shell {
  width: 100%;
  max-width: 1240px;
  margin: auto;
}
.range-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(16px, 3.5vh, 32px);
}
#range-title {
  font:
    850 clamp(38px, 5.8vw, 85px) / 0.99 Inter,
    "Helvetica Neue",
    "PingFang SC",
    sans-serif;
  letter-spacing: -0.056em;
  margin: 0;
  outline: none;
  color: #f4f1e8;
}
#range-hint {
  color: #bfc7be;
  font-size: clamp(14px, 1.4vw, 18px);
  margin: 13px 0 0;
}
.range-score {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex: none;
  font:
    600 13px ui-monospace,
    monospace;
  color: #bfc7be;
}
.range-score strong {
  font:
    650 clamp(30px, 3.5vw, 52px) / 1 ui-monospace,
    monospace;
  color: #ff996d;
  font-variant-numeric: tabular-nums;
}
.range-field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(240px, 51svh, 520px);
  background: #242c29;
  border: 1px solid #68716a;
  border-radius: 3px;
  box-shadow: 0 15px 60px #05080755;
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
}
#range-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.range-target {
  position: absolute;
  width: clamp(55px, 8.4vw, 116px);
  aspect-ratio: 1.26;
  min-height: 44px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 3px;
  border: 1px solid #cb9c73;
  border-bottom: 3px solid #322a24;
  border-radius: 3px;
  background: linear-gradient(
    140deg,
    #d6b390,
    #6b6960 28%,
    #403f38 72%,
    #9c8971
  );
  box-shadow:
    1px 3px 0 #141a17,
    3px 10px 14px #0b100e98;
  cursor: crosshair;
  color: #ffe1bb;
  -webkit-tap-highlight-color: transparent;
}
.range-target::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 2px;
  height: 540px;
  bottom: 100%;
  left: 16%;
  background: linear-gradient(90deg, #121815, #8f9488, #252d28);
  box-shadow: min(5vw, 74px) 0 #41453db3;
}
.range-target i {
  display: block;
  height: clamp(5px, 0.7vw, 10px);
  flex: none;
  background:
    radial-gradient(circle at 5px 50%, #deb991 1px, transparent 1.6px),
    radial-gradient(circle at 10px 50%, #a4947d 1px, transparent 1.6px), #242824;
}
.range-target span {
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px solid #d98551;
  background:
    repeating-linear-gradient(0deg, #41251f33 0 1px, transparent 1px 4px),
    radial-gradient(ellipse, #a3482e, #6e3728 65%, #422d25);
  box-shadow: inset 0 0 12px #f697493d;
}
.range-target svg {
  width: 46%;
  height: 73%;
  filter: drop-shadow(0 0 3px #ffaf63a8);
  stroke-width: 1.35;
}
.range-target:is(:hover, :focus-visible) span {
  background-color: #d3784d;
  border-color: #ffcca2;
}
.range-target:focus-visible {
  outline: 3px solid #ffbc8d;
  outline-offset: 4px;
}
.range-impact {
  position: absolute;
  pointer-events: none;
  width: 52px;
  height: 52px;
  border: 2px solid #ffa35e;
  border-radius: 50%;
  background: radial-gradient(#ffd7a5 0%, transparent 51%);
  animation: range-hit 0.32s ease-out both;
}
@keyframes range-hit {
  from {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}
.range-status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 13px;
  font:
    500 13px/1.3 ui-monospace,
    monospace;
  color: #bec6bd;
  font-variant-numeric: tabular-nums;
}
.range-process {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e2e5da;
  min-width: 0;
}
.range-process svg {
  flex: none;
  color: #ffa27d;
  animation: spin 1.4s linear infinite;
}
#range-count {
  font-size: 12px;
  color: #ffb899;
  white-space: nowrap;
}
#range-host {
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#range-time {
  color: #e0e3d9;
  white-space: nowrap;
}
.range-steps {
  display: flex;
  gap: 4px;
  height: 3px;
}
.range-steps i {
  flex: 1;
  background: #414741;
}
.range-steps i.complete {
  background: #bb7659;
}
.range-steps i.current {
  background: #ff986d;
}
@media (max-width: 600px) {
  #warmup {
    padding: 22px 18px;
  }
  .range-heading {
    align-items: start;
  }
  #range-hint {
    max-width: 31ch;
    line-height: 1.55;
  }
  .range-score {
    align-items: end;
    flex-direction: column;
    gap: 4px;
  }
  .range-field {
    height: clamp(210px, 47svh, 420px);
  }
  .range-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }
  .range-process {
    grid-column: 1 / -1;
  }
  #range-host {
    margin-left: 0;
  }
}
@media (max-height: 480px) and (min-width: 601px) {
  #warmup {
    padding: 12px 5vw;
  }
  #range-title {
    font-size: 32px;
  }
  #range-hint {
    margin: 3px 0 0;
    font-size: 13px;
  }
  .range-heading {
    margin-bottom: 10px;
  }
  .range-field {
    height: 52svh;
    min-height: 120px;
  }
  .range-status {
    margin: 10px 0 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .range-process svg {
    animation: none;
  }
  .range-impact {
    display: none;
  }
}

.range-impact i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 7px;
  background: #ffce88;
  box-shadow: 0 0 4px #f09b58;
  transform: rotate(var(--angle)) translateY(var(--flight));
}
