:root {
  --bg: #050a12;
  --surface: #0f1724;
  --surface-hover: #141f30;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f1f5f9;
  --muted: #64748b;
  --online: #4ade80;
  --offline: #f87171;
  --checking: #94a3b8;
  --accent: #2b8cff;
  --accent-dim: rgba(43, 140, 255, 0.12);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 2.5rem;
}

.hero {
  width: 100%;
  max-width: 480px;
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.mirror-sections {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mirror-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.section-icon-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
}

.section-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-desc {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.mirror-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.mirror-row:hover {
  background: var(--surface-hover);
  border-color: rgba(43, 140, 255, 0.28);
  transform: translateY(-1px);
}

.mirror-host {
  font-size: 1.02rem;
  font-weight: 500;
  word-break: break-all;
}

.mirror-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.mirror-row--online .mirror-status {
  color: var(--online);
}

.mirror-row--offline .mirror-status {
  color: var(--offline);
}

.mirror-row--checking .mirror-status {
  color: var(--checking);
}

.status-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--checking);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.meta {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.disclaimer {
  margin-top: 1.25rem;
  max-width: 480px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 520px) {
  .page {
    justify-content: center;
  }
}
