:root {
  --bg0: #0f1419;
  --bg1: #1a2332;
  --bg2: #243044;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #3d8bfd;
  --accent-press: #2f74d8;
  --ok: #2fbf71;
  --bad: #e35d5d;
  --wait: #c9a227;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #16324d 0%, transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #121820);
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:not(:disabled):hover {
  background: var(--accent-press);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.route-meta {
  min-width: 0;
}

.route-name {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.route-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wait);
  flex-shrink: 0;
}

.route.is-ok .dot {
  background: var(--ok);
}

.route.is-bad .dot {
  background: var(--bad);
}

.route.is-empty .dot {
  background: var(--muted);
}

.route.is-wait .dot {
  background: var(--wait);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.route-go {
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.route.is-ok .route-go {
  background: var(--ok);
  color: #062214;
}

.route-go:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.route.is-ok .route-go:hover:not(:disabled) {
  filter: brightness(1.05);
}

.tip {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
