:root {
  --bg: #0b0e14;
  --bg-soft: #131826;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8ecf3;
  --muted: #93a0b4;
  --light: #ffd27a;
  --hunter: #7ad0ff;
  --danger: #ff7a7a;
  --ok: #7ce3a8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a { color: var(--hunter); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
button:hover:not(:disabled) { background: #1b2233; }
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

button.primary {
  background: linear-gradient(135deg, #ffd27a, #ffb35c);
  color: #1a1408;
  border-color: transparent;
  font-weight: 600;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.muted { color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.light { color: var(--light); border-color: rgba(255, 210, 122, 0.4); }
.tag.hunter { color: var(--hunter); border-color: rgba(122, 208, 255, 0.4); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20, 26, 40, 0.95);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

input, select {
  font: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
}
