/* The gold trim: bot name and logo ring, carved titles with a gold rule, gold-edged stat boxes, theme switch. */
/* ---- Gold trim and carved titles -------------------------------------- */
/* Sidebar: the bot's name in gold, a lit ring around the logo, carved section labels with a trailing line. */
.brand #botName {
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.125rem;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-fill) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .logo { box-shadow: 0 0 0 1px var(--line), 0 0 0 4px var(--surface), 0 0 0 5px var(--gold-fill), 0 0 16px 4px var(--gold-glow); }
.brand .logo .tri { text-shadow: 0 0 10px var(--gold-glow); animation: tri-breathe 5s ease-in-out infinite; }
@keyframes tri-breathe { 50% { text-shadow: 0 0 18px var(--gold-fill); } }
.navhead { font-family: var(--display); letter-spacing: .14em; font-size: .6875rem; }
.navhead::after { content: ""; display: inline-block; vertical-align: middle; width: 24px; height: 1px; margin-left: 8px;
  background: linear-gradient(90deg, var(--gold-fill), transparent); }
/* The chosen tab's glowing edge. */
.nav-ind {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, var(--sunken)), var(--sunken) 85%);
  box-shadow: -4px 0 14px -4px var(--glow);
}
nav button[aria-current="page"] { font-weight: 600; }

/* Page titles: Cinzel with a gold rule fading out underneath. */
main > section > h1, .pagehead > h1, .me-head h1 { font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
main > section > h1, main > section > .pagehead { padding-bottom: 10px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--gold-fill), color-mix(in srgb, var(--gold-fill) 30%, transparent) 140px, transparent 340px) bottom left / 100% 1px no-repeat; }
main > section > .pagehead > h1 { padding-bottom: 0; background: none; }

/* Stat numbers in gold-edged boxes. */
.stats { gap: 12px; }
.stats > div { position: relative; padding: 12px 18px 10px; min-width: 9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.stats > div::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-fill), transparent); }
.stats b { font-family: var(--display); font-weight: 700; letter-spacing: .02em; text-shadow: 0 0 14px var(--gold-glow); }

/* Theme switch: Auto / Light / Dark. */
.themebox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; max-width: 360px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); }
.themebox button { border: 0; border-radius: 7px; background: none; padding: 9px 6px; font-size: .9375rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.themebox button:hover { color: var(--ink); }
.themebox button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .15); }
.themebox button { transition: color .15s, background .2s, box-shadow .2s; }

@media (max-width: 760px) {
  .nav-ind { background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 16%, var(--sunken)), var(--sunken)); box-shadow: 0 4px 14px -6px var(--glow); }
  .stats > div { min-width: 0; flex: 1 1 8rem; }
}
@media (prefers-reduced-motion: reduce) { .brand .logo .tri { animation: none; } }
