:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --muted: #888888;
  --faint: #5a5a5a;
  --line: #1c1c1c;
  --surface: #111111;
  --ok: #78d25a;
  --warn: #ff9632;
  --test: #f0d237;
  --bad: #eb4646;
  --unit: 8px;
  --page: 720px;
  --nav-h: 64px;
  --r: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: calc(100% - 48px);
  max-width: var(--page);
  margin: 0 auto;
}

nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--muted);
}

.links {
  display: flex;
  gap: calc(var(--unit) * 3);
}

.links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--faint);
  transition: color 0.18s var(--ease);
}

.links a:hover,
.links a.is-on { color: var(--fg); }

main {
  padding: calc(var(--unit) * 8) 0 calc(var(--unit) * 10);
}

.page-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: calc(var(--unit) * 5);
}

.home,
.mid {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home main,
.mid main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 24px;
}

.home .stage {
  width: 100%;
  max-width: 360px;
}

.player {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #121212;
}

#embed-iframe { width: 100%; height: 152px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--unit) * 2);
  width: 100%;
}

.card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--unit) * 2.5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.card h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card .pill {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.list {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}

.row .name {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}

.pill.is-undetected { color: var(--ok); }
.pill.is-undetected .dot { background: var(--ok); }
.pill.is-updating { color: var(--warn); }
.pill.is-updating .dot { background: var(--warn); }
.pill.is-testing { color: var(--test); }
.pill.is-testing .dot { background: var(--test); }
.pill.is-detected { color: var(--bad); }
.pill.is-detected .dot { background: var(--bad); }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 16 / 7; }
}
