:root {
  --background: #0a0a0a;
  --surface: #111111;
  --surface-pressed: #1a1a1a;
  --border: #242424;
  --text: #ededed;
  --text-muted: #8f8f8f;
  --radius: 12px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 460px;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  color: var(--text);
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Inter',
    'Segoe UI',
    Roboto,
    sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

/* Tapping twice quickly should press a button twice, not zoom the page. */
a,
button {
  touch-action: manipulation;
}

.hero {
  padding: 40px 0 8px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

section {
  margin-top: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  font-weight: 500;
  transition: background 0.12s ease;
}

.row + .row {
  border-top: 1px solid var(--border);
}

.row::after {
  content: '›';
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.row:active {
  background: var(--surface-pressed);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  transition: opacity 0.12s ease;
}

.button:active {
  opacity: 0.7;
}

.button:disabled {
  opacity: 0.4;
}

.button-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#server-check {
  display: grid;
  gap: 12px;
}

#server-check p {
  color: var(--text-muted);
}

.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.checks li + li {
  border-top: 1px solid var(--border);
}

.checks li::before {
  grid-row: span 2;
  font-weight: 600;
}

.checks strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.checks strong::first-letter {
  text-transform: uppercase;
}

.check-ok::before {
  content: '✓';
  color: var(--text);
}

.check-bad::before {
  content: '✕';
  color: var(--text-muted);
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer p + p {
  margin-top: 10px;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
