:root {
  color-scheme: dark;
  --bg: #090c0a;
  --surface: #101512;
  --line: rgba(229, 242, 233, 0.12);
  --line-strong: rgba(229, 242, 233, 0.24);
  --ink: #edf5ef;
  --muted: #91a097;
  --lime: #a8f263;
  --red: #f07467;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

.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;
}

.boot, .home {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem 1.25rem; text-align: center;
}
.boot { color: var(--muted); }
.home h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -0.03em; }
.lede { margin: 0 0 1rem; color: var(--muted); max-width: 28rem; line-height: 1.5; }

.choices { display: grid; gap: 0.9rem; width: min(100%, 26rem); }
.choice {
  display: grid; gap: 0.3rem; padding: 1.2rem 1.4rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color 0.12s, transform 0.12s, background 0.12s;
}
.choice b { font-size: 1.25rem; }
.choice span { color: var(--muted); font-size: 0.9rem; }
.choice:hover, .choice:focus-visible { border-color: var(--lime); background: #131b16; outline: none; }
.choice:active { transform: scale(0.985); }
.choice:first-child { border-color: rgba(168, 242, 99, 0.5); }

.build { margin-top: 1.5rem; color: var(--muted); font: 0.7rem ui-monospace, SFMono-Regular, Menlo, monospace; opacity: 0.7; }

.player { position: fixed; inset: 0; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.back {
  position: absolute; z-index: 3;
  top: calc(0.5rem + env(safe-area-inset-top)); right: calc(0.5rem + env(safe-area-inset-right));
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 14, 10, 0.6); border: 1px solid var(--line-strong); color: var(--ink);
  backdrop-filter: blur(8px);
}
.back:hover { border-color: var(--lime); }
.loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  background: var(--bg); color: var(--muted); transition: opacity 0.3s;
}
.loading.ready { opacity: 0; pointer-events: none; }
.loading strong { color: var(--red); }
.spinner {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--lime);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .choice { transition: none; } }
