/* speed.pipiska.fun — неон, стекло и анимашки */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #05030c;
  --bg-2: #0b0716;
  --text: #f3effc;
  --muted: #9c93b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.045);
  --cyan: #22d3ee;
  --violet: #a855f7;
  --pink: #ff2d95;
  --lime: #b6ff5e;
  --radius: 24px;
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(1200px 800px at 50% -10%, #1b0c33 0%, transparent 60%),
    radial-gradient(900px 700px at 100% 100%, #0d1a2b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

/* ---------------------------------------------------------- фон ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
}
.aurora i {
  position: absolute;
  display: block;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: float 22s ease-in-out infinite;
}
.aurora i:nth-child(1) { left: 6%; top: 10%; background: #7c3aed; animation-delay: -2s; }
.aurora i:nth-child(2) { right: 4%; top: 22%; background: #0891b2; animation-delay: -8s; animation-duration: 28s; }
.aurora i:nth-child(3) { left: 32%; bottom: -6%; background: #be185d; animation-delay: -14s; animation-duration: 25s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4vw, -3vw, 0) scale(1.08); }
  66% { transform: translate3d(-3vw, 3vw, 0) scale(0.95); }
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}

/* --------------------------------------------------------- каркас -------- */
.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px) 0 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 7, 20, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

/* --------------------------------------------------------- шапка --------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  font-size: 24px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.22), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 32px -6px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-2px) rotate(2deg); }
}

.brand h1 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand h1 span { color: var(--muted); font-weight: 500; }
.brand p {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-actions { display: flex; align-items: center; gap: 8px; }

.server-pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}
.server-pill b { color: var(--cyan); font-weight: 700; }

.ghost-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.ghost-btn:active { transform: scale(0.96); }
.ghost-btn.tiny { padding: 5px 11px; font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------- сцена --------- */
.stage {
  overflow: hidden;
  padding: clamp(18px, 4vw, 34px) clamp(16px, 4vw, 32px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stage-glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 150%;
  background:
    conic-gradient(from 0deg at 50% 45%, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.16), rgba(255, 45, 149, 0.13), rgba(34, 211, 238, 0.14));
  filter: blur(60px);
  opacity: 0.55;
  animation: spin 26s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- гейдж --------- */
.gauge {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 1;
  margin-top: -6px;
  filter: drop-shadow(0 0 40px rgba(120, 60, 220, 0.25));
}
.gauge-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 100px;
  stroke-dashoffset: 0;
}
.gauge-arc {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 100px;
  stroke-dashoffset: 100px;
  filter: url(#arcGlow);
}
.gauge-dot {
  fill: #fff;
  filter: drop-shadow(0 0 10px #ff2d95) drop-shadow(0 0 20px #a855f7);
}

.gauge-needle {
  stroke: #ffd7f0;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(255, 45, 149, 0.95)) drop-shadow(0 0 16px rgba(168, 85, 247, 0.75));
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 14px;
  pointer-events: none;
}
.gauge-value {
  font-size: clamp(46px, 12vw, 74px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #cdb6ff 70%, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px rgba(168, 85, 247, 0.35);
  transition: transform 0.2s;
}
.stage.running .gauge-value { animation: valuePulse 1.2s ease-in-out infinite; }
@keyframes valuePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
.gauge-unit {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.gauge-phase {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.07);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.gauge-phase.upload { color: var(--pink); border-color: rgba(255, 45, 149, 0.3); background: rgba(255, 45, 149, 0.08); }
.gauge-phase.ping { color: var(--lime); border-color: rgba(182, 255, 94, 0.3); background: rgba(182, 255, 94, 0.08); }

.gauge-ticks {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------- кнопка --------- */
.controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
}

.start-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  padding: 17px 34px;
  border-radius: 999px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #10061f;
  background: linear-gradient(100deg, #6ee7ff, #c084fc 48%, #ff6fbe);
  box-shadow:
    0 16px 40px -12px rgba(168, 85, 247, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 50px -10px rgba(255, 45, 149, 0.5);
  transition: transform 0.16s, box-shadow 0.25s, filter 0.25s;
  position: relative;
  overflow: hidden;
}
.start-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.6) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s;
}
.start-btn:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.06); box-shadow: 0 22px 50px -10px rgba(168, 85, 247, 0.85), 0 0 70px -8px rgba(255, 45, 149, 0.6); }
.start-btn:hover::before { transform: translateX(130%); }
.start-btn:active { transform: scale(0.97); }
.start-btn:disabled { cursor: wait; filter: grayscale(0.3) brightness(0.8); }
.start-btn.running {
  color: #fff;
  background: linear-gradient(100deg, #ff2d95, #b91c1c);
  box-shadow: 0 16px 40px -12px rgba(255, 45, 149, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 16px 40px -12px rgba(255, 45, 149, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
  50% { box-shadow: 0 16px 60px -8px rgba(255, 45, 149, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
}
.start-icon { font-size: 20px; }

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--muted);
  min-width: 52px;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------- прогресс -------- */
.progress {
  width: min(420px, 100%);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 4px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.8);
  transition: width 0.25s ease-out;
  position: relative;
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.live-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 12px;
}
.live-chip b { color: var(--text); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ping { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.dot.down { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dot.up { background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* ------------------------------------------------------- результаты ----- */
.results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.result:nth-child(1) { animation-delay: 0.05s; }
.result:nth-child(2) { animation-delay: 0.12s; }
.result:nth-child(3) { animation-delay: 0.19s; }
.result:nth-child(4) { animation-delay: 0.26s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.result-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 700;
}
.result-icon.down { color: var(--cyan); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.25); }
.result-icon.up { color: var(--pink); background: rgba(255, 45, 149, 0.12); border: 1px solid rgba(255, 45, 149, 0.25); }
.result-icon.ping { color: var(--lime); background: rgba(182, 255, 94, 0.1); border: 1px solid rgba(182, 255, 94, 0.22); }
.result-icon.jitter { color: var(--violet); background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.25); }

.result-body { min-width: 0; }
.result-label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.result-value {
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-value.small { font-size: 16px; font-weight: 700; }
.result-value small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.result.filled { border-color: rgba(255, 255, 255, 0.14); }
.result.filled .result-value { animation: pop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pop { 0% { transform: scale(0.82); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------- график ------- */
.chart-card { padding: 16px 18px 10px; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.chart-head h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.legend { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
#chart { width: 100%; height: 140px; display: block; }

/* -------------------------------------------------------- настройки ----- */
.settings { padding: 20px clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 18px; }
.settings-head, .history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-head h2, .history-head h2 { margin: 0; font-size: 15px; letter-spacing: 0.02em; }

.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.field-label output {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 8px;
  font-size: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.25s;
}
.chip span { font-size: 14px; opacity: 0.9; }
.chip:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-1px); }
.chip:active { transform: scale(0.97); }
.chip.on {
  color: #0b0716;
  background: linear-gradient(100deg, #a7f3ff, #d8b4fe 60%, #ffa9d4);
  border-color: transparent;
  box-shadow: 0 8px 24px -10px rgba(168, 85, 247, 0.9);
}

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) var(--fill), rgba(255, 255, 255, 0.1) var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b06bff;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18), 0 0 16px rgba(168, 85, 247, 0.8);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b06bff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.8);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.32);
  font-variant-numeric: tabular-nums;
  margin-top: -3px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-strong);
  transition: background 0.25s, box-shadow 0.25s;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfc6e6;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
}
.switch-row input:checked + .switch {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 20px -4px rgba(168, 85, 247, 0.9);
}
.switch-row input:checked + .switch::after {
  transform: translateX(20px);
  background: #fff;
}
.switch-row input:focus-visible + .switch { outline: 2px solid var(--cyan); outline-offset: 3px; }

.hint {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  border-left: 2px solid rgba(168, 85, 247, 0.4);
  padding-left: 12px;
  line-height: 1.5;
}

/* --------------------------------------------------------- история ----- */
.history { padding: 20px clamp(16px, 3vw, 24px); }
.history-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.history-empty { color: rgba(255, 255, 255, 0.35); font-size: 13px; padding: 10px 0; }
.history-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 13px;
  animation: rise 0.4s ease-out both;
}
.history-row time { color: var(--muted); font-size: 12px; }
.history-metric { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.history-metric.down { color: var(--cyan); }
.history-metric.up { color: var(--pink); }
.history-metric.ping { color: var(--lime); }

/* --------------------------------------------------------- подвал ------ */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 8px;
}

/* --------------------------------------------------------- тост -------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 40;
  background: rgba(20, 12, 36, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.9), 0 0 30px -8px rgba(168, 85, 247, 0.6);
  color: var(--text);
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------ адаптив -------- */
@media (max-width: 760px) {
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-pill { display: none; }
  .controls { gap: 12px; }
  .start-btn { min-width: 180px; padding: 15px 26px; font-size: 16.5px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .brand p { display: none; }
  .history-row { grid-template-columns: 1fr auto auto; }
  .history-row .history-metric.ping { display: none; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 20px); }
  .gauge-value { font-size: 52px; }
  .result { padding: 12px; gap: 10px; }
  .result-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
}

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