/**
 * ============================================================================
 * BIXCI BLOX - DISEÑO MODERNO ESTILO ROBLOX (bixci-arcade-hub.css)
 * Experiencia interactiva luminosa, colores vivos, botones 3D con bevels (squash/bounce),
 * fuentes sans-serif redondeadas modernas, tarjetas blancas con sombras suaves,
 * HUD estilo cápsula de cristal (frosted glass) y catálogo integrado de bicicletas.
 * ============================================================================
 */

:root {
  /* Paleta de Colores Moderna Roblox */
  --blox-sky-top: #38a3ff;
  --blox-sky-mid: #7ac6ff;
  --blox-sky-light: #e0f2fe;
  --blox-blue: #0084ff;
  --blox-blue-dark: #005bb5;
  --blox-green: #00b06f;
  --blox-green-bright: #00e575;
  --blox-green-dark: #007a3d;
  --blox-gold: #ffb800;
  --blox-gold-dark: #d97706;
  --blox-orange: #ff5400;
  --blox-red: #ff334b;
  --blox-purple: #7b2cbf;
  --blox-dark-text: #0f172a;
  --blox-sub-text: #475569;
  --blox-card-bg: #ffffff;
  --blox-card-border: #e2e8f0;

  /* Tipografías Modernas */
  --font-main: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-brand: 'Outfit', 'Fredoka', system-ui, sans-serif;

  /* Dimensiones */
  --sticky-bar-height: 52px;
  --cabinet-radius: 24px;
}

/* Reset y Contenedor Principal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--blox-sky-top) 0%, var(--blox-sky-mid) 35%, var(--blox-sky-light) 75%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--blox-dark-text);
  font-family: var(--font-main);
  overflow-x: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* 1. STICKY BANNER SUPERIOR ROBLOX */
.bixci-sticky-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sticky-bar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 70, 150, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.banner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.banner-logo-text {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blox-blue);
  letter-spacing: -0.5px;
}

.banner-logo-text span {
  color: var(--blox-gold);
}

.banner-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 12px;
}

.banner-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}

.banner-ticker .badge-pulse {
  background: var(--blox-gold);
  color: #000;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(255, 184, 0, 0.4);
}

.banner-ticker .highlight {
  color: var(--blox-blue);
  font-weight: 900;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-btn-icon {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.banner-btn-icon:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.banner-btn-icon:active {
  transform: translateY(1px);
}

/* 2. CONTENEDOR MAESTRO ARCADE CABINET */
.bixci-arcade-wrapper {
  padding-top: calc(var(--sticky-bar-height) + 16px);
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 28px;
}

.bixci-arcade-cabinet {
  width: 100%;
  max-width: 760px;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 3px solid #ffffff;
  border-radius: var(--cabinet-radius);
  box-shadow: 0 20px 60px rgba(0, 70, 150, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.arcade-screen {
  display: none;
  width: 100%;
  height: 100%;
  flex: 1;
  flex-direction: column;
}

.arcade-screen.screen-active {
  display: flex;
}

/* 3. PANTALLA 1: HUB DE RETOS BIXCI BLOX */
#screen-arcade-hub {
  padding: 24px 20px;
  gap: 18px;
}

.hub-header {
  text-align: center;
}

.hub-title-tag {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--blox-blue);
  background: #e0f2fe;
  border: 1.5px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.hub-main-title {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-brand);
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hub-subtitle {
  font-size: 0.95rem;
  color: var(--blox-sub-text);
  font-weight: 600;
  margin-top: 4px;
}

/* Selector de Skins de Avatar (Desactivado) */
.skin-selector-bar {
  display: none !important;
}

.skin-selector-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
}

.skin-options-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-skin-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.avatar-skin-btn:hover {
  transform: scale(1.18);
}

.avatar-skin-btn.is-active {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--blox-blue), 0 4px 12px rgba(0, 132, 255, 0.35);
}

/* ============================================================================
   BILLETERA BLOX: SISTEMA GLOBAL DE DESCUENTOS Y PASAPORTE (4 JUEGOS = S/ 100)
   ============================================================================ */
.blox-wallet-banner {
  background: #ffffff;
  border: 2px solid #e0f2fe;
  border-bottom: 4px solid #38a3ff;
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.blox-wallet-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.06) 100%);
  pointer-events: none;
}

.wallet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.wallet-titles {
  display: flex;
  flex-direction: column;
}

.wallet-badge {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.5px;
}

.wallet-main-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--blox-dark-text);
  line-height: 1.1;
}

.wallet-amount-chip {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  border: 2px solid #eab308;
  border-bottom: 3px solid #ca8a04;
  border-radius: 999px;
  padding: 4px 12px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-brand);
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(234, 179, 8, 0.25);
  flex-shrink: 0;
}

.wallet-currency {
  font-size: 0.82rem;
  color: #854d0e;
}

.wallet-amount {
  font-size: 1.3rem;
  color: #713f12;
  letter-spacing: -0.5px;
}

.wallet-max {
  font-size: 0.75rem;
  color: #854d0e;
  font-weight: 800;
}

/* Barra de Progreso Global 0 -> 100% */
.wallet-progress-track {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  position: relative;
}

.wallet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #eab308 0%, #22c55e 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Sellos de los 4 Juegos (Mega Obby, Speed Sim, Tycoon, Pista 3D) */
.wallet-stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wallet-stamp {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  transition: all 0.2s ease;
  position: relative;
}

.wallet-stamp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wallet-stamp.is-completed {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  border-bottom: 3px solid #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.18);
  animation: stampUnlocked 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stampUnlocked {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.stamp-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.stamp-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stamp-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stamp-reward {
  font-size: 0.6rem;
  font-weight: 900;
  color: #16a34a;
}

.stamp-status {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}

.stamp-status.status-won {
  color: #15803d;
  background: #bbf7d0;
  border-color: #86efac;
  font-weight: 900;
}

/* Fila de Reclamo de Descuento */
.wallet-cta-row {
  margin-top: 4px;
}

.wallet-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ecfdf5;
  border: 1.5px dashed #34d399;
  border-radius: 12px;
  padding: 6px 12px;
}

.wallet-cta-desc {
  font-size: 0.76rem;
  font-weight: 800;
  color: #065f46;
}

.btn-wallet-claim {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 2px solid #ffffff;
  border-bottom: 3.5px solid #047857;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.btn-wallet-claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.4);
}

.btn-wallet-claim:active {
  transform: translateY(2px);
  border-bottom-width: 1.5px;
}

.btn-wallet-claim code {
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* CHIP DE MONEDAS EN EL HUD */
.hud-coins-chip {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 240, 138, 0.95) 100%);
  border: 2px solid #facc15;
  color: #854d0e;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.coin-icon-anim {
  display: inline-block;
  font-size: 1.05rem;
  animation: coinBob 1.5s ease-in-out infinite;
}

@keyframes coinBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) rotate(15deg); }
}

.hud-coins-chip.coin-pulse {
  animation: coinChipPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes coinChipPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.hud-coins-chip.goal-reached {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
  color: #ffffff !important;
  border-color: #86efac !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.65) !important;
}

/* Grid de Experiencias / Minijuegos (Cuadrícula de 4 espacios) */
.hub-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.arcade-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-bottom: 5px solid #cbd5e1;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.arcade-card:hover {
  border-color: var(--blox-blue);
  border-bottom-color: var(--blox-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 132, 255, 0.12);
}

.arcade-card:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.card-media {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.card-climb .card-media {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.card-mechanic .card-media {
  background: #fffbeb;
  border-color: #fde68a;
}

.card-rush3d .card-media {
  background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
  border-color: #c084fc;
}

.arcade-card.is-featured-3d {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  border: 2.5px solid #a855f7;
  border-bottom: 6px solid #7e22ce;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.18);
  position: relative;
}

.arcade-card.is-featured-3d:hover {
  border-color: #9333ea;
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.28);
  transform: translateY(-3px);
}

.badge-3d {
  background: linear-gradient(90deg, #9333ea 0%, #00b4d8 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px;
}

.genre-3d {
  background: #f3e8ff !important;
  color: #7e22ce !important;
}

.reward-3d {
  background: #fef08a !important;
  color: #854d0e !important;
}

.btn-3d {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%) !important;
  border-bottom-color: #581c87 !important;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.4) !important;
}

.btn-3d:hover {
  filter: brightness(1.12) !important;
}

.card-badge-tag {
  font-size: 0.58rem;
  font-weight: 900;
  background: #0f172a;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 999px;
  margin-top: 3px;
  text-transform: uppercase;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.card-genre {
  font-size: 0.68rem;
  font-weight: 800;
  background: #e0f2fe;
  color: var(--blox-blue);
  padding: 3px 8px;
  border-radius: 999px;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--blox-sub-text);
  line-height: 1.35;
  font-weight: 500;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.card-reward-tag {
  font-size: 0.78rem;
  font-weight: 900;
  color: #d97706;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Botón 3D Roblox Verde */
.card-play-btn {
  background: linear-gradient(180deg, #00d684 0%, #00b06f 100%);
  border: none;
  border-bottom: 4px solid var(--blox-green-dark);
  border-radius: 12px;
  padding: 8px 18px;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 176, 111, 0.3);
  transition: all 0.12s ease;
}

.card-play-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.card-play-btn:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* 4. PANTALLA 2: VIEWPORT DE JUEGO (FLOTANTE QUE OCUPA TODA LA PANTALLA) */
#screen-arcade-game {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 99999 !important;
  background: #080d1a !important;
  display: none;
  flex-direction: column !important;
  overflow: hidden !important;
  touch-action: none !important;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.95) !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

#screen-arcade-game.screen-active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: gameFadeIn 0.22s ease-out forwards !important;
}

#screen-arcade-game:not(.screen-active) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#screen-arcade-game:not(.screen-active) #game-hud,
#screen-arcade-game:not(.screen-active) .floating-hud {
  display: none !important;
  visibility: hidden !important;
}

@keyframes gameFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.game-canvas-wrapper {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1 !important;
  background: #080d1a !important;
  position: relative !important;
  overflow: hidden !important;
}

#bixci-game-canvas,
#bixci-game-canvas-3d,
#bixci-game-canvas-neon {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* HUD Flotante — En la parte superior de la pantalla de juego (screen-arcade-game) */
.floating-hud {
  position: absolute !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 960px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  pointer-events: none !important;
  z-index: 1000000 !important;
}

/* El botón Salir sí necesita recibir clicks y toques con máxima prioridad */
.floating-hud .hud-actions,
.hud-btn,
#hud-btn-exit {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1000002 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

.hud-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
}

.hud-chip {
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-family: var(--font-brand) !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.hud-timer-chip {
  color: #00f0ff !important;
  border-color: rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25) !important;
  font-weight: 900 !important;
}

.hud-timer-chip span:first-child {
  font-size: 1.1rem;
}

#hud-timer-val {
  display: inline-block !important;
  font-family: var(--font-brand) !important;
  font-weight: 900 !important;
  color: #00f0ff !important;
  letter-spacing: 0.8px !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6) !important;
  min-width: 48px !important;
}

/* Chip de puntaje eliminado del HUD superior según instrucción */
.hud-score-chip {
  display: none !important;
}

.hud-lives-chip {
  background: rgba(30, 15, 25, 0.88) !important;
  border: 1.5px solid rgba(255, 70, 100, 0.40) !important;
  box-shadow: 0 4px 14px rgba(255, 0, 80, 0.20) !important;
}

.hud-lives-container {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.15rem;
}

.life-heart {
  display: inline-block;
  font-size: 1.15rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, filter 0.25s ease;
  line-height: 1;
}

.life-heart.lost {
  opacity: 0.20 !important;
  filter: grayscale(100%) !important;
  transform: scale(0.75) !important;
}

/* MONEDA DORADA GIRATORIA 3D (IGUAL AL JUEGO) */
.hud-coin-3d-spin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  perspective: 400px;
  vertical-align: middle;
  flex-shrink: 0;
}

.hud-coin-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #fff9a6 0%, #ffcc00 45%, #e69500 75%, #b36b00 100%) !important;
  border: 1.5px solid #ffe853 !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.85), inset 0 0 4px rgba(180, 100, 0, 0.8) !important;
  animation: hudCoinRotate3D 2.0s linear infinite !important;
  transform-style: preserve-3d !important;
}

.hud-coin-symbol {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #78350f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  user-select: none !important;
  line-height: 1 !important;
}

@keyframes hudCoinRotate3D {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.hud-actions {
  pointer-events: auto !important;
  flex-shrink: 0 !important;
  z-index: 1000003 !important;
}

.hud-btn,
#hud-btn-exit {
  background: #ef4444 !important;
  border: 2px solid #ffffff !important;
  border-bottom: 3.5px solid #991b1b !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.55) !important;
  transition: all 0.12s ease !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1000003 !important;
  touch-action: manipulation !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.hud-btn:hover {
  background: #dc2626 !important;
  transform: scale(1.08);
}

.hud-btn:active {
  transform: scale(0.92);
  border-bottom-width: 1.5px;
}

/* Barra de Progreso */
.hud-progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hud-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00d684 0%, #00b06f 100%);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

/* Alerta de Combo Flotante */
.floating-combo-alert {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid #FFD100;
  box-shadow: 0 8px 25px rgba(255, 209, 0, 0.40);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 900;
  padding: 8px 22px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 250 !important;
  letter-spacing: 0.5px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.floating-combo-alert .hud-coin-3d-spin,
.inline-coin {
  display: inline-flex !important;
  vertical-align: middle !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 4px !important;
  flex-shrink: 0 !important;
}

.floating-combo-alert.show {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.floating-combo-alert.alert-danger {
  border-color: #ff0055;
  box-shadow: 0 8px 25px rgba(255, 0, 85, 0.55);
  color: #ff3377;
  background: rgba(45, 10, 20, 0.94);
}

.floating-combo-alert.alert-elimination {
  border-color: #00f0ff;
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.60);
  color: #00ffff;
  background: rgba(10, 30, 60, 0.94);
}

.floating-combo-alert.alert-success {
  border-color: #ffd700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.50);
  color: #ffe600;
  background: rgba(20, 25, 35, 0.94);
}

/* Neon Cycle: Ocultar panel de flechas antiguo y ayudas de teclado en pantalla */
#touch-overlay-mechanic,
#screen-arcade-game.mode-mechanic #touch-overlay-mechanic,
#screen-arcade-game.mode-mechanic .desktop-keyboard-hints {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* El Joystick Roblox permanece 100% activo en Neon Cycle (Mano Izquierda) */
#screen-arcade-game.mode-mechanic .touch-controls-layer {
  display: block !important;
  visibility: visible !important;
  pointer-events: none !important;
}

#screen-arcade-game.mode-mechanic .roblox-joystick-container {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 5. OVERLAYS TÁCTILES 3D ROBLOX */
.touch-controls-layer {
  position: absolute !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 16px) !important;
  max-width: 680px !important;
  z-index: 1000010 !important;
  pointer-events: none !important;
  display: block !important;
  visibility: visible !important;
  box-sizing: border-box !important;
}

.touch-controls-layer button,
.touch-controls-layer .touch-btn,
.touch-controls-layer .btn-bmx-trick,
.touch-controls-layer .bmx-ramp-badge,
.touch-controls-layer .arena-ctrl-group,
.touch-controls-layer .touch-grid-arena-bmx,
.touch-controls-layer .bmx-touch-hud,
.touch-controls-layer .touch-grid-rush3d,
.touch-controls-layer .touch-grid-mechanic,
.touch-controls-layer .touch-grid-neon,
.touch-controls-layer .roblox-joystick-container,
.touch-controls-layer .roblox-joystick-zone,
.touch-controls-layer .roblox-joystick-base,
.touch-controls-layer .roblox-joystick-knob,
.touch-controls-layer .touch-actions-cluster-right {
  pointer-events: auto !important;
}

/* ====================================================================
   ROBLOX VIRTUAL JOYSTICK (MANO IZQUIERDA - MÓVILES Y TABLETS)
   ==================================================================== */
.roblox-joystick-container {
  position: absolute !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 6px)) !important;
  left: 12px !important;
  width: 114px !important;
  height: 114px !important;
  z-index: 1000030 !important;
  pointer-events: auto !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  display: block !important;
  visibility: visible !important;
}

.roblox-joystick-zone {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  touch-action: none !important;
}

/* Base circular esmerilada con brillo cian Roblox */
.roblox-joystick-base {
  position: relative !important;
  width: 106px !important;
  height: 106px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.76) 0%, rgba(8, 14, 28, 0.90) 100%) !important;
  border: 2.5px solid rgba(0, 240, 255, 0.50) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 240, 255, 0.28), inset 0 0 16px rgba(0, 240, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer !important;
  touch-action: none !important;
}

.roblox-joystick-base.is-active {
  border-color: #00f0ff !important;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 240, 255, 0.70), inset 0 0 20px rgba(0, 240, 255, 0.35) !important;
}

/* Anillo concéntrico interior */
.roblox-joystick-ring {
  position: absolute !important;
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.22) !important;
  pointer-events: none !important;
}

/* Muescas cardinales iluminadas */
.roblox-joystick-arrows {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

.joy-arrow {
  position: absolute !important;
  font-size: 0.68rem !important;
  color: rgba(255, 255, 255, 0.40) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: color 0.12s ease, text-shadow 0.12s ease, transform 0.12s ease !important;
}

.joy-arrow-up {
  top: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.joy-arrow-down {
  bottom: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.joy-arrow-left {
  left: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.joy-arrow-right {
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.joy-arrow.is-lit {
  color: #00f0ff !important;
  text-shadow: 0 0 10px #00f0ff, 0 0 18px rgba(0, 240, 255, 0.85) !important;
}

.joy-arrow-up.is-lit { transform: translateX(-50%) scale(1.35) !important; }
.joy-arrow-down.is-lit { transform: translateX(-50%) scale(1.35) !important; }
.joy-arrow-left.is-lit { transform: translateY(-50%) scale(1.35) !important; }
.joy-arrow-right.is-lit { transform: translateY(-50%) scale(1.35) !important; }

/* Perilla deslizante con relieve 3D */
.roblox-joystick-knob {
  position: absolute !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0284c7 50%, #0369a1 100%) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 240, 255, 0.55), inset 0 2px 5px rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: grab !important;
  touch-action: none !important;
  will-change: transform !important;
  transform: translate3d(0, 0, 0) !important;
  z-index: 10 !important;
}

.roblox-joystick-knob.is-dragging {
  cursor: grabbing !important;
  filter: brightness(1.18) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75), 0 0 22px rgba(0, 240, 255, 0.85), inset 0 2px 6px rgba(255, 255, 255, 0.8) !important;
}

.roblox-joystick-knob.is-returning {
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.knob-core {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 40% 40%, #ffffff 0%, #bae6fd 60%, #0284c7 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 6px rgba(255, 255, 255, 0.5) !important;
  pointer-events: none !important;
}

/* Espaciador y Grupos de Botones */
.touch-joystick-spacer {
  width: 116px !important;
  min-width: 116px !important;
  height: 1px !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.touch-actions-cluster-right {
  display: flex !important;
  flex: 1 !important;
  gap: 6px !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  pointer-events: none !important;
}

.touch-actions-cluster-right .touch-btn {
  pointer-events: auto !important;
}

.game-touch-overlay {
  display: none !important;
}

.game-touch-overlay.overlay-active {
  display: block !important;
  visibility: visible !important;
}

.touch-grid-sprint, .touch-grid-climb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* D-PAD NEÓN PARA NEON CYCLE COLLECTOR */
.touch-grid-neon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.touch-row-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.touch-btn-neon {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.92) 0%, rgba(0, 150, 255, 0.95) 100%);
  border: 2px solid #ffffff;
  border-bottom: 4px solid #005bb5;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  width: 62px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.45);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
}

.touch-btn-neon:active {
  transform: translateY(2px) scale(0.95);
  border-bottom-width: 2px;
  box-shadow: 0 2px 6px rgba(0, 240, 255, 0.6);
}

.touch-center-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 16, 32, 0.85);
  border: 2px solid #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  animation: pulseNeonCenter 1.5s infinite ease-in-out;
}

@keyframes pulseNeonCenter {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(0, 240, 255, 0.8); }
}

/* ESTILOS DE LA TARJETA NEON CYCLE COLLECTOR */
.card-mechanic.is-featured-neon {
  background: linear-gradient(135deg, #090e1f 0%, #0d152d 100%) !important;
  border: 2px solid #00f0ff !important;
  border-bottom: 5px solid #0088cc !important;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.22) !important;
  color: #ffffff !important;
}

.card-mechanic.is-featured-neon .card-title {
  color: #ffffff !important;
}

.card-mechanic.is-featured-neon .card-desc {
  color: #94a3b8 !important;
}

.card-media-neon {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(217, 70, 239, 0.25) 100%) !important;
  border: 2px solid #00f0ff !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4) !important;
}

.badge-neon {
  background: linear-gradient(90deg, #00f0ff, #d946ef) !important;
  color: #050814 !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.5) !important;
}

.genre-neon {
  color: #38bdf8 !important;
}

.reward-neon {
  background: rgba(0, 240, 255, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
}

.btn-neon {
  background: linear-gradient(180deg, #00f0ff 0%, #0084ff 100%) !important;
  border-color: #ffffff !important;
  border-bottom-color: #004bb5 !important;
  color: #050814 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.5) !important;
}

.touch-grid-rush3d {
  display: grid !important;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr !important;
  gap: 8px !important;
  width: 100% !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.touch-btn-rush-left {
  grid-column: 1 !important;
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 52px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.touch-btn-rush-jump {
  grid-column: 2 !important;
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 52px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.touch-btn-rush-nitro {
  grid-column: 3 !important;
  order: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 52px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.touch-btn-rush-right {
  grid-column: 4 !important;
  order: 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 52px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Botones Táctiles con Bevels 3D */
.touch-btn {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-bottom: 5px solid #94a3b8;
  border-radius: 16px;
  color: #0f172a;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.08s ease;
  user-select: none;
  -webkit-user-select: none;
}

.touch-btn-jump, .touch-btn-rush-jump {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-color: #bae6fd;
  border-bottom-color: #0369a1;
  color: #ffffff;
}

.touch-btn-duck {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  border-color: #fed7aa;
  border-bottom-color: #c2410c;
  color: #ffffff;
}

.touch-btn-rush-nitro {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-color: #fde68a;
  border-bottom-color: #b45309;
  color: #ffffff;
}

.touch-btn-rush-left, .touch-btn-rush-right {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-color: #a7f3d0;
  border-bottom-color: #047857;
  color: #ffffff;
}

.touch-btn-pedal-l, .touch-btn-pedal-r {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  border-color: #bbf7d0;
  border-bottom-color: #15803d;
  color: #ffffff;
}

.touch-btn-lane.is-selected {
  background: linear-gradient(180deg, #00d684 0%, #00b06f 100%);
  border-color: #a7f3d0;
  border-bottom-color: var(--blox-green-dark);
  color: #ffffff;
}

.touch-btn:active, .touch-btn.is-pressed {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

.desktop-keyboard-hints {
  display: none;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 23, 42, 0.7);
  padding: 5px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .desktop-keyboard-hints {
    display: block;
  }
}

.desktop-keyboard-hints kbd {
  background: #ffffff;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
}

/* 6. CUENTA REGRESIVA OVERLAY */
.countdown-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: radial-gradient(circle at center, rgba(8, 13, 26, 0.15) 0%, rgba(8, 13, 26, 0.45) 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.countdown-overlay.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999999 !important;
}

.countdown-number {
  font-family: var(--font-brand, "Outfit", -apple-system, sans-serif) !important;
  font-size: clamp(5rem, 18vw, 8.5rem) !important;
  font-weight: 900 !important;
  color: #00f0ff !important;
  text-shadow: 0 0 35px rgba(0, 240, 255, 0.95), 0 0 75px rgba(0, 132, 255, 0.7), 0 0 100px rgba(0, 0, 0, 0.9) !important;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
  line-height: 1 !important;
  user-select: none !important;
  display: block !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 0 16px 0 !important;
}

@media (max-width: 600px) {
  .floating-hud {
    top: 8px !important;
    width: calc(100% - 10px) !important;
  }
  .hud-top-bar {
    gap: 3px !important;
  }
  .hud-chip {
    padding: 4px 6px !important;
    font-size: 0.76rem !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }
  .hud-timer-chip {
    padding: 4px 6px !important;
  }
  .hud-timer-chip span:first-child {
    font-size: 0.84rem !important;
  }
  #hud-timer-val {
    font-size: 0.80rem !important;
    min-width: 32px !important;
    letter-spacing: 0.2px !important;
  }
  .hud-lives-container {
    gap: 2px !important;
    font-size: 0.85rem !important;
  }
  .life-heart {
    font-size: 0.85rem !important;
  }
  .hud-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 0.90rem !important;
    flex-shrink: 0 !important;
  }
  .countdown-number {
    font-size: 5.5rem !important;
  }
  .countdown-tip {
    font-size: 0.82rem !important;
    padding: 6px 14px !important;
    max-width: 90% !important;
  }
}

@keyframes countdownPop {
  0% { transform: scale(0.5); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.countdown-tip {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  background: rgba(0, 240, 255, 0.18) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) !important;
  padding: 10px 26px !important;
  border-radius: 999px !important;
  margin-top: 18px !important;
  text-align: center !important;
  max-width: 85% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* 7. MODALES DE RESULTADO (VICTORIA / GAMEOVER) */
.result-dialog-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(9, 13, 22, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  z-index: 2000000 !important;
  animation: fadeIn 0.25s ease-out !important;
}

.result-dialog-backdrop.open,
.result-dialog-backdrop.is-active,
.result-dialog-backdrop[style*="display: flex"] {
  display: flex !important;
}

.result-dialog-backdrop[style*="display: none"] {
  display: none !important;
}

.result-card {
  background: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 24px 20px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Tarjeta Lúdica Gamer para Game Over */
.result-card-gameover {
  background: linear-gradient(180deg, #131d33 0%, #0a0f1d 100%) !important;
  border: 2px solid rgba(0, 240, 255, 0.40) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 240, 255, 0.22) !important;
  color: #ffffff !important;
}

.result-card-gameover .result-status-tag {
  background: rgba(255, 180, 0, 0.18) !important;
  color: #ffc400 !important;
  border: 1px solid rgba(255, 180, 0, 0.45) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.5px !important;
}

.result-card-gameover .result-title {
  color: #ffffff !important;
  font-size: 2rem !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
  margin-top: -4px;
  margin-bottom: 2px;
}

.result-card-gameover .result-subtext {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  margin-bottom: 6px;
  line-height: 1.4;
}

.bounce-anim {
  display: inline-block;
  animation: badgeBounce 2s infinite ease-in-out;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.10); }
}

/* Tarjeta Lúdica de Monedas Destacada */
.coin-summary-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 170, 0, 0.05) 100%);
  border: 2px solid #ffd700;
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.24), inset 0 0 15px rgba(255, 215, 0, 0.10);
  margin: 4px 0;
}

.coin-summary-icon-anim {
  font-size: 2.8rem;
  line-height: 1;
  animation: coinSpinPulse 2.4s infinite ease-in-out;
}

@keyframes coinSpinPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.16) rotate(12deg); }
}

.coin-summary-data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.coin-summary-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffd700;
  text-transform: uppercase;
}

.coin-summary-amount {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-top: 2px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.coin-summary-target {
  font-size: 1.25rem;
  color: #94a3b8;
  font-weight: 700;
}

.coin-reward-hint {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin-bottom: 6px;
}

.coin-reward-hint strong {
  color: #00f0ff;
}

/* Botón Reintentar Súper Lúdico */
.btn-retry-ludico {
  background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 150, 255, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border: none !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.btn-retry-ludico:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 25px rgba(0, 180, 255, 0.70) !important;
}

.btn-retry-ludico:active {
  transform: translateY(1px) scale(0.98) !important;
}

.btn-return-ludico {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  width: 100% !important;
}

.btn-return-ludico:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.result-icon-badge {
  font-size: 3rem;
  line-height: 1;
}

.result-status-tag {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 900;
  color: #d97706;
  background: #fef3c7;
  padding: 4px 14px;
  border-radius: 999px;
}

.result-title {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}

.result-stats-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.result-stat-box {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.stat-value.highlight-yellow {
  color: #d97706;
}

/* Cupón Ganado */
.coupon-reward-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px dashed var(--blox-green);
  border-radius: 18px;
  padding: 14px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.coupon-reward-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
}

.coupon-discount-amount {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 900;
  color: #15803d;
}

.coupon-code-pill {
  background: #ffffff;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.coupon-code-pill:hover {
  border-color: var(--blox-green);
  transform: scale(1.02);
}

.coupon-code-text {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 900;
  color: #15803d;
  letter-spacing: 1px;
}

.coupon-copy-btn {
  background: var(--blox-green);
  border: none;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.coupon-terms {
  font-size: 0.7rem;
  font-weight: 600;
  color: #166534;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.btn-primary-action {
  background: linear-gradient(180deg, #00d684 0%, #00b06f 100%);
  border: none;
  border-bottom: 5px solid var(--blox-green-dark);
  border-radius: 14px;
  padding: 14px 20px;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 176, 111, 0.35);
  transition: all 0.12s ease;
}

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

.btn-primary-action:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.btn-secondary-action {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  color: #475569;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-secondary-action:hover {
  background: #e2e8f0;
}

/* 8. CATÁLOGO INTERACTIVO DE BICICLETAS */
.bixci-catalog-section {
  padding: 40px 16px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.catalog-header {
  text-align: center;
  margin-bottom: 24px;
}

.catalog-badge {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--blox-blue);
  background: #e0f2fe;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.catalog-title {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
}

.catalog-subtitle {
  font-size: 0.95rem;
  color: var(--blox-sub-text);
  font-weight: 600;
  margin-top: 4px;
}

.bixci-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.bixci-filter-chip {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-bottom: 4px solid #cbd5e1;
  border-radius: 14px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.12s ease;
}

.bixci-filter-chip.active {
  background: var(--blox-blue);
  border-color: var(--blox-blue);
  border-bottom-color: var(--blox-blue-dark);
}

.bixci-filter-chip.active .chip-title,
.bixci-filter-chip.active .chip-sub {
  color: #ffffff;
}

.chip-title {
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 900;
  color: #0f172a;
}

.chip-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

/* Grid de Bicicletas */
.bixci-bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.bixci-bike-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-bottom: 5px solid #cbd5e1;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bixci-bike-card:hover {
  transform: translateY(-3px);
  border-color: var(--blox-blue);
  border-bottom-color: var(--blox-blue-dark);
  box-shadow: 0 12px 30px rgba(0, 132, 255, 0.12);
}

.bixci-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}

.bixci-card-media {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.bixci-card-media img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.bixci-bike-card:hover .bixci-card-media img {
  transform: scale(1.06);
}

.bixci-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bixci-card-age {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blox-blue);
}

.bixci-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.bixci-card-price-row {
  margin: 6px 0;
}

.bixci-card-price {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.bixci-btn-buy {
  background: linear-gradient(180deg, #00d684 0%, #00b06f 100%);
  border: none;
  border-bottom: 4px solid var(--blox-green-dark);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.bixci-btn-buy:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.bixci-btn-buy:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* 9. MODAL DE REGLAS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #334155;
}

/* 10. TOAST NOTIFICACIÓN */
.arcade-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
}

.arcade-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   11. BOTÓN TRIGGER Y MODAL FLOTANTE DE BICICLETAS (DRAWER / BOTTOM SHEET)
   ========================================================================== */

.hub-catalog-trigger-bar {
  width: 100%;
  margin-top: 4px;
}

.btn-open-bikes-catalog {
  width: 100%;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  border: 2px solid #38bdf8;
  border-bottom: 4px solid #0369a1;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-brand);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
}

.btn-open-bikes-catalog:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-open-bikes-catalog:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.btn-bikes-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.btn-bikes-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.btn-bikes-text strong {
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffffff;
}

.btn-bikes-text small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #bae6fd;
}

.btn-bikes-badge {
  background: #ffd000;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255, 208, 0, 0.35);
}

.banner-btn-bikes {
  background: linear-gradient(135deg, #00d684 0%, #00b06f 100%);
  border: none;
  border-bottom: 2px solid #047857;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.1s ease;
}

.banner-btn-bikes:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

/* Modal Flotante de Bicicletas */
.modal-bikes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end; /* Bottom sheet en móvil */
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-bikes-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-bikes-content {
  background: #f8fafc;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  animation: slideUpBikes 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes slideUpBikes {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 681px) {
  .modal-bikes-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-bikes-content {
    border-radius: 24px;
    max-height: 85vh;
  }
}

.modal-bikes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
}

.modal-bikes-title-box .catalog-badge {
  margin-bottom: 2px;
}

.modal-bikes-title-box .modal-title {
  font-size: 1.15rem;
  margin: 0;
}

.modal-bikes-title-box .modal-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin: 2px 0 0 0;
  font-weight: 600;
}

.modal-bikes-scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 28px;
}

.modal-bikes-scroll-area .bixci-bikes-grid {
  margin-top: 10px;
}

/* ==========================================================================
   12. ADAPTABILIDAD MÓVIL TOTAL (EXPERIENCIA CERO SCROLL & 4 JUEGOS EN 2X2)
   ========================================================================== */

@media (max-width: 768px) {
  .bixci-arcade-cabinet {
    border-radius: 20px;
  }
  .bixci-bikes-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 680px) {
  /* Cero Scroll en la Pantalla Principal Móvil */
  html, body {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    touch-action: manipulation;
  }

  :root {
    --sticky-bar-height: 44px;
  }

  .bixci-sticky-banner {
    padding: 0 8px;
    height: 44px;
  }

  .banner-logo-text {
    font-size: 0.95rem;
  }

  .banner-ticker {
    display: none; /* Se oculta para dar espacio a botones en pantallas estrechas */
  }

  .banner-actions {
    gap: 4px;
  }

  .banner-btn-bikes {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .banner-btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  /* Contenedor Arcade adaptado a 100dvh */
  .bixci-arcade-wrapper {
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-top: calc(var(--sticky-bar-height) + 2px) !important;
    padding-bottom: 4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .bixci-arcade-cabinet {
    flex: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    border-width: 2px !important;
    overflow: hidden !important;
  }

  /* PANTALLA 1: HUB 100% VISIBLE SIN SCROLL */
  #screen-arcade-hub {
    flex: 1 !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 6px 6px 6px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  .hub-header {
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .hub-title-tag {
    font-size: 0.58rem !important;
    padding: 1px 6px !important;
    margin-bottom: 1px !important;
  }

  .hub-main-title {
    font-size: 1.28rem !important;
    margin: 0 !important;
    line-height: 1.05 !important;
  }

  .hub-subtitle {
    display: none !important;
  }

  /* BILLETERA BLOX EN MÓVIL (COMPACTO Y CERO SCROLL) */
  .blox-wallet-banner {
    padding: 6px 8px !important;
    border-radius: 12px !important;
    margin: 2px 0 4px 0 !important;
    gap: 4px !important;
    border-width: 1.5px !important;
    border-bottom-width: 3px !important;
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.06) !important;
  }

  .wallet-header-row {
    margin-bottom: 2px !important;
  }

  .wallet-title-block {
    gap: 5px !important;
  }

  .wallet-icon {
    font-size: 1.15rem !important;
  }

  .wallet-badge {
    font-size: 0.5rem !important;
    padding: 1px 4px !important;
  }

  .wallet-main-title {
    font-size: 0.78rem !important;
    line-height: 1 !important;
  }

  .wallet-amount-chip {
    padding: 2px 7px !important;
    border-width: 1.5px !important;
    border-bottom-width: 2.5px !important;
  }

  .wallet-currency {
    font-size: 0.68rem !important;
  }

  .wallet-amount {
    font-size: 0.95rem !important;
  }

  .wallet-max {
    font-size: 0.62rem !important;
  }

  .wallet-progress-track {
    height: 4px !important;
  }

  .wallet-stamps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }

  .wallet-stamp {
    padding: 3px 2px !important;
    border-radius: 8px !important;
    min-height: 0 !important;
    gap: 1px !important;
    border-width: 1px !important;
  }

  .stamp-icon {
    font-size: 0.95rem !important;
  }

  .stamp-name {
    font-size: 0.56rem !important;
    line-height: 1 !important;
  }

  .stamp-reward {
    display: none !important;
  }

  .stamp-status {
    font-size: 0.52rem !important;
    padding: 0 3px !important;
  }

  .wallet-cta-row {
    margin-top: 2px !important;
  }

  .wallet-cta-box {
    padding: 3px 6px !important;
    border-radius: 8px !important;
  }

  .wallet-cta-desc {
    font-size: 0.62rem !important;
  }

  .btn-wallet-claim {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
  }

  /* CUADRÍCULA DE 4 ESPACIOS (2x2) */
  .hub-games-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 6px !important;
    flex: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .arcade-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    padding: 5px 6px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
    border-bottom-width: 3.5px !important;
    gap: 2px !important;
    text-align: center !important;
    cursor: pointer !important;
    min-height: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .card-media {
    width: 100% !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-bottom: 1px !important;
  }

  .card-badge-tag {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    font-size: 0.5rem !important;
    padding: 1px 4px !important;
  }

  .card-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
    min-height: 0 !important;
    gap: 2px !important;
  }

  .card-header-row {
    flex-direction: column !important;
    gap: 1px !important;
    align-items: center !important;
  }

  .card-title {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .card-genre {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
  }

  .card-desc {
    display: none !important;
  }

  .card-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: auto !important;
  }

  .card-reward-tag {
    font-size: 0.58rem !important;
    padding: 1px 4px !important;
    line-height: 1.2 !important;
  }

  .card-play-btn {
    width: 100% !important;
    padding: 4px 6px !important;
    font-size: 0.72rem !important;
    border-radius: 8px !important;
    justify-content: center !important;
    border-bottom-width: 2.5px !important;
  }

  /* BOTÓN PARA ABRIR CATÁLOGO FLOTANTE */
  .hub-catalog-trigger-bar {
    width: 100% !important;
    padding-top: 1px !important;
  }

  .btn-open-bikes-catalog {
    width: 100% !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    border-bottom-width: 3px !important;
  }

  .btn-bikes-icon {
    font-size: 1.25rem !important;
  }

  .btn-bikes-text strong {
    font-size: 0.8rem !important;
  }

  .btn-bikes-text small {
    font-size: 0.62rem !important;
  }

  .btn-bikes-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  /* PANTALLA DE JUEGO FLOTANTE PANTALLA COMPLETA EN MÓVIL */
  #screen-arcade-game {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    z-index: 10005 !important;
  }

  #screen-arcade-game.screen-active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #screen-arcade-game:not(.screen-active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .game-canvas-wrapper {
    flex: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #bixci-game-canvas,
  #bixci-game-canvas-3d,
  #bixci-game-canvas-neon {
    min-height: 0 !important;
  }

  /* Botones Táctiles Móviles */
  .touch-controls-layer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    z-index: 1000010 !important;
    pointer-events: none !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 8px)) !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
  }

  .touch-controls-layer button,
  .touch-controls-layer .touch-btn,
  .touch-controls-layer .btn-bmx-trick,
  .touch-controls-layer .bmx-ramp-badge,
  .touch-controls-layer .arena-ctrl-group,
  .touch-controls-layer .touch-grid-arena-bmx,
  .touch-controls-layer .bmx-touch-hud,
  .touch-controls-layer .touch-grid-rush3d {
    pointer-events: auto !important;
  }

  .bmx-gesture-hint-pill {
    display: none !important;
  }

  /* Ocultar indicadores de rampas R1, R2, R3, R4, PLAZA en móvil (se dejan para la PC) */
  .bmx-ramps-status {
    display: none !important;
  }

  /* Fila única integrada: Medidor de velocidad + Botones de piruetas agrandados */
  .bmx-touch-hud {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 5px 0 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    gap: 6px !important;
    pointer-events: none !important;
  }

  .bmx-hud-telemetry {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
  }

  .bmx-speedo-chip {
    height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2px 8px !important;
    border-radius: 11px !important;
    border: 1.5px solid #00f0ff !important;
    border-bottom: 3px solid #0284c7 !important;
    background: linear-gradient(180deg, #1e293b 0%, #090d16 100%) !important;
    box-shadow: 0 3px 10px rgba(0, 240, 255, 0.25) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .bmx-speedo-chip strong {
    color: #00f0ff !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6) !important;
  }

  .bmx-speedo-chip span {
    color: #fbbf24 !important;
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  .bmx-speedo-chip .bmx-speedo-dot {
    display: none !important;
  }

  .bmx-stunts-quickbar {
    display: flex !important;
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 4px !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  /* Botones de piruetas ligeramente agrandados para móvil */
  .btn-bmx-trick {
    flex: 1 !important;
    min-width: 44px !important;
    height: 48px !important;
    padding: 3px 2px !important;
    border-radius: 11px !important;
    border: 1.5px solid #00d26a !important;
    border-bottom: 3px solid #059669 !important;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    box-shadow: 0 3px 10px rgba(0, 210, 106, 0.25) !important;
    transition: transform 0.08s ease, filter 0.08s ease !important;
  }

  .btn-bmx-trick:active {
    transform: scale(0.92) translateY(2px) !important;
    filter: brightness(1.3) !important;
  }

  .btn-bmx-trick .trick-icon {
    font-size: 1.18rem !important;
    line-height: 1 !important;
  }

  .btn-bmx-trick .trick-label {
    font-size: 0.54rem !important;
    font-weight: 800 !important;
    color: #6ee7b7 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
  }

  .touch-grid-arena-bmx {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2px 8px !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
  }

  .touch-grid-arena-bmx .touch-btn {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .touch-joystick-spacer {
    width: 114px !important;
    min-width: 114px !important;
    height: 1px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
  }

  /* Ocultar botones de giro redundantes en móvil para dar 100% protagonismo al Joystick Roblox */
  .bmx-steer-buttons-group {
    display: none !important;
  }

  .touch-actions-cluster-right {
    display: flex !important;
    flex: 1 !important;
    gap: 6px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    pointer-events: none !important;
  }

  .touch-actions-cluster-right .touch-btn {
    pointer-events: auto !important;
  }

  .touch-grid-arena-bmx .touch-btn-bmx-jump {
    flex: 1 !important;
    min-width: 0 !important;
    height: 58px !important;
    border-radius: 13px !important;
    font-size: 0.82rem !important;
    padding: 0 6px !important;
  }

  .touch-grid-arena-bmx .touch-btn-bmx-jump .jump-icon {
    font-size: 1.15rem !important;
  }

  .touch-grid-arena-bmx .touch-btn-bmx-jump .jump-lbl {
    font-size: 0.74rem !important;
    font-weight: 900 !important;
  }

  .touch-grid-arena-bmx .touch-btn-pedal-bmx {
    flex: 1.45 !important;
    min-width: 0 !important;
    height: 58px !important;
    border-radius: 13px !important;
    font-size: 0.88rem !important;
    padding: 0 8px !important;
  }

  .touch-grid-arena-bmx .touch-btn-pedal-bmx .pedal-icon {
    font-size: 1.25rem !important;
  }

  .touch-grid-arena-bmx .touch-btn-pedal-bmx .pedal-lbl {
    font-size: 0.82rem !important;
    font-weight: 900 !important;
  }

  .touch-grid-rush3d {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 2px 8px !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
  }

  .rush3d-actions-cluster {
    display: flex !important;
    flex: 1 !important;
    gap: 5px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    pointer-events: none !important;
  }

  .touch-grid-rush3d .touch-btn {
    pointer-events: auto !important;
    padding: 8px 4px !important;
    font-size: 0.76rem !important;
    border-radius: 12px !important;
    border-bottom-width: 3.5px !important;
    min-width: 0 !important;
    min-height: 52px !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .touch-grid-rush3d .touch-btn span {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    display: inline-block !important;
    letter-spacing: -0.2px !important;
    font-weight: 900 !important;
  }

  /* CATÁLOGO DENTRO DEL MODAL EN MÓVIL */
  .modal-bikes-content {
    max-height: 90dvh !important;
  }

  .bixci-bikes-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .bixci-bike-card {
    padding: 8px !important;
    border-radius: 14px !important;
  }

  .bixci-card-media {
    height: 90px !important;
    border-radius: 8px !important;
  }

  .bixci-card-title {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
  }

  .bixci-card-price {
    font-size: 0.95rem !important;
  }

  .bixci-btn-buy {
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 360px) {
  .card-title {
    font-size: 0.72rem !important;
  }
  .card-media {
    height: 32px !important;
    font-size: 1.15rem !important;
  }
  .hub-main-title {
    font-size: 1.15rem !important;
  }
  .touch-grid-rush3d .touch-btn span {
    font-size: 0.65rem !important;
  }
}

/* ==========================================================================
   BIXCI BLOX - JUEGO 1: BMX FREESTYLE 3D (ESTILOS Y CONTROLES)
   ========================================================================== */

/* Tarjeta Destacada Hub: BMX Freestyle 3D */
.card-sprint.is-featured-bmx {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 2.5px solid #00d26a;
  border-bottom: 6px solid #059669;
  box-shadow: 0 8px 24px rgba(0, 210, 106, 0.18);
  position: relative;
}

.card-sprint.is-featured-bmx:hover {
  border-color: #10b981;
  box-shadow: 0 12px 32px rgba(0, 210, 106, 0.28);
  transform: translateY(-3px);
}

.card-media-bmx {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #cffafe 100%) !important;
  border-color: #6ee7b7 !important;
}

.badge-bmx {
  background: linear-gradient(90deg, #00d26a 0%, #00b4d8 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px;
}

.genre-bmx {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.reward-bmx {
  background: #fef08a !important;
  color: #854d0e !important;
}

.btn-bmx {
  background: linear-gradient(180deg, #00d26a 0%, #059669 100%) !important;
  border-bottom-color: #047857 !important;
  box-shadow: 0 4px 14px rgba(0, 210, 106, 0.4) !important;
}

.btn-bmx:hover {
  filter: brightness(1.12) !important;
}

/* Banner Flotante de Acrobacia en Pantalla */
.bmx-stunt-banner {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translate(-50%, -20px) scale(0.92);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 2.5px solid #00f0ff;
  border-radius: 999px;
  padding: 8px 22px;
  color: #ffffff;
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45), inset 0 0 12px rgba(0, 240, 255, 0.2);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.bmx-stunt-banner.banner-active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: bmx-banner-pulse 1.4s infinite ease-in-out;
}

.bmx-stunt-banner.stunt-success {
  background: rgba(5, 150, 105, 0.96) !important;
  border-color: #ffd700 !important;
  box-shadow: 0 8px 35px rgba(255, 215, 0, 0.75), inset 0 0 15px rgba(255, 215, 0, 0.3) !important;
  transform: translate(-50%, 0) scale(1.08) !important;
}

.bmx-stunt-banner .stunt-prompt-highlight {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.bmx-stunt-banner .stunt-success-text {
  color: #ffea79;
  text-shadow: 0 0 12px rgba(255, 234, 121, 0.9);
}

@keyframes bmx-banner-pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45);
  }
  50% {
    box-shadow: 0 10px 35px rgba(0, 240, 255, 0.75);
  }
}

/* Capa de Controles Táctiles BMX - Arena 3D */
.bmx-touch-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 6px;
  pointer-events: auto;
}

.bmx-hud-telemetry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding: 0 4px;
  gap: 8px;
}

.bmx-speedo-chip {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #00f0ff;
  border-radius: 999px;
  padding: 3px 12px;
  font-family: var(--font-brand);
  font-size: 0.74rem;
  font-weight: 800;
  color: #e0f2fe;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bmx-speedo-chip strong {
  color: #00f0ff;
  font-size: 0.82rem;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.bmx-speedo-chip span {
  color: #fbbf24;
}

.bmx-ramps-status {
  display: flex;
  gap: 4px;
  align-items: center;
}

.bmx-ramp-badge {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: var(--font-brand);
  font-size: 0.64rem;
  font-weight: 800;
  color: #94a3b8;
  transition: all 0.25s ease;
  user-select: none;
}

.bmx-ramp-badge.badge-cleared,
.bmx-ramp-badge.cleared {
  background: rgba(0, 210, 106, 0.3);
  border-color: #00d26a;
  color: #4ade80;
  box-shadow: 0 0 10px rgba(0, 210, 106, 0.7);
  transform: scale(1.05);
}

.bmx-gesture-hint-pill {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: 999px;
  padding: 3px 14px;
  color: #e0f2fe;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.bmx-gesture-hint-pill strong {
  color: #38bdf8;
}

.bmx-stunts-quickbar {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  justify-content: center;
  padding: 2px 4px;
  -webkit-overflow-scrolling: touch;
}

.btn-bmx-trick {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #00d26a;
  border-bottom: 3px solid #059669;
  border-radius: 12px;
  color: #ffffff;
  padding: 4px 8px;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.1s ease, filter 0.1s ease;
  box-shadow: 0 3px 10px rgba(0, 210, 106, 0.25);
}

.btn-bmx-trick:active {
  transform: scale(0.92) translateY(2px);
  filter: brightness(1.2);
}

.btn-bmx-trick .trick-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-bmx-trick .trick-label {
  font-size: 0.60rem;
  font-weight: 800;
  color: #6ee7b7;
  white-space: nowrap;
}

/* Grilla Inferior de Mandos Tron / BMX Móvil */
.touch-grid-arena-bmx {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 8px 6px;
  pointer-events: none;
}

.touch-grid-arena-bmx .touch-btn-steer {
  flex: 1.15;
  height: 58px;
  pointer-events: auto;
}

.touch-grid-arena-bmx .touch-btn-bmx-jump {
  flex: 0.95;
  height: 58px;
  pointer-events: auto;
}

.touch-grid-arena-bmx .touch-btn-pedal-bmx {
  flex: 1.35;
  height: 58px;
  pointer-events: auto;
}

.arena-ctrl-group {
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: auto;
}

.arena-ctrl-left {
  justify-content: flex-start;
}

.arena-ctrl-right {
  justify-content: flex-end;
}

/* Botones Direccionales de Giro (Mano Izquierda) */
.touch-btn-steer {
  min-width: 62px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #00f0ff;
  border-bottom: 4px solid #0284c7;
  color: #00f0ff;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.3);
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.06s ease;
}

.touch-btn-steer .steer-arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.touch-btn-steer .steer-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.touch-btn-steer:active,
.touch-btn-steer.is-pressed {
  transform: translateY(2px) scale(0.93);
  border-bottom-width: 2px;
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.85);
}

/* Botón Salto Bunny Hop */
.touch-btn-bmx-jump {
  min-width: 76px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 2px solid #fef08a;
  border-bottom: 4px solid #b45309;
  color: #ffffff;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transition: transform 0.06s ease, filter 0.06s ease;
}

.touch-btn-bmx-jump .jump-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.touch-btn-bmx-jump:active,
.touch-btn-bmx-jump.is-pressed {
  transform: translateY(2px) scale(0.93);
  border-bottom-width: 2px;
  filter: brightness(1.25);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);
}

/* Botón Pedalear Acelerador Rápido (Mano Derecha) */
.touch-btn-pedal-bmx {
  min-width: 116px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #00d26a 0%, #059669 100%);
  border: 2px solid #a7f3d0;
  border-bottom: 4px solid #047857;
  color: #ffffff;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  box-shadow: 0 4px 16px rgba(0, 210, 106, 0.45);
  transition: transform 0.06s ease, filter 0.06s ease, box-shadow 0.06s ease;
}

.touch-btn-pedal-bmx .pedal-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.touch-btn-pedal-bmx .pedal-spark {
  color: #fef08a;
  font-size: 0.95rem;
}

.touch-btn-pedal-bmx:active,
.touch-btn-pedal-bmx.pedal-flash,
.btn-pedal-main:active {
  transform: translateY(2px) scale(0.93);
  border-bottom-width: 2px;
  filter: brightness(1.35);
  box-shadow: 0 0 24px rgba(0, 210, 106, 0.95);
}

@media (max-width: 480px) {
  .touch-controls-layer {
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 4px)) !important;
  }
  .roblox-joystick-container {
    width: 104px !important;
    height: 104px !important;
    left: 8px !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 4px)) !important;
  }
  .roblox-joystick-base {
    width: 96px !important;
    height: 96px !important;
  }
  .roblox-joystick-knob {
    width: 44px !important;
    height: 44px !important;
  }
  .touch-joystick-spacer {
    width: 104px !important;
    min-width: 104px !important;
    height: 1px !important;
    flex-shrink: 0 !important;
  }
  .bmx-steer-buttons-group {
    display: none !important;
  }
  .touch-grid-arena-bmx {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding: 0 4px !important;
    width: 100% !important;
  }
  .touch-actions-cluster-right {
    display: flex !important;
    flex: 1 !important;
    gap: 5px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .touch-grid-arena-bmx .touch-btn-bmx-jump {
    flex: 1 !important;
    min-width: 0 !important;
    height: 54px !important;
    font-size: 0.74rem !important;
    border-radius: 11px !important;
    padding: 0 4px !important;
  }
  .touch-grid-arena-bmx .touch-btn-bmx-jump .jump-icon {
    font-size: 1.05rem !important;
  }
  .touch-grid-arena-bmx .touch-btn-bmx-jump .jump-lbl {
    font-size: 0.68rem !important;
  }
  .touch-grid-arena-bmx .touch-btn-pedal-bmx {
    flex: 1.45 !important;
    min-width: 0 !important;
    height: 54px !important;
    font-size: 0.82rem !important;
    border-radius: 11px !important;
    padding: 0 6px !important;
  }
  .touch-grid-arena-bmx .touch-btn-pedal-bmx .pedal-icon {
    font-size: 1.15rem !important;
  }
  .touch-grid-arena-bmx .touch-btn-pedal-bmx .pedal-lbl {
    font-size: 0.76rem !important;
  }
  .bmx-ramps-status {
    display: none !important;
  }
  .btn-bmx-trick {
    height: 48px !important;
    min-width: 42px !important;
    padding: 2px 1px !important;
  }
  .btn-bmx-trick .trick-icon {
    font-size: 1.12rem !important;
  }
  .btn-bmx-trick .trick-label {
    font-size: 0.50rem !important;
  }
  .bmx-speedo-chip {
    height: 48px !important;
    padding: 2px 6px !important;
  }
  .bmx-speedo-chip strong {
    font-size: 0.70rem !important;
  }
  .bmx-speedo-chip span {
    font-size: 0.54rem !important;
  }
  .bmx-ramp-badge {
    display: none !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .touch-controls-layer {
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 2px)) !important;
  }
  .bmx-touch-hud {
    margin-bottom: 2px !important;
    gap: 4px !important;
  }
  .bmx-speedo-chip {
    height: 38px !important;
    padding: 1px 7px !important;
  }
  .bmx-speedo-chip strong {
    font-size: 0.68rem !important;
  }
  .bmx-speedo-chip span {
    font-size: 0.52rem !important;
  }
  .bmx-ramps-status {
    display: none !important;
  }
  .btn-bmx-trick {
    height: 38px !important;
    min-width: 38px !important;
    padding: 1px 2px !important;
  }
  .btn-bmx-trick .trick-icon {
    font-size: 0.96rem !important;
  }
  .btn-bmx-trick .trick-label {
    font-size: 0.46rem !important;
  }
  .touch-btn-steer,
  .touch-btn-bmx-jump,
  .touch-btn-pedal-bmx {
    height: 44px !important;
  }
}

