/* ============================================================
   IP 探针 · IP Probe
   ============================================================ */

:root {
  --bg: #05070b;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f6;
  --muted: #8b96a7;
  --dim: #5d6878;
  --mint: #3ef0c8;
  --mint-2: #22c9a6;
  --violet: #9d8cff;
  --danger: #ff8d9d;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(62, 240, 200, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(62, 240, 200, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(62, 240, 200, 0.1), transparent 62%),
    radial-gradient(900px 520px at 88% 4%, rgba(157, 140, 255, 0.075), transparent 62%),
    var(--bg);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  will-change: transform;
}
.glow.g1 {
  width: 460px;
  height: 460px;
  left: -140px;
  top: -120px;
  background: rgba(62, 240, 200, 0.18);
}
.glow.g2 {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  background: rgba(157, 140, 255, 0.14);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 8%, transparent 72%);
}

/* ---------- header ---------- */

.top {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--mint);
  background: linear-gradient(145deg, rgba(62, 240, 200, 0.18), rgba(62, 240, 200, 0.03));
  border: 1px solid rgba(62, 240, 200, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.brand-text small {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(62, 240, 200, 0.12), 0 0 12px rgba(62, 240, 200, 0.9);
}
.status.offline i {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 141, 157, 0.12);
}

/* ---------- layout ---------- */

main {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(34px, 8vw, 78px) 0 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--mint);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint));
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7.4vw, 4.55rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(104deg, #ffffff 4%, #a9fbe9 38%, var(--mint) 64%, var(--violet) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(13.5px, 1.7vw, 15px);
  line-height: 1.75;
}

.hero-visual {
  position: absolute;
  right: -70px;
  top: 68px;
  width: 320px;
  height: 320px;
  display: none;
  pointer-events: none;
  opacity: 0.95;
}
@media (min-width: 1000px) {
  .hero-visual {
    display: block;
  }
}

.hero-visual .radar {
  width: 100%;
  height: 100%;
}

/* ---------- radar ---------- */

.radar {
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(62, 240, 200, 0.22);
  background: radial-gradient(circle, rgba(62, 240, 200, 0.1), rgba(62, 240, 200, 0.02) 56%, transparent 72%);
  box-shadow: inset 0 0 60px rgba(62, 240, 200, 0.05);
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(62, 240, 200, 0.14);
  inset: 18%;
}
.radar::after {
  inset: 36%;
  border-color: rgba(62, 240, 200, 0.2);
}

.radar .axis-x,
.radar .axis-y {
  position: absolute;
  background: rgba(62, 240, 200, 0.08);
}
.radar .axis-x {
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
}
.radar .axis-y {
  top: 5%;
  bottom: 5%;
  left: 50%;
  width: 1px;
}

.radar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 292deg,
    rgba(62, 240, 200, 0.2) 348deg,
    rgba(62, 240, 200, 0.55) 359deg,
    transparent 360deg
  );
  animation: sweep 4.8s linear infinite;
}

.radar .blip {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(62, 240, 200, 0.12), 0 0 14px rgba(62, 240, 200, 0.9);
  animation: blip 3.4s ease-in-out infinite;
}

/* ---------- search ---------- */

.search {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: clamp(26px, 4vw, 38px);
}

.field {
  position: relative;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 12, 18, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field:focus-within {
  border-color: rgba(62, 240, 200, 0.55);
  background: rgba(11, 15, 22, 0.94);
  box-shadow: 0 0 0 4px rgba(62, 240, 200, 0.09), 0 14px 46px -22px rgba(62, 240, 200, 0.7);
}
.field.invalid {
  border-color: rgba(255, 110, 130, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.08);
}

.f-icon {
  position: absolute;
  left: 17px;
  width: 18px;
  height: 18px;
  color: var(--dim);
  pointer-events: none;
}

#q {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 48px 0 46px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15.5px;
  letter-spacing: 0.01em;
  outline: none;
}
#q::placeholder {
  color: #6a7688;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
}

.clear {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
.clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.actions {
  display: flex;
  flex: 1 1 100%;
  gap: 10px;
}

.btn {
  appearance: none;
  height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:active {
  transform: translateY(1px) scale(0.995);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: linear-gradient(180deg, #54f7d2, #2bdcb4);
  color: #031512;
  box-shadow: 0 12px 34px -14px rgba(62, 240, 200, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn.ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.075);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.actions .btn {
  flex: 1;
}

.spin {
  display: none;
  animation: spin 0.9s linear infinite;
}
.btn.loading .spin {
  display: block;
}
.btn.loading .arrow {
  display: none;
}

@media (min-width: 640px) {
  .field {
    flex: 1 1 260px;
  }
  .actions {
    flex: 0 0 auto;
  }
  .actions .btn {
    flex: 0 0 auto;
    height: 58px;
    padding: 0 22px;
  }
}

.hints {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--dim);
}
.hints-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 2px;
}

.chip {
  appearance: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.chip:hover {
  color: var(--text);
  border-color: rgba(62, 240, 200, 0.4);
  background: rgba(62, 240, 200, 0.06);
}

.error {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 120, 140, 0.24);
  border-radius: 12px;
  background: rgba(255, 90, 110, 0.07);
  color: #ffb3bd;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- result card ---------- */

.result {
  margin-top: clamp(34px, 6vw, 56px);
  scroll-margin-top: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 34px 90px -40px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 240, 200, 0.65), transparent);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}

.place {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.flag {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
}

.place > div {
  min-width: 0;
}

.place h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.place p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.badge {
  padding: 3px 7px 4px;
  border: 1px solid rgba(62, 240, 200, 0.28);
  border-radius: 6px;
  background: rgba(62, 240, 200, 0.08);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.badge.muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
}

.card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.mini:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.07);
}
.mini svg {
  width: 14px;
  height: 14px;
}
.mini .txt {
  display: none;
}
@media (min-width: 620px) {
  .mini {
    width: auto;
    padding: 0 12px;
  }
  .mini .txt {
    display: inline;
  }
}

@media (max-width: 519px) {
  .badge.muted {
    display: none;
  }
}

.ip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px clamp(20px, 4vw, 30px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}
.ip-row code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(17px, 4.6vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #f4fffc;
  word-break: break-all;
}
.ip-row code.v6 {
  font-size: clamp(14px, 3.8vw, 20px);
  word-break: normal;
  overflow-wrap: anywhere;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}

.via {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  word-break: break-all;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
@media (min-width: 820px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  min-width: 0;
  padding: 16px clamp(16px, 3.6vw, 24px);
  background: rgba(7, 10, 15, 0.88);
}
.stat .k {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.stat .v {
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.stat .v.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
.stat .s {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
}

.map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px clamp(20px, 4vw, 30px);
  border-top: 1px solid var(--line);
}

.coords {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.coords svg {
  width: 14px;
  height: 14px;
  color: var(--mint);
  opacity: 0.8;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.map-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.map-links a:hover {
  color: var(--mint);
  border-color: rgba(62, 240, 200, 0.4);
  background: rgba(62, 240, 200, 0.05);
}
.map-links a svg {
  width: 11px;
  height: 11px;
  opacity: 0.55;
}

.raw {
  border-top: 1px solid var(--line);
}
.raw summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px clamp(20px, 4vw, 30px);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s;
}
.raw summary:hover {
  color: var(--muted);
}
.raw summary::-webkit-details-marker {
  display: none;
}
.raw summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
}
.raw[open] summary::before {
  content: "−";
}
.raw pre {
  max-height: 340px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 30px) 22px;
  overflow: auto;
  color: #9fb0c2;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- loading ---------- */

.sk-card {
  padding: clamp(20px, 4vw, 30px);
}

.loader-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.loader-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.2s ease-in-out infinite;
}

.sk {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045) 25%,
    rgba(255, 255, 255, 0.09) 37%,
    rgba(255, 255, 255, 0.045) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.sk-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.sk-flag {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
}
.sk-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sk-l1 {
  width: 38%;
  height: 20px;
}
.sk-l2 {
  width: 56%;
  height: 12px;
}
.sk-ip {
  width: min(45%, 300px);
  height: 26px;
  margin: 30px 0 6px;
}
.sk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
@media (min-width: 820px) {
  .sk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sk-cell {
  height: 56px;
}

/* ---------- error card ---------- */

.error-card {
  padding: clamp(30px, 6vw, 48px) clamp(24px, 5vw, 40px);
  text-align: center;
}
.err-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 141, 157, 0.3);
  border-radius: 14px;
  background: rgba(255, 141, 157, 0.08);
  color: var(--danger);
  font-family: var(--mono);
  font-size: 20px;
}
.error-card h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.error-card p {
  max-width: 420px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.error-card .btn {
  margin-top: 22px;
  height: 42px;
  padding: 0 20px;
  font-size: 13.5px;
}

/* ---------- empty state ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(34px, 6vw, 58px);
  padding: clamp(36px, 7vw, 64px) 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(62, 240, 200, 0.05), transparent 70%),
    rgba(255, 255, 255, 0.012);
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.empty .radar {
  width: 164px;
  height: 164px;
  margin-bottom: 26px;
  opacity: 0.9;
}
.empty h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.empty p {
  max-width: 380px;
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.75;
}

.feats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 24px;
}
.feat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}
.feat svg {
  width: 14px;
  height: 14px;
  color: rgba(62, 240, 200, 0.6);
}

/* ---------- history ---------- */

.history {
  margin-top: clamp(32px, 5vw, 46px);
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
.sec-head h2 {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-btn {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.18s;
}
.link-btn:hover,
.link-btn.armed {
  color: var(--danger);
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.hchip:hover {
  color: var(--text);
  border-color: rgba(62, 240, 200, 0.35);
  background: rgba(62, 240, 200, 0.05);
}
.hchip .hf {
  font-size: 15px;
  line-height: 1;
}
.hchip .hi {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hchip .hc {
  max-width: 96px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- footer ---------- */

.footer {
  width: min(1080px, 100%);
  margin: clamp(40px, 8vw, 70px) auto 0;
  padding: 26px clamp(18px, 4vw, 32px) calc(38px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.7;
}
.footer .mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}
.footer a:hover {
  color: var(--mint);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100vw - 40px);
  padding: 11px 18px;
  border: 1px solid rgba(62, 240, 200, 0.3);
  border-radius: 12px;
  background: rgba(12, 18, 24, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.28s, transform 0.28s;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- misc ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

noscript p {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(255, 141, 157, 0.3);
  border-radius: 12px;
  background: rgba(255, 141, 157, 0.08);
  color: #ffb3bd;
  font-size: 13px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.78);
  }
}

@keyframes blip {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@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;
  }
}
