:root {
  --bg-base: #1a0b22;
  --bg-surface: #241030;
  --bg-surface-elevated: #2e1540;
  --bg-surface-hover: #3a1c4a;
  --gold: #e3b766;
  --gold-primary: #e3b766;
  --gold-light: #f0c96e;
  --gold-dark: #c9a35c;
  --gold-glow: rgba(227, 183, 102, 0.25);
  --wine: #b0245e;
  --wine-dark: #861a47;
  --wine-light: #f3b0cb;
  --plum: #2a1236;
  --text-main: #f3e9f2;
  --text-muted: #c3b0c8;
  --text-sub: #ab97b1;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(227, 183, 102, 0.4);
  --bg-color: #1a0b22;
  --card-bg: #241030;
  --card-sub-bg: rgba(46, 21, 64, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --font-display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(176, 36, 94, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(227, 183, 102, 0.07) 0%, transparent 40%);
  font-family: var(--font-sans);
}

.site-header {
  background: #1a0b22;
  border-bottom: 3px solid var(--gold);
  padding: 10px 20px;
}

.header-inner {
  max-width: 1040px;
}

.header-brand {
  gap: 10px;
  height: 32px;
}

.header-logo {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  box-shadow: none;
}

.header-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-main);
  background: none;
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 10px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-light);
  background: none;
}

.nav-link.active {
  color: var(--gold-light);
  background: none;
  border: none;
}

.btn-header-cta {
  font-size: 14px;
  line-height: 22px;
  padding: 4px 16px;
}

h1,
.page-header h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: balance;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

h1 *,
.page-header h1 *,
.page-hero h1 * {
  font-family: inherit;
  font-weight: inherit;
}

h1 .brand-name,
.page-header .brand-name,
.page-hero .brand-name,
header .brand-name {
  color: var(--gold-light);
  background: none;
  -webkit-text-fill-color: var(--gold-light);
}

.header-icon,
.page-header img,
.page-hero img {
  border-color: var(--gold);
}

.badge-header {
  background: rgba(227, 183, 102, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.quickstart-box {
  background: linear-gradient(135deg, rgba(176, 36, 94, 0.22) 0%, rgba(36, 16, 48, 0.95) 100%);
  border: 1px solid var(--border-gold);
}

.quickstep-badge {
  background: var(--gold);
  color: var(--plum);
}

.quickstart-step-num {
  background: rgba(227, 183, 102, 0.18);
  color: var(--gold-light);
}

.ai-chat-card {
  border: 1px solid var(--border-gold);
}

.ai-chat-card::before {
  background: linear-gradient(to bottom, var(--gold), var(--wine));
}

.toc-link:hover,
.quick-toc-link:hover {
  background: rgba(227, 183, 102, 0.14);
  border-color: var(--gold);
  color: var(--gold-light);
}

.copyable-badge,
.command-badge,
.command-badge.purple,
.command-badge.blue {
  background: rgba(227, 183, 102, 0.12);
  border: 1px dashed var(--border-gold);
  color: var(--gold-light);
}

.copyable-badge:hover,
.command-badge:hover,
.command-badge.purple:hover,
.command-badge.blue:hover {
  background: rgba(227, 183, 102, 0.26);
  border-color: var(--gold);
}

.copy-toast {
  background: var(--plum);
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
}

.btn-nav-link.highlight {
  background: rgba(227, 183, 102, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-back-to-top {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}

.btn-back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--plum);
}

.discord-mockup,
.discord-card-wrapper {
  color: #f3f4f6;
}

.btn-bottle {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
  color: var(--plum);
}

@media (min-width: 901px) {
  .header-inner {
    height: 32px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .header-nav {
    gap: 2px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 16px;
  }
}
