/*
  SkinRush Arena - Hub Theme
  Light, minimal surface shared by game pages and global tools.
*/

:root {
  /* SkinRush Arena Design System - Three-Color Palette */
  --black: #0a0a0b;
  --white: #ffffff;
  --blue: #0070f3;

  /* Derived colors from the three base colors */
  --neutral-900: #0a0a0b; /* near black */
  --neutral-800: #1a1a1b;
  --neutral-700: #2a2a2b;
  --neutral-600: #3a3a3b;
  --neutral-500: #4a4a4b; /* medium gray */
  --neutral-400: #5a5a5b;
  --neutral-300: #6a6a6b;
  --neutral-200: #dadada; /* light gray */
  --neutral-100: #eaEAea;
  --neutral-50: #f5f5f5; /* very light gray */

  --blue-dark: #005ac5;
  --blue-light: #3385ff;
  --blue-bg: rgba(0, 112, 243, 0.1);

  /* Game-specific accents (minimal, non-branding) */
  --cs2-accent: #f97316; /* orange - only for small badges */
  --valorant-accent: #ef4444; /* red - only for small badges */
  --fortnite-accent: #2563eb; /* blue - close to primary blue */
  --wart-thunder-accent: #16a34a; /* green - only for small badges */

  /* Hub-specific variables redefined using design system */
  --hub-white: var(--white);
  --hub-paper: var(--neutral-50);
  --hub-soft: var(--neutral-100);
  --hub-line: var(--neutral-200);
  --hub-muted: var(--neutral-400);
  --hub-faint: var(--neutral-300);
  --hub-ink: var(--neutral-800);
  --hub-blue: var(--blue);
  --hub-orange: var(--cs2-accent);
  --hub-green: var(--wart-thunder-accent);
  --hub-red: var(--valorant-accent);

  /* SkinRush Arena Design System - Core Palette (from home page) */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e0e0e0;
  --neutral-300: #bdbdbd;
  --neutral-400: #9e9e9e;
  --neutral-500: #757575;
  --neutral-800: #212121;
  --neutral-900: #0a0a0b;

  --blue: #0070f3;
  --blue-dark: #005ac8;
  --blue-light: #339bff;
  --blue-bg: rgba(0, 112, 243, 0.08);

  --orange: #f97316;
  --orange-dark: #d96a0d;
  --orange-bg: rgba(249, 115, 22, 0.08);

  --white: #ffffff;
  --black: #0a0a0b;

  /* SkinRush Arena Design System - Component Styles */
  /* ── HERO ── */
  .hero {
      padding: 140px 2rem 96px;
      max-width: 1120px;
      margin: 0 auto;
  }

  .hero-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
      gap: 4rem;
      align-items: center;
  }

  .hero-copy { min-width: 0; }

  .hero-eyebrow {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--neutral-400);
      margin-bottom: 1.5rem;
  }

  .hero-title-row {
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
  }

  .hero-title {
      font-size: clamp(3.5rem, 8vw, 7rem);
      font-weight: 900;
      line-height: 0.95;
      letter-spacing: -0.04em;
      color: var(--neutral-900);
  }
  .hero-title .dim { color: var(--neutral-300); font-weight: 300; }

  .hero-crosshair {
      flex-shrink: 0;
      margin-top: 8px;
      transition: transform 0.6s ease, color 0.6s ease;
      color: var(--blue-light);
  }
  .hero-crosshair.tick {
      transform: rotate(45deg) scale(1.15);
      color: var(--orange);
  }
  .hero-crosshair svg { width: clamp(48px, 8vw, 80px); height: clamp(48px, 8vw, 80px); }

  .hero-lede {
      font-size: 1rem;
      color: var(--neutral-500);
      max-width: 420px;
      margin-bottom: 2.5rem;
      line-height: 1.6;
  }

  .hero-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 4rem;
  }

  .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--orange);
      color: var(--white);
      font-weight: 700;
      font-size: 0.85rem;
      padding: 12px 28px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s;
  }
  .btn-primary:hover { background: var(--orange-dark); }
  .btn-primary svg { width: 16px; height: 16px; }

  .btn-ghost {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--neutral-400);
      text-decoration: underline;
      text-underline-offset: 4px;
      cursor: pointer;
      background: none;
      border: none;
      transition: color 0.15s;
  }
  .btn-ghost:hover { color: var(--neutral-700); }

  /* ── STATS ── */
  .hero-stats {
      display: flex;
      gap: 3rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--neutral-200);
  }

  /* 3D case hero */
  .hero-visual {
      position: relative;
      min-height: 440px;
      display: flex;
      align-items: center;
      justify-content: center;
      perspective: 1100px;
      isolation: isolate;
  }
  .hero-visual::before {
      content: "";
      position: absolute;
      width: 76%;
      height: 44%;
      bottom: 28px;
      left: 12%;
      background: radial-gradient(ellipse at center, rgba(23,23,23,0.20) 0%, rgba(23,23,23,0.08) 38%, transparent 70%);
      filter: blur(14px);
      transform: rotateX(68deg);
      z-index: -1;
  }
  .model-viewer-container {
      position: relative;
      width: min(100%, 440px);
      aspect-ratio: 1 / 1;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .hero-case-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 28px 60px rgba(37, 99, 235, 0.22));
  }
  .hero-stat-value {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--blue);
      line-height: 1;
  }
  .hero-stat-label {
      font-size: 0.7rem;
      color: var(--neutral-400);
      margin-top: 4px;
  }

  /* ── LIVE TICKER ── */
  .ticker-wrap {
      border-top: 1px solid var(--neutral-200);
      border-bottom: 1px solid var(--neutral-200);
      background: var(--neutral-50);
      padding: 12px 0;
      overflow: hidden;
  }
  .ticker-label {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 2rem;
      margin-bottom: 8px;
  }
  .ticker-dot {
      width: 6px; height: 6px;
      background: var(--orange);
      border-radius: 50%;
      animation: pulse 1.5s ease-in-out infinite;
  }
  .ticker-label-text {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--neutral-400);
  }
  .ticker-track {
      display: flex;
      gap: 3rem;
      animation: scroll-left 30s linear infinite;
      width: max-content;
      padding: 0 2rem;
  }
  .ticker-track:hover { animation-play-state: paused; }
  .ticker-item {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
  }
  .ticker-bar { width: 3px; height: 32px; border-radius: 2px; }
  .ticker-skin { font-size: 0.75rem; font-weight: 700; color: var(--neutral-800); line-height: 1; }
  .ticker-box { font-size: 0.65rem; color: var(--neutral-400); margin-top: 3px; }
  .ticker-price { font-size: 0.75rem; font-weight: 700; }

  /* ── SECTION ── */
  .section {
      padding: 5rem 2rem;
      max-width: 960px;
      margin: 0 auto;
  }
  .section-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 3rem;
  }
  .section-title {
      font-size: 2rem;
      font-weight: 900;
      letter-spacing: -0.03em;
  }
  .section-link {
      font-size: 0.8rem;
      color: var(--neutral-400);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: color 0.15s;
  }
  .section-link:hover { color: var(--orange); }
  .section-link svg { width: 14px; height: 14px; }

  /* ── GAMES GRID ── */
  .games-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      background: transparent;
  }
  @media (min-width: 760px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }

  .game-card {
      position: relative;
      aspect-ratio: 1 / 1;
      background: var(--white);
      border: 1px solid var(--neutral-200);
      padding: 1.25rem;
      text-decoration: none;
      color: var(--neutral-900);
      cursor: default;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      isolation: isolate;
  }
  .game-card::before {
      content: attr(data-mark);
      position: absolute;
      right: -0.18em;
      bottom: -0.26em;
      z-index: -1;
      font-size: clamp(4.6rem, 9vw, 7rem);
      font-weight: 900;
      letter-spacing: -0.08em;
      line-height: 1;
      color: var(--game-accent, var(--orange));
      opacity: 0.13;
      filter: blur(1px);
      transform: rotate(-8deg);
  }
  .game-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
  }
  .game-logo {
      width: 58px;
      height: 75px;
      border: 1px solid color-mix(in srgb, var(--game-accent, var(--orange)) 36%, var(--neutral-200));
      background:
          linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.2)),
          color-mix(in srgb, var(--game-accent, var(--orange)) 12%, var(--white));
      display: grid;
      place-items: center;
      font-size: 0.95rem;
      font-weight: 900;
      letter-spacing: -0.04em;
      color: color-mix(in srgb, var(--game-accent, var(--orange)) 70%, var(--neutral-900));
  }
  .game-card-tag {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--neutral-400);
  }
  .game-card-name {
      font-size: 1.35rem;
      font-weight: 900;
      letter-spacing: -0.035em;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
  }
  .game-card-desc { font-size: 0.76rem; color: var(--neutral-500); line-height: 1.45; }
  .game-badge {
      display: inline-block;
      font-size: 0.55rem;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: var(--game-accent, var(--orange));
      color: var(--white);
      padding: 2px 7px;
      border-radius: 2px;
  }

  /* ── ACCESS CARDS ── */
  .access-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--neutral-200);
  }
  @media (min-width: 760px) { .access-grid { grid-template-columns: repeat(3, 1fr); } }

  .access-card {
      min-height: 190px;
      background: var(--white);
      padding: 1.75rem;
      color: var(--neutral-900);
      text-decoration: none;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: background 0.15s, color 0.15s;
  }
  .access-card:hover { background: var(--orange-bg); }
  .access-card.blue:hover { background: var(--blue-bg); }
  .access-card-kicker {
      font-size: 0.6rem;
      font-weight: 800;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--neutral-400);
  }
  .access-card-title {
      font-size: 1.65rem;
      font-weight: 900;
      letter-spacing: -0.035em;
      line-height: 1;
  }
  .access-card-desc {
      font-size: 0.78rem;
      color: var(--neutral-500);
      line-height: 1.5;
      max-width: 220px;
  }
  .access-card-arrow {
      align-self: flex-end;
      width: 18px;
      height: 18px;
      color: var(--neutral-400);
      transition: transform 0.15s, color 0.15s;
  }
  .access-card:hover .access-card-arrow {
      transform: translateX(4px);
      color: var(--orange);
  }
  .access-card.blue:hover .access-card-arrow { color: var(--blue); }

  /* ── HOW IT WORKS ── */
  .how-section {
      background: var(--neutral-50);
      border-top: 1px solid var(--neutral-200);
      padding: 5rem 2rem;
  }
  .how-inner { max-width: 960px; margin: 0 auto; }
  .how-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1px;
      background: var(--neutral-200);
      margin-top: 3rem;
  }
  @media (min-width: 640px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
  .how-card {
      background: var(--white);
      padding: 2.5rem 2rem;
  }
  .how-number {
      font-size: 0.7rem;
      font-weight: 900;
      margin-bottom: 1.5rem;
  }
  .how-number.blue { color: var(--blue); }
  .how-number.orange { color: var(--orange); }
  .how-card-title {
      font-size: 1.75rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      margin-bottom: 0.75rem;
  }
  .how-card-desc { font-size: 0.82rem; color: var(--neutral-500); line-height: 1.6; }

  /* ── MODES ── */
  .modes-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1px;
      background: var(--neutral-200);
  }
  @media (min-width: 640px) { .modes-grid { grid-template-columns: 1fr 1fr; } }
  .mode-card {
      background: var(--white);
      padding: 2.5rem;
      text-decoration: none;
      color: var(--neutral-900);
      transition: background 0.15s;
  }
  .mode-card:hover.blue-hover { background: var(--blue-bg); }
  .mode-card:hover.orange-hover { background: var(--orange-bg); }
  .mode-tag {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      margin-bottom: 1rem;
  }
  .mode-tag.blue { color: var(--blue-light); }
  .mode-tag.orange { color: var(--orange); }
  .mode-title {
      font-size: 2rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      margin-bottom: 0.75rem;
      transition: color 0.15s;
  }
  .blue-hover:hover .mode-title { color: var(--blue); }
  .orange-hover:hover .mode-title { color: var(--orange); }
  .mode-desc { font-size: 0.82rem; color: var(--neutral-500); line-height: 1.6; max-width: 280px; }

  /* ── CTA ── */
  .cta-section {
      border-top: 1px solid var(--neutral-200);
      background: var(--blue);
      padding: 6rem 2rem;
      text-align: center;
  }
  .cta-title {
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 900;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--white);
      margin-bottom: 1.5rem;
  }
  .cta-sub {
      color: rgba(255,255,255,0.65);
      font-size: 1rem;
      margin-bottom: 2.5rem;
  }

  /* ── FOOTER ── */
  footer {
      border-top: 1px solid var(--neutral-200);
      background: var(--white);
      padding: 3rem 2rem;
  }
  .footer-inner {
      max-width: 960px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 2.5rem;
  }
  @media (min-width: 640px) {
      .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  }
  .footer-brand-name {
      font-size: 0.85rem;
      font-weight: 900;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      margin-top: 8px;
      margin-bottom: 8px;
  }
  .footer-brand-desc { font-size: 0.78rem; color: var(--neutral-400); line-height: 1.6; max-width: 280px; }
  .footer-col-title {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--neutral-900);
      margin-bottom: 1rem;
  }
  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
  .footer-links a {
      font-size: 0.82rem;
      color: var(--neutral-400);
      text-decoration: none;
      transition: color 0.15s;
  }
  .footer-links a:hover { color: var(--neutral-900); }
  .footer-bottom {
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--neutral-200);
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: space-between;
      align-items: center;
      max-width: 960px;
      margin-left: auto;
      margin-right: auto;
  }
  .footer-copy { font-size: 0.72rem; color: var(--neutral-400); }
  .footer-discord {
      color: var(--neutral-400);
      transition: color 0.15s;
  }
  .footer-discord:hover { color: #5865F2; }
  .footer-discord svg { width: 18px; height: 18px; }

  /* ── KEYFRAMES ── */
  @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
  }
  @keyframes scroll-left {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
  }

  /* Responsive Breakpoints */
  @media (max-width: 900px) {
      .hero-shell { grid-template-columns: 1fr; gap: 2.5rem; }
      .hero-visual { min-height: 360px; }
  }
  @media (max-width: 640px) {
      .hero { padding: 100px 1.25rem 60px; }
      .hero-shell { grid-template-columns: 1fr; gap: 2rem; }
      .hero-title-row { gap: 1rem; }
      .hero-visual { min-height: 300px; }
      .spline-container { width: min(100%, 330px); }
      .cs2-case3d {
          --case-w: 238px;
          --case-h: 150px;
          --case-d: 76px;
      }
      .section { padding: 3rem 1.25rem; }
      .how-section { padding: 3rem 1.25rem; }
      .cta-section { padding: 4rem 1.25rem; }
      footer { padding: 2rem 1.25rem; }
  }
}

html,
body {
  background: var(--hub-white) !important;
  color: var(--hub-ink) !important;
}

body::before,
.hero-premium::before,
.hero-premium::after {
  display: none !important;
}

.main-content,
.app-wrapper,
main {
  background: var(--hub-white) !important;
  color: var(--hub-ink) !important;
}

.global-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60px !important;
  z-index: 1000 !important;
  background: var(--hub-white) !important;
  border-bottom: 1px solid var(--hub-line) !important;
  display: flex !important;
  align-items: center !important;
}

.global-header .header-inner {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 2rem !important;
  gap: 18px !important;
}

.global-header .nav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: var(--hub-ink) !important;
}

.global-header .nav-logo img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 4px !important;
}

.global-header .nav-logo-text {
  font-weight: 900 !important;
  font-size: 0.85rem !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
}

.global-header .nav-menu-toggle {
  display: none !important;
  width: 38px !important;
  height: 38px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: var(--hub-soft) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 6px !important;
  color: var(--hub-ink) !important;
}

.global-header .nav-menu-toggle span {
  width: 17px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transition: transform 0.18s ease, opacity 0.18s ease !important;
}

.global-header .nav-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}

.global-header .nav-menu-toggle.active span:nth-child(2) {
  opacity: 0 !important;
}

.global-header .nav-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

.global-header .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  list-style: none !important;
  flex: none !important;
  justify-content: flex-start !important;
}

.global-header .nav-links a,
.global-header .nav-drop-btn {
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: var(--hub-muted) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.global-header .nav-links a:hover,
.global-header .nav-links a.active,
.global-header .nav-drop:hover .nav-drop-btn {
  color: var(--hub-ink) !important;
  background: var(--hub-soft) !important;
}

.global-header .nav-drop {
  position: relative !important;
}

.global-header .nav-mega {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  width: min(840px, calc(100vw - 32px)) !important;
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 45px rgba(23,23,23,0.10) !important;
  padding: 10px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s !important;
  z-index: 1001 !important;
}

.global-header .nav-drop:hover .nav-mega {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.global-header .nav-mega-row {
  display: grid !important;
  grid-template-columns: 150px 1fr !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 8px !important;
}

.global-header .nav-mega-row:hover {
  background: var(--hub-paper) !important;
}

.global-header .nav-game {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  color: var(--hub-ink) !important;
  padding: 8px !important;
  text-decoration: none !important;
}

.global-header .nav-game span {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--game-accent, var(--hub-orange)) 14%, white) !important;
  color: var(--game-accent, var(--hub-orange)) !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

.global-header .nav-zone-links {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(72px, 1fr)) !important;
  gap: 6px !important;
}

.global-header .nav-zone-links a {
  justify-content: center !important;
  border: 1px solid var(--hub-line) !important;
  font-size: 0.72rem !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
}

.global-header .nav-zone-links a:hover {
  background: var(--hub-ink) !important;
  border-color: var(--hub-ink) !important;
  color: var(--hub-white) !important;
}

.global-header .nav-pages {
  width: min(360px, calc(100vw - 32px)) !important;
}

.global-header .nav-pages a {
  display: grid !important;
  gap: 3px !important;
  justify-content: stretch !important;
  align-items: center !important;
  min-height: auto !important;
  padding: 10px 12px !important;
  border: 1px solid var(--hub-line) !important;
  margin-bottom: 6px !important;
  text-decoration: none !important;
}

.global-header .nav-pages a strong {
  color: var(--hub-ink) !important;
  font-size: 0.78rem !important;
}

.global-header .nav-pages a span {
  color: var(--hub-muted) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}

.global-header .nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.global-header .nav-balance {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--hub-ink) !important;
  background: var(--hub-soft) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
}

.global-header .nav-balance .coin {
  color: var(--hub-orange) !important;
}

.global-header .profile-trigger {
  background: var(--hub-soft) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 6px !important;
  color: var(--hub-ink) !important;
}

.global-header .profile-info .username {
  color: var(--hub-ink) !important;
}

/* User Controls Adaptation */
.global-header .user-profile-menu {
  position: relative !important;
}

.global-header .profile-dropdown {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  right: 0 !important;
  min-width: 200px !important;
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
  z-index: 1001 !important;
}

.global-header .profile-dropdown.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.global-header .nav-mobile-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 12px !important;
  right: 12px !important;
  max-height: calc(100vh - 82px) !important;
  overflow-y: auto !important;
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 22px 55px rgba(23,23,23,0.16) !important;
  padding: 12px !important;
  z-index: 1003 !important;
}

.global-header .nav-mobile-menu.active {
  display: grid !important;
  gap: 12px !important;
}

.global-header .mobile-menu-section {
  display: grid !important;
  gap: 6px !important;
}

.global-header .mobile-menu-label {
  padding: 4px 2px !important;
  color: var(--hub-muted) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.global-header .nav-mobile-menu a,
.global-header .nav-mobile-menu button {
  min-height: 42px !important;
  display: grid !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 9px 12px !important;
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 6px !important;
  color: var(--hub-ink) !important;
  text-align: left !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.global-header .nav-mobile-menu a.active,
.global-header .nav-mobile-menu a:hover,
.global-header .nav-mobile-menu button:hover {
  background: var(--hub-soft) !important;
  border-color: var(--hub-blue) !important;
}

.global-header .nav-mobile-menu small {
  color: var(--hub-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Game Specific Navigation adaptation */
.global-header .game-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--hub-line) !important;
  height: 44px !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center !important;
}

.global-header .game-links a {
  color: var(--hub-muted) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
}

.global-header .game-links a:hover,
.global-header .game-links a.active {
  color: var(--hub-ink) !important;
  background: var(--hub-soft) !important;
}

.quick-zone-links a:hover,
.quick-zone-links a.active {
  background: var(--hub-ink) !important;
  border-color: var(--hub-ink);
  color: white !important;
}

.pages-switch-menu {
  width: min(360px, calc(100vw - 32px)) !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 6px;
}

.pages-switch-menu a {
  display: grid !important;
  gap: 3px;
  padding: 10px 12px !important;
  border: 1px solid var(--hub-line);
  border-radius: 6px !important;
}

.pages-switch-menu a strong {
  color: var(--hub-ink);
  font-size: 12px;
  font-weight: 900;
}

.pages-switch-menu a span {
  color: var(--hub-muted) !important;
  font-size: 11px;
  font-weight: 600;
}

.pages-switch-menu a:hover,
.pages-switch-menu a.active {
  background: var(--hub-soft) !important;
}

.game-nav {
  background: rgba(250, 250, 250, 0.92) !important;
  border-bottom: 1px solid var(--hub-line) !important;
}

.game-badge,
.badge-premium {
  background: var(--hub-soft) !important;
  border: 1px solid var(--hub-line) !important;
  color: var(--hub-muted) !important;
  border-radius: 4px !important;
}

.game-links a {
  color: var(--hub-muted) !important;
  border-radius: 4px !important;
}

.game-links a:hover,
.game-links a.active {
  background: var(--hub-white) !important;
  color: var(--hub-ink) !important;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.session-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  background: var(--hub-ink);
  border-radius: 4px;
  color: white !important;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.session-actions a:nth-child(2) {
  background: var(--hub-orange);
}

.session-actions a:nth-child(3) {
  background: var(--hub-blue);
}

.card,
.battle-card,
.case-card,
.mode-card,
.glass,
.item-card,
aside.glass,
.sidebar-item-active {
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 8px !important;
  color: var(--hub-ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card:hover,
.battle-card:hover,
.case-card:hover,
.item-card:hover {
  background: var(--hub-paper) !important;
  border-color: #d4d4d4 !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.battle-card {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  padding: 24px !important;
}

.battle-card-head,
.battle-card-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.battle-player-count,
.battle-box-more {
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.battle-box-list {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.battle-box-chip {
  display: grid;
  grid-template-columns: 34px auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  background: var(--hub-soft);
  border: 1px solid var(--hub-line);
  border-left: 3px solid var(--box-color, var(--hub-orange));
  border-radius: 6px;
  overflow: hidden;
}

.battle-box-chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.battle-box-chip span {
  color: var(--hub-ink) !important;
  font-size: 11px;
  font-weight: 900;
}

.battle-box-chip strong {
  min-width: 0;
  color: var(--hub-ink);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-pick-card:hover {
  transform: translateY(-2px);
  border-color: var(--hub-orange) !important;
  background: var(--hub-paper) !important;
}

.battle-pick-card.selected {
  background: #fff7ed !important;
}

.battle-ux-toolbar,
.battle-create-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--hub-paper);
  border: 1px solid var(--hub-line);
  border-radius: 8px;
}

.battle-ux-tabs,
.battle-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.battle-ux-toolbar .tab-btn,
.battle-create-presets button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--hub-white);
  border: 1px solid var(--hub-line);
  border-radius: 4px;
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-ux-toolbar .tab-btn.active,
.battle-create-presets button:hover {
  background: var(--hub-ink);
  border-color: var(--hub-ink);
  color: white !important;
}

.rounded-3xl,
.rounded-\[32px\],
.rounded-\[40px\],
.rounded-\[2rem\],
.rounded-2xl,
.rounded-xl {
  border-radius: 8px !important;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title {
  color: var(--hub-ink) !important;
  letter-spacing: -0.04em;
}

p,
span,
label,
td,
th,
.text-gray-500,
.text-gray-400,
.text-brand-muted,
.text-brand-secondary,
.mode-desc,
.how-card-desc {
  color: inherit;
}

.text-gray-500,
.text-gray-400,
.text-brand-muted,
.text-brand-secondary,
.mode-desc,
.how-card-desc {
  color: var(--hub-muted) !important;
}

.text-white,
.text-white\/90,
.text-white\/40 {
  color: var(--hub-ink) !important;
}

.text-brand-electric,
.text-blue-500,
.text-blue-400 {
  color: var(--hub-blue) !important;
}

.text-orange-500,
.text-brand-warning {
  color: var(--hub-orange) !important;
}

.text-brand-success {
  color: var(--hub-green) !important;
}

.text-red-500,
.text-brand-error {
  color: var(--hub-red) !important;
}

.bg-brand-black,
.bg-brand-graphite,
.bg-brand-tertiary,
.bg-white\/5,
.bg-white\/\[0\.02\],
.bg-black\/40,
.bg-brand-graphite\/50,
.bg-brand-black\/20,
.bg-brand-black\/40,
.bg-brand-black\/50 {
  background: var(--hub-soft) !important;
}

.border-white\/5,
.border-white\/10,
.border-white\/20,
.border-brand-electric\/20,
.border-brand-purple\/20,
.border-brand-warning\/20 {
  border-color: var(--hub-line) !important;
}

.input-premium,
.input-field,
input,
select,
textarea {
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  color: var(--hub-ink) !important;
  border-radius: 6px !important;
}

.input-premium:focus,
.input-field:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--hub-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10) !important;
}

.btn-premium,
.btn-primary,
button.bg-brand-electric,
button.bg-orange-500 {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.btn-premium.primary,
.btn-primary,
.bg-brand-electric {
  background: var(--hub-orange) !important;
  color: white !important;
}

.btn-premium.secondary,
.glass.text-white,
button.bg-white\/5 {
  background: var(--hub-white) !important;
  border: 1px solid var(--hub-line) !important;
  color: var(--hub-ink) !important;
}

.case-img,
.skin-img,
.banner-img {
  filter: drop-shadow(0 10px 18px rgba(23, 23, 23, 0.12)) !important;
}

.carousel-outer,
.carousel-wrap,
.carousel-outer > div,
.roll-slot,
.slot-empty,
.roulette-track {
  background: var(--hub-soft) !important;
  border-color: var(--hub-line) !important;
}

.modal,
#modal > .card,
#createModal > .card,
#infoModal > .card,
#battleResultModal > .card {
  background: var(--hub-white) !important;
  color: var(--hub-ink) !important;
}

/* Footer override removed to allow global footer to keep its branding */
/* footer.bg-brand-black {
  background: var(--hub-paper) !important;
  border-top: 1px solid var(--hub-line) !important;
} */

@media (min-width: 981px) {
  .global-header .nav-mobile-menu.active {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .global-header .header-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 10px !important;
  }

  .global-header .nav-links {
    display: none !important;
  }

  .global-header .nav-menu-toggle {
    display: inline-flex !important;
  }

  .global-header .nav-logo {
    min-width: 0 !important;
  }

  .global-header .nav-logo-text {
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .global-header .nav-right {
    margin-left: auto !important;
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  .global-header .header-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .global-header .nav-logo-text {
    max-width: 112px !important;
    font-size: 0.76rem !important;
  }

  .global-header .nav-balance {
    max-width: 104px !important;
    overflow: hidden !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 0.72rem !important;
  }

  .global-header .nav-auth {
    display: none !important;
  }

  .global-header .profile-info {
    display: none !important;
  }

  .global-header .profile-trigger {
    padding: 4px !important;
  }

  .quick-switch-menu {
    width: calc(100vw - 24px) !important;
    left: -12px !important;
  }

  .pages-switch-menu {
    width: calc(100vw - 24px) !important;
    left: -12px !important;
  }

  .quick-switch-row {
    grid-template-columns: 1fr;
  }

  .quick-zone-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-nav .header-inner,
  .session-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .session-actions a {
    width: 100%;
  }

  main {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
