/* =========================================================
   AURA BATTLES 2D - STYLESHEET (STICKMAN EDITION)
   Estilo Cyberpunk / Stickman Fight / Anime Meme Drip
   ========================================================= */

:root {
  --bg-dark: #0a0c16;
  --bg-card: rgba(18, 22, 38, 0.92);
  --bg-card-border: rgba(255, 255, 255, 0.15);
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.6);
  --secondary: #ff007f;
  --secondary-glow: rgba(255, 0, 127, 0.6);
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.6);
  --purple: #8a2be2;
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.6);
  --danger: #ff3344;
  --font-display: 'Bungee', cursive, sans-serif;
  --font-body: 'Outfit', sans-serif;
  --text-white: #f5f8fc;
  --text-dim: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 242, 254, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
}

#game-app {
  width: 100vw;
  height: 100vh;
  max-width: 1320px;
  max-height: 900px;
  position: relative;
  overflow: hidden;
  background: #080911;
  border: 3px solid #282f45;
  box-shadow: 0 0 0 2px #0f121d, 0 20px 60px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1321px) {
  #game-app {
    border-radius: 12px;
    height: 94vh;
  }
}

/* SCREEN MANAGEMENT */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.98);
  overflow: hidden;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

/* =========================================================
   PANTALLA DE INICIO (TITLE SCREEN)
   ========================================================= */
#screen-title {
  background: radial-gradient(circle at center, #151933 0%, #080911 80%);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.title-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(255, 0, 127, 0.2) 40%, transparent 70%);
  filter: blur(80px);
  animation: pulseGlow 5s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(0.85) rotate(0deg); opacity: 0.6; }
  100% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

.title-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.badge-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

.glitch-title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  letter-spacing: 2px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 20%, #00f2fe 60%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.glitch-title span {
  font-size: 4.4rem;
  background: linear-gradient(135deg, #ffd700 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 680px;
}

.hero-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0.4rem 0;
}

.char-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.aura-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(16px);
  animation: auraRotate 3s infinite linear;
}

.prota-aura {
  background: radial-gradient(circle, #00f2fe 0%, #8a2be2 70%);
}

.boss-aura {
  background: radial-gradient(circle, #ff007f 0%, #ffd700 70%);
}

@keyframes auraRotate {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

#preview-stickman-canvas, #preview-boss-canvas {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  background: rgba(14, 18, 34, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.char-label {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
  animation: bounceVs 1.5s infinite alternate ease-in-out;
}

@keyframes bounceVs {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.15); }
}

.features-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.2rem 0;
}

.feat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00f2fe;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* BUTTONS */
button {
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.8);
}

.btn-primary.pulse {
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); }
  50% { box-shadow: 0 0 40px rgba(0, 242, 254, 0.9); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.btn-tertiary:hover {
  color: #fff;
  border-color: #fff;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-chip.danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

/* =========================================================
   SELECCIÓN DE NIVELES (10 NIVELES)
   ========================================================= */
#screen-levels {
  background: radial-gradient(circle at top, #101426 0%, #06080e 100%);
  padding: 1.5rem 2rem;
  overflow-y: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.top-nav h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.player-stat-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  padding-bottom: 2rem;
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.level-card:hover:not(.locked) {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.25);
}

.level-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.85);
}

.level-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.level-badge .num {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 0.85rem;
}

.level-icon {
  font-size: 2.6rem;
  margin: 0.3rem 0;
  text-align: center;
}

.level-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.level-boss-name {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.level-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
  flex-grow: 1;
  margin-bottom: 10px;
}

.level-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
}

.level-card:hover:not(.locked) .level-btn {
  background: var(--primary);
  color: #04101e;
}

/* =========================================================
   PANTALLA DE BATALLA (HUD & ARENA)
   ========================================================= */
#screen-battle {
  display: flex;
  flex-direction: column;
  background: #06070d;
}

.battle-hud {
  background: linear-gradient(180deg, rgba(10, 13, 25, 0.96) 0%, rgba(10, 13, 25, 0.85) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-indicator {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.stage-indicator b {
  color: var(--gold);
}

.phonk-track-pill {
  font-size: 0.68rem;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 999px;
  padding: 1px 8px;
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.health-bars-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.fighter-hud {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fighter-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.player-hud .fighter-name {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.rival-hud .fighter-name {
  color: var(--secondary);
  text-shadow: 0 0 10px var(--secondary-glow);
}

.aura-val {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
}

.bar-container {
  height: 22px;
  background: #090c14;
  border: 2px solid #4a5472;
  box-shadow: inset 0 2px 6px #000, 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.player-fill {
  background: linear-gradient(180deg, #38ef7d 0%, #11998e 100%);
  border-right: 2px solid #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.bar-fill.rival-fill {
  background: linear-gradient(180deg, #ff416c 0%, #ff4b2b 100%);
  border-left: 2px solid #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.shield-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 255, 136, 0.35);
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.shield-indicator.hidden {
  display: none;
}

.super-bar-container {
  height: 7px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-top: 1px;
  display: flex;
  align-items: center;
}

.super-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
  box-shadow: 0 0 8px var(--gold);
  transition: width 0.3s ease;
}

.super-label {
  position: absolute;
  right: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
}

.clash-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.versus-icon {
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: linear-gradient(180deg, #ffd700 0%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.round-counter {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
}

/* =========================================================
   BARRA DE ITEMS Y PODERES CALLEJEROS
   ========================================================= */
.items-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.items-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.item-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  transition: all 0.2s ease;
}

.item-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.item-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.item-icon {
  font-size: 1.2rem;
}

.item-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.item-text b {
  font-size: 0.72rem;
  line-height: 1.1;
}

.item-text small {
  font-size: 0.62rem;
  color: var(--text-dim);
}

/* =========================================================
   ÁREA DEL ESCENARIO STICKMAN (CANVAS & MINIJUEGOS)
   ========================================================= */
#battle-stage-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  background: #080913;
}

#stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* GLOBO DE DIÁLOGO */
.speech-bubble {
  position: absolute;
  top: 12%;
  right: 18%;
  background: rgba(18, 22, 40, 0.95);
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 8px 16px;
  max-width: 270px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--secondary-glow);
  z-index: 15;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 25px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: var(--secondary) transparent;
  display: block;
}

.speech-bubble.hidden {
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
}

.bubble-speaker {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--gold);
}

.bubble-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-top: 2px;
}

/* =========================================================
   MINIJUEGO 1: FORCEJEO DE RAYOS (AURA CLASH MASH)
   ========================================================= */
.mash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 15, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  animation: fadeIn 0.2s ease;
}

.mash-overlay.hidden {
  display: none;
}

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

.mash-card {
  background: rgba(18, 22, 42, 0.96);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 1.4rem 2rem;
  max-width: 580px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.mash-alert-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
}

.mash-instructions {
  font-size: 0.88rem;
  color: #fff;
}

.key-badge {
  background: #fff;
  color: #000;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.mash-gauge-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.mash-label-left {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--primary);
  min-width: 55px;
}

.mash-label-right {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--secondary);
  min-width: 65px;
}

.mash-track {
  flex-grow: 1;
  height: 28px;
  background: #090c1a;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
  overflow: visible;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9);
}

.mash-beam-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe 0%, #ffd700 80%, #ff007f 100%);
  border-radius: 12px 0 0 12px;
  box-shadow: 0 0 20px #00f2fe;
  transition: width 0.08s ease-out;
}

.mash-beam-head {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  pointer-events: none;
  filter: drop-shadow(0 0 8px #ffd700);
}

.btn-mash-click {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 50%, #ff0844 100%);
  background-size: 200% auto;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 8, 68, 0.6);
  letter-spacing: 1px;
  width: 100%;
  cursor: pointer;
  animation: shine 1.5s linear infinite;
}

.btn-mash-click:active {
  transform: scale(0.96);
}

.mash-timer-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.mash-timer-fill {
  width: 100%;
  height: 100%;
  background: var(--gold);
}

/* =========================================================
   MINIJUEGO 2: ANILLO DE PARRY PERFECTO
   ========================================================= */
.parry-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

.parry-overlay.hidden {
  display: none;
}

.parry-ring-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parry-target-zone {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 4px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 25px var(--green-glow), inset 0 0 15px var(--green-glow);
  background: rgba(0, 255, 136, 0.15);
}

.parry-shrinking-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 4px solid #ff3344;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 51, 68, 0.8);
}

.parry-center-dot {
  font-size: 1.8rem;
  z-index: 2;
  filter: drop-shadow(0 0 8px #fff);
}

.parry-prompt {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.key-badge-gold {
  background: var(--gold);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
}

/* =========================================================
   OVERLAY DE K.O. CINEMÁTICO STICKMAN
   ========================================================= */
.ko-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 60, 0.25);
  backdrop-filter: blur(4px);
  z-index: 50;
  animation: koFlash 0.3s ease-out;
}

.ko-overlay.hidden {
  display: none;
}

@keyframes koFlash {
  0% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ko-text {
  font-family: var(--font-display);
  font-size: 5.5rem;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 30px #ff0055, 0 0 60px #ff0055, 4px 4px 0 #000;
  animation: bounceVs 0.8s infinite alternate;
}

.ko-subtext {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

/* BANNER DE CLASH */
.clash-banner {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(6, 8, 18, 0.94);
  border: 2px solid var(--gold);
  padding: 12px 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
  z-index: 25;
  pointer-events: none;
  animation: bannerPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clash-banner.hidden {
  display: none;
}

@keyframes bannerPop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.clash-text-main {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.clash-subtext {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 3px;
}

/* PREDICCIÓN */
.prediction-status {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 18, 36, 0.92);
  border: 1px solid var(--primary);
  padding: 6px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  z-index: 20;
}

.prediction-status.hidden {
  display: none;
}

.spinner-aura {
  width: 13px;
  height: 13px;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   BARRA DE CONTROLES INFERIOR
   ========================================================= */
.battle-controls {
  background: #0d1020;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 20;
}

.controls-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.controls-hint {
  color: var(--text-dim);
}

.controls-hint b {
  color: #fff;
}

.streak-badge {
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  color: #ff6b6b;
  font-size: 0.78rem;
  font-weight: 800;
}

.streak-badge b {
  color: #ffcc00;
}

/* DECK DE EMOTES */
.emotes-deck {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

.btn-emote {
  background: rgba(22, 27, 49, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.btn-emote:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(30, 38, 70, 0.98);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.35);
}

.btn-emote:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-emote.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-emote:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.emote-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 3px;
}

.emote-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.emote-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.emote-meta {
  font-size: 0.62rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.emote-beats {
  font-size: 0.62rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emote-beats b {
  color: #fff;
}

.key-shortcut {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

/* ULTRA BURST */
.ultra-action-container {
  display: flex;
  justify-content: center;
}

.btn-ultra {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(90deg, #ff0844 0%, #ffb199 50%, #ff0844 100%);
  background-size: 200% auto;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 8, 68, 0.6);
  animation: shine 2s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.btn-ultra.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

/* =========================================================
   MODALES (VICTORIA, DERROTA, GUÍA, CAMPEÓN)
   ========================================================= */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: modalScale 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-card.victory {
  border-color: var(--gold);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.modal-card.defeat {
  border-color: var(--danger);
  box-shadow: 0 0 50px rgba(255, 51, 68, 0.3);
}

.trophy-bounce, .skull-bounce, .world-cup {
  font-size: 3.8rem;
  margin-bottom: 0.4rem;
  animation: bounceVs 1s infinite alternate;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.modal-card.victory .modal-title {
  color: var(--gold);
}

.modal-card.defeat .modal-title {
  color: var(--danger);
}

.modal-desc {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

.rewards-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.2rem;
}

.rew-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.rew-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
}

.modal-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

/* GUÍA MODAL */
.modal-card.guide-modal {
  max-width: 660px;
  text-align: left;
}

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

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
}

.btn-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-box-mechanic {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 1rem;
}

.guide-box-mechanic h4 {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.guide-box-mechanic ul {
  padding-left: 18px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.badge-inline {
  background: #fff;
  color: #000;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.counters-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.counter-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 1.3fr 2fr 2fr;
  align-items: center;
  font-size: 0.78rem;
}

.row-agent { color: #fff; }
.row-beats { color: var(--green); }
.row-loses { color: #ff7080; }

.rank-badge {
  background: linear-gradient(90deg, #ffd700, #ff007f);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 1.3rem;
  display: inline-block;
}

/* =========================================================
   MINIJUEGO 3: SECUENCIA DE COMBOS / DEFENSA WASD
   ========================================================= */
.wasd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 14, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  animation: fadeIn 0.2s ease;
}

.wasd-overlay.hidden {
  display: none;
}

.wasd-modal {
  background: rgba(14, 18, 38, 0.98);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 1.5rem 2.2rem;
  max-width: 620px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  animation: modalScale 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wasd-modal.defense-mode {
  border-color: #ff3344;
  box-shadow: 0 0 50px rgba(255, 51, 68, 0.4), inset 0 0 20px rgba(255, 51, 68, 0.15);
}

.wasd-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.wasd-modal.defense-mode .wasd-header {
  color: #ff3344;
  text-shadow: 0 0 15px rgba(255, 51, 68, 0.6);
}

.wasd-subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.wasd-timer-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.wasd-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00f2fe, #ffd700);
  box-shadow: 0 0 10px #00f2fe;
  transition: width 0.05s linear;
}

.wasd-modal.defense-mode .wasd-timer-bar {
  background: linear-gradient(90deg, #ff3344, #ff8800);
  box-shadow: 0 0 10px #ff3344;
}

.wasd-keys-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.4rem 0;
  flex-wrap: wrap;
}

.wasd-key-item {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #111528;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  transition: all 0.15s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.wasd-key-item span {
  font-size: 0.68rem;
  font-family: var(--font-body);
  color: var(--text-dim);
  margin-top: -2px;
}

.wasd-key-item.current {
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 25px var(--gold-glow);
  background: rgba(255, 215, 0, 0.2);
  animation: keyPulse 0.6s infinite alternate;
}

@keyframes keyPulse {
  0% { transform: scale(1.1); box-shadow: 0 0 15px var(--gold-glow); }
  100% { transform: scale(1.22); box-shadow: 0 0 30px var(--gold); }
}

.wasd-key-item.correct {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.25);
  color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
  transform: scale(1.05);
}

.wasd-key-item.wrong {
  border-color: var(--danger);
  background: rgba(255, 51, 68, 0.3);
  color: var(--danger);
  animation: keyShake 0.2s ease-in-out;
}

@keyframes keyShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.wasd-virtual-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 0.2rem;
}

.wasd-vrow {
  display: flex;
  gap: 8px;
}

.wasd-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wasd-btn span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.wasd-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.wasd-result-badge {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ESTILOS DE NIVELES LEGENDARIOS */
.level-card.legendary {
  background: linear-gradient(135deg, rgba(35, 18, 55, 0.95) 0%, rgba(18, 22, 42, 0.95) 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.level-card.legendary::before {
  content: '👑 LEGENDARIO';
  position: absolute;
  top: 8px;
  right: -24px;
  background: linear-gradient(90deg, #ffd700, #ff007f);
  color: #000;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 26px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.level-card.legendary:hover:not(.locked) {
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.7);
  transform: translateY(-7px) scale(1.02);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .glitch-title { font-size: 2.6rem; }
  .glitch-title span { font-size: 3rem; }
  .emotes-deck { grid-template-columns: repeat(3, 1fr); }
  .items-bar { flex-wrap: wrap; }
  .counter-row { grid-template-columns: 1fr; gap: 3px; }
  .customizer-content { flex-direction: column; overflow-y: auto; }
  .customizer-preview-box { width: 100%; border-right: none; border-bottom: 2px solid rgba(255, 255, 255, 0.1); }
}

@media (max-width: 600px) {
  .glitch-title { font-size: 2rem; }
  .glitch-title span { font-size: 2.3rem; }
  .emotes-deck { grid-template-columns: repeat(2, 1fr); }
  .hud-top-bar { flex-direction: column; gap: 5px; }
}

/* =========================================================
   SISTEMA DE MONEDAS Y TIENDA / PERSONALIZACIÓN DEL PROTA
   ========================================================= */

.coins-pill {
  background: rgba(255, 215, 0, 0.12);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.coins-pill.hud-coins {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.gold-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%) !important;
  color: #0d0c15 !important;
  border-color: #ffe66d !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4) !important;
}

.gold-btn:hover {
  box-shadow: 0 6px 28px rgba(255, 215, 0, 0.7) !important;
  transform: translateY(-2px);
}

.player-stat-badge.gold {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.gold-text {
  color: var(--gold) !important;
  text-shadow: 0 0 10px var(--gold-glow);
}

.defeat-rewards {
  background: rgba(255, 215, 0, 0.08) !important;
  border: 1px dashed rgba(255, 215, 0, 0.3) !important;
  margin-top: 10px;
}

/* PANTALLA CUSTOMIZER & SHOP */
#screen-customizer {
  background: radial-gradient(circle at center, #17122b 0%, #080914 100%);
  display: flex;
  flex-direction: column;
}

.customizer-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 1rem;
  gap: 1.2rem;
}

/* Panel Izquierdo: Vista Previa */
.customizer-preview-box {
  width: 320px;
  flex-shrink: 0;
  background: rgba(15, 18, 32, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.preview-pedestal {
  width: 220px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.preview-pedestal::after {
  content: '';
  position: absolute;
  bottom: 25px;
  width: 140px;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.35) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.custom-prota-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.5px;
}

.custom-equipped-summary {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 5px;
  line-height: 1.3;
}

/* Panel Derecho: Catálogo */
.customizer-shop-box {
  flex: 1;
  background: rgba(15, 18, 32, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
}

.shop-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  overflow-x: auto;
}

.shop-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.shop-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.shop-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0077ff 100%);
  color: #000;
  border-color: var(--primary);
  font-weight: 900;
  box-shadow: 0 0 14px var(--primary-glow);
}

.shop-items-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  padding-top: 14px;
  overflow-y: auto;
}

.shop-item-card {
  background: linear-gradient(165deg, rgba(26, 32, 56, 0.85) 0%, rgba(12, 16, 32, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.shop-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 242, 254, 0.2);
}

.shop-item-card.equipped {
  border-color: #00ff88;
  background: linear-gradient(165deg, rgba(0, 255, 136, 0.12) 0%, rgba(10, 24, 18, 0.95) 100%);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25), 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Pod de Exhibición / Escaparate Curvo */
.item-art-pod {
  width: 100%;
  height: 96px;
  background: radial-gradient(circle at center, rgba(32, 44, 78, 0.5) 0%, rgba(9, 13, 26, 0.85) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.shop-item-card:hover .item-art-pod {
  border-color: rgba(0, 242, 254, 0.35);
  background: radial-gradient(circle at center, rgba(40, 56, 96, 0.6) 0%, rgba(10, 15, 30, 0.9) 100%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.2);
}

.shop-item-card.equipped .item-art-pod {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 136, 0.2);
}

.item-art-svg {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  display: block;
}

.shop-item-card:hover .item-art-svg {
  transform: scale(1.08) translateY(-2px);
}

.item-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.item-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.3;
}

.item-price {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-item-action {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-item-action.btn-buy {
  background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
  color: #0b0c14;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.35);
}

.btn-item-action.btn-buy:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.55);
}

.btn-item-action.btn-equip {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(0, 242, 254, 0.35);
}

.btn-item-action.btn-equip:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.55);
}

.btn-item-action.btn-equipped {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border: 1px solid var(--green);
  cursor: default;
}

/* Equipamiento de Luchadores en el HUD */
.hud-gear-line {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.player-hud .hud-gear-line {
  color: #8be9fd;
}

.rival-hud .hud-gear-line {
  color: #f1fa8c;
  justify-content: flex-end;
}

.rival-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-family: var(--font-display);
  color: var(--gold);
  margin-top: 3px;
}

.level-loadout-pill {
  font-size: 0.7rem;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  margin: 6px 0;
  text-align: left;
}

/* =========================================================
   SISTEMA DE CUENTA DE PELEADOR & GUARDADO DE PROGRESO
   ========================================================= */

.user-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 38, 0.85);
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.user-account-pill:hover {
  border-color: #00f2fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.badge-mini {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #05101a;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.badge-mini.logged-in {
  background: linear-gradient(135deg, #00ff88, #00b0ff);
  color: #021a0f;
}

.btn-mini-add {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #0b0c14;
  border: none;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  cursor: pointer;
  margin-left: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.btn-mini-add:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.7);
}

.gold-glow {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 136, 0, 0.28)) !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
  font-weight: 800;
}

.gold-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.6);
}

.gold-tab {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 136, 0, 0.15)) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  color: #ffd700 !important;
}

.gold-tab:hover, .gold-tab.active {
  border-color: #ffd700 !important;
  background: linear-gradient(135deg, #ffd700, #ff8800) !important;
  color: #0b0c14 !important;
  font-weight: 800;
}

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-close-modal:hover {
  background: rgba(255, 51, 68, 0.3);
  border-color: #ff3344;
  color: #fff;
  transform: rotate(90deg);
}

/* Modal Cuenta */
.account-modal-card {
  max-width: 480px;
  background: linear-gradient(160deg, #111528 0%, #080a14 100%);
  border: 2px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 45px rgba(0, 242, 254, 0.2), 0 20px 60px rgba(0, 0, 0, 0.9);
}

.auth-icon-header {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.auth-nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin: 14px 0 18px 0;
  gap: 6px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #03101c;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
}

.auth-panel {
  display: none;
  text-align: left;
}

.auth-panel.active {
  display: block;
}

.auth-form-group {
  margin-bottom: 12px;
}

.auth-form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.auth-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.avatar-picker-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.avatar-option {
  flex: 1;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.avatar-option input[type="radio"] {
  display: none;
}

.avatar-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.avatar-option input[type="radio"]:checked + span {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
  transform: scale(1.06);
}

.auth-feedback-msg {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  text-align: center;
  font-weight: 700;
}

.auth-feedback-msg.success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid #00ff88;
  color: #00ff88;
}

.auth-feedback-msg.error {
  background: rgba(255, 51, 68, 0.15);
  border: 1px solid #ff3344;
  color: #ff6b7b;
}

.auth-active-box {
  margin-top: 14px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.auth-current-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-large {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0, 242, 254, 0.4);
}

.current-user-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.current-user-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* =========================================================
   TIENDA DE MONEDAS CON DINERO REAL & CHECKOUT SIMULADO
   ========================================================= */

.real-store-card {
  max-width: 820px;
  background: linear-gradient(160deg, #101426 0%, #070913 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.25), 0 25px 70px rgba(0, 0, 0, 0.95);
}

.real-store-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.real-coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.real-coin-card {
  background: rgba(18, 24, 44, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.real-coin-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.25);
}

.real-coin-card.popular {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(170deg, rgba(255, 215, 0, 0.08) 0%, rgba(20, 26, 48, 0.9) 100%);
}

.real-coin-card.legendary {
  border-color: rgba(186, 85, 211, 0.5);
  background: linear-gradient(170deg, rgba(186, 85, 211, 0.08) 0%, rgba(20, 24, 46, 0.9) 100%);
}

.real-coin-card.god-tier {
  border-color: rgba(0, 242, 254, 0.6);
  background: linear-gradient(170deg, rgba(0, 242, 254, 0.1) 0%, rgba(255, 0, 128, 0.06) 50%, rgba(18, 22, 42, 0.92) 100%);
}

.pack-badge {
  position: absolute;
  top: -10px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pack-badge.bronze {
  background: #cd7f32;
  color: #fff;
}

.pack-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #0b0c14;
}

.pack-badge.purple {
  background: linear-gradient(135deg, #da70d6, #8a2be2);
  color: #fff;
}

.pack-badge.rainbow {
  background: linear-gradient(90deg, #ff007f, #00f2fe, #ffd700);
  color: #fff;
  animation: shine 2s linear infinite;
}

.pack-coin-art {
  font-size: 2.8rem;
  margin: 6px 0 4px 0;
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.4));
  transition: transform 0.25s ease;
}

.real-coin-card:hover .pack-coin-art {
  transform: scale(1.12) rotate(-5deg);
}

.pack-amount {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #ffd700;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.pack-bonus {
  font-size: 0.68rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.pack-price-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.btn-pack-buy {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-pack-buy:hover {
  background: #fff;
  color: #0b0c14;
  transform: scale(1.04);
}

.btn-pack-buy.highlight {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #0b0c14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
}

.btn-pack-buy.legendary-btn {
  background: linear-gradient(135deg, #da70d6, #8a2be2);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(186, 85, 211, 0.4);
}

.btn-pack-buy.god-btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #03101c;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.45);
}

.secure-badge-footer {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* Modal Pasarela de Checkout */
.checkout-card {
  max-width: 460px;
  background: linear-gradient(160deg, #11152a 0%, #070914 100%);
  border: 2px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.2), 0 20px 60px rgba(0, 0, 0, 0.95);
}

.ssl-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.checkout-amount-display {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffd700;
  margin-top: 4px;
}

.checkout-total-price {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.payment-methods-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
  text-align: left;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.payment-methods-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pay-method-opt {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.pay-method-opt input[type="radio"] {
  display: none;
}

.pay-method-opt.active,
.pay-method-opt input[type="radio"]:checked + span {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.15);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

/* Tarjeta de Crédito Simulada */
.credit-card-preview {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1e2640 0%, #101628 50%, #090e1c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.credit-card-preview::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.card-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #cbd5e1;
}

.card-bottom small {
  display: block;
  font-size: 0.55rem;
  color: #64748b;
  letter-spacing: 0.5px;
}

.card-bottom #card-holder-name {
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

/* Spinner de Procesamiento de Pago */
.checkout-status-spinner {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #00ff88;
  font-weight: 700;
}

.spinner-ring {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 255, 136, 0.2);
  border-top-color: #00ff88;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
