:root {
    --primary: #00ff87; --primary-glow: rgba(0, 255, 135, 0.3); --secondary: #6e2cf2;
    --bg: #0b0e14; --card: #1c2128; --text: #ffffff; --text-dim: #9096a2; --error: #ff4d4d;
}

/* 1. VARIABLES Y PANTALLAS */
#rosco-screen { --primary: #0044cc; --primary-glow: rgba(0, 68, 204, 0.3); --secondary: #002288; }
#hangman-screen, #blur-screen, #aforos-screen { --primary: #ff4d4d; --primary-glow: rgba(255, 77, 77, 0.3); --secondary: #cc0000; }
#higherlower-screen, #zoom-screen { --primary: #9b59b6; --primary-glow: rgba(155, 89, 182, 0.3); --secondary: #8e44ad; }
#eleven-screen, #knowball-screen { --primary: #00ff87; --primary-glow: rgba(0, 255, 135, 0.3); --secondary: #00cc66; }
#timemachine-screen { --primary: #ffd700; --primary-glow: rgba(255, 215, 0, 0.3); --secondary: #ccaa00; }
#top10-screen { --primary: #f5cf8e; --primary-glow: rgba(245, 207, 142, 0.3); --secondary: #d4a353; }
#album-screen { --primary: #00ffff; --primary-glow: rgba(0, 255, 255, 0.3); --secondary: #008888; }

/* 2. BASE Y LAYOUT */
body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--bg); 
    /* Nuevo fondo animado */
    background-image: radial-gradient(circle at top left, rgba(110, 44, 242, 0.15), transparent 40%), 
                      radial-gradient(circle at bottom right, rgba(0, 255, 135, 0.15), transparent 40%);
    background-size: 200% 200%;
    animation: backgroundMove 15s ease-in-out infinite alternate;
    color: var(--text); 
    overflow-x: hidden;     
    line-height: 1.6; 
    background-attachment: fixed; 
}

/* Añade esta animación en cualquier parte de tu CSS */
@keyframes backgroundMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* ==========================================
   PANTALLA DE CARGA (SPLASH SCREEN CSS PURO) 
   ========================================== */
body::before {
    content: 'FUTBOL10';
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg);
    z-index: 99999;
    pointer-events: none;
    animation: fadeOutSplash 2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
    letter-spacing: 10px;
    text-shadow: 0 0 20px var(--primary);
}

@keyframes fadeOutSplash {
    0% { opacity: 1; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); visibility: hidden; display: none; }
}

.screen { min-height: 100svh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: clamp(20px, 4vh, 40px) 1rem; box-sizing: border-box; animation: fadeIn 0.4s ease-out; }
.screen::before, .screen::after { content: ''; flex: 1; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

/* 3. TIPOGRAFÍA Y UI GLOBAL */
.logo { font-family: 'Orbitron', sans-serif; font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 2vh 0; text-transform: uppercase; letter-spacing: 4px; text-shadow: 0 0 20px var(--primary-glow); text-align: center; }
.logo span { color: var(--primary); }
.game-nav { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2vh; padding: 10px; gap: 10px; }

.back-btn, .hl-btn, .sell-btn { font-family: 'Orbitron', sans-serif; font-weight: bold; cursor: pointer; transition: 0.3s; white-space: nowrap; border-radius: 12px; }
.back-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--primary); color: var(--primary); padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 20px); font-size: clamp(0.7rem, 2vw, 0.8rem); }
.back-btn:hover { background: var(--primary); color: var(--bg); box-shadow: 0 0 15px var(--primary-glow); }

/* BOTONES SECUNDARIOS LÍQUIDOS Y NEÓN */
.secondary-btn {
    position: relative;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: clamp(10px, 3vw, 15px) clamp(15px, 4vw, 25px);
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 12px;
}
.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 135, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}
.secondary-btn:hover::before {
    left: 100%;
}
.secondary-btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.score-board { background: var(--card); padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 25px); border-radius: 12px; border: 1px solid var(--primary); font-family: 'Orbitron', sans-serif; font-size: clamp(0.8rem, 2.5vw, 1rem); text-align: center; }
.score-board span { color: var(--primary); font-weight: bold; }
.input-container { position: relative; width: 100%; max-width: 100%; margin: 15px 0; }
.input-group { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; justify-content: center; }
input[type="text"], input[type="number"] { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); padding: clamp(10px, 3vw, 15px); border-radius: 12px; color: white; font-size: clamp(0.9rem, 3vw, 1rem); flex: 1; min-width: 150px; transition: 0.3s; -moz-appearance: textfield; }
input[type="text"]:focus, input[type="number"]:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.08); box-shadow: 0 0 15px var(--primary-glow); }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.info-footer { margin-top: 15px; font-family: 'Orbitron', sans-serif; color: var(--primary); font-weight: bold; }

/* 4. TARJETAS DEL MENÚ PRINCIPAL Y GLASSMORPHISM */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; width: 100%; max-width: 1050px; padding: 15px; box-sizing: border-box; }

.menu-card, .modal-content { 
    background: rgba(28, 33, 40, 0.45) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.menu-card { border-radius: 16px; cursor: pointer; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease; text-align: left; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; will-change: transform, box-shadow; width: 100%; box-sizing: border-box; }
.menu-card:not(.sobres-card) { aspect-ratio: 3 / 4; }

.menu-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--primary) !important; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow) !important; }

.sobres-card { grid-column: 1 / -1; height: 140px !important; background: linear-gradient(135deg, rgba(28, 34, 46, 0.4) 0%, rgba(15, 18, 25, 0.7) 100%) !important; }
.sobres-card:hover { border-color: rgba(0, 255, 255, 0.5) !important; box-shadow: 0 15px 35px rgba(0, 255, 255, 0.15), 0 0 30px rgba(0, 255, 255, 0.2) !important; }

.menu-card .card-info { position: relative; z-index: 3; background: linear-gradient(to top, rgba(11, 14, 20, 1) 0%, rgba(11, 14, 20, 0.9) 65%, rgba(11, 14, 20, 0) 100%); width: 100%; padding: 35px 16px 16px 16px; box-sizing: border-box; transition: transform 0.3s ease; }
.menu-card:hover .card-info { transform: translateY(-2px); }
.menu-card .card-info h3 { font-family: 'Orbitron', sans-serif; font-size: clamp(0.95rem, 3vw, 1.15rem) !important; color: #ffffff !important; margin: 0 0 4px 0; font-weight: 700; letter-spacing: 0.5px; transition: color 0.3s ease; }
.menu-card:hover .card-info h3 { color: #00ff87 !important; }
.sobres-card:hover .card-info h3 { color: #00ffff !important; }
.menu-card .card-info p { font-size: 0.75rem !important; color: var(--text-dim) !important; margin: 0; font-weight: 300; }

.card-hub-badge { position: absolute; top: 16px; right: 16px; background: rgba(0, 255, 255, 0.1); border: 1px solid #00ffff; color: #00ffff; font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; z-index: 3; }
.card-bg, .bg-rosco, .bg-laliga, .bg-premier, .bg-europeos, .bg-leyendas, .bg-ahorcado, .bg-blur, .bg-timemachine, .bg-higherlower, .bg-top10, .bg-aforos, .bg-knowball { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; pointer-events: none; filter: brightness(0.35) contrast(1.1); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease; }
.menu-card:hover .card-bg { filter: brightness(0.55) contrast(1.15); transform: scale(1.06); }
.coming-soon { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.8); pointer-events: none; padding: 2rem !important; display: block; }
.coming-soon .icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

.bg-laliga { background-image: url('players/fondo-laliga.jpg'); }
.bg-premier { background-image: url('players/fondo-premier.jpg'); }
.bg-higherlower { background-image: url('players/fondo-valormercado.jpg'); } 
.bg-leyendas { background-image: url('players/fondo-leyendas.jpg'); }
.bg-europeos { background-image: url('players/fondo-europeo.jpg'); }
.bg-rosco { background-image: url('players/fondo-rosco.jpg'); }
.bg-ahorcado { background-image: url('players/fondo-ahorcado.jpg'); }
.bg-blur { background-image: url('players/fondo-blur.jpg'); } 
.bg-timemachine { background-image: url('players/fondo-maquina.jpg'); } 
.bg-top10 { background-image: url('players/fondo-top10.jpg'); }
.bg-aforos { background-image: url('players/fondo-aforos.jpg'); }
.bg-knowball { background-image: url('players/fondo-piramide.jpg'); }
.bg-sobres { background-image: url('players/fondo-universos.jpg'); }

/* 5. LOGO CIBERNÉTICO F10 */
.logo-f10-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; animation: pulseLogo 3s infinite alternate ease-in-out; }
.f10-icon { display: flex; align-items: center; justify-content: center; background: rgba(110, 44, 242, 0.15); border: 2px solid #6e2cf2; border-radius: 15px; padding: 5px 25px; box-shadow: 0 0 25px rgba(110, 44, 242, 0.5), inset 0 0 15px rgba(110, 44, 242, 0.3); margin-bottom: 10px; transform: perspective(500px) rotateX(10deg); }
.f-part { font-family: 'Orbitron', sans-serif; font-size: clamp(3rem, 10vw, 4.5rem); font-weight: 700; color: #ffffff; text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); line-height: 1; margin-right: 8px; }
.ten-part { font-family: 'Orbitron', sans-serif; font-size: clamp(3.5rem, 12vw, 5rem); font-weight: 700; color: #00ff87; text-shadow: 0 0 20px #00ff87; line-height: 1; }
.logo-texto-inferior { font-family: 'Orbitron', sans-serif; font-size: clamp(1.2rem, 4vw, 1.8rem); margin: 0; color: white; letter-spacing: 5px; text-transform: uppercase; }
.logo-texto-inferior span { color: #00ff87; text-shadow: 0 0 15px rgba(0,255,135,0.5); }
@keyframes pulseLogo { 0% { transform: perspective(500px) rotateX(10deg) scale(1); filter: brightness(1); } 100% { transform: perspective(500px) rotateX(10deg) scale(1.05); filter: brightness(1.2); } }

/* 6. ESTILOS ESPECÍFICOS DE MINIJUEGOS */
.game-layout { display: flex; gap: clamp(15px, 4vw, 50px); flex-wrap: wrap; justify-content: center; width: 100%; max-width: 1100px; }
.canvas-side { display: flex; justify-content: center; width: 100%; max-width: 300px; }
.canvas-side canvas { background: #e0e0e0; border-radius: 20px; width: 100%; max-width: 220px; aspect-ratio: 220 / 280; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 4px solid var(--card); }
.play-side { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 500px; }
.word-container { font-size: clamp(1.2rem, 5vw, 2.2rem); font-family: 'Orbitron', sans-serif; letter-spacing: clamp(2px, 1vw, 5px); margin-bottom: 2vh; min-height: 40px; text-shadow: 0 0 10px rgba(255,255,255,0.2); text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* Teclado Virtual */
.keyboard-container { display: flex; flex-direction: column; gap: clamp(4px, 1.5vw, 10px); width: 100%; align-items: center; }
.keyboard-row { display: flex; gap: clamp(3px, 1vw, 8px); justify-content: center; width: 100%; }
.key { width: clamp(25px, 8vw, 45px); height: clamp(35px, 10vw, 50px); background: var(--card); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; transition: 0.2s; user-select: none; font-size: clamp(0.8rem, 3vw, 1rem); }
.key:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }
.key.used { opacity: 0.2; pointer-events: none; transform: scale(0.9); }
.w-key.correct { background: #00ff87; color: #000; border-color: #00ff87; box-shadow: 0 0 10px rgba(0,255,135,0.5); }
.w-key.present { background: #ffd700; color: #000; border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.w-key.absent { opacity: 0.2; pointer-events: none; }
.wide-key { width: auto; min-width: clamp(40px, 12vw, 65px); padding: 0 5px; font-size: clamp(0.7rem, 2vw, 0.9rem); }

.suggestions-box { position: absolute; top: 100%; left: 0; width: 100%; z-index: 100; background: #1c2128; border: 1px solid var(--primary); border-top: none; border-radius: 0 0 12px 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.suggestions-box div { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); }
.suggestions-box div:hover { background: var(--secondary); }

/* Blur Guess */
.blur-container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.image-box { max-width: 100%; width: clamp(200px, 70vw, 320px); height: auto; aspect-ratio: 1/1; border-radius: 25px; border: 5px solid var(--primary); box-shadow: 0 0 40px var(--primary-glow); margin-bottom: 1rem; box-sizing: border-box; }
.image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* Máquina del Tiempo */
.tm-layout { display: flex; flex-direction: column; align-items: center; gap: 2vh; width: 100%; max-width: 500px; }
.tm-title { font-family: 'Orbitron', sans-serif; color: var(--primary); font-size: clamp(1.1rem, 4vw, 1.5rem); letter-spacing: 2px; margin: 0; text-shadow: 0 0 10px var(--primary-glow); text-align: center; }
.tm-monitor { position: relative; width: 100%; max-width: 320px; height: clamp(180px, 30vh, 250px); border: 2px solid var(--primary-glow); border-radius: 15px; overflow: hidden; box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px rgba(0,0,0,0.8); background: #000; }
.tm-monitor img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; filter: sepia(0.3) contrast(1.1); }
.tm-event-card { background: var(--card); padding: clamp(10px, 2vh, 15px) !important; border-radius: 12px; border: 1px solid var(--primary-glow); width: 100%; text-align: center; font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important; box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }
.tm-controls { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.tm-controls input { text-align: center; font-size: clamp(1.2rem, 4vw, 1.5rem) !important; letter-spacing: 4px; color: var(--primary) !important; }
.tm-status { display: flex; justify-content: space-between; align-items: center; font-size: clamp(0.75rem, 3vw, 0.9rem); font-family: 'Orbitron', sans-serif; }
#tm-feedback { color: var(--primary); font-weight: bold; }
.tm-lives-badge { background: rgba(255, 255, 255, 0.1); color: var(--primary); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--primary); font-weight: bold; }

/* XI Histórico Europeos & Alineación */
.eleven-layout { width: 100%; max-width: 800px; display: flex; flex-direction: column; align-items: center; }
.eleven-header { text-align: center; margin-bottom: 2vh; }
.pitch-container { width: 100%; max-width: 600px; min-height: clamp(300px, 50vh, 450px); background: linear-gradient(0deg, #2e7d32 0%, #1b5e20 100%); border: 3px solid rgba(255, 255, 255, 0.8); border-radius: 10px; display: flex; flex-direction: column; justify-content: space-evenly; padding: 10px 2px; position: relative; box-sizing: border-box; box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3); }
.pitch-container::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.4); transform: translateY(-50%); }
.pitch-container::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20%; aspect-ratio: 1/1; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-row { display: flex; justify-content: space-around; width: 100%; z-index: 2; gap: 2px; }
.player-slot { display: flex; flex-direction: column; align-items: center; width: clamp(45px, 18vw, 80px); text-align: center; transition: 0.3s; }
.player-slot.clickable { cursor: pointer; }
.player-slot.clickable:hover { transform: scale(1.1); }
.player-slot .shirt { font-size: clamp(1.2rem, 5vw, 2rem); filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5)); transition: 0.3s; margin-bottom: 2px; }
.player-slot .shirt.empty { opacity: 0.6; filter: grayscale(1); }
.player-slot .name { background: rgba(0, 0, 0, 0.7); color: white; font-size: clamp(0.5rem, 2vw, 0.75rem); padding: 2px 4px; border-radius: 4px; font-family: 'Orbitron', sans-serif; border: 1px solid rgba(255,255,255,0.2); line-height: 1.1; width: 100%; box-sizing: border-box; word-wrap: break-word; white-space: normal; }
.player-slot .hidden-name { color: #555; border-color: rgba(255,255,255,0.05); }
.player-slot.revealed { animation: modalPop 0.4s ease-out; }

/* El Rosco */
.rosco-wrapper { position: relative; margin: 2vh auto; width: 100%; max-width: 500px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .rosco-wrapper { max-width: 320px; } }
.rosco-circle { position: absolute; width: 100%; height: 100%; border-radius: 50%; }
.rosco-letter { position: absolute; width: clamp(25px, 6vw, 40px); height: clamp(25px, 6vw, 40px); background: #002288; border: 2px solid white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; transform: translate(-50%, -50%); transition: 0.3s; font-size: clamp(0.7rem, 2vw, 1rem); }
.rosco-letter.current { background: white; color: #0044cc; box-shadow: 0 0 20px white; scale: 1.2; z-index: 10; }
.rosco-letter.correct { background: #00ff87; border-color: #00ff87; } 
.rosco-letter.wrong { background: #ff4d4d; border-color: #ff4d4d; }
.rosco-content { text-align: center; z-index: 5; width: 65%; max-width: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#rosco-player-title { font-family: 'Orbitron', sans-serif; font-size: clamp(0.8rem, 3vw, 1.2rem); margin: 0 0 5px 0; color: white; }
#rosco-letter-hint { font-size: clamp(2rem, 10vw, 4rem); color: var(--primary); margin: 0; font-family: 'Orbitron'; line-height: 1; }
#rosco-definition { font-size: clamp(0.75rem, 3vw, 1rem); margin-bottom: 15px; max-height: 12vh; overflow-y: auto; padding: 0 5px; line-height: 1.4; }
.rosco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: center; width: 100%; }
.timer-p1 { color: #00a8ff; transition: 0.3s; padding: 0 5px; }
.timer-p2 { color: #ff4d4d; transition: 0.3s; padding: 0 5px; }
.timer-active { transform: scale(1.3); font-weight: bold; display: inline-block; }
.title-p1 { color: #00a8ff !important; text-shadow: 0 0 10px rgba(0, 168, 255, 0.4); }
.title-p2 { color: #ff4d4d !important; text-shadow: 0 0 10px rgba(255, 77, 77, 0.4); }
.rosco-letter.current.current-p1 { color: #00a8ff !important; box-shadow: 0 0 20px #00a8ff !important; }
.rosco-letter.current.current-p2 { color: #ff4d4d !important; box-shadow: 0 0 20px #ff4d4d !important; }

/* Higher / Lower & Guerra de Aforos */
.hl-layout { display: flex; flex-direction: column; width: 100%; max-width: 900px; gap: 15px; align-items: center; justify-content: center; position: relative; margin-top: 1vh; }
@media(min-width: 768px) { .hl-layout { flex-direction: row; gap: 30px; } }
.hl-card { width: 100%; max-width: 320px; background: #1c2128; border: 2px solid var(--primary-glow); border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 10px 30px rgba(0,0,0,0.6); transition: 0.3s; }
.hl-card:hover { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.hl-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; transition: opacity 0.5s; }
.hl-card:hover img { opacity: 0.7; }
.hl-info { position: relative; z-index: 1; text-align: center; padding: 30px 20px; background: linear-gradient(to top, rgba(11, 14, 20, 1) 0%, rgba(11, 14, 20, 0.8) 50%, transparent 100%); }
.hl-info h3 { margin: 0 0 5px 0; font-family: 'Orbitron', sans-serif; font-size: clamp(1.4rem, 5vw, 1.8rem); color: white; text-shadow: 0 2px 5px rgba(0,0,0,1); }
.hl-subtitle { color: #ccc; margin: 0 0 5px 0; font-size: 0.9rem; }
.hl-value { font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 8vw, 3rem); font-weight: bold; color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); transition: 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.27); margin: 10px 0; }
.hidden-val { opacity: 0; transform: scale(0.2) translateY(-50px); pointer-events: none; height: 0; margin: 0; }
.hl-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.hl-btn { padding: clamp(12px, 3vw, 15px); border: none; font-size: clamp(1rem, 3vw, 1.2rem); text-transform: uppercase; border-radius: 12px; font-family: 'Orbitron', sans-serif; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-higher { background: rgba(255, 255, 255, 0.1); color: var(--primary); border: 2px solid var(--primary); }
.btn-higher:hover { background: var(--primary); color: var(--bg); transform: translateY(-3px); box-shadow: 0 5px 15px var(--primary-glow); }
.btn-lower { background: rgba(255, 77, 77, 0.15); color: #ff4d4d; border: 2px solid #ff4d4d; }
.btn-lower:hover { background: #ff4d4d; color: white; transform: translateY(3px); box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4); }
.hl-vs { width: 60px; height: 60px; background: white; color: var(--bg); font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; z-index: 10; border: 5px solid var(--primary); margin: -25px 0; box-shadow: 0 0 20px var(--primary-glow); }
@media(min-width: 768px) { .hl-vs { margin: 0 -35px; } }

/* Escudos Zoom */
.zoom-layout { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 500px; }
.zoom-box-container { width: clamp(200px, 60vw, 300px); aspect-ratio: 1/1; border-radius: 20px; border: 4px solid var(--primary); padding: 10px; background: var(--primary-glow); box-shadow: 0 0 30px var(--primary-glow), inset 0 0 20px var(--primary-glow); margin-bottom: 20px; }
.zoom-lens { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; position: relative; background: #ffffff; display: flex; align-items: center; justify-content: center; }
.zoom-lens img { width: 80%; height: 80%; object-fit: contain; transition: transform 0.8s cubic-bezier(0.17, 0.89, 0.32, 1.27); will-change: transform; }

/* 7. MODALES GLOBALES */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(5px); padding: 10px; box-sizing: border-box; }
.modal-content { padding: clamp(1rem, 4vw, 2rem); border-radius: 20px; border: 2px solid var(--primary); text-align: center; max-width: 500px; width: 100%; max-height: 90svh; overflow-y: auto; box-shadow: 0 0 30px var(--primary-glow); animation: modalPop 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.27); box-sizing: border-box; }
@keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#modal-title { font-family: 'Orbitron', sans-serif; color: var(--primary); margin-top: 0; font-size: clamp(1.2rem, 5vw, 1.8rem); }
#modal-message { font-size: clamp(0.9rem, 3.5vw, 1.1rem); color: var(--text); margin: 1.5rem 0; }
#modal-btn { background: var(--primary); color: var(--bg); border: none; padding: 12px 30px; border-radius: 10px; font-family: 'Orbitron', sans-serif; cursor: pointer; transition: 0.3s; font-weight: bold; }
#modal-btn:hover { filter: brightness(1.2); transform: scale(1.05); }

/* Futdle Grid */
.wordle-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; align-items: center; width: 100%; }
.wordle-row { display: flex; gap: clamp(2px, 1vw, 6px); justify-content: center; width: 100%; }
.wordle-spacer { width: clamp(5px, 2vw, 15px); display: flex; justify-content: center; align-items: center; font-size: clamp(1rem, 3vw, 1.5rem); font-family: 'Orbitron', sans-serif; color: rgba(255,255,255,0.5); }
.wordle-cell { flex: 1; max-width: 45px; aspect-ratio: 1/1; background: rgba(28, 33, 40, 0.6); border: 2px solid rgba(255,255,255,0.05); border-radius: 6px; display: flex; justify-content: center; align-items: center; font-size: clamp(0.8rem, 4vw, 1.6rem); font-family: 'Orbitron', sans-serif; font-weight: bold; text-transform: uppercase; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-sizing: border-box; }
.wordle-cell.active { border-color: var(--secondary); box-shadow: 0 0 15px rgba(110, 44, 242, 0.4), inset 0 0 10px rgba(110, 44, 242, 0.2); transform: scale(1.08); }
.wordle-cell.revealed { transition: transform 0.6s ease, background 0.3s 0.3s, border-color 0.3s 0.3s; }
.wordle-cell.revealed.correct, .wordle-cell.revealed.present, .wordle-cell.revealed.absent { transform: rotateX(360deg); }
.wordle-cell.revealed.correct { background: #00ff87; color: #000; border-color: #00ff87; box-shadow: 0 0 15px rgba(0,255,135,0.5); }
.wordle-cell.revealed.present { background: #ffd700; color: #000; border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
.wordle-cell.revealed.absent { background: #0f1218; color: #444; border-color: #1a1e24; box-shadow: inset 0 0 15px rgba(0,0,0,1); }

/* 8. TOP 10 LAYOUT */
.top10-layout { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 600px; padding-bottom: 70px; position: relative; }
.top10-header { text-align: center; width: 100%; margin-bottom: 5px; }
#top10-desc { margin-bottom: 10px !important; font-size: 0.85rem; }
.top10-list { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-bottom: 10px; }
.top10-item { display: flex; align-items: center; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 6px 12px; font-family: 'Orbitron', sans-serif; transition: all 0.4s ease; }
.top10-item.revealed { background: rgba(245, 207, 142, 0.15); border-color: var(--primary); box-shadow: inset 0 0 15px rgba(245, 207, 142, 0.1); }
.top10-rank { font-size: 1.1rem; font-weight: bold; color: rgba(255,255,255,0.2); width: 30px; text-align: center; }
.top10-item.revealed .top10-rank { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.top10-info { flex: 1; display: flex; justify-content: space-between; align-items: center; margin-left: 10px; }
.top10-name { font-size: clamp(0.8rem, 2.5vw, 0.95rem); color: #fff; letter-spacing: 1px; font-weight: bold; }
.top10-hint { display: flex; align-items: center; gap: 6px; font-size: clamp(0.7rem, 2.5vw, 0.85rem); color: var(--text-dim); text-align: right; }
.top10-item.revealed .top10-hint { color: var(--primary); opacity: 0.9; }
.flag-icon { width: 22px; height: auto; border-radius: 2px; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.top10-input-area { position: fixed; bottom: 10px; max-width: 600px; width: calc(100% - 2rem); background: rgba(11, 14, 20, 0.95); padding: 10px; border-radius: 12px; border: 1px solid var(--primary); box-shadow: 0 -10px 30px rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 10; }
@keyframes shakeInput { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.input-error { border-color: var(--error) !important; animation: shakeInput 0.2s ease-in-out 0s 2; }

/* 9. KNOWBALL */
.kb-header, .kb-layout { width: 100%; max-width: 600px; text-align: center; }
.kb-layout { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 10px; }
.kb-pyramid { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.kb-slot-container { display: flex; align-items: center; gap: 10px; }
.kb-slot-num { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: bold; color: var(--primary); width: 25px; text-align: right; text-shadow: 0 0 10px var(--primary-glow); }
.kb-slot { flex: 1; min-height: 50px; background: rgba(255, 255, 255, 0.03); border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.kb-slot.drag-over { background: rgba(0, 255, 135, 0.1); border-color: var(--primary); transform: scale(1.02); }
.kb-cards-area { width: 100%; text-align: center; background: rgba(0,0,0,0.3); border-radius: 15px; padding: 15px; border: 1px solid rgba(255,255,255,0.05); }
.kb-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 60px; }
.kb-card { background: var(--card); border: 1px solid var(--primary); color: white; padding: 10px 15px; border-radius: 8px; cursor: grab; font-family: 'Orbitron', sans-serif; font-size: clamp(0.7rem, 2.5vw, 0.9rem); font-weight: bold; user-select: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.2s, box-shadow 0.2s; text-align: center; }
.kb-card:hover { border-color: white; box-shadow: 0 0 15px var(--primary-glow); }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: 0.5; transform: scale(0.95); }
.kb-slot .kb-card { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; margin: 0; box-sizing: border-box; border: none; background: rgba(0, 255, 135, 0.15); box-shadow: none; font-size: clamp(0.8rem, 3vw, 1rem); }

/* 10. PERFIL Y MONEDAS */
.user-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; width: 100%; max-width: 400px; z-index: 10; position: relative; }
.coin-badge { background: rgba(255, 215, 0, 0.15); border: 1px solid #ffd700; color: #ffd700; padding: 8px 20px; border-radius: 12px; font-family: 'Orbitron', sans-serif; font-weight: bold; display: flex; align-items: center; gap: 8px; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
.stats-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; text-align: left; }
.profile-stat-item { background: rgba(255,255,255,0.05); padding: 12px 18px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,0.1); font-family: 'Orbitron', sans-serif; font-size: 0.9rem; }
.stat-value { color: var(--primary); font-weight: bold; font-size: 1.1rem; }

/* 11. ÁLBUM, CARTAS Y SOBRES */
.album-tabs { display: flex; gap: 10px; margin-bottom: 25px; width: 100%; max-width: 600px; background: rgba(0,0,0,0.3); padding: 5px; border-radius: 15px; }
.album-tab { flex: 1; background: transparent; border: 2px solid transparent; color: white; padding: 12px 5px; border-radius: 10px; font-family: 'Orbitron', sans-serif; font-size: clamp(0.7rem, 2.5vw, 0.9rem); font-weight: bold; cursor: pointer; transition: 0.3s; }
.album-tab.active { border-color: var(--primary); background: var(--primary-glow); color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.album-tab-content { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; }

/* SOBRES VISUAL */
.pack-container { cursor: pointer; transition: 0.2s; animation: floatPack 3s ease-in-out infinite; perspective: 1000px; }
.pack-container:hover { transform: scale(1.05) translateY(-10px); }
.pack-visual { width: 220px; height: 320px; background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); border-radius: 15px; border: 4px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.pack-visual::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: rotate(45deg); animation: shinePack 3s infinite; }
.pack-logo, .pack-title, .pack-price { color: #111; font-weight: bold; font-family: 'Orbitron', sans-serif; }
.pack-logo { font-size: 3rem; text-shadow: 2px 2px 0px rgba(255,255,255,0.5); margin-bottom: 10px; }
.pack-title { font-size: 1.2rem; background: rgba(255,255,255,0.8); padding: 5px 15px; border-radius: 5px; }
.pack-price { font-size: 1.2rem; margin-top: 20px; background: #fff; padding: 5px 15px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
@keyframes floatPack { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes shinePack { 0% { left: -100%; } 20%, 100% { left: 100%; } }
.pack-opening-anim { animation: shakePack 0.6s cubic-bezier(.36,.07,.19,.97) both; filter: brightness(1.5); }
@keyframes shakePack { 0% { transform: translate3d(0, 0, 0) scale(1); } 10%, 90% { transform: translate3d(-2px, 0, 0) scale(1.05); } 20%, 80% { transform: translate3d(4px, 0, 0) scale(1.05); } 30%, 50%, 70% { transform: translate3d(-8px, 0, 0) scale(1.1); } 40%, 60% { transform: translate3d(8px, 0, 0) scale(1.1); } 100% { transform: translate3d(0, 0, 0) scale(1.2) rotateY(90deg); opacity: 0; } }

/* CARTAS FUT */
.reveal-cards { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; animation: modalPop 0.5s ease-out; margin-top: 20px; }
.f10-card { width: clamp(120px, 30vw, 150px); aspect-ratio: 2.5 / 3.5; background: #1a1c23; border-radius: 12px; border: 3px solid transparent; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; }
.f10-card:hover { transform: translateY(-5px) scale(1.02); }
.f10-card img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top; background: #1a1c23; border-bottom: 2px solid rgba(255,255,255,0.6); }
.f10-card .card-name { color: #fff; text-align: center; font-family: 'Orbitron', sans-serif; font-size: clamp(0.6rem, 2vw, 0.8rem); padding: 8px 4px; font-weight: bold; display: flex; align-items: center; justify-content: center; word-wrap: break-word; line-height: 1.1; min-height: 35px; border-top: none; }

.tier-bronce { border-color: #cd7f32; box-shadow: 0 0 10px rgba(205, 127, 50, 0.8); }
.tier-bronce .card-name { background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%); color: white; }
.tier-plata { border-color: #c0c0c0; box-shadow: 0 0 10px rgba(192, 192, 192, 0.8); }
.tier-plata .card-name { background: linear-gradient(135deg, #e6e8fa 0%, #a9a9a9 100%); color: #111; }
.tier-oro { border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
.tier-oro .card-name { background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #111; }
.tier-diamante { border-color: #00d2ff; box-shadow: 0 0 20px rgba(0, 210, 255, 0.8); }
.tier-diamante .card-name { background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%); color: white; }
.tier-platino { border-color: #a200ff; box-shadow: 0 0 20px rgba(162, 0, 255, 0.8); }
.tier-platino .card-name { background: linear-gradient(135deg, #a200ff 0%, #4b0082 100%); color: white; }
.bg-free-pack { background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%); }
.tier-gratis { border-color: #a8ff78; box-shadow: 0 0 15px #a8ff78; }
.tier-gratis .card-name { background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%); color: #111; }

/* ÁLBUM GRID */
.album-progress { font-family: 'Orbitron', sans-serif; color: var(--primary); font-size: 1.2rem; margin-bottom: 20px; background: rgba(0, 255, 255, 0.1); padding: 10px 20px; border-radius: 10px; border: 1px solid var(--primary); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; width: 100%; padding: 10px; justify-items: center; }
.f10-card.locked { border-color: #333 !important; box-shadow: none !important; filter: grayscale(1) brightness(0.4); }
.f10-card.locked .card-name { background: #333; color: #888; border-top-color: #222; }
.f10-card.locked:hover { transform: none; box-shadow: none; }
.f10-card.selected-in-lineup { opacity: 0.4; filter: grayscale(0.8); pointer-events: none; }

/* MERCADO */
.market-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 150px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); }
.sell-btn { background: #ff4d4d; color: white; border: none; padding: 8px 10px; width: 100%; font-size: 0.8rem; border-radius: 8px; font-family: 'Orbitron', sans-serif; font-weight: bold; cursor: pointer; transition: 0.2s; }
.sell-btn:hover { background: #ff1a1a; transform: scale(1.05); box-shadow: 0 0 15px rgba(255,77,77,0.5); }

/* 12. BOTONES SOCIALES E INFO */
.icon-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--primary); color: var(--primary); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.27); text-decoration: none; width: 45px; height: 45px; font-size: 1.2rem; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.icon-btn:hover { background: var(--primary); color: var(--bg); transform: scale(1.1) translateY(-2px); box-shadow: 0 5px 15px var(--primary-glow); }
.ig-btn { border-color: #E1306C; background: rgba(225, 48, 108, 0.05); }
.ig-btn:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4); }

.info-scroll-area { max-height: 60vh; overflow-y: auto; padding-right: 15px; font-size: 0.95rem; color: var(--text-dim); line-height: 1.5; }
.info-scroll-area h4 { color: var(--primary); font-family: 'Orbitron', sans-serif; margin-top: 20px; margin-bottom: 5px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.info-scroll-area ul { margin: 5px 0 15px 0; padding-left: 20px; }
.info-scroll-area li { margin-bottom: 5px; }
.info-scroll-area strong { color: white; }

/* 13. CUSTOM SCROLLBAR FUTURISTA & ANIMACIONES */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(11, 14, 20, 0.8); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; box-shadow: inset 0 0 6px rgba(0,0,0,0.5); }
::-webkit-scrollbar-thumb:hover { background: white; }

@keyframes goalShake { 0%, 100% { transform: translate(0, 0) rotate(0deg); box-shadow: 0 0 30px rgba(0, 255, 135, 0.3); } 10% { transform: translate(-2px, -3px) rotate(-1deg); } 20% { transform: translate(-4px, 0px) rotate(1deg); } 30% { transform: translate(4px, 3px) rotate(0deg); } 40% { transform: translate(2px, -2px) rotate(1deg); } 50% { transform: translate(-2px, 3px) rotate(-1deg); box-shadow: 0 0 80px rgba(0, 255, 135, 1); } 60% { transform: translate(-4px, 2px) rotate(0deg); } 70% { transform: translate(4px, 2px) rotate(-1deg); } 80% { transform: translate(-2px, -2px) rotate(1deg); } 90% { transform: translate(2px, 3px) rotate(0deg); } }
.anim-goal-shake { animation: goalShake 0.6s ease-in-out; }

/* NOTIFICACIÓN PUNTO ROJO */
.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 10px #ff4d4d;
    z-index: 10;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* DISEÑO MISIONES */
.mission-item { 
    border-left: 3px solid var(--primary); 
    padding: 12px; 
    margin-bottom: 10px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 0 8px 8px 0;
    font-family: 'Orbitron', sans-serif;
}
.mission-item .info { display: flex; justify-content: space-between; font-size: 0.85rem; color: white; margin-bottom: 5px; }
.progress-bg { height: 6px; background: rgba(0,0,0,0.5); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #00ff87, #00d4ff); transition: width 0.5s ease; box-shadow: 0 0 10px rgba(0,255,135,0.5); }
.mission-item .reward { font-size: 0.8rem; color: #ffd700; font-weight: bold; text-align: right; }

/* BOTONES DE MISIONES Y LOGROS */
.mission-btn { 
    border: none; padding: 6px 12px; border-radius: 6px; font-family: 'Orbitron', sans-serif; font-weight: bold; font-size: 0.75rem; cursor: pointer; transition: 0.3s; margin-top: 5px; width: 100%;
}
.mission-btn.ready { background: var(--primary); color: #000; box-shadow: 0 0 10px var(--primary-glow); }
.mission-btn.ready:hover { transform: scale(1.02); filter: brightness(1.2); }
.mission-btn.claimed { background: rgba(255,255,255,0.1); color: #666; cursor: not-allowed; }
.opacity-50 { opacity: 0.5; filter: grayscale(0.5); }



/* =========================================
   ANIMACIONES AAA PARA APERTURA DE SOBRES
   ========================================= */

/* Contenedor invisible que le da profundidad 3D a la carta */
.aaa-card-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

/* Capa Holográfica que barre la carta constantemente */
.hologram-overlay {
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: hologramaAAA 3s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}

@keyframes hologramaAAA {
    0% { left: -150%; }
    50%, 100% { left: 200%; } /* Pausa entre brillos */
}

/* Animación de Entrada: Aparece desde el fondo girando ligeramente */
.aaa-entrance-anim {
    animation: 
        epicPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        levitateCard 4s ease-in-out infinite 0.8s; /* Empieza a flotar al terminar de entrar */
    box-shadow: 0 0 50px rgba(0, 255, 135, 0.2);
}

@keyframes epicPopIn {
    0% {
        transform: translateZ(-500px) translateY(50px) rotateX(20deg) scale(0.5);
        opacity: 0;
        filter: brightness(2);
    }
    100% {
        transform: translateZ(0) translateY(0) rotateX(0deg) scale(1.2);
        opacity: 1;
        filter: brightness(1);
    }
}

/* Flotación para indicar interactividad (reemplaza al texto de ayuda) */
@keyframes levitateCard {
    0%, 100% { transform: scale(1.2) translateY(0); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
    50% { transform: scale(1.2) translateY(-10px); box-shadow: 0 25px 50px rgba(0, 255, 135, 0.4); }
}

/* Animación de Salida: Se hace pequeña y desaparece rápido al hacer clic */
.aaa-exit-anim {
    animation: epicPopOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes epicPopOut {
    0% { transform: scale(1.2); opacity: 1; filter: brightness(1.5); }
    100% { transform: scale(0.5) translateY(-50px); opacity: 0; filter: blur(5px); }
}

/* Resaltar la carta al pasar el ratón antes de hacer clic */
.aaa-entrance-anim:hover {
    transform: scale(1.3) translateY(-5px) !important;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
}

/* ETIQUETA DE CARTA NUEVA */
.new-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #00ff87 0%, #00cc66 100%);
    color: #0b0e14;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.6);
    letter-spacing: 1px;
    animation: pulseNewBadge 1.5s infinite alternate;
}

@keyframes pulseNewBadge {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(0, 255, 135, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(0, 255, 135, 0.8); }
}

.laboratorio-ruleta {
    background: rgba(11, 14, 20, 0.9);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.2);
}

.ruleta-circulo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
    border: 4px solid var(--bg);
    /* Por defecto 50/50, se sobreescribe en JS */
    background: conic-gradient(#00ff87 0deg 180deg, #ff4d4d 180deg 360deg);
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden;
}

.ruleta-manecilla {
    width: 4px;
    height: 50%;
    background: white;
    position: absolute;
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    transform: rotate(0deg);
    transition: transform 5s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 10;
}

.ruleta-manecilla::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--primary);
}

.ruleta-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.ruleta-inputs input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--primary);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    flex: 1;
}


/* Leyenda = Blanco Neón Brillante */ 
.tier-leyenda { 
    border-color: #ffffff !important; 
    box-shadow: 0 0 10px #ffffff, 0 0 25px #ffffff, 0 0 40px rgba(255, 255, 255, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.9) !important; 
} 
.tier-leyenda .card-name { 
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%); 
    color: #111; 
    font-weight: bold;
}
/* BARRAS DE ENERGÍA Y CAMBIOS EN VIVO */
.match-energy-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.8);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}
.match-energy-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.sub-selected {
    transform: scale(1.15) !important;
    box-shadow: 0 0 25px #00d2ff !important;
    border: 2px solid #00d2ff !important;
    border-radius: 12px;
    z-index: 10;
}
.player-status-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    z-index: 5;
    filter: drop-shadow(0 0 5px black);
}
