@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Quicksand:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* =====================================================
   A Late Night Reborn — Whimsical Liquid Glass Theme
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:            #0a0b1c;
  --accent-rose:        #fcd4c8;
  --accent-purple:      #b291f7;
  --accent-periwinkle:  #a078c0;
  --accent-gold:        #e4c090;
  --accent-blue:        #80a4f8;
  --accent-teal:        #6ee7b7;
  --glass-bg:           rgba(20, 21, 50, 0.60);
  --glass-border:       rgba(252, 212, 200, 0.20);
  --text-primary:       #f8fafc;
  --text-secondary:     #cbbcf6;
  --text-muted:         #8d82b2;
  --shadow-glass:       0 12px 40px rgba(6, 7, 22, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --radius-sm:          10px;
  --radius-md:          16px;
  --radius-lg:          22px;
  --radius-xl:          28px;
  --transition:         0.28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Background Layer ─────────────────────────────── */

#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 20% 12%,  rgba(252, 212, 200, .20) 0%, transparent 60%),
    radial-gradient(ellipse 80% 55% at 85% 80%,  rgba(160, 120, 192, .30) 0%, transparent 60%),
    radial-gradient(ellipse 65% 70% at 50% 35%,  rgba(178, 145, 247, .18) 0%, transparent 65%),
    linear-gradient(168deg, #0a0b1c 0%, #121330 45%, #0c0d24 100%);
}

/* ── Site Layout ──────────────────────────────────── */

.site-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ───────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 28, .84);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(252, 212, 200, .18);
  box-shadow: 0 1px 0 rgba(252, 212, 200, .12), 0 4px 24px rgba(6,7,22,.50);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .875rem;
}

.header-logo-link { display: flex; align-items: center; flex-shrink: 0; }

.header-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(252, 212, 200, .45)) drop-shadow(0 0 22px rgba(160, 120, 192, .40));
  transition: filter var(--transition);
}

.header-logo:hover { filter: drop-shadow(0 0 22px rgba(252, 212, 200, .85)) drop-shadow(0 0 30px rgba(160, 120, 192, .75)); }

.header-site-name {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  background: linear-gradient(125deg, #ffffff 0%, #fcd4c8 32%, #b291f7 65%, #e4c090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .02em;
  white-space: nowrap;
  filter: drop-shadow(0 0 14px rgba(252, 212, 200, .28));
}

.header-discord {
  margin-left: auto;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(252, 212, 200, 0.25), rgba(160, 120, 192, 0.30));
  border: 1px solid rgba(252, 212, 200, 0.40);
  border-radius: 100px;
  padding: .38rem 1.15rem;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .03em;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(252, 212, 200, 0.18);
}

.header-discord:hover {
  background: linear-gradient(135deg, rgba(227, 154, 150, 0.40), rgba(168, 146, 238, 0.40));
  border-color: rgba(227, 154, 150, 0.55);
  box-shadow: 0 4px 18px rgba(227, 154, 150, 0.30);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Nav Toggle (Hamburger) ───────────────────────── */

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: .5rem;
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-toggle:hover {
  border-color: rgba(167,139,250,.3);
  color: var(--text-primary);
  background: rgba(167,139,250,.07);
}

/* ── Nav Panel ────────────────────────────────────── */

.nav-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  z-index: 201;
  background: rgba(3,7,18,.97);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -16px 0 48px rgba(0,0,0,.6);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-panel.open { transform: translateX(0); }

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.nav-panel-title {
  font-family: 'Quicksand', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-panel-close:hover {
  background: rgba(255,255,255,.13);
  color: var(--text-primary);
}

.nav-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,.25) transparent;
}

.nav-home-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent-teal);
  transition: background var(--transition);
}

.nav-home-link:hover,
.nav-home-link.nav-current { background: rgba(52,211,153,.07); }

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.05);
  margin: .4rem 1.25rem;
}

.nav-section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.25rem .2rem;
  margin-top: .2rem;
  cursor: pointer;
  user-select: none;
  justify-content: space-between;
}

.nav-chevron {
  font-size: .75rem;
  color: var(--text-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nav-section.expanded .nav-chevron {
  transform: rotate(90deg);
}

.nav-badge {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .15rem .5rem;
}

.nav-badge.boss,
.nav-badge.mini-boss { color: #fde68a; background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.22); }
.nav-badge.traversal { color: #6ee7b7; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2);  }
.nav-badge.puzzle    { color: #fda4af; background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.2); }
.nav-badge.additional { color: #c4b5fd; background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.22); }
.nav-badge.fate      { color: #d8b4fe; background: rgba(192,86,253,.12);  border: 1px solid rgba(192,86,253,.3);   }
.nav-badge.support   { color: #7dd3fc; background: rgba(56,189,248,.1);   border: 1px solid rgba(56,189,248,.22);  }

.nav-page-link {
  display: block;
  padding: .35rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition), background var(--transition);
}

.nav-page-link:hover,
.nav-page-link.nav-current {
  color: var(--accent-purple);
  background: rgba(167,139,250,.07);
}

.nav-sub-links {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.22s ease;
}

.nav-section.expanded .nav-sub-links {
  max-height: 700px;
  opacity: 1;
  padding-bottom: .25rem;
}

.nav-sub-link {
  display: block;
  padding: .25rem 1.25rem .25rem 2.25rem;
  font-size: .8rem;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-sub-link::before {
  content: '▸';
  position: absolute;
  left: 1.1rem;
  color: rgba(167,139,250,.35);
  font-size: .58rem;
  top: .38rem;
}

.nav-sub-link:hover {
  color: var(--accent-purple);
  background: rgba(167,139,250,.05);
}

/* ── Nav Raid Groups ──────────────────────────────── */

.nav-raid-group { display: flex; flex-direction: column; }

.nav-raid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1.25rem .45rem;
  cursor: pointer;
  user-select: none;
  font-family: 'Quicksand', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-raid-header:hover { color: var(--text-secondary); background: rgba(255,255,255,.03); }
.nav-raid-group.expanded .nav-raid-header { color: var(--text-secondary); }

.nav-raid-chevron {
  font-size: .65rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nav-raid-group.expanded .nav-raid-chevron { transform: rotate(90deg); }

.nav-raid-pages {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.25s ease;
}

.nav-raid-group.expanded .nav-raid-pages {
  max-height: 3000px;
  opacity: 1;
}

.content-card { scroll-margin-top: 80px; }

/* ── Main Content ─────────────────────────────────── */

.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* ── Hero (Landing) ───────────────────────────────── */

.hero {
  text-align: center;
  padding: 3.25rem 1rem 3rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(236, 194, 153, .14);
  border: 1px solid rgba(236, 194, 153, .35);
  border-radius: 100px;
  padding: .35rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 14px rgba(236, 194, 153, .12);
}

.hero-heading {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(140deg, #ffffff 0%, #fcd4c8 32%, #b291f7 65%, #e4c090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 25px rgba(252, 212, 200, .24));
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-weight: 300;
  letter-spacing: .01em;
}

/* ── Section Grid (Landing) ───────────────────────── */

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

/* Center lone item on last row */
.section-card:last-child:nth-child(3n - 2) {
  grid-column: 2;
}

.section-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.75rem 3.6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

/* top highlight shine */
.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 212, 200, .38), transparent);
  pointer-events: none;
}

/* bottom fade */
.section-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(6,7,22,.32), transparent);
  pointer-events: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.section-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(6, 7, 22, .68), 0 0 45px rgba(252, 212, 200, .26);
  border-color: rgba(252, 212, 200, .45);
}

.section-card.is-boss:hover {
  box-shadow: 0 24px 70px rgba(6, 7, 22, .68), 0 0 45px rgba(228, 192, 144, .28);
  border-color: rgba(228, 192, 144, .48);
}

/* ── Card Badge ───────────────────────────────────── */

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .22rem .8rem;
  width: fit-content;
  margin-bottom: 1.1rem;
}

.card-badge.boss {
  color: #fde68a;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.22);
}

.card-badge.traversal {
  color: #6ee7b7;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
}

.card-badge.puzzle {
  color: #fda4af;
  background: rgba(251,113,133,.08);
  border: 1px solid rgba(251,113,133,.2);
}

.card-badge.mini-boss {
  color: #fcd34d;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2);
}

.card-badge.additional {
  color: #c4b5fd;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.22);
}

.card-badge.fate {
  color: #d8b4fe;
  background: rgba(192,86,253,.12);
  border: 1px solid rgba(192,86,253,.3);
}

.card-badge.support {
  color: #7dd3fc;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.22);
}

.card-index {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.9rem;
  font-weight: 700;
  color: rgba(255,255,255,.055);
  line-height: 1;
  margin-bottom: .35rem;
  transition: color var(--transition);
  user-select: none;
}

.section-card:hover .card-index { color: rgba(167,139,250,.14); }
.section-card.is-boss:hover .card-index { color: rgba(251,191,36,.12); }

.card-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .45rem;
  line-height: 1.3;
}

.card-desc {
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.55;
}

.card-cta {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--transition);
  z-index: 1;
}

.section-card:hover .card-cta {
  background: rgba(167,139,250,.15);
  border-color: rgba(167,139,250,.36);
  color: var(--accent-purple);
  transform: translate(2px,-2px);
}

.section-card.is-boss:hover .card-cta {
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.32);
  color: var(--accent-gold);
}

/* ── Breadcrumb ───────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--accent-purple); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb-sep { opacity: .4; }

/* ── Page Header (Section Pages) ─────────────────── */

.page-header { margin-bottom: 2.25rem; }

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .22rem .8rem;
  width: fit-content;
  margin-bottom: .9rem;
}

.page-badge.boss {
  color: #fde68a;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.22);
}

.page-badge.traversal {
  color: #6ee7b7;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
}

.page-badge.puzzle {
  color: #fda4af;
  background: rgba(251,113,133,.08);
  border: 1px solid rgba(251,113,133,.2);
}

.page-badge.mini-boss {
  color: #fcd34d;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2);
}

.page-badge.additional {
  color: #c4b5fd;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.22);
}

.page-badge.fate {
  color: #d8b4fe;
  background: rgba(192,86,253,.12);
  border: 1px solid rgba(192,86,253,.3);
}

.page-badge.support {
  color: #7dd3fc;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.22);
}

.page-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .5rem;
}

.page-title.boss-title {
  background: linear-gradient(130deg, #fef9c3 0%, #fbbf24 38%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title.traversal-title {
  background: linear-gradient(130deg, #f0fdf4 0%, #34d399 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title.puzzle-title {
  background: linear-gradient(130deg, #fff1f2 0%, #fb7185 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title.additional-title {
  background: linear-gradient(130deg, #f5f3ff 0%, #c4b5fd 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title.fate-title {
  background: linear-gradient(130deg, #fdf4ff 0%, #d8b4fe 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: .95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── Content Card ─────────────────────────────────── */

.content-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}

.card-heading {
  font-family: 'Quicksand', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.055);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.card-heading.purple  { color: var(--accent-purple); }
.card-heading.gold    { color: var(--accent-gold);   }
.card-heading.teal    { color: var(--accent-teal);   }
.card-heading.blue    { color: var(--accent-blue);   }

.content-body p {
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 300;
  margin-bottom: .75rem;
  line-height: 1.72;
}

.content-body p:last-child { margin-bottom: 0; }

.content-link {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.content-link:hover { opacity: .75; }

/* ── Element Colours ──────────────────────────────── */
/* For use in enemy/mechanic element labels only      */

.element-wind      { color: #71ff25; font-weight: 600; text-shadow: 0 0 8px rgba(113, 255, 37, 0.45); }
.element-fire      { color: #f04d4a; font-weight: 600; text-shadow: 0 0 8px rgba(240, 77, 74, 0.45); }
.element-ice       { color: #71ffff; font-weight: 600; text-shadow: 0 0 8px rgba(113, 255, 255, 0.45); }
.element-lightning { color: #c446ff; font-weight: 600; text-shadow: 0 0 8px rgba(196, 70, 255, 0.45); }
.element-earth     { color: #ffff7c; font-weight: 600; text-shadow: 0 0 8px rgba(255, 255, 124, 0.45); }
.element-water     { color: #5ea5ff; font-weight: 600; text-shadow: 0 0 8px rgba(94, 165, 255, 0.45); }

[data-theme^="light"] .element-wind      { color: #2d8a00; text-shadow: 0 0 8px rgba(45, 138, 0, 0.25); }
[data-theme^="light"] .element-fire      { color: #c0221f; text-shadow: 0 0 8px rgba(192, 34, 31, 0.25); }
[data-theme^="light"] .element-ice       { color: #0284c7; text-shadow: 0 0 8px rgba(2, 132, 199, 0.25); }
[data-theme^="light"] .element-lightning { color: #7e22ce; text-shadow: 0 0 8px rgba(126, 34, 206, 0.25); }
[data-theme^="light"] .element-earth     { color: #854d0e; text-shadow: 0 0 8px rgba(133, 77, 14, 0.25); }
[data-theme^="light"] .element-water     { color: #1d4ed8; text-shadow: 0 0 8px rgba(29, 78, 216, 0.25); }

/* ── Elemental Weakness ───────────────────────────── */

.elemental-weakness {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.elemental-weakness strong {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme^="light"] .elemental-weakness {
  border-top-color: rgba(0, 0, 0, 0.15);
}

/* ── Alert / Info Boxes ───────────────────────────── */

.alert-box {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin-bottom: .75rem;
  font-size: .88rem;
  line-height: 1.55;
  font-weight: 300;
}

.alert-box:last-child { margin-bottom: 0; }
.content-body + .alert-box { margin-top: .75rem; }
.mech-steps + .alert-box { margin-top: .75rem; }
.alert-box .alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

.alert-box.tip     { background: rgba(52,211,153,.07);  border: 1px solid rgba(52,211,153,.18);  color: #a7f3d0; }
.alert-box.warning { background: rgba(251,191,36,.07);  border: 1px solid rgba(251,191,36,.18);  color: #fde68a; }
.alert-box.danger  { background: rgba(239,68,68,.07);   border: 1px solid rgba(239,68,68,.18);   color: #fca5a5; }
.alert-box.info    { background: rgba(96,165,250,.07);  border: 1px solid rgba(96,165,250,.18);  color: #bfdbfe; }

/* ── Accordion ────────────────────────────────────── */

.accordion {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

details.accordion-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

details.accordion-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

details.accordion-item > summary::-webkit-details-marker { display: none; }

details.accordion-item > summary::after {
  content: '\25B6';
  font-size: .58rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

details.accordion-item[open] > summary::after {
  transform: rotate(90deg);
}

details.accordion-item > summary:hover {
  background: rgba(167,139,250,.06);
  color: var(--text-primary);
}

details.accordion-item[open] > summary {
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(167,139,250,.05);
}

.accordion-body {
  padding: .9rem 1rem 1rem;
}

/* ── Macro Box ───────────────────────────────────── */

.macro-box {
  position: relative;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  padding-right: 5.5rem;
}

.macro-box pre {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}

.macro-copy-btn {
  position: absolute;
  top: .65rem;
  right: .65rem;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.22);
  border-radius: var(--radius-sm);
  color: var(--accent-purple);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .75rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.macro-copy-btn:hover {
  background: rgba(167,139,250,.2);
  border-color: rgba(167,139,250,.4);
}

.macro-copy-btn.copied {
  background: rgba(52,211,153,.1);
  border-color: rgba(52,211,153,.3);
  color: var(--accent-teal);
}

/* ── Phase List ───────────────────────────────────── */

.phase-list { display: flex; flex-direction: column; gap: .9rem; }

.phase-item { display: flex; gap: 1rem; align-items: flex-start; }

.phase-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,.3);
  background: rgba(167,139,250,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  color: var(--accent-purple);
  margin-top: .05rem;
}

.phase-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .25rem;
}

.phase-desc {
  font-size: .83rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Placeholder Skeleton ─────────────────────────── */

.skeleton-line {
  height: 9px;
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  margin-bottom: .55rem;
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.s100 { width: 100%; }
.skeleton-line.s85  { width: 85%;  }
.skeleton-line.s70  { width: 70%;  }
.skeleton-line.s55  { width: 55%;  }
.skeleton-line.s40  { width: 40%;  }

/* ── Section Nav ──────────────────────────────────── */

.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--transition);
  flex: 1;
  max-width: 240px;
}

.nav-btn:hover {
  border-color: rgba(167,139,250,.3);
  color: var(--text-primary);
  background: rgba(167,139,250,.07);
}

.nav-btn.nav-prev { justify-content: flex-start; }
.nav-btn.nav-next { justify-content: flex-end; margin-left: auto; }

.nav-btn.nav-home {
  justify-content: center;
  flex: 0;
  padding: .8rem 1.5rem;
  max-width: none;
  color: var(--text-secondary);
  font-size: .78rem;
}

.nav-label {
  display: block;
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .1rem;
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.4rem 1.5rem;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(3,7,18,.62);
  backdrop-filter: blur(12px);
}

/* ── Scrollbar ────────────────────────────────────── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(167,139,250,.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167,139,250,.5); }

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 900px) {
  .section-grid { grid-template-columns: repeat(2, 1fr); }
  .section-card:last-child:nth-child(3n - 2) { grid-column: auto; }
}

@media (max-width: 600px) {
  .header-site-name { font-size: .95rem; }
  .header-logo { height: 36px; }
  .section-grid { grid-template-columns: 1fr; }
  .content-card { padding: 1.4rem 1.25rem; }
  .section-nav { flex-direction: column; }
  .nav-btn { max-width: 100%; }
  .nav-btn.nav-next { margin-left: 0; }
}

@media (max-width: 420px) {
  .hero { padding: 2rem .5rem 2rem; }
  .main-content { padding: 1.5rem 1rem 2.5rem; }
}

/* ── Raid Selector ────────────────────────────────────── */

/* ── Sleek Raid Tab Bar ── */
.raid-tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: .5rem;
  box-shadow: var(--shadow-glass);
}

.raid-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .75rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.raid-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .05);
}

.raid-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.raid-tab[data-raid="ftb"].active {
  border-color: rgba(244, 63, 94, .45);
  background: rgba(244, 63, 94, .12);
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, .2);
}

.raid-tab[data-raid="ftm"].active {
  border-color: rgba(168, 85, 247, .45);
  background: rgba(168, 85, 247, .12);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, .2);
}

.raid-tab[data-raid="cod"].active {
  border-color: rgba(251, 191, 36, .45);
  background: rgba(251, 191, 36, .12);
  color: #fff;
  box-shadow: 0 0 20px rgba(251, 191, 36, .2);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition), background var(--transition);
}

.raid-tab.active .tab-dot.blood { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; transform: scale(1.25); }
.raid-tab.active .tab-dot.magic { background: #a855f7; box-shadow: 0 0 8px #a855f7; transform: scale(1.25); }
.raid-tab.active .tab-dot.chaotic { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; transform: scale(1.25); }

.tab-title {
  letter-spacing: .02em;
}

@media (max-width: 820px) {
  .raid-tab-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: .5rem;
  }

  .raid-tab {
    width: 100%;
    justify-content: flex-start;
    padding: .8rem 1.1rem;
    font-size: .88rem;
    white-space: normal;
    text-align: left;
  }
}

.raid-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .9rem;
}

.raid-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .2rem .75rem;
}

.raid-type-badge {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .2rem .65rem;
  font-family: 'Quicksand', sans-serif;
}

.raid-type-badge.blood {
  color: #f43f5e;
  background: rgba(244, 63, 94, .12);
  border: 1px solid rgba(244, 63, 94, .25);
}

.raid-type-badge.magic {
  color: #a855f7;
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .25);
}

.raid-type-badge.chaotic {
  color: #fbbf24;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .25);
}

.raid-tag.available {
  color: #6ee7b7;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
}

.raid-tag.unreleased {
  color: var(--text-muted);
  background: rgba(71,85,105,.15);
  border: 1px solid rgba(71,85,105,.3);
}

/* Custom Per-Raid Active Glows */
.raid-choice[data-raid="ftb"].active {
  border-color: rgba(244, 63, 94, .55);
  box-shadow: var(--shadow-glass), 0 0 35px rgba(244, 63, 94, .20);
}

.raid-choice[data-raid="ftm"].active {
  border-color: rgba(168, 85, 247, .55);
  box-shadow: var(--shadow-glass), 0 0 35px rgba(168, 85, 247, .20);
}

.raid-choice[data-raid="cod"].active {
  border-color: rgba(251, 191, 36, .55);
  box-shadow: var(--shadow-glass), 0 0 35px rgba(251, 191, 36, .20);
}

.raid-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
  line-height: 1.2;
}

.raid-choice.active .raid-name {
  background: linear-gradient(130deg, #ffffff 0%, #f9d5d3 40%, #cbbcf6 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.raid-subtitle {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
}

.raid-desc {
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.55;
}

.sections-label {
  font-family: 'Quicksand', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sections-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.06);
}

/* ── Coming Soon (FTM) ────────────────────────────────── */

.coming-soon-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}

.coming-soon-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  opacity: .35;
}

.coming-soon-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: .65rem;
}

.coming-soon-text {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .raid-selector { grid-template-columns: 1fr; }
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline::before { content: ''; position: absolute; left: .85rem; top: 1rem; bottom: 1rem; width: 2px; background: linear-gradient(to bottom, rgba(167,139,250,.3), rgba(167,139,250,.05)); }
.tl-row { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: .3rem 0 .3rem 2.25rem; min-height: 1.8rem; }
.tl-dot { position: absolute; left: .6rem; top: .55rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dot-bg, rgba(148,163,184,.35)); border: 2px solid var(--dot-border, rgba(148,163,184,.2)); }
.tl-row.raidwide .tl-dot { --dot-bg: rgba(248,113,113,.8); --dot-border: rgba(248,113,113,.5); }
.tl-row.tankbuster .tl-dot { --dot-bg: rgba(251,191,36,.85); --dot-border: rgba(251,191,36,.5); }
.tl-row.mechanic .tl-dot { --dot-bg: rgba(167,139,250,.9); --dot-border: rgba(167,139,250,.5); }
.tl-row.enrage .tl-dot { --dot-bg: #ef4444; --dot-border: #dc2626; }
.tl-row.sub { padding-left: 3.75rem; padding-top: .15rem; padding-bottom: .15rem; opacity: .85; }
.tl-row.sub .tl-dot { --dot-bg: rgba(148,163,184,.25); --dot-border: rgba(148,163,184,.15); width: .4rem; height: .4rem; left: .65rem; top: .6rem; }
.tl-body { flex: 1; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tl-text { font-size: .85rem; line-height: 1.45; color: var(--text-secondary); }
.tl-row.mechanic .tl-text { color: var(--text-primary); font-weight: 500; }
.tl-row.raidwide .tl-text { color: rgba(252,165,165,.9); }
.tl-row.tankbuster .tl-text { color: rgba(253,224,71,.9); }
.tl-row.enrage .tl-text { color: #fca5a5; font-weight: 600; }
.tl-row.sub .tl-text { font-size: .82rem; }
.tl-badge { display: inline-flex; font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 100px; padding: .15rem .5rem; flex-shrink: 0; opacity: .8; }
.tl-badge.raidwide { color: #fca5a5; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); }
.tl-badge.tankbuster { color: #fde68a; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); }
.tl-badge.mechanic { color: #c4b5fd; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); }
.tl-badge.enrage { color: #fca5a5; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); }
.tl-legend { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.tl-section-gap { height: .6rem; }
.tl-loop-label { font-size: .72rem; font-style: italic; color: rgba(167,139,250,.5); padding: .5rem 0 .3rem 2.25rem; letter-spacing: .02em; }
.tl-loop-box { border: 1px dashed rgba(167,139,250,.22); border-radius: var(--radius-md); padding: .35rem 0; background: rgba(167,139,250,.03); }
.tl-time { font-size: .7rem; color: rgba(148,163,184,.45); font-variant-numeric: tabular-nums; min-width: 2.6rem; flex-shrink: 0; letter-spacing: .01em; }

/* ── Timeline Branching ────────────────────────────────── */
.tl-branch-wrapper {
  margin: 0.85rem 0 0.85rem 0.5rem;
  border-left: 2px dashed rgba(167, 139, 250, 0.35);
  padding-left: 0.85rem;
}

.tl-branch-header {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.tl-branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .tl-branch-grid {
    grid-template-columns: 1fr;
  }
}

.tl-branch-box {
  background: rgba(167, 139, 250, 0.04);
  border: 1px dashed rgba(167, 139, 250, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.tl-branch-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

[data-theme^="light"] .tl-branch-wrapper { border-left-color: rgba(124, 58, 237, 0.35); }
[data-theme^="light"] .tl-branch-box { background: rgba(124, 58, 237, 0.04); border-color: rgba(124, 58, 237, 0.22); }
[data-theme^="light"] .tl-branch-title { border-bottom-color: rgba(124, 58, 237, 0.15); }

/* ── Mechanic Steps ──────────────────────────────────────── */
.mech-steps { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.mech-steps > li { position: relative; padding-left: 1.2rem; font-size: .875rem; color: var(--text-secondary); line-height: 1.55; }
.mech-steps > li::before { content: '▸'; position: absolute; left: 0; color: rgba(167,139,250,.6); font-size: .65rem; top: .25rem; }
.mech-sub { list-style: none; padding: 0; margin: .3rem 0 .3rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.mech-sub li { position: relative; padding-left: 1rem; font-size: .83rem; color: rgba(148,163,184,.82); line-height: 1.5; }
.mech-sub li::before { content: '–'; position: absolute; left: 0; color: rgba(148,163,184,.5); }

/* ── Image Placeholders ──────────────────────────────────── */
.img-row { display: grid; gap: 1rem; margin-top: 1.25rem; }
.img-row.double { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.img-row.double .section-img { flex: 0 1 auto; width: auto; max-height: 540px; max-width: 48%; }
.img-row.double.tall { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.img-row.double.tall .section-img { width: 100%; max-height: 1080px; max-width: none; flex: none; }
.img-row.single { grid-template-columns: 1fr; }
.img-placeholder { border: 2px dashed rgba(148,163,184,.18); border-radius: var(--radius-lg); padding: 2.5rem 1rem; text-align: center; color: var(--text-muted); font-size: .78rem; font-style: italic; background: rgba(15,23,50,.25); min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; }
.img-placeholder-icon { font-size: 1.4rem; opacity: .25; }
.section-img { width: 100%; max-height: 540px; height: auto; object-fit: contain; border-radius: var(--radius-lg); display: block; cursor: zoom-in; }
.inline-icon { display: inline; width: 1.1em; height: 1.1em; vertical-align: middle; margin: 0 .15em; }
@media (max-width: 600px) { .img-row.double { flex-direction: column; } .img-row.double .section-img { max-width: 100%; } }

/* ── Under Construction ─────────────────────────────────────── */
.section-card.wip { position: relative; overflow: hidden; pointer-events: none; }
.section-card.wip > * { opacity: 0.45; }
.section-card.wip::after { content: "W.I.P."; position: absolute; top: 0.6rem; right: -1.8rem; bottom: auto; left: auto; height: auto; width: 5.5rem; background: #f59e0b !important; color: #0f172a !important; font-size: .5rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: .28rem 0; transform: rotate(45deg); border-radius: 0; box-shadow: 0 2px 5px rgba(0,0,0,.45); z-index: 2; white-space: nowrap; pointer-events: none; opacity: 1 !important; }

.raid-choice.wip { position: relative; overflow: hidden; }
.raid-choice.wip::after { content: "W.I.P."; position: absolute; top: 0.6rem; right: -1.8rem; height: auto; width: 5.5rem; background: #f59e0b !important; color: #0f172a !important; font-size: .5rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: .28rem 0; transform: rotate(45deg); border-radius: 0; box-shadow: 0 2px 5px rgba(0,0,0,.45); z-index: 2; white-space: nowrap; pointer-events: none; opacity: 1 !important; }

.nav-btn.wip { position: relative; overflow: hidden; pointer-events: none; }
.nav-btn.wip > * { opacity: 0.45; }
.nav-btn.wip::after { content: "W.I.P."; position: absolute; top: 0.35rem; right: -1.5rem; width: 5rem; background: #f59e0b !important; color: #0f172a !important; font-size: .42rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: .2rem 0; transform: rotate(45deg); z-index: 2; white-space: nowrap; opacity: 1 !important; }

.nav-page-link.wip { opacity: 0.4; pointer-events: none; }
.nav-page-link.wip::after { content: " W.I.P."; font-size: .6em; font-weight: 800; color: #f59e0b !important; opacity: 1 !important; letter-spacing: .04em; vertical-align: middle; }
a.section-card.wip[href], a.nav-page-link.wip[href] { pointer-events: auto !important; opacity: 0.88; cursor: pointer; }
a.section-card.wip[href] > * { opacity: 0.88; }
.page-wip-banner { display: flex; align-items: center; gap: .7rem; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.40); border-radius: var(--radius-lg); padding: .85rem 1.2rem; color: #f59e0b !important; font-size: .875rem; font-weight: 600; margin-bottom: 1.5rem; }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9999; align-items: center; justify-content: center; }
.lightbox-overlay.active { display: flex; animation: lb-fade .18s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: 0 12px 60px rgba(0,0,0,.7); animation: lb-scale .18s ease; }
@keyframes lb-scale { from { transform: scale(.95); } to { transform: scale(1); } }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: 1.5rem; line-height: 1; width: 2.25rem; height: 2.25rem; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.lightbox-close:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── Theme Transition ─────────────────────────────── */

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ── Theme Toggle Button & Menu ──────────────────── */

.theme-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover,
.theme-menu-wrapper.open .theme-toggle {
  border-color: rgba(167,139,250,.3);
  color: var(--text-primary);
  background: rgba(167,139,250,.07);
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 165px;
  max-width: calc(100vw - 2rem);
  background: rgba(14, 16, 38, 0.95);
  border: 1px solid rgba(252, 212, 200, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  animation: theme-menu-pop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-menu-wrapper.open .theme-dropdown-menu {
  display: flex;
}

@keyframes theme-menu-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-option:hover {
  background: rgba(178, 145, 247, 0.15);
}

.theme-option.active {
  background: rgba(178, 145, 247, 0.22);
}

.theme-option-icon {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.theme-option-title {
  flex: 1;
  font-weight: 500;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(110, 231, 183, 0.18);
  color: #6ee7b7;
  letter-spacing: 0.5px;
}

.theme-option-check {
  font-size: 0.95rem;
  color: var(--accent-rose);
  opacity: 0;
  margin-left: auto;
  font-weight: bold;
}

.theme-option.active .theme-option-check {
  opacity: 1;
}

.theme-dropdown-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 2px;
}

/* Light theme overrides for dropdown */
[data-theme^="light"] .theme-dropdown-menu {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(227, 154, 150, 0.28);
  box-shadow: 0 12px 36px rgba(108, 99, 158, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme^="light"] .theme-option:hover {
  background: rgba(124, 58, 237, 0.08);
}

[data-theme^="light"] .theme-option.active {
  background: rgba(124, 58, 237, 0.12);
}

[data-theme^="light"] .theme-pill {
  background: rgba(5, 150, 105, 0.14);
  color: #059669;
}

[data-theme^="light"] .theme-option-check {
  color: var(--accent-purple);
}

[data-theme^="light"] .theme-dropdown-sep {
  background: rgba(0, 0, 0, 0.07);
}

/* Lite theme dropdown solid backgrounds */
[data-theme="dark-lite"] .theme-dropdown-menu {
  background: #0e1026 !important;
}

[data-theme="light-lite"] .theme-dropdown-menu {
  background: #ffffff !important;
}



/* ── Light Theme ─────────────────────────────────── */

[data-theme^="light"] {
  --bg-deep:        #f6f3f6;
  --glass-bg:       rgba(255, 255, 255, 0.72);
  --glass-border:   rgba(227, 154, 150, 0.20);
  --text-primary:   #221e2a;
  --text-secondary: #544a62;
  --text-muted:     #8e829d;
  --shadow-glass:   0 8px 32px rgba(108, 99, 158, .12), inset 0 1px 0 rgba(255,255,255,.95);
  --accent-rose:    #c86b66;
  --accent-purple:  #7c3aed;
  --accent-periwinkle: #6c5a9e;
  --accent-gold:    #b45309;
  --accent-blue:    #2563eb;
  --accent-teal:    #059669;
}

[data-theme^="light"] body { background: var(--bg-deep); }

[data-theme^="light"] .bg-nebula {
  background:
    radial-gradient(ellipse 90% 55% at 12% 8%,  rgba(252,212,200,.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 88%,  rgba(160,120,192,.20) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 55% 38%,  rgba(228,192,144,.18) 0%, transparent 65%),
    linear-gradient(168deg, #f9f5f7 0%, #f2ebf4 45%, #f6f0f5 100%);
}

[data-theme^="light"] .site-header {
  background: rgba(247,243,246,.88);
  border-bottom-color: rgba(227,154,150,.20);
  box-shadow: 0 1px 0 rgba(227,154,150,.12), 0 4px 20px rgba(108,99,158,.08);
}

[data-theme^="light"] .header-site-name {
  background: linear-gradient(125deg, #221e2a 0%, #b85b56 45%, #6c5a9e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .header-discord {
  color: #221e2a;
  background: linear-gradient(135deg, rgba(227, 154, 150, 0.25), rgba(168, 146, 238, 0.25));
  border-color: rgba(227, 154, 150, 0.40);
  box-shadow: 0 2px 12px rgba(108, 99, 158, 0.12);
}

[data-theme^="light"] .header-discord:hover {
  background: linear-gradient(135deg, rgba(227, 154, 150, 0.45), rgba(168, 146, 238, 0.45));
  color: #221e2a;
  box-shadow: 0 4px 18px rgba(108, 99, 158, 0.20);
}

[data-theme^="light"] .nav-toggle,
[data-theme^="light"] .theme-toggle { border-color: rgba(0,0,0,.12); }

[data-theme^="light"] .nav-panel {
  background: rgba(247,243,246,.98);
  border-left-color: rgba(0,0,0,.1);
  box-shadow: -16px 0 48px rgba(0,0,0,.15);
}

[data-theme^="light"] .nav-panel-header   { border-bottom-color: rgba(0,0,0,.07); }
[data-theme^="light"] .nav-panel-close    { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); }
[data-theme^="light"] .nav-divider        { background: rgba(0,0,0,.07); }

[data-theme^="light"] .hero-heading {
  background: linear-gradient(140deg, #221e2a 0%, #b85b56 48%, #6c5a9e 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .section-card::before,
[data-theme^="light"] .content-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
}

[data-theme^="light"] .section-card:hover          { box-shadow: 0 24px 70px rgba(108,99,158,.15), 0 0 40px rgba(227,154,150,.18); }
[data-theme^="light"] .section-card.is-boss:hover  { box-shadow: 0 24px 70px rgba(108,99,158,.15), 0 0 40px rgba(230,184,138,.20); }

[data-theme^="light"] .card-index                             { color: rgba(0,0,0,.05); }
[data-theme^="light"] .section-card:hover .card-index         { color: rgba(227,154,150,.20); }
[data-theme^="light"] .section-card.is-boss:hover .card-index { color: rgba(230,184,138,.20); }
[data-theme^="light"] .card-cta                               { border-color: rgba(0,0,0,.1); color: var(--text-muted); }
[data-theme^="light"] .card-heading                           { border-bottom-color: rgba(0,0,0,.07); }

[data-theme^="light"] .raid-choice:not(.locked):not(.active):hover { background: rgba(255,255,255,.65); }

[data-theme^="light"] .raid-choice.active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(200, 107, 102, 0.60);
  box-shadow: 0 12px 36px rgba(200, 107, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme^="light"] .raid-choice.active .raid-name {
  background: linear-gradient(130deg, #221d2c 0%, #c86b66 50%, #6c5a9e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .sections-label::after { background: rgba(0,0,0,.08); }

[data-theme^="light"] .page-title.boss-title {
  background: linear-gradient(130deg, #7c2d12 0%, #b45309 38%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .page-title.traversal-title {
  background: linear-gradient(130deg, #065f46 0%, #059669 40%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .page-title.puzzle-title {
  background: linear-gradient(130deg, #881337 0%, #e11d48 40%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .page-title.additional-title {
  background: linear-gradient(130deg, #4c1d95 0%, #7c3aed 45%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .page-title.fate-title {
  background: linear-gradient(130deg, #581c87 0%, #7e22ce 40%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .macro-box               { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.09); }
[data-theme^="light"] details.accordion-item   { border-color: rgba(0,0,0,.09); background: rgba(0,0,0,.02); }

[data-theme^="light"] .alert-box.warning { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.35); color: #92400e; }
[data-theme^="light"] .alert-box.info    { background: rgba(96,165,250,.1);  border-color: rgba(96,165,250,.3);  color: #1e40af; }
[data-theme^="light"] .alert-box.danger  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.25);  color: #9f1239; }
[data-theme^="light"] .alert-box.tip     { background: rgba(52,211,153,.1);  border-color: rgba(52,211,153,.3);  color: #065f46; }

[data-theme^="light"] .tl-row.raidwide .tl-text   { color: #b91c1c; }
[data-theme^="light"] .tl-row.tankbuster .tl-text  { color: #b45309; }
[data-theme^="light"] .tl-row.enrage .tl-text      { color: #9f1239; }

[data-theme^="light"] .skeleton-line { background: rgba(0,0,0,.06); }

[data-theme^="light"] .site-footer {
  background: rgba(237,240,247,.75);
  border-top-color: rgba(0,0,0,.08);
}

[data-theme^="light"] ::-webkit-scrollbar-thumb { background: rgba(124,58,237,.25); }

[data-theme^="light"] .section-card::after { background: linear-gradient(to top, rgba(0,0,0,.04), transparent); }

[data-theme^="light"] .card-badge.boss,
[data-theme^="light"] .nav-badge.boss,
[data-theme^="light"] .page-badge.boss,
[data-theme^="light"] .card-badge.mini-boss,
[data-theme^="light"] .nav-badge.mini-boss,
[data-theme^="light"] .page-badge.mini-boss { color: #92400e; background: rgba(251,191,36,.18); border-color: rgba(251,191,36,.45); }

[data-theme^="light"] .card-badge.traversal,
[data-theme^="light"] .nav-badge.traversal,
[data-theme^="light"] .page-badge.traversal { color: #065f46; background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.4); }

[data-theme^="light"] .card-badge.puzzle,
[data-theme^="light"] .nav-badge.puzzle,
[data-theme^="light"] .page-badge.puzzle    { color: #9f1239; background: rgba(251,113,133,.15); border-color: rgba(251,113,133,.4); }

[data-theme^="light"] .card-badge.additional,
[data-theme^="light"] .nav-badge.additional,
[data-theme^="light"] .page-badge.additional { color: #4c1d95; background: rgba(167,139,250,.2); border-color: rgba(167,139,250,.45); }

[data-theme^="light"] .card-badge.fate,
[data-theme^="light"] .nav-badge.fate,
[data-theme^="light"] .page-badge.fate       { color: #6b21a8; background: rgba(192,86,253,.15); border-color: rgba(192,86,253,.4); }

[data-theme^="light"] .card-badge.support,
[data-theme^="light"] .nav-badge.support,
[data-theme^="light"] .page-badge.support    { color: #0369a1; background: rgba(56,189,248,.15); border-color: rgba(56,189,248,.4); }

[data-theme^="light"] .raid-tag.available { color: #065f46; background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.4); }

[data-theme^="light"] .mech-sub li { color: rgba(71,85,105,.82); }

[data-theme^="light"] .card-index { color: rgba(0,0,0,.1); }
[data-theme^="light"] .section-card:hover .card-index { color: rgba(124,58,237,.18); }
[data-theme^="light"] .section-card.is-boss:hover .card-index { color: rgba(180,83,9,.15); }

[data-theme^="light"] .tl-badge.raidwide   { color: #9f1239; background: rgba(239,68,68,.12);   border-color: rgba(239,68,68,.35); }
[data-theme^="light"] .tl-badge.tankbuster { color: #92400e; background: rgba(245,158,11,.12);  border-color: rgba(245,158,11,.35); }
[data-theme^="light"] .tl-badge.mechanic   { color: #4c1d95; background: rgba(139,92,246,.12);  border-color: rgba(139,92,246,.35); }
[data-theme^="light"] .tl-badge.enrage     { color: #9f1239; background: rgba(239,68,68,.15);   border-color: rgba(239,68,68,.4); }

[data-theme^="light"] .public-run-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

[data-theme^="light"] .public-run-tag.tag-ftb {
  color: #9f1239;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

[data-theme^="light"] .public-run-tag.tag-ftm {
  color: #4c1d95;
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.45);
}

[data-theme^="light"] .public-run-tag.tag-ba {
  color: #0369a1;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

[data-theme^="light"] .public-run-tag.tag-chaotic {
  color: #6b21a8;
  background: rgba(192, 86, 253, 0.15);
  border-color: rgba(192, 86, 253, 0.4);
}

[data-theme^="light"] .public-run-tag.tag-default {
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
}

[data-theme^="light"] .public-nav-btn:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 4px 12px rgba(108, 99, 158, 0.15);
}

[data-theme^="light"] .section-divider {
  background: linear-gradient(90deg, transparent 0%, rgba(227, 154, 150, 0.35) 20%, rgba(124, 58, 237, 0.4) 50%, rgba(227, 154, 150, 0.35) 80%, transparent 100%);
}

/* ── Lightweight (Performance) Theme Overrides ─────────── */

/* 1. Universal Lightweight Settings: Remove Canvas & Backdrop Blurs */
[data-theme*="lite"] #stars-canvas {
  display: none !important;
}

[data-theme*="lite"] .site-header,
[data-theme*="lite"] .nav-panel,
[data-theme*="lite"] .nav-panel-overlay,
[data-theme*="lite"] .section-card,
[data-theme*="lite"] .content-card,
[data-theme*="lite"] .raid-tab-bar,
[data-theme*="lite"] .raid-tab,
[data-theme*="lite"] .public-run-card,
[data-theme*="lite"] .lightbox-overlay,
[data-theme*="lite"] .theme-dropdown-menu,
[data-theme*="lite"] .alert-box,
[data-theme*="lite"] .macro-box,
[data-theme*="lite"] details.accordion-item {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme*="lite"] .section-card::before,
[data-theme*="lite"] .content-card::before {
  display: none !important;
}

[data-theme*="lite"] .header-logo,
[data-theme*="lite"] .header-logo:hover {
  filter: none !important;
}

/* 2. Dark (Lightweight) specifics */
[data-theme="dark-lite"] {
  --glass-bg: #13142e;
  --glass-border: rgba(252, 212, 200, 0.14);
  --shadow-glass: 0 4px 20px rgba(0, 0, 0, 0.45);
}

[data-theme="dark-lite"] body {
  background: #0a0b1c;
}

[data-theme="dark-lite"] .bg-nebula {
  background: #0a0b1c !important;
}

[data-theme="dark-lite"] .site-header {
  background: #0d0f26 !important;
  border-bottom: 1px solid rgba(252, 212, 200, 0.14) !important;
}

[data-theme="dark-lite"] .nav-panel {
  background: #0d0f26 !important;
}

[data-theme="dark-lite"] .section-card,
[data-theme="dark-lite"] .content-card {
  background: #141634 !important;
}

[data-theme="dark-lite"] .raid-tab-bar {
  background: #101228 !important;
  border-color: rgba(252, 212, 200, 0.12) !important;
}

[data-theme="dark-lite"] .public-run-card {
  background: #141634 !important;
}

/* 3. Light (Lightweight) specifics */
[data-theme="light-lite"] {
  --glass-bg: #ffffff;
  --glass-border: rgba(227, 154, 150, 0.22);
  --shadow-glass: 0 2px 14px rgba(108, 99, 158, 0.08);
}

[data-theme="light-lite"] body {
  background: #f6f3f6;
}

[data-theme="light-lite"] .bg-nebula {
  background: #f6f3f6 !important;
}

[data-theme="light-lite"] .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(227, 154, 150, 0.22) !important;
  box-shadow: 0 2px 12px rgba(108, 99, 158, 0.07) !important;
}

[data-theme="light-lite"] .nav-panel {
  background: #ffffff !important;
}

[data-theme="light-lite"] .section-card,
[data-theme="light-lite"] .content-card {
  background: #ffffff !important;
}

[data-theme="light-lite"] .raid-tab-bar {
  background: #f0eaf2 !important;
  border-color: rgba(227, 154, 150, 0.22) !important;
}

[data-theme="light-lite"] .public-run-card {
  background: #ffffff !important;
}

/* ── Section Divider ────────────────────────────────────── */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(252, 212, 200, 0.28) 20%, rgba(178, 145, 247, 0.4) 50%, rgba(252, 212, 200, 0.28) 80%, transparent 100%);
  margin: 2.25rem 0 1.75rem;
}

/* ── Accessibility: Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .section-card:hover,
  .raid-choice:not(.locked):not(.active):hover,
  .public-run-card:hover {
    transform: none !important;
  }
}

/* ── 1x3 Upcoming Runs Card Grid (Homepage Only) ───── */
.upcoming-runs-widget {
  margin-bottom: 2.25rem;
}

.upcoming-runs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.upcoming-runs-label {
  flex: 1;
  margin-bottom: 0 !important;
}

.public-runs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.public-runs-page-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.public-runs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

@media (max-width: 820px) {
  .public-runs-grid-3 {
    grid-template-columns: 1fr;
  }
}

.public-run-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--shadow-glass);
  color: inherit;
  cursor: default;
}

.public-run-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 212, 200, .38), transparent);
  pointer-events: none;
}

.public-run-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.public-run-tag {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.15rem 0.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.public-run-tag.tag-ftb {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.public-run-tag.tag-ftm {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.public-run-tag.tag-ba {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.public-run-tag.tag-chaotic {
  color: #d8b4fe;
  background: rgba(192, 86, 253, 0.12);
  border: 1px solid rgba(192, 86, 253, 0.3);
}

.public-run-tag.tag-default {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.public-run-type {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-run-time {
  font-size: 0.73rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  font-weight: 400;
}

.public-run-time-icon {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.public-nav-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.public-nav-btn:hover:not(:disabled) {
  background: rgba(178, 145, 247, 0.2);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(178, 145, 247, 0.25);
}

.public-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
