:root {
  --bg: #05060a;
  --bg-2: #0a0c12;
  --panel: rgba(10, 14, 22, 0.88);
  --panel-solid: #10141c;
  --line: rgba(62, 200, 255, 0.28);
  --line-strong: rgba(90, 220, 255, 0.55);
  --gold: #3ec8ff;
  --gold-2: #8ae4ff;
  --gold-dim: #1a6a8a;
  --ink: #eef6fb;
  --muted: #8ea0b0;
  --void: #8b6ad6;
  --arc: #79d4f2;
  --solar: #f07a2a;
  --ok: #3d9b6a;
  --danger: #c44536;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-ui: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-mark: "Orbitron", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #02040a;
  letter-spacing: 0.01em;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #dff7ff; }
img { max-width: 100%; height: auto; }
picture { display: block; }
picture img, .shot img, .raid-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.stars, .vignette { pointer-events: none; position: fixed; inset: 0; z-index: 0; }
.stars { overflow: hidden; background: none; }
.sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vignette {
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.58) 100%);
}

.topbar, .shell, .site-foot { position: relative; z-index: 1; }

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 28px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8,10,16,.94), rgba(8,10,16,.72));
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(62, 200, 255, 0.4));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-text strong {
  font-family: var(--font-mark);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; }
.nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 12px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active {
  color: var(--gold-2);
  border-color: var(--gold);
  background: transparent;
}
.session { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.clan-census {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.72);
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.clan-census b {
  color: var(--gold-2);
  font-size: 16px;
  margin-right: 4px;
  letter-spacing: 0;
}
.clan-census .census-active.is-live b { color: #7dffb3; }

.raid-count {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: #c9d6e0;
}
.raid-count b {
  color: #fff;
  margin-right: 4px;
  letter-spacing: 0;
  font-size: 13px;
}
.raid-card .raid-count { text-shadow: 0 1px 8px rgba(0,0,0,.7); }

.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-census { margin: 18px 0 0; max-width: 420px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); padding: 6px 10px; }

.guardian-chip {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
}
.guardian-chip small {
  display: block;
  font-family: var(--font-ui);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 9px;
}

.hex {
  width: 52px; height: 52px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: #0b0d12;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--gold);
  overflow: hidden;
}
.hex img, .hex svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hex-sm { width: 38px; height: 38px; }
.hex-lg { width: 88px; height: 88px; }
.hex-empty {
  border: 1px dashed rgba(212,175,55,.35);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shell { width: min(1240px, calc(100% - 36px)); margin: 28px auto 72px; }
.site-foot { text-align: center; padding: 24px 16px 48px; color: var(--muted); }
.foot-line {
  height: 1px; width: min(420px, 70%);
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 28px 8px 10px;
}
.kicker {
  font-family: var(--font-ui);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 13px;
  margin: 0 0 10px;
}
.hero h1, .page-head h1, h1, h2, h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: .92; text-shadow: 0 0 40px rgba(62,200,255,.22); }
.lede { color: #d4dde6; font-size: 18px; max-width: 540px; line-height: 1.45; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.traveler {
  width: min(380px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
}
.traveler-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff 0, #e7d7a3 18%, #8a7a55 42%, #1b1a16 70%);
  box-shadow: 0 0 80px rgba(240, 208, 96, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0d060;
  box-shadow: 0 0 12px #f0d060;
}
.orbit::before { top: -4px; left: 46%; }
.orbit::after { bottom: 18%; right: -3px; width: 5px; height: 5px; }
.orbit.slow {
  inset: 8%;
  animation-duration: 40s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.14);
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(62,200,255,.08);
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { background: rgba(62,200,255,.18); color: #fff; }
.btn-gold {
  background: linear-gradient(180deg, #7ee0ff, #1a8ec4);
  color: #041018;
  border-color: #b8f0ff;
  font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.08); color: #041018; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.btn-danger { border-color: rgba(196,69,54,.6); color: #ffb4ac; }
.btn-full { width: 100%; }
.btn-discord { border-color: rgba(88, 101, 242, .7); color: #c5cbff; }
.btn-discord:hover { background: rgba(88, 101, 242, .22); color: #fff; }
.btn-whatsapp { border-color: rgba(37, 211, 102, .55); color: #9eebc0; }
.btn-whatsapp:hover { background: rgba(37, 211, 102, .18); color: #fff; }
.community-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.site-foot .community-links { margin: 14px 0; }
.session .community-links { margin: 0; }

.panel, .card, .auth-card, .form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.panel::before, .card::before, .form-card::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(62,200,255,.08);
  pointer-events: none;
}
.corners { position: relative; }
.corners::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 14px no-repeat;
}

.page-head { margin: 8px 0 24px; }
.page-head p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 28px; }
.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(10,12,18,.7);
}
.stat b {
  display: block;
  font-family: var(--font-ui);
  font-size: 28px;
  color: var(--gold-2);
}
.stat span {
  font-family: var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}

.raid-card {
  min-height: 260px;
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  isolation: isolate;
  position: relative;
}
.raid-card.has-art { padding: 0; }
.raid-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.raid-card.has-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,8,12,.12) 10%, rgba(6,8,12,.92) 78%);
  pointer-events: none;
  border: 0;
}
.raid-card-body {
  position: relative;
  z-index: 2;
  padding: 18px;
}
.raid-banner { min-height: 340px; margin-bottom: 18px; }
.raid-card h3 { font-size: 22px; margin-bottom: 4px; }
.raid-card .meta { color: #ddd4c4; font-size: 14px; }
.raid-card .meta small { display: block; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-family: var(--font-ui); font-size: 11px; }
.slots { display: flex; gap: 6px; margin-top: 12px; }
.pip {
  width: 10px; height: 10px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(255,255,255,.18);
}
.pip.on {
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(62, 200, 255, .7);
}
.raid-card.has-cover {
  background-size: cover;
  background-position: center;
}
.raid-gallery, .shot-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin: 14px 0 8px;
}
.raid-gallery img, .shot img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.raid-gallery img:first-child,
.shot:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 340px;
}
.raid-gallery:not(:has(> :nth-child(3))),
.shot-gallery:not(:has(> :nth-child(3))) {
  grid-template-columns: 1fr 1fr;
}
.raid-gallery:not(:has(> :nth-child(3))) img:first-child,
.shot-gallery:not(:has(> :nth-child(3))) .shot:first-child {
  grid-row: auto;
  min-height: 220px;
}
.shot {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
}
.shot:first-child img, .shot:first-child picture,
.shot.is-hero, .shot:first-child {
  height: 100%;
  min-height: 340px;
}
.shot-gallery:not(:has(> :nth-child(3))) .shot:first-child,
.shot-gallery:not(:has(> :nth-child(3))) .shot:first-child img,
.shot-gallery:not(:has(> :nth-child(3))) .shot:first-child picture,
.shot-gallery:not(:has(> :nth-child(3))) .shot.is-hero {
  min-height: 220px;
  height: 220px;
}
.shot picture, .shot img { height: 100%; }
.raid-desc { color: #d8e0e8; line-height: 1.5; margin: 8px 0 0; }

.raid-codex-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 8px 22px;
  align-items: start;
}
.raid-codex-card > .raid-gallery,
.raid-codex-card > .shot-gallery {
  grid-column: 1;
  grid-row: 1 / span 12;
  margin: 0;
}
.raid-codex-card > *:not(.raid-gallery):not(.shot-gallery) { grid-column: 2; }
.raid-codex-card:not(:has(.raid-gallery)):not(:has(.shot-gallery)) {
  grid-template-columns: 1fr;
}
.raid-codex-card:not(:has(.raid-gallery)):not(:has(.shot-gallery)) > * { grid-column: 1; }

.class-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.tone-wish { background: linear-gradient(160deg, rgba(90,30,90,.55), rgba(8,8,12,.9) 55%), radial-gradient(400px 180px at 80% 0%, rgba(180,80,160,.45), transparent); }
.tone-garden { background: linear-gradient(160deg, rgba(180,200,190,.18), rgba(8,8,12,.92) 50%), radial-gradient(400px 180px at 80% 0%, rgba(210,230,220,.25), transparent); }
.tone-dsc { background: linear-gradient(160deg, rgba(70,140,180,.28), rgba(8,8,12,.92) 52%), radial-gradient(400px 180px at 80% 0%, rgba(140,200,230,.3), transparent); }
.tone-vog { background: linear-gradient(160deg, rgba(170,130,50,.32), rgba(8,8,12,.92) 52%), radial-gradient(400px 180px at 80% 0%, rgba(212,175,55,.32), transparent); }
.tone-vow { background: linear-gradient(160deg, rgba(40,90,50,.4), rgba(8,12,8,.92) 52%), radial-gradient(400px 180px at 80% 0%, rgba(80,160,70,.28), transparent); }
.tone-kf { background: linear-gradient(160deg, rgba(150,110,30,.35), rgba(12,8,4,.92) 52%), radial-gradient(400px 180px at 80% 0%, rgba(200,150,40,.28), transparent); }
.tone-ron { background: linear-gradient(160deg, rgba(180,90,140,.3), rgba(10,6,12,.92) 52%), radial-gradient(400px 180px at 80% 0%, rgba(255,180,220,.2), transparent); }
.tone-crota { background: linear-gradient(160deg, rgba(70,110,40,.35), rgba(8,10,6,.92) 52%), radial-gradient(400px 180px at 80% 0%, rgba(180,200,60,.22), transparent); }
.tone-edge { background: linear-gradient(160deg, rgba(70,40,120,.45), rgba(8,8,14,.94) 52%), radial-gradient(420px 200px at 80% 0%, rgba(62,200,255,.28), transparent), radial-gradient(380px 160px at 20% 100%, rgba(230,90,50,.22), transparent); }
.tone-desert { background: linear-gradient(160deg, rgba(26,50,70,.55), rgba(8,10,14,.94) 52%), radial-gradient(420px 200px at 82% 0%, rgba(180,210,230,.22), transparent), radial-gradient(360px 160px at 18% 100%, rgba(120,40,90,.28), transparent); }
.tone-dungeon { background: linear-gradient(160deg, rgba(80,70,110,.35), rgba(8,8,12,.92) 52%); }
.tone-nightfall { background: linear-gradient(160deg, rgba(180,80,30,.3), rgba(8,8,12,.92) 52%); }
.tone-trials { background: linear-gradient(160deg, rgba(200,170,70,.28), rgba(8,8,12,.92) 52%); }
.tone-custom { background: linear-gradient(160deg, rgba(90,90,90,.25), rgba(8,8,12,.92) 52%); }

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--gold-2);
}
.badge-ok { color: #9be7bf; border-color: rgba(61,155,106,.5); }
.badge-warn { color: var(--arc); border-color: rgba(121,212,242,.4); }
.badge-off { color: #ffb4ac; border-color: rgba(196,69,54,.5); }
.badge-master { color: #ffb37a; border-color: rgba(240,122,42,.5); }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(212,175,55,.12); }
th {
  font-family: var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
}

.form-card, .auth-card { padding: 28px; max-width: 520px; margin: 24px auto; }
.form-card.wide { max-width: 860px; }
.auth-shell { max-width: 560px; margin: 12px auto 40px; }
.auth-card h1 { font-size: 28px; }
.auth-switch { display: flex; gap: 8px; margin: 0 0 18px; }
.auth-switch a { flex: 1; text-align: center; }
label { display: block; font-family: var(--font-ui); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  background: #0a0c10;
  border: 1px solid rgba(212,175,55,.28);
  color: var(--ink);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 15px;
}
textarea { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }

.toast {
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(18,20,28,.9);
}
.toast-ok { border-color: rgba(61,155,106,.5); }
.toast-error { border-color: rgba(196,69,54,.6); }
.toast-warn { border-color: rgba(240,208,96,.4); }

.fireteam {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.slot {
  background: rgba(10,12,18,.75);
  border: 1px solid var(--line);
  padding: 12px 8px 14px;
  text-align: center;
  min-height: 150px;
}
.slot .hex { margin: 0 auto 8px; }
.slot b { display: block; font-size: 13px; word-break: break-word; }
.slot span { display: block; color: var(--muted); font-size: 12px; }

.emblem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}
.emblem-pick label {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.emblem-pick input { display: none; }
.emblem-pick label.is-on, .emblem-pick label:has(input:checked) {
  border-color: var(--gold);
  color: var(--gold-2);
  background: rgba(212,175,55,.08);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 10px; }
.step { padding: 20px; }
.step em {
  font-style: normal;
  font-family: var(--font-ui);
  color: var(--gold);
  letter-spacing: .2em;
}

.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.panel { padding: 22px; }

.class-titan { color: #7eb6ff; }
.class-hunter { color: #8fd18f; }
.class-warlock { color: #e08a9a; }

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.class-tabs[data-planet-tabs] {
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  justify-content: start;
}
.class-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.75);
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}
.class-tab span { font-size: 22px; letter-spacing: 0; }
.class-tab small {
  display: block;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--muted);
}
.class-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.class-tab.is-active { color: var(--ink); background: rgba(62, 200, 255, 0.08); }
.class-tab.is-active[data-class="hunter"] { border-color: #8fd18f; box-shadow: 0 0 18px rgba(143, 209, 143, .18); }
.class-tab.is-active[data-class="titan"] { border-color: #7eb6ff; box-shadow: 0 0 18px rgba(126, 182, 255, .18); }
.class-tab.is-active[data-class="warlock"] { border-color: #e08a9a; box-shadow: 0 0 18px rgba(224, 138, 154, .18); }

.build-list { display: grid; gap: 16px; }
.build-card { padding: 22px; }
.build-card h2 { margin-bottom: 6px; }
.build-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sub-badge {
  display: inline-block;
  font-family: var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.sub-solar { color: #ffb37a; border-color: rgba(240, 122, 42, .55); }
.sub-arc { color: #79d4f2; border-color: rgba(121, 212, 242, .45); }
.sub-void { color: #c4b0ff; border-color: rgba(139, 106, 214, .5); }
.sub-stasis { color: #9ad4ff; border-color: rgba(80, 160, 255, .5); }
.sub-strand { color: #7ee0b0; border-color: rgba(70, 211, 154, .45); }
.sub-prismatic {
  color: #f2e6ff;
  border-color: rgba(180, 120, 255, .55);
  background: linear-gradient(90deg, rgba(240,122,42,.16), rgba(121,212,242,.12), rgba(139,106,214,.2));
}
.build-rows { display: grid; gap: 12px; margin-top: 8px; }
.build-row dt {
  font-family: var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 4px;
}
.build-row dd { margin: 0; color: #d8e0e8; line-height: 1.5; }
.build-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.build-stats li {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 14px;
  background: rgba(5, 8, 14, 0.65);
}
.yt-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #05060a;
}
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.build-empty {
  padding: 36px 22px;
  text-align: center;
  color: var(--muted);
}
.build-video { width: 100%; max-width: 720px; border: 1px solid var(--line); background: #05060a; }
.wait-list { margin: 8px 0 0; padding-left: 18px; color: #d8e0e8; }
.wait-list li { margin: 6px 0; }
.raid-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin: 6px 0 14px;
}
.raid-pick label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 16, .7);
  cursor: pointer;
  min-height: 92px;
}
.raid-pick input { display: none; }
.raid-pick strong { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.raid-pick small { color: var(--muted); font-size: 12px; }
.raid-pick label.is-on, .raid-pick label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(62, 200, 255, .1);
}
.build-tip { margin-top: 22px; }
.build-tip .raid-desc { margin-top: 8px; }

.director-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 8px;
}
.dir-node {
  display: block;
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 22, 0.82);
  color: var(--ink);
}
.dir-node h3 { margin: 0 0 6px; font-size: 18px; }
.dir-node p { margin: 0; color: var(--muted); font-size: 14px; }
.dir-node:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(62, 200, 255, 0.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 4, 10, .88);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(8,10,16,.8);
  color: var(--gold-2);
  font-size: 28px;
  cursor: pointer;
}

.codex { display: grid; gap: 16px; }
.raid-codex-card { padding: 22px; background-blend-mode: overlay; }
.boss-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.boss-list li {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
  background: rgba(5, 8, 14, 0.65);
  letter-spacing: 0.02em;
}
.encounter-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.encounter-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: rgba(5, 8, 14, 0.65);
}
.encounter-list li.has-boss {
  border-color: rgba(62, 200, 255, 0.35);
  background: linear-gradient(90deg, rgba(62, 200, 255, 0.08), rgba(5, 8, 14, 0.65) 42%);
}
.encounter-list li.is-final {
  border-color: rgba(230, 170, 70, 0.45);
  background: linear-gradient(90deg, rgba(230, 170, 70, 0.12), rgba(5, 8, 14, 0.65) 48%);
}
.enc-group {
  margin: 16px 0 0;
  font-size: 11px;
  opacity: 0.85;
}
.enc-num {
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--gold);
  padding-top: 3px;
}
.encounter-list strong {
  display: block;
  font-size: 15px;
}
.encounter-list .badge { margin: 6px 0 0; }
.encounter-list p {
  margin: 6px 0 0;
  color: #c5d0da;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto auto 1fr; padding-bottom: 10px; }
  .nav { display: none; grid-column: 1 / -1; }
  .nav.is-open { display: flex; flex-direction: column; }
  .nav-toggle { display: block; justify-self: end; }
  .session { grid-column: 1 / -1; justify-content: space-between; }
  .hero, .grid-3, .grid-2, .stats, .stats-2, .steps, .row-2, .class-tabs, .director-map, .raid-codex-card { grid-template-columns: 1fr; }
  .raid-codex-card > .raid-gallery,
  .raid-codex-card > .shot-gallery,
  .raid-codex-card > * { grid-column: 1; grid-row: auto; }
  .fireteam { grid-template-columns: repeat(2, 1fr); }
  .raid-gallery, .shot-gallery { grid-template-columns: 1fr; }
  .raid-gallery img:first-child,
  .shot:first-child { grid-row: auto; min-height: 200px; height: 200px; }
}
