/* ============================================
   ECHOBORN — Warframe Clan Site
   Dark / Gold theme
   ============================================ */

:root {
  --bg: #07070b;
  --bg-alt: #0d0d14;
  --panel: #12121b;
  --panel-border: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-bright: #f4d97a;
  --gold-dim: #9a7c2c;
  --text: #e7e6e2;
  --text-dim: #9a9aa3;
  --font-head: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --max-width: 1440px;
}

/* ── Color themes (Operator+ perk) ─────────────────────── */
[data-theme="silver"] {
  --gold: #b8b5ac;
  --gold-bright: #d4d1c8;
  --gold-dim: #7e7b74;
  --panel-border: rgba(184,181,172,0.18);
}
[data-theme="corpus"] {
  --gold: #4ab0cc;
  --gold-bright: #6ccce8;
  --gold-dim: #2a8099;
  --panel-border: rgba(74,176,204,0.18);
}
[data-theme="grineer"] {
  --gold: #d45c18;
  --gold-bright: #f07840;
  --gold-dim: #9a3e0e;
  --panel-border: rgba(212,92,24,0.18);
}
[data-theme="void"] {
  --gold: #8866d8;
  --gold-bright: #aa88f5;
  --gold-dim: #5c44a0;
  --panel-border: rgba(136,102,216,0.18);
}
[data-theme="steel"] {
  --gold: #7898b0;
  --gold-bright: #98b8cc;
  --gold-dim: #507088;
  --panel-border: rgba(120,152,176,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-bright); }

::selection { background: var(--gold-dim); color: #000; }

/* ============ Section heads ============ */
.section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  padding: 0 1.5rem;
}

.section-kicker {
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: clamp(0.72rem, 0.66rem + 0.18vw, 0.85rem);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  /* Fluid: grows through laptop → hi-res instead of freezing at 2.8rem */
  font-size: clamp(1.9rem, 0.9rem + 2.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-desc {
  color: var(--text-dim);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.28rem);
  font-weight: 300;
  line-height: 1.65;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all 0.25s ease;
  position: relative;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0f;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #000;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
  color: var(--gold-bright);
}

.btn-large {
  /* Fluid: smaller on phones/tablets, gently capped on MacBook / hi-res displays */
  padding: clamp(0.7rem, 0.5rem + 0.5vw, 1rem) clamp(1.6rem, 1rem + 2.5vw, 2.8rem);
  font-size: clamp(0.76rem, 0.66rem + 0.35vw, 0.9rem);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* ============ Header / Nav ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 7, 11, 0.55);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--panel-border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  transition: padding 0.3s ease;
}

/* Shrink-on-scroll is a DESKTOP-only effect (>860px). On mobile the bar keeps a
   constant height, so the address-bar show/hide near the scroll threshold can't
   make it flicker or jump, and the fullscreen menu text never shrinks. */
@media (min-width: 861px) {
  .site-header.scrolled .nav-wrap {
    padding: 0.4rem 1.5rem;
  }
  .site-header.scrolled .logo {
    font-size: 1rem;
  }
  .site-header.scrolled .nav-links a {
    font-size: 0.68rem;
  }
  .site-header.scrolled .nav-login {
    padding: 4px 12px !important;
  }
}

.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: font-size 0.3s ease;
}

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: font-size 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--gold-bright);
}

.nav-login {
  border: 1px solid var(--gold);
  padding: 6px 14px !important;
  border-radius: 2px;
  transition: padding 0.3s ease;
}

.nav-login:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

/* Officer-only entry point to the EchoBorn CMS. */
.nav-cms {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 5px 11px !important;
  transition: background .25s, color .25s;
}

.nav-cms:hover,
.nav-cms.active {
  background: var(--gold);
  color: var(--bg) !important;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.nav-baro {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .3s, text-shadow .3s;
}

.nav-baro--here {
  color: var(--gold-bright) !important;
  text-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.nav-baro-time {
  font-family: var(--font-head);
  font-size: .6rem;
  letter-spacing: .05em;
  color: var(--gold);
}

.nav-stream {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .3s, text-shadow .3s;
}

.nav-stream--live {
  color: var(--gold-bright) !important;
  text-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.nav-stream-status {
  font-family: var(--font-head);
  font-size: .6rem;
  letter-spacing: .05em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-stream-status--live {
  color: #ff4757;
  animation: stream-live-pulse 1.6s ease-in-out infinite;
}

@keyframes stream-live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
}

/* ── Generic cinematic background crossfade (reusable across pages) ── */
.cinematic-bg { position: absolute; inset: 0; }

.cinematic-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-color: var(--bg-alt);
  opacity: 0;
  transition: opacity 2.5s ease;
}

.cinematic-bg-layer.active {
  opacity: 1;
  animation: cinematic-kenburns 9s ease-in-out forwards;
}

@keyframes cinematic-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero .cinematic-bg-layer {
  filter: saturate(0.85) brightness(0.55);
}

.hero .cinematic-bg-layer:first-child {
  background-image: url('/Images/hero-railjack.png');
}

@media (max-width: 720px) {
  .hero .cinematic-bg-layer:first-child {
    background-image: url('/Images/dojo-orb.png') !important;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,11,0.35) 0%, rgba(7,7,11,0.55) 55%, rgba(7,7,11,0.98) 100%),
    radial-gradient(ellipse at center, rgba(7,7,11,0.1) 0%, rgba(7,7,11,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: min(1100px, 92vw);
  overflow: visible;
  padding: 0 1.5rem;
}

.hero-kicker {
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  animation: flicker 4s infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: visible;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
  margin-bottom: 1.2rem;
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); white-space: normal; }
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero live status bar */
.hero-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  background: rgba(7, 7, 11, 0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--panel-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-status::-webkit-scrollbar { display: none; }

.hero-status-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hs-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.5rem;
  border-right: 1px solid var(--panel-border);
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 9.5rem;
}

.hs-item:last-child { border-right: none; }

.hs-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-icon svg { width: 100%; height: 100%; }

.hs-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hs-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hs-value {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  text-align: center;
  min-width: 7rem;
}

.hs-value.loading {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 300;
  font-family: var(--font-body);
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.5; }
  97% { opacity: 1; }
}

/* ============ Focus Areas ============ */
.focus {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Fluid vertical air (more breathing room on big screens) + fluid gutters */
  padding: clamp(5rem, 6vw, 9rem) clamp(1.5rem, 3vw, 3rem);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 1.6vw, 2rem);
}

.focus-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 168, 75, 0.5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.focus-img {
  height: clamp(170px, 13vw, 220px);
  background-size: cover;
  background-position: center;
  position: relative;
}

.focus-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--panel) 100%);
}

.focus-body {
  padding: 1.4rem 1.5rem 1.8rem;
}

.focus-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.focus-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Homepage feature grid — deliberate, balanced columns (never auto-fit 3+1) */
.home-features .focus-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .home-features .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .home-features .focus-grid { grid-template-columns: 1fr; } }
/* card title white, gold reserved for the link (restraint) */
.home-features .focus-body h3 { color: var(--text); }

/* ── Clan page "What We Run" — bigger, punchier 2-col cards ── */
#focus .focus-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

#focus .focus-img {
  height: 300px;
  overflow: hidden;
  transition: transform 0.6s ease;
}

#focus .focus-card:hover .focus-img {
  transform: scale(1.06);
}

#focus .focus-card:hover {
  border-color: var(--panel-border);
}

#focus .focus-body {
  padding: 1.6rem 1.7rem 2rem;
}

#focus .focus-body h3 {
  font-size: 1.25rem;
}

#focus .focus-body p {
  font-size: 1rem;
}

@media (max-width: 900px) {
  #focus .focus-grid { grid-template-columns: 1fr; }
  #focus .focus-img { height: 260px; }
}

@media (max-width: 480px) {
  #focus .focus-img { height: 220px; }
  #focus .focus-body { padding: 1.3rem 1.4rem 1.6rem; }
}

.focus-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.focus-card:hover .focus-link {
  opacity: 1;
  color: var(--gold-bright);
}

/* ============ Market ticker (home) ============ */
.market-ticker {
  position: relative;
  background: rgba(7, 7, 11, 0.9);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
}

.market-ticker-track {
  display: inline-flex;
  align-items: center;
  animation: market-scroll 38s linear infinite;
  will-change: transform;
}

.market-ticker:hover .market-ticker-track {
  animation-play-state: paused;
}

.market-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-right: 1px solid var(--panel-border);
}

.market-ticker-plat {
  color: var(--gold-bright);
  font-weight: 700;
}

@keyframes market-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Home pitch (3-pillar explainer) ============ */
.home-pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home-pitch-item {
  text-align: center;
  padding: 1.5rem;
}

.home-pitch-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
}

.home-pitch-icon svg {
  width: 100%;
  height: 100%;
}

.home-pitch-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.home-pitch-item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .home-pitch-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============ Scroll reveal ============ */
.scroll-reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.home-pitch-grid .scroll-reveal-item:nth-child(2) { transition-delay: .12s; }
.home-pitch-grid .scroll-reveal-item:nth-child(3) { transition-delay: .24s; }
.focus-grid .scroll-reveal-item:nth-child(2) { transition-delay: .08s; }
.focus-grid .scroll-reveal-item:nth-child(3) { transition-delay: .16s; }
.focus-grid .scroll-reveal-item:nth-child(4) { transition-delay: .24s; }
.patreon-tiers .scroll-reveal-item:nth-child(2) { transition-delay: .1s; }
.patreon-tiers .scroll-reveal-item:nth-child(3) { transition-delay: .2s; }
.network-grid .scroll-reveal-item:nth-child(2) { transition-delay: .06s; }
.network-grid .scroll-reveal-item:nth-child(3) { transition-delay: .12s; }
.network-grid .scroll-reveal-item:nth-child(4) { transition-delay: .18s; }
.network-grid .scroll-reveal-item:nth-child(5) { transition-delay: .24s; }
.network-grid .scroll-reveal-item:nth-child(6) { transition-delay: .3s; }

/* ============ Network — operative dossiers ============ */
.page-content--top { justify-content: flex-start; padding-top: 6.5rem; padding-bottom: 4rem; }
.network-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.net-masthead {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.6rem;
  margin-bottom: 2.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--panel-border);
}
.net-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--text); margin: 0.4rem 0 0.6rem; letter-spacing: 0.01em; }
.net-desc { color: var(--text-dim); font-size: 1rem; font-weight: 300; max-width: 560px; margin: 0; line-height: 1.6; }
.net-stats { display: flex; gap: 1.8rem; }
.net-stat { text-align: center; white-space: nowrap; }
.net-stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-bright); line-height: 1; margin-bottom: 0.25rem; }
.net-stat span { font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.net-empty { text-align: center; color: var(--text-dim); margin-top: 2rem; }

/* Roster filter / sort toolbar */
.net-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.net-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.net-chip {
  font-family: var(--font-head); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px;
  padding: 0.42rem 0.9rem; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.net-chip:hover { color: var(--text); border-color: rgba(212, 175, 55, 0.4); }
.net-chip.active { background: var(--gold); color: #0a0a0f; border-color: var(--gold); font-weight: 700; }
.net-toolbar-right { display: flex; align-items: center; gap: 0.8rem; }
.net-search {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px;
  padding: 0.45rem 0.95rem; color: var(--text); font-family: var(--font-body); font-size: 0.85rem; width: 190px;
}
.net-search:focus { outline: none; border-color: var(--gold); }
.net-sort { display: inline-flex; gap: 0.2rem; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 0.18rem; }
.net-sort button {
  font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); background: none; border: none; border-radius: 16px; padding: 0.32rem 0.7rem; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.net-sort button:hover { color: var(--text); }
.net-sort button.active { background: var(--gold); color: #0a0a0f; font-weight: 700; }
.net-no-results { text-align: center; color: var(--text-dim); font-style: italic; margin: 1rem 0; }

@media (max-width: 640px) {
  .net-toolbar { flex-direction: column; align-items: stretch; }
  .net-toolbar-right { justify-content: space-between; }
  .net-search { flex: 1; width: auto; }
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.network-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent 55%), var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.6rem 1.5rem 1.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.network-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--tier-accent); opacity: 0.9;
}
.network-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.net-card-index {
  position: absolute; top: 0.95rem; right: 1.1rem;
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-dim); opacity: 0.4;
}

.network-card-head {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--panel-border);
}
.network-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  border: 2px solid var(--tier-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 0 16px -3px var(--tier-accent);
}
.network-card-id { min-width: 0; }
.network-name { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: 0.02em; color: var(--text); margin: 0 0 0.5rem; }
.network-tags { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.network-tags .patron-badge { margin: 0; }
.network-platform {
  font-family: var(--font-head); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--panel-border); border-radius: 20px; padding: 0.2rem 0.55rem;
}

.network-card-body { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; }
.network-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.86rem; }
.network-row span:first-child { color: var(--muted); font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.network-row span:last-child { color: var(--text); text-align: right; }
.network-row .net-mr { color: var(--gold-bright); font-family: var(--font-head); }

.network-joined {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
  font-family: var(--font-head); margin: 0; padding-top: 0.95rem; border-top: 1px solid var(--panel-border);
}

/* Operator+ members showcase their chosen profile-card background on the roster. */
.network-card-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.62) saturate(0.95);
}
.network-card-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8, 8, 13, 0.4) 0%, rgba(8, 8, 13, 0.72) 62%, rgba(8, 8, 13, 0.93) 100%);
}
.network-card.has-bg::before { z-index: 2; }
.network-card.has-bg > :not(.network-card-bg):not(.network-card-scrim) { position: relative; z-index: 1; }
.network-card.has-bg .network-name,
.network-card.has-bg .network-row span:last-child { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85); }
.network-card.has-bg .network-card-head { border-bottom-color: rgba(255, 255, 255, 0.14); }
.network-card.has-bg .network-joined { border-top-color: rgba(255, 255, 255, 0.14); }

/* Warlord-exclusive backgrounds — locked preview for Operator-tier members. */
.bg-option--locked { position: relative; cursor: not-allowed; }
.bg-option--locked .bg-label { display: none; }
.bg-option--locked::after {
  content: '\1F451 WARLORD';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 0.56rem; letter-spacing: 0.08em; color: #e8940a;
  background: rgba(6, 6, 11, 0.74); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  border-radius: inherit;
}

/* ===== Staff / team role badge — IDENTICAL box model to .patron-badge (so it
   never shifts the layout), just steel (role/authority) instead of gold (paid tier) ===== */
.staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(108, 204, 232, 0.12);
  color: #6ccce8;
  border: 1px solid rgba(108, 204, 232, 0.4);
}
.staff-badge--founder {
  border-color: rgba(108, 204, 232, 0.55);
  box-shadow: 0 0 12px rgba(108, 204, 232, 0.2);
}

/* ===== Operative-card popover (comment avatars: hover desktop / tap mobile) ===== */
.uc-trigger { cursor: pointer; }
.user-card-pop {
  position: fixed; z-index: 200; width: 250px; max-width: calc(100vw - 16px);
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); overflow: hidden; animation: ucfade 0.12s ease;
}
@keyframes ucfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.uc { position: relative; padding: 1rem; }
.uc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tier-accent); z-index: 2; }
.uc-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: brightness(0.5) saturate(0.95); }
.uc-scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(8, 8, 13, 0.5) 0%, rgba(8, 8, 13, 0.9) 100%); }
.uc-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; }
.uc-avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--tier-accent); object-fit: cover; flex-shrink: 0; }
.uc-id { min-width: 0; }
.uc-name { font-family: var(--font-head); font-size: 0.95rem; color: var(--text); margin: 0 0 0.4rem; word-break: break-word; }
.uc-badge { display: flex; }
.uc-badge .patron-badge, .uc-badge .staff-badge { margin: 0; }
.uc-stats { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.uc-row { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.8rem; }
.uc-row span:first-child { color: var(--muted); font-family: var(--font-head); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; }
.uc-row span:last-child { color: var(--text); text-align: right; }
.uc-joined { position: relative; z-index: 1; margin: 0.85rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--panel-border); font-size: 0.6rem; font-family: var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }


@media (max-width: 600px) {
  .net-masthead { gap: 1.2rem; }
  .net-stats { gap: 1.3rem; }
}

/* ============ Patreon tier showcase (home) ============ */
.patreon-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.4vw, 1.5rem);
  max-width: 1040px;
  margin: 0 auto 3.5rem;
  align-items: stretch;
}

.patreon-tier-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 2.2rem 1.75rem 1.9rem;
  text-align: center;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.patreon-tier-card:hover {
  transform: translateY(-8px);
  border-color: var(--tier-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(212, 175, 55, 0.16);
}

.patreon-tier-card--featured {
  border-color: var(--tier-accent);
  background: linear-gradient(160deg, var(--panel) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-12px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.patreon-tier-card--featured:hover { transform: translateY(-18px); }

.patreon-tier-badge-flag {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tier-accent);
  color: #0a0a0f;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
  white-space: nowrap;
}

.patreon-tier-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tier-accent);
  margin-bottom: 0.5rem;
}

.patreon-tier-price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.patreon-tier-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
}

.patreon-tier-perks {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.patreon-tier-perks li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 1.4rem;
  position: relative;
}

.patreon-tier-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tier-accent);
  font-weight: 700;
}

.patreon-tier-card .btn {
  display: block;
}

@media (max-width: 900px) {
  .patreon-tiers { grid-template-columns: 1fr; max-width: 440px; }
  .patreon-tier-card--featured { transform: none; }
}

/* Live customization preview */
.patreon-preview {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 2rem;
}

.patreon-preview-mock {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 220px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--panel-border);
}

.preview-mock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.2) 0%, rgba(7, 7, 11, 0.85) 100%);
}

.preview-mock-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
}

.preview-mock-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.preview-mock-logo span { color: var(--gold); }

.preview-mock-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  transition: color 0.4s ease, border-color 0.4s ease;
}

.preview-mock-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--panel-border);
  padding-top: 0.7rem;
}

.preview-mock-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.preview-mock-stat-value {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--gold-bright);
  transition: color 0.4s ease;
}

.patreon-preview-controls {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.preview-control-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.preview-swatches, .preview-bgs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.preview-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.preview-swatch:hover { transform: scale(1.12); }
.preview-swatch.active { border-color: var(--text); }

.preview-bg-swatch {
  width: 46px;
  height: 32px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.preview-bg-swatch:hover { transform: scale(1.08); }
.preview-bg-swatch.active { border-color: var(--gold); }

.preview-control-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.4rem;
}

@media (max-width: 720px) {
  .patreon-preview {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

/* ============ Install / push callout (home) ============ */
.home-install-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 2.2rem 2.5rem;
}

.home-install-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.home-install-icon svg { width: 100%; height: 100%; }

.home-install-text .section-kicker,
.home-install-text .section-title {
  text-align: left;
}

.home-install-text .section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.home-install-text .section-desc {
  font-size: 0.92rem;
  text-align: left;
}

.home-install-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.home-install-actions .btn { white-space: nowrap; text-align: center; }

#pwaInstallBtn {
  animation: install-pulse 2.6s ease-in-out infinite;
}

@keyframes install-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35); }
  50%      { box-shadow: 0 0 0 9px rgba(212, 175, 55, 0); }
}

.home-install-hint {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--gold-dim);
  text-align: center;
  min-height: 1.2rem;
}

@media (max-width: 820px) {
  .home-install-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .home-install-icon { margin: 0 auto; }
  .home-install-text .section-kicker,
  .home-install-text .section-title,
  .home-install-text .section-desc {
    text-align: center;
  }
  .home-install-actions { width: 100%; }
}

/* ============ Safehouse Lab spotlight (home) ============ */
.home-lab {
  position: relative;
  width: 100%;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.home-lab-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  transition: transform 8s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-lab:hover .home-lab-bg {
    transform: scale(1.04);
  }
}

.home-lab-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.05) 0%, rgba(7, 7, 11, 0.2) 45%, rgba(7, 7, 11, 0.97) 100%),
    linear-gradient(90deg, rgba(7, 7, 11, 0.55) 0%, rgba(7, 7, 11, 0) 45%);
}

.home-lab-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem 5.5rem;
}

.home-lab-content .section-kicker,
.home-lab-content .section-title,
.home-lab-content .section-desc {
  text-align: left;
  margin: 0 0 0.7rem;
  max-width: 640px;
}

.home-lab-content .section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
}

.home-lab-content .section-desc {
  margin-bottom: 2rem;
}

.home-lab-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .home-lab { min-height: 88vh; }
  .home-lab-bg { background-position: center top; }
  .home-lab-content { padding: 0 1.25rem 4.5rem; }
}

/* ============ Final CTA band (home) ============ */
.home-final-cta {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 7rem;
  text-align: center;
}

.home-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
}

.home-final-cta-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 36px rgba(212, 175, 55, 0.18);
  margin-bottom: 0.9rem;
}

.home-final-cta-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.2rem;
}

.home-final-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Teaser Grid (home dashboard) ============ */
.teasers {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 7rem;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.teaser-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.teaser-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.12);
}

.teaser-icon {
  width: 40px;
  height: 40px;
}

.teaser-icon svg { width: 100%; height: 100%; }

.teaser-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.teaser-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 300;
  flex: 1;
}

.teaser-link {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.teaser-card:hover .teaser-link {
  text-decoration: underline;
}

/* ============ Page Background ============ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,11,0.88) 0%, rgba(7,7,11,0.94) 50%, var(--bg) 100%);
}

.page-bg--orbiter { background-image: url('/Images/orbiter-bg.jpg'); }
.page-bg--dashboard { background-image: url('/Images/Dashboard.png'); }

.page-bg--stream { background-image: url('/Images/SafehouseLab-Brickwall.webp'); }

.page-bg--market {
  background-image: url('/Images/Market-Wallpaper.png');
  background-position: center top;
  filter: brightness(1.35) saturate(1.15);
}

.page-bg--market::after {
  background: linear-gradient(180deg, rgba(7,7,11,0.55) 0%, rgba(7,7,11,0.78) 55%, var(--bg) 100%);
}

.page-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-content > section {
  width: 100%;
}

/* ============ Open World Cycles ============ */
.cycles {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 0;
}

.cycles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.cycles-grid .cycle-card {
  grid-column: span 2;
}

.cycles-grid #cycle-duviri,
.cycles-grid #cycle-zariman {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .cycles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cycles-grid .cycle-card,
  .cycles-grid #cycle-duviri,
  .cycles-grid #cycle-zariman {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .cycles-grid {
    grid-template-columns: 1fr;
  }
}

.cycle-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.3s ease;
}


.cycle-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: opacity 0.8s ease, filter 1.4s ease;
}

.cycle-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(10,10,18,0.88) 0%,
    rgba(10,10,18,0.48) 48%,
    rgba(10,10,18,0.08) 100%
  );
}

/* ── Background images ──────────────────────── */
#cycle-cetus-bg.day   { background-image: url('/Images/cetus-day.png'); }
#cycle-cetus-bg.night { background-image: url('/Images/cetus-night.png'); }
#cycle-vallis-bg.day   { background-image: url('/Images/vallis-day.png'); }
#cycle-vallis-bg.night { background-image: url('/Images/vallis-night.png'); }
.cycle-card-bg--cambion { background-image: url('/Images/cambion.webp'); }
.cycle-card-bg--duviri  { background-image: url('/Images/duviri.jpg'); }
.cycle-card-bg--zariman { background-image: url('/Images/zariman.webp'); }

/* ── State-based color filters ──────────────── */

/* Cetus & Vallis */
#cycle-cetus-bg.day,
#cycle-vallis-bg.day   { filter: brightness(1.08) saturate(1.15); }
#cycle-cetus-bg.night,
#cycle-vallis-bg.night { filter: brightness(0.80) saturate(0.65) hue-rotate(10deg); }

/* Cambion — FASS is orange/hot, VOME is cool/blue */
.cycle-card-bg--cambion.fass { filter: brightness(1.12) saturate(1.3) hue-rotate(-12deg); }
.cycle-card-bg--cambion.vome { filter: brightness(0.85) saturate(0.80) hue-rotate(18deg); }

/* Zariman — Corpus is blue-white, Grineer is amber-red */
.cycle-card-bg--zariman.corpus  { filter: brightness(1.05) saturate(0.85) hue-rotate(8deg); }
.cycle-card-bg--zariman.grineer { filter: brightness(1.0) saturate(1.2) hue-rotate(-18deg); }

/* Duviri moods */
.cycle-card-bg--duviri.joy    { filter: brightness(1.12) saturate(1.2); }
.cycle-card-bg--duviri.anger  { filter: brightness(1.08) saturate(1.4) hue-rotate(-18deg); }
.cycle-card-bg--duviri.envy   { filter: brightness(0.95) saturate(1.25) hue-rotate(50deg); }
.cycle-card-bg--duviri.sorrow { filter: brightness(0.78) saturate(0.6) hue-rotate(22deg); }
.cycle-card-bg--duviri.fear   { filter: brightness(0.82) saturate(0.7) hue-rotate(-35deg); }

/* ============ Cycle Card Ambient FX ============ */
.cycle-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

/* Rain — Plains of Eidolon */
.cycle-fx--rain .drop {
  position: absolute;
  top: -10%;
  left: calc(var(--i) * 6% - 5%);
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(190, 210, 230, 0) 0%, rgba(190, 210, 230, 0.45) 100%);
  animation: cycle-rain linear infinite;
  animation-duration: calc(0.7s + (var(--i) * 0.07s));
  animation-delay: calc(var(--i) * -0.21s);
}

@keyframes cycle-rain {
  from { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.8; }
  to   { transform: translate(-14px, 170px); opacity: 0; }
}

/* Snow — Orb Vallis */
.cycle-fx--snow .flake {
  position: absolute;
  top: -8%;
  left: calc(var(--i) * 6.2% - 4%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  animation: cycle-snow linear infinite;
  animation-duration: calc(4s + (var(--i) * 0.6s));
  animation-delay: calc(var(--i) * -0.9s);
}

@keyframes cycle-snow {
  from { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate(10px, 80px) scale(1); }
  to   { transform: translate(-6px, 170px) scale(0.6); opacity: 0; }
}

/* Embers — Cambion Drift */
.cycle-fx--embers .ember {
  position: absolute;
  bottom: -8%;
  left: calc(var(--i) * 6% - 3%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffb15e;
  box-shadow: 0 0 6px 2px rgba(255, 140, 40, 0.55);
  animation: cycle-ember ease-in-out infinite;
  animation-duration: calc(3.4s + (var(--i) * 0.6s));
  animation-delay: calc(var(--i) * -0.83s);
}

/* Five distinct wobble paths, cycled across the embers for a more
   chaotic "flying around" feel instead of a uniform rise. */
.cycle-fx--embers .ember:nth-child(5n+1) { --dx1: 16px;  --dx2: -12px; --dx3: 18px;  --dx4: -6px;  --sc: 1.3; }
.cycle-fx--embers .ember:nth-child(5n+2) { --dx1: -14px; --dx2: 20px;  --dx3: -10px; --dx4: 12px;  --sc: 0.7; }
.cycle-fx--embers .ember:nth-child(5n+3) { --dx1: 9px;   --dx2: -18px; --dx3: 14px;  --dx4: -16px; --sc: 1.1; }
.cycle-fx--embers .ember:nth-child(5n+4) { --dx1: -20px; --dx2: 7px;   --dx3: -12px; --dx4: 9px;   --sc: 0.85; }
.cycle-fx--embers .ember:nth-child(5n)   { --dx1: 11px;  --dx2: 15px;  --dx3: -20px; --dx4: 5px;   --sc: 1.2; }

@keyframes cycle-ember {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  12%  { opacity: 1; }
  35%  { transform: translate(var(--dx1, 12px), -42px) scale(var(--sc, 1)); }
  60%  { transform: translate(var(--dx2, -8px), -85px) scale(1); opacity: 0.9; }
  85%  { transform: translate(var(--dx3, 14px), -125px) scale(var(--sc, 1)); opacity: 0.6; }
  100% { transform: translate(var(--dx4, -4px), -155px) scale(0.5); opacity: 0; }
}

/* Stardust — Zariman */
.cycle-fx--stardust .mote {
  position: absolute;
  top: calc(var(--i) * 6% + 4%);
  left: calc(var(--i) * 6.5% - 5%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(210, 228, 240, 0.7);
  filter: blur(0.4px);
  animation: cycle-stardust ease-in-out infinite;
  animation-duration: calc(7s + (var(--i) * 0.9s));
  animation-delay: calc(var(--i) * -1.3s);
  --driftX: 16px;
}

.cycle-fx--stardust .mote:nth-child(even) {
  --driftX: -16px;
}

.cycle-fx--stardust .mote:nth-child(3n) {
  width: 1px;
  height: 1px;
}

.cycle-fx--stardust .mote:nth-child(4n) {
  width: 3px;
  height: 3px;
  background: rgba(210, 228, 240, 0.5);
  filter: blur(0.8px);
}

@keyframes cycle-stardust {
  0%, 100% { opacity: 0.2; transform: translate(0, 0); }
  50% { opacity: 0.7; transform: translate(var(--driftX), -10px); }
}

/* ============ Duviri mood-reactive FX ============ */
.cycle-fx--duviri .duviri-mood {
  position: absolute;
  inset: 0;
  display: none;
}

.cycle-fx--duviri[data-mood="joy"] .duviri-mood--joy,
.cycle-fx--duviri[data-mood="anger"] .duviri-mood--anger,
.cycle-fx--duviri[data-mood="envy"] .duviri-mood--envy,
.cycle-fx--duviri[data-mood="sorrow"] .duviri-mood--sorrow,
.cycle-fx--duviri[data-mood="fear"] .duviri-mood--fear {
  display: block;
}

/* Joy — gold dust */
.duviri-mood--joy .spark {
  position: absolute;
  top: calc(var(--i) * 6% + 4%);
  left: calc(var(--i) * 6.5% - 5%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(244, 217, 122, 0.75);
  filter: blur(0.4px);
  animation: cycle-stardust ease-in-out infinite;
  animation-duration: calc(6s + (var(--i) * 0.8s));
  animation-delay: calc(var(--i) * -1.2s);
  --driftX: 14px;
}

.duviri-mood--joy .spark:nth-child(even) {
  --driftX: -14px;
}

.duviri-mood--joy .spark:nth-child(3n) {
  width: 1px;
  height: 1px;
}

.duviri-mood--joy .spark:nth-child(4n) {
  width: 3px;
  height: 3px;
  background: rgba(244, 217, 122, 0.55);
  filter: blur(0.8px);
}

/* Anger — red embers */
.duviri-mood--anger .ember {
  position: absolute;
  bottom: -8%;
  left: calc(var(--i) * 6% - 3%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff5a3c;
  box-shadow: 0 0 6px 2px rgba(255, 90, 60, 0.55);
  animation: cycle-ember ease-in-out infinite;
  animation-duration: calc(2.8s + (var(--i) * 0.5s));
  animation-delay: calc(var(--i) * -0.7s);
}

.duviri-mood--anger .ember:nth-child(5n+1) { --dx1: 16px;  --dx2: -12px; --dx3: 18px;  --dx4: -6px;  --sc: 1.3; }
.duviri-mood--anger .ember:nth-child(5n+2) { --dx1: -14px; --dx2: 20px;  --dx3: -10px; --dx4: 12px;  --sc: 0.7; }
.duviri-mood--anger .ember:nth-child(5n+3) { --dx1: 9px;   --dx2: -18px; --dx3: 14px;  --dx4: -16px; --sc: 1.1; }
.duviri-mood--anger .ember:nth-child(5n+4) { --dx1: -20px; --dx2: 7px;   --dx3: -12px; --dx4: 9px;   --sc: 0.85; }
.duviri-mood--anger .ember:nth-child(5n)   { --dx1: 11px;  --dx2: 15px;  --dx3: -20px; --dx4: 5px;   --sc: 1.2; }

/* Envy — green dust */
.duviri-mood--envy .mote {
  position: absolute;
  top: calc(var(--i) * 6% + 4%);
  left: calc(var(--i) * 6.5% - 5%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(127, 232, 154, 0.7);
  filter: blur(0.4px);
  animation: cycle-stardust ease-in-out infinite;
  animation-duration: calc(7s + (var(--i) * 0.7s));
  animation-delay: calc(var(--i) * -1.4s);
  --driftX: 18px;
}

.duviri-mood--envy .mote:nth-child(even) {
  --driftX: -18px;
}

.duviri-mood--envy .mote:nth-child(3n) {
  width: 1px;
  height: 1px;
}

.duviri-mood--envy .mote:nth-child(4n) {
  width: 3px;
  height: 3px;
  background: rgba(127, 232, 154, 0.5);
  filter: blur(0.8px);
}

/* Sorrow — blue rain */
.duviri-mood--sorrow .drop {
  position: absolute;
  top: -10%;
  left: calc(var(--i) * 6% - 5%);
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(111, 195, 255, 0) 0%, rgba(111, 195, 255, 0.5) 100%);
  animation: cycle-rain linear infinite;
  animation-duration: calc(1.4s + (var(--i) * 0.12s));
  animation-delay: calc(var(--i) * -0.35s);
}

/* Fear — purple mist */
.duviri-mood--fear .wisp {
  position: absolute;
  top: calc(var(--i) * 14% + 4%);
  left: -15%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(176, 124, 240, 0.18);
  filter: blur(6px);
  animation: cycle-mist linear infinite;
  animation-duration: calc(10s + (var(--i) * 1.4s));
  animation-delay: calc(var(--i) * -1.7s);
}

@keyframes cycle-mist {
  from { transform: translateX(0); opacity: 0.25; }
  50%  { opacity: 0.55; }
  to   { transform: translateX(420px); opacity: 0.1; }
}

.cycle-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cycle-icon svg { width: 100%; height: 100%; }

.cycle-info { position: relative; z-index: 1; flex: 1; min-width: 0; }

.cycle-info h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.cycle-body.loading {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9rem;
}

.cycle-state-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.cycle-state-row .cycle-state {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.cycle-state-row .cycle-time {
  font-family: var(--font-head);
  color: var(--gold-bright);
  font-size: 0.85rem;
  white-space: nowrap;
}

.cycle-track {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cycle-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 3px;
  transition: width 1s linear;
}

.cycle-fill.tone-warm { background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); }
.cycle-fill.tone-cold { background: linear-gradient(90deg, #2d6e8c, #6fd3ff); }
.cycle-fill.tone-fass { background: linear-gradient(90deg, #7a2e2e, #ef5d5d); }
.cycle-fill.tone-vome { background: linear-gradient(90deg, #2e5a7a, #5dc3ef); }
.cycle-fill.tone-joy { background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); }
.cycle-fill.tone-anger { background: linear-gradient(90deg, #7a2e2e, #ef5d5d); }
.cycle-fill.tone-envy { background: linear-gradient(90deg, #2e6e44, #6fcf8e); }
.cycle-fill.tone-sorrow { background: linear-gradient(90deg, #2d6e8c, #5ec2e8); }
.cycle-fill.tone-fear { background: linear-gradient(90deg, #5a2e7a, #b07cf0); }
.cycle-fill.tone-corpus { background: linear-gradient(90deg, #2e5a7a, #7ec8ff); }
.cycle-fill.tone-grineer { background: linear-gradient(90deg, #7a2e2e, #e8543f); }

/* ============ World State ============ */
.worldstate {
  position: relative;
  background: var(--bg-alt);
  padding: 4.5rem 1.5rem 7rem;
  border-bottom: 1px solid var(--panel-border);
}

.worldstate::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -160px;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg-alt));
  z-index: -1;
  pointer-events: none;
}

.worldstate .section-head { max-width: 1100px; }

/* ============ World State Hero ============ */
.ws-hero {
  padding-top: 8.5rem;
  padding-bottom: 1.5rem;
}

.ws-hero .section-head {
  margin-bottom: 0;
}

.ws-hero .section-kicker { margin-bottom: 0.6rem; }

.ws-hero .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .ws-hero {
    padding-top: 6.5rem;
    padding-bottom: 1.25rem;
  }

  .ws-hero .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}

.worldstate-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .worldstate-grid {
    grid-template-columns: 1fr;
  }
}

.ws-card {
  position: relative;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.3s ease;
}

@media (max-width: 900px) {
  .ws-card { padding: 1.2rem 1.25rem; }
}

@media (max-width: 480px) {
  .ws-card { padding: 1rem 1.1rem; }
  .ws-card h4 { font-size: 0.78rem; }
}


.ws-card h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  padding-right: 2.2rem;
  border-bottom: 1px solid var(--panel-border);
}

/* World State notification controls */
.ws-watch-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ws-watch-btn svg {
  width: 15px;
  height: 15px;
}

.ws-watch-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
}

.ws-watch-btn.active {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

.ws-watch-hint {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ws-watch-hint:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.ws-body { font-size: 0.95rem; color: var(--text); }

.ws-body.loading {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 300;
}

.ws-body.error {
  color: #d47373;
}

.ws-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.ws-row span:first-child {
  color: var(--text-dim);
  flex-shrink: 0;
}

.ws-row span:last-child {
  font-family: var(--font-head);
  color: var(--gold-bright);
  text-align: right;
  font-size: 0.85rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.ws-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  color: var(--gold);
  margin: 0.15rem 0.25rem 0.15rem 0;
}

/* Relic tier accents */
:root {
  --c-lith: #5ec2e8;
  --c-meso: #6fcf8e;
  --c-neo: #e2546b;
  --c-axi: #e8e4d8;
  --c-requiem: #b07cf0;
  --c-omnia: var(--gold-bright);
}

.relic-grid {
  display: grid;
  gap: 0.5rem;
  margin: 0.7rem 0 0.9rem;
}

.relic-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.relic-icon {
  flex-shrink: 0;
}

.relic-chip .relic-name {
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .relic-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.relic-chip .relic-count {
  color: var(--text-dim);
}

.fissure-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.fissure-extra .ws-tag {
  margin: 0;
}

.fissure-soonest {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--panel-border);
}

.fissure-soonest-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-head);
  margin-bottom: 0.5rem;
}

.fissure-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.fissure-row:last-child { margin-bottom: 0; }

.fissure-row .relic-icon {
  margin-top: 1px;
}

.fissure-row-body { flex: 1; min-width: 0; }

.fissure-row-text {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.fissure-row-text .fissure-node {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fissure-row-text .fissure-time {
  font-family: var(--font-head);
  color: var(--gold-bright);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.fissure-track {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.fissure-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
}

.fissure-fill.urgent {
  background: linear-gradient(90deg, #7a2e2e, #ef5d5d);
}

.ws-mission-list { margin-top: 0.4rem; }
.ws-mission-list li {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(212,175,55,0.08);
}
.ws-mission-list li:last-child { border-bottom: none; }
.ws-mission-list li span { color: var(--text); }

.sortie-mission-row { color: var(--text-dim); }

.sortie-modifier {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--gold-dim);
}

.ws-credit {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Varzia — Primed Resurgence featured card ── */
.ws-card--varzia {
  min-height: 210px;
}

.ws-featured-kicker {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .22em;
  color: var(--gold);
  opacity: .75;
  margin-bottom: .2rem;
}

.varzia-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .7rem;
  gap: .5rem;
}

.varzia-loc {
  font-size: .8rem;
  color: var(--text-dim);
}

.varzia-timer {
  font-family: var(--font-head);
  font-size: .78rem;
  color: var(--gold-bright);
  white-space: nowrap;
}

.varzia-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}

.varzia-item {
  font-size: .84rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
  line-height: 1.35;
}

.varzia-item::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .68rem;
  top: .12em;
}

.varzia-more {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: .5rem;
  opacity: .6;
}

/* ── Baro Ki'Teer featured card ── */
.ws-card--baro {
  min-height: 210px;
  padding: 0;
  overflow: hidden;
}

.ws-baro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.4s ease, transform 1.2s ease;
  transform: scale(1) translate(0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .ws-card--baro:hover .ws-baro-bg {
    animation: baro-kenburns 9s ease-in-out infinite;
  }
}

@keyframes baro-kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-1.2%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.ws-baro-bg.away {
  background-image: url('/Images/Baro-away.jpg');
  opacity: .55;
  filter: saturate(.75) brightness(.9);
}

.ws-baro-bg.here {
  background-image: url('/Images/Baro-here.jpg');
  opacity: .68;
  filter: saturate(1.1) brightness(.95);
}

.ws-card--baro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,.72) 25%, rgba(10,10,15,.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.ws-baro-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.ws-baro-top, .ws-baro-bottom { flex-shrink: 0; }

.ws-baro-kicker {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: .25rem;
}

.ws-card--baro h4 {
  border-bottom: none;
  margin-bottom: .6rem;
  padding-bottom: 0;
}

.ws-baro-status {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 .55rem;
}

.ws-baro-status--here { color: var(--gold-bright); }

.ws-baro-bigtime {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: .65rem;
}

.ws-baro-bigtime-label {
  font-family: var(--font-head);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--text-dim);
}

.ws-baro-bigtime-value {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: .03em;
  line-height: 1.1;
  transition: font-size .2s;
}

.ws-baro-loc {
  font-size: .85rem;
  color: var(--text-dim);
  margin: 0;
}

.ws-baro-deeplink {
  display: inline-block;
  margin-top: .9rem;
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gold);
  opacity: .75;
  transition: opacity .2s;
}

.ws-baro-deeplink:hover { opacity: 1; }

/* Tablet and up — Varzia's full item list grows taller than Baro's
   content. Title stays top-left, status/timer block stays bottom —
   the space-between gap absorbs the extra height. Scale typography
   up too so it fills the stretched card. */
@media (min-width: 700px) {
  .ws-card--baro,
  .ws-card--varzia { min-height: 260px; }
  .ws-baro-kicker { font-size: .72rem; }
  .ws-card--baro h4 { font-size: 1.05rem; }
  .ws-baro-status { font-size: .8rem; }
  .ws-baro-bigtime-label { font-size: .68rem; }
  .ws-baro-bigtime-value { font-size: 2.6rem; }
  .ws-baro-loc { font-size: .95rem; }
}

@media (min-width: 1024px) {
  .ws-card--baro,
  .ws-card--varzia { min-height: 300px; }
  .ws-baro-bigtime-value { font-size: 3.2rem; }
  .ws-baro-loc { font-size: 1rem; }
  .ws-baro-deeplink { font-size: .78rem; }
}

@media (min-width: 1440px) {
  .ws-baro-bigtime-value { font-size: 3.6rem; }
}

@media (max-width: 480px) {
  .ws-card--baro { min-height: 250px; }
  .ws-baro-inner { padding: 1.5rem 1.3rem; gap: 1.4rem; }
}

/* ============ Twitch Stream ============ */
.stream {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 8rem;
}

.stream .section-head {
  margin-bottom: 1.5rem;
}

.stream .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0;
}

.stream-wrap {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  aspect-ratio: unset;
}

.stream-player {
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
}

.stream-chat {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  min-height: 300px;
}

.stream-player iframe,
.stream-chat iframe {
  border: none;
  display: block;
}

.info-card-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.stream-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stream-note code {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  color: var(--gold);
}

/* ============ Market ============ */
.market {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3rem;
  width: 100%;
}

.market-section-label {
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 0.68rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  opacity: 0.85;
  text-align: center;
}

/* --- Shared market animations --- */
@keyframes market-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

@keyframes market-card-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* --- Featured Spotlight --- */
.market-featured {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.market-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
  transition: opacity 0.25s ease;
}

.market-featured-grid.fading { opacity: 0; pointer-events: none; }

.featured-skeleton {
  height: 70px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(90deg,
    var(--panel) 25%,
    rgba(212, 175, 55, 0.07) 50%,
    var(--panel) 75%);
  background-size: 600px 100%;
  animation: market-shimmer 1.5s ease-in-out infinite;
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease;
  min-width: 0;
  opacity: 0;
  animation: market-card-in 0.35s ease forwards;
  animation-delay: var(--delay, 0s);
}

.featured-card:hover { border-color: var(--gold-dim); }

.featured-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

.featured-no-img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 2px;
}

.featured-card-info { flex: 1; min-width: 0; }

.featured-card-name {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.featured-card-price {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.featured-card-vol {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

/* --- Category Tabs --- */
.market-cats { margin-bottom: 1.5rem; margin-top: 0.5rem; }

.market-cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.market-cat {
  flex: 1 1 0;
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.market-cat:hover  { color: var(--gold); border-color: var(--gold-dim); }
.market-cat.active { color: var(--gold); border-color: var(--gold-dim); background: rgba(212, 175, 55, 0.07); }

/* Mobile — tighter text to fit all 5 in one row */
@media (max-width: 560px) {
  .market-cat-tabs { gap: 0.3rem; }
  .market-cat {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    padding: 0.42rem 0.25rem;
  }
}

/* --- Category Browse Grid (fixed height — never causes layout shift) --- */
.market-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
  transition: opacity 0.22s ease;
}

.market-cat-grid.fading { opacity: 0; pointer-events: none; }

.cat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 0;
  height: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  animation: market-card-in 0.28s ease forwards;
  animation-delay: var(--delay, 0s);
}

.cat-item:hover { color: var(--text); border-color: var(--gold-dim); }

.cat-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.cat-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-skeleton {
  height: 42px;
  border-radius: 3px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(90deg,
    var(--panel) 25%,
    rgba(212, 175, 55, 0.05) 50%,
    var(--panel) 75%);
  background-size: 600px 100%;
  animation: market-shimmer 1.5s ease-in-out infinite;
}

.market-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto 1rem;
}

.market-search-icon {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s ease;
}

.market-search:focus-within .market-search-icon {
  color: var(--gold);
}

.market-input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1.15rem 1.4rem 1.15rem 3.1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.market-input::placeholder {
  color: var(--text-dim);
}

.market-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 0 28px rgba(212, 175, 55, 0.18);
}

.market-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.market-results.open { display: block; }

.market-result {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.market-result:last-child { border-bottom: none; }
.market-result:hover, .market-result:focus { background: var(--panel); color: var(--gold); }

.market-result img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* --- Market Modal --- */
.market-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.market-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.market-modal {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.market-modal-overlay.open .market-modal {
  transform: translateY(0) scale(1);
}

.market-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.market-modal-close:hover { color: var(--gold); border-color: var(--gold-dim); }

.market-modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  padding-right: 2.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.market-modal-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.market-modal-title { flex: 1; min-width: 0; }

.market-modal-title h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.market-modal-title a {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.market-modal-title a:hover { color: var(--gold-bright); }

.market-status {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.market-status.error { color: #ef5d5d; }

.market-orders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.market-orders h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.order-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.order-table td {
  padding: 0.5rem;
  border-bottom: 1px dashed rgba(212,175,55,0.08);
}

.order-table td:last-child,
.order-table th:last-child { text-align: right; }

.order-table .plat {
  color: var(--gold-bright);
  font-family: var(--font-head);
  white-space: nowrap;
}

.order-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.order-dot.ingame  { background: #4ade80; }
.order-dot.online  { background: #facc15; }
.order-dot.offline { background: var(--text-dim); opacity: 0.4; }

.copy-cell { width: 32px; text-align: right; }

.copy-trade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  flex-shrink: 0;
}

.copy-trade-btn svg { width: 13px; height: 13px; }

.copy-trade-btn:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.07);
}

.copy-trade-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.06);
}

/* ============ Blog ============ */
.blog {
  max-width: 880px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.blog-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.blog-date {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.blog-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
}

.blog-empty {
  text-align: center;
  color: var(--text-dim);
  margin-top: 2.5rem;
}

/* ===== Blog index — full-bleed cinematic magazine ===== */
.blog-index { position: relative; width: 100%; padding: 5rem 0 6rem; overflow-x: clip; }

/* contained body below the full-bleed hero */
.blog-body { max-width: 1340px; margin: 0 auto; padding: 0 2rem; }

.blog-card-tag {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.7rem;
}
.blog-tag-type { color: var(--gold-bright); }
.blog-tag-dot { color: var(--gold); opacity: 0.55; }

/* Full-bleed hero — latest post */
.blog-hero {
  position: relative; display: block; overflow: hidden; width: 100%;
  min-height: clamp(440px, 74vh, 780px); text-decoration: none; background: #07070c;
  border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border);
}
.blog-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.blog-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 11, 0) 0%, rgba(6, 6, 11, 0.2) 40%, rgba(6, 6, 11, 0.94) 100%), linear-gradient(90deg, rgba(6, 6, 11, 0.6), transparent 60%); }
.blog-hero--noimg { background: radial-gradient(circle at 28% 30%, rgba(212, 175, 55, 0.16), transparent 58%), #0b0b12; }
.blog-hero--noimg .blog-hero-grad { display: none; }
.blog-hero-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 1340px; margin: 0 auto; padding: 0 2rem 3.4rem; }
.blog-hero-index { font-family: var(--font-head); color: var(--gold-bright); margin-right: 0.15rem; }
.blog-hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 0.98; letter-spacing: -0.015em;
  color: #fff; margin: 0 0 1rem; text-shadow: 0 4px 34px rgba(0, 0, 0, 0.55); max-width: 900px;
}
.blog-hero-excerpt { color: rgba(255, 255, 255, 0.85); font-size: 1.12rem; font-weight: 300; line-height: 1.6; margin: 0 0 1.5rem; max-width: 620px; }
.blog-read {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-bright);
}
.blog-read span { transition: transform 0.2s ease; }
.blog-hero:hover .blog-read span, .blog-feat:hover .blog-read span { transform: translateX(4px); }

/* Masthead row */
.blog-masthead {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
  margin: 3.2rem 0 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--panel-border);
}
.blog-masthead-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--text); margin: 0.4rem 0 0.6rem; letter-spacing: 0.01em; }
.blog-masthead-desc { color: var(--text-dim); font-size: 1rem; font-weight: 300; max-width: 560px; margin: 0; line-height: 1.6; }
.blog-masthead-count { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.blog-masthead-count span { color: var(--gold-bright); font-size: 1.3rem; margin-right: 0.2rem; }

/* Featured — 3 columns, indexed */
.blog-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-feat {
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--panel-border);
  min-height: clamp(300px, 32vh, 380px); text-decoration: none; background: #07070c;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.blog-feat:hover { border-color: rgba(212, 175, 55, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); transform: translateY(-3px); }
.blog-feat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.blog-feat:hover::before { transform: scaleX(1); }
.blog-feat-index { position: absolute; top: 0.9rem; left: 1.1rem; z-index: 3; font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold-bright); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.blog-feat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-feat:hover .blog-feat-img { transform: scale(1.06); }
.blog-feat-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 11, 0.05), rgba(6, 6, 11, 0.4) 50%, rgba(6, 6, 11, 0.94)); }
.blog-feat--noimg { background: radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.1), transparent 60%), #0b0b12; }
.blog-feat--noimg .blog-feat-grad { display: none; }
.blog-feat-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.6rem; z-index: 2; }
.blog-feat-title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.12; color: #fff; margin: 0 0 0.5rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.blog-feat-excerpt {
  color: rgba(255, 255, 255, 0.8); font-size: 0.88rem; font-weight: 300; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 1000px) { .blog-featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-featured { grid-template-columns: 1fr; } }

/* scroll-reveal entrance for blog cards */
.blog-feat.scroll-reveal-item, .blog-arch-row.scroll-reveal-item { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.blog-feat.in-view, .blog-arch-row.in-view { opacity: 1; transform: none; }

/* tags over imagery read light */
.blog-hero-inner .blog-card-tag, .blog-feat-inner .blog-card-tag, .post-hero-text .blog-card-tag { color: rgba(255, 255, 255, 0.72); }

/* Archive — indexed terminal list */
.blog-archive { margin-top: 4.5rem; }
.blog-archive-head {
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8; margin-bottom: 0.4rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--panel-border);
}
.blog-archive-list { display: flex; flex-direction: column; }
.blog-arch-row {
  display: grid; grid-template-columns: auto auto auto 1fr auto; align-items: center; gap: 1.1rem;
  padding: 1.15rem 0.5rem; border-bottom: 1px solid var(--panel-border);
  text-decoration: none; transition: background 0.15s ease, padding 0.15s ease;
}
.blog-arch-row:hover { background: rgba(212, 175, 55, 0.06); padding-left: 0.9rem; }
.blog-arch-num { font-family: var(--font-head); font-size: 0.72rem; color: var(--gold); opacity: 0.55; }
.blog-arch-date { font-family: var(--font-head); font-size: 0.78rem; color: var(--gold-dim); letter-spacing: 0.05em; }
.blog-arch-sep { color: var(--gold); opacity: 0.5; }
.blog-arch-title { color: var(--text); font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-arch-row:hover .blog-arch-title { color: var(--gold-bright); }
.blog-arch-type {
  font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.12em; color: var(--muted);
  border: 1px solid var(--panel-border); border-radius: 20px; padding: 0.2rem 0.6rem; white-space: nowrap;
}

/* ===== Post view — full-bleed cinematic ===== */
.post-view { width: 100%; padding: 0 0 6rem; overflow-x: clip; }

/* contained content shell */
.post-shell { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
/* no-image posts: clear the fixed nav, keep the inline back link */
.post-shell--nohero { padding-top: 6.5rem; }
.post-shell--nohero .post-back { display: inline-block; margin-bottom: 1.5rem; }
/* floating back-link pill over the full-bleed hero */
.post-back--over {
  position: absolute; top: 5.4rem; left: 2rem; z-index: 5; margin: 0;
  background: rgba(8, 8, 13, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 20px; padding: 0.42rem 0.95rem;
}
.post-back--over:hover { background: rgba(8, 8, 13, 0.72); border-color: var(--gold); }

/* full-bleed hero — runs up behind the transparent fixed nav */
.post-hero-wrap { width: 100%; margin-bottom: 2.6rem; }
.post-hero {
  position: relative; overflow: hidden; width: 100%;
  min-height: clamp(480px, 74vh, 780px); background: #07070c;
  border-bottom: 1px solid var(--panel-border);
}
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 24s ease-in-out infinite alternate; }
.build-post .post-hero-img { cursor: zoom-in; }
.post-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 11, 0.5) 0%, rgba(6, 6, 11, 0.12) 14%, rgba(6, 6, 11, 0.28) 50%, rgba(6, 6, 11, 0.95) 100%), linear-gradient(90deg, rgba(6, 6, 11, 0.55), transparent 60%); pointer-events: none; }
.post-hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.post-hero-text-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem 3rem; }
.post-hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.015em; color: #fff; margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); max-width: 900px;
}
.post-hero-wrap .bg-thumbs { margin-top: 1rem; }

/* premium reading */
.post-view .post-body { font-size: 1.07rem; line-height: 1.85; }
.post-view .post-body p { margin-bottom: 1.45rem; }
.post-body--article { max-width: 720px; margin: 0 auto; }
.post-body--article > p:first-of-type::first-letter {
  float: left; font-family: var(--font-head); font-weight: 700;
  font-size: 3.5rem; line-height: 0.78; padding: 0.1rem 0.55rem 0 0; color: var(--gold-bright);
}

/* comments — narrower, centered reading column */
.post-shell .comments { max-width: 760px; margin: 4rem auto 0; }

/* Two-column post grid: body+comments (left) | widgets+conversation card (right) */
.post-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.4rem; margin-top: 2rem; align-items: start; }
.post-col-main { min-width: 0; }
.post-col-main .post-body { margin-top: 0; }
.post-col-main .comments { max-width: none; margin: 3.6rem 0 0; }
.post-col-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; align-self: start; }

/* Conversation card (sidebar, below widgets) */
.conversation-card {
  background: var(--panel); border: 1px solid rgba(212, 175, 55, 0.22); border-radius: 12px;
  padding: 1.3rem 1.3rem 1.4rem; text-align: center;
}
.conv-kicker { font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); opacity: 0.8; margin: 0 0 0.7rem; }
.conv-count { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 0.9rem; }
.conv-count strong { color: var(--gold-bright); font-size: 1.7rem; display: block; line-height: 1; margin-bottom: 0.25rem; }
.conv-avatars { display: flex; justify-content: center; align-items: center; margin-bottom: 0.55rem; }
.conv-avatars img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--panel); margin-left: -8px; box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45); }
.conv-avatars img:first-child { margin-left: 0; }
.conv-more { font-family: var(--font-head); font-size: 0.7rem; color: var(--gold-bright); margin-left: 0.4rem; }
.conv-sub { font-size: 0.73rem; color: var(--muted); margin: 0 0 1.1rem; }
.conv-cta { width: 100%; box-sizing: border-box; text-align: center; }

/* Article body fills the grid column (not the 720 centered measure) */
.post-col-main .post-body--article { max-width: none; margin: 0; }

/* Table of Contents widget */
.toc-widget { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; padding: 1.2rem 1.3rem; }
.toc-title { font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); opacity: 0.8; margin: 0 0 0.7rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--panel-border); }
.toc-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.toc-widget li { line-height: 1.4; }
.toc-widget a {
  display: block; color: var(--text-dim); font-size: 0.85rem; text-decoration: none;
  padding: 0.35rem 0.6rem; border-left: 2px solid transparent; border-radius: 0 4px 4px 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.toc-widget a:hover { color: var(--text); background: rgba(212, 175, 55, 0.05); }
.toc-widget a.active { color: var(--gold-bright); border-left-color: var(--gold); background: rgba(212, 175, 55, 0.08); }
.toc-l3 a { padding-left: 1.5rem; font-size: 0.8rem; }

/* heading anchor offset under the fixed nav */
.post-body h2[id], .post-body h3[id] { scroll-margin-top: 90px; }

/* Comment cards — dividers + hover */
.comment-list { gap: 0; }
.comment { padding: 0.7rem 0.6rem 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; transition: background 0.15s ease; }
.comment:hover { background: rgba(255, 255, 255, 0.018); }
.comment:last-child { margin-bottom: 0; padding-bottom: 0.6rem; border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .blog-hero-img, .post-hero-img { animation: none; }
}

@media (max-width: 760px) {
  .blog-index { padding-top: 4rem; }
  .blog-hero { min-height: clamp(360px, 64vh, 520px); }
  .blog-hero-inner { padding: 0 1.3rem 2.2rem; }
  .blog-masthead { margin-top: 2.4rem; }
  .blog-arch-row { grid-template-columns: auto auto 1fr; gap: 0.7rem; }
  .blog-arch-sep, .blog-arch-type { display: none; }
  .post-shell { padding-left: 1.3rem; padding-right: 1.3rem; }
  .post-shell--nohero { padding-top: 5.5rem; }
  .post-hero { min-height: clamp(340px, 62vh, 520px); }
  .post-hero-text-inner { padding: 0 1.3rem 2rem; }
  .post-back--over { top: 4.6rem; left: 1.3rem; }
}

/* ===== Comments ===== */
.comments { max-width: 820px; margin: 3.5rem 0 0; }
.comments-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--panel-border);
}
.comments-title { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0; }
.comments-count { color: var(--gold-bright); }
.comment-sort { display: inline-flex; gap: 0.2rem; background: var(--bg); border: 1px solid var(--panel-border); border-radius: 20px; padding: 0.18rem; }
.comment-sort button {
  font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); background: none; border: none; border-radius: 16px; padding: 0.3rem 0.75rem;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.comment-sort button:hover { color: var(--text); }
.comment-sort button.active { background: var(--gold); color: #0a0a0f; font-weight: 700; }

.comment-form { display: flex; gap: 0.9rem; margin-bottom: 2rem; }
.comment-form-main { flex: 1; }
.comment-form textarea {
  width: 100%; box-sizing: border-box; background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: 8px;
  padding: 0.8rem 0.9rem; color: var(--text); font-family: var(--font-body);
  font-size: 0.95rem; line-height: 1.5; resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15); }
.comment-form-actions { display: flex; justify-content: flex-end; margin-top: 0.6rem; }

.comment-login {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 1.1rem 1.3rem; margin-bottom: 2rem;
}
.comment-login p { margin: 0; color: var(--text-dim); }

.comment-list { display: flex; flex-direction: column; gap: 1.4rem; }
.comments-empty { color: var(--text-dim); font-style: italic; }

.comment { display: flex; gap: 0.9rem; }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  border: 1.5px solid rgba(212, 175, 55, 0.5); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.35rem; }
.comment-author { font-family: var(--font-head); font-size: 0.88rem; color: var(--text); letter-spacing: 0.02em; }
.comment-time { font-size: 0.74rem; color: var(--muted); }

.comment-badge {
  font-family: var(--font-head); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.45rem; border-radius: 20px; border: 1px solid; font-weight: 700;
}
.comment-badge--officer  { color: #ff6b5b; border-color: rgba(255, 107, 91, 0.5); background: rgba(255, 107, 91, 0.1); }
.comment-badge--member   { color: #5dade2; border-color: rgba(93, 173, 226, 0.45); background: rgba(93, 173, 226, 0.1); }
.comment-badge--tenno    { color: var(--gold-bright); border-color: rgba(212, 175, 55, 0.45); background: rgba(212, 175, 55, 0.1); }
.comment-badge--operator { color: #c0bdb0; border-color: rgba(192, 189, 176, 0.45); background: rgba(192, 189, 176, 0.1); }
.comment-badge--warlord  { color: #e8940a; border-color: rgba(232, 148, 10, 0.5); background: rgba(232, 148, 10, 0.12); }

.comment-del { margin-left: auto; }
.comment-del button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 0.2rem; line-height: 1; }
.comment-del button:hover { color: #e74c3c; }

.comment-text { color: var(--text-dim); font-size: 0.96rem; line-height: 1.6; font-weight: 300; margin: 0; overflow-wrap: anywhere; }

.comment-actions { margin-top: 0.55rem; }
.comment-like {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 1px solid var(--panel-border); border-radius: 20px;
  padding: 0.22rem 0.65rem; color: var(--muted); cursor: pointer;
  font-family: var(--font-head); font-size: 0.72rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.comment-like svg { width: 13px; height: 13px; transition: fill 0.15s; }
.comment-like:hover { color: var(--gold-bright); border-color: rgba(212, 175, 55, 0.4); }
.comment-like.is-liked { color: var(--gold-bright); border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.comment-like.is-liked svg { fill: currentColor; }
.comment-like:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 600px) {
  .comment-form, .comment { gap: 0.6rem; }
  .comment-avatar { width: 34px; height: 34px; }
}

/* Single post */
.post-back {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 2rem;
}

.post-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.post-body {
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.8;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 1.8rem 0 0.8rem;
}

.post-body p { margin-bottom: 1.1rem; }

.post-body ul {
  margin: 0 0 1.1rem 1.2rem;
  list-style: disc;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--text);
  font-style: italic;
}

.post-body a { color: var(--gold-bright); }

.post-body img { max-width: 100%; border-radius: 6px; margin: 0.4rem 0; }

.post-figure { margin: 1.8rem 0; }
.post-figure img { width: 100%; border-radius: 8px; border: 1px solid var(--panel-border); }
.post-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Fashion / build posts ── */
.post-type-tag {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.build-gallery-view { margin: 1.6rem 0; }

.bg-main {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: #06060b;
}

.bg-main img { width: 100%; max-height: 70vh; object-fit: contain; display: block; cursor: zoom-in; }

.bg-thumbs { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }

.bg-thumb {
  width: 76px; height: 60px; padding: 0; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}

.bg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bg-thumb:hover { opacity: 1; }
.bg-thumb.active { border-color: var(--gold); opacity: 1; }

.build-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.build-main { margin-top: 0; }

.build-loadout-panel {
  position: sticky;
  top: 90px;
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

/* Sidebar widget accordion */
.post-widgets { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 0.8rem; }
.widget { background: var(--panel); border: 1px solid rgba(212, 175, 55, 0.22); border-radius: 10px; overflow: hidden; }
.widget-head {
  width: 100%; display: flex; align-items: center; gap: 0.6rem;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 0.95rem 1.1rem; color: var(--text);
  font-family: var(--font-head); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.15s ease;
}
.widget-head:hover { background: rgba(212, 175, 55, 0.06); }
.widget-title { color: var(--gold-bright); }
.widget-count { font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); letter-spacing: 0; }
.widget-chevron { margin-left: auto; color: var(--gold); transition: transform 0.25s ease; font-size: 0.85rem; }
.widget.is-open .widget-chevron { transform: rotate(180deg); }
.widget-body { display: none; padding: 0 1rem 1.1rem; }
.widget.is-open .widget-body { display: block; }

/* In-game link rows */
.ingame-links { display: flex; flex-direction: column; gap: 0.5rem; }
.ingame-link { display: flex; align-items: center; gap: 0.6rem; }
.ingame-link-label { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text); flex: 1; }
.ingame-copy {
  font-family: var(--font-head); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(212, 175, 55, 0.1); border: 1px solid var(--gold);
  border-radius: 4px; padding: 0.32rem 0.75rem; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.ingame-copy:hover { background: var(--gold); color: var(--bg); }
.ingame-copy.is-copied { background: #2ecc71; border-color: #2ecc71; color: var(--bg); }
.ingame-hint { font-size: 0.74rem; color: var(--muted); margin: 0.7rem 0 0; font-style: italic; line-height: 1.5; }

.loadout-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--panel-border);
}

.loadout-items { display: flex; flex-direction: column; gap: 0.4rem; }

.loadout-item {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left; background: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px; padding: 0.4rem;
  color: inherit; font: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.loadout-item:hover { background: rgba(212, 175, 55, 0.08); border-color: rgba(212, 175, 55, 0.25); }

.loadout-expand { margin-left: auto; color: var(--muted); font-size: 0.95rem; flex-shrink: 0; opacity: 0.5; transition: opacity 0.15s, color 0.15s; }
.loadout-item:hover .loadout-expand { opacity: 1; color: var(--gold-bright); }

/* Item "maximize" modal */
.loadout-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(4, 4, 8, 0.9);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}

.loadout-modal[hidden] { display: none; }

.loadout-modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 2rem 2rem 1.6rem;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.loadout-modal-close {
  position: absolute; top: 0.7rem; right: 1rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.7rem; cursor: pointer; line-height: 1;
}
.loadout-modal-close:hover { color: var(--gold-bright); }

.loadout-modal-iconwrap {
  width: 120px; height: 120px; margin: 0 auto 1rem;
  border-radius: 12px; background: #06060b; border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.loadout-modal-icon { width: 100%; height: 100%; object-fit: contain; }

.loadout-modal-cat {
  font-family: var(--font-head); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem;
}

.loadout-modal-name { font-family: var(--font-head); color: var(--text); font-size: 1.2rem; margin-bottom: 0.7rem; }

.loadout-modal-desc {
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 1.2rem; font-weight: 300; white-space: pre-line;
}

.loadout-modal-wiki {
  display: inline-block;
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-bright) !important; border: 1px solid var(--gold);
  border-radius: 4px; padding: 0.5rem 1rem; transition: background 0.15s, color 0.15s;
}
.loadout-modal-wiki:hover { background: var(--gold); color: var(--bg) !important; }

.loadout-icon {
  width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  background: #06060b; border: 1px solid var(--panel-border);
}

.loadout-icon--ph { display: inline-block; }
.loadout-meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }

.loadout-slot {
  font-family: var(--font-head);
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.loadout-name { color: var(--text); font-size: 0.92rem; font-weight: 500; }
a.loadout-name:hover { color: var(--gold-bright); }

@media (max-width: 820px) {
  .build-layout, .post-grid { grid-template-columns: 1fr; }
  .build-loadout-panel, .post-widgets, .post-col-side { position: static; }
  .post-col-side { flex-direction: column; }
  .post-col-main .comments { margin-top: 2.6rem; }
  /* On mobile the conversation card is redundant with the inline composer. */
  .conversation-card { display: none; }
}

/* Lightbox */
.bg-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 4, 8, 0.94);
  display: flex; align-items: center; justify-content: center;
}

.bg-lightbox[hidden] { display: none; }
.bg-lb-img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }

.bg-lb-btn {
  position: absolute; background: rgba(20, 20, 28, 0.8); border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright); width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}

.bg-lb-btn:hover { background: rgba(212, 175, 55, 0.25); }
.bg-lb-close { top: 1.4rem; right: 1.4rem; }
.bg-lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.bg-lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .bg-lb-prev { left: 0.5rem; }
  .bg-lb-next { right: 0.5rem; }
}

.post-body code {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.9em;
}

/* ============ Stream Info Grid ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
}

.info-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.info-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

.info-card ul {
  margin-top: 0.6rem;
  list-style: none;
}

.info-card ul li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(212,175,55,0.08);
  color: var(--text-dim);
}

.info-card ul li:last-child { border-bottom: none; }

.info-card ul li span:first-child {
  color: var(--text);
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.info-card ul li span:last-child {
  color: var(--gold-bright);
}

/* ============ Join ============ */
.join {
  position: relative;
  padding: 8rem 1.5rem;
  overflow: hidden;
}

.join-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: saturate(0.7) brightness(0.4);
}

.join-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7,7,11,0.75) 40%, var(--bg) 100%);
}

.join-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.join-content .section-desc {
  margin-bottom: 2.5rem;
}

.join-requirements {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.req {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}

.req-icon {
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1.4;
}

.req p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
}

.join-actions { margin-bottom: 1.2rem; }

.join-note {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.join-note code {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  color: var(--gold);
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  background: transparent;
}

/* Decorative dot-tech pattern fading in along the bottom edge */
.footer-pattern {
  position: absolute;
  inset: auto 0 0 0;
  height: 110px;
  background-image: radial-gradient(circle, rgba(212, 175, 55, 0.35) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.45;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.footer-text,
.footer-credit {
  flex: 1 1 0;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  text-align: center;
}

.footer-logo span { color: var(--gold); }
.footer-logo .footer-network { color: var(--muted); font-size: 0.7em; letter-spacing: 0.25em; }

.footer-text {
  color: var(--text-dim);
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: left;
  line-height: 1.6;
}

.footer-credit {
  color: var(--text-dim);
  font-size: 0.7rem;
  opacity: 0.55;
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-logo {
    order: -1;
  }

  .footer-text,
  .footer-credit {
    text-align: center;
  }
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .stream-wrap {
    grid-template-columns: 1fr;
  }
  .stream-chat { min-height: 400px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7,7,11,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  /* CRITICAL: the fullscreen menu (.nav-links) is position:fixed INSIDE .site-header.
     A backdrop-filter on the header turns it into the containing block for that fixed
     overlay, collapsing the menu into the thin bar the moment you scroll. So on mobile
     the scrolled header uses a solid background with NO filter — the overlay then stays
     sized to the viewport at every scroll position (and we avoid the mobile blur glitch). */
  .site-header.scrolled {
    background: rgba(7, 7, 11, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
  .focus, .stream, .worldstate { padding: 4.5rem 1.25rem; }
  .join { padding: 5rem 1.25rem; }
}

/* ============ Market responsive ============ */
@media (max-width: 640px) {
  .market { padding: 5.5rem 1.25rem; }

  .market-input {
    font-size: 1rem;
    padding: 1rem 1.1rem 1rem 2.8rem;
  }

  .market-modal { padding: 1.25rem; }

  .market-modal-head { flex-wrap: wrap; }

  .order-table { font-size: 0.82rem; }
}

/* ============ Account / Apply ============ */
.account {
  max-width: 880px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.account-profile h3 {
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  color: var(--gold);
  font-size: 1.1rem;
}

.account-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.account-profile .btn {
  margin-left: auto;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.panel--full {
  grid-column: 1 / -1;
}

/* ── Operative Dossier ─────────────────────────────────── */
.dossier-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 2rem;
  min-height: 130px;
  display: flex;
  align-items: stretch;
}

.dossier-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) saturate(0.95);
  transition: background-image 0.5s ease;
  background-color: var(--panel);
}

.dossier-bg.is-default {
  background-image: none !important;
  filter: none;
}

/* Legibility scrim — only when a real background image is set (keeps text readable
   on the left, lets the art show through on the right). */
.dossier-bg:not(.is-default) + .dossier-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 8, 12, 0.9) 0%, rgba(8, 8, 12, 0.55) 42%, rgba(8, 8, 12, 0.12) 100%);
}

/* Corner bracket decorations */
.dossier-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) top left    / 28px 2px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) top left    / 2px 28px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) top right   / 28px 2px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) top right   / 2px 28px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) bottom left / 28px 2px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) bottom left / 2px 28px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) bottom right/ 28px 2px no-repeat,
    linear-gradient(var(--ta, #c8a84b), var(--ta, #c8a84b)) bottom right/ 2px 28px no-repeat;
}

/* Scan lines */
.dossier-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

.dossier-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  width: 100%;
}

.dossier-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--ta, #c8a84b);
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,0,0,0.5);
}

.dossier-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--ta, #c8a84b);
  font-family: var(--font-head);
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.dossier-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #fff;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dossier-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

.dossier-op {
  margin-top: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ta, var(--gold-bright));
}

/* Operative Profile dropdowns (Command Hub → Settings) */
.op-intro { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.op-field { display: flex; flex-direction: column; gap: 0.4rem; }
.op-field-label { font-family: var(--font-head); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.op-field select {
  background: var(--bg); border: 1px solid var(--panel-border); border-radius: 8px; color-scheme: dark;
  padding: 0.6rem 0.7rem; color: var(--text); font-family: var(--font-body); font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.15s ease;
}
.op-field select:focus { outline: none; border-color: var(--gold); }
.op-status { min-height: 1.1rem; margin: 0.9rem 0 0; font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.06em; }
.op-status--ok { color: var(--gold-bright); }
.op-status--err { color: #f07840; }

.dossier-actions { margin-left: auto; flex-shrink: 0; }

/* ── Background picker ─────────────────────────────────── */
.bg-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
}

.bg-option {
  position: relative;
  height: 68px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.bg-option:hover { transform: scale(1.04); }

.bg-option.active {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(200,168,75,0.4);
}

.bg-option.active::before {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,168,75,0.2);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
}

.bg-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-size: 0.58rem;
  padding: 0.2rem 0.4rem;
  background: rgba(0,0,0,0.72);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bg-option-none {
  height: 68px;
  border-radius: 3px;
  border: 2px dashed rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-family: var(--font-head);
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}

.bg-option-none:hover,
.bg-option-none.active {
  border-color: var(--gold);
  color: var(--gold);
}

.customization-locked {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Patron badge ──────────────────────────────────────── */
.patron-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.patron-badge--guest {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.patron-badge--tenno {
  background: rgba(200,168,75,0.12);
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.35);
}

.patron-badge--operator {
  background: rgba(192,189,176,0.1);
  color: #c0bdb0;
  border: 1px solid rgba(192,189,176,0.35);
}

.patron-badge--warlord {
  background: rgba(232,148,10,0.15);
  color: #e8940a;
  border: 1px solid rgba(232,148,10,0.45);
  box-shadow: 0 0 12px rgba(232,148,10,0.2);
}

.patron-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.patron-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.patron-connected {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.patron-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.patron-perks li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.patron-perks li::before {
  content: '//';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
}

.panel h3 {
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.account-empty {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.account-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.status {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 2px;
  border: 1px solid var(--panel-border);
}

.status-pending { color: var(--gold); border-color: var(--gold); }
.status-accepted { color: #6fd17a; border-color: #6fd17a; }
.status-rejected { color: #ef5d5d; border-color: #ef5d5d; }

.app-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.app-summary dt {
  color: var(--text-dim);
}

.app-summary dd {
  color: var(--text);
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.watch-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.watch-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.watch-name {
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-name:hover { color: var(--gold); }

.watch-price {
  font-family: var(--font-head);
  color: var(--gold-bright);
  font-size: 0.9rem;
  white-space: nowrap;
}

.watch-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
}

.watch-remove:hover { color: #ef5d5d; }

.watch-btn.watching {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* ── Command Hub — Sprint 1 ─────────────────────────────── */

.hub-stat-bar {
  display: flex;
  gap: 1px;
  margin: .9rem 0 0;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
}

.hub-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .65rem .5rem;
  background: var(--panel);
  text-align: center;
}

.hub-stat-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold-bright);
  letter-spacing: .04em;
  line-height: 1.1;
}

.hub-stat-dim { color: var(--text-dim) !important; }

.hub-stat-label {
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-top: .18rem;
  text-transform: uppercase;
}

.hub-stat--patron .hub-stat-value { color: #e8940a; }

.hub-tabs {
  display: flex;
  gap: .25rem;
  margin: 1.4rem 0 0;
  border-bottom: 1px solid var(--panel-border);
}

.hub-tab {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}

.hub-tab:hover { color: var(--text); }

.hub-tab.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.tab-panel { display: none; padding-top: 1.25rem; }
.tab-panel.active { display: block; }

.hub-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
}

.hub-panel + .hub-panel { margin-top: 1rem; }

.hub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--panel-border);
}

.hub-panel-head-left {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hub-panel-head-left svg { color: var(--gold); opacity: .8; flex-shrink: 0; }

.hub-panel-title {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--text);
}

.hub-panel-count {
  font-family: var(--font-head);
  font-size: .7rem;
  color: var(--gold-bright);
  background: rgba(200,168,75,.12);
  border: 1px solid rgba(200,168,75,.25);
  border-radius: 3px;
  padding: .1rem .35rem;
  line-height: 1.4;
}

.hub-panel-link {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gold);
  text-decoration: none;
  opacity: .7;
  transition: opacity .15s;
}
.hub-panel-link:hover { opacity: 1; }

.hub-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.ws-alert-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .55rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 3px;
}

.ws-alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .5;
  flex-shrink: 0;
}

.ws-alert-name {
  color: var(--text);
  text-decoration: none;
  font-size: .88rem;
  flex: 1;
}
.ws-alert-name:hover { color: var(--gold); }

.ws-alert-state {
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 7rem;
  text-align: right;
}

.ws-alert-state--bright { color: var(--gold-bright); }
.ws-alert-state--cool   { color: #8ab4d8; }
.ws-alert-state--dim    { color: var(--text-dim); }

.hub-empty {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
}

.hub-empty-kicker {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold);
  margin: 0 0 .5rem;
}

.hub-empty-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin: 0 0 .4rem;
}

.hub-empty-desc {
  color: var(--text-dim);
  font-size: .88rem;
  margin: 0 0 1.25rem;
}

.hub-empty-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.hub-empty-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  font-size: .88rem;
}

.hub-empty-check {
  font-family: var(--font-head);
  font-size: .85rem;
  color: var(--text-dim);
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.hub-empty-step--done .hub-empty-check { color: var(--gold-bright); }
.hub-empty-step-label { flex: 1; color: var(--text); }
.hub-empty-step--done .hub-empty-step-label { color: var(--text-dim); }

.hub-empty-step-status {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--gold);
}

.hub-empty-step-link {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gold);
  text-decoration: none;
}
.hub-empty-step-link:hover { color: var(--gold-bright); }

/* ── Theme picker ────────────────────────────────────────── */
.theme-section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--panel-border); }

.theme-section-label {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: .75rem;
}

.theme-picker {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.theme-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
}

.theme-swatch:hover { transform: scale(1.18); }

.theme-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--swatch-color);
}

.theme-swatch-label {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .58rem;
  letter-spacing: .08em;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}

.theme-swatch:hover .theme-swatch-label,
.theme-swatch.active .theme-swatch-label { opacity: 1; }

/* ============ Forms ============ */
.app-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-errors {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  border-color: #ef5d5d;
  color: #ef5d5d;
  font-size: 0.9rem;
}

.form-errors ul {
  padding-left: 1.2rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
}

@media (max-width: 700px) {
  .account-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .account-profile { flex-wrap: wrap; }
  .account-profile .btn { margin-left: 0; }
  .hub-stat-value { font-size: .9rem; }
  .hub-tab { padding: .55rem .75rem; font-size: .7rem; }
  .ws-alert-state { min-width: 5rem; }
}

/* ============ Home Hero ============ */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
}

.home-hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  opacity: 0;
  transition: opacity 2.5s ease;
}

.home-hero-bg-layer:first-child {
  background-image: url('/Images/hero-home.jpeg');
}

.home-hero-bg-layer.active {
  opacity: 1;
  /* Slow continuous zoom in / zoom out (Ken-Burns) */
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,11,0.1) 0%, rgba(7,7,11,0.4) 60%, rgba(7,7,11,0.97) 100%),
    linear-gradient(90deg, rgba(7,7,11,0.5) 0%, rgba(7,7,11,0) 35%, rgba(7,7,11,0) 70%, rgba(7,7,11,0.5) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 6rem 1.5rem 7.5rem;
}

.home-hero-text {
  max-width: min(620px, 100%);
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.1rem, 2vw, 1.8rem);
}

.home-hero-kicker {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.home-hero-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.3rem, 1.2rem + 3.2vw, 4.2rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
  margin-top: 0.9rem;
}

.home-hero-sub {
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem);
  font-weight: 300;
  color: var(--text-dim);
  margin: 1.15rem 0 0;
  max-width: 46ch;
}

.home-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

/* Quiet secondary CTA (replaces the second big button) */
.hero-textlink {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-textlink:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero-status-kicker {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 1.5rem;
  white-space: nowrap;
  border-right: 1px solid var(--panel-border);
  flex-shrink: 0;
  animation: flicker 4s infinite;
}

@media (max-width: 720px) {
  .home-hero-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 6rem 1.25rem 7rem;
  }
  .home-hero-sub {
    font-size: 0.95rem;
  }
  .home-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .home-hero-ctas .btn {
    text-align: center;
    width: 100%;
  }

  .hero-status {
    justify-content: flex-start;
  }
}

/* Hero status auto-scroll ticker */
.hero-status-inner.ticker {
  animation: hero-ticker 26s ease-in-out infinite;
}

.hero-status-inner.ticker.ticker-paused {
  animation-play-state: paused;
}

@keyframes hero-ticker {
  0%, 8%   { transform: translateX(0); }
  46%, 54% { transform: translateX(var(--ticker-shift, 0)); }
  92%, 100% { transform: translateX(0); }
}

/* ============ Baro Ki'Teer Page ============ */

.page-bg--baro {
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(212,175,55,0.07) 0%, transparent 65%),
    url('/Images/orbiter-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.baro-hero { padding-bottom: 0; }

.baro-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Status card */
.baro-status-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2rem 2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.baro-status-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.baro-state-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .18em;
  padding: .3rem .8rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  border: 1px solid currentColor;
}

.baro-state-badge--here  { color: var(--gold-bright); background: rgba(212,175,55,0.1); }
.baro-state-badge--away  { color: var(--text-dim);    background: rgba(255,255,255,0.04); border-color: var(--panel-border); }

.baro-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.baro-state-badge--here  .baro-state-dot { box-shadow: 0 0 6px currentColor; }

.baro-countdown-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
}

.baro-countdown-label {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .22em;
  color: var(--text-dim);
}

.baro-countdown-time {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: .06em;
  line-height: 1.1;
}

.baro-location {
  font-size: .9rem;
  color: var(--text-dim);
  letter-spacing: .06em;
}

/* Active: 2-column grid */
.baro-active-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Calculator */
.baro-calc-inputs {
  display: flex;
  gap: .75rem;
}

.baro-calc-field { flex: 1; }

.baro-calc-field label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: .45rem;
}

.baro-currency-icon {
  font-size: .9rem;
  color: var(--gold);
}

.baro-currency-cr { color: #8ab4d8; }

.baro-calc-input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: .6rem .75rem;
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .15s;
}

.baro-calc-input:focus { outline: none; border-color: var(--gold); }

.baro-calc-total {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--panel-border);
}

.baro-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--text-dim);
  margin-bottom: .35rem;
}

.baro-total-vals { display: flex; gap: .75rem; }

.baro-total-duc { font-family: var(--font-head); color: var(--gold-bright); font-size: .88rem; }
.baro-total-cr  { font-family: var(--font-head); color: #8ab4d8; font-size: .88rem; }

.baro-afford-yes { color: #6fcf8e; font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; }
.baro-afford-no  { color: #ef5d5d; font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; }

/* Inventory list */
.baro-inv-count {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .85rem;
  color: var(--text-dim);
}

.baro-inv-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.baro-inv-loading {
  color: var(--text-dim);
  font-size: .88rem;
  padding: .5rem 0;
}

.baro-inv-item {
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  transition: border-color .2s, background .2s;
}

.baro-inv-item.affordable   { border-color: rgba(111,207,142,0.35); background: rgba(111,207,142,0.05); }
.baro-inv-item.unaffordable { opacity: .55; }

.baro-inv-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .65rem;
  cursor: pointer;
}

.baro-inv-check {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.baro-inv-name {
  flex: 1;
  font-size: .88rem;
  color: var(--text);
}

.baro-inv-ducats {
  font-family: var(--font-head);
  font-size: .75rem;
  color: var(--gold);
  white-space: nowrap;
}

.baro-inv-credits {
  font-family: var(--font-head);
  font-size: .75rem;
  color: #8ab4d8;
  white-space: nowrap;
}

.baro-inv-status {
  width: 1.1rem;
  text-align: center;
  font-size: .8rem;
  flex-shrink: 0;
}

.baro-can  { color: #6fcf8e; }
.baro-cant { color: #ef5d5d; }

/* Notification row */
.baro-notify-row {
  display: flex;
  justify-content: center;
  padding-top: .5rem;
}

/* Away panel */
.baro-away-panel {
  text-align: center;
  padding: 2.5rem 2rem;
}

.baro-away-label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: .04em;
  color: var(--text);
}

.baro-away-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Last visit */
.baro-last-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-dim);
  font-size: .85rem;
  margin: .4rem 0 .85rem;
}

.baro-last-date { color: var(--text-dim); }

.baro-last-inv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.baro-last-inv-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .88rem;
}

.baro-last-name    { flex: 1; color: var(--text-dim); }
.baro-last-ducats  { font-family: var(--font-head); font-size: .75rem; color: var(--gold); }
.baro-last-credits { font-family: var(--font-head); font-size: .75rem; color: #8ab4d8; }

@media (max-width: 700px) {
  .baro-active-grid { grid-template-columns: 1fr; }
  .baro-countdown-time { font-size: 1.8rem; }
  .baro-calc-inputs { flex-direction: column; }
}

/* ============================================================
   TYPE KIT — labels / data / UI in monospace (the "relay terminal"
   texture from the stage concept). Appended last so it wins the
   cascade over the earlier single-class font-family rules.
   ============================================================ */
.section-kicker,
.home-hero-kicker,
.hero-status-kicker,
.hs-label,
.hs-value,
.btn,
.btn-sm,
.focus-link,
.hero-textlink,
.nav-links a,
.nav-login,
.nav-baro-time,
.nav-stream-status,
.patreon-tier-name,
.patreon-tier-price,
.patreon-tier-badge-flag,
.preview-control-label,
.patron-badge,
.staff-badge,
.home-install-hint {
  font-family: var(--font-mono);
}
