@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap");

/* Shade Hub — Division-style HUD, mobile-first */
:root {
  --bg: #07080a;
  --panel: #121418;
  --panel-2: #181b20;
  --border: rgba(255,255,255,.28);
  --text: #f5f5f5;
  --muted: #9a9ea6;
  --orange: #FF6D10;
  --gear: #01FF90;
  --exotic: #FF6F36;
  --named: #EAA213;
  --highend: #FFAF10;
  --armor: #45618E;
  --wd: #A43B3B;
  --skill: #FFD373;
  --safe: 14px;
  --nav-h: 64px;
  --top-h: 52px;
  --radius: 0;
  --tap: 44px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Rajdhani", "Arial Narrow", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255,109,16,.14), transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 120%, rgba(0,0,0,.65), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, #0c0d10, #07080a 40%, #050506);
}
h1, h2, h3, .brand strong, .bottom-nav, .subtab, .tl-head, .tl-foot, .tl-tag, .hero-remain {
  font-family: var(--display);
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  min-height: 64px;
  padding: 14px 18px 12px;
  background: #0b0d10;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; min-width: 0; flex: 1;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; flex-shrink: 0; }
.brand strong {
  min-width: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em;
  text-transform: none; line-height: 1.15; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hub-pill[hidden] { display: none !important; }
.hub-pill {
  flex-shrink: 0; margin-left: auto;
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #9aa0a6; line-height: 1;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
}
.page-chip {
  flex-shrink: 0; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,127,0,.12); border: 1px solid rgba(255,127,0,.35);
}

/* ===== Bottom tab bar (Updates · Events · Loot · Builds · Resources) ===== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%; max-width: 100%;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #0e1116;
  border-top: 1px solid #2a313c;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-width: 0; min-height: var(--nav-h); color: #8a9099; text-decoration: none;
  font-size: .58rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a:hover { text-decoration: none; color: var(--text); }
.bottom-nav a.active { color: var(--orange); }
.bottom-nav a.active .nav-ico { color: var(--orange); }
.nav-ico { display: grid; place-items: center; width: 22px; height: 22px; line-height: 0; }
.nav-ico svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Layout ===== */
.wrap { width: min(920px, 100%); margin: 0 auto; padding: 14px var(--safe) 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); font-weight: 800; margin-bottom: 8px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--gear); box-shadow: 0 0 8px var(--gear);
}
h1 { margin: 0 0 6px; font-size: clamp(1.25rem, 4.5vw, 1.7rem); letter-spacing: -.02em; }
.lede { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.section-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.site-foot {
  margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .72rem; line-height: 1.5;
}
.site-foot a { color: var(--highend); }

/* ===== Events / news cards ===== */
.today-strip {
  display: grid; gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .today-strip { grid-template-columns: 1fr 1fr; }
}
.today-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px;
}
.today-card h3 {
  margin: 0 0 8px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gear);
}
.today-card ul { margin: 0; padding: 0; list-style: none; }
.today-card li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-top: 1px solid rgba(42,46,54,.8); font-size: .82rem;
}
.today-card li:first-of-type { border-top: 0; }
.today-card .muted { color: var(--muted); font-size: .78rem; }

.event-rail {
  display: flex; flex-direction: column; gap: 12px;
}
.event-card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 14px 14px 16px; color: inherit; text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color .15s ease, transform .12s ease;
}
.event-card:hover { text-decoration: none; color: inherit; border-color: var(--orange); transform: translateY(-1px); }
.event-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange);
}
.event-card.accent-gear::before { background: var(--gear); }
.event-card.accent-exotic::before { background: var(--exotic); }
.event-card.accent-named::before { background: var(--named); }
.event-card.accent-muted::before { background: var(--muted); }
.event-card.season-card {
  background:
    linear-gradient(135deg, rgba(255,127,0,.16), transparent 55%),
    var(--panel);
  border-color: rgba(255,127,0,.45);
}
.event-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ev-badge {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,127,0,.15); color: var(--orange);
}
.ev-badge.season { background: rgba(255,127,0,.22); }
.ev-badge.patch { background: rgba(1,255,144,.12); color: var(--gear); }
.ev-badge.dxp { background: rgba(255,111,54,.15); color: var(--exotic); }
.ev-date { font-size: .7rem; color: var(--muted); }
.event-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.event-card .sub { margin: 0 0 6px; font-size: .78rem; color: var(--highend); }
.event-card p { margin: 0; font-size: .86rem; color: var(--muted); }
.event-cta {
  display: inline-flex; margin-top: 10px; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
}

/* ===== Season detail ===== */
.subtabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px;
  margin: 0 calc(-1 * var(--safe)); padding-left: var(--safe); padding-right: var(--safe);
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  font-weight: 700; font-size: .82rem;
}
.subtab[aria-selected="true"] {
  background: rgba(255,127,0,.16); border-color: var(--orange); color: var(--orange);
}
.season-panel { display: none; }
.season-panel.active { display: block; }
.season-list { display: grid; gap: 10px; }
.season-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.season-item h3 { margin: 0 0 4px; font-size: .95rem; }
.season-item .status {
  display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gear); margin-bottom: 6px;
}
.season-item p { margin: 0; color: var(--muted); font-size: .85rem; }
.manhunt-open { margin-top: 12px; }
#manhunt-weeks { display: grid; gap: 10px; margin-top: 12px; }
#manhunt-weeks[hidden] { display: none !important; }
.task-list { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); }
.task-list li { margin: 0 0 4px; }
.caveat, .src-line, .map-note { margin: 8px 0 0; font-size: .72rem; color: #8a9099; line-height: 1.4; }
.src-line a { color: var(--highend); }
.mod-label {
  margin: 16px 0 8px; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  font-family: var(--display); font-weight: 700;
}
.season-kicker {
  margin: 4px 0 2px;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9aa0a6;
}
#season-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: .95;
  letter-spacing: 0;
}
.season-status { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.season-tag {
  display: inline-block;
  background: var(--orange);
  color: #1a0d00;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  line-height: 1.2;
  padding: 4px 8px;
}
.season-remain {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: #fff;
}
.season-remain[hidden] { display: none; }
.mod-blurb { margin: 0 0 12px; color: #c5cad3; font-size: .92rem; line-height: 1.35; }
#panel-modifiers .mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mod-tile {
  aspect-ratio: 1;
  min-height: 0;
  padding: 8px 6px;
  border: 1px solid rgba(255,255,255,.4);
  background: #101114;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mod-tile.is-on { background: var(--orange); border-color: var(--orange); color: #1a0d00; }
.mod-ring {
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
}
.mod-ring svg { width: 18px; height: 18px; display: block; }
.mod-ring img {
  width: 44px; height: 44px; max-width: none;
  object-fit: contain; display: block;
}
.mod-ring:has(img) { border: none; }
.mod-name {
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}
.mod-detail {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px 8px;
}
.mod-detail[hidden] { display: none; }
.catalog-miss { margin: 0 0 8px; color: var(--orange); font-size: .82rem; font-weight: 700; }
.mod-notch {
  position: absolute;
  left: var(--notch, 50%);
  top: -8px;
  width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--orange);
  pointer-events: none;
}
.mod-detail p {
  margin: 0 0 2px;
  color: #67f0ff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}
.altar-map { margin: 8px 0 12px; }
.altar-map svg { width: 100%; height: auto; display: block; }
.map-bg { fill: #12161c; stroke: rgba(255,255,255,.08); }
.map-zone { fill: #6c7380; font-size: 22px; font-family: inherit; }
.altar-mark circle { fill: #ff7f00; }
.altar-mark text {
  fill: #1a1006; font-size: 14px; font-weight: 800; text-anchor: middle; font-family: inherit;
}
.altar-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.altar-list li { color: var(--text); font-size: .86rem; line-height: 1.35; }
.coords { display: block; color: #8a9099; font-size: .72rem; }

/* ===== Builds filters ===== */
.filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  margin: 0 calc(-1 * var(--safe)); padding-left: var(--safe); padding-right: var(--safe);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  font-weight: 600; font-size: .8rem; white-space: nowrap;
}
.chip[aria-pressed="true"] {
  background: rgba(255,127,0,.16); border-color: var(--orange); color: var(--orange);
}

/* ===== Inventory-style build card =====
   LEFT = key stats | RIGHT stack: TOP weapons | MIDDLE 2×3 gear | BOTTOM skills+spec
*/
.inv-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,127,0,.04), inset 0 1px 0 rgba(255,255,255,.03);
}
.inv-card.hidden { display: none; }
.inv-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 12px 10px;
  background: linear-gradient(90deg, rgba(255,127,0,.1), transparent 70%), var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.inv-head h2 { margin: 4px 0 0; font-size: .98rem; line-height: 1.2; }
.cat-badge {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: rgba(1,255,144,.12); color: var(--gear);
}

/* Main inventory HUD */
.inv-hud {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 10px;
}
@media (min-width: 480px) {
  .inv-hud { grid-template-columns: 110px 1fr; gap: 10px; padding: 12px; }
}
@media (min-width: 720px) {
  .inv-hud { grid-template-columns: 130px 1fr; }
}

/* LEFT stats column */
.inv-stats {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 6px;
  background: #0a0b0d;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}
.inv-stats .stat {
  border-bottom: 1px solid rgba(42,46,54,.7);
  padding-bottom: 5px;
}
.inv-stats .stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-label {
  display: block; font-size: .55rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); line-height: 1.2;
}
.stat-value {
  display: block; font-size: .72rem; font-weight: 700; color: var(--text);
  word-break: break-word; line-height: 1.25; margin-top: 1px;
}
@media (min-width: 480px) {
  .stat-label { font-size: .6rem; }
  .stat-value { font-size: .8rem; }
}

/* RIGHT column stack */
.inv-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* TOP — 3 weapons */
.inv-weapons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.wep-slot {
  background: #0a0b0d; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; min-height: 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.wep-slot .slot-tag {
  font-size: .52rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.wep-slot .wep-name {
  font-size: .68rem; font-weight: 700; line-height: 1.2; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wep-slot .wep-name.exotic { color: var(--exotic); }
.wep-slot .wep-name.named { color: var(--named); }
.wep-slot .wep-name.highend { color: var(--highend); }
.wep-slot .wep-note { font-size: .55rem; color: var(--muted); margin-top: 2px; }
@media (min-width: 480px) {
  .wep-slot { padding: 8px; min-height: 64px; }
  .wep-slot .wep-name { font-size: .78rem; }
  .wep-slot .slot-tag { font-size: .58rem; }
}

/* MIDDLE — 2×3 gear (Mask Chest Bag / Gloves Holster Knees) */
.inv-gear {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.gear-slot {
  background: #0a0b0d; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; min-height: 96px; display: flex; flex-direction: column; gap: 3px;
  position: relative; width: 100%; text-align: left; color: inherit; font: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease;
}
.gear-slot:hover, .gear-slot:focus-visible {
  border-color: var(--orange); background: #0e1014; outline: none;
}
.gear-slot.rarity-gearset { border-color: rgba(1,255,144,.45); }
.gear-slot.rarity-exotic { border-color: rgba(255,111,54,.55); }
.gear-slot.rarity-named { border-color: rgba(234,162,19,.5); }
.gear-slot.rarity-brand { border-color: rgba(255,127,0,.35); }
.gear-slot.rarity-gearset:hover, .gear-slot.rarity-gearset:focus-visible { border-color: rgba(1,255,144,.75); }
.gear-slot.rarity-exotic:hover, .gear-slot.rarity-exotic:focus-visible { border-color: rgba(255,111,54,.85); }
.gear-top { display: flex; align-items: center; gap: 6px; }
.gear-ico {
  width: 28px; height: 28px; border-radius: 6px; background: #050506;
  border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.gear-ico img { width: 100%; height: 100%; object-fit: contain; }
.gear-ico .letter { font-size: .65rem; font-weight: 800; color: var(--orange); }
.gear-slot-label {
  font-size: .5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.gear-slot-name {
  font-size: .65rem; font-weight: 700; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gear-slot-name.exotic { color: var(--exotic); }
.gear-slot-name.named { color: var(--named); }
.gear-slot-name.gearset { color: var(--gear); }
.cores { display: flex; gap: 3px; margin-top: auto; }
.core { width: 12px; height: 5px; border-radius: 2px; }
.core-r { background: var(--wd); }
.core-b { background: var(--armor); }
.core-y { background: var(--skill); }
.core-u { background: #3a3f48; }
.gear-talent {
  font-size: .52rem; color: var(--named); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gear-attrs {
  display: flex; flex-wrap: wrap; gap: 3px; margin-top: 1px;
}
.attr-chip {
  display: inline-block; font-size: .48rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #e8e8e8; background: rgba(255,127,0,.14);
  border: 1px solid rgba(255,127,0,.35); border-radius: 3px; padding: 1px 4px; line-height: 1.3;
}
.gear-mods {
  font-size: .48rem; color: var(--muted); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gear-mods .mod-label {
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a9099;
}
@media (min-width: 480px) {
  .gear-ico { width: 34px; height: 34px; }
  .gear-slot { min-height: 110px; padding: 8px; gap: 4px; }
  .gear-slot-name { font-size: .72rem; }
  .gear-slot-label { font-size: .55rem; }
  .attr-chip { font-size: .52rem; padding: 2px 5px; }
  .gear-mods { font-size: .52rem; }
}

/* Gear detail modal */
body.modal-open { overflow: hidden; }
.gear-modal[hidden] { display: none !important; }
.gear-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center;
  padding: 0 12px calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 480px) {
  .gear-modal { place-items: center; padding: 24px; }
}
.gear-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(2px);
}
.gear-modal-panel {
  position: relative; z-index: 1; width: min(100%, 360px);
  background: #12141a; border: 1px solid var(--border); border-radius: 14px 14px 10px 10px;
  padding: 18px 16px 16px; box-shadow: 0 -8px 40px rgba(0,0,0,.55);
}
.gear-modal-close {
  position: absolute; top: 8px; right: 10px; width: 36px; height: 36px;
  border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1;
  cursor: pointer; border-radius: 8px;
}
.gear-modal-close:hover, .gear-modal-close:focus-visible { color: #fff; background: rgba(255,255,255,.06); outline: none; }
.gear-modal-ico {
  width: 44px; height: 44px; border-radius: 8px; background: #050506;
  border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px;
}
.gear-modal-ico img { width: 100%; height: 100%; object-fit: contain; }
.gear-modal-ico .letter { font-size: .9rem; font-weight: 800; color: var(--orange); }
.gear-modal-slot {
  font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.gear-modal-panel h3 {
  margin: 4px 0 8px; font-size: 1.05rem; font-weight: 800; line-height: 1.2;
}
.gear-modal-panel h3.exotic { color: var(--exotic); }
.gear-modal-panel h3.named { color: var(--named); }
.gear-modal-panel h3.gearset { color: var(--gear); }
.gear-modal-cores { display: flex; gap: 4px; margin-bottom: 12px; }
.gear-modal-cores .core { width: 18px; height: 7px; }
.gear-modal-section { margin-top: 10px; }
.gear-modal-section strong {
  display: block; font-size: .58rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.gear-modal-section > span { font-size: .85rem; color: var(--named); }
.gear-modal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gear-modal-chips .attr-chip { font-size: .68rem; padding: 4px 8px; }
.gear-modal-empty { font-size: .78rem; color: var(--muted); }

/* BOTTOM — 2 skills + specialization */
.inv-bottom {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: stretch;
}
.skill-slot, .spec-slot {
  background: #0a0b0d; border: 1px solid var(--border); border-radius: 8px; padding: 8px;
  min-height: 52px;
}
.skill-slot small, .spec-slot small {
  display: block; font-size: .52rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.skill-slot span, .spec-slot span { font-size: .72rem; font-weight: 700; line-height: 1.2; }
.spec-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; border-color: rgba(255,127,0,.4); background: rgba(255,127,0,.06);
}
.spec-slot img { width: 28px; height: 28px; object-fit: contain; margin-bottom: 2px; }
.spec-slot span { font-size: .58rem; text-align: center; color: var(--orange); letter-spacing: .04em; text-transform: uppercase; }

.inv-notes {
  padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px;
}
.play-blurb, .hc-blurb {
  font-size: .78rem; padding: 8px 10px; border-radius: 8px; line-height: 1.35;
}
.play-blurb { background: rgba(255,127,0,.06); border-left: 3px solid var(--orange); color: #d4d4d4; }
.hc-blurb { background: rgba(164,59,59,.12); border: 1px solid rgba(164,59,59,.3); color: #f0b0b0; }
.play-blurb strong, .hc-blurb strong {
  display: block; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px;
}
.play-blurb strong { color: var(--orange); }
.hc-blurb strong { color: #ff8a8a; }

.empty-state {
  display: none; text-align: center; padding: 32px 16px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-state.visible { display: block; }

/* ===== Resources ===== */
.res-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .res-grid { grid-template-columns: 1fr 1fr; } }
.res-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; color: inherit; text-decoration: none; display: block;
}
.res-card:hover { border-color: var(--orange); text-decoration: none; color: inherit; }
.res-card h3 { margin: 0 0 6px; font-size: .95rem; }
.res-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.res-card .tag {
  display: inline-block; margin-bottom: 8px; font-size: .62rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gear);
}

@media (prefers-reduced-motion: reduce) {
  .event-card, .hero-rail { transition: none; scroll-behavior: auto; }
}

/* ===== Updates list (home) + loot rows ===== */
body.page-updates,
body.page-loot,
body.page-events {
  background: #0b0d10;
  background-image: none;
}
.updates-page { padding-top: 14px; }
.upd-list { display: grid; gap: 12px; }
.upd-entry {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 10px 12px 10px 14px; color: inherit; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.upd-entry > div { min-width: 0; }
a.upd-entry:hover { text-decoration: none; color: inherit; border-color: rgba(255,255,255,.2); }
.upd-entry h2 {
  margin: 0 0 2px; font-size: 1rem; line-height: 1.2; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upd-desc {
  display: block; margin: 0; max-width: min(38ch, 72%);
  color: #8a9099; font-size: .84rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upd-stamp {
  display: block; margin: 2px 0 0; font-size: .68rem; letter-spacing: .02em; color: #6c7380;
}
#update-feed[hidden],
#update-detail[hidden] { display: none !important; }
.topbar .upd-header-back {
  flex-shrink: 0; margin-left: 12px;
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035); color: #f2f4f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  cursor: pointer;
}
.topbar .upd-header-back svg { width: 18px; height: 18px; display: block; }
.upd-detail { padding-bottom: 12px; }
.upd-detail h1 {
  margin: 4px 0 8px; font-size: clamp(1.55rem, 6vw, 1.9rem);
  line-height: 1.12; letter-spacing: -.02em;
}
.upd-summary { margin: 0 0 6px; color: #d5d8de; font-size: 1rem; line-height: 1.4; }
.upd-posted { margin: 0 0 12px; color: #6c7380; font-size: .75rem; letter-spacing: .02em; }
.upd-pill {
  display: inline-block; margin: 0 0 16px;
  padding: 6px 12px; border-radius: 999px;
  background: #dc2626; color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}
.upd-banner { margin: 4px 0 16px; }
.upd-banner img {
  width: 100%; height: 190px; object-fit: cover; object-position: center 40%;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08); display: block;
}
.upd-h {
  margin: 18px 0 8px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: #f2f4f7;
}
.upd-h.is-accent { color: #ff7f00; }
.upd-sub { margin: 14px 0 6px; font-size: .95rem; font-weight: 700; color: #f5f5f7; }
.upd-detail p { margin: 0 0 10px; color: #c8ccd4; font-size: .95rem; line-height: 1.5; }
.upd-detail .upd-summary { color: #e6e8ee; font-size: 1rem; }
.upd-detail .upd-posted { color: #6c7380; font-size: .75rem; }
.upd-detail .upd-pill { color: #fff; font-size: .78rem; line-height: 1.2; }
.upd-detail .upd-demo { color: #6c7380; font-size: .72rem; }
.upd-detail ul { margin: 0 0 12px; padding: 0 0 0 1.1em; color: #c8ccd4; }
.upd-detail li { margin: 0 0 6px; line-height: 1.4; font-size: .95rem; }
.upd-more { margin-top: 8px; }
.upd-demo {
  margin-top: 18px; font-size: .72rem; color: #6c7380; line-height: 1.4;
}
.upd-ico {
  width: 46px; height: 46px; border-radius: 10px;
  justify-self: end; align-self: center;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--orange); color: #fff; border: 0;
}
.upd-ico svg { width: 22px; height: 22px; display: block; }

.loot-week { display: grid; gap: 8px; }
.loot-week-row {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline;
  background: #14181f; border: 1px solid rgba(255,255,255,.28); border-radius: 12px;
  padding: 12px 14px; font-size: .86rem;
}
.loot-day {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--loot-yellow);
}
.loot-note {
  margin: 16px 0 0; color: #8a9099; font-size: .75rem; line-height: 1.45;
}
/* ===== Events: inset swipe cards ===== */
body.page-events {
  height: 100dvh; min-height: 100dvh; overflow: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}
body.page-events .topbar { position: relative; flex: 0 0 auto; }
body.page-events .event-stage {
  flex: 1 1 auto; min-height: 0; display: flex;
}
body.page-events .bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; flex: none;
}
.hero-rail {
  flex: 1; width: 100%; max-width: 100%; height: 100%; min-height: 0; min-width: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero-rail::-webkit-scrollbar { display: none; }
.hero-rail:focus { outline: none; }
.hero-rail:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.hero-loading {
  flex: 1; display: grid; place-items: center; margin: 0; padding: 24px; color: var(--muted);
}
.hero-slide {
  flex: 0 0 100%; height: 100%; min-height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; padding: 14px 16px 16px; box-sizing: border-box;
}
.hero-card {
  flex: 1; min-height: 0; width: 100%;
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: #14181c;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
a.hero-card:hover { text-decoration: none; color: #fff; }
.hero-photo {
  flex: 1 1 auto; min-height: 42%;
  background-color: #101318; background-size: cover; background-position: center 30%;
}
.hero-card.is-season .hero-photo { background-image: url("assets/events/season-hero.jpg"); }
.hero-card.is-raid .hero-photo { background-image: url("assets/events/raid-hero.jpg"); }
.hero-copy {
  flex: 0 0 auto; padding: 16px 16px 14px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-dots { align-self: center; }
.hero-chip {
  align-self: flex-start; margin-bottom: 12px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: #ff7f00; color: #fff;
}
.hero-chip.countdown { background: #2563eb; }
.hero-copy h2 {
  margin: 0 0 8px; font-size: clamp(1.85rem, 8vw, 2.45rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.02; color: #fff;
}
.hero-kicker { margin: 0; color: #f2f4f7; font-size: 1rem; line-height: 1.35; }
.hero-remain {
  display: inline-flex; align-items: center; margin: 0;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .01em;
}
.hero-sub { margin: 6px 0 0; color: #c5cad3; font-size: .98rem; line-height: 1.35; }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); }
.hero-dots span.on { background: #ff7f00; }

/* ===== Loot: one phone screen, open two-column rows ===== */
body.page-loot {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: #0b1016;
  background-image: none;
}
body.page-loot .topbar { position: relative; flex: 0 0 auto; min-height: 52px; padding: 8px 16px 6px; background: transparent; }
body.page-loot .brand strong { font-size: 1.05rem; }
body.page-loot .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; flex: none; }
.loot-screen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 10px 12px 4px;
  overflow: hidden;
}
.loot-status { margin: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.loot-reset {
  display: inline-block;
  background: var(--orange);
  color: #1a0d00;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: 4px 8px;
}
.loot-block { display: flex; flex-direction: column; min-height: 0; flex: 0 0 auto; }
.loot-head,
.loot-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.92fr);
  column-gap: 8px;
  align-items: center;
}
.loot-head {
  padding: 0 0 8px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b919a;
}
.loot-rows { display: flex; flex-direction: column; }
.loot-row { padding: 12px 0; }
.loot-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.loot-cell img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.loot-cell span {
  min-width: 0;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  color: #f4f6f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loot-cell span.is-placeholder {
  color: #8e8e93;
  font-weight: 500;
  font-style: italic;
}
.loot-priority {
  display: inline-block;
  margin-right: 4px;
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}
.loot-updating { font-style: italic; color: var(--orange); }
.dz-badge {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f5f5f7;
  border: 1px solid var(--orange);
  padding: 1px 5px;
  vertical-align: 1px;
}
.loot-credit {
  flex: 0 0 auto;
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.3;
  color: #8b919a;
  letter-spacing: .04em;
}

/* ===== Category tiles (Builds landing + Resources landing) ===== */
body.page-builds.is-grid {
  height: 100dvh;
  overflow: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: #0b0d10;
  background-image: none;
}
body.page-builds.is-grid .topbar { position: relative; flex: 0 0 auto; }
body.page-builds.is-grid .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; flex: none; }
body.page-builds.is-grid .cat-stage { flex: 1 1 auto; min-height: 0; display: flex; }
#cat-stage[hidden],
#build-list[hidden],
#build-detail[hidden],
#res-landing[hidden],
#res-detail[hidden] { display: none !important; }
.cat-grid, .res-landing {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 12px 14px 8px;
}
.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); min-width: 0; max-width: 100%; align-content: stretch; }
body.page-resources {
  height: 100dvh;
  overflow: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: #0b0d10;
  background-image: none;
}
body.page-resources.is-hunter {
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow: visible;
}
html:has(body.page-resources.is-hunter) {
  overflow: auto;
  scrollbar-width: none;
}
html:has(body.page-resources.is-hunter)::-webkit-scrollbar { display: none; }
body.page-resources.is-hunter main,
body.page-resources.is-hunter .res-detail {
  flex: none;
  overflow: visible;
  max-height: none;
}
body.page-resources.is-hunter-home #tab-hunters {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}
body.page-resources.is-hunter-home #res-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
body.page-resources .topbar { position: relative; flex: 0 0 auto; }
body.page-resources .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; flex: none; }
body.page-resources main { flex: 1 1 auto; min-height: 0; min-width: 0; max-width: 100%; display: flex; flex-direction: column; }
.res-landing {
  flex: 1;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.res-detail { flex: 1; overflow: auto; }
.cat-tile {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0d10;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.res-landing .cat-tile img { object-fit: contain; }
a.cat-tile, a.cat-tile:hover { text-decoration: none; color: inherit; }
.back-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-weight: 700;
  padding: 0 0 8px;
  cursor: pointer;
}
.res-detail h1, .build-detail h1, .build-list h1 { margin-top: 0; }
.hunter-sec {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}
.hunter-sec span {
  color: #8a9099;
  font-weight: 700;
  font-size: .85rem;
}
.hunter-note { margin-top: -4px; }
.hunter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 80px;
  text-align: left;
  margin: 0 0 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 0;
  background: #101114;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.hunter-copy { flex: 1 1 auto; min-width: 0; }
.hunter-row strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hunter-row em {
  display: inline; margin-left: 6px; font-style: normal;
  color: #8a9099; font-size: .82rem;
}
.hunter-row small, .hunter-area {
  display: block; margin-top: 3px; color: #9aa0a6; font-size: .72rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hunter-float {
  position: relative;
  width: 72px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.hunter-float::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,109,16,.5), rgba(255,109,16,0) 72%);
}
.hunter-float img {
  position: relative;
  width: 68px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.7));
}
.hunter-float.is-fallback { color: #c5cad3; }
.hunter-float.is-fallback svg { position: relative; width: 40px; height: 40px; }
.hunter-tag {
  display: inline-block; margin-top: 4px;
  font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #c9a227;
  font-style: normal;
}
.hunter-hero {
  width: min(220px, 70%); height: auto; margin: 0 0 12px;
  background: #101318; border-radius: 0;
}
.hunter-hero.is-mask {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 55%, rgba(255,109,16,.4), rgba(16,19,24,0) 62%),
    #101318;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.65));
}
.hunter-hero.hunter-fallback { height: 120px; }
.hunter-steps, .hunter-tips { margin: 0 0 12px; padding-left: 1.2em; color: #d5d8de; }
.hunter-steps li, .hunter-tips li { margin: 0 0 6px; }
.hunter-headsup {
  background: #101114;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 0;
  padding: 10px 12px;
  color: #c5cad3;
  font-size: .88rem;
}
.hunter-headsup strong {
  display: block; margin-bottom: 4px;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #9aa0a6;
}
.hunter-sources, .hunter-credit {
  margin-top: 14px; font-size: .72rem; color: #8a9099; line-height: 1.45;
}
.hunter-sources a, .hunter-credit a { color: #c5cad3; }
.hunter-region {
  margin: 0 0 10px;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hunter-home {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 12px 10px;
}
.hunter-grid {
  flex: 2 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 0;
}
.hunter-grid .col-title,
.hunter-wide .col-title {
  max-width: 100%;
  padding: 0 8px;
  text-align: center;
  line-height: 1.05;
}
.hunter-wide.col-tile {
  flex: 0.6 1 0;
  height: auto;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hunter-wide .col-ring {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  aspect-ratio: 1 / 1;
  flex: 0 0 64px;
  box-sizing: border-box;
}
.hunter-wide .col-ring svg {
  width: 28px;
  height: 28px;
  max-width: none;
}
.hunter-mask-row {
  display: block;
  width: 100%;
  height: 168px;
  margin: 0 0 8px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  background: #0c0d10;
  cursor: pointer;
}
.hunter-mask-zoom {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.42);
  transform-origin: center 24%;
  pointer-events: none;
}
.hunter-mask-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: #d5d8de;
}
.hunter-mask-fallback svg { width: 96px; height: 96px; }
.hunter-yt, .creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.4);
  background: #101114;
  color: inherit;
  text-decoration: none;
}
.creator-row { margin: 0 0 8px; min-width: 0; max-width: 100%; }
.creator-row strong { min-width: 0; overflow-wrap: anywhere; }
.creator-label {
  margin: 4px 2px 8px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b919a;
}
.creator-label:not(:first-child) { margin-top: 16px; }
a.hunter-yt:hover, a.creator-row:hover { text-decoration: none; border-color: var(--orange); }
.hunter-yt span, .creator-row strong {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 1rem;
}
.hunter-yt svg, .creator-logo svg { width: 28px; height: 20px; display: block; flex: 0 0 auto; }
.creator-logo { display: grid; place-items: center; width: 28px; height: 20px; }
body.page-builds.is-list {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
}
.build-kicker {
  margin: 0;
  padding: 0 12px 8px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.build-secondary { margin-top: 16px; }
.build-secondary h2 {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.inv-tile {
  position: relative;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 4px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 2.15 / 1;
  min-height: 0;
  padding: 14px 6px 14px 2px;
  background: #12151a;
  color: #1a1408;
  border: 1px solid rgba(0,0,0,.28);
  overflow: hidden;
  text-align: left;
}
.inv-tile.no-logo { grid-template-columns: minmax(0, 1fr) auto; padding-left: 8px; }
.inv-slot {
  position: absolute; top: 3px; left: 5px; z-index: 2;
  max-width: 72%;
  font-size: 8px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1; color: inherit; opacity: .82;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inv-tile.rarity-gearset { background: linear-gradient(180deg, #3ddc84 0%, #0d7a45 100%); }
.inv-tile.rarity-gold { background: linear-gradient(180deg, #f2c14b 0%, #c49220 100%); }
.inv-tile.rarity-named { background: linear-gradient(180deg, #f0c56a 0%, #b8860b 100%); }
.inv-tile.rarity-exotic { background: linear-gradient(180deg, #ff8a4a 0%, #c2410c 100%); }
.inv-tile.rarity-spec { background: linear-gradient(180deg, #ff9a3c 0%, #e06712 100%); }
.inv-tile.rarity-empty {
  background: #12151a;
  color: #f2f4f7;
  border-color: rgba(255,255,255,.28);
}
.inv-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--edge, #3a3f48); }
.inv-tile .inv-edge, .inv-tile .inv-ghost { display: none; }
.inv-logo { width: 100%; height: 82%; max-height: 58px; object-fit: contain; justify-self: center; }
.inv-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; z-index: 1; }
.inv-copy strong {
  font-family: var(--display);
  font-size: clamp(.58rem, 2.5vw, .78rem);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.05;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.inv-detail {
  font-style: normal;
  font-family: var(--display);
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .08em;
  line-height: 1;
  color: inherit;
}
.inv-pips { position: absolute; left: 5px; bottom: 4px; z-index: 2; display: flex; gap: 3px; margin: 0; }
.inv-pips i { width: 8px; height: 8px; border-radius: 50%; border: 0; background: transparent; display: block; }
.inv-pips i.is-on.is-off { background: #e23b3b; }
.inv-pips i.is-on.is-def { background: #3d7edb; }
.inv-pips i.is-on.is-skill { background: #e2c56a; }
.inv-pips i.is-on.is-mod { background: #1a1408; }
.inv-tile.rarity-empty .inv-pips i.is-on.is-mod { background: #f4f6f8; }
.inv-side { display: flex; flex-direction: column; gap: 2px; align-self: center; }
.inv-talent, .inv-aug { width: 16px; height: 16px; object-fit: contain; }
.inv-exp {
  position: absolute; right: 4px; bottom: 3px; z-index: 2;
  width: 16px; height: 18px; padding: 0 0 3px;
  display: grid; place-items: center;
  background: #1a1208; color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
  font-size: 8px; font-weight: 800; line-height: 1; text-align: center;
}
.inv-tile:not(.rarity-empty) .inv-icon { filter: brightness(0); }
.inv-tile.rarity-empty .inv-icon { filter: brightness(0) invert(1); }
.inv-tile .inv-logo.is-weapon { filter: drop-shadow(0 1px 1px rgba(0,0,0,.55)); }
.inv-icon { filter: brightness(0) invert(1); }
.inv-icon.is-native { filter: none; }
.bb-tile.is-inv { display: block; background: transparent; border: 0; padding: 0; min-height: 0; color: #fff; }
.bb-tile.is-inv.is-on { outline: 2px solid #fff; outline-offset: 1px; }
.td-row-3 .inv-tile, .bb-slot-3 .inv-tile { aspect-ratio: 1.55 / 1; }
.td-row-3 .inv-copy strong, .bb-slot-3 .inv-copy strong { font-size: .56rem; }
.td-row-2 .inv-tile, .bb-slot-2 .inv-tile { aspect-ratio: 2.15 / 1; }
.bb-chip .inv-icon { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.td-loadout {
  width: 100%;
  max-width: 840px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 8px 12px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.td-row { display: grid; gap: 4px; min-width: 0; }
.td-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.td-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td-slot { min-width: 0; max-width: 100%; }
.td-face {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: auto;
  padding: 4px 4px 4px 6px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 2px;
  overflow: hidden;
  background: #12151a;
}
.td-row-2 .td-face { aspect-ratio: 2.2 / 1; }
.td-row-3 .td-face { aspect-ratio: 1.7 / 1; }
.td-face.rarity-gold { background: linear-gradient(180deg, #f2c14b 0%, #c49220 100%); }
.td-face.rarity-named { background: linear-gradient(180deg, #f0c56a 0%, #b8860b 100%); }
.td-face.rarity-exotic { background: linear-gradient(180deg, #ff8a4a 0%, #c2410c 100%); }
.td-face.rarity-gearset { background: linear-gradient(180deg, #3ddc84 0%, #0d7a45 100%); }
.td-face.rarity-spec { background: linear-gradient(180deg, #ff9a3c 0%, #e06712 100%); }
.td-face.rarity-empty { background: #12151c; border-color: rgba(255,255,255,.22); }
.td-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.td-slot-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(26, 20, 8, .72);
}
.td-name {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #1a1408;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.td-face.rarity-empty .td-slot-label,
.td-face.rarity-empty .td-name { color: #f2f4f7; }
.td-face.rarity-exotic .td-slot-label,
.td-face.rarity-exotic .td-name,
.td-face.rarity-spec .td-slot-label,
.td-face.rarity-spec .td-name { color: #1a0d00; }
.td-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.td-art {
  flex: 0 0 32%;
  height: 78%;
  min-width: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
}
.td-face.rarity-gold .td-art,
.td-face.rarity-named .td-art,
.td-face.rarity-exotic .td-art,
.td-face.rarity-gearset .td-art,
.td-face.rarity-spec .td-art { color: rgba(20,16,8,.88); }
.td-art svg { width: 78%; height: 78%; display: block; }
.td-art img { width: 86%; height: 86%; object-fit: contain; display: block; }
.td-art img.is-mark, .td-talent.is-mark { filter: brightness(0); }
.td-face.rarity-empty .td-art img.is-mark { filter: none; }
.td-art img.is-grenade { filter: none; background: none; }
.td-lvl {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: #1a1408;
}
.td-face.rarity-empty .td-lvl,
.td-face.rarity-spec .td-lvl,
.td-face.rarity-exotic .td-lvl { color: #fff; }
.td-dots { display: flex; gap: 2px; }
.td-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(20,16,8,.8);
  display: block;
}
.td-face.rarity-empty .td-dots i { background: rgba(255,255,255,.55); }
.td-talent { width: 12px; height: 12px; object-fit: contain; display: block; }
.res-detail .muted { color: var(--muted); }
.build-list h1 {
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.build-rows { display: grid; gap: 8px; }
.build-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 0;
  background: #101114;
  border: 1px solid rgba(255,255,255,.4);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.build-row strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.build-row em {
  display: block; margin-top: 2px; font-style: normal;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa0a6;
}
.role-ico {
  width: 36px; height: 36px; border-radius: 0;
  display: grid; place-items: center; justify-self: end;
  background: transparent;
  border: 1px solid var(--orange);
  color: #fff;
}
.role-ico svg { width: 20px; height: 20px; display: block; }
.role-ico.dps,
.role-ico.cc,
.role-ico.heal,
.role-ico.tank,
.role-ico.support { background: transparent; }
.build-row em.tone-dps, .build-role.tone-dps { color: #e07070; }
.build-row em.tone-tank, .build-role.tone-tank { color: #8eb4e8; }
.build-row em.tone-cc, .build-role.tone-cc { color: #d7a15a; }
.build-row em.tone-skill, .build-role.tone-skill,
.build-row em.tone-support, .build-role.tone-support { color: #e2c56a; }
.build-row em.tone-heal, .build-role.tone-heal { color: #7dcea0; }
.build-row em.tone-hybrid, .build-role.tone-hybrid { color: #c9a6e8; }
.build-logo {
  width: 42px; height: 42px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: #101318;
}
.build-logo img { width: 42px; height: 42px; object-fit: cover; object-position: left center; }
.build-logo img.is-banner { object-fit: cover; }
.role-mark { width: 14px; height: 14px; border-radius: 50%; display: block; }
.role-mark.tone-dps { background: #c43a3a; }
.role-mark.tone-tank { background: #3d6cb5; }
.role-mark.tone-skill { background: #c9a237; }
.role-mark.tone-heal { background: #2e8c5a; }
.build-role { margin: 0 0 12px; font-weight: 700; }
.detail-blurb {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
  color: #cfd3da;
  line-height: 1.45;
}
.detail-blurb strong {
  display: block; color: var(--orange); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px;
}
.detail-label {
  margin: 14px 0 8px; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.piece-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.piece-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  font-size: .86rem;
}
.piece-list span { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.detail-logo {
  width: 28px; height: 28px; object-fit: cover; object-position: left center;
  border-radius: 6px; vertical-align: -6px; margin-right: 8px;
}

/* Inactive season sub-tabs stay hidden. .season-list { display:grid } would otherwise show every panel. */
.season-panel.season-list { display: none; }
.season-panel.season-list.active { display: grid; }
.season-theme {
  margin: 0 0 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.season-theme[hidden] { display: none !important; }
.climax-line { margin: 4px 0 0; color: var(--text); font-size: .95rem; }
.ev-map { margin: 16px 0 0; }
.ev-map .map-shot {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.55);
  background:
    linear-gradient(#fff, #fff) left top / 12px 1px no-repeat,
    linear-gradient(#fff, #fff) left top / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) right top / 12px 1px no-repeat,
    linear-gradient(#fff, #fff) right top / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 12px 1px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 12px 1px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 1px 12px no-repeat,
    #101114;
  cursor: zoom-in;
}
.ev-map .map-shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
}
.ev-map figcaption {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--orange);
}
.journey-mission {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
}
.journey-bar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 0; background: transparent; color: inherit;
  text-align: left; font: inherit; cursor: pointer;
}
.journey-name { flex: 1; min-width: 0; font-weight: 700; font-size: 1rem; }
.journey-count { flex: 0 0 auto; font-size: .75rem; font-weight: 700; color: #8a9099; }
.journey-chevron { flex: 0 0 auto; width: 18px; height: 18px; color: #9aa0a6; transition: transform .22s ease; }
.journey-bar[aria-expanded="true"] .journey-chevron { transform: rotate(180deg); }
.journey-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.journey-panel.is-open { grid-template-rows: 1fr; }
.journey-panel-inner { overflow: hidden; min-height: 0; }
.journey-panel-inner .task-list,
.journey-panel-inner .unlocks-line { margin-left: 14px; margin-right: 14px; }
.journey-panel.is-open .journey-panel-inner { padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .journey-panel, .journey-chevron { transition: none; }
}
.unlocks-line { margin: 4px 0 0; color: var(--orange); font-size: .75rem; font-weight: 700; }
.guide-btn {
  display: inline-flex; align-items: center; margin-top: 10px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--orange); color: var(--orange);
  background: rgba(255,127,0,.12); font-weight: 800; font-size: .82rem; text-decoration: none;
}
a.guide-btn:hover { text-decoration: none; }
.map-shot { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.map-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.map-zoom {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94);
  display: flex; flex-direction: column; padding: 56px 12px 16px;
}
.map-zoom-stage { flex: 1; overflow: auto; display: grid; place-items: center; touch-action: none; }
.map-zoom img { width: min(100%, 1600px); transform-origin: center center; }
.map-zoom p { margin: 8px 0 0; text-align: center; color: #c8ccd4; font-size: .85rem; }
.map-zoom-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-size: 1.4rem;
}
body.page-events.is-event-detail {
  height: auto; min-height: 100dvh; overflow: auto;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
}
body.page-events.is-event-detail .event-stage { display: block; flex: none; }
body.page-events.is-event-detail .hero-rail { display: none; }
body.page-events.is-event-detail .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; }
.event-detail[hidden] { display: none !important; }
.admin-link {
  position: fixed; right: 14px; bottom: calc(var(--nav-h) + 8px); z-index: 30;
  font-size: .68rem; color: #6c7380; letter-spacing: .04em;
}
body.is-event-detail .admin-link { display: none; }
.build-toast {
  position: fixed; left: 12px; right: 12px; z-index: 80;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  border: 0; border-radius: 999px; padding: 12px 16px;
  background: #ff7f00; color: #1a1004; font-weight: 800; font-size: .88rem;
}
body.page-admin { background: #0b0d10; background-image: none; }
body.page-admin.is-logged-out .admin-main {
  min-height: calc(100dvh - 64px - var(--nav-h) - env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.admin-login { width: min(340px, 100%); margin: 0; }
.admin-login .admin-btn { width: 100%; }
.admin-status[hidden] { display: none !important; }
.admin-main { padding-bottom: 28px; }
.admin-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin: 0 0 14px;
}
.admin-card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.admin-sub { margin: 14px 0 8px; font-size: .95rem; }
.admin-card label, .admin-acc label {
  display: grid; gap: 4px; margin: 0 0 10px; font-size: .75rem; font-weight: 700; color: var(--muted);
}
.admin-card input, .admin-card select, .admin-card textarea,
.admin-acc input, .admin-acc select, .admin-acc textarea {
  width: 100%; background: #101318; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 10px 12px; color: var(--text);
}
.admin-btn {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--orange);
  background: rgba(255,127,0,.16); color: var(--orange); font-weight: 800;
}
.admin-btn-ghost { background: transparent; border-color: rgba(255,255,255,.16); color: var(--muted); }
.admin-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-status { min-height: 1.2em; margin: 0 0 12px; font-size: .85rem; }
.admin-status.is-ok { color: var(--gear); }
.admin-status.is-err { color: #f87171; }
.admin-instance, .admin-acc {
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px;
}
.admin-acc-btn {
  width: 100%; text-align: left; background: transparent; border: 0; color: inherit;
  font-weight: 800; padding: 4px 0;
}
#map-preview { max-height: 180px; width: auto; border-radius: 10px; margin: 0 0 10px; }

/* ===== Division-style pass: square frames, orange active, timeline cards ===== */
.brand strong { letter-spacing: .04em; text-transform: uppercase; font-size: 1.05rem; }
.topbar { border-bottom: 1px solid rgba(255,255,255,.28); background: rgba(7,8,10,.92); }
.hub-pill { border-radius: 0; letter-spacing: .14em; }
.bottom-nav {
  background: #0c0d10;
  border-top: 1px solid rgba(255,255,255,.28);
  gap: 0;
}
.bottom-nav a {
  border-right: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .62rem;
}
.bottom-nav a:last-child { border-right: 0; }
.bottom-nav a.active {
  background: var(--orange);
  color: #1a0d00;
}
.bottom-nav a.active .nav-ico { color: #1a0d00; }
.subtabs { gap: 0; border: 1px solid rgba(255,255,255,.28); padding: 0; }
.subtab {
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.2);
  background: transparent;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.subtab:last-child { border-right: 0; }
.subtab[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0d00;
}
.cat-tile, .build-row, .hunter-row, .journey-mission, .admin-card, .admin-btn,
.season-item, .detail-blurb, .loot-week-row, .guide-btn, .td-loadout, .role-ico,
.admin-instance, .admin-acc, .piece-list li, .upd-pill, .hero-chip, .hero-remain,
.journey-bar, input, select, textarea, button {
  border-radius: 0 !important;
}
.admin-btn {
  background: var(--orange);
  color: #1a0d00;
  border-color: var(--orange);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--display);
}
.admin-btn-ghost {
  background: transparent;
  color: #d5d8de;
  border-color: rgba(255,255,255,.4);
}
.td-loadout, .cat-tile, .build-row, .hunter-row, .season-item, .admin-card, .loot-week-row {
  box-shadow: none;
}

body.page-events .event-stage { flex-direction: column; }
body.page-events .tl-screen {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: 6px 12px 8px;
}
.tl-screen[hidden] { display: none !important; }
.tl-head h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.tl-head p { margin: 2px 0 8px; color: #fff; font-size: 1.05rem; font-weight: 600; }
.tl-frame {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  border: 0;
  padding: 0;
  background: none;
}
body.page-events .hero-rail {
  flex: 1 1 auto; height: auto; min-height: 0;
  gap: 8px; padding: 0;
  scroll-snap-type: x mandatory;
}
body.page-events .hero-slide {
  flex: 0 0 168px;
  width: 168px;
  height: 100%;
  min-height: 0;
  padding: 0;
  scroll-snap-align: center;
}
.tl-card {
  height: 100%;
  display: flex; flex-direction: column;
  background: #101114;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  color: #fff;
}
.tl-art {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 42%, #2a2e36, #0c0d10 72%);
  background-size: cover; background-position: center;
}
.tl-art.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.62));
}
.tl-tag, .tl-soon-head, .tl-emblem, .tl-art .hero-remain { position: relative; z-index: 1; }
.tl-tag {
  align-self: flex-start;
  margin: 8px 8px 0;
  background: var(--orange);
  color: #1a0d00;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 6px;
}
.tl-art .hero-remain {
  align-self: flex-start;
  margin: 6px 8px 0;
  padding: 2px 6px;
  border-radius: 0;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .04em;
}
.tl-soon-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; margin: 8px 8px 0;
  color: #fff; font-weight: 700; letter-spacing: .04em; font-size: .78rem;
}
.tl-soon-head .hero-remain {
  margin: 0; background: transparent; border: 0; padding: 0;
  font-size: .95rem; font-weight: 700;
}
.tl-emblem {
  width: 86px; height: 86px; margin: auto;
  border-radius: 50%;
  border: 5px solid var(--ring, var(--orange));
  display: grid; place-items: center;
  color: #fff;
  background: rgba(0,0,0,.28);
  position: relative;
}
.tl-emblem svg { width: 42px; height: 42px; }
.tl-lock {
  position: absolute; right: -2px; bottom: -2px;
  width: 22px; height: 22px;
}
.tl-foot {
  position: relative;
  flex: 0 0 auto;
  min-height: 74px;
  padding: 8px 28px 8px 8px;
  background: #14161a;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.tl-foot.is-hot { background: var(--orange); color: #fff; }
.tl-kind {
  font-size: .62rem; letter-spacing: .04em; text-transform: none;
  color: #b7bcc4; font-weight: 600;
}
.tl-foot.is-hot .tl-kind { color: rgba(255,255,255,.9); }
.tl-foot strong {
  font-size: .98rem; font-weight: 700; line-height: 1.05; letter-spacing: .01em;
}
.tl-foot.is-clan strong {
  font-size: 1.05rem;
  line-height: 1.15;
}
.tl-foot small, .tl-foot em {
  font-style: normal; font-size: .68rem; color: #c5cad3; line-height: 1.2;
}
.tl-foot.is-hot small, .tl-foot.is-hot em { color: rgba(255,255,255,.92); }
.tl-soon-pill {
  margin-top: 4px;
  background: #161616;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 6px;
}
.tl-mini {
  position: absolute; right: 6px; bottom: 8px;
  width: 18px; height: 18px; color: rgba(255,255,255,.55);
}
.tl-mini svg { width: 18px; height: 18px; }
.tl-foot.is-hot .tl-mini { color: rgba(255,255,255,.85); }
.tl-bar {
  position: relative;
  height: 3px; margin: 8px 6px 0;
  background: rgba(255,255,255,.22);
}
.tl-bar span {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 28px; background: #fff;
}
.upd-h { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); font-size: .78rem; }
@media (min-width: 800px) {
  body.page-events .hero-slide { flex-basis: 210px; width: 210px; }
  .tl-emblem { width: 104px; height: 104px; }
}
body.page-builds.is-grid,
body.page-resources,
body.page-admin,
body.page-events {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255,109,16,.14), transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 120%, rgba(0,0,0,.55), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 72px);
}

/* Collections tiles — Resources and Builds categories */
.col-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #101114;
  color: #fff;
  text-decoration: none;
}
a.col-tile:hover { text-decoration: none; color: #fff; }
.col-tile:active, .col-tile:focus-visible {
  background: var(--orange);
  color: #1a0d00;
  border-color: var(--orange);
}
.col-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .92rem;
}
.col-ring {
  width: 74px; height: 74px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50% !important;
  display: grid; place-items: center;
}
.col-tile:active .col-ring, .col-tile:focus-visible .col-ring { border-color: #1a0d00; }
.col-ring svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.col-count { font-family: var(--display); letter-spacing: .12em; font-size: .95rem; font-weight: 600; }

/* Journey + manhunt rows */
.journey-bar.is-on { background: var(--orange); color: #1a0d00; }
.journey-bar.is-on .journey-count, .journey-bar.is-on .j-ring { color: #1a0d00; }
.j-roman {
  flex: 0 0 auto; width: 28px;
  font-family: var(--display); font-weight: 700; letter-spacing: .04em;
}
.j-ring {
  width: 36px; height: 36px; border-radius: 50% !important;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
}
.j-task, .j-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  width: 100%;
  margin: 0 0 6px;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  color: inherit;
  font: inherit;
}
.j-meta { display: flex; align-items: center; gap: 6px; color: #9aa0a6; }
.j-meta svg, .j-meta b { width: 16px; height: 16px; font-weight: 700; font-size: .72rem; }
.j-obj { display: none; grid-column: 1 / -1; font-size: .78rem; }
.j-obj em { display: block; font-style: normal; letter-spacing: .08em; text-transform: uppercase; font-size: .62rem; }
.j-pick.is-on { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.j-pick.is-on .j-meta { color: #1a0d00; }
.j-pick.is-on .j-obj { display: block; }
#panel-manhunts, #panel-journey, #panel-modifiers, #panel-rewards { margin-top: 8px; gap: 8px; }
.reward-list, .reward-sources { margin: 0 0 12px; padding: 0 0 0 1.1em; color: #f2f4f7; }
.reward-list li, .reward-sources li { margin: 0 0 6px; line-height: 1.35; }
.reward-sources a { color: var(--orange); }

body.page-season main.wrap { padding-top: 6px; }
body.page-season .season-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  margin: 0 0 8px;
}
body.page-season .season-kicker { margin: 0; }
body.page-season #season-title { margin: 0; }
body.page-season .season-status {
  margin: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
}
body.page-season .season-remain { font-size: 1.05rem; line-height: 1; }
body.page-season #season-tabs {
  --season-tab-count: 3;
  display: grid;
  grid-template-columns: repeat(var(--season-tab-count), minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}
body.page-season #season-tabs .subtab {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fff;
  font-size: clamp(.58rem, 2.5vw, .74rem);
  letter-spacing: .03em;
}
body.page-season #season-tabs .subtab[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0d00;
}
.jy-board {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}
.jy-heads { grid-column: 1 / -1; min-width: 0; }
.jy-head[hidden] { display: none !important; }
.jy-nav, .jy-mission { display: flex; flex-direction: column; gap: 6px; }
.jy-num {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.38);
  background: #101114;
  color: #f4f6f8;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1;
}
.jy-num.is-on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.jy-head { margin: 0; }
.jy-head h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: .01em;
}
.jy-name, .jy-req { margin: 4px 0 0; color: #f4f6f8; }
.jy-req {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 1rem;
}
.jy-task {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.38);
  background: #101114;
  color: #f4f6f8;
  text-align: left;
  font-size: .92rem;
  line-height: 1.15;
  overflow: hidden;
}
.jy-task b {
  flex: 0 0 auto;
  min-width: 2.4em;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
}
.jy-task span {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.jy-empty { margin: 0; color: #8b919a; font-size: .95rem; }
.jy-mission[hidden] { display: none !important; }
.mh-week {
  margin: 0;
  background: #101114;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 0;
}
.mh-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #f4f6f8;
  text-align: left;
  cursor: pointer;
}
.mh-head.is-on {
  background: var(--orange);
  color: #1a0d00;
}
.mh-logo { flex: 0 0 auto; display: grid; place-items: center; align-self: center; }
.mh-logo-scout svg { width: 22px; height: 18px; display: block; }
.mh-logo-hvt svg { width: 22px; height: 22px; display: block; }
.mh-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-titles strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
.mh-titles small {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
}
.mh-panel { display: grid; grid-template-rows: 0fr; }
.mh-panel.is-open { grid-template-rows: 1fr; }
.mh-panel-inner { overflow: hidden; min-height: 0; }
.mh-obj {
  padding: 11px 14px 12px;
  border-top: 1px solid rgba(255,255,255,.14);
  background: #0c0e12;
}
.mh-obj-label {
  display: block;
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b919a;
}
.mh-obj p {
  margin: 0;
  color: #f4f6f8;
  font-size: .98rem;
  line-height: 1.3;
}
@media (prefers-reduced-motion: reduce) {
  .mh-panel { transition: none; }
}

/* Event one-pager */
.ge-time { margin: 0 0 6px; color: #d5d8de; font-family: var(--display); letter-spacing: .04em; }
.ge-flag { margin-left: 8px; color: var(--orange); font-weight: 700; letter-spacing: .1em; }
.ge-reward {
  background: var(--orange); color: #1a0d00;
  padding: 14px; margin: 12px 0;
}
.ge-reward h2 { margin: 0 0 6px; font-size: 1.2rem; }
.ge-reward p { margin: 0; }
.ge-kicker { letter-spacing: .12em; font-size: .72rem; font-weight: 700; margin-bottom: 8px !important; }
.ge-reward.is-bonus { background: #14161a; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.ge-reward.is-bonus h2 { color: var(--orange); }
.ge-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  padding: 8px 10px; margin: 0 0 6px;
}
.ge-ring { width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.ge-row b { font-family: var(--display); font-size: .75rem; color: #9aa0a6; }
.tl-bonus { display: block; margin-top: 4px; font-size: .58rem; letter-spacing: .08em; font-weight: 700; color: var(--orange); }

/* Loadout inspect */
button.td-slot { background: transparent; border: 0; padding: 0; color: inherit; width: 100%; }
button.td-slot.is-picked .td-face { outline: 1px solid #fff; outline-offset: 2px; }
.build-sheet { display: grid; gap: 12px; }
.slot-detail {
  border: 0;
  padding: 8px 8px 12px;
  background: transparent;
  max-width: 100%;
  overflow: hidden;
}
.sheet-wrap { max-width: 100%; margin: 0 0 12px; }
.sheet-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.sheet-title.is-named { color: #f2c14b; }
.sheet-title.is-exotic { color: #ff5a2a; }
.sheet-panel {
  background: #0c0e12;
  border: 1px solid rgba(255,255,255,.28);
  padding: 10px;
  max-width: 100%;
  overflow: hidden;
}
.sheet-hero, .sheet-spec {
  display: grid;
  grid-template-columns: 76px 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.sheet-spec { grid-template-columns: 48px 48px auto minmax(0, 1fr); }
.sheet-brand {
  position: relative;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sheet-logo { width: 52px; height: 52px; object-fit: contain; position: relative; }
.sheet-slotcol { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.sheet-slot, .sheet-talent-icon { width: 28px; height: 28px; object-fit: contain; }
.sheet-talent { color: #fff; font-size: .95rem; line-height: 1.15; }
.sheet-attrs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sheet-attrs li { display: flex; gap: 8px; align-items: flex-start; color: #f4f6f8; font-size: .86rem; min-width: 0; }
.sheet-attrs span { min-width: 0; overflow-wrap: anywhere; }
.sheet-pip { width: 16px; height: 16px; flex: 0 0 auto; }
.sheet-pip.is-off { color: #e23b3b; }
.sheet-pip.is-def { color: #3d7edb; }
.sheet-pip.is-skill { color: #e2c56a; }
.sheet-mods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; margin-top: 10px; }
.sheet-mod { min-width: 0; }
.sheet-mod small { display: block; color: #9aa0a6; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.sheet-mod strong, .sheet-mod em { display: block; overflow-wrap: anywhere; }
.sheet-mod strong { color: #fff; font-size: .78rem; }
.sheet-mod em { font-style: normal; color: #d5d8de; font-size: .74rem; }
.sheet-mod-icon { width: 18px; height: 18px; }
.sheet-ammo {
  justify-self: start;
  border: 1px solid rgba(255,255,255,.45);
  padding: 2px 6px;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.slot-detail h2 { margin: 0 0 6px; font-size: 1.35rem; }
.slot-rarity { margin: 0; color: var(--orange); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; font-weight: 700; }
.attr-line { margin: 8px 0 0; }
.attr-line span { display: block; color: #9aa0a6; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.attr-line strong { display: block; font-weight: 600; }
.attr-line i { display: block; height: 4px; margin-top: 4px; background: var(--orange); }
.build-tabs {
  display: flex;
  margin: 0;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.build-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #9aa0a6;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  padding: 8px 4px 6px;
}
.build-tabs button[aria-current="true"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.build-rail {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline: none;
}
.build-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.build-page {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}
.build-page::-webkit-scrollbar,
.build-page *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.build-page, .build-page * { scrollbar-width: none; }
.stat-sheet, .build-notes { min-width: 0; }
.stat-sheet {
  background: transparent;
  border: 0;
  padding: 4px 12px 16px;
}
.dps-board { display: grid; gap: 10px; margin: 0 0 8px; }
.dps-weapon {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 0 0 8px;
  background: transparent;
}
.dps-slot {
  margin: 0;
  color: #9aa0a6;
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dps-weapon h3 {
  margin: 1px 0 4px;
  color: #fff;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dps-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dps-pair span {
  display: block;
  color: #9aa0a6;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dps-pair strong {
  display: block;
  margin-top: 2px;
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(1.35rem, 6.4vw, 1.7rem);
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-block { margin: 0; }
.stat-block h3, .build-notes h2 {
  margin: 12px 0 0;
  padding-bottom: 4px;
  color: var(--orange);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,109,16,.45);
}
.stat-rows { list-style: none; margin: 0; padding: 0; }
.stat-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .84rem;
}
.stat-rows span { min-width: 0; color: #d5d8de; }
.stat-rows strong {
  flex: 0 0 auto;
  max-width: 58%;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body.page-resources #tab-builds.res-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#build-list:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow: auto; }
#build-detail.wrap {
  width: 100%;
  padding: 8px 0 0;
}
#build-detail:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.build-notes {
  min-height: 100%;
  padding: 12px 12px 20px;
}
.build-notes .rich-html { margin: 0; }
#detail-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 860px) {
  .build-sheet { grid-template-columns: minmax(0, 420px) minmax(220px, 1fr); align-items: start; }
}

.topbar .brand { order: 1; }
.topbar.is-build-title { padding-top: 8px; padding-bottom: 8px; }
.brand.is-build {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.brand.is-build strong,
.brand.is-build em {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand.is-build strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.05;
}
.brand.is-build em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa0a6;
  line-height: 1.1;
}
.profile-btn {
  order: 3; margin-left: auto;
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent; color: #fff;
}
.profile-btn svg { width: 22px; height: 22px; }
.topbar .upd-header-back { order: 0; margin-left: 0; margin-right: 8px; }
.signin-panel {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.62);
  display: grid; place-items: center; padding: 18px;
}
.signin-card {
  width: min(360px, 100%);
  background: #121418; border: 1px solid rgba(255,255,255,.4); padding: 16px;
}
.signin-card h2 { margin: 0 0 8px; font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
.signin-card p { margin: 0 0 14px; color: #c5cad3; }

.res-shell { flex: 1 1 auto; min-height: 0; min-width: 0; max-width: 100%; display: flex; flex-direction: column; }
.res-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 8px 8px;
}
.res-tabs button,
.res-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 36px;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent; color: #fff;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.5rem, 2.35vw, .74rem);
  letter-spacing: .02em; text-transform: uppercase;
}
@media (max-width: 420px) {
  .res-tabs { gap: 3px; padding: 8px 6px 6px; }
  .res-tabs button,
  .res-tabs a { font-size: .58rem; letter-spacing: 0; padding: 0 1px; }
}
.res-tabs a {
  border-radius: 0;
  text-decoration: none;
}
.res-tabs a svg { width: 10px; height: 10px; flex: 0 0 auto; }
.mut-label {
  margin: 14px 2px 8px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b919a;
}
.mut-item {
  margin: 0 0 8px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.4);
  background: #101114;
}
.mut-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.mut-item.is-open .mut-row { background: var(--orange); color: #1a0d00; }
.mut-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}
.mut-item.is-open .mut-row img { filter: brightness(0); }
.mut-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1rem;
}
.mut-panel { display: none; padding: 10px 12px 12px; color: #e8eaee; font-size: .92rem; line-height: 1.35; }
.mut-item.is-open .mut-panel { display: block; }
.mut-panel p { margin: 0; }
.mut-line { margin: 10px 0 0; }
.mut-line b {
  display: block;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
}
.mut-line span { display: block; color: #c5cad3; }
.mut-line.tint-red b { color: #ff6b6b; }
.mut-line.tint-blue b { color: #7ecbff; }
.mut-line.tint-yellow b { color: #ffd15a; }
.res-tabs a:hover { text-decoration: none; color: #fff; }
.res-tabs button[aria-selected="true"] {
  background: var(--orange); border-color: var(--orange); color: #1a0d00;
}
.res-panel[hidden] { display: none !important; }
body.page-resources { display: flex; flex-direction: column; }
body.page-resources.is-grid .res-shell,
body.page-resources.is-grid #tab-builds { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.page-resources.is-grid #cat-stage,
body.page-resources #tab-builds:not([hidden]) #cat-stage:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
body.page-resources .res-panel:not([hidden]) { flex: 1 1 auto; min-height: 0; min-width: 0; max-width: 100%; overflow: auto; }
body.page-resources.is-grid #tab-builds,
body.page-resources #tab-builds:not([hidden]) { overflow: hidden; }
body.page-loot .res-shell { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.page-loot .res-panel:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
body.page-loot #tab-loot:not([hidden]) { overflow: hidden; }
body.page-loot #tab-loot:not([hidden]) .loot-screen { flex: 1 1 auto; min-height: 0; }
.map-sec {
  margin: 14px 0 8px;
  font-family: var(--display); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
}
.map-link {
  display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 2px 10px;
  margin: 0 0 8px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.35);
  color: inherit; text-decoration: none;
}
.map-link strong { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
.map-link span, .map-link small { grid-column: 1; color: #9aa0a6; font-size: .82rem; }
.map-link svg { grid-row: 1; grid-column: 2; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.season-banner {
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 108px; margin: 0 0 8px; padding: 14px 16px;
  background: #14161a center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff; text-decoration: none; overflow: hidden;
}
.season-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.28));
}
.season-banner span, .season-banner strong { position: relative; }
.season-banner span {
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.season-banner strong {
  font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1; font-weight: 700;
}
body.page-events .hero-slide {
  flex: 0 0 78%;
  width: 78%;
  height: auto;
  align-self: stretch;
  scroll-snap-align: center;
}
body.page-events .tl-card {
  height: auto; aspect-ratio: 4 / 5; max-height: calc(100dvh - 250px);
}
body.page-events .tl-art {
  min-height: 0;
  background: radial-gradient(circle at 50% 58%, #2c313a, #0c0d10 72%);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px 12px 0;
}
.tl-emblem-img {
  width: min(46%, 168px);
  height: auto;
  margin: auto;
  display: block;
  align-self: center;
}
.tl-art.has-card { overflow: hidden; }
.tl-card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 78%;
  z-index: 0;
}
.tl-art.has-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 38%, rgba(0,0,0,.28) 100%);
  z-index: 1;
  pointer-events: none;
}
.tl-art.has-card .tl-tag,
.tl-art.has-card .tl-ticker {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}
.art-label {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}
.art-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}
.art-thumb {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  background: #101114;
  overflow: hidden;
  text-align: center;
}
.art-thumb.is-on { outline: 2px solid var(--orange); outline-offset: 1px; }
.art-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.art-thumb span {
  display: block;
  padding: 5px 4px 6px;
  color: #d5d8de;
  font-family: var(--font);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}
.tl-tag.is-live { background: var(--orange); color: #1a0d00; }
.tl-tag.is-soon { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.tl-tag.is-ended { background: #3a3f48; color: #d5d8de; }
.tl-ticker {
  display: block;
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 1.05rem;
  color: #fff;
}
.tl-card.is-selected .tl-foot,
.tl-card.is-selected .tl-foot.is-hot {
  background: var(--orange);
  color: #fff;
}
.tl-card.is-selected .tl-kind,
.tl-card.is-selected .tl-foot strong { color: #fff; }
.tl-foot { background: #14161a; }
.ev-page { padding-bottom: 12px; }
.ev-status-row { margin: 0; }
.event-detail .ev-ticker {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
}
.ev-dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ev-date {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.55);
  padding: 6px 10px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .03em;
}
.ev-date b {
  color: var(--orange);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.event-detail .ev-cat {
  margin: 0 0 4px;
  color: var(--orange);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .95rem;
}
.ev-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: .95;
  letter-spacing: 0;
  text-transform: none;
}
.ev-buffs { margin: 10px 0 14px; }
.event-detail .ev-buff {
  margin: 0 0 2px;
  color: #67f0ff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: .01em;
  line-height: 1.2;
}
.event-detail .ev-note,
.event-detail .ev-copy,
.event-detail .ev-rules p { margin: 0 0 8px; color: #f2f4f7; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.ev-rules { margin-top: 8px; }
body.page-events.is-event-detail .event-detail { padding-top: 8px; }

.upd-entry {
  background: #121418;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 0;
  box-shadow: none;
}
.upd-entry h2 {
  font-family: var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .95rem;
}
.upd-detail-head {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 8px;
}
.upd-detail-head h1 { margin: 0; min-width: 0; }
.upd-detail-head .upd-ico { width: 42px; height: 42px; }
.upd-ico {
  width: 46px; height: 46px;
  border-radius: 10px !important;
  border: 0;
  background: var(--orange) !important;
  color: #fff;
}
.upd-thumb {
  width: 56px; height: 42px; object-fit: cover; display: block;
  border: 1px solid rgba(255,255,255,.28);
}
.upd-entry:has(.upd-thumb) { grid-template-columns: minmax(0, 1fr) 56px auto; }
.upd-source { margin: 16px 0 0; }
.upd-source a { color: var(--orange); font-weight: 700; }
.upd-ico.announcement,
.upd-ico.reminder,
.upd-ico.maintenance,
.upd-ico.patch { color: #fff; background: var(--orange) !important; }
.upd-ico svg { width: 22px; height: 22px; }
.upd-pill {
  border-radius: 0; background: transparent; color: #d5d8de;
  border: 1px solid rgba(255,255,255,.35);
}

body.page-chat {
  height: 100dvh; overflow: hidden; display: flex; flex-direction: column;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
body.page-chat .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; flex: none; }
.chat-screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 8px 12px 8px; }
.chat-note { margin: 0 0 8px; color: #9aa0a6; font-size: .75rem; letter-spacing: .04em; }
.chat-log { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { align-self: flex-start; max-width: 85%; background: #14161a; border: 1px solid rgba(255,255,255,.28); padding: 8px 10px; }
.chat-msg.is-mine { align-self: flex-end; border-color: var(--orange); }
.chat-msg header { display: flex; gap: 8px; align-items: baseline; }
.chat-msg strong { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.chat-msg time { color: #9aa0a6; font-size: .68rem; }
.chat-msg p { margin: 4px 0 0; }
.chat-msg.is-mine strong { color: var(--orange); }
.chat-form { flex: 0 0 auto; display: flex; gap: 8px; margin-top: 8px; }
.chat-form[hidden], .chat-note[hidden] { display: none !important; }
.chat-form input { flex: 1; background: #101114; border: 1px solid rgba(255,255,255,.35); padding: 10px 12px; }
.chat-form button {
  background: var(--orange); color: #1a0d00; border: 0; padding: 0 14px;
  font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.rich-html { color: #e6e8ee; line-height: 1.45; }
.rich-html h2, .rich-html h3 {
  font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
}
.rich-html a { color: var(--orange); }
.rich-html img { max-width: 100%; margin: 8px 0; border: 1px solid rgba(255,255,255,.35); }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.acct-tabs button { min-height: 36px; border: 1px solid rgba(255,255,255,.4); background: transparent; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; }
.acct-tabs button[aria-selected="true"] { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.signin-card label { display: grid; gap: 4px; margin: 0 0 10px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.signin-card input { width: 100%; background: #101318; border: 1px solid rgba(255,255,255,.28); padding: 10px 12px; }

/* Desktop admin */
body.page-admin {
  min-width: 1180px;
  padding-bottom: 28px;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255,109,16,.14), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 72px);
}
body.page-admin .bottom-nav, body.page-admin .profile-btn { display: none; }
.desk-top {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 12px 28px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  background: rgba(7,8,10,.92);
}
.desk-kicker {
  font-family: var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); font-weight: 700;
}
.desk-top .admin-btn { margin-left: auto; }
.desk { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 40px; }
body.page-admin [hidden] { display: none !important; }
.desk-login { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.desk-card, .desk-form, .desk-row, .ba-editor, .desk-sheet {
  background: #101114; border: 1px solid rgba(255,255,255,.4);
}
.desk-card { width: min(440px, 100%); padding: 22px; }
.desk-card label { display: grid; gap: 6px; margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa0a6; }
.desk-card input { width: 100%; background: #0c0d10; border: 1px solid rgba(255,255,255,.35); padding: 10px 12px; }
.desk-card .admin-btn { margin-top: 4px; }
.desk-card h1, .desk h1 {
  font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; margin-top: 0;
}
.desk-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.desk-action {
  position: relative;
  min-height: 140px; border: 1px solid rgba(255,255,255,.55); background: #101114; color: #fff;
  font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.desk-pending {
  position: absolute; top: 12px; right: 12px;
  background: var(--orange); color: #1a0d00;
  font-size: .68rem; letter-spacing: .08em; padding: 3px 7px;
}
.member-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin: 0 0 16px; }
.member-tools label { display: grid; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa0a6; }
.member-tools input { min-width: min(360px, 100%); background: #0c0d10; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 10px 12px; }
.member-filters { display: flex; gap: 8px; }
.member-filters button {
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px;
}
.member-filters button[aria-pressed="true"] { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.member-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr) auto;
  gap: 12px; align-items: center; padding: 14px; margin: 0 0 8px;
  background: #101114; border: 1px solid rgba(255,255,255,.4);
}
.member-row strong { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
.member-row small { display: block; color: #9aa0a6; }
.member-id { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member-badge {
  font-family: var(--display); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; border: 1px solid rgba(255,255,255,.4);
}
.member-badge.is-pending { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.member-badge.is-admin { color: var(--orange); border-color: var(--orange); }
.member-approve { display: flex; gap: 8px; align-items: center; margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; color: #fff; }
.member-approve input:disabled { opacity: .45; }
.clan-lock {
  margin: auto; max-width: 440px; padding: 32px 20px; text-align: center;
  border: 1px solid rgba(255,255,255,.45); background: #101114;
}
.clan-lock-kicker {
  margin: 0 0 10px; font-family: var(--display); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-size: 1.15rem;
}
.clan-lock p { margin: 0; color: #f5f5f5; }
.clan-lock .admin-btn { margin-top: 18px; }
.clan-lock.is-inline { margin: 0; max-width: none; text-align: left; padding: 16px; }
.chat-log .clan-lock { margin-top: 12vh; }
.desk-action:hover, .desk-action:focus-visible { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.desk-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.desk-lists h2 {
  font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-size: .85rem;
}
.desk-row { display: grid; gap: 4px; padding: 12px; margin: 0 0 8px; }
.desk-row strong { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
.desk-row small { color: #9aa0a6; }
.desk-row-actions { display: flex; gap: 8px; }
.desk-row-actions button {
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px;
}
.desk-form { padding: 18px; display: grid; gap: 8px; }
#update-image-preview {
  width: min(100%, 360px); max-height: 180px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.35);
}
.desk-form label, .ba-editor label, .ba-top label, .ba-meta label {
  display: grid; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa0a6;
}
.desk-form input, .desk-form select, .ba-editor input, .ba-editor select, .ba-top select, .ba-meta input, .ba-meta select {
  width: 100%; background: #0c0d10; border: 1px solid rgba(255,255,255,.35); padding: 10px 12px; color: #fff;
}
.desk-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.desk-back { margin: 0 0 8px; }
.desk-modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.72);
  display: grid; place-items: center; padding: 24px;
}
.desk-modal[hidden] { display: none !important; }
.desk-sheet { width: min(880px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 18px; position: relative; }
.desk-x {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 1.3rem;
}
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: rgba(255,255,255,.35) !important; border-radius: 0 !important; }
.ql-toolbar.ql-snow { background: #14161a; }
.ql-container.ql-snow { background: #0c0d10; color: #fff; min-height: 140px; font-family: var(--font); }
.ql-snow .ql-stroke { stroke: #d5d8de; }
.ql-snow .ql-fill { fill: #d5d8de; }
.ql-snow .ql-picker { color: #d5d8de; }
.ql-editor.ql-blank::before { color: #6e7480; }

.ba-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ba-check { align-content: end; text-transform: none; letter-spacing: 0; font-size: .9rem; color: #fff; }
.ba-root { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ba-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-column: 1; }
.ba-board { grid-column: 1; display: grid; gap: 10px; }
.ba-editor { grid-column: 2; grid-row: 1 / span 2; padding: 14px; position: sticky; top: 16px; }
.ba-row { display: grid; gap: 10px; }
.ba-row-3 { grid-template-columns: repeat(3, 1fr); }
.ba-row-2 { grid-template-columns: repeat(3, 1fr); }
.ba-tile, .ba-pick {
  min-height: 92px; padding: 8px; text-align: left; border: 1px solid rgba(255,255,255,.35); color: #1a1408; cursor: pointer;
}
.ba-tile strong, .ba-pick strong { display: block; font-family: var(--display); letter-spacing: .03em; text-transform: uppercase; font-size: .92rem; }
.ba-slot, .ba-pick small { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.ba-tile.rarity-empty { background: #12151a; color: #d5d8de; }
.ba-tile.rarity-gearset, .ba-pick.rarity-gearset { background: linear-gradient(180deg, #3ddc84, #0d7a45); }
.ba-tile.rarity-exotic, .ba-pick.rarity-exotic { background: linear-gradient(180deg, #ff8a4a, #c2410c); color: #1a0d00; }
.ba-tile.rarity-named, .ba-tile.rarity-gold, .ba-pick.rarity-named, .ba-pick.rarity-gold { background: linear-gradient(180deg, #f2c14b, #c49220); }
.ba-tile.is-picked { outline: 2px solid #fff; outline-offset: 2px; }
.ba-mark { width: 28px; height: 28px; object-fit: contain; display: block; margin: 0 0 6px; filter: brightness(0); }
.ba-tile.rarity-empty .ba-mark { filter: none; }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ba-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ba-chip { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; padding: 6px 10px; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ba-chip.is-on { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.ba-attr { display: grid; grid-template-columns: 1.4fr .6fr auto auto; gap: 6px; align-items: center; margin: 0 0 6px; }
.ba-attr button { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.ba-sheet { width: min(980px, 100%); }
.attendance-box { margin-top: 14px; border: 1px solid rgba(255,255,255,.35); padding: 12px; background: #101114; }
.attendance-actions { display: flex; gap: 8px; margin: 8px 0; }
.attendance-actions button[aria-pressed="true"] { background: var(--orange); color: #1a0d00; border-color: var(--orange); }

/* Shade Hub Builder */
.bb-root { display: grid; gap: 16px; }
.bb-meta, .bb-panel {
  background: #101318;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,109,16,.16);
  padding: 14px 16px;
}
.bb-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
#bb-playstyle-help { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .78rem; color: #b7bcc4; line-height: 1.35; }
.bb-meta .admin-row, .bb-meta .admin-status, .bb-meta .bb-kicker,
.bb-meta .bb-notes-label, .bb-meta .rich-editor, .bb-meta .ql-toolbar, .bb-meta .ql-container { grid-column: 1 / -1; }
.bb-kicker {
  margin: 0 0 8px;
  font-family: var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  font-size: .72rem;
}
.bb-columns { display: grid; grid-template-columns: minmax(300px, 340px) minmax(420px, 1fr) minmax(300px, 340px); gap: 16px; align-items: start; }
.bb-panel { min-height: 240px; }
.bb-panel h3, .bb-panel h4 {
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 12px 0 8px;
}
.bb-slot-row { display: grid; gap: 8px; margin: 0 0 8px; }
.bb-slot-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-slot-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-tile, .bb-pick {
  display: grid; gap: 2px; align-content: start;
  min-height: 72px; padding: 8px; text-align: left;
  border: 1px solid rgba(255,255,255,.2); color: #1a0d00;
}
.bb-tile.bb-gear,
.bb-tile.bb-skill {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
}
.bb-tile.bb-skill .bb-logo { width: 32px; height: 32px; }
.bb-tile-copy { display: grid; gap: 2px; min-width: 0; }
.bb-tile-art { width: 36px; height: 36px; flex: 0 0 auto; }
.bb-pick {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
}
.bb-pick-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bb-logo { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; filter: brightness(0); }
.bb-logo.is-color { filter: none; background: #1a1208; border-radius: 4px; padding: 3px; }
.bb-tile-grenade { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; background: none; padding: 0; }
.bb-tile span, .bb-pick small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.bb-tile strong, .bb-pick strong { font-family: var(--display); letter-spacing: .03em; text-transform: uppercase; font-size: .78rem; line-height: 1.15; overflow-wrap: anywhere; }
.bb-tile.rarity-empty { background: #12151a; color: #d5d8de; }
.bb-tile.rarity-gearset, .bb-pick.rarity-gearset { background: linear-gradient(180deg, #3ddc84, #0d7a45); }
.bb-tile.rarity-exotic, .bb-pick.rarity-exotic { background: linear-gradient(180deg, #ff8a4a, #c2410c); }
.bb-tile.rarity-gold, .bb-pick.rarity-gold { background: linear-gradient(180deg, #f2c14b, #c49220); }
.bb-tile.rarity-named, .bb-pick.rarity-named { background: linear-gradient(180deg, #f6d36b, #b8860b); }
.bb-tile.is-on { outline: 2px solid #fff; outline-offset: 2px; }
.bb-proto { font-style: normal; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.bb-editor label, .bb-stats label, .bb-meta label, .bb-notes-label {
  display: grid; gap: 6px; margin: 0 0 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa0a6;
}
.bb-mod { position: relative; display: grid; gap: 6px; margin: 0 0 10px; }
.bb-mod > span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa0a6; }
.bb-mod-btn, .bb-mod-menu button {
  width: 100%; text-align: left; background: #0c0d10; color: #f5f5f5;
  border: 1px solid rgba(255,255,255,.35); padding: 8px 10px;
  font: inherit; font-weight: 500; letter-spacing: 0; text-transform: none;
  line-height: 1.35; white-space: normal;
}
.bb-mod-menu {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  max-height: 280px; overflow: auto; margin: 4px 0 0; padding: 4px;
  list-style: none; background: #14171c; border: 1px solid rgba(255,255,255,.35);
}
.bb-mod-menu button { border-color: transparent; background: transparent; }
.bb-mod-menu button:hover, .bb-mod-menu button.is-on { background: rgba(255,109,16,.28); color: #fff; }
.bb-mod-menu button:disabled { color: #9aa0a6; }
.bb-editor input, .bb-editor select, .bb-stats select, .bb-meta input, .bb-meta select, .bb-notes-label textarea, .bb-share textarea, .bb-sheet input {
  width: 100%; background: #0c0d10; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 8px 10px;
  font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; color-scheme: dark;
}
.bb-editor label.bb-check, .bb-meta label.bb-check, .bc-wrap label.bb-check { text-transform: none; letter-spacing: 0; font-size: .9rem; color: #fff; display: flex; flex-direction: row; gap: 8px; align-items: center; font-weight: 600; }
.bb-tabs { display: flex; gap: 8px; }
.bc-wrap { display: grid; gap: 14px; }
.bc-block h3 { margin: 0 0 8px; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); font-size: .95rem; }
.bc-talents { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bc-talent { border: 1px solid rgba(255,255,255,.16); padding: 10px; background: #0c0d10; }
.bc-talent p { margin: 6px 0 0; color: #9aa0a6; }
.bc-slide { display: grid; gap: 4px; margin-top: 8px; color: #d5d8de; text-transform: none; letter-spacing: 0; font-weight: 600; }
.bc-slide span { display: flex; justify-content: space-between; }
.bc-slide input { accent-color: var(--orange); width: 100%; }
.bc-weapon, .bc-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.bc-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bc-weapon div, .bc-stats div { display: grid; gap: 2px; }
.bc-weapon dt, .bc-stats dt { color: #9aa0a6; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.bc-weapon dd, .bc-stats dd { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.bc-table { display: grid; grid-template-columns: 120px repeat(4, minmax(0, 1fr)); gap: 6px 10px; align-items: center; }
.bc-table div { font-family: var(--display); }
.bc-hits { grid-template-columns: 140px 1fr 1fr; }
.bb-slide { margin: 0 0 12px; }
.bb-slide span { display: flex; justify-content: space-between; gap: 8px; color: #d5d8de; text-transform: none; letter-spacing: 0; font-weight: 600; }
.bb-slide-row { display: flex; align-items: center; gap: 8px; }
.bb-slide-row input[type="range"] { flex: 1; min-width: 0; }
.bb-slide input[type="range"] { accent-color: var(--orange); width: 100%; padding: 0; }
.bb-max {
  flex: 0 0 auto; width: 40px; height: 28px; padding: 0;
  border: 1px solid rgba(255,255,255,.4); background: #0c0d10; color: #f5f5f5;
  font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .04em;
}
.bb-max.is-on { background: var(--orange); border-color: var(--orange); color: #1a0d00; }
.bb-switch {
  display: inline-flex !important; flex-direction: row; align-items: center; gap: 8px;
  width: auto; margin: 0 0 12px;
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: .95rem !important; color: #fff !important; font-weight: 700;
}
.bb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bb-switch i {
  width: 36px; height: 20px; border-radius: 999px; position: relative; display: inline-block;
  background: #2a2e36; border: 1px solid rgba(255,255,255,.35);
}
.bb-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #d5d8de; transition: transform .15s ease;
}
.bb-switch input:checked + i { background: var(--orange); border-color: var(--orange); }
.bb-switch input:checked + i::after { transform: translateX(16px); background: #1a0d00; }
.bb-switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.bb-slide small, .bb-flag { text-transform: none; letter-spacing: 0; font-weight: 500; color: #c8ccd4; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bb-chip { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; padding: 6px 10px; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; }
.bb-chip.is-on { background: var(--orange); color: #1a0d00; border-color: var(--orange); }
.bb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bb-stat { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bb-stat li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); padding: 4px 0; }
.bb-stat span { color: #c8ccd4; }
.bb-stat strong { font-family: var(--display); letter-spacing: .03em; text-align: right; }
.bb-share textarea { min-height: 140px; font-size: .72rem; }
.bb-sheet { width: min(980px, 100%); }
.bb-notes { margin: 8px 0 0; color: #d5d8de; }
.bb-stats { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
body.page-builder { min-width: 1180px; background: #0b0d10; }
body.page-builder .desk { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 40px; }
