:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #6b6560;
  --line: #e7e5e4;
  --card: #ffffff;
  --accent: #ec3750;
  --accent-fg: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141212;
    --fg: #f5f5f4;
    --muted: #a8a29e;
    --line: #2e2a29;
    --card: #1c1a19;
    --accent: #ff5a6e;
    --accent-fg: #141212;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 16px 40px;
}

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

h1::before {
  content: '♣';
  color: var(--accent);
  margin-right: 10px;
}

header p {
  margin: 0;
  color: var(--muted);
}

.card {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.dial {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
}

.dial svg {
  transform: rotate(-90deg);
}

.dial circle {
  fill: none;
  stroke-width: 3;
}

.track {
  stroke: var(--line);
}

.fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 175.93;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.95s linear;
}

.dial span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.body {
  flex: 1 1 260px;
  min-width: 0;
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.body b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.go {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.go:hover {
  filter: brightness(1.1);
}

.where {
  margin-top: 3px;
  font-size: 0.85rem;
}

.where a {
  color: var(--muted);
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 0.9em;
  text-decoration-color: transparent;
}

.where a:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

.stay {
  margin: 14px 0 0;
}

.stay button,
.stay button:active {
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

.stay button:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

.status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fill {
    transition: none;
  }
}

@media (max-width: 460px) {
  main {
    padding-top: 40px;
  }
  .card {
    padding: 16px;
    gap: 14px;
  }
}
