:root {
  color-scheme: dark;
  --night: #151320;
  --night-deeper: #11101a;
  --star-card: #1d1a2c;
  --surface-deep: #181526;
  --surface-soft: rgba(37, 33, 58, 0.82);
  --star-blue: #5785ea;
  --star-pink: #e297c6;
  --star-gold: #f5c855;
  --dust-ink: #f2eef6;
  --dust-gray: #8b8fa3;
  --dust-muted: #5c5a6e;
  --star-border: rgba(255, 255, 255, 0.06);
  --star-border-strong: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(29, 26, 44, 0.72);
  --blue-glow: rgba(87, 133, 234, 0.22);
  --pink-glow: rgba(226, 151, 198, 0.18);
  --gold-glow: rgba(245, 200, 85, 0.18);
  --danger: #e88c8c;
  --ok: #8ad7a1;
  --brand-grad: linear-gradient(135deg, var(--star-pink), var(--star-blue));
  --page-gutter: clamp(20px, 4vw, 64px);
  --font-display: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-card: 16px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --ease-gentle: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 0.2s;
  --motion-base: 0.25s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color: var(--dust-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 75% 18%, rgba(87, 133, 234, 0.16), transparent 28%),
    radial-gradient(circle at 20% 88%, rgba(226, 151, 198, 0.12), transparent 30%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deeper) 100%);
  color: var(--dust-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid rgba(245, 200, 85, 0.82);
  outline-offset: 3px;
}

::selection {
  background: rgba(245, 200, 85, 0.28);
}

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