/* ==========================================================================
   NEXUS ROYALE V2 - ESPORTS INTELLIGENCE & AUTONOMOUS COMPANY ENGINE (2026)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700;800&display=swap");

:root {
  /* Nexus Cyber Crest Palette: Obsidian, Champagne Titanium Gold & Prismatic Arctic Cyan */
  --bg-black: #080A10;
  --bg-surface: #0C111C;
  --bg-surface-elevated: #111827;
  --bg-card: #0F1524;
  
  --border-subtle: #19233A;
  --border-hover: #26385C;
  --border-focus: #26ECE8;
  
  --text-main: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #5A6B88;
  
  --gold: #D8B878;
  --gold-light: #EBD4A2;
  --gold-glow: rgba(216, 184, 120, 0.28);
  --gold-subtle: rgba(216, 184, 120, 0.12);
  
  --cyan: #26ECE8;
  --cyan-bright: #68FFFA;
  --cyan-glow: rgba(38, 236, 232, 0.35);
  --cyan-subtle: rgba(38, 236, 232, 0.12);

  --elixir: #E11D48;
  --elixir-subtle: rgba(225, 29, 72, 0.14);
  --win: #10B981;
  --loss: #EF4444;
  --blue: #38BDF8;
  --purple: #A855F7;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background canvas for live floating elixir bubbles & electric sparks */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* =================================================== */
/* 1. CREATOR CODE BANNER (MONETIZATION LAYER)         */
/* =================================================== */
.creator-code-bar {
  background: linear-gradient(90deg, rgba(229, 169, 60, 0.12) 0%, rgba(225, 29, 72, 0.12) 50%, rgba(6, 182, 212, 0.12) 100%);
  border-bottom: 1px solid rgba(229, 169, 60, 0.25);
  padding: 0.45rem 1.5rem;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 101;
  backdrop-filter: blur(8px);
}

.creator-highlight {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn-copy-code {
  background: rgba(229, 169, 60, 0.2);
  border: 1px solid var(--gold);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* =================================================== */
/* 2. TOP NAVIGATION WITH AUDIO FX TOGGLE              */
/* =================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  filter: drop-shadow(0 2px 8px rgba(38, 236, 232, 0.45));
}

.brand-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-version {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-btn:hover { color: #fff; }
.nav-btn.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  border: 1px solid var(--border-hover);
}

.hot-tag {
  background: linear-gradient(135deg, #eab308, #f97316);
  color: #000;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audio-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.audio-toggle-btn:hover {
  border-color: var(--border-hover);
  color: #fff;
}

.audio-toggle-btn.on {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
}

.btn-install-app {
  background: linear-gradient(135deg, rgba(38, 236, 232, 0.15) 0%, rgba(216, 184, 120, 0.2) 100%);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(38, 236, 232, 0.25);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-install-app:hover {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--gold) 100%);
  color: #080A10;
  box-shadow: 0 0 16px rgba(38, 236, 232, 0.55);
  transform: translateY(-1px);
}

.btn-install-app:active {
  transform: scale(0.95);
}

.player-status-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--win);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--win);
}

.btn-switch-user {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem;
  font-size: 0.85rem;
  line-height: 1;
}

.btn-switch-user:hover { color: #fff; }

/* Main Container */
.main-canvas {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

/* =================================================== */
/* 3. GATEWAY & FLYING CARD 3D SHOWCASE               */
/* =================================================== */
.gateway-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  margin: 2.5rem auto 4rem;
  max-width: 1200px;
}

@media (max-width: 950px) {
  .gateway-hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tag-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
}

.tag-prefix {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  padding-left: 1.25rem;
  padding-right: 0.4rem;
}

.tag-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  outline: none;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.tag-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-primary-action {
  background: linear-gradient(135deg, #fff 0%, #d4d4d8 100%);
  color: #000;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.search-feedback-msg {
  min-height: 1.5rem;
  font-size: 0.85rem;
  color: var(--loss);
  margin-top: 0.75rem;
  font-weight: 600;
}

.verified-tags-box {
  margin-top: 1.5rem;
}

.verified-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.verified-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-pill-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* 3D Flying Card Stage */
.card-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.floating-hero-card {
  width: 320px;
  background: linear-gradient(180deg, #181b26 0%, #0d0f17 100%);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 169, 60, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.2s ease;
  position: relative;
  cursor: grab;
  animation: cardFloatEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardFloatEntrance {
  0% { transform: translateY(40px) scale(0.9) rotateX(15deg); opacity: 0; }
  100% { transform: translateY(0) scale(1) rotateX(0deg); opacity: 1; }
}

.floating-hero-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.card-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-card-elixir {
  width: 32px;
  height: 32px;
  background: var(--elixir);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.5);
}

.hero-card-rarity-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.hero-card-img-wrap {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
  transform: translateZ(40px);
  transition: transform 0.25s ease;
}

.floating-hero-card:hover .hero-card-img {
  transform: translateZ(55px) scale(1.05);
}

.hero-card-footer {
  text-align: center;
  transform: translateZ(25px);
}

.hero-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.hero-card-mechanic {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-stage-switcher {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
}

.stage-switch-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-switch-pill:hover {
  color: #fff;
  border-color: var(--border-hover);
}

.stage-switch-pill.active {
  background: var(--bg-surface-elevated);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* =================================================== */
/* 4. PLAYER PROFILE & TELEMETRY DASHBOARD             */
/* =================================================== */
.player-hero-card {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.player-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
}

.player-identity-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.player-avatar-shield {
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, #252a3b 0%, #111420 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
}

.player-name-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.player-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.clan-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.level-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.player-stats-right {
  display: flex;
  gap: 1.5rem;
}

.stat-metric-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  min-width: 140px;
  text-align: center;
}

.stat-cell-val {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.stat-cell-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Career KPI Grid */
.career-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0.4rem 0;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Sections */
.section-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Deck 8-Grid */
.deck-eight-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}

@media (max-width: 950px) {
  .deck-eight-grid { grid-template-columns: repeat(4, 1fr); }
}

.deck-card-unit {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.deck-card-unit:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.card-elixir-dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  background: var(--elixir);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.72rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.4);
  z-index: 2;
}

.card-artwork {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.card-caption {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-lvl-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Daily Lucky Drop & Mystery Box Tiers (Modern Progression) */
.lucky-drops-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

@media (max-width: 950px) {
  .lucky-drops-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.lucky-drop-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.lucky-drop-card:hover {
  transform: translateY(-2px);
}

/* Recent Battle Feed */
.battles-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.battle-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 850px) {
  .battle-row { grid-template-columns: 1fr; gap: 1rem; }
}

.battle-status-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.status-indicator {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.status-indicator.win {
  background: rgba(16, 185, 129, 0.15);
  color: var(--win);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.loss {
  background: rgba(239, 68, 68, 0.15);
  color: var(--loss);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.crown-tally {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.battle-game-type {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.battle-decks-matchup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.combatant-deck {
  flex: 1;
}

.combatant-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
}

.mini-cards-line {
  display: flex;
  gap: 4px;
}

.mini-card-thumb {
  width: 28px;
  height: 34px;
  object-fit: contain;
}

/* ======================================================== */
/* 4.5 DECK AI BATTLE LOG & DIAGNOSTIC MATRIX STYLING       */
/* ======================================================== */

.deckai-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.25rem;
}

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

.deckai-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deckai-metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.deckai-metric-label strong {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.82rem;
}

.deckai-metric-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.deckai-metric-bar .fill-win {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 999px;
}

.deckai-metric-bar .fill-gold {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #fef08a 100%);
  border-radius: 999px;
}

.deckai-metric-bar .fill-cyan {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, #67e8f9 100%);
  border-radius: 999px;
}

.deckai-metric-bar .fill-purple {
  height: 100%;
  background: linear-gradient(90deg, #a855f7 0%, #c084fc 100%);
  border-radius: 999px;
}

.deckai-swaps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 850px) {
  .deckai-swaps-row {
    grid-template-columns: 1fr;
  }
}

.deckai-swap-item {
  background: rgba(13, 18, 31, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deckai-swap-cards {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.swap-out {
  color: #ef4444;
  text-decoration: line-through;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.swap-arrow {
  color: var(--text-muted);
}

.swap-in {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.deckai-swap-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swap-impact {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
}

.swap-reason {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Deck AI Battle Card */
.deckai-battle-card {
  background: linear-gradient(180deg, #0d121f 0%, #080a10 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.deckai-battle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 236, 232, 0.4);
}

.deckai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.deckai-result-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.deckai-crowns-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.deckai-mode-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.deckai-odds-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.deckai-odds-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deckai-odds-track {
  width: 140px;
  height: 6px;
  background: rgba(239, 68, 68, 0.4);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.deckai-odds-fill {
  height: 100%;
  background: var(--win);
  border-radius: 999px 0 0 999px;
}

.deckai-combatants-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .deckai-combatants-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.deckai-combatant-side {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.deckai-side-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.deckai-cards-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.deckai-card-slot {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.15s ease;
}

.deckai-card-slot:hover {
  transform: scale(1.08);
  border-color: var(--cyan);
  z-index: 2;
}

.deckai-card-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deckai-card-lvl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  line-height: 1.1;
  padding: 1px 0;
}

.deckai-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.deckai-vs-badge {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.deckai-elixir-diff {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  background: rgba(38, 236, 232, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.deckai-coach-box {
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.deckai-coach-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.deckai-coach-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.deckai-actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =================================================== */
/* 5. 2026 HEROES & ABILITIES SYSTEM                   */
/* =================================================== */
.heroes-banner {
  background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.12), transparent 70%),
              linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.heroes-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #eab308, #06b6d4, #a855f7, transparent);
}

.mechanics-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .mechanics-grid-3 { grid-template-columns: 1fr; }
}

.mech-card {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.mech-card.gold-border { border-color: rgba(234, 179, 8, 0.35); }
.mech-card.cyan-border { border-color: rgba(6, 182, 212, 0.35); }
.mech-card.purple-border { border-color: rgba(168, 85, 247, 0.35); }

.mech-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mech-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 2026 Special Slots Layout */
.special-slots-tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.special-slot-box {
  border-radius: var(--radius-md);
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  transition: all 0.2s ease;
}

.special-slot-box.evo-slot {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.05);
}

.special-slot-box.hero-slot {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.05);
}

.special-slot-box.wild-slot {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.05);
}

.slot-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.evo-slot .slot-icon-pill { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid #a855f7; }
.hero-slot .slot-icon-pill { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid #eab308; }
.wild-slot .slot-icon-pill { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border: 1px solid #06b6d4; }

.slot-info-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.15rem;
}

.slot-info-col p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Heroes Catalog Grid */
.hero-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn-hero:hover {
  color: #fff;
  border-color: var(--border-hover);
}

.filter-btn-hero.active {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold);
}

.heroes-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.hero-unit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.hero-unit-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(234, 179, 8, 0.15);
}

.hero-unit-card.champion-card {
  border-color: rgba(239, 68, 68, 0.35);
}

.hero-unit-card.champion-card:hover {
  border-color: #ef4444;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.2);
}

.hero-card-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-card-avatar {
  width: 68px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}

.hero-card-meta { flex: 1; }

.hero-card-name-h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.hero-tier-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.tier-s { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
.tier-a { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.4); }
.tier-b { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.tier-c { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.tier-champ { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.hero-ability-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: auto;
}

.ability-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.ability-name-txt {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ability-cost-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--elixir);
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.ability-desc-txt {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.single-use-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.pro-tip-callout {
  font-size: 0.7rem;
  color: var(--text-muted);
  border-left: 2px solid var(--gold);
  padding-left: 0.5rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* =================================================== */
/* 6. AI COMPANY OPERATIONS DASHBOARD (CEO VIEW)       */
/* =================================================== */
.ai-ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

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

.ai-agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.agent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.agent-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--win);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-agent-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ai-agent-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0.2rem 0 0.5rem;
}

.ai-agent-duty {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.editorial-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* =================================================== */
/* 7. ESPORTS MONETIZATION AD SLOTS (NITROPAY / ADS)   */
/* =================================================== */
.ad-slot-leaderboard {
  max-width: 728px;
  height: 90px;
  margin: 2.5rem auto 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.ad-content-box {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Studio & Simulator */
.studio-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .studio-layout { grid-template-columns: 1fr; }
}

.catalog-search-bar {
  margin-bottom: 1rem;
}

.catalog-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  outline: none;
}

.cards-catalog-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.catalog-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.catalog-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.catalog-card-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Toast */
.toast-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
}

/* =================================================== */
/* 2V2 LEAGUE RADAR & DECK RECALL MINIGAME STYLES     */
/* =================================================== */
.radar-interactive-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(13, 15, 22, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.radar-input-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.radar-number-input {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--cyan);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 900;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  width: 160px;
  text-align: center;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.radar-range-slider {
  flex: 1;
  min-width: 240px;
  height: 10px;
  -webkit-appearance: none;
  background: var(--bg-surface-elevated);
  border-radius: 999px;
  outline: none;
  border: 1px solid var(--border-subtle);
}

.radar-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--cyan);
}

.radar-zone-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.radar-zone-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--loss);
  border: 1px solid var(--loss);
}

.radar-zone-bubble {
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.radar-zone-safe {
  background: rgba(16, 185, 129, 0.15);
  color: var(--win);
  border: 1px solid var(--win);
}

.radar-zone-elite {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid var(--purple);
}

/* Deck Recall Minigame */
.recall-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.recall-countdown-overlay {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-mono);
  text-shadow: 0 0 24px rgba(229, 169, 60, 0.6);
  margin-bottom: 1rem;
}

.recall-slots-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 1.5rem 0;
}

.recall-slot {
  background: var(--bg-surface-elevated);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  position: relative;
  transition: all 0.25s ease;
}

.recall-slot.filled {
  border-style: solid;
  border-color: var(--cyan);
}

.recall-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recall-tray-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.recall-tray-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.recall-tray-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.recall-tray-card.picked {
  opacity: 0.3;
  pointer-events: none;
}

/* =================================================== */
/* VIP 1-CLICK INSTANT LOGIN & BUTTER-SMOOTH TRANSITIONS */
/* =================================================== */
.vip-quick-connect-banner {
  background: linear-gradient(135deg, rgba(38, 236, 232, 0.12) 0%, rgba(14, 20, 34, 0.95) 50%, rgba(216, 184, 120, 0.15) 100%);
  border: 1.5px solid rgba(38, 236, 232, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(38, 236, 232, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: vipPulseGlow 4s ease-in-out infinite;
}

@keyframes vipPulseGlow {
  0%, 100% {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(38, 236, 232, 0.2);
    border-color: rgba(38, 236, 232, 0.45);
  }
  50% {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 35px rgba(216, 184, 120, 0.35);
    border-color: rgba(216, 184, 120, 0.85);
  }
}

.vip-quick-connect-banner:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8), 0 0 38px rgba(38, 236, 232, 0.35);
}

.vip-avatar {
  background: radial-gradient(circle, rgba(38, 236, 232, 0.25) 0%, rgba(14, 20, 34, 0.95) 70%);
  border: 1.5px solid var(--cyan);
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(38, 236, 232, 0.35);
  overflow: hidden;
  padding: 3px;
}

.vip-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.vip-info {
  flex: 1;
}

.vip-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.vip-badge {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--gold) 100%);
  color: #07090e;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(38, 236, 232, 0.4);
}

.vip-tag-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 800;
}

.vip-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.vip-clan {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-vip-login {
  position: relative;
  background: linear-gradient(135deg, #26ece8 0%, #0ea5e9 50%, #d8b878 100%);
  color: #07090e;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 22px rgba(38, 236, 232, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}

.btn-vip-login::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  animation: vipShine 3.5s infinite;
}

@keyframes vipShine {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}

.btn-vip-login:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(38, 236, 232, 0.6);
  filter: brightness(1.08);
}

.btn-vip-login:active {
  transform: translateY(0) scale(0.97);
}

.btn-vip-login.loading {
  opacity: 0.8;
  pointer-events: none;
  cursor: wait;
}

/* Smooth view crossfade transition */
main > section {
  animation: smoothFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================== */
/* 8. COMPREHENSIVE MOBILE & APP RESPONSIVE ENGINE     */
/* =================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* Mobile Bottom Navigation Dock (Default Hidden on Desktop) */
.mobile-bottom-dock {
  display: none !important;
}

/* PWA Installation Modal */
.pwa-modal-card {
  max-width: 440px;
  width: 92%;
  background: linear-gradient(180deg, #0d121f 0%, #080a10 100%);
  border: 1px solid rgba(38, 236, 232, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(38, 236, 232, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-modal-crest {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(38, 236, 232, 0.5);
  box-shadow: 0 0 14px rgba(38, 236, 232, 0.35);
  object-fit: cover;
}

.pwa-modal-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
}

.pwa-modal-sub {
  font-size: 0.75rem;
  color: var(--cyan);
  margin: 2px 0 0;
  font-weight: 600;
}

.pwa-modal-body {
  padding: 1.25rem;
}

.pwa-perks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pwa-perk {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.35rem;
  text-align: center;
}

.pwa-perk-icon {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.25rem;
}

.pwa-perk-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.pwa-perk-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* PWA Platform Segmented Tabs */
.pwa-platform-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pwa-platform-tabs::-webkit-scrollbar {
  display: none;
}

.pwa-tab-btn {
  flex: 1 0 auto;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.pwa-tab-btn:hover {
  border-color: rgba(38, 236, 232, 0.4);
  color: #fff;
  background: rgba(26, 35, 55, 0.8);
}

.pwa-tab-btn.active {
  background: linear-gradient(135deg, rgba(38, 236, 232, 0.15) 0%, rgba(216, 184, 120, 0.12) 100%);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(38, 236, 232, 0.25);
}

.pwa-detected-tag {
  font-size: 0.55rem;
  font-weight: 900;
  background: var(--cyan);
  color: #080a10;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 2px;
  box-shadow: 0 0 6px rgba(38, 236, 232, 0.6);
}

.pwa-instructions-box {
  background: rgba(8, 10, 16, 0.95);
  border: 1px solid rgba(216, 184, 120, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 210px;
}

.pwa-guide-header {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pwa-guide-header.cyan { color: var(--cyan); }
.pwa-guide-header.gold { color: var(--gold); }

.pwa-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(17, 24, 39, 0.4);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pwa-step-card:last-child {
  margin-bottom: 0;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--gold) 100%);
  color: #080a10;
  font-weight: 900;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pwa-step-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.pwa-step-text strong {
  color: #fff;
  font-weight: 700;
}

.pwa-inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(38, 236, 232, 0.15);
  border: 1px solid rgba(38, 236, 232, 0.35);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  vertical-align: middle;
}

.pwa-inline-chip.gold {
  background: rgba(216, 184, 120, 0.15);
  border-color: rgba(216, 184, 120, 0.35);
  color: var(--gold);
}

.pwa-btn-install-direct {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--gold) 100%);
  color: #080a10;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px rgba(38, 236, 232, 0.45);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pwa-btn-install-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(38, 236, 232, 0.65);
}

.pwa-btn-install-direct:active {
  transform: scale(0.98);
}

/* Footer App Link Button */
.footer-app-btn {
  background: rgba(38, 236, 232, 0.08);
  border: 1px dashed rgba(38, 236, 232, 0.45);
  color: var(--cyan);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.footer-app-btn:hover {
  background: rgba(38, 236, 232, 0.18);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(38, 236, 232, 0.3);
}

/* iOS Safari Floating Pointer Indicator */
.ios-safari-pointer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: 90%;
  max-width: 360px;
  animation: pointerPulse 2s infinite ease-in-out;
}

.ios-pointer-bubble {
  background: linear-gradient(135deg, #0f172a 0%, #080a10 100%);
  border: 2px solid var(--cyan);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(38, 236, 232, 0.5);
  color: #fff;
}

.ios-pointer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.ios-pointer-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ios-pointer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 4px;
}

.ios-pointer-close:hover {
  color: #fff;
}

.ios-pointer-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.ios-share-inline-icon {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  vertical-align: middle;
  padding: 0 2px;
}

.ios-pointer-arrow-down {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--cyan);
  margin: 0 auto;
}

@keyframes pointerPulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Standalone installed state for header button */
.btn-install-app.installed {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

/* Creator Code Milestone & Deep Link Modal */
.creator-modal-card {
  max-width: 480px;
  width: 92%;
  background: linear-gradient(180deg, #0d121f 0%, #080a10 100%);
  border: 1px solid rgba(216, 184, 120, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(216, 184, 120, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Official Clash Royale Deck Export Modal */
.deck-copy-card {
  max-width: 460px;
  width: 92%;
  background: linear-gradient(180deg, #0d121f 0%, #080a10 100%);
  border: 1px solid rgba(216, 184, 120, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(216, 184, 120, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-modal-cards-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  background: rgba(13, 18, 31, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.deck-modal-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.2rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.deck-modal-card-item:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.deck-modal-card-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  max-height: 56px;
}

.deck-modal-card-item .mini-caption {
  font-size: 0.62rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
}

@media (max-width: 900px) {
  /* 1. Header & Mobile App Top Bar */
  .creator-code-bar {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .creator-code-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 0.68rem;
  }

  .btn-copy-code {
    padding: 0.18rem 0.45rem;
    font-size: 0.65rem;
    flex-shrink: 0;
  }

  .top-nav {
    height: 52px;
    padding: 0.4rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .brand-group {
    order: 1;
    gap: 0.45rem;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .brand-text {
    font-size: 0.88rem;
    font-weight: 900;
  }

  .nav-actions {
    order: 2;
    gap: 0.35rem;
  }

  .btn-install-app {
    padding: 0.28rem 0.6rem;
    font-size: 0.7rem;
  }

  .audio-toggle-btn {
    padding: 0.28rem 0.5rem;
    font-size: 0.7rem;
  }

  .player-status-chip {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  /* HIDE TOP NAV HORIZONTAL SCROLLBAR - NAVIGATION NOW IN MOBILE BOTTOM DOCK */
  .top-nav .nav-links {
    display: none !important;
  }

  /* 2. Persistent Mobile Bottom App Dock (Clash Royale Style) */
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(8, 10, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(38, 236, 232, 0.25);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-sizing: content-box;
  }

  .dock-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0 0.15rem;
    position: relative;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .dock-btn .dock-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .dock-btn .dock-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 2px;
    color: var(--text-muted);
    transition: color 0.15s ease;
  }

  .dock-btn .dock-pip {
    width: 0;
    height: 3px;
    background: var(--cyan);
    border-radius: 999px;
    position: absolute;
    bottom: 3px;
    transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  }

  .dock-btn.active {
    color: var(--cyan);
  }

  .dock-btn.active .dock-icon {
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(38, 236, 232, 0.8));
  }

  .dock-btn.active .dock-label {
    color: #fff;
    font-weight: 800;
  }

  .dock-btn.active .dock-pip {
    width: 18px;
    box-shadow: 0 0 8px var(--cyan);
  }

  .dock-btn:active {
    transform: scale(0.92);
  }

  /* 3. Main Canvas Padding to Accommodate Dock */
  .main-canvas {
    padding: 0.65rem 0.85rem calc(80px + env(safe-area-inset-bottom, 16px)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hide distracting empty ad slot on mobile screens */
  .ad-slot-leaderboard {
    display: none !important;
  }

  /* 4. Prevent iOS Input Auto-Zoom on iPhone */
  .tag-input, input, select {
    font-size: 16px !important;
  }

  /* 5. Hero Gateway on Mobile */
  .gateway-hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 0.5rem auto 2rem;
    text-align: center;
  }

  .hero-pill-badge {
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.35rem;
    text-align: center;
  }

  .vip-quick-connect-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .vip-avatar {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  .vip-name {
    font-size: 1.1rem;
  }

  .btn-vip-login {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .tag-search-form {
    padding: 0.35rem;
    width: 100%;
    box-sizing: border-box;
  }

  .tag-input {
    font-size: 16px !important;
    padding: 0.6rem 0.5rem;
    min-width: 0;
    flex: 1;
  }

  .btn-primary-action {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .verified-pills-row {
    justify-content: center;
    gap: 0.35rem;
  }

  .tag-pill-btn {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .floating-hero-card {
    width: min(300px, 88vw);
    padding: 1.25rem;
    margin: 0 auto;
  }

  .hero-card-img-wrap {
    height: 180px;
  }

  .stage-switch-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }

  /* 4. Player Account Dashboard */
  .player-hero-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .player-identity-left {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .player-avatar-shield {
    width: 58px;
    height: 58px;
    font-size: 1.8rem;
    flex-shrink: 0;
  }

  .player-name-h1 {
    font-size: 1.5rem;
  }

  .player-stats-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
  }

  .stat-metric-cell {
    min-width: 0;
    padding: 0.75rem 0.5rem;
  }

  .stat-cell-val {
    font-size: 1.35rem;
  }

  .career-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .kpi-card {
    padding: 0.85rem 0.75rem;
  }

  .kpi-value {
    font-size: 1.35rem;
    margin: 0.25rem 0;
  }

  /* 5. Deck 8-Card Grid (4x2 Clash Royale layout) */
  .deck-eight-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.4rem;
  }

  .deck-card-unit {
    padding: 0.4rem 0.2rem;
  }

  .card-caption {
    font-size: 0.65rem;
  }

  .card-lvl-tag {
    font-size: 0.58rem;
  }

  .card-elixir-dot {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
    top: -4px;
    left: -4px;
  }

  /* 6. Daily Lucky Drops Mobile Grid */
  .lucky-drops-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  /* 7. Battles Feed */
  .battle-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .battle-decks-matchup {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }

  .mini-cards-line {
    flex-wrap: wrap;
    gap: 3px;
  }

  .mini-card-thumb {
    width: 24px;
    height: 30px;
  }

  /* 8. 2026 Special Slots & Heroes */
  .special-slots-tracker {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .heroes-banner {
    padding: 1.25rem;
  }

  .mechanics-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .heroes-catalog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* 9. 2v2 Radar & Deck Recall */
  .radar-interactive-box {
    padding: 1rem;
  }

  .radar-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .radar-number-input {
    width: 100%;
    font-size: 1.85rem;
    padding: 0.4rem;
  }

  .radar-range-slider {
    width: 100%;
    min-width: 0;
  }

  .recall-stage {
    padding: 1.25rem 0.85rem;
  }

  .recall-countdown-overlay {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
  }

  .recall-slots-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .recall-tray-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
    max-height: 240px;
  }

  /* 10. Matchup Arena & Studio */
  .matchup-duo-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .studio-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .section-panel {
    padding: 1.15rem;
    margin-bottom: 1.5rem;
  }

  .site-footer {
    padding: 2.25rem 1.25rem 3rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =================================================== */
/* 9. SITE FOOTER & OFFICIAL BUSINESS CONTACT          */
/* =================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3.5rem 2rem 3rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.85rem 0 1.25rem;
}

.footer-email-box {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.footer-email-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-email-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-email-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.footer-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.footer-code-card strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.footer-code-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.footer-disclaimer a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
