/* ==========================================================================
   YAMLOBBY ORIGINAL THEME — "APEX LOBBY" COMPETITIVE GAMING IDENTITY
   Obsidian Night (#070b12), Deep Slate (#0f1726), Electric Cyan (#00e5ff),
   Esports Crimson (#ff2a5f). Display: Chakra Petch · Body: Plus Jakarta Sans.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,600;0,700;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@600;700;800&display=swap');

:root,
html,
html.yg-dark,
html[data-yg-accent],
body {
  --yl-bg: #070b12;
  --yl-bg-2: #0b111c;
  --yl-surface: #0f1726;
  --yl-surface-2: #162033;
  --yl-cyan: #00e5ff;
  --yl-cyan-deep: #00a8cc;
  --yl-crimson: #ff2a5f;
  --yl-emerald: #00f59b;
  --yl-fog: #f1f5f9;
  --yl-muted: #94a3b8;
  --yl-line: rgba(148, 163, 184, 0.14);
  --yl-line-strong: rgba(0, 229, 255, 0.30);

  /* Legacy token bridges so every subpage automatically inherits Apex Lobby */
  --yb-bg: var(--yl-bg);
  --yb-bg-2: var(--yl-bg-2);
  --yb-surface: var(--yl-surface);
  --yb-surface-2: var(--yl-surface-2);
  --yb-ink: var(--yl-bg);
  --yb-panel: var(--yl-surface);
  --yb-fog: var(--yl-fog);
  --yb-muted: var(--yl-muted);
  --yb-line: var(--yl-line);
  --yb-line-strong: var(--yl-line-strong);
  --yb-volt: var(--yl-cyan);
  --yb-blaze: var(--yl-crimson);
  --yb-emerald: var(--yl-emerald);

  --yg-accent: #00e5ff !important;
  --yg-accent-bright: #38f2ff !important;
  --yg-accent-soft: rgba(0, 229, 255, 0.11) !important;
  --yg-accent-border: rgba(0, 229, 255, 0.34) !important;
  --yg-accent-glow: rgba(0, 229, 255, 0.22) !important;
  --ap-surface: #0f1726 !important;
  --ap-base: #070b12 !important;
  --ap-fg: #00e5ff !important;
  --ap-border: rgba(148, 163, 184, 0.16) !important;
  --ap-soft: rgba(0, 229, 255, 0.09) !important;
}

html, body {
  background: var(--yl-bg) !important;
  background-image:
    radial-gradient(rgba(0, 229, 255, 0.055) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  color: var(--yl-fog) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  color-scheme: dark !important;
}

h1, h2, h3, .yb-home-hero h1 {
  font-family: 'Chakra Petch', system-ui, sans-serif !important;
  letter-spacing: -0.015em !important;
}

/* ---- Top Competitive Status Strip ---- */
.yb-topstrip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(90deg, #05080f 0%, #0a1324 50%, #05080f 100%) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16) !important;
  color: #94a3b8 !important;
  font: 700 10.5px/1 'JetBrains Mono', monospace !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  text-align: center !important;
}
.yb-topstrip b {
  color: var(--yl-cyan) !important;
  font-weight: 800 !important;
}
.yl-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yl-crimson);
  box-shadow: 0 0 10px var(--yl-crimson);
  display: inline-block;
  flex-shrink: 0;
  animation: ybLivePulse 1.6s infinite;
}

/* ==========================================================================
   APEX LOBBY NAVBAR — OBSIDIAN GLASS + ELECTRIC CYAN HUD
   ========================================================================== */
html body header#ygSiteNav.nav,
header#ygSiteNav,
#ygSiteNav {
  background: rgba(7, 11, 18, 0.92) !important;
  background-image: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.65) !important;
  color: #f1f5f9 !important;
}

.brand.yambuzz-brand,
#ygSiteNav .brand.yambuzz-brand,
.yg-footer-brand .yg-footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  text-decoration: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 6px !important;
}
.yl-brand-emblem {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.35)) !important;
}
.yambuzz-brand-text {
  font-family: 'Chakra Petch', system-ui, sans-serif !important;
  font-size: clamp(21px, 2.2vw, 26px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  text-shadow: none !important;
}
.yambuzz-brand-text::before {
  content: none !important;
  display: none !important;
}
.yambuzz-brand-text b,
.yambuzz-brand-text .yl-brand-accent {
  color: var(--yl-cyan) !important;
  -webkit-text-fill-color: var(--yl-cyan) !important;
  font-weight: 700 !important;
}

/* Nav Links: Sharp Competitive Tabs */
html body #ygSiteNav .links > a {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 7px !important;
  color: #94a3b8 !important;
  font: 700 13px/1 'Plus Jakarta Sans', system-ui, sans-serif !important;
  padding: 9px 11px !important;
  box-shadow: none !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}
html body #ygSiteNav .links > a:hover {
  background: rgba(0, 229, 255, 0.07) !important;
  color: #ffffff !important;
  border-color: rgba(0, 229, 255, 0.18) !important;
  transform: none !important;
}
html body #ygSiteNav .links > a.active {
  background: rgba(0, 229, 255, 0.11) !important;
  background-image: none !important;
  color: var(--yl-cyan) !important;
  border: 1px solid rgba(0, 229, 255, 0.30) !important;
  border-bottom: 2px solid var(--yl-cyan) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.14) !important;
}
html body #ygSiteNav .links > a.active svg {
  color: var(--yl-cyan) !important;
}

/* Nav Actions: Electric Cyan & Esports Crimson CTAs */
html body #ygSiteNav .nav-cta {
  background: linear-gradient(135deg, #ff2a5f 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(255, 42, 95, 0.35) !important;
}
html body #ygSiteNav .nav-cta:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}
html body #ygSiteNav .nav-upload-game {
  background: var(--yl-surface) !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #f1f5f9 !important;
  border-radius: 7px !important;
}
html body #ygSiteNav .nav-upload-game:hover {
  border-color: var(--yl-cyan) !important;
  color: var(--yl-cyan) !important;
}
html body #ygSiteNav .nav-actions .nav-register,
html body #ygSiteNav .nav-register {
  background: linear-gradient(135deg, #00e5ff 0%, #00b8d9 100%) !important;
  color: #041019 !important;
  font-weight: 800 !important;
  border-radius: 7px !important;
  border: 0 !important;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.32) !important;
}
html body #ygSiteNav .nav-actions .nav-register:hover {
  filter: brightness(1.08) !important;
}
html body #ygSiteNav .nav-auth:not(.nav-register) {
  background: var(--yl-surface) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #f1f5f9 !important;
  border-radius: 7px !important;
}
html body #ygSiteNav .yg-theme-toggle,
html body #ygSiteNav .yg-cache-btn {
  background: var(--yl-surface) !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #94a3b8 !important;
  border-radius: 7px !important;
}

/* Quick Search Trigger (Ctrl+K) */
#ygSiteNav .yg-quick-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  background: var(--yl-surface) !important;
  border: 1px solid rgba(0, 229, 255, 0.20) !important;
  color: #cbd5e1 !important;
  font: 600 12.5px/1 'Plus Jakarta Sans', system-ui, sans-serif !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
#ygSiteNav .yg-quick-search-btn:hover {
  border-color: var(--yl-cyan) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.20) !important;
}
#ygSiteNav .yg-quick-search-btn kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.34);
  font: 700 10px/1 'JetBrains Mono', monospace;
  color: var(--yl-cyan);
}
@media (max-width: 900px) {
  #ygSiteNav .yg-quick-search-btn span,
  #ygSiteNav .yg-quick-search-btn kbd { display: none !important; }
  #ygSiteNav .yg-quick-search-btn { width: 36px !important; padding: 0 !important; justify-content: center !important; }
}

/* ==========================================================================
   ACCOUNT TRIGGER & DROPDOWN — DEEP OBSIDIAN SLATE
   ========================================================================== */
html body #ygSiteNav .account-menu > summary.account-trigger {
  background: var(--yl-surface) !important;
  background-image: none !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 9px !important;
  color: #f1f5f9 !important;
}
html body #ygSiteNav details.account-menu > .account-panel,
html body #ygSiteNav #accountPanel {
  background: #0b111d !important;
  background-image: none !important;
  border: 1px solid rgba(0, 229, 255, 0.20) !important;
  border-top: 2px solid var(--yl-cyan) !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92) !important;
  color: #e2e8f0 !important;
}
html body #ygSiteNav .account-panel .account-header-card,
html body #ygSiteNav .account-panel .account-heading {
  background: #121c2e !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 10px !important;
}
html body #ygSiteNav .account-panel .account-header-identity > div > strong {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}
html body #ygSiteNav .account-panel .account-avatar.large,
html body #ygSiteNav .account-menu .account-avatar {
  background: #16233a !important;
  background-image: none !important;
  color: var(--yl-cyan) !important;
  border: 1.5px solid var(--yl-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.22) !important;
  border-radius: 8px !important;
}
html body #ygSiteNav .account-panel .account-full {
  background: linear-gradient(135deg, #00e5ff, #00b8d9) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #041019 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
html body #ygSiteNav .account-panel :is(.account-metrics > a, .account-playtime, .creator-upload-link, .account-owned, .account-level-card, .account-continue, .account-loyalty > a, .account-loyalty-links > a, .account-actions > a.account-link, .account-quick-tools > a, .account-fixed-grid > a) {
  background: #111a2b !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  color: #e2e8f0 !important;
  border-radius: 9px !important;
}
html body #ygSiteNav .account-panel :is(.account-metrics > a, .account-playtime, .creator-upload-link, .account-owned, .account-level-card, .account-continue, .account-loyalty > a, .account-loyalty-links > a, .account-actions > a.account-link, .account-quick-tools > a, .account-fixed-grid > a):hover {
  background: #18253c !important;
  border-color: rgba(0, 229, 255, 0.45) !important;
  color: #ffffff !important;
}
html body #ygSiteNav .account-panel .account-playtime > strong[data-playtime-total] {
  background: var(--yl-cyan) !important;
  background-image: none !important;
  color: #041019 !important;
  border-radius: 6px !important;
}
html body #ygSiteNav .account-panel .yg-gamer-hub-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 10px 0 8px !important;
}
html body #ygSiteNav .account-panel .yg-gamer-hub-bar > a.yg-hub-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 8px 8px !important;
  border-radius: 7px !important;
  background: #121c2e !important;
  border: 1px solid rgba(0, 229, 255, 0.28) !important;
  color: #f1f5f9 !important;
  font: 700 11px/1 'JetBrains Mono', monospace !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body #ygSiteNav .account-panel .yg-gamer-hub-bar > a.yg-hub-pill:hover {
  background: var(--yl-cyan) !important;
  color: #041019 !important;
}

/* ==========================================================================
   HOME HERO — APEX LOBBY (OBSIDIAN + ELECTRIC CYAN + ESPORTS CRIMSON)
   ========================================================================== */
.yb-home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5.5vw, 72px) 0 48px;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(255, 42, 95, 0.16), transparent 44%),
    radial-gradient(ellipse at 12% 88%, rgba(0, 229, 255, 0.14), transparent 46%),
    linear-gradient(180deg, #09101d 0%, #070b12 100%) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
}
.yb-home-hero .container {
  width: min(1360px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.85fr);
  gap: 34px;
  align-items: center;
}
.yb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.34);
  color: var(--yl-cyan);
  font: 700 11px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.yb-home-hero h1 {
  margin: 0 0 16px;
  font: 700 clamp(38px, 5.2vw, 66px)/1.02 'Chakra Petch', system-ui, sans-serif;
  color: #ffffff;
  text-transform: uppercase;
}
.yb-home-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #00e5ff 0%, #38bdf8 60%, #ff2a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.yb-home-hero .lede {
  margin: 0 0 26px;
  max-width: 570px;
  color: var(--yl-muted);
  font-size: 16px;
  line-height: 1.65;
}
.yb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.yb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #00e5ff 0%, #00b8d9 100%);
  color: #041019 !important;
  font: 800 13.5px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  text-decoration: none;
  border: 1px solid #00e5ff;
  box-shadow: 0 6px 22px rgba(0, 229, 255, 0.26);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.yb-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.36);
}
.yb-cta.amber {
  background: linear-gradient(135deg, #ff2a5f 0%, #e11d48 100%);
  border-color: #ff2a5f;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(255, 42, 95, 0.28);
}
.yb-cta.ghost {
  background: rgba(15, 23, 38, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #f1f5f9 !important;
  box-shadow: none;
}
.yb-cta.ghost:hover {
  border-color: var(--yl-cyan);
  color: var(--yl-cyan) !important;
}

.yl-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.yl-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yl-hero-stat strong {
  font: 700 20px/1 'Chakra Petch', sans-serif;
  color: #ffffff;
}
.yl-hero-stat span {
  font: 700 10.5px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yl-cyan);
}

.yb-hero-panel {
  background: linear-gradient(180deg, #10192b 0%, #0b1220 100%);
  border: 1px solid rgba(0, 229, 255, 0.20);
  border-top: 3px solid var(--yl-cyan);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.yb-hero-panel h2 {
  margin: 0 0 13px;
  font: 700 11.5px/1 'JetBrains Mono', monospace !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--yl-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.yb-hero-links { display: grid; gap: 6px; }
.yb-hero-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(22, 32, 51, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.10);
  color: #f1f5f9;
  text-decoration: none;
  font: 600 13.5px/1 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.yb-hero-links a span {
  font: 700 11.5px/1 'JetBrains Mono', monospace;
  color: var(--yl-cyan);
}
.yb-hero-links a:hover {
  background: #1b2942;
  border-color: rgba(0, 229, 255, 0.50);
  transform: translateX(2px);
}

/* ==========================================================================
   SHARED COMPETITIVE COMPONENTS (Squads, Live Hub, Clan Tag, Crates, Clips)
   ========================================================================== */
.yb-profile-banner {
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--yl-surface);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-left: 3px solid var(--yl-cyan);
  color: var(--yl-cyan);
  font: 700 11px/1.3 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.yb-clan-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--yl-cyan) !important;
  font: 800 11.5px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.yb-clan-tag--sm { padding: 2px 6px; font-size: 10.5px; }

.yb-live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.42);
  color: var(--yl-emerald) !important;
  font: 700 11.5px/1.1 'JetBrains Mono', monospace;
  text-decoration: none !important;
}
.yb-live-status:hover { background: rgba(0, 245, 155, 0.24); color: #fff !important; }
.yb-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yl-emerald);
  box-shadow: 0 0 9px var(--yl-emerald);
  animation: ybLivePulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes ybLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* Command Palette (Ctrl+K) */
.yb-cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  background: rgba(4, 7, 13, 0.84);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: start center;
  padding: min(12vh, 96px) 16px 24px;
}
.yb-cmd-backdrop[hidden] { display: none !important; }
.yb-cmd-box {
  width: min(620px, 100%);
  background: #0d1424;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-top: 2px solid var(--yl-cyan);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.92);
  overflow: hidden;
}
.yb-cmd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--yl-line);
  color: var(--yl-cyan);
}
.yb-cmd-head input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #ffffff;
  font: 500 15px/1.2 'Plus Jakarta Sans', system-ui, sans-serif;
}
.yb-cmd-head input::placeholder { color: #64748b; }
.yb-cmd-esc {
  padding: 4px 8px;
  border-radius: 5px;
  background: #162033;
  border: 1px solid var(--yl-line);
  color: #94a3b8;
  font: 700 10px/1 'JetBrains Mono', monospace;
}
.yb-cmd-list { max-height: min(56vh, 420px); overflow-y: auto; padding: 8px; }
.yb-cmd-group {
  padding: 8px 12px 4px;
  font: 700 10px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.yb-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font: 600 13.5px/1.2 'Plus Jakarta Sans', sans-serif;
}
.yb-cmd-item:hover,
.yb-cmd-item.is-active {
  background: rgba(0, 229, 255, 0.13);
  color: #ffffff;
}
.yb-cmd-meta { font: 600 11.5px/1 'JetBrains Mono', monospace; color: var(--yl-cyan); }
.yb-cmd-empty { padding: 28px 16px; text-align: center; color: #64748b; font-size: 13.5px; }
.yb-cmd-foot {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--yl-line);
  color: #64748b;
  font: 600 11px/1 'JetBrains Mono', monospace;
}

/* Live Hub Widget */
.yb-live-hub {
  width: min(1360px, calc(100% - 40px));
  margin: 26px auto 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) { .yb-live-hub { grid-template-columns: 1fr; } }
.yb-live-col {
  background: var(--yl-surface);
  border: 1px solid var(--yl-line);
  border-top: 2px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.yb-live-head { display: flex; align-items: center; gap: 8px; }
.yb-live-head h3 { margin: 0; font: 700 15px/1 'Chakra Petch', sans-serif; color: #fff; flex: 1; text-transform: uppercase; }
.yb-live-head a,
.yb-lfg-toggle {
  font: 700 11px/1 'JetBrains Mono', monospace;
  color: var(--yl-cyan);
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 6px;
  padding: 6px 10px;
  text-decoration: none;
  cursor: pointer;
}
.yb-live-head a:hover,
.yb-lfg-toggle:hover {
  background: var(--yl-cyan);
  color: #041019;
}
.yb-live-list { display: grid; gap: 6px; }
.yb-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--yl-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.10);
  font-size: 13px;
  text-decoration: none;
  color: #e2e8f0;
}
.yb-live-row--link:hover { border-color: rgba(0, 229, 255, 0.45); background: #1c2a42; }
.yb-live-user { font-weight: 700; color: #fff; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yb-live-game { color: var(--yl-emerald); font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.yb-live-meta { color: #94a3b8; font: 600 11.5px/1 'JetBrains Mono', monospace; white-space: nowrap; }
.yb-rank-num { color: var(--yl-cyan); margin-right: 4px; font-family: 'JetBrains Mono', monospace; }
.yb-live-empty { margin: 0; color: #94a3b8; font-size: 13px; line-height: 1.5; }
.yb-live-mini-btn {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255, 42, 95, 0.16);
  border: 1px solid rgba(255, 42, 95, 0.45);
  color: #ff7a9c;
  font: 700 12px/1 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
}

/* Squads, Duels, Crates, Clips, Power-Ups, Referrals */
.yb-squad-page { width: min(1040px, calc(100% - 32px)); margin: 28px auto 56px; display: grid; gap: 18px; }
.yb-squad-card {
  background: var(--yl-surface);
  border: 1px solid var(--yl-line);
  border-radius: 12px;
  padding: 22px;
}
.yb-squad-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.yb-squad-emblem {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--yl-surface-2);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--yl-cyan);
}
.yb-squad-kicker {
  font: 700 10.5px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  color: var(--yl-cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.yb-squad-meta h1 { margin: 0 0 8px; font: 700 clamp(24px, 3vw, 34px)/1.12 'Chakra Petch', sans-serif; color: #fff; }
.yb-squad-meta p { margin: 0 0 14px; color: var(--yl-muted); }
.yb-squad-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.yb-squad-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.yb-squad-member {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--yl-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.10);
}
.yb-squad-member-name { color: #fff; font-weight: 700; text-decoration: none; }
.yb-squad-member-info small { display: block; color: var(--yl-muted); font-size: 12px; margin-top: 3px; }
.yb-squad-lb { margin-top: 18px; }
.yb-squad-lb-list { display: grid; gap: 8px; margin-top: 12px; }
.yb-squad-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--yl-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.10);
  color: #e2e8f0;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.yb-squad-lb-row:hover { border-color: rgba(0, 229, 255, 0.45); background: #1c2a42; }
.yb-squad-rank { font: 800 13.5px/1 'JetBrains Mono', monospace; color: var(--yl-cyan); min-width: 34px; }
.yb-squad-lb-name { flex: 1; font-weight: 700; color: #fff; }
.yb-squad-lb-meta { font-size: 12.5px; color: var(--yl-muted); }

.yb-tag-edit-form, .yb-sqchat-form, .yb-lfg-form-row { display: flex; gap: 8px; align-items: center; }
.yb-tag-edit-form { margin: 10px 0 14px; }
.yb-lfg-form { display: grid; gap: 8px; }
.yb-tag-edit-form input,
.yb-sqchat-form input,
.yb-lfg-form input,
.yb-duel-form input {
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--yl-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.20);
  color: #fff;
  font: 500 13.5px/1.2 'Plus Jakarta Sans', sans-serif;
}
.yb-sqchat-form input { flex: 1; }
.yb-tag-edit-form button,
.yb-sqchat-form button,
.yb-lfg-form-row button,
.yb-duel-form button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  background: var(--yl-cyan);
  color: #041019;
  font: 800 12.5px/1 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.yb-duel-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.yb-sqchat-panel { margin-top: 18px; }
.yb-sqchat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.yb-sqchat-head h3 { margin: 0; color: #fff; font: 700 16px/1 'Chakra Petch', sans-serif; }
.yb-sqchat-list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #080d17;
  border: 1px solid var(--yl-line);
  margin-bottom: 10px;
}
.yb-sqchat-msg { font-size: 13.5px; color: #e2e8f0; line-height: 1.45; }
.yb-sqchat-msg b { color: var(--yl-cyan); }

.yb-crate-box {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 28px 20px;
  border-radius: 14px;
  background: var(--yl-surface);
  border: 2px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.yb-crate-box.is-shaking { animation: ybShake 0.22s infinite; }
.yb-crate-box[data-rarity="rare"] { border-color: #38bdf8; }
.yb-crate-box[data-rarity="epic"] { border-color: var(--yl-crimson); }
.yb-crate-box[data-rarity="legendary"] { border-color: var(--yl-cyan); box-shadow: 0 0 42px rgba(0, 229, 255, 0.38); }
@keyframes ybShake {
  0%, 100% { transform: rotate(0deg) scale(1.02); }
  25% { transform: rotate(-3deg) scale(1.04); }
  75% { transform: rotate(3deg) scale(1.04); }
}
.yb-crate-icon { font-size: 62px; line-height: 1; margin-bottom: 12px; }
.yb-crate-result { font: 800 15px/1.3 'JetBrains Mono', monospace; color: var(--yl-cyan); }

.yb-clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.yb-clip-card {
  background: var(--yl-surface);
  border: 1px solid var(--yl-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.yb-clip-img { width: 100%; height: 185px; object-fit: cover; display: block; background: #070b12; }
.yb-clip-link-box {
  height: 185px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #10192b, #231020);
  color: var(--yl-cyan);
  font: 800 14px/1 'JetBrains Mono', monospace;
  text-decoration: none;
}
.yb-clip-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.yb-clip-body h3 { margin: 0; font: 700 15px/1.3 'Chakra Petch', sans-serif; color: #fff; }
.yb-clip-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.yb-clip-foot a { color: var(--yl-muted); text-decoration: none; }
.yb-gg-btn {
  padding: 6px 11px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--yl-cyan);
  font: 700 11.5px/1 'JetBrains Mono', monospace;
  cursor: pointer;
}
.yb-gg-btn:hover { background: var(--yl-cyan); color: #041019; }

/* Global Surface Override — Unify All Subpages & Language Picker to Apex Lobby */
html.yg-dark .loyalty-panel,
html.yg-dark .yg-tools-panel,
html.yg-dark .feature-card,
html.yg-dark .public-identity,
html.yg-dark .bg-white.rounded-xl,
html.yg-dark .yg-game-description-card {
  background: var(--yl-surface) !important;
  background-image: none !important;
  border: 1px solid var(--yl-line) !important;
  border-radius: 12px !important;
  color: #e2e8f0 !important;
}
#ygLangPanel .yg-region-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #00e5ff 0%, #00a8cc 100%) !important;
  border-color: #38f2ff !important;
  color: #041019 !important;
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.28) !important;
}
#ygLangPanel .yg-region-list .yg-lang-option[aria-selected="true"] {
  background: rgba(0, 229, 255, 0.14) !important;
  border-color: #00e5ff !important;
  box-shadow: inset 3px 0 #00e5ff !important;
}
#ygLangPanel .yg-region-list .yg-lang-option[aria-selected="true"]::after {
  color: #00e5ff !important;
}

footer.footer,
.yg-premium-footer {
  background: #05080f !important;
  background-image: none !important;
  border-top: 1px solid rgba(0, 229, 255, 0.14) !important;
}

@media (max-width: 900px) {
  .yb-home-hero .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   APEX LOBBY TOTAL PURGE — ZERO LEGACY YAMGAMES PURPLE ON AUTH & SUBPAGES
   ========================================================================== */
body.yg-auth-page,
body.yg-auth-page .shell {
  background: #070b12 !important;
  color: #f1f5f9 !important;
}
body.yg-auth-page .aside {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 42, 95, 0.22), transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(0, 229, 255, 0.22), transparent 50%),
    linear-gradient(160deg, #0d1628 0%, #070b12 100%) !important;
  border-right: 1px solid rgba(0, 229, 255, 0.20) !important;
}
body.yg-auth-page .panel {
  background: #0c1322 !important;
  color: #f1f5f9 !important;
}
body.yg-auth-page .eyebrow,
body.yg-auth-page .back,
body.yg-auth-page .bottom a {
  color: #00e5ff !important;
}
body.yg-auth-page .submit {
  background: linear-gradient(135deg, #00e5ff 0%, #00b8d9 100%) !important;
  color: #041019 !important;
  font-weight: 800 !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.28) !important;
}
body.yg-auth-page .field input {
  background: #131e31 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #ffffff !important;
}
body.yg-auth-page .field input:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16) !important;
}

/* Override any remaining legacy purple accents across subpages */
:is(html.yg-dark, body.yg-dark) :is(.btn-primary, .ych-btn, .ych-play, .yg-btn-primary, .cta-btn) {
  background: linear-gradient(135deg, #00e5ff 0%, #00b8d9 100%) !important;
  color: #041019 !important;
  border-color: #00e5ff !important;
}