:root {
  --bg: #faf8f3;
  --fg: #1a1a1a;
  --muted: #555;
  --line: #d4cfc1;
  --pulse: #1D9E75;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  font-size: 14px;
}
header {
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
header a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
header a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.h-right { font-weight: 600; color: var(--fg); letter-spacing: 0.05em; text-transform: uppercase; font-size: 11px; }
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: var(--muted);
  font-weight: 600;
}
.status-pill .pulse {
  width: 8px; height: 8px;
  background: var(--pulse);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
.signal-code {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.signal-state {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--fg);
}
.signal-action {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 600px;
}
.stats {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 700px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.15s;
}
.pill:hover { background: var(--fg); color: var(--bg); }
footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.sm-eco-intro {
  margin-bottom: 8px;
  color: var(--fg);
}
.sm-eco-intro strong { color: var(--fg); }
.territories {
  margin-bottom: 16px;
  line-height: 2;
  word-spacing: 4px;
}
.territories a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
  padding: 0 2px;
}
.territories a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.sub-footer {
  margin-bottom: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.sub-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.sub-footer a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.copyright { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) {
  header { flex-direction: column; align-items: flex-start; font-size: 11px; }
  main { padding: 40px 16px; }
  .sub-footer { flex-direction: column; gap: 2px; }
  .sub-footer span:nth-child(even) { display: none; }
}
