/* Sanctuary Tools — landing theme (Horadrim / Wayfinder atmospheres). */

:root,
[data-theme="horadrim"] {
  /* Blood-gold: crimson accent (sits on black like cyan) + antique gold metal */
  --bg0: #030406;
  --bg1: #09060a;
  --bg2: #050308;
  --panel: #05070c;
  --accent: #d4564e;
  --accent-deep: #8a2a28;
  --accent-glow: rgba(212, 86, 78, 0.3);
  --accent-wash: rgba(120, 30, 40, 0.07);
  --accent-wash-2: rgba(90, 20, 35, 0.08);
  --accent-mist: rgba(100, 25, 40, 0.04);
  --metal: #e2c57a;
  --metal-soft: #c9a85a;
  --cta-top: #efc66a;
  --cta-mid: #d4b056;
  --cta-bot: #a8792e;
  --cta-ink: #1a120a;
  --bone: #e7e1d4;
  --muted: #9a9286;
  --line: rgba(212, 86, 78, 0.22);
  --line-strong: rgba(226, 197, 122, 0.28);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

[data-theme="wayfinder"] {
  /* Deeper black field — grain reduced (was reading as blue/white texture) */
  --bg0: #030406;
  --bg1: #06080c;
  --bg2: #040508;
  --panel: #05070c;
  --accent: #5bb8d4;
  --accent-deep: #2a6f8a;
  --accent-glow: rgba(91, 184, 212, 0.28);
  --accent-wash: rgba(30, 70, 110, 0.04);
  --accent-wash-2: rgba(20, 45, 75, 0.05);
  --accent-mist: rgba(25, 55, 90, 0.03);
  --metal: #a8c5d4;
  --metal-soft: #7a9bb8;
  --cta-top: #8fd4e8;
  --cta-mid: #5bb8d4;
  --cta-bot: #2f7a96;
  --cta-ink: #071018;
  --bone: #e7e1d4;
  --muted: #8fa0ad;
  --line: rgba(91, 184, 212, 0.2);
  --line-strong: rgba(91, 184, 212, 0.32);
}

[data-theme="bundle"] {
  /* Deep black + antique gold — same depth as Horadrim / Wayfinder */
  --bg0: #030406;
  --bg1: #08070a;
  --bg2: #050408;
  --panel: #05070c;
  --accent: #d4b56a;
  --accent-deep: #8a6a32;
  --accent-glow: rgba(212, 181, 106, 0.28);
  --accent-wash: rgba(160, 120, 50, 0.05);
  --accent-wash-2: rgba(120, 80, 30, 0.06);
  --accent-mist: rgba(140, 100, 40, 0.03);
  --metal: #e2c57a;
  --metal-soft: #c9a85a;
  --cta-top: #efc66a;
  --cta-mid: #d4b056;
  --cta-bot: #a8792e;
  --cta-ink: #1a120a;
  --bone: #e7e1d4;
  --muted: #9a9286;
  --line: rgba(212, 181, 106, 0.2);
  --line-strong: rgba(226, 197, 122, 0.3);
}

[data-theme="talrasha"] {
  /* Same deep black field; purple accent for vibrancy */
  --bg0: #030406;
  --bg1: #08060e;
  --bg2: #050308;
  --panel: #0a0712;
  --accent: #b07cff;
  --accent-deep: #6b3aad;
  --accent-glow: rgba(176, 124, 255, 0.3);
  --accent-wash: rgba(100, 50, 170, 0.06);
  --accent-wash-2: rgba(70, 30, 120, 0.07);
  --accent-mist: rgba(110, 60, 180, 0.04);
  --metal: #d4b8ff;
  --metal-soft: #9a7acc;
  --cta-top: #d4b0ff;
  --cta-mid: #b07cff;
  --cta-bot: #7a48c8;
  --cta-ink: #12081c;
  --bone: #e7e1d4;
  --muted: #9a8eaa;
  --line: rgba(176, 124, 255, 0.2);
  --line-strong: rgba(212, 184, 255, 0.3);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg0);
  background-image:
    radial-gradient(900px 480px at 78% -12%, var(--accent-wash), transparent 58%),
    radial-gradient(800px 520px at 8% 100%, var(--accent-wash-2), transparent 52%),
    linear-gradient(168deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  background-attachment: fixed;
  transition: background-color 0.45s ease, background-image 0.45s ease;
}

/* Horadrim: deep black + wine wash (crimson accent, gold metal) */
body[data-theme="horadrim"] {
  background-color: #030406;
  background-image:
    radial-gradient(880px 500px at 85% -15%, rgba(110, 25, 40, 0.09), transparent 55%),
    radial-gradient(720px 480px at 5% 105%, rgba(70, 15, 30, 0.1), transparent 50%),
    linear-gradient(165deg, #020305 0%, #09060a 50%, #030406 100%);
}

/* Wayfinder: deeper black site field */
body[data-theme="wayfinder"] {
  background-color: #030406;
  background-image:
    radial-gradient(880px 500px at 85% -15%, rgba(25, 55, 90, 0.05), transparent 55%),
    radial-gradient(720px 480px at 5% 105%, rgba(15, 35, 60, 0.06), transparent 50%),
    linear-gradient(165deg, #020305 0%, #06080c 50%, #030406 100%);
}

/* Tal Rasha: same deep black depth, subtle violet wash */
body[data-theme="talrasha"] {
  background-color: #030406;
  background-image:
    radial-gradient(880px 500px at 85% -15%, rgba(100, 45, 170, 0.07), transparent 55%),
    radial-gradient(720px 480px at 5% 105%, rgba(60, 25, 110, 0.08), transparent 50%),
    linear-gradient(165deg, #020305 0%, #08060e 50%, #030406 100%);
}

/* Bundle: deep black + gold wash (match sibling depth) */
body[data-theme="bundle"] {
  background-color: #030406;
  background-image:
    radial-gradient(880px 500px at 85% -15%, rgba(160, 120, 50, 0.06), transparent 55%),
    radial-gradient(720px 480px at 5% 105%, rgba(110, 70, 25, 0.07), transparent 50%),
    linear-gradient(165deg, #020305 0%, #08070a 50%, #030406 100%);
}

body[data-theme="horadrim"]::before,
body[data-theme="wayfinder"]::before,
body[data-theme="talrasha"]::before,
body[data-theme="bundle"]::before { opacity: 0.012; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a { color: var(--metal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #f0d9a0; }
[data-theme="horadrim"] a:hover { color: #f2d9a0; }
[data-theme="wayfinder"] a:hover { color: #d2eef7; }
[data-theme="talrasha"] a:hover { color: #ead9ff; }

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 11, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  display: block;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.wordmark span {
  color: var(--bone);
  margin-left: 0.35rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--bone); }

/* —— Tabs —— */
.tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.25rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.15rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tab:hover { color: var(--bone); }
.tab.active {
  color: var(--metal);
  border-bottom-color: var(--accent);
}

.tab-end {
  margin-left: auto;
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }
  .nav-links {
    gap: 0.85rem;
    font-size: 0.88rem;
  }
  .brand-logo {
    width: 2rem;
    height: 2rem;
  }
  .wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }
  .tab {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    padding: 0.85rem 0.75rem;
  }
  .tab-end {
    margin-left: 0.5rem;
  }
}

/* —— Panels / AJAX product stage —— */
.product-stage {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.product-stage.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.product-stage.is-loading {
  opacity: 0.35;
  pointer-events: none;
}

.panel {
  display: none;
  position: relative;
  z-index: 1;
  animation: rise 0.5s ease both;
}

.panel.active { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-atmosphere.is-on { opacity: 1; }

.hero-atmosphere img {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(62%, 640px);
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.22;
  filter: saturate(0.85) brightness(0.55);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 78%, transparent 100%),
               linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 78%, transparent 100%),
                      linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero-visual { order: -1; }
  .hero-atmosphere img {
    right: 0;
    top: 0;
    width: 100%;
    opacity: 0.16;
  }
}

.eyebrow-stack {
  margin: 0 0 0.85rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  transition: color 0.35s ease;
}

.eyebrow-stack .eyebrow { margin: 0; }

.eyebrow-game {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

[data-theme="horadrim"] .eyebrow-game {
  color: #9a3a38;
}

[data-theme="wayfinder"] .eyebrow-game {
  color: #2f6f9a;
}

[data-theme="talrasha"] .eyebrow-game {
  color: #8a5fd4;
}

[data-theme="talrasha"] .steps li,
[data-theme="talrasha"] .ban-card {
  background-color: #0a0712;
}

[data-theme="bundle"] .steps li {
  background-color: #2a2110;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.coming-soon::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.discount-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 36rem;
}

.discount-note strong {
  color: var(--bone);
  font-weight: 600;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eyebrow-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  color: var(--bone);
  text-shadow: 0 0 48px var(--accent-glow);
  transition: text-shadow 0.45s ease;
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin: 1.4rem 0 0.35rem;
}

.price-now {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--metal);
  letter-spacing: 0.04em;
  transition: color 0.35s ease;
}

.price-period {
  font-size: 0.55em;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 0.15rem;
}

.price-was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.05rem;
}

.price-meta {
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-buy {
  color: var(--cta-ink);
  background: linear-gradient(180deg, var(--cta-top), var(--cta-mid) 45%, var(--cta-bot));
  box-shadow: 0 0 0 1px rgba(255, 210, 140, 0.2), 0 10px 30px color-mix(in srgb, var(--accent-deep) 40%, transparent);
}

.btn-buy:hover {
  color: var(--cta-ink);
  box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.35), 0 14px 36px color-mix(in srgb, var(--accent-deep) 50%, transparent);
}

.btn-ghost {
  color: var(--bone);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--bone);
  border-color: color-mix(in srgb, var(--metal) 55%, transparent);
  background: color-mix(in srgb, var(--metal) 8%, transparent);
}

/* —— Visual —— */
.hero-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(18px);
  animation: pulse 5.5s ease-in-out infinite;
  transition: background 0.45s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 0.95; transform: scale(1.04); }
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(72%, 280px);
  border-radius: 18px;
  display: block;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.hero-logos {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
}

.hero-logos .hero-logo {
  width: min(42%, 200px);
  animation: none;
}

.hero-logos .hero-logo:first-child {
  animation: floaty 6s ease-in-out infinite;
}

.hero-logos .hero-logo:last-child {
  animation: floaty 6.5s ease-in-out 0.4s infinite;
}

.bundle-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  margin-bottom: 2rem;
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 2.75rem;
}

.section + .section {
  padding-top: 0.25rem;
}

.section-block {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.section h2,
.section-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--metal);
  margin: 0 0 1.35rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: color 0.35s ease;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent 90%);
  transition: background 0.35s ease;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .feature-list { grid-template-columns: 1fr; }
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}

.feature-list li:nth-child(2n) { border-right: 0; }

@media (max-width: 700px) {
  .feature-list li { border-right: 0; padding-left: 1.15rem; }
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  background: var(--accent);
  opacity: 0.75;
  transition: background 0.35s ease, opacity 0.2s ease;
}

.feature-list li:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: color-mix(in srgb, var(--muted) 70%, var(--bone));
}

.feature-list li:hover::before { opacity: 1; }

.feature-list strong {
  display: block;
  color: var(--bone);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.howto {
  margin-top: 0.5rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Bundle has 3 steps — always one row until phone */
.steps:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps,
  .steps:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  align-content: start;
  text-align: center;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
  padding: 1.35rem 1.1rem 1.45rem;
  /* Solid box fill — matches original screenshot panels */
  background-color: var(--panel);
  min-height: 9.5rem;
}

[data-theme="horadrim"] .steps li {
  background-color: #2a0e12;
}

[data-theme="wayfinder"] .steps li {
  background-color: #05070c;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
}

.steps strong {
  color: var(--bone);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 46rem;
}

.howto .note {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 36rem;
}

.note strong { color: var(--bone); font-weight: 600; }

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn-text {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--metal);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.15rem;
  cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--metal) 35%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-text:hover {
  color: var(--bone);
  border-bottom-color: var(--accent);
}

/* —— Fullscreen gallery —— */
.gallery-overlay,
.updates-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: rgba(2, 3, 5, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-overlay.open,
.updates-overlay.open {
  display: flex;
}

.gallery-shell {
  position: relative;
  width: min(1200px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem) 1.25rem;
}

.gallery-top,
.updates-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
}

.gallery-kicker,
.updates-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-kicker strong,
.updates-kicker strong {
  color: var(--metal);
  font-weight: 600;
}

.icon-btn {
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.7);
  color: var(--bone);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.gallery-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #05070c;
  overflow: hidden;
}

.gallery-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.5rem;
}

.gallery-nav .icon-btn {
  pointer-events: auto;
  background: rgba(5, 7, 12, 0.75);
}

.gallery-caption {
  padding: 1rem 0.15rem 0.25rem;
  max-width: 52rem;
}

.gallery-caption h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--metal);
  font-weight: 600;
}

.gallery-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.gallery-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.gallery-dot {
  appearance: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* —— Updates modal —— */
.updates-shell {
  width: min(640px, calc(100% - 2rem));
  max-height: min(88vh, 820px);
  margin: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #080a0f;
  overflow: hidden;
}

.updates-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.updates-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 1.1rem 1rem;
  overflow: hidden;
}

.dev-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  margin: 0.85rem 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.dev-status .label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dev-status .value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.changelog-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(58vh, 520px);
  padding-right: 0.25rem;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, #000);
}

.changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.changelog li {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.55rem 0.75rem;
  align-items: start;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.changelog li:last-child { border-bottom: 0; }

.changelog .when {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.changelog .log-main { min-width: 0; }

.changelog .log-title {
  display: block;
  color: var(--bone);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.12rem;
  line-height: 1.25;
}

.changelog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .changelog li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.5rem 0.65rem;
  }
}

.ban-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.15rem 1.2rem;
}

[data-theme="horadrim"] .ban-card {
  background: #2a0e12;
}

[data-theme="wayfinder"] .ban-card {
  background: #05070c;
}

.ban-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
}

.ban-status .label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ban-status .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--metal);
  font-weight: 600;
}

.ban-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
}

.ban-card p + p { margin-top: 0.7rem; }

body.modal-open { overflow: hidden; }

.nav-text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-text-btn:hover { color: var(--metal); }
.nav-email {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.widget-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 3, 5, 0.78);
  backdrop-filter: blur(10px);
}
.widget-overlay.open { display: flex; }
.widget-shell {
  width: min(440px, 100%);
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.widget-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.widget-tab {
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.widget-tab:hover { color: var(--bone); }
.widget-tab.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.widget-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}
.widget-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}
.widget-field { margin: 0.85rem 0; }
.widget-field label,
.widget-label {
  display: block;
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.widget-field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0c12;
  color: var(--bone);
  font: inherit;
}
.widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.widget-actions .btn { border-radius: 10px; }
.widget-shell .icon-btn { border-radius: 10px; }
.widget-msg {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.widget-msg.error { color: #e8a0a0; }
.buy-quote {
  margin: 0.5rem 0 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.buy-quote-price .now {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--metal);
}
.buy-quote-price .was {
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 0.45rem;
}
.buy-quote-price .cur { color: var(--muted); font-size: 0.95rem; }
.buy-quote-note {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.buy-quote-countdown,
.promo-countdown {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--metal);
}
.buy-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.buy-providers label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bone);
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.75rem clamp(1rem, 3vw, 2rem) 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer a:not(.footer-blurb-link) {
  color: var(--metal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-blurbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-template-areas:
    "discord"
    "windows"
    "blizzard"
    "license";
}

.footer-blurb-discord { grid-area: discord; }
.footer-blurb-windows { grid-area: windows; }
.footer-blurb-blizzard { grid-area: blizzard; }
.footer-blurb-license { grid-area: license; }

@media (min-width: 640px) {
  .footer-blurbs {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "discord license"
      "windows blizzard";
  }
}

@media (min-width: 1100px) {
  .footer-blurbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "discord windows blizzard license";
  }
}

.footer-blurb,
a.footer-blurb-link.footer-blurb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 1.2rem 1.25rem 1.3rem;
  min-height: 100%;
  text-decoration: none;
  color: var(--muted);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #161922), #0d1016);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.footer-blurb-link.footer-blurb:hover {
  color: var(--muted);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--metal) 70%, transparent);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.48),
    0 0 24px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.footer-blurb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-deep);
}

.footer-blurb-icon svg { display: block; }
.footer-blurb-icon-discord { background: #5865F2; }
.footer-blurb-icon-windows { background: #0078D4; }
.footer-blurb-icon-seat { background: #3d4a3a; }

.footer-blurb-blizzard {
  justify-content: center;
}

.footer-blurb-wordmark {
  display: block;
  width: 100%;
  max-width: 13.5rem;
  height: auto;
  margin: 0.15rem 0 0.1rem;
  object-fit: contain;
  mix-blend-mode: screen;
}

.footer-blurb-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--bone);
}

.footer-blurb-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
