:root {
  color-scheme: dark;
  --bg: #0a0b14;
  --bg-elev: rgba(255, 255, 255, 0.035);
  --bg-elev-2: rgba(255, 255, 255, 0.065);
  --border: #1d1f33;
  --border-hover: #2a2d44;
  --text: #f5f6fb;
  --text-dim: #c5c8d8;
  --text-mute: #9aa0b4;
  --text-faint: #868cab;
  --accent: #ff3d7f;
  --accent-2: #54d2d2;
  --play: #ff3d7f;
  --warn: #ffb627;
  --radius: 8px;
  --pad: clamp(16px, 4vw, 40px);
  --display: "Space Grotesk", "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

html {
  overflow-x: clip;
  background: var(--bg);
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 86% -8%, rgba(255, 61, 127, 0.16), transparent 48rem),
    radial-gradient(circle at 0% 32%, rgba(84, 210, 210, 0.08), transparent 44rem),
    linear-gradient(145deg, #0a0b14 0%, #10111d 55%, #080a12 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.scroll-lock {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip,
.card-link,
.credit-pill,
.card-open {
  transition: transform 120ms ease;
}

.button:not(:disabled):not(.is-disabled):active,
.chip:active,
.card-link:not(.is-disabled):active,
.credit-pill:active,
.card-open:active {
  transform: scale(0.97);
}
