:root {
  color: #172036;
  background: #f6f8fc;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, #e4f5ff 0, transparent 34%),
    radial-gradient(circle at 85% 85%, #eae7ff 0, transparent 32%),
    #f6f8fc;
}

.route-stage { width: min(520px, 100%); }

.checking-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #172036;
  box-shadow: 0 5px 16px rgba(23, 32, 54, .16);
  animation: dot-wave 1.05s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: .14s; }
.loading-dot:nth-child(3) { animation-delay: .28s; }

@keyframes dot-wave {
  0%, 60%, 100% { opacity: .28; transform: translateY(0) scale(.82); }
  30% { opacity: 1; transform: translateY(-10px) scale(1); }
}

.route-card {
  padding: 48px 44px 28px;
  border: 1px solid rgba(136, 153, 184, .18);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 80px rgba(34, 56, 97, .13);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border-radius: 14px;
  background: #172036;
}

.brand-mark span {
  width: 5px;
  border-radius: 8px;
  background: #fff;
}

.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 15px; }

.eyebrow {
  margin: 0 0 12px;
  color: #5570da;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.eyebrow.danger { color: #d95866; }

h1 {
  margin: 0;
  color: #131b2e;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.22;
  letter-spacing: -.04em;
}

.description {
  margin: 16px 0 30px;
  color: #69748b;
  font-size: 15px;
  line-height: 1.8;
}

button {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #172036;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}

button:hover { background: #24304c; }
button:active { transform: translateY(1px); }

footer {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #edf0f5;
  color: #98a0af;
  text-align: center;
  font-size: 12px;
}

.hidden { display: none !important; }

@media (max-width: 520px) {
  body { padding: 16px; }
  .route-card { padding: 36px 26px 24px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dot { animation-name: dot-pulse; animation-duration: 1.8s; }
  @keyframes dot-pulse {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
  }
}
