:root {
  --bg: #f6f3ee;
  --card: #fffdf9;
  --ink: #1f1d1a;
  --muted: #8a8377;
  --line: #e8e2d8;
  --soft: #f0ebe2;
  --accent: #dd6340;
  --accent-ink: #ffffff;
  --accent-soft: #fbe8df;
  --ok: #2e8b57;
  --ok-soft: #e3f2e9;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 10px 30px -18px rgba(60, 40, 20, 0.25);
  --radius: 16px;
  --seat-0: #dd6340;
  --seat-1: #2a9d8f;
  --seat-2: #5b6ee1;
  --seat-3: #d4940f;
  --seat-4: #b5579b;
  --seat-5: #5f9447;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --card: #1f1e1b;
    --ink: #f2eee6;
    --muted: #9b958a;
    --line: #322f2a;
    --soft: #2a2824;
    --accent: #f07a52;
    --accent-ink: #1a1512;
    --accent-soft: #3a261d;
    --ok: #62c38f;
    --ok-soft: #1c3026;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 72px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
button, input { font: inherit; color: inherit; }
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]::placeholder { color: var(--muted); opacity: 0.8; }
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s, filter 0.15s, background 0.15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { background: var(--soft); color: var(--ink); font-weight: 500; }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.row { display: flex; gap: 10px; }
.row > input { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* 站点标识 */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.brand .mark svg { width: 20px; height: 20px; }

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