/* 星屿赛车 · 基础变量与重置 */
:root {
  --bg: #0b0d14;
  --bg-2: #111522;
  --panel: rgba(14, 18, 28, 0.82);
  --panel-solid: #121724;
  --ink: #f6efe2;
  --muted: rgba(235, 232, 224, 0.58);
  --faint: rgba(235, 232, 224, 0.36);
  --line: rgba(255, 255, 255, 0.11);
  --orange: #ff9f43;
  --orange-2: #ff6b35;
  --cyan: #36e2c9;
  --cyan-2: #58f3ff;
  --red: #ff5d68;
  --green: #68f3b1;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius: 16px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 159, 67, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  color: #17120c;
  background: linear-gradient(135deg, #ffc46b, #ff8a3d);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(255, 131, 52, 0.25);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.mono {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
