/* ==========================================================================
   Nameless — home page styles
   Palette pulled from the guild crest: dusk navy, black, antique bronze-gold,
   and the violet of the Nameless one's eyes.
   ========================================================================== */

:root {
  /* Navy (base) */
  --navy-500: #2A3870;
  --navy-600: #24326A;
  --navy: #1E2A5A;
  --navy-700: #18224A;
  --navy-800: #121A3A;
  --navy-900: #0B1028;
  --black: #07080D;

  /* Bronze-gold (sampled from the crest's wordmark) */
  --gold-100: #F4E2C4;
  --gold-300: #E6C08E;
  --gold: #D9A46E;
  --gold-600: #B47E4A;
  --gold-800: #7A5230;
  --gold-ink: #1A1206;

  /* Violet (the eyes) */
  --violet-glow: #B57CFF;
  --violet: #8B3FE0;
  --violet-deep: #5B1D9E;

  /* Text */
  --text: #ECE6D8;
  --text-muted: #AEB5D1;
  --text-faint: #7E87AE;
  --danger: #FF8F88;

  /* Lines */
  --line: rgba(217, 164, 110, 0.2);
  --line-strong: rgba(217, 164, 110, 0.45);

  /* Gradients */
  --gold-metal: linear-gradient(180deg, #F6E4C2 0%, #E2B880 45%, #C08A52 75%, #9A6838 100%);
  --gold-text: linear-gradient(180deg, #F8E9CC 10%, #E3BC86 55%, #B98450 95%);

  /* Type */
  --font-display: "Marcellus SC", "Trajan Pro", Georgia, serif;
  --font-body: "Alegreya", Georgia, serif;
  --font-label: "Alegreya Sans SC", "Alegreya", sans-serif;
  --font-rune: "Noto Sans Runic", serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain across the whole page for atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--gold-300); font-weight: 500; }
::selection { background: var(--violet-deep); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 2px;
}

.nowrap { white-space: nowrap; }
/* Raid parts on the home page and the portal pages stay hidden until the page knows raids are shown
   (the admin portal's Show/Hide Raids), whatever display their own styles give them */
[data-raids][hidden] { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--font-label); text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Icons ---------- */
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Gem (the crest's diamond studs, in violet) ---------- */
.gem {
  display: inline-block;
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #E9D6FF 0%, var(--violet-glow) 35%, var(--violet) 65%, var(--violet-deep) 100%);
  box-shadow: 0 0 0 1px rgba(217, 164, 110, 0.7), 0 0 10px 1px rgba(181, 124, 255, 0.55);
  flex: none;
}
.gem--lg { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.8em; --pad-x: 1.35em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --pad-y: 0.62em; --pad-x: 1em; font-size: 0.92rem; }
.btn--lg { --pad-y: 1em; --pad-x: 1.7em; font-size: 1.1rem; }

.btn--gold {
  background: var(--gold-metal);
  color: var(--gold-ink);
  border-color: #F3D9AE;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(90, 55, 25, 0.35),
              0 8px 28px -10px rgba(217, 164, 110, 0.7);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(90, 55, 25, 0.35),
              0 14px 34px -10px rgba(217, 164, 110, 0.85);
}

.btn--ghost {
  background: rgba(11, 16, 40, 0.45);
  color: var(--gold-100);
  border-color: var(--line-strong);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--violet-glow);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(181, 124, 255, 0.35), 0 10px 30px -8px rgba(139, 63, 224, 0.6);
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.3em 0.55em;
  border-radius: 999px;
  background: rgba(139, 63, 224, 0.25);
  color: #D9BEFF;
  border: 1px solid rgba(181, 124, 255, 0.4);
}
/* The Officer title by an officer's name, in blue (the Admin one is the plain tag) */
.tag--officer {
  background: rgba(var(--rgb-blue), 0.2);
  color: #CFE0FF;
  border-color: rgba(var(--rgb-blue), 0.55);
}
.tag[hidden] { display: none; }

/* ---------- Ornamented frame (bronze corner brackets) ---------- */
.frame {
  position: relative;
  background:
    linear-gradient(180deg, rgba(42, 56, 112, 0.55), rgba(18, 26, 58, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.frame::before {
  --c: var(--gold);
  --l: 16px;
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) top left / 2px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) top right / 2px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) bottom left / 2px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) bottom right / 2px var(--l);
  background-repeat: no-repeat;
  opacity: 0.85;
  transition: opacity 0.3s;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 16, 40, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { width: 54px; height: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* margin-left: auto keeps the nav at the right when the account menu follows it */
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--gold-100); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { left: 0; right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
/* Log in and Join Discord: main.js hides them once someone is logged in, for the account menu */
.nav-actions[hidden] { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--gold-100);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1.5px; margin: auto;
  background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.nav-open .nav-toggle-bars { background: transparent; }
.site-header.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Account menu: the member portal's header, and the home page's once someone is logged in */
.account-btn {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 13, 0.35);
  color: var(--gold-100);
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.98rem; letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.account-btn:hover, .account-btn[aria-expanded="true"] { border-color: var(--line-strong); background: rgba(30, 42, 90, 0.7); }
.account-chevron { width: 16px; height: 16px; color: var(--gold-300); transition: transform 0.3s var(--ease-out); }
.account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }

/* Avatar: Discord image over a gold monogram fallback */
.avatar {
  --size: 32px;
  position: relative;
  display: inline-grid; place-items: center;
  width: var(--size); height: var(--size);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-700);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.avatar--md { --size: 40px; }
.avatar-initial {
  font-family: var(--font-display);
  font-size: calc(var(--size) * 0.46);
  line-height: 1;
  color: var(--gold-300);
}
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Account panel (disclosure) */
.account-panel {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  width: 280px;
  padding: 16px;
  background: rgba(11, 16, 40, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.85);
  z-index: 60;
}
.account-panel[hidden] { display: none; }
.account-btn[hidden] { display: none; }
.account-id { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.account-id-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-100); line-height: 1.2; }
.account-id-via {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-muted);
}
.account-id-via .icon { width: 14px; height: 14px; }
.account-links { display: grid; gap: 2px; }
.account-links a, .account-signout {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-family: var(--font-label); font-weight: 500;
  font-size: 1rem; letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.account-links a:hover { background: rgba(217, 164, 110, 0.08); color: var(--gold-100); }
.account-rule { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.account-signout {
  background: none; border: 0; cursor: pointer;
  color: var(--text-muted);
  font: inherit;
  font-family: var(--font-label); font-weight: 500; letter-spacing: 0.06em;
}
.account-signout:hover { color: var(--danger); background: rgba(255, 143, 136, 0.08); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 8px) 0 96px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(91, 29, 158, 0.28) 0%, transparent 60%),
    radial-gradient(90% 80% at 50% 40%, var(--navy-500) 0%, var(--navy) 38%, var(--navy-900) 75%, var(--black) 100%);
}
.hero-motes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, var(--navy) 100%);
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* Crest + rune ring */
.crest {
  position: relative;
  width: min(520px, 82vw, 52svh);
  margin-bottom: 12px;
}
.crest-logo {
  position: relative;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}
.crest-logo img { width: 100%; height: auto; }

.rune-ring {
  position: absolute;
  left: 50%; top: 38%;
  width: 138%;
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.ring { transform-origin: 300px 300px; }
.ring circle { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.22; }
.ring text {
  font-family: var(--font-rune);
  font-size: 19px;
  fill: var(--gold-300);
  opacity: 0.32;
  letter-spacing: 2px;
}
.ring--outer { animation: spin 140s linear infinite; }
.ring--inner { animation: spin 100s linear infinite reverse; }
.ring--inner text { font-size: 16px; fill: #CDB0FF; opacity: 0.26; }

/* The Nameless one's eyes — a soft violet bloom laid over the crest */
.eye {
  position: absolute;
  width: 9%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 214, 255, 0.95) 0%, rgba(181, 124, 255, 0.75) 22%, rgba(139, 63, 224, 0.3) 48%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: eye-breathe 5.5s ease-in-out infinite;
}
.eye--l { left: 46.8%; top: 37.8%; }
.eye--r { left: 53.3%; top: 37.9%; animation-delay: 0.08s; }
.crest:hover .eye { animation-duration: 1.4s; }

.launch-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding: 7px 16px 7px 14px;
  border: 1px solid rgba(181, 124, 255, 0.35);
  border-radius: 999px;
  background: rgba(11, 16, 40, 0.55);
  backdrop-filter: blur(6px);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #DCC8FF;
}
.launch-chip[hidden] { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}
.hero-lede {
  max-width: 42ch;
  margin-top: 14px;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text-muted);
}
.hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 32px;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.3em;
  color: var(--text-faint); text-decoration: none;
  transition: color 0.2s;
}
.scroll-cue .icon { width: 22px; height: 22px; animation: nudge 2.4s ease-in-out infinite; }
.scroll-cue:hover { color: var(--gold-300); }

/* Hero load sequence */
.hero .crest, .hero .launch-chip, .hero-title, .hero-lede, .hero-ctas, .scroll-cue {
  animation-name: rise;
  animation-duration: 1.1s;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: both;
}
.hero .crest { animation-duration: 1.4s; }
.hero .launch-chip { animation-delay: 0.35s; }
.hero-title { animation-delay: 0.5s; }
.hero-lede { animation-delay: 0.65s; }
.hero-ctas { animation-delay: 0.8s; }
.scroll-cue { animation-delay: 1.3s; }

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--violet-glow);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: 0.03em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-sub { margin-top: 14px; color: var(--text-muted); }

.divider {
  display: flex; align-items: center; gap: 18px;
  max-width: 520px; margin: 0 auto;
  padding-inline: var(--gutter);
}
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider span:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about-copy p + p { margin-top: 1.1em; }
.about-copy .section-title { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { color: var(--text); }

.pillars { display: grid; gap: 18px; }
.pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 20px;
  align-items: start;
  padding: 26px 28px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
/* gentle stagger so the column doesn't read as a stack of identical boxes */
.pillar:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.pillar:nth-child(3) { margin-left: clamp(0px, 2vw, 24px); }
.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(181, 124, 255, 0.15);
}
.pillar-rune {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  font-family: var(--font-rune);
  font-size: 2rem;
  color: var(--gold-300);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(139, 63, 224, 0.35), rgba(11, 16, 40, 0.8) 70%);
  text-shadow: 0 0 14px rgba(181, 124, 255, 0.8);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-100);
  margin-bottom: 6px;
}
.pillar p { color: var(--text-muted); font-size: 1.05rem; }

/* ==========================================================================
   Raid schedule
   ========================================================================== */
.schedule {
  background:
    linear-gradient(180deg, transparent 90%, var(--navy) 100%),
    radial-gradient(65% 32% at 50% 94%, rgba(255, 120, 50, 0.13), transparent 70%),
    radial-gradient(50% 60% at 85% 10%, rgba(91, 29, 158, 0.18), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 18%, var(--navy-800) 82%, var(--navy) 100%);
}
.schedule::before {
  /* faint arcane grid */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 164, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 164, 110, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 100%);
}
.schedule .container { position: relative; z-index: 1; }
.embers {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  /* embers fade in just above the section edge instead of being cut off by it */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 110px);
  mask-image: linear-gradient(to top, transparent 0, #000 110px);
}

.next-raid {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  padding: 30px 36px;
  margin-bottom: 28px;
  background:
    radial-gradient(80% 140% at 0% 50%, rgba(139, 63, 224, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(42, 56, 112, 0.65), rgba(18, 26, 58, 0.85));
}
.next-raid-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.2em;
  color: var(--violet-glow);
}
.next-raid-label.is-live::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--team-glow, #7CF2A6); box-shadow: 0 0 10px var(--team-glow, #7CF2A6);
  animation: pulse 1.6s ease-in-out infinite;
}
.next-raid-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: var(--gold-100);
}
.next-raid-meta { margin-top: 6px; color: var(--text-muted); }
.next-raid-meta span { white-space: nowrap; }

.countdown { display: flex; gap: 12px; margin: 0; }
.countdown div {
  min-width: 78px;
  padding: 12px 10px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 13, 0.45);
}
.countdown dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.countdown dt {
  order: 2;
  margin-top: 6px;
  font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.18em;
  color: var(--text-faint);
}
.countdown div { display: flex; flex-direction: column-reverse; }

/* Team colors — jewel tones that sit well on the navy. Admins pick one of these seven for each team
   (TEAM_COLORS in assets/js/lib/admin-data.js, raid_teams_color_valid in the database). */
/* Team colors as RGB triplets, also used by tints that mix several teams (the admin member list) */
:root {
  --rgb-red: 226, 85, 85; --rgb-blue: 76, 141, 255; --rgb-green: 60, 196, 138; --rgb-purple: 160, 112, 255;
  --rgb-orange: 240, 138, 60; --rgb-teal: 40, 196, 200; --rgb-gold: 232, 193, 90;
}
[data-color="red"]    { --team: #E25555; --team-glow: #FF8F88; --team-deep: #7A1E25; --team-rgb: var(--rgb-red); }
[data-color="blue"]   { --team: #4C8DFF; --team-glow: #9CC0FF; --team-deep: #1B3B8A; --team-rgb: var(--rgb-blue); }
[data-color="green"]  { --team: #3CC48A; --team-glow: #8BE9BF; --team-deep: #145A3C; --team-rgb: var(--rgb-green); }
[data-color="purple"] { --team: #A070FF; --team-glow: #CDB3FF; --team-deep: #432483; --team-rgb: var(--rgb-purple); }
[data-color="orange"] { --team: #F08A3C; --team-glow: #FFBE85; --team-deep: #7A3A0E; --team-rgb: var(--rgb-orange); }
[data-color="teal"]   { --team: #28C4C8; --team-glow: #8BEAEA; --team-deep: #0E5658; --team-rgb: var(--rgb-teal); }
[data-color="gold"]   { --team: #E8C15A; --team-glow: #FFE29A; --team-deep: #7A5A12; --team-rgb: var(--rgb-gold); }

.team-gem {
  display: inline-block; flex: none;
  width: 20px; height: 20px;
  margin: 0 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff 0%, var(--team-glow) 28%, var(--team) 60%, var(--team-deep) 100%);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 18px 2px rgba(var(--team-rgb), 0.55);
}

/* Next raid card picks up the next team's color */
.next-raid[data-color] {
  background:
    radial-gradient(80% 140% at 0% 50%, rgba(var(--team-rgb), 0.24), transparent 60%),
    linear-gradient(180deg, rgba(42, 56, 112, 0.65), rgba(18, 26, 58, 0.85));
}
.next-raid[data-color] .next-raid-name {
  display: flex; align-items: center; gap: 16px;
  color: var(--team-glow);
  text-shadow: 0 0 22px rgba(var(--team-rgb), 0.45);
}

/* Team panels */
.teams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
}
/* Each panel spans six shared rows, so a longer nights list in one panel
   still keeps every Apply button and roster toggle on the same line */
.team-panel {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding-bottom: 26px;
  border-color: rgba(var(--team-rgb), 0.35);
  /* opaque base (same tones pre-blended) so embers and the grid don't show through */
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(var(--team-rgb), 0.2), transparent 65%),
    linear-gradient(180deg, #1F2B58, #121A3A);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s,
              opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
}
.team-panel::before { --c: var(--team-glow); }
.team-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--team-rgb), 0.65);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.9), 0 0 44px -20px rgba(var(--team-rgb), 0.8);
}
/* Staggered entrance when the group scrolls into view */
.reveal-group .team-panel {
  opacity: 0; translate: 0 26px;
  /* stagger only the entrance (opacity, translate) — hover lift and glow stay instant */
  transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms);
}
.reveal-group.is-visible .team-panel { opacity: 1; translate: 0 0; }

.team-head {
  grid-row: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 26px 26px 20px;
  border-bottom: 1px solid rgba(var(--team-rgb), 0.25);
}
.team-kicker {
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--text-muted);
}
.team-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
  color: var(--team-glow);
  text-shadow: 0 0 20px rgba(var(--team-rgb), 0.45);
}

.team-nights { grid-row: 2; display: grid; align-content: start; gap: 6px; padding: 16px 16px 0; }
.night {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(7, 8, 13, 0.3);
}
.night-day {
  flex: 1;
  font-family: var(--font-label); font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-100);
}
.night-time { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.night.is-today .night-day::after {
  content: "Today";
  margin-left: 10px;
  font-size: 0.7rem; letter-spacing: 0.16em;
  color: var(--violet-glow);
}
.night.is-next { border-color: rgba(var(--team-rgb), 0.55); background: rgba(var(--team-rgb), 0.12); }
.night.is-next .night-time { color: var(--text); }
/* dim finished nights with color, not opacity, so the text keeps AA contrast */
.night.is-done .night-day, .night.is-done .night-time { color: var(--text-faint); }
.night--empty { color: var(--text-faint); font-style: italic; }
.night-status {
  font-family: var(--font-label);
  font-size: 0.68rem; letter-spacing: 0.12em;
  padding: 0.2em 0.55em; border-radius: 999px;
  border: 1px solid rgba(174, 181, 209, 0.35);
  color: var(--text-muted);
}
.night-status--live { border-color: var(--team-glow); color: var(--team-glow); }

/* Raid leaders, shown to signed-in members only (empty for visitors) */
.team-leaders { grid-row: 3; padding: 16px 26px 0; font-size: 0.98rem; color: var(--text-muted); }
.team-leaders:empty { display: none; }
.team-leaders strong { font-family: var(--font-label); font-weight: 700; letter-spacing: 0.06em; color: var(--team-glow); }

.team-next { grid-row: 4; padding: 18px 26px 0; font-size: 1rem; color: var(--text-muted); }
.team-next:empty { display: none; }
.team-next strong { color: var(--team-glow); }

.btn--team {
  grid-row: 5; align-self: start;
  margin: 18px 26px 0;
  background: rgba(var(--team-rgb), 0.12);
  border-color: rgba(var(--team-rgb), 0.55);
  color: #fff;
}
.btn--team:hover {
  transform: translateY(-2px);
  background: rgba(var(--team-rgb), 0.24);
  border-color: var(--team-glow);
  box-shadow: 0 10px 30px -10px rgba(var(--team-rgb), 0.8);
}

/* Applications closed: the Apply button's place shows it, not as a button */
.btn--team.is-closed {
  justify-content: center;
  border-style: dashed;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}
.btn--team.is-closed:hover { transform: none; box-shadow: none; border-color: rgba(var(--team-rgb), 0.55); background: transparent; }

/* Roster dropdown under each Apply button */
.roster { grid-row: 6; align-self: start; margin: 14px 26px 0; container-type: inline-size; }
.roster-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 13, 0.35);
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, border-radius 0.25s;
}
.roster-toggle:hover { border-color: rgba(var(--team-rgb), 0.55); background: rgba(var(--team-rgb), 0.08); }
.roster.is-open .roster-toggle {
  border-color: rgba(var(--team-rgb), 0.55);
  border-radius: var(--radius) var(--radius) 0 0;
}
.roster-toggle-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-100);
}
.roster-count {
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border-radius: 999px;
  background: rgba(var(--team-rgb), 0.2);
  color: var(--team-glow);
  font-size: 0.8rem;
  text-align: center;
}
.roster-summary { grid-column: 1; font-size: 0.88rem; color: var(--text-muted); }
.roster-summary:empty { display: none; }
.roster-chevron {
  grid-column: 2; grid-row: 1 / span 2;
  width: 18px; height: 18px;
  color: var(--gold-300);
  transition: transform 0.35s var(--ease-out);
}
.roster.is-open .roster-chevron { transform: rotate(180deg); }

/* Height animates via grid rows; visibility keeps the closed list out of tab order and screen readers */
.roster-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.roster.is-open .roster-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s;
}
.roster-inner { min-height: 0; overflow: hidden; }

.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(var(--team-rgb), 0.55);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(7, 8, 13, 0.9);
  font-size: 0.95rem;
}
.roster-table th, .roster-table td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}
.roster-table th:first-child, .roster-table td:first-child { padding-left: 14px; }
.roster-table th:last-child, .roster-table td:last-child { padding-right: 14px; text-align: right; }
.roster-table thead th {
  border-top: 0;
  padding-top: 12px; padding-bottom: 8px;
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--text-faint);
}
.member-name { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.is-open-slot .member-name { font-weight: 400; font-style: italic; color: var(--text-faint); }

.standing {
  display: inline-block;
  padding: 0.25em 0.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em;
  white-space: nowrap;
}
.standing--core { background: var(--gold-metal); border-color: #F3D9AE; color: var(--gold-ink); }
.standing--trial { background: rgba(139, 63, 224, 0.18); border-color: rgba(181, 124, 255, 0.5); color: #DCC8FF; }
.standing--bench { background: rgba(174, 181, 209, 0.06); border-color: rgba(174, 181, 209, 0.35); color: var(--text-muted); }
.standing--none { padding-inline: 0; color: var(--text-faint); }

.role-slot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.15em 0.6em 0.15em 0.2em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 8, 13, 0.35);
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--gold-100);
  white-space: nowrap;
}
.role-icon {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.role--empty, .is-open-slot .role-slot { border-style: dashed; background: transparent; }
/* Class icons (assets/brand/classicon_<class>.jpg), and the class or character name beside one in
   the class's color (--class-color, set on the row) */
.class-icon {
  display: inline-block;
  width: 18px; height: 18px; flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(7, 8, 13, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
  vertical-align: -4px;
}
.class-name { color: var(--class-color); }
/* A character's name ("First Last", 2 to 12 letters each), on a roster or anywhere else beside its class
   icon, wraps between its first and last name but never inside one, and the icon stays with the first name
   (nameWithIcon in lib/roster.js) */
.name-part { white-space: nowrap; }
.name-part > .class-icon { margin-right: 8px; }
@container (max-width: 290px) {
  .roster-table thead th { letter-spacing: 0.08em; }
  .role-slot:not(.role--empty) { padding: 0.15em; }
  .role-slot .role-name {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
.role--empty { padding-inline: 0.6em; color: var(--text-faint); }
.roster-empty {
  padding: 14px;
  border: 1px solid rgba(var(--team-rgb), 0.55);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-faint);
  font-style: italic;
}

/* ==========================================================================
   Join
   ========================================================================== */
.join {
  background:
    radial-gradient(45% 50% at 50% 100%, rgba(91, 29, 158, 0.22), transparent 70%),
    var(--navy);
}
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.path {
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.path:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.path--violet::before { --c: var(--violet-glow); }
.path--violet {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(139, 63, 224, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(42, 56, 112, 0.55), rgba(18, 26, 58, 0.75));
}
.path-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold-300);
  background: rgba(7, 8, 13, 0.4);
}
.path-icon .icon { width: 26px; height: 26px; }
.path--violet .path-icon { color: var(--violet-glow); border-color: rgba(181, 124, 255, 0.45); }
.path h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--gold-100);
  margin-bottom: 10px;
}
.path > p { color: var(--text-muted); }
.checks { margin: 22px 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before {
  content: ""; flex: none;
  width: 7px; height: 7px; margin-top: 0.1em;
  transform: rotate(45deg) translateY(-2px);
  background: var(--gold);
}
.path--violet .checks li::before { background: var(--violet-glow); }
.path .btn { margin-top: auto; align-self: flex-start; }
/* Raids hidden: the Discord card on its own, centered */
.paths:has(> .path[hidden]) { grid-template-columns: minmax(0, 560px); justify-content: center; }

/* Steps */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(56px, 8vw, 88px);
  text-align: center;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute; top: 27px; left: 16.66%; right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--line-strong) 50%, var(--line));
}
.steps li { position: relative; }
.step-node {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin: 0 auto 18px;
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--gold-ink);
  background: var(--gold-metal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.steps h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-100); }
.steps p { margin-top: 6px; color: var(--text-muted); font-size: 1.02rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(217, 164, 110, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 64px; height: auto; }
.footer-name {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.1em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-tag { color: var(--text-faint); font-size: 0.98rem; font-style: italic; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a {
  font-family: var(--font-label); font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-100); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-legal p:last-child { max-width: 70ch; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  translate: -50% 20px;
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
  padding: 12px 20px;
  border: 1px solid rgba(181, 124, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(11, 16, 40, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8), 0 0 24px -8px rgba(139, 63, 224, 0.6);
  font-family: var(--font-label); font-weight: 500; letter-spacing: 0.04em;
  color: var(--gold-100);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, translate 0.4s var(--ease-out);
}
.toast.is-shown { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eye-breathe {
  0%, 100% { opacity: 0.55; scale: 0.9; }
  50% { opacity: 1; scale: 1.15; }
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .teams { grid-template-columns: 1fr; row-gap: 22px; max-width: 560px; margin-inline: auto; }
  .team-panel { grid-row: auto; display: flex; flex-direction: column; }
  .btn--team, .roster { align-self: stretch; }
}

/* The header holds four actions, so it switches to the menu button before the content does */
@media (max-width: 1140px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 28px;
    background: rgba(11, 16, 40, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; translate: 0 -10px;
    transition: opacity 0.25s, translate 0.3s var(--ease-out), visibility 0.25s;
  }
  .site-header.nav-open { background: rgba(11, 16, 40, 0.97); border-bottom-color: var(--line); }
  .site-header.nav-open .site-nav { opacity: 1; visibility: visible; translate: 0 0; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1.1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { justify-content: center; }
  /* The home page's account menu stays in the header bar, just left of the menu button */
  .header-inner > .account-btn { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; }
}

@media (max-width: 719px) {
  .account-name, .account-chevron { display: none; }
  .account-btn { padding: 0; border: 0; background: none; width: 44px; justify-content: center; }
  .account-btn .avatar { --size: 36px; }
  .account-panel {
    top: var(--header-h); left: 0; right: 0;
    width: auto;
    border-left: 0; border-right: 0;
    border-radius: 0;
    padding: 18px var(--gutter) 22px;
  }
  .account-panel::before { display: none; }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .pillar:nth-child(n) { margin-left: 0; }
  .paths { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.25rem; }
  .hero { padding-bottom: 80px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .next-raid { padding: 24px 22px; }
  .countdown { width: 100%; }
  .countdown div { flex: 1; min-width: 0; }
  .countdown dd { font-size: 1.6rem; }
  .team-head { padding: 22px 22px 18px; }
  .team-next { padding-inline: 22px; }
  .btn--team, .roster { margin-inline: 22px; }

  .pillar { grid-template-columns: 52px 1fr; padding: 22px; column-gap: 16px; }
  .pillar-rune { width: 52px; height: 52px; font-size: 1.6rem; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 28px; bottom: 28px; left: 50%; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--line), var(--line-strong), var(--line)); }
  .steps li { background: var(--navy); padding-bottom: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-group .team-panel { opacity: 1; transform: none; translate: none; }
  .embers, .hero-motes { display: none; }
}
