/* ==========================================================================
   AURA ARENA: The Competitive Aura League - Stylesheet
   Design System: Cyberpunk Colosseum / Futuristic Esports Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;600;700;800;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-card: rgba(16, 20, 32, 0.85);
  --bg-card-hover: rgba(24, 30, 48, 0.95);
  --bg-glass: rgba(14, 18, 30, 0.65);
  --border-glass: rgba(0, 242, 255, 0.15);
  --border-glass-bright: rgba(0, 242, 255, 0.4);

  /* Neon Accents */
  --aura-blue: #00f2ff;
  --aura-blue-glow: rgba(0, 242, 255, 0.45);
  --aura-red: #ff2a5f;
  --aura-red-glow: rgba(255, 42, 95, 0.45);
  --aura-gold: #ffbe0b;
  --aura-gold-glow: rgba(255, 190, 11, 0.5);
  --aura-purple: #9d4edd;
  --aura-purple-glow: rgba(157, 78, 221, 0.45);
  --aura-green: #00f59b;

  /* Typography */
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --text-dim: #54647c;
  --font-heading: 'Orbitron', -apple-system, sans-serif;
  --font-subheading: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Transitions & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-neon-blue: 0 0 25px rgba(0, 242, 255, 0.35);
  --shadow-neon-red: 0 0 25px rgba(255, 42, 95, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(255, 42, 95, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(157, 78, 221, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background Cyber Grid Lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* App Canvas Aura Overlay */
#auraCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* ==========================================================================
   Desktop Control Toolbar (Wrapper Controls)
   ========================================================================== */
.top-dev-toolbar {
  position: fixed;
  top: 12px;
  z-index: 100;
  display: none;             /* controles de mockup de escritorio — ocultos en la app real */
  align-items: center;
  gap: 8px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  max-width: 95vw;
  flex-wrap: wrap;
  justify-content: center;
}

.top-dev-toolbar span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aura-blue);
  letter-spacing: 1px;
}

.dev-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.dev-btn:hover, .dev-btn.active {
  background: var(--aura-blue);
  color: #000;
  border-color: var(--aura-blue);
  box-shadow: 0 0 12px var(--aura-blue-glow);
}

/* ==========================================================================
   Mobile Phone Frame Container
   ========================================================================== */
.device-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 412px;
  height: 860px;
  max-height: 94vh;
  background: #090c14;
  border-radius: 46px;
  box-shadow: 
    0 0 0 10px #1e2436,
    0 0 0 12px rgba(0, 242, 255, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-width 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
  margin-top: 40px;
}

/* Fullscreen Mode override */
.device-container.fullscreen-mode {
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
}

/* Phone Notch / Dynamic Island */
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.notch-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111a2e;
  border: 1px solid #1f2d4d;
}

.notch-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #070e1c;
}

/* Phone Status Bar */
.phone-status-bar {
  height: 38px;
  padding: 10px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 40;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Aura Arena App Shell & Header
   ========================================================================== */
.app-header {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 24, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 30;
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.header-btn:hover {
  background: rgba(0, 242, 255, 0.1);
  color: var(--aura-blue);
}

.app-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff 0%, var(--aura-blue) 60%, var(--aura-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-badge-live {
  background: var(--aura-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* Quick Screen Navigator Tab */
.screen-selector-bar {
  display: none;              /* barra de mockup (1.VOTO ACTIVO / 2… ) — la nav real es la de abajo */
  overflow-x: auto;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(14, 18, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
  z-index: 25;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.screen-selector-bar.is-dragging {
  cursor: grabbing;
}

.screen-selector-bar::-webkit-scrollbar {
  display: none;
}

.screen-nav-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.screen-nav-chip:hover {
  border-color: var(--aura-blue);
  color: var(--text-main);
}

.screen-nav-chip.active {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(157, 78, 221, 0.2));
  border-color: var(--aura-blue);
  color: var(--aura-blue);
  box-shadow: 0 0 10px var(--aura-blue-glow);
}

/* ==========================================================================
   Main Screen Views Area
   ========================================================================== */
.app-content {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for bottom nav */
}

.screen-view {
  display: none;
  padding: 12px;
  animation: fadeIn 0.25s ease-out forwards;
}

.screen-view.active {
  display: block;
}

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

/* ==========================================================================
   PANTALLA 1 & 2: Duelo de Audiencia (Voto Activo & Sin Voto)
   ========================================================================== */
.duel-banner-header {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.duel-title-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--aura-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.duel-timer-tag {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--aura-gold);
  background: rgba(255, 190, 11, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 190, 11, 0.3);
}

/* Split Fighter Visuals Stage */
.fighters-split-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
}

.fighter-duel-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #0d111d;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.fighter-duel-card.card-blue {
  border-color: var(--aura-blue);
  box-shadow: 0 0 20px var(--aura-blue-glow);
}

.fighter-duel-card.card-red {
  border-color: var(--aura-red);
  box-shadow: 0 0 20px var(--aura-red-glow);
}

.fighter-duel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.fighter-duel-card:hover .fighter-duel-img {
  transform: scale(1.05);
}

.fighter-duel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,12,0.95) 0%, rgba(5,7,12,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.fighter-card-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.badge-blue { color: var(--aura-blue); text-shadow: 0 0 8px var(--aura-blue-glow); }
.badge-red { color: var(--aura-red); text-shadow: 0 0 8px var(--aura-red-glow); }

.fighter-card-ap {
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fighter-card-clip-desc {
  font-size: 0.62rem;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 3px;
  display: inline-block;
}

.vs-badge-floating {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #07090e;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 5px 7px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Real-time Dynamic Voting Section */
.voting-interactive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}

.voting-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  width: 100%;
  margin-bottom: 6px;
}

.vote-percentage-display {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pct-blue { color: var(--aura-blue); }
.pct-red { color: var(--aura-red); }

/* Interactive Aura Vote Slider Track */
.aura-slider-container {
  position: relative;
  height: 18px;
  background: #111726;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.aura-slider-fill-blue {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #0088ff, var(--aura-blue));
  box-shadow: 0 0 15px var(--aura-blue-glow);
  transition: width 0.15s ease-out;
}

.aura-slider-fill-red {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--aura-red), #ff0055);
  box-shadow: 0 0 15px var(--aura-red-glow);
  transition: width 0.15s ease-out;
}

.aura-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  transform: translateX(-50%);
  transition: left 0.15s ease-out;
}

.voting-hint {
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Quick Vote Impact Buttons */
.vote-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-vote-blue {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(0, 136, 255, 0.3));
  border: 1.5px solid var(--aura-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn-vote-blue:hover, .btn-vote-blue:active {
  background: var(--aura-blue);
  color: #000;
  box-shadow: 0 0 20px var(--aura-blue-glow);
  transform: translateY(-2px);
}

.btn-vote-red {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.15), rgba(255, 0, 85, 0.3));
  border: 1.5px solid var(--aura-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn-vote-red:hover, .btn-vote-red:active {
  background: var(--aura-red);
  color: #fff;
  box-shadow: 0 0 20px var(--aura-red-glow);
  transform: translateY(-2px);
}

.btn-vote-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Chat & Bet Pool Bar */
.duel-meta-stats {
  background: rgba(10, 14, 24, 0.75);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
}

.bet-pool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--aura-gold);
  font-weight: 700;
  font-family: var(--font-subheading);
}

.live-chat-ticker {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-chat-ticker span {
  color: var(--aura-blue);
  font-weight: 600;
}

/* Paused State Box */
.paused-state-box {
  background: rgba(255, 42, 95, 0.08);
  border: 1px dashed rgba(255, 42, 95, 0.4);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 10px;
}

.paused-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--aura-red);
  margin-bottom: 4px;
}

.paused-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PANTALLA 3: Pantalla de Acción del Luchador (Hype/Cringe & Energy)
   ========================================================================== */
.fighter-header-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.fighter-stat-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-val {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--aura-blue);
}

.fighter-main-stage {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--aura-blue);
  box-shadow: 0 0 30px var(--aura-blue-glow);
  margin-bottom: 10px;
  background: #000;
}

.fighter-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Hype vs Cringe Meter Bar on Stage */
.hype-cringe-meter {
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 30px;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.meter-hype-fill {
  width: 100%;
  height: 75%;
  background: linear-gradient(180deg, var(--aura-blue), #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 5px #000;
  transition: height 0.3s ease;
}

.meter-cringe-fill {
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, var(--aura-red), #b30030);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 5px #000;
  transition: height 0.3s ease;
}

/* Fighter Real-time Action Radial Hub */
.fighter-actions-hud {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.tactical-action-btn {
  background: rgba(14, 20, 36, 0.9);
  border: 1.5px solid var(--aura-blue);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.tactical-action-btn:hover, .tactical-action-btn:active {
  background: var(--aura-blue);
  color: #000;
  box-shadow: 0 0 20px var(--aura-blue-glow);
  transform: scale(1.05);
}

.tactical-action-btn.btn-cringe-danger {
  border-color: var(--aura-red);
}
.tactical-action-btn.btn-cringe-danger:hover {
  background: var(--aura-red);
  color: #fff;
  box-shadow: 0 0 20px var(--aura-red-glow);
}

/* Hype Tap Button for Spectators / Fighter Pulse */
.hype-tap-trigger {
  background: linear-gradient(135deg, #ff0077, #ff5500, var(--aura-gold));
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 85, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  letter-spacing: 1px;
  transition: transform 0.1s ease;
}

.hype-tap-trigger:active {
  transform: scale(0.96);
  filter: brightness(1.3);
}

/* ==========================================================================
   PANTALLA 4: Tu Lucha / Estrategia de Campeón (Vista Táctica Holográfica)
   ========================================================================== */
.tactical-strategy-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: 10px;
}

.tactical-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tactical-status-banner {
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid var(--aura-blue);
  color: var(--aura-blue);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hologram-display-frame {
  position: relative;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.3);
  margin-bottom: 10px;
  background: #000;
}

.hologram-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hologram-grid-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.strategy-command-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.strat-btn {
  background: rgba(20, 26, 44, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-family: var(--font-subheading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.strat-btn.highlight {
  border-color: var(--aura-blue);
  background: rgba(0, 242, 255, 0.15);
  color: var(--aura-blue);
  box-shadow: 0 0 10px var(--aura-blue-glow);
}

.strat-btn:hover {
  border-color: var(--aura-gold);
  color: var(--aura-gold);
}

/* ==========================================================================
   PANTALLA 5: Perfil del Luchador
   ========================================================================== */
.profile-card-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.profile-avatar-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--aura-blue);
  box-shadow: 0 0 25px var(--aura-blue-glow);
}

.profile-aura-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--aura-purple);
  animation: rotate-halo 10s linear infinite;
}

@keyframes rotate-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-handle {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(10, 14, 24, 0.7);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.profile-ap-total {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--aura-gold);
  text-shadow: 0 0 10px var(--aura-gold-glow);
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--aura-blue), #0077ff);
  border: none;
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 20px var(--aura-blue-glow);
  transition: var(--transition);
}

.btn-primary-action:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* Tabs inside Profile */
.profile-tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.profile-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
}

.profile-tab-btn.active {
  color: var(--aura-blue);
}

.profile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--aura-blue);
  box-shadow: 0 0 8px var(--aura-blue-glow);
}

/* Profile tab panels */
.profile-tab-panel {
  display: none;
}
.profile-tab-panel.active {
  display: block;
}

/* "Próximamente" placeholder */
.coming-soon {
  text-align: center;
  padding: 22px 16px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 242, 255, 0.05), rgba(130, 80, 255, 0.05));
}
.coming-soon-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--aura-blue-glow));
}
.coming-soon-badge {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aura-blue);
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid var(--aura-blue);
}
.coming-soon h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
  margin: 2px 0 6px;
}
.coming-soon p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 260px;
  margin: 0 auto 14px;
}
.coming-soon-slots {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.coming-soon-slot {
  width: 62px;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.coming-soon-slot .lock {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  opacity: 0.7;
}
.coming-soon-skeleton {
  height: 46px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%);
  background-size: 400% 100%;
  animation: coming-soon-shimmer 1.6s ease infinite;
}
@keyframes coming-soon-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ==========================================================================
   TU LUCHA — selector de modo + Modo Entrenamiento (cámara + pose)
   ========================================================================== */
.mode-toggle-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.mode-toggle-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 9px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-toggle-btn.active {
  color: #001018;
  background: var(--aura-blue);
  border-color: var(--aura-blue);
  box-shadow: 0 0 14px var(--aura-blue-glow);
}
.mode-panel { display: none; }
.mode-panel.active { display: block; }

/* ===================== MODO LUCHA — Sparring ===================== */
.mode-panel[data-mode-panel="fight"] [hidden] { display: none !important; }

.combat-opt-row { display: flex; gap: 6px; margin-top: 4px; }
.combat-opt-row button {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.combat-opt-row button.active {
  color: #001018;
  background: var(--aura-blue);
  border-color: var(--aura-blue);
}

/* Lobby de reto online */
.combat-lobby { text-align: center; padding: 22px 10px; }
.combat-lobby-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cl-fighter { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 90px; }
.cl-fighter img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--aura-blue);
}
.cl-fighter:last-child img { border-color: var(--aura-red); }
.cl-fighter span { font-family: var(--font-heading); font-size: 0.68rem; color: #fff; }
.cl-vs {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; color: #fff;
  text-shadow: 3px 3px 0 var(--aura-red), -3px -3px 0 var(--aura-blue);
}
.combat-lobby-status { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; min-height: 1.2em; }
.combat-lobby-timer {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 10px;
}
.combat-lobby-timer.low { color: var(--aura-red); animation: combat-pulse 0.6s infinite; }
.combat-lobby-spinner {
  width: 30px; height: 30px; margin: 0 auto; border-radius: 50%;
  border: 3px solid rgba(0,242,255,0.25); border-top-color: var(--aura-blue);
  animation: spin 0.9s linear infinite;
}

/* Medidor de favor del público */
.combat-favor {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-family: var(--font-heading); font-size: 0.52rem; color: var(--text-muted);
}
.combat-favor-track {
  flex: 1; height: 5px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--aura-red), var(--aura-blue));
  position: relative;
}
.combat-favor-fill {
  position: absolute; top: -3px; width: 3px; height: 11px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 8px #fff; left: 50%; transition: left 0.4s ease;
}

.combat-foe-avatar {
  position: absolute; left: 8px; top: 8px; width: 30px; height: 30px;
  border-radius: 50%; object-fit: cover; border: 2px solid var(--aura-red); z-index: 3;
}

/* Chat del público */
.combat-chat {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.combat-chat-head {
  font-family: var(--font-heading); font-size: 0.58rem; color: var(--aura-blue);
  padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
}
.combat-chat-log { height: 96px; overflow-y: auto; padding: 6px 10px; font-size: 0.64rem; }
.combat-chat-log .cc-line { margin-bottom: 3px; color: var(--text-muted); line-height: 1.3; }
.combat-chat-log .cc-who { color: #fff; font-weight: 700; }
.combat-chat-log .cc-gift { color: var(--aura-gold); }

.combat-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.combat-name {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  color: var(--text-muted);
}
.combat-name b { font-size: 1rem; color: #fff; }
.combat-name.you b { color: var(--aura-blue); }
.combat-name.foe b { color: var(--aura-red); }
.combat-timer {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}
.combat-timer.low { color: var(--aura-red); animation: combat-pulse 0.6s ease infinite; }
@keyframes combat-pulse { 50% { opacity: 0.4; } }

.combat-bars { display: flex; gap: 6px; margin-bottom: 8px; }
.combat-bar-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.combat-bar-fill { height: 100%; width: 50%; transition: width 0.25s ease; }
.combat-bar-fill.you  { background: linear-gradient(90deg, var(--aura-blue), #7ad9ff); }
.combat-bar-fill.foe  { background: linear-gradient(270deg, var(--aura-red), #ff7a9c); margin-left: auto; }
.combat-bar-track:last-child { display: flex; justify-content: flex-end; }

.combat-split {
  position: relative;
  height: 46vh;
  max-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #05070c;
}
/* Corte diagonal ligero (~5°) entre los dos luchadores */
.combat-half {
  position: absolute;
  inset: 0;
  background: #05070c;
  overflow: hidden;
}
.combat-half.you  { clip-path: polygon(0 0, calc(52% + 16px) 0, calc(52% - 16px) 100%, 0 100%); }
.combat-half.foe  { clip-path: polygon(calc(52% + 22px) 0, 100% 0, 100% 100%, calc(52% - 22px) 100%); }
.combat-half.foe.telegraph { box-shadow: inset 0 0 40px rgba(255,200,0,0.4); }
.combat-half.foe.strike    { box-shadow: inset 0 0 46px rgba(255,42,95,0.55); }

.combat-split::after {   /* la línea del corte */
  content: '';
  position: absolute;
  top: -6%; bottom: -6%;
  left: 52%;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  transform: skewX(-5deg);
  box-shadow: 0 0 10px #fff, 0 0 24px var(--aura-blue);
  pointer-events: none;
  z-index: 2;
}

#combatVideo, #combatCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
#combatDummyCanvas {
  position: absolute;
  top: 0; bottom: 0;
  left: 42%;
  width: 58%;
  height: 100%;
}

.combat-callout {
  position: absolute;
  left: 0; right: 0;
  top: 42%;
  z-index: 4;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 16px var(--aura-blue), 0 0 30px var(--aura-red);
  animation: training-pop 0.5s ease;
  pointer-events: none;
}

.combat-controls { display: flex; gap: 8px; margin-top: 10px; }
.combat-block-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid var(--aura-blue);
  background: rgba(0, 242, 255, 0.12);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}
.combat-block-btn:active { background: var(--aura-blue); color: #001018; transform: scale(0.97); }
.combat-block-btn.armed { border-color: var(--aura-gold); background: rgba(255,200,0,0.18); animation: combat-pulse 0.4s ease infinite; }

.combat-result {
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(0,242,255,0.06), rgba(255,42,95,0.06));
}
.combat-result h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.combat-result .cr-win  { color: var(--aura-gold); }
.combat-result .cr-lose { color: var(--aura-red); }
.combat-result .cr-draw { color: var(--aura-blue); }
.combat-result .cr-score { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.combat-result .cr-aura { font-family: var(--font-heading); font-size: 1.1rem; color: var(--aura-gold); margin-bottom: 16px; }

/* ---- Intro VS ---- */
.vs-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #000;
}
.vs-half {
  position: absolute;
  top: -10%;
  width: 62%;
  height: 120%;
}
.vs-half.left  { left: 0;  background: linear-gradient(120deg, #c0142e, #7a0a1c); transform: skewX(-8deg) translateX(-110%); animation: vs-slide-l 0.5s cubic-bezier(.2,.8,.2,1) forwards; }
.vs-half.right { right: 0; background: linear-gradient(240deg, #1546c0, #0a237a); transform: skewX(-8deg) translateX(110%);  animation: vs-slide-r 0.5s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes vs-slide-l { to { transform: skewX(-8deg) translateX(-12%); } }
@keyframes vs-slide-r { to { transform: skewX(-8deg) translateX(12%); } }
.vs-bolt {
  position: absolute;
  left: 50%; top: -5%;
  width: 5%; height: 110%;
  margin-left: -2.5%;
  background: #fff;
  clip-path: polygon(45% 0, 70% 22%, 50% 40%, 75% 55%, 40% 100%, 55% 60%, 30% 45%, 55% 25%);
  opacity: 0;
  animation: vs-bolt-in 0.35s 0.35s ease forwards;
}
@keyframes vs-bolt-in { from { opacity: 0; transform: scaleY(0.3); } to { opacity: 1; transform: scaleY(1); } }
.vs-text {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(3);
  font-family: var(--font-heading, sans-serif);
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px #fff, 6px 6px 0 #c0142e, -6px -6px 0 #1546c0;
  opacity: 0;
  animation: vs-slam 0.4s 0.5s cubic-bezier(.3,1.6,.4,1) forwards;
}
@keyframes vs-slam { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.vs-count {
  position: absolute;
  left: 50%; bottom: 22%;
  transform: translateX(-50%);
  font-family: var(--font-heading, sans-serif);
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px var(--aura-blue);
}
.vs-intro.variant-glitch .vs-text { animation: vs-slam 0.3s 0.4s steps(3) forwards, vs-glitch 0.2s 0.7s 3; }
@keyframes vs-glitch {
  0% { text-shadow: 3px 0 #ff2a5f, -3px 0 #00f2ff; }
  50% { transform: translate(-52%, -50%) scale(1); }
  100% { text-shadow: 0 0 30px #fff; }
}
.vs-intro.variant-clash .vs-half.left  { background: linear-gradient(120deg, #ff2a5f, #7a0a1c); }
.vs-intro.variant-clash .vs-half.right { background: linear-gradient(240deg, #00c8ff, #0a237a); }
.vs-intro.variant-clash .vs-bolt { filter: blur(1px) brightness(1.4); }

.training-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 62vh;
  margin: 0 auto 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #05070c;
  border: 1px solid rgba(0, 242, 255, 0.25);
}
/* .training-loading / .training-overlay-msg fijan su propio "display", lo que
   pisa el [hidden] nativo del navegador salvo que lo reforcemos aqui */
.training-stage [hidden] {
  display: none !important;
}
#trainingVideo,
#trainingCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* espejo, como un selfie */
}
#trainingVideo { background: #05070c; }

.training-hud {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.training-gesture-label {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.training-charge-wrap {
  width: 70%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.training-charge-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f2ff, #ffcc00, #ff3b3b);
  transition: width 0.08s linear;
}
.training-combo {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--aura-gold);
  text-shadow: 0 0 10px rgba(255, 200, 0, 0.7);
}
.training-overlay-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px var(--aura-blue), 0 0 40px var(--aura-red);
  animation: training-pop 0.6s ease;
  pointer-events: none;
}
@keyframes training-pop {
  0% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.training-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.8);
  color: var(--text-muted);
  font-size: 0.72rem;
}
.training-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(0, 242, 255, 0.25);
  border-top-color: var(--aura-blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.training-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* Galería de máscaras */
.mask-picker-row { margin-bottom: 10px; }
.mask-picker-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: var(--aura-blue);
  margin-bottom: 6px;
}
.mask-picker-title small { color: var(--text-muted); font-family: var(--font-body, inherit); }
.mask-picker {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.mask-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 62px;
  padding: 6px 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.56rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mask-chip.active {
  border-color: var(--aura-blue);
  color: #fff;
  background: rgba(0, 242, 255, 0.12);
  box-shadow: 0 0 10px var(--aura-blue-glow);
}
.mask-chip-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.training-tips {
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.training-tips ul { margin: 6px 0 0; padding-left: 16px; }
.training-tips li { margin-bottom: 4px; }
.training-tips b { color: #fff; }
.training-note { color: var(--aura-red); margin: 8px 0 0; }

.training-catalog { list-style: none; padding-left: 0; }
.training-catalog li {
  display: flex;
  gap: 7px;
  align-items: baseline;
  padding: 3px 0;
}
.tg-pts {
  flex: none;
  min-width: 34px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  color: var(--aura-gold);
  background: rgba(255, 200, 0, 0.12);
  border: 1px solid rgba(255, 200, 0, 0.4);
  border-radius: 999px;
  padding: 1px 0;
}

/* Contador de AURA de la sesión (arriba-derecha del vídeo) */
.training-score {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 242, 255, 0.4);
  border-radius: 10px;
  padding: 5px 9px;
  backdrop-filter: blur(2px);
  z-index: 3;
}
.training-score-label {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--aura-blue);
}
.training-score-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 12px var(--aura-blue-glow);
}
.training-score.pop .training-score-value {
  animation: training-score-pop 0.35s ease;
}
@keyframes training-score-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--aura-gold); }
  100% { transform: scale(1); }
}

/* "+N" flotante al hacer un gesto */
.training-gain {
  position: absolute;
  top: 40px;
  right: 14px;
  z-index: 3;
  pointer-events: none;
}
.training-gain-pop {
  position: absolute;
  right: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--aura-gold);
  text-shadow: 0 0 10px rgba(255, 200, 0, 0.8);
  animation: training-gain-float 1.1s ease-out forwards;
}
@keyframes training-gain-float {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { transform: translateY(-6px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-46px) scale(1); opacity: 0; }
}

/* ==========================================================================
   PANTALLA 6: El Coliseo / Ranking Mundial de Campeones
   ========================================================================== */
.ranking-header-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 10px;
}

.top-champions-podium {
  position: relative;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.podium-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-overlay-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,14,0.9) 0%, rgba(7,9,14,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.progression-chart-card {
  background: rgba(10, 14, 24, 0.85);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}

.progression-svg-graph {
  width: 100%;
  height: 50px;
}

.user-rank-status-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #fff;
  padding-top: 4px;
}

.user-rank-pos {
  color: var(--aura-gold);
  font-size: 1.05rem;
}

/* Leaderboard Rows */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.leaderboard-row:hover {
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
}

.leaderboard-rank-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  width: 28px;
}

.rank-gold { color: var(--aura-gold); }
.rank-silver { color: #e2e8f0; }
.rank-bronze { color: #cd7f32; }

.leaderboard-user-info {
  flex: 1;
  padding: 0 8px;
}

.leaderboard-user-name {
  font-weight: 700;
  font-size: 0.78rem;
}

.leaderboard-tier-tag {
  font-size: 0.62rem;
  color: var(--aura-blue);
  font-weight: 600;
}

.leaderboard-ap-value {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--aura-gold);
}

/* ==========================================================================
   PANTALLA 7: El Coliseo / Feed En Vivo y Duelos Sugeridos
   ========================================================================== */
.feed-section-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aura-blue);
  margin: 6px 0 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-duel-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass-bright);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.featured-duel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-duel-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,12,0.95) 0%, rgba(5,7,12,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.duel-grid-suggested {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suggested-duel-mini-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.suggested-duel-mini-card:hover {
  border-color: var(--aura-blue);
}

.mini-duel-img-pair {
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.mini-duel-img-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PANTALLA 8: Panel de Creación de Evento / Torneo
   ========================================================================== */
.create-event-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
}

/* ---- Chat en vivo del directo ---- */
.live-chat {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  margin-top: 8px;
}
.live-chat-head {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  color: var(--aura-blue);
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
}
.live-chat-log { height: 120px; overflow-y: auto; padding: 6px 10px; font-size: 0.66rem; }
.live-chat-log .lc-line { margin-bottom: 3px; color: var(--text-muted); line-height: 1.3; }
.live-chat-log .lc-who { color: #fff; font-weight: 700; }
.live-chat-log .lc-me .lc-who { color: var(--aura-blue); }
.live-chat-log .lc-gift { color: var(--aura-gold); }
.live-chat-form { display: flex; gap: 6px; padding: 6px; border-top: 1px solid rgba(255,255,255,0.08); }
.live-chat-form input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 7px 10px; color: #fff; font-size: 0.72rem; outline: none;
}
.live-chat-form button {
  flex: none; width: 40px; border: none; border-radius: 8px;
  background: var(--aura-blue); color: #001018; font-weight: 900; cursor: pointer;
}

/* ---- Coliseo: paneles EN VIVO / ANTERIORES + VOD ---- */
.coliseo-panel[hidden], .vod-view[hidden] { display: none; }
.vod-stage { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.vod-video {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a1120, #1a0a14); color: var(--text-muted);
  font-family: var(--font-heading); font-size: 0.8rem; border: 1px solid var(--border-glass);
}
.vod-result {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 900;
  background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 999px; color: var(--aura-gold);
}
.vod-scrub { margin-bottom: 8px; }
.vod-scrub input { width: 100%; accent-color: var(--aura-blue); }

/* ---- Lista de duelos en vivo (Coliseo) ---- */
.live-duels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 66vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.live-duel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}
.live-duel-card .ld-city {
  flex: none;
  width: 60px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  color: var(--aura-blue);
  line-height: 1.2;
}
.live-duel-card .ld-city .ld-flag { font-size: 1.1rem; display: block; }
.live-duel-card .ld-mid { flex: 1; min-width: 0; }
.live-duel-card .ld-fighters {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 0.74rem; color: #fff;
}
.live-duel-card .ld-fighters img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none;
}
.live-duel-card .ld-fighters .ld-vs { color: var(--text-muted); font-size: 0.6rem; }
.live-duel-card .ld-meta {
  font-size: 0.6rem; color: var(--text-muted); margin-top: 3px;
}
.live-duel-card .ld-hype {
  height: 4px; border-radius: 999px; margin-top: 5px;
  background: linear-gradient(90deg, var(--aura-blue) var(--h,50%), var(--aura-red) var(--h,50%));
}
.live-duel-card .ld-go {
  flex: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #ff2a5f, #ff6a00);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

/* ---- Carta giratoria del evento (anverso formulario / reverso premios) ---- */
.event-flip { perspective: 1400px; margin-bottom: 10px; }
.event-flip-inner {
  position: relative;
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.event-flip-inner.flipped { transform: rotateY(180deg); }
.event-flip-front, .event-flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  margin-bottom: 0 !important;
  background: #0c0f17;               /* opaco: que no se transparente la otra cara */
  overflow: auto;
}
.event-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translateZ(1px);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.event-flip-front { transform: translateZ(1px); }
/* mientras NO está girada, el reverso no debe capturar toques */
.event-flip-inner:not(.flipped) .event-flip-back { pointer-events: none; }
.event-flip-inner.flipped .event-flip-front { pointer-events: none; }

.event-datetime-row { display: flex; gap: 8px; }
.event-geo-hint { font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; }
.event-geo-hint.ok { color: var(--aura-green); }
.event-geo-hint.err { color: var(--aura-red); }

.event-fee-box {
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 200, 0, 0.05);
}
.event-fee-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #fff;
  cursor: pointer;
}
.event-fee-toggle input { width: 16px; height: 16px; accent-color: var(--aura-gold); }
.event-fee-row { display: flex; gap: 8px; margin-top: 8px; }
.event-fee-row > div { flex: 1; }
.event-see-prizes { background: linear-gradient(135deg, #ffbe0b, #ff8c00); color: #1a0d00; }

.event-prize-sub { font-size: 0.66rem; color: var(--text-muted); margin-bottom: 10px; }
.event-prize-pot {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--aura-gold);
  text-shadow: 0 0 18px rgba(255, 200, 0, 0.6);
}
.event-prize-note { font-size: 0.62rem; color: var(--text-muted); margin-bottom: 14px; }
.event-prize-list { list-style: none; padding: 0; text-align: left; }
.event-prize-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.epl-pos { font-family: var(--font-heading); font-size: 0.7rem; color: #fff; }
.epl-pos.gold { color: var(--aura-gold); }
.epl-pos.silver { color: #cfd6e0; }
.epl-pos.bronze { color: #d9915b; }
.epl-amt { font-family: var(--font-heading); font-weight: 900; color: #fff; }
.event-prize-list .epl-house { background: none; font-size: 0.66rem; opacity: 0.7; }

.form-field-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--aura-blue);
  letter-spacing: 1px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.form-input-text, .form-select, .form-textarea {
  width: 100%;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  outline: none;
  transition: var(--transition);
}

.form-input-text:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--aura-blue);
  box-shadow: 0 0 10px var(--aura-blue-glow);
}

.gps-input-row {
  display: flex;
  gap: 6px;
}

.btn-gps-locate {
  background: rgba(0, 242, 255, 0.15);
  border: 1px solid var(--aura-blue);
  color: var(--aura-blue);
  padding: 0 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Modales (Studio de Retos, Google Auth, Tienda VIP / Ads)
   ========================================================================== */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out forwards;
}

.app-modal-backdrop.open {
  display: flex;
}

.app-modal-box {
  width: 100%;
  max-width: 370px;
  background: #0d121f;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.25);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Studio Recorder Simulator */
.camera-preview-sim {
  position: relative;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 2px solid var(--aura-blue);
  margin: 10px 0;
}

.camera-aura-filter-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.rec-timer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 0, 0.8);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Monetization & VIP Shop Cards */
.vip-pass-banner {
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.2), rgba(255, 0, 85, 0.2));
  border: 1.5px solid var(--aura-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  text-align: center;
}

.vip-price-tag {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--aura-gold);
  font-weight: 900;
  margin: 4px 0;
}

.admob-banner-simulator {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  height: 38px;
  background: #090c14;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.65rem;
  color: var(--text-dim);
  z-index: 20;
}

.ad-badge {
  background: #25334d;
  color: #a3b8db;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 700;
}

/* ==========================================================================
   Bottom Navigation Bar
   ========================================================================== */
.bottom-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(8, 12, 22, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 35;
}

.nav-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-subheading);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item-btn:hover, .nav-item-btn.active {
  color: var(--aura-blue);
  transform: translateY(-2px);
}

.nav-item-btn.active svg {
  filter: drop-shadow(0 0 6px var(--aura-blue-glow));
}

.nav-item-btn.highlight-clash {
  color: var(--aura-gold);
}

/* Floating Aura Particles Effect */
.floating-aura-number {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--aura-gold);
  text-shadow: 0 0 10px var(--aura-gold);
  animation: floatUp 0.8s ease-out forwards;
  z-index: 999;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
  50% { transform: translate(-50%, -30px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -60px) scale(1); }
}

/* ==========================================================================
   Radar de Eventos, Zonas Calientes & Leaflet Map Styles
   ========================================================================== */
.radar-map-wrapper {
  position: relative;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--aura-blue);
  box-shadow: 0 0 20px var(--aura-blue-glow);
  margin-bottom: 8px;
  background: #060910;
}

.aura-radar-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Tinte cyber sobre los tiles oscuros de Esri (ya son oscuros: nada de invert) */
.leaflet-tile {
  filter: brightness(0.68) contrast(1.25) saturate(1.6) hue-rotate(182deg);
}

.leaflet-container {
  background: #070a12 !important;
  font-family: var(--font-body) !important;
}

.leaflet-control-zoom {
  border: 1px solid var(--border-glass-bright) !important;
  background: rgba(10, 14, 24, 0.9) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: rgba(10, 14, 24, 0.9) !important;
  color: var(--aura-blue) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Floating HUD on Map */
.map-overlay-hud {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.map-hud-tag {
  background: rgba(10, 14, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass-bright);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--aura-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.radar-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aura-blue);
  box-shadow: 0 0 8px var(--aura-blue);
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.map-hud-recenter-btn {
  background: rgba(10, 14, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--aura-gold);
  color: var(--aura-gold);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
}

.map-hud-recenter-btn:hover {
  background: var(--aura-gold);
  color: #000;
}

/* Custom Leaflet Popups */
.leaflet-popup-content-wrapper {
  background: rgba(13, 18, 32, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border: 1.5px solid var(--aura-blue) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.4) !important;
}

.leaflet-popup-tip {
  background: rgba(13, 18, 32, 0.95) !important;
}

.popup-aura-card {
  padding: 4px;
}

.popup-badge-live {
  background: var(--aura-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 4px;
}

.popup-badge-future {
  background: var(--aura-blue);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 4px;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.popup-meta {
  font-size: 0.65rem;
  color: var(--aura-gold);
  margin-bottom: 6px;
}

.popup-cta-btn {
  background: linear-gradient(135deg, var(--aura-blue), #0077ff);
  border: none;
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* Hotspots Cards List */
.hotspots-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hotspot-feed-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.hotspot-feed-card:hover {
  border-color: var(--aura-blue);
  background: var(--bg-card-hover);
}

.hotspot-feed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hotspot-city-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hotspot-energy-tag {
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--aura-gold);
}

.hotspot-cta-btn {
  background: rgba(0, 242, 255, 0.15);
  border: 1px solid var(--aura-blue);
  color: var(--aura-blue);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hotspot-cta-btn:hover {
  background: var(--aura-blue);
  color: #000;
}

/* ==========================================================================
   Radar de Retos y Proximidad (Estilo Pokémon GO / Radar de Auras)
   ========================================================================== */
.radar-beacon-card {
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
}

.beacon-pulsing-aura {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aura-green);
  box-shadow: 0 0 10px var(--aura-green);
  animation: pulse-green 1.5s infinite;
}

.beacon-toggle-btn {
  background: rgba(0, 245, 155, 0.15);
  border: 1.5px solid var(--aura-green);
  color: var(--aura-green);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.beacon-toggle-btn.active {
  background: var(--aura-green);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 245, 155, 0.6);
}

/* Leaflet Custom Fighter Avatar Marker Pin */
.leaflet-fighter-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--aura-blue);
  box-shadow: 0 0 14px var(--aura-blue-glow);
  overflow: hidden;
  position: relative;
  background: #000;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.leaflet-fighter-pin:hover {
  transform: scale(1.2);
  z-index: 1000 !important;
}

.leaflet-fighter-pin.aura-red {
  border-color: var(--aura-red);
  box-shadow: 0 0 16px var(--aura-red-glow);
}

.leaflet-fighter-pin.aura-gold {
  border-color: var(--aura-gold);
  box-shadow: 0 0 18px rgba(255, 190, 11, 0.8);
}

.leaflet-fighter-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Central Elevated Action Button (+) */
.nav-item-central-plus {
  position: relative;
  top: -12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aura-blue), #0066ff);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px var(--aura-blue-glow);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  z-index: 40;
}

.nav-item-central-plus:hover, .nav-item-central-plus:active {
  transform: scale(1.12);
  box-shadow: 0 0 30px var(--aura-blue);
}

/* ==========================================================================
   Live Streaming Player, Broadcaster & Video Recorder Styles
   ========================================================================== */
.live-stream-player-box {
  position: relative;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--aura-blue);
  box-shadow: 0 0 30px var(--aura-blue-glow);
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-stream-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.live-stream-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,7,12,0.85) 0%, transparent 35%, rgba(5,7,12,0.92) 80%);
  pointer-events: none;
}

/* Stream Top HUD */
.stream-top-hud {
  position: relative;
  z-index: 10;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streamer-info-pill {
  background: rgba(10, 14, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
}

.streamer-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--aura-blue);
}

.streamer-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.streamer-name {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.stream-viewers-count {
  font-size: 0.6rem;
  color: var(--aura-blue);
  font-weight: 600;
}

.live-indicator-pill {
  background: rgba(255, 42, 95, 0.2);
  border: 1px solid var(--aura-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stream-hud-btn {
  background: rgba(0, 242, 255, 0.2);
  border: 1px solid var(--aura-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.stream-hud-btn:hover {
  background: var(--aura-blue);
  color: #000;
}

/* Stream Channel Switcher */
.stream-channels-chips {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
}

.stream-channels-chips.is-dragging {
  cursor: grabbing;
}

.stream-channels-chips::-webkit-scrollbar {
  display: none;
}

.stream-chip {
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-subheading);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.stream-chip.active {
  background: rgba(0, 242, 255, 0.2);
  border-color: var(--aura-blue);
  color: var(--aura-blue);
}

/* Floating Live Chat */
.stream-floating-chat {
  position: relative;
  z-index: 10;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 90px;
  overflow: hidden;
}

.chat-bubble {
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  color: #fff;
  align-self: flex-start;
  max-width: 90%;
  animation: slideUpFade 0.3s ease-out;
}

.chat-bubble span {
  color: var(--aura-blue);
  font-weight: 700;
}

.gift-bubble {
  background: rgba(255, 190, 11, 0.15);
  border: 1px solid rgba(255, 190, 11, 0.4);
  color: var(--aura-gold);
}

.gift-bubble span {
  color: #fff;
}

/* Live Floating Vote Widget inside Stream */
.stream-live-vote-widget {
  position: relative;
  z-index: 10;
  background: rgba(10, 14, 24, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  margin: 6px 10px 10px;
  padding: 8px;
}

.stream-hype-button {
  position: absolute;
  right: 12px;
  bottom: 85px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0055, #ff5500, var(--aura-gold));
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.8);
  animation: pulse-red 1.2s infinite;
  transition: transform 0.1s ease;
}

.stream-hype-button:active {
  transform: scale(0.9);
}

.broadcaster-alert-banner {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 245, 155, 0.9);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.6);
  z-index: 30;
  animation: fadeIn 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  body {
    padding: 0;
    justify-content: flex-start;
  }
  .top-dev-toolbar,
  .screen-selector-bar {
    display: none;
  }
  .device-container {
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;          /* respeta la barra del navegador móvil */
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
  }
  .phone-notch {
    display: none;
  }
  /* APK a pantalla completa: respetar notch / barra de gestos */
  .phone-status-bar { display: none; }
  .app-header { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .bottom-nav-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }
}



/* ═══════════════ Barrera de Beta Privada (login Google + testers) ═══════════════ */
body.is-gated { overflow: hidden; }
#auraTesterGate {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #10182b 0%, #05070d 70%);
  overflow-y: auto;
}
#auraTesterGate[hidden] { display: none !important; }
.tg-card {
  width: 100%; max-width: 380px;
  background: rgba(12, 16, 26, 0.92);
  border: 1px solid rgba(0, 242, 255, 0.22);
  border-radius: 18px;
  padding: 26px 22px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.tg-logo {
  font-family: var(--font-heading, sans-serif);
  font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; color: #fff;
}
.tg-logo span { color: var(--aura-blue, #00f2ff); }
.tg-badge {
  display: inline-block; margin: 10px 0 14px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 1px;
  color: var(--aura-gold, #ffcf3f);
  border: 1px solid rgba(255, 207, 63, 0.4);
  border-radius: 999px; padding: 4px 10px;
}
.tg-lead { font-size: 0.72rem; line-height: 1.45; color: var(--text-muted, #9aa4b2); margin-bottom: 16px; }
.tg-gbtn { display: flex; justify-content: center; min-height: 42px; margin-bottom: 12px; }
.tg-msg {
  font-size: 0.7rem; line-height: 1.4; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px;
}
.tg-msg.info { background: rgba(0, 242, 255, 0.08); color: #bfefff; }
.tg-msg.ok   { background: rgba(0, 255, 140, 0.1); color: #8dffc4; }
.tg-msg.err  { background: rgba(255, 70, 70, 0.1); color: #ffb3b3; }
.tg-waitlist p { font-size: 0.68rem; color: var(--text-muted, #9aa4b2); margin-bottom: 6px; }
.tg-row { display: flex; gap: 6px; margin-bottom: 8px; }
.tg-row input {
  flex: 1; min-width: 0; padding: 8px 10px; font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px; color: #fff;
}
.tg-row button {
  padding: 8px 12px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  background: var(--aura-blue, #00f2ff); color: #05070d; border: 0; border-radius: 8px; cursor: pointer;
}
.tg-adminlink {
  margin-top: 6px; background: none; border: 0; cursor: pointer;
  font-size: 0.6rem; color: rgba(255, 255, 255, 0.3); letter-spacing: 1px;
}
.tg-admin {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
.tg-admin[hidden] { display: none !important; }
.tg-admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tg-admin-head strong { font-size: 0.72rem; color: #fff; }
.tg-switch { font-size: 0.62rem; color: var(--text-muted, #9aa4b2); display: flex; align-items: center; gap: 4px; }
.tg-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 160px; overflow-y: auto; }
.tg-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 0.68rem; color: #dfe6ef; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tg-list li button { background: none; border: 0; color: var(--aura-red, #ff5a5a); cursor: pointer; font-size: 0.8rem; }
.tg-list-wait { margin-top: 8px; font-size: 0.62rem; color: var(--text-muted, #9aa4b2); }
.tg-list-wait .tg-wl {
  background: rgba(0, 242, 255, 0.1); color: #bfefff; border: 0; border-radius: 6px;
  padding: 3px 6px; margin: 2px; font-size: 0.62rem; cursor: pointer;
}
.tg-enter {
  margin-top: 12px; width: 100%; padding: 9px; font-weight: 800; font-size: 0.74rem;
  background: var(--aura-green, #00ff8c); color: #05070d; border: 0; border-radius: 9px; cursor: pointer;
}
.tg-enter[hidden] { display: none !important; }
.tg-foot { margin-top: 14px; font-size: 0.55rem; color: rgba(255, 255, 255, 0.28); line-height: 1.4; }

/* Barra de carga de KI en el duelo (lado "tú"), estilo kamehameha */
.combat-charge {
  position: absolute;
  left: 8%;
  right: 46%;
  bottom: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}
.combat-charge[hidden] { display: none !important; }
.combat-charge-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fdfff, #ffe27a, #ff5a5a);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.7);
  transition: width 0.08s linear;
}
.combat-charge::before {
  content: '';
  position: absolute;
  inset: -3px -4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}
.combat-charge-label {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.5rem;
  letter-spacing: 1px;
  color: #bfefff;
  text-shadow: 0 0 6px rgba(0, 242, 255, 0.8);
}
.combat-charge.full .combat-charge-bar {
  background: #fff;
  box-shadow: 0 0 18px #fff, 0 0 30px var(--aura-blue, #00f2ff);
  animation: chargePulse 0.35s ease-in-out infinite alternate;
}
@keyframes chargePulse { from { opacity: 0.7; } to { opacity: 1; } }

/* Selector de máscara dentro del flujo de combate */
.combat-mask-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
}
.combat-mask-row::-webkit-scrollbar { display: none; }
.combat-mask-row .mask-chip { flex: 0 0 auto; }
#btnCombatMask.active {
  border-color: var(--aura-gold, #ffcf3f);
  box-shadow: 0 0 10px rgba(255, 207, 63, 0.5);
}

/* Japonés: fuente con soporte CJK */
html[lang="ja"] body,
html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] textarea {
  font-family: "Noto Sans JP", var(--font-body, system-ui), "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* Selector de idioma */
.lang-row { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; font-size: 0.72rem; font-weight: 700;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; color: #dfe6ef; cursor: pointer;
}
.lang-chip.active { border-color: var(--aura-blue, #00f2ff); color: #fff; box-shadow: 0 0 8px rgba(0,242,255,0.4); }

/* Configurador del desafío (modalFighterChallenge) */
.ch-config { text-align: left; margin: 6px 0 10px; }
.ch-group { margin-bottom: 10px; }
.ch-group[hidden] { display: none !important; }
.ch-group .stat-label { display: block; margin-bottom: 4px; }
.ch-config .combat-opt-row button:disabled { cursor: not-allowed; }
.ch-note {
  margin-top: 5px; font-size: 0.6rem; line-height: 1.35;
  color: var(--aura-gold, #ffcf3f);
}
.ch-note[hidden] { display: none !important; }
.ch-audience {
  font-size: 0.58rem; line-height: 1.4; color: var(--text-muted, #9aa4b2);
  background: rgba(255,255,255,0.03); border-radius: 8px; padding: 6px 8px; margin: 8px 0 0;
}

/* Modo POR TURNOS: solo actúa uno, sin pantalla partida.
   OJO: la mitad "tú" es <div class="combat-half"> SIN modificador; la del
   rival es <div class="combat-half foe">. Por eso usamos :not(.foe). */
.combat-split.turns-mode::after { display: none; }
.combat-split.turns-mode .combat-half { clip-path: none !important; inset: 0; display: none; }
.combat-split.turns-mode[data-active="you"] .combat-half:not(.foe) { display: block; }
.combat-split.turns-mode[data-active="foe"] .combat-half.foe { display: block; }
.combat-split.turns-mode .combat-foe-avatar { display: none !important; }
.combat-split.turns-mode #combatDummyCanvas { left: 0; width: 100%; }
.combat-arena.turns-mode .combat-bars,
.combat-arena.turns-mode .combat-hud { display: none; }

.turn-hud {
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid var(--border-glass, rgba(255,255,255,0.1));
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.turn-hud[hidden] { display: none !important; }
.turn-hud-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heading, sans-serif); font-weight: 800; font-size: 0.72rem;
  color: #fff;
}
#turnHudTally { color: var(--aura-gold, #ffcf3f); }
#turnHudTimer.low { color: var(--aura-red, #ff5a5a); }
.turn-hud-active {
  margin-top: 4px; font-size: 0.7rem; font-weight: 700; color: var(--aura-blue, #00f2ff);
}
.turn-hud-active.foe { color: var(--aura-red, #ff5a5a); }
.turn-hud-score {
  font-family: var(--font-heading, sans-serif); font-weight: 900; font-size: 1.1rem;
  color: #fff; line-height: 1.1;
}
.turn-hud-track {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; margin-top: 4px;
}
.turn-hud-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #00f2ff, #ffe27a, #ff5a5a);
  transition: width 0.15s linear;
}
