:root {
  --page-bg: #11100f;
  --panel: #1b1917;
  --line: rgba(237, 221, 200, .2);
  --text: #edddc8;
  --muted: #b8aa98;
  --accent: #f7ba20;
}
* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: dark; background: var(--page-bg); }
body {
  min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden;
  color: var(--text); background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.relay-shell {
  width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}
.brand-zone { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-logo { display: block; width: min(400px, 100%); height: auto; max-height: 150px; object-fit: contain; }
.brand-zone h1 { margin: 12px 0 2px; color: #fff; font-size: 25px; line-height: 1.25; }
.brand-tagline { margin: 0; color: var(--accent); font-size: 19px; font-weight: 750; }
.brand-hint { margin: 9px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.divider { height: 1px; margin: 24px 0; background: var(--line); }
.route-list { display: grid; gap: 10px; }
.route-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  min-height: 64px; padding: 11px 17px; align-items: center; gap: 14px;
  overflow: hidden; color: var(--text); text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.route-card:not(.is-disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.route-card:focus-visible, .official-entry:focus-visible, .permanent-links a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.route-label { overflow: hidden; font-size: 16px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.route-domain {
  min-width: 0; overflow: hidden; color: var(--accent); font-size: 14px; font-weight: 700;
  text-align: right; text-overflow: ellipsis; white-space: nowrap;
}
.route-card.is-disabled { opacity: .65; }
.route-card.is-disabled .route-domain { color: var(--muted); font-weight: 500; }
.permanent-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.permanent-links a {
  padding: 11px 8px; color: var(--accent); text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: 9px; font-size: 13px;
}
.brand-copy h2 { margin: 0 0 10px; color: #fff; font-size: 22px; }
.brand-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.brand-copy .email-copy { margin-top: 16px; }
.email-copy strong { display: inline-block; margin-left: 6px; color: var(--accent); }
.updated-at { display: block; min-height: 1em; margin-top: 10px; color: #80766a; font-size: 11px; }
.official-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.official-entry {
  display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-size: 12px; text-align: center;
}
.official-entry svg {
  width: 32px; height: 32px; padding: 4px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.official-entry:hover { color: var(--accent); }
.official-entry[aria-disabled="true"] { pointer-events: none; opacity: .5; }
.official-entry span { overflow-wrap: anywhere; }
.relay-footer { color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.relay-footer p { margin: 5px 0; }
.relay-footer .legal-note { margin-bottom: 18px; color: var(--text); }
.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;
}
@media (max-width: 420px) {
  .relay-shell { padding-right: 16px; padding-left: 16px; }
  .brand-zone h1 { font-size: 22px; }
  .brand-tagline { font-size: 17px; }
  .route-card { grid-template-columns: 1fr; gap: 3px; }
  .route-domain { text-align: left; }
  .official-grid { gap: 5px; }
  .official-entry { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .route-card, .official-entry { transition: color .15s ease, border-color .15s ease, transform .15s ease; }
}
