/* ==========================================================================
   YAMBUZZ ORIGINAL THEME — "CARBON VOLT" ESPORTS & GAMER SOCIAL IDENTITY
   100% distinct from YamGames: Pure Carbon Black (#09090b), Smoked Zinc
   (#141418), Electric Volt (#d4ff00), Blaze Coral (#ff4d2e). ZERO purple.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&family=Inter: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 {
  --yb-bg: #09090b;
  --yb-bg-2: #101014;
  --yb-surface: #141419;
  --yb-surface-2: #1c1c23;
  --yb-ink: #09090b;
  --yb-panel: #141419;
  --yb-fog: #f4f4f5;
  --yb-muted: #a1a1aa;
  --yb-line: rgba(255, 255, 255, 0.09);
  --yb-line-strong: rgba(255, 255, 255, 0.16);
  --yb-volt: #d4ff00;
  --yb-blaze: #ff4d2e;
  --yb-emerald: #10b981;
  --yg-accent: #d4ff00 !important;
  --yg-accent-bright: #d4ff00 !important;
  --yg-accent-soft: rgba(212, 255, 0, 0.10) !important;
  --yg-accent-border: rgba(212, 255, 0, 0.32) !important;
  --yg-accent-glow: rgba(212, 255, 0, 0.18) !important;
  --ap-surface: #141419 !important;
  --ap-base: #09090b !important;
  --ap-fg: #d4ff00 !important;
  --ap-border: rgba(255, 255, 255, 0.10) !important;
  --ap-soft: rgba(212, 255, 0, 0.08) !important;
}

html, body {
  background: var(--yb-bg) !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) !important;
  background-size: 26px 26px !important;
  color: var(--yb-fog) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color-scheme: dark !important;
}

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

/* ---- Top Tactical Identity Strip ---- */
.yb-topstrip {
  background: #050507 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #a1a1aa !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(--yb-volt) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   TACTICAL ESPORTS NAVBAR (Sharp geometry, underline active state, ZERO purple)
   ========================================================================== */
html body header#ygSiteNav.nav,
header#ygSiteNav,
#ygSiteNav {
  background: rgba(9, 9, 11, 0.94) !important;
  background-image: none !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
  color: #f4f4f5 !important;
}

.brand.yambuzz-brand,
#ygSiteNav .brand.yambuzz-brand,
.yg-footer-brand .yg-footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
}
.yambuzz-brand-text {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-size: clamp(22px, 2.2vw, 27px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !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: 6px !important;
  text-shadow: none !important;
}
.yambuzz-brand-text::before {
  content: "//" !important;
  color: var(--yb-volt) !important;
  -webkit-text-fill-color: var(--yb-volt) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 800 !important;
  letter-spacing: -0.08em !important;
}

/* Nav Links: Clean Tactical Tabs (NO purple pills!) */
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: 8px !important;
  color: #a1a1aa !important;
  font: 600 13px/1 'Inter', 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(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: none !important;
}
html body #ygSiteNav .links > a.active {
  background: rgba(212, 255, 0, 0.09) !important;
  background-image: none !important;
  color: var(--yb-volt) !important;
  border: 1px solid rgba(212, 255, 0, 0.28) !important;
  border-bottom: 2px solid var(--yb-volt) !important;
  box-shadow: none !important;
}
html body #ygSiteNav .links > a.active svg {
  color: var(--yb-volt) !important;
}

/* Nav Actions: Crisp Carbon & Volt/Blaze Buttons */
html body #ygSiteNav .nav-cta {
  background: var(--yb-blaze) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(255, 77, 46, 0.30) !important;
}
html body #ygSiteNav .nav-cta:hover {
  background: #ff6246 !important;
  transform: translateY(-1px) !important;
}
html body #ygSiteNav .nav-upload-game {
  background: #18181f !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f4f4f5 !important;
  border-radius: 8px !important;
}
html body #ygSiteNav .nav-upload-game:hover {
  border-color: var(--yb-volt) !important;
  color: var(--yb-volt) !important;
}
html body #ygSiteNav .nav-actions .nav-register,
html body #ygSiteNav .nav-register {
  background: var(--yb-volt) !important;
  background-image: none !important;
  color: #09090b !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  border: 0 !important;
  box-shadow: 0 4px 16px rgba(212, 255, 0, 0.25) !important;
}
html body #ygSiteNav .nav-actions .nav-register:hover {
  background: #e2ff4d !important;
}
html body #ygSiteNav .nav-auth:not(.nav-register) {
  background: #18181f !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f4f4f5 !important;
  border-radius: 8px !important;
}
html body #ygSiteNav .yg-theme-toggle,
html body #ygSiteNav .yg-cache-btn {
  background: #18181f !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #a1a1aa !important;
  border-radius: 8px !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: 8px !important;
  background: #141419 !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: #a1a1aa !important;
  font: 600 12.5px/1 'Inter', system-ui, sans-serif !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
#ygSiteNav .yg-quick-search-btn:hover {
  border-color: var(--yb-volt) !important;
  color: #ffffff !important;
}
#ygSiteNav .yg-quick-search-btn kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(212, 255, 0, 0.12);
  border: 1px solid rgba(212, 255, 0, 0.30);
  font: 700 10px/1 'JetBrains Mono', monospace;
  color: var(--yb-volt);
}
@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 — PURE CARBON ZINC (ZERO PURPLE)
   ========================================================================== */
html body #ygSiteNav .account-menu > summary.account-trigger {
  background: #141419 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  color: #f4f4f5 !important;
}
html body #ygSiteNav details.account-menu > .account-panel,
html body #ygSiteNav #accountPanel {
  background: #101014 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 2px solid var(--yb-volt) !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9) !important;
  color: #e4e4e7 !important;
}
html body #ygSiteNav .account-panel .account-header-card,
html body #ygSiteNav .account-panel .account-heading {
  background: #18181f !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !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: #1f1f27 !important;
  background-image: none !important;
  color: var(--yb-volt) !important;
  border: 1.5px solid var(--yb-volt) !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}
html body #ygSiteNav .account-panel .account-full {
  background: var(--yb-volt) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #09090b !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: #17171d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e4e4e7 !important;
  border-radius: 10px !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: #1f1f27 !important;
  border-color: rgba(212, 255, 0, 0.45) !important;
  color: #ffffff !important;
}
html body #ygSiteNav .account-panel .account-playtime > strong[data-playtime-total] {
  background: var(--yb-volt) !important;
  background-image: none !important;
  color: #09090b !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: 8px !important;
  background: #18181f !important;
  border: 1px solid rgba(212, 255, 0, 0.25) !important;
  color: #f4f4f5 !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(--yb-volt) !important;
  color: #09090b !important;
}

/* ==========================================================================
   HOME HERO — CARBON + BLAZE CORAL + VOLT LIME
   ========================================================================== */
.yb-home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 64px) 0 42px;
  background:
    radial-gradient(ellipse at 92% 10%, rgba(255, 77, 46, 0.16), transparent 44%),
    radial-gradient(ellipse at 8% 90%, rgba(212, 255, 0, 0.10), transparent 40%),
    linear-gradient(180deg, #0b0b0e 0%, #09090b 100%) !important;
  border-bottom: 1px solid var(--yb-line);
}
.yb-home-hero .container {
  width: min(1360px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: center;
}
.yb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(212, 255, 0, 0.10);
  border: 1px solid rgba(212, 255, 0, 0.28);
  color: var(--yb-volt);
  font: 700 11px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.yb-home-hero h1 {
  margin: 0 0 14px;
  font: 700 clamp(36px, 5vw, 62px)/1.03 'Space Grotesk', system-ui, sans-serif;
  color: #ffffff;
}
.yb-home-hero h1 em {
  font-style: normal;
  color: var(--yb-volt);
}
.yb-home-hero .lede {
  margin: 0 0 24px;
  max-width: 560px;
  color: var(--yb-muted);
  font-size: 16px;
  line-height: 1.65;
}
.yb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.yb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--yb-volt);
  color: #09090b !important;
  font: 800 13.5px/1 'Inter', system-ui, sans-serif;
  text-decoration: none;
  border: 1px solid var(--yb-volt);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.yb-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.yb-cta.amber {
  background: var(--yb-blaze);
  border-color: var(--yb-blaze);
  color: #ffffff !important;
}
.yb-cta.ghost {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f4f5 !important;
}
.yb-cta.ghost:hover { border-color: var(--yb-volt); color: var(--yb-volt) !important; }

.yb-hero-panel {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 3px solid var(--yb-volt);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}
.yb-hero-panel h2 {
  margin: 0 0 12px;
  font: 700 12px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yb-muted);
}
.yb-hero-links { display: grid; gap: 6px; }
.yb-hero-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  text-decoration: none;
  font: 600 13.5px/1 'Inter', sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.yb-hero-links a span {
  font: 700 11.5px/1 'JetBrains Mono', monospace;
  color: var(--yb-volt);
}
.yb-hero-links a:hover {
  background: #202029;
  border-color: rgba(212, 255, 0, 0.45);
}

/* ==========================================================================
   SHARED TACTICAL COMPONENTS (Squads, Live Hub, Clan Tag, Crates, Clips, Cmd)
   ========================================================================== */
.yb-profile-banner {
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #141419;
  border: 1px solid rgba(212, 255, 0, 0.25);
  border-left: 3px solid var(--yb-volt);
  color: var(--yb-volt);
  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(212, 255, 0, 0.12);
  border: 1px solid rgba(212, 255, 0, 0.45);
  color: var(--yb-volt) !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(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399 !important;
  font: 700 11.5px/1.1 'JetBrains Mono', monospace;
  text-decoration: none !important;
}
.yb-live-status:hover { background: rgba(16, 185, 129, 0.24); color: #fff !important; }
.yb-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  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(5, 5, 7, 0.82);
  backdrop-filter: blur(8px);
  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: #121217;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--yb-volt);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.yb-cmd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--yb-line);
  color: var(--yb-volt);
}
.yb-cmd-head input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #ffffff;
  font: 500 15px/1.2 'Inter', system-ui, sans-serif;
}
.yb-cmd-head input::placeholder { color: #71717a; }
.yb-cmd-esc {
  padding: 4px 8px;
  border-radius: 5px;
  background: #1c1c23;
  border: 1px solid var(--yb-line);
  color: #a1a1aa;
  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: #71717a;
}
.yb-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e4e4e7;
  text-decoration: none;
  font: 600 13.5px/1.2 'Inter', sans-serif;
}
.yb-cmd-item:hover,
.yb-cmd-item.is-active {
  background: rgba(212, 255, 0, 0.12);
  color: #ffffff;
}
.yb-cmd-meta { font: 600 11.5px/1 'JetBrains Mono', monospace; color: #a1a1aa; }
.yb-cmd-empty { padding: 28px 16px; text-align: center; color: #71717a; font-size: 13.5px; }
.yb-cmd-foot {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--yb-line);
  color: #71717a;
  font: 600 11px/1 'JetBrains Mono', monospace;
}

/* Live Hub Widget */
.yb-live-hub {
  width: min(1360px, calc(100% - 40px));
  margin: 22px 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: #121217;
  border: 1px solid var(--yb-line);
  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 14px/1 'Space Grotesk', sans-serif; color: #fff; flex: 1; }
.yb-live-head a,
.yb-lfg-toggle {
  font: 700 11px/1 'JetBrains Mono', monospace;
  color: var(--yb-volt);
  background: rgba(212, 255, 0, 0.10);
  border: 1px solid rgba(212, 255, 0, 0.30);
  border-radius: 6px;
  padding: 5px 9px;
  text-decoration: none;
  cursor: pointer;
}
.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: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  text-decoration: none;
  color: #e4e4e7;
}
.yb-live-row--link:hover { border-color: rgba(212, 255, 0, 0.4); background: #202029; }
.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: #34d399; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.yb-live-meta { color: #a1a1aa; font: 600 11.5px/1 'JetBrains Mono', monospace; white-space: nowrap; }
.yb-rank-num { color: var(--yb-volt); margin-right: 4px; font-family: 'JetBrains Mono', monospace; }
.yb-live-empty { margin: 0; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.yb-live-mini-btn {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255, 77, 46, 0.16);
  border: 1px solid rgba(255, 77, 46, 0.45);
  color: #ff8a75;
  font: 700 12px/1 'Inter', 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: #121217;
  border: 1px solid var(--yb-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: #18181f;
  border: 1px solid rgba(212, 255, 0, 0.35);
  color: var(--yb-volt);
}
.yb-squad-kicker {
  font: 700 10.5px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  color: var(--yb-volt);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.yb-squad-meta h1 { margin: 0 0 8px; font: 700 clamp(24px, 3vw, 34px)/1.12 'Space Grotesk', sans-serif; color: #fff; }
.yb-squad-meta p { margin: 0 0 14px; color: var(--yb-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: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.yb-squad-member-name { color: #fff; font-weight: 700; text-decoration: none; }
.yb-squad-member-info small { display: block; color: var(--yb-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: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.yb-squad-lb-row:hover { border-color: rgba(212, 255, 0, 0.45); background: #202029; }
.yb-squad-rank { font: 800 13.5px/1 'JetBrains Mono', monospace; color: var(--yb-volt); min-width: 34px; }
.yb-squad-lb-name { flex: 1; font-weight: 700; color: #fff; }
.yb-squad-lb-meta { font-size: 12.5px; color: var(--yb-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: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font: 500 13.5px/1.2 'Inter', 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(--yb-volt);
  color: #09090b;
  font: 800 12.5px/1 'Inter', 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 'Space Grotesk', sans-serif; }
.yb-sqchat-list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #0a0a0d;
  border: 1px solid var(--yb-line);
  margin-bottom: 10px;
}
.yb-sqchat-msg { font-size: 13.5px; color: #e4e4e7; line-height: 1.45; }
.yb-sqchat-msg b { color: var(--yb-volt); }

.yb-crate-box {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 28px 20px;
  border-radius: 14px;
  background: #141419;
  border: 2px solid rgba(212, 255, 0, 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(--yb-blaze); }
.yb-crate-box[data-rarity="legendary"] { border-color: var(--yb-volt); box-shadow: 0 0 40px rgba(212, 255, 0, 0.35); }
@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(--yb-volt); }

.yb-clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.yb-clip-card {
  background: #121217;
  border: 1px solid var(--yb-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.yb-clip-img { width: 100%; height: 185px; object-fit: cover; display: block; background: #09090b; }
.yb-clip-link-box {
  height: 185px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #18181f, #261414);
  color: var(--yb-volt);
  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 'Space Grotesk', 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(--yb-muted); text-decoration: none; }
.yb-gg-btn {
  padding: 6px 11px;
  border-radius: 6px;
  background: rgba(212, 255, 0, 0.10);
  border: 1px solid rgba(212, 255, 0, 0.35);
  color: var(--yb-volt);
  font: 700 11.5px/1 'JetBrains Mono', monospace;
  cursor: pointer;
}
.yb-gg-btn:hover { background: var(--yb-volt); color: #09090b; }

/* Global Surface Override — Eliminate Legacy Purple/Navy Across All Subpages */
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: #121217 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 12px !important;
  color: #e4e4e7 !important;
}
footer.footer,
.yg-premium-footer {
  background: #060608 !important;
  background-image: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

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