:root {
  color-scheme: dark;
  --bg: #09050f;
  --surface: rgba(22, 12, 37, .9);
  --surface-2: rgba(38, 20, 62, .82);
  --edge: rgba(210, 174, 255, .18);
  --text: #fbf7ff;
  --muted: #aa97bd;
  --cyan: #c9a7ff;
  --violet: #8b5cf6;
  --pink: #e879f9;
  --gold: #f5c2ff;
  --danger: #ff5f75;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
button, input, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
h1, h2, p { margin-top: 0; }

#app { min-height: 100vh; min-height: 100dvh; isolation: isolate; }
#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; background: var(--bg); }
#app::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 32%, transparent 0, rgba(16, 7, 27, .18) 45%, rgba(9, 5, 15, .84) 100%);
}

.eyebrow, .kicker {
  color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; margin: 0;
}
.kicker { color: var(--cyan); }
.view { display: none; }
.view.active { display: block; animation: view-in .35s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.button, button {
  border: 1px solid var(--edge); border-radius: 11px; background: rgba(19, 22, 40, .78);
  color: var(--text); cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button {
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center;
  justify-content: center; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-decoration: none;
}
button:hover, .button:hover { border-color: rgba(201, 167, 255, .5); transform: translateY(-1px); }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
button:disabled, .button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.primary { background: linear-gradient(120deg, var(--cyan), #79a8ff); border-color: transparent; color: #07101b; }
.secondary { background: rgba(23, 27, 48, .78); }
.ghost { background: transparent; }

select, input[type="search"] {
  width: 100%; height: 42px; border-radius: 9px; border: 1px solid var(--edge);
  background: rgba(7, 9, 18, .72); color: var(--text); padding: 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
