:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --dim: #6a6a6a;
  --accent: #e8e8e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#app {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

header h1 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

header .sub {
  color: var(--dim);
  margin-top: 0.25rem;
}

.state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 6rem;
}

.status {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.state.live .status::before {
  content: "● ";
  color: #ff3b3b;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.meta {
  color: var(--dim);
  white-space: pre-wrap;
}

button {
  align-self: flex-start;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
}

button:hover { background: var(--fg); color: var(--bg); }
button:disabled { border-color: var(--dim); color: var(--dim); cursor: default; background: transparent; }

footer {
  color: var(--dim);
  font-size: 0.85rem;
}

a { color: var(--fg); }
