        /* --- ESTILOS PLINKO --- */
.theme-plinko { background: linear-gradient(180deg, #1f0b2e, #000); border-color: #e056fd; }
.theme-plinko .btn-accion { background: linear-gradient(45deg, #9b59b6, #e056fd); }
.plinko-escenario { position: relative; width: 100%; max-width: 500px; height: 400px; margin: 0 auto; background: linear-gradient(180deg, #0b0514, #1a0b2e); border-radius: 15px; border: 3px solid #5e3370; overflow: hidden; box-shadow: inset 0 0 50px rgba(0,0,0,0.9); }
.plinko-peg { position: absolute; width: 10px; height: 10px; background: #e056fd; border-radius: 50%; box-shadow: 0 0 8px #e056fd; transform: translate(-50%, -50%); z-index: 2; }
.plinko-multi { position: absolute; bottom: 0; height: 35px; display: flex; justify-content: center; align-items: center; font-weight: 900; font-size: 13px; color: #fff; border-top: 2px dashed rgba(255,255,255,0.2); border-right: 1px solid rgba(255,255,255,0.1); box-sizing: border-box; z-index: 2; border-radius: 5px 5px 0 0; text-shadow: 1px 1px 2px #000; }
.plinko-multi:last-child { border-right: none; }
.plinko-bola { position: absolute; width: 16px; height: 16px; background: radial-gradient(circle, #f1c40f, #e67e22); border-radius: 50%; box-shadow: 0 0 15px #f1c40f; transform: translate(-50%, -50%); transition: top 0.25s cubic-bezier(0.5, 0, 0.8, 1), left 0.25s linear; z-index: 5; }

        /* --- CAJAS BOTÍN ESTILO CS:GO --- */
.csgo-item { width: 120px; height: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 2px solid #222; background: linear-gradient(180deg, #222, #111); box-sizing: border-box; }
.csgo-item-icon { font-size: 40px; margin-bottom: 5px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)); }
.csgo-item-name { font-size: 13px; font-weight: bold; color: #fff; text-align: center; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.rare-comun { border-bottom: 4px solid #bdc3c7; } /* Gris */
.rare-raro { border-bottom: 4px solid #3498db; } /* Azul */
.rare-epico { border-bottom: 4px solid #9b59b6; } /* Morado */
.rare-legendario { border-bottom: 4px solid #f1c40f; box-shadow: inset 0 0 15px rgba(241,196,15,0.2); } /* Dorado */

        /* --- ESTILOS RULETA PRO --- */
        .theme-ruleta { background: linear-gradient(180deg, #1e3d2f, #0b1a13); border-color: #27ae60; }
        .tapete-pro { display: flex; background: #0b5345; padding: 15px; border-radius: 10px; border: 3px solid #d4af37; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); user-select: none; }
        .numeros-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; flex: 1; }
        .columnas-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); gap: 2px; margin-left: 5px; width: 60px; }
        .externas-bottom { display: flex; gap: 5px; margin-left: 60px; margin-right: 65px; margin-top: 5px;}
        
        .celda-tapete { position: relative; display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-size: 18px; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; padding: 10px 0; transition: filter 0.2s; min-width: 45px; }
        .celda-tapete:hover { filter: brightness(1.5); z-index: 10; outline: 2px solid #f1c40f; }
        .celda-tapete.roja { background: #c0392b; }
        .celda-tapete.negra { background: #2c3e50; }
        .celda-tapete.verde { background: #27ae60; }
        .celda-tapete.cero { width: 50px; margin-right: 5px; border-top-left-radius: 50px; border-bottom-left-radius: 50px; font-size: 24px; }
        /* Apuestas externas estéticas y doradas */
        /* Apuestas externas estéticas y doradas */
        .celda-tapete.externa { background: linear-gradient(180deg, #1e3d2f, #112b20); border: 2px solid rgba(212, 175, 55, 0.5); border-radius: 8px; font-family: 'Playfair Display', serif; font-size: 11px; color: #d4af37; text-shadow: 1px 1px 3px #000; text-transform: uppercase; letter-spacing: 1px; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); margin: 2px; }
        .celda-tapete.externa.txt-grande { font-size: 15px; } /* Solo para 1-18, PAR y 19-36 */
        .celda-tapete.externa:hover { background: linear-gradient(180deg, #27ae60, #1e8449); border-color: #f1c40f; color: #fff; box-shadow: 0 0 15px rgba(241, 196, 15, 0.4); }

        /* Fichas mucho más pequeñas y sutiles */
        .ficha-puesta { position: absolute; width: 14px; height: 14px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 6px; font-weight: 900; color: white; border: 1px dashed rgba(255,255,255,0.8); box-shadow: 2px 2px 4px rgba(0,0,0,0.8); pointer-events: none; z-index: 5; animation: lanzarFicha 0.3s ease-out forwards; }
        @keyframes lanzarFicha { 0% { transform: scale(3) translateY(40px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
        
        /* Fichas selectoras más pequeñas */
        .ficha-select { width: 35px; height: 35px; font-size: 12px; border-radius: 50%; color: white; font-weight: 900; cursor: pointer; transition: 0.2s; box-shadow: 0 5px 10px rgba(0,0,0,0.5); }
        .ficha-select:hover { transform: translateY(-5px); }
        .ficha-select.activa { transform: scale(1.1); outline: 3px solid #f1c40f; outline-offset: 3px; }

        /* Rueda de casino realista */
        .ruleta-visual-pro { width: 180px; height: 180px; border-radius: 50%; border: 12px solid #4a2e15; box-shadow: 0 0 0 4px #d4af37, inset 0 0 20px #000, 0 15px 30px rgba(0,0,0,0.9); background: repeating-conic-gradient(#e74c3c 0 9.72deg, #111 9.72deg 19.45deg); margin: 0 auto 20px; position: relative; transition: transform 4s cubic-bezier(0.1, 0.7, 0.1, 1); }
        .ruleta-visual-pro::before { content: ''; position: absolute; top: 0; left: 50%; width: 16%; height: 50%; background: #27ae60; clip-path: polygon(50% 100%, 0 0, 100% 0); transform: translateX(-50%); z-index: 1; }
        .ruleta-centro-pro { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 110px; height: 110px; background: radial-gradient(circle, #2c3e50, #050505); border-radius: 50%; border: 3px solid #d4af37; z-index: 3; box-shadow: 0 0 15px rgba(0,0,0,0.8); }
        .ruleta-numero-real { position: absolute; top: 0; left: 50%; width: 20px; height: 50%; transform-origin: bottom center; text-align: center; font-size: 11px; font-weight: bold; color: #fff; margin-left: -10px; padding-top: 3px; z-index: 2; text-shadow: 1px 1px 2px #000;}
        .bola-pro { width: 10px; height: 10px; background: #fff; border-radius: 50%; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 5px #fff, inset -2px -2px 5px rgba(0,0,0,0.5); opacity: 0; z-index: 4; transition: 0.5s; }
        
        /* --- ESTILOS CRASH, XP Y PERFIL --- */
        .perfil-caja { background: linear-gradient(135deg, #111, #222); padding: 30px 40px; border-radius: 20px; border: 2px solid #8e44ad; width: 300px; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.9); animation: fadeInScale 0.3s ease forwards; position: relative; margin-top: 50px; }
        .perfil-avatar { font-size: 60px; background: linear-gradient(180deg, #2c3e50, #000); width: 100px; height: 100px; line-height: 100px; border-radius: 50%; margin: -80px auto 10px; border: 4px solid #8e44ad; box-shadow: 0 10px 20px rgba(0,0,0,0.8); }
        .perfil-stat { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.1); padding: 12px 0; font-size: 14px; color: #bdc3c7; }
        .perfil-stat span:last-child { font-weight: 900; color: #fff; }
        .theme-crash { background: linear-gradient(180deg, #0f0c29, #302b63, #24243e); border-color: #9b59b6; }
        .xp-contenedor { width: 100%; max-width: 400px; background: rgba(0,0,0,0.6); border: 2px solid #3498db; border-radius: 15px; height: 25px; position: relative; overflow: hidden; margin: 15px auto; box-shadow: 0 0 15px rgba(52, 152, 219, 0.3); }
        .xp-barra { height: 100%; background: linear-gradient(90deg, #2980b9, #8e44ad, #e056fd); width: 0%; transition: width 0.5s ease-out; }
        .xp-texto { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 900; letter-spacing: 1px; z-index: 2; color: #fff;}
        .cohete-anim { font-size: 80px; position: absolute; bottom: 10%; left: 10%; filter: drop-shadow(0 10px 20px rgba(224, 86, 253, 0.6)); transition: all 0.1s linear; }

        /* --- ESTILOS RASCA Y GANA --- */
.theme-rasca { background: linear-gradient(180deg, #1e0033, #000000); border-color: #9b59b6; }
.theme-rasca .btn-accion { background: linear-gradient(45deg, #9b59b6, #8e44ad); }
.rasca-tarjeta { background: radial-gradient(circle, #f1c40f, #e67e22); padding: 30px; border-radius: 20px; border: 4px solid #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.8); width: 420px; margin: 0 auto; transition: 0.3s; }
.rasca-header { text-align: center; font-family: 'Playfair Display', serif; font-size: 26px; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); margin-bottom: 20px; border-bottom: 2px dashed #fff; padding-bottom: 12px; line-height: 1.2;}
.rasca-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rasca-celda { width: 100%; height: 125px; background: #bdc3c7; border-radius: 12px; cursor: pointer; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; font-size: 70px; border: 2px solid #7f8c8d; transition: 0.3s; box-shadow: inset 0 5px 10px rgba(0,0,0,0.2); }
.rasca-celda.rascado { background: #fff; cursor: default; border-color: #f1c40f; box-shadow: 0 0 15px rgba(241,196,15,0.5); }
.rasca-capa { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #95a5a6, #95a5a6 10px, #7f8c8d 10px, #7f8c8d 20px); display: flex; justify-content: center; align-items: center; font-size: 35px; color: rgba(255,255,255,0.3); transition: opacity 0.4s ease-out; z-index: 2; }
.rasca-celda.rascado .rasca-capa { opacity: 0; pointer-events: none; }

        /* ==========================================
           1. ESTILOS GLOBALES Y ANIMACIONES
           ========================================== */
        @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Playfair+Display:ital,wght@1,700&display=swap');

        body { margin: 0; padding: 20px; min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; font-family: 'Montserrat', sans-serif; color: #fff; background: #050505; transition: background 0.8s ease; }
        .contenedor-principal { width: 100%; max-width: 1300px; position: relative; margin-top: 20px; }

        @keyframes fadeInScale { 0% { opacity: 0; transform: scale(0.95) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        @keyframes pulseGlow { 0% { box-shadow: 0 0 15px rgba(231, 76, 60, 0.5); } 50% { box-shadow: 0 0 30px rgba(231, 76, 60, 1); } 100% { box-shadow: 0 0 15px rgba(231, 76, 60, 0.5); } }

        .pantalla { display: none; padding: 35px; border-radius: 25px; backdrop-filter: blur(20px); box-shadow: 0 25px 60px rgba(0,0,0,0.8); text-align: center; border: 1px solid rgba(255,255,255,0.1); }
        .pantalla.activa { display: block; animation: fadeInScale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

        h1 { font-family: 'Playfair Display', serif; font-size: 48px; margin-top: 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); } h2 { font-size: 28px; margin: 0; }
        
        .marcador-flotante { background: rgba(0, 0, 0, 0.9); padding: 15px 30px; border-radius: 50px; border: 2px solid #d4af37; font-size: 28px; font-weight: 900; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); color: #f1c40f; position: sticky; top: 10px; z-index: 100; }
        .guardado-badge { font-size: 14px; background: #2ecc71; color: #000; padding: 5px 12px; border-radius: 12px; margin-left: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; opacity: 0; transition: opacity 0.3s ease; position: absolute; right: 20px; }
        .guardado-badge.show { opacity: 1; }

        #toast-spam { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background: #e74c3c; color: #fff; padding: 15px 30px; border-radius: 30px; z-index: 9999; font-weight: 900; font-size: 18px; box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5); transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border: 2px solid #fff; }
        #flash-red { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #e74c3c; opacity: 0; pointer-events: none; z-index: 9998; transition: opacity 0.1s ease-out; }
        
        /* ==========================================
           2. DISEÑO DIVIDIDO (SPLIT LAYOUT)
           ========================================== */
        .layout-split { display: flex; gap: 20px; align-items: stretch; margin-bottom: 20px; flex-wrap: wrap; text-align: left;}
        .panel-izq { width: 320px; min-height: 480px; background: rgba(0,0,0,0.6); padding: 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; flex-shrink: 0; box-sizing: border-box;}
        .panel-der { flex: 1; min-height: 480px; min-width: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); padding: 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); box-sizing: border-box; overflow: hidden; position: relative;}
        .caja-controles { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; margin-top: auto; }

        /* ==========================================
           3. HUB LOBBY Y MENÚS
           ========================================== */
        .theme-hub { background: linear-gradient(135deg, #1a001a, #000033); border-color: #d4af37; }
        .hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
        .hub-card { background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(0,0,0,0.5)); border: 2px solid #d4af37; border-radius: 20px; padding: 40px 20px; cursor: pointer; transition: 0.4s; overflow: hidden; }
        .hub-card:hover { transform: translateY(-15px); background: rgba(212, 175, 55, 0.2); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4); }
        .hub-icon { font-size: 70px; margin-bottom: 20px; animation: float 4s infinite ease-in-out; }
        .hub-title { font-size: 26px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #fff; }

        .buscador-contenedor { position: relative; max-width: 400px; margin: 0 auto 30px auto; }
        .buscador-icono { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 20px; }
        .buscador-input { width: 100%; padding: 15px 20px 15px 45px; border-radius: 30px; border: 2px solid #d4af37; background: rgba(0,0,0,0.5); color: #fff; font-size: 16px; font-family: 'Montserrat', sans-serif; outline: none; transition: 0.3s; }
        .buscador-input:focus { box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); background: rgba(0,0,0,0.8); }

        .menu-juegos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
        .tj { border-radius: 15px; padding: 25px 15px; cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.2); }
        .tj:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
        
        .tj-slots { background: linear-gradient(135deg, #8e44ad, #2c3e50); border-bottom: 5px solid #9b59b6; }
        .tj-blackjack { background: linear-gradient(135deg, #145a32, #0e6251); border-bottom: 5px solid #2ecc71; }
        .tj-senda { background: linear-gradient(135deg, #b9770e, #7e5109); border-bottom: 5px solid #f39c12; }
        .tj-penaltis { background: linear-gradient(135deg, #2874a6, #1b4f72); border-bottom: 5px solid #3498db; }
        .tj-cartas { background: linear-gradient(135deg, #922b21, #641e16); border-bottom: 5px solid #e74c3c; }
        .tj-ruleta { background: linear-gradient(135deg, #000000, #420000); border-bottom: 5px solid #ff0000; }
        .tj-deportes { background: linear-gradient(135deg, #1e8449, #0b5345); border-bottom: 5px solid #27ae60; }
        .tj-gallina { background: linear-gradient(135deg, #34495e, #2c3e50); border-bottom: 5px solid #f1c40f; }
        .tj-puertas { background: linear-gradient(135deg, #000000, #420000); border-bottom: 5px solid #ff0000; }
        .tj-carreras { background: linear-gradient(135deg, #7f8c8d, #34495e); border-bottom: 5px solid #ecf0f1; }
        .tj-pesca { background: linear-gradient(135deg, #0984e3, #00a8ff); border-bottom: 5px solid #74b9ff; }
        .theme-inversiones { background: linear-gradient(180deg, #0f2027, #203a43, #2c5364); border-color: #3498db; }

        /* ==========================================
           4. UI DE APUESTAS Y TIENDA
           ========================================== */
        .cabecera-juego { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.2); }
        .btn-volver { background: rgba(0,0,0,0.5); color: #fff; border: 1px solid #fff; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: 0.3s; font-size: 12px; font-weight: bold;}
        .btn-volver:hover { background: #fff; color: #000; }

        .panel-apuesta { background: rgba(0,0,0,0.4); padding: 15px; border-radius: 15px; display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); width: 100%; box-sizing: border-box;}
        .panel-apuesta input[type=number] { -moz-appearance: textfield; background: #000; color: #f1c40f; border: 2px solid #d4af37; padding: 10px; font-size: 20px; font-weight: bold; width: 100%; text-align: center; border-radius: 10px; outline: none;}
        .btn-bet { background: #333; color: white; border: none; padding: 10px 15px; border-radius: 10px; cursor: pointer; font-size: 18px; font-weight: bold; transition: 0.2s;} .btn-bet:hover { background: #555; }
        .btn-accion { width: 100%; padding: 20px; font-size: 18px; font-weight: 900; border-radius: 15px; cursor: pointer; transition: 0.3s; text-transform: uppercase; border: none; color: white; margin-top: auto;}
        
        .panel-dificultad { display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,0.4); padding: 10px; border-radius: 15px; margin-bottom: 20px; width: 100%; box-sizing: border-box;}
        .panel-dificultad-h { flex-direction: row; } 
        .btn-dif { padding: 12px; background: rgba(255,255,255,0.05); color: #bbb; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: bold; transition: 0.3s; text-align: center; flex: 1;}
        .btn-dif.activa-facil { background: #27ae60; color: #fff; box-shadow: 0 0 15px rgba(39, 174, 96, 0.5); border-color:#2ecc71;}
        .btn-dif.activa-normal { background: #f39c12; color: #fff; box-shadow: 0 0 15px rgba(243, 156, 18, 0.5); border-color:#f1c40f;}
        .btn-dif.activa-dificil { background: #c0392b; color: #fff; box-shadow: 0 0 15px rgba(192, 57, 43, 0.5); border-color:#e74c3c;}
        .bote-display { font-size: 22px; color: #2ecc71; font-weight: bold; margin: 15px 0; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 10px; border: 1px dashed #2ecc71; text-align: center;}

        .grid-tienda { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; text-align: left;}
        .item-tienda { background: rgba(0,0,0,0.5); padding: 20px; border-radius: 15px; border: 2px solid #555; text-align: center; transition: 0.3s; }
        .item-tienda.comprado { border-color: #2ecc71; }
        .item-icono { font-size: 60px; margin-bottom: 10px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
        .grid-coleccion { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; }
        .item-coleccion { padding: 20px; border-radius: 15px; text-align: center; transition: 0.3s; }
        .item-bloqueado { filter: grayscale(100%) opacity(0.3); }
        .item-desbloqueado { filter: none; animation: float 3s infinite ease-in-out; }

        /* ==========================================
           5. ESTILOS DE MINIJUEGOS (MINIFICADOS)
           ========================================== */
        .theme-pesca { background: linear-gradient(180deg, #0984e3, #000); border-color: #74b9ff; } .pesca-mar { width: 100%; height: 350px; background: linear-gradient(180deg, #74b9ff, #0984e3 40%, #000); border-radius: 15px; position: relative; overflow: hidden; border: 4px solid #fff; } .pesca-cielo { width: 100%; height: 60px; background: #81ecec; border-bottom: 2px solid #fff; position: relative; display:flex; align-items:center; justify-content:center; font-size: 30px;} .pesca-cana { position: absolute; top: -10px; left: 50%; width: 4px; height: 0px; background: #fff; transform: translateX(-50%); transition: height 1s ease-in-out; } .pesca-anzuelo { position: absolute; bottom: -15px; left: -8px; font-size: 20px; transform: rotate(180deg); } .pesca-pez-resultado { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.1); font-size: 100px; opacity: 0; transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8)); z-index:10;} .pesca-pez-show { transform: translate(-50%, -50%) scale(1); opacity: 1; } .burbujas-pesca { position: absolute; bottom: 0; left: 50%; font-size: 20px; opacity: 0; } @keyframes subirBurbujas { 0% { bottom: 0; opacity: 1; transform: translateX(-50%); } 100% { bottom: 100%; opacity: 0; transform: translateX(calc(-50% + 20px)); } }
        .theme-puertas { background: linear-gradient(180deg, #1a0000, #050000); border-color: #ff0000; } .theme-puertas .btn-accion { background: linear-gradient(45deg, #b30000, #ff3333); } .puertas-main-view { width: 100%; height: 420px; background: repeating-linear-gradient(45deg,rgba(0,0,0,0.4), rgba(0,0,0,0.4) 10px, rgba(40,0,0,0.2) 10px, rgba(40,0,0,0.2) 20px); border-radius: 15px; border: 5px solid #444; position: relative; display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0 50px rgba(0,0,0,0.9); overflow: hidden;} .puerta-box-fp { width: 220px; height: 360px; position: relative; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.1, 1); filter: drop-shadow(10px 15px 25px rgba(0,0,0,0.9)); } .puerta-fp-front { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, #162638, #1a252f); border: 10px solid #111; border-radius: 10px; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; overflow: hidden; } .cinta-fp { position: absolute; font-size: 14px; font-weight: 900; letter-spacing: 2px; color: #000; display: flex; gap: 5px; text-transform: uppercase; border: 4px solid #000; box-shadow: 2px 5px 15px rgba(0,0,0,0.6);} .cinta-fp-tl { top: 10%; left: -15%; transform: rotate(-30deg); background: #f1c40f; padding: 5px 20px;} .cinta-fp-tr { top: 25%; left: 20%; transform: rotate(20deg); background: #f1c40f; padding: 5px 20px;} .cinta-fp-bl { top: 65%; left: -10%; transform: rotate(15deg); background: #f1c40f; padding: 5px 20px;} .cinta-fp-br { top: 80%; left: 30%; transform: rotate(35deg); background: #f1c40f; padding: 5px 20px;} .cinta-fp-center { position: absolute; top: 50%; left: -10%; width: 120%; height: 50px; transform: translateY(-50%) rotate(-5deg); background: #000; border: 4px solid #f1c40f; z-index: 5; display: flex; align-items: center; justify-content: center; color:#fff; font-weight:900; font-size: 32px; text-shadow: 2px 2px 0px #000;} .puerta-fp-crash-view { position: absolute; top: 15px; left: 15px; width: calc(100% - 30px); height: calc(100% - 30px); background: #050505; border-radius: 5px; z-index: -1; display: flex; justify-content: center; align-items: center; overflow: hidden;} .criatura-fp-sprite { font-size: 200px; opacity: 0; transition: 0.1s; transform: scale(0.1); } .criatura-fps-show { animation: jumpscare 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; position: absolute; top: 50%; left: 50%;} .puerta-box-open { transform: rotateY(-140deg); } @keyframes jumpscare { 0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; } 10% { transform: translate(-50%, -50%) scale(2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 50px red); } 20% { transform: translate(-50%, -50%) scale(1.5) rotate(-15deg); } 30% { transform: translate(-50%, -50%) scale(3) rotate(10deg); } 100% { transform: translate(-50%, -50%) scale(10); opacity: 0; } }
        .theme-gallina { background: linear-gradient(180deg, #1a252f, #111a22); border-color: #f1c40f; } .theme-gallina .btn-accion { background: linear-gradient(45deg, #f1c40f, #e67e22); color: #000; } .carretera-h { width: 100%; height: 280px; background: #5a646e; border-radius: 15px; position: relative; overflow: hidden; border-top: 15px solid #2ecc71; border-bottom: 15px solid #2ecc71; box-shadow: inset 0 0 30px rgba(0,0,0,0.7); box-sizing: border-box; } .carretera-scroll { display: flex; position: absolute; top: 0; left: 0; height: 100%; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); } .zona-salida { width: 120px; background: #7f8c8d; border-right: 8px solid #fff; position: relative; display: flex; align-items: center; justify-content: center; z-index: 2; flex-shrink: 0;} .zona-salida::after { content: "SALIDA"; transform: rotate(-90deg); color: rgba(255,255,255,0.4); font-weight: 900; letter-spacing: 4px; font-size: 22px; } .carril-h { width: 140px; flex-shrink: 0; border-right: 6px dashed rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; position: relative; } .alcantarilla { width: 55px; height: 55px; background: #2c3e50; border-radius: 50%; border: 5px solid #1a252f; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #bdc3c7; box-shadow: inset 0 5px 15px rgba(0,0,0,0.8); z-index: 1; transition: 0.3s; } .alcantarilla.pisada { background: #f1c40f; color: #000; border-color: #e67e22; box-shadow: 0 0 20px #f1c40f; transform: scale(1.1);} .gallina-3d { position: absolute; font-size: 60px; top: 50%; transform: translateY(-50%); transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); filter: drop-shadow(4px 6px 4px rgba(0,0,0,0.6)); z-index: 10; } .salto-gallina { animation: jumpAnim 0.4s ease-in-out; } @keyframes jumpAnim { 0% { margin-top: 0; transform: translateY(-50%) scale(1); } 50% { margin-top: -35px; transform: translateY(-50%) scale(1.3); } 100% { margin-top: 0; transform: translateY(-50%) scale(1); } } .coche-asesino { position: absolute; font-size: 70px; top: -120px; transform: translateX(-50%); z-index: 11; filter: drop-shadow(6px 6px 6px rgba(0,0,0,0.5)); display: none; } .coche-anim { animation: carDrive 0.4s linear forwards; } @keyframes carDrive { 0% { top: -120px; opacity: 1; } 100% { top: 350px; opacity: 1; } }
        .theme-senda { background: linear-gradient(180deg, #3e2723, #1b0000); border-color: #f39c12; }  .theme-senda .btn-accion { background: linear-gradient(45deg, #d35400, #f39c12); }  .celda-senda { background: rgba(243, 156, 18, 0.9); border: 3px solid #fff; border-radius: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); } .celda-senda:hover { transform: scale(1.1); background: #f1c40f; } .bg-rugby { background: repeating-linear-gradient(90deg, #27ae60, #27ae60 40px, #2ecc71 40px, #2ecc71 80px); } .bg-rugby::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width: 80%; height: 2px; background: rgba(255,255,255,0.5); } .bg-baloncesto { background: repeating-linear-gradient(0deg, #d35400, #d35400 20px, #e67e22 20px, #e67e22 40px); } .bg-baloncesto::after { content:''; position:absolute; top:10%; left:50%; transform:translateX(-50%); width: 120px; height: 120px; border: 4px solid rgba(255,255,255,0.4); border-radius: 50%; }
        .theme-deportes { background: linear-gradient(180deg, #117a65, #0b5345); border-color: #27ae60; } .theme-deportes .btn-accion { background: linear-gradient(45deg, #f1c40f, #d35400); color: #000; } .dep-layout { display: flex; gap: 20px; text-align: left; margin-bottom: 20px; flex-wrap: wrap;} .dep-panel { background: rgba(0,0,0,0.5); padding: 20px; border-radius: 15px; flex: 1; border: 1px solid #2ecc71; min-width: 250px;} .dep-select { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 8px; background: #000; color: #fff; border: 1px solid #27ae60; font-size: 16px; font-family: 'Montserrat', sans-serif;} .dep-input-custom { width: calc(100% - 24px); padding: 12px; margin-bottom: 15px; border-radius: 8px; background: #111; color: #f1c40f; border: 2px dashed #f1c40f; font-size: 16px; font-weight: bold; text-align: center; display: none;} .boleto-container { background: #000; border-radius: 10px; padding: 10px; margin-bottom: 15px; min-height: 80px; max-height: 150px; overflow-y: auto; border: 1px dashed #7f8c8d;} .boleto-item { background: rgba(39, 174, 96, 0.2); padding: 8px; margin-bottom: 5px; border-radius: 5px; font-size: 14px; border-left: 4px solid #2ecc71; display: flex; justify-content: space-between;} .cuota-total { font-size: 20px; color: #f1c40f; font-weight: bold; text-align: right; margin-bottom: 15px;} .btn-add-bet { background: #2980b9; color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; margin-bottom: 15px;} .btn-clear { background: transparent; color: #e74c3c; border: 1px solid #e74c3c; padding: 5px 10px; border-radius: 5px; cursor: pointer; float: right; font-size: 12px;} .marcador-live { font-size: 24px; text-align: center; font-family: monospace; background: #000; padding: 20px; border-radius: 10px; color: #fff; border: 2px solid #555; margin-bottom: 15px;}
        .theme-carreras { background: linear-gradient(180deg, #2c3e50, #1a252f); border-color: #ecf0f1; } .theme-carreras .btn-accion { background: linear-gradient(45deg, #e67e22, #f39c12); color: #000; } .pista-carreras { background: #47535e; border: 4px solid #bdc3c7; border-radius: 10px; position: relative; height: 240px; display: flex; flex-direction: column; overflow: hidden; margin-bottom: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); } .carril-c { flex: 1; border-bottom: 2px dashed rgba(255,255,255,0.3); display: flex; align-items: center; position: relative; } .carril-c:last-child { border-bottom: none; } .meta { position: absolute; right: 20px; top: 0; bottom: 0; width: 20px; background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px; z-index: 1; opacity:0.8; box-shadow: -5px 0 10px rgba(0,0,0,0.5); } .corredor-c { font-size: 35px; position: absolute; left: 10px; z-index: 2; transition: left 0.1s linear; filter: drop-shadow(4px 4px 4px rgba(0,0,0,0.6)); } .btn-corr { flex: 1; padding: 12px; border-radius: 8px; border: 2px solid transparent; background: rgba(0,0,0,0.5); color: #fff; cursor: pointer; transition: 0.2s; font-weight: bold; min-width: 90px; } .btn-corr.seleccionado { border-color: #f1c40f; background: rgba(241, 196, 15, 0.2); transform: scale(1.05); }
        .theme-ruleta { background: linear-gradient(180deg, #420000, #000000); border-color: #ff0000; } .theme-ruleta .btn-accion { background: linear-gradient(45deg, #b30000, #ff3333); } .ruleta-visual { width: 220px; height: 220px; border-radius: 50%; border: 15px solid #d4af37; margin: 0 auto 20px; background: conic-gradient(#e74c3c 0% 50%, #2c3e50 50% 100%); display: flex; justify-content: center; align-items: center; box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); transition: transform 3s cubic-bezier(0.1, 0.7, 0.1, 1); } .ruleta-centro { width: 160px; height: 160px; background: #000; border-radius: 50%; border: 5px solid #d4af37; display: flex; justify-content: center; align-items: center; flex-direction: column;} .ruleta-numero { font-size: 60px; font-weight: 900; color: #fff; } .ruleta-tablero { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center;} .btn-apuesta-r { padding: 15px; border-radius: 10px; font-weight: bold; cursor: pointer; border: 2px solid transparent; flex: 1;} .btn-apuesta-r.rojo { background: #e74c3c; color: white; } .btn-apuesta-r.negro { background: #2c3e50; color: white; } .btn-apuesta-r.numero { background: #27ae60; color: white; } .btn-apuesta-r.seleccionado { border-color: #f1c40f; transform: scale(1.05); } .modo-fuego { animation: pulseGlow 1s infinite; border-color: #e74c3c !important; }
        .theme-slots { background: linear-gradient(180deg, #1a0b2e, #4a00e0); border-color: #e056fd; } .theme-slots .btn-accion { background: linear-gradient(45deg, #e056fd, #686de0); } .slot-caja { font-size: 100px; background: linear-gradient(180deg, #111, #333); padding: 50px 0; border-radius: 20px; border: 6px solid #e056fd; flex: 1; box-shadow: inset 0 15px 40px rgba(0,0,0,0.9), 0 10px 20px rgba(0,0,0,0.5); } .spin-anim { animation: float 0.1s infinite alternate; filter: blur(2px); }
        .theme-penaltis { background: linear-gradient(180deg, #0b5345, #000); border-color: #2ecc71; } .theme-penaltis .btn-accion { background: linear-gradient(45deg, #27ae60, #2ecc71); } #estadio { position: relative; height: 300px; background: repeating-linear-gradient(0deg, rgba(39,174,96,0.8), rgba(39,174,96,0.8) 30px, rgba(46,204,113,0.8) 30px, rgba(46,204,113,0.8) 60px); border-radius: 15px; border: 5px solid #fff; margin-bottom: 20px;} .marco-porteria { position: absolute; top: 10%; left: 10%; width: 80%; height: 90%; border: 10px solid #fff; border-bottom: none; } .zona-tiro { position: absolute; width: 50px; height: 50px; transform: translate(-50%, -50%); border: 3px dashed rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer; z-index: 5; display: none; transition: all 0.2s; } .zona-tiro:hover { background: rgba(241, 196, 15, 0.5); border-color: #f1c40f; transform: translate(-50%, -50%) scale(1.2); } .pos-tl { top: 25%; left: 20%; } .pos-tc { top: 25%; left: 50%; } .pos-tr { top: 25%; left: 80%; } .pos-bl { top: 65%; left: 20%; } .pos-br { top: 65%; left: 80%; } .balon-tirado { transform: translate(-50%, -50%) scale(0.6) !important; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)) !important; }
        .theme-cartas { background: radial-gradient(circle, #7b241c, #4a2311); border-color: #e74c3c; } .theme-cartas .btn-accion { background: linear-gradient(45deg, #c0392b, #e74c3c); } .carta-naipe { background: #fff; width: 120px; height: 180px; border-radius: 15px; display: flex; justify-content: center; align-items: center; font-size: 70px; color: #000; box-shadow: 10px 10px 20px rgba(0,0,0,0.6); margin: 0 auto 20px;} .carta-roja { color: #e74c3c; }
        .theme-blackjack { background: radial-gradient(circle, #145a32, #0b2b18); border-color: #27ae60; } .theme-blackjack .btn-accion { background: linear-gradient(45deg, #f1c40f, #d4af37); color: #000; } .tapete-bj { background: rgba(0,0,0,0.3); border-radius: 15px; padding: 20px; margin-bottom: 20px; border: 2px solid #27ae60; } .area-cartas { display: flex; gap: 10px; min-height: 100px; justify-content: center; margin-bottom: 15px;} .carta-bj { background: #fff; width: 60px; height: 90px; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 25px; font-weight: bold; color: #000; } .carta-oculta { background: repeating-linear-gradient(45deg, #2980b9, #2980b9 10px, #3498db 10px, #3498db 20px); color: transparent; }
        
        .tutorial-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(8px); }
        .tutorial-caja { background: linear-gradient(135deg, #1a1a1a, #050505); padding: 40px; border-radius: 20px; border: 2px solid #d4af37; max-width: 450px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.9); animation: fadeInScale 0.4s ease forwards; }
        .tutorial-caja h3 { color: #f1c40f; font-size: 32px; margin-top: 0; font-family: 'Playfair Display', serif; }
        .tutorial-caja p { color: #bdc3c7; font-size: 18px; line-height: 1.6; margin-bottom: 30px; }
        .tutorial-check { display: flex; align-items: center; justify-content: center; gap: 10px; color: #888; margin-bottom: 25px; cursor: pointer; font-size: 14px; font-weight: bold;}

        /* ==========================================
           6. RANKING
           ========================================== */
        .btn-rank-tab { background: rgba(255,255,255,0.08); color: #bdc3c7; border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 8px 18px; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.2s; }
        .btn-rank-tab.activo { background: linear-gradient(45deg, #f1c40f, #e67e22); color: #000; border-color: transparent; }
        .rank-fila { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px 16px; cursor: pointer; transition: 0.2s; margin-bottom: 6px; }
        .rank-fila:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
        .rank-pos { width: 28px; text-align: center; font-weight: 900; font-size: 16px; color: #888; flex-shrink: 0; }
        .rank-pos.oro { color: #f1c40f; }
        .rank-pos.plata { color: #bdc3c7; }
        .rank-pos.bronce { color: #cd7f32; }
        .rank-nombre { flex: 1; font-weight: bold; font-size: 15px; color: #ecf0f1; }
        .rank-valor { font-weight: 900; font-size: 15px; color: #2ecc71; }
        .rank-badge-semana { background: linear-gradient(45deg, #f1c40f, #e67e22); color: #000; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 900; margin-left: 6px; }

        /* ==========================================
           7. CHAT GLOBAL
           ========================================== */
        .chat-msg { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 8px 12px; font-size: 14px; word-break: break-word; }
        .chat-msg-nombre { font-weight: 900; color: #e056fd; margin-right: 6px; cursor: pointer; }
        .chat-msg-nombre:hover { text-decoration: underline; }
        .chat-msg-hora { font-size: 11px; color: #666; margin-left: 8px; float: right; }

        /* ==========================================
           8. TOP WINS FEED
           ========================================== */
        .topwins-item { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,0.05); border-left: 3px solid #f1c40f; border-radius: 6px; padding: 6px 10px; font-size: 13px; }
        .topwins-item .tw-name { color: #e056fd; font-weight: bold; font-size: 12px; }
        .topwins-item .tw-prize { color: #2ecc71; font-weight: 900; }
        .topwins-item .tw-mult { color: #f1c40f; font-size: 11px; }

        /* ==========================================
           6. RESPONSIVE — TABLETS Y MÓVILES
           ========================================== */

        @media (max-width: 768px) {
            body { padding: 8px; }
            .contenedor-principal { margin-top: 8px; }

            h1 { font-size: 28px !important; }
            h2 { font-size: 18px !important; }

            .pantalla { padding: 14px 12px; border-radius: 16px; }

            /* Saldo flotante */
            .marcador-flotante {
                font-size: 18px;
                padding: 10px 16px;
                border-radius: 30px;
                gap: 8px;
                top: 6px;
            }
            .guardado-badge { font-size: 11px; padding: 4px 8px; right: 10px; }

            /* Indicadores fijos */
            #estado-nube { top: 8px; left: 8px; font-size: 11px; padding: 6px 10px; }
            #btn-volumen  { bottom: 12px; right: 12px; width: 44px; height: 44px; font-size: 20px; }

            /* Layout partido / juegos con panel izquierdo + derecho */
            .layout-split { flex-direction: column; gap: 12px; }
            .panel-izq    { width: 100% !important; min-height: auto; }
            .panel-der    { min-height: 280px; min-width: 0; }
            .caja-controles { min-height: auto; }

            /* Cabecera de juego */
            .cabecera-juego { gap: 8px; flex-wrap: wrap; }
            .cabecera-juego h2 { font-size: 15px !important; }
            .btn-volver { padding: 8px 12px; font-size: 11px; }

            /* Hub cards */
            .hub-card  { padding: 18px 10px; }
            .hub-icon  { font-size: 48px; margin-bottom: 10px; }
            .hub-title { font-size: 17px; }

            /* Menú de juegos */
            .menu-juegos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
            .tj { padding: 15px 10px; }
            .tj h3 { font-size: 14px; margin: 0; }

            /* Slots */
            .slot-caja { font-size: 58px; padding: 22px 0; border-radius: 14px; }

            /* Rasca y Gana */
            .rasca-tarjeta { width: 100%; max-width: 340px; padding: 18px; }
            .rasca-celda   { height: 85px; font-size: 48px; }
            .rasca-header  { font-size: 19px; }

            /* Plinko */
            .plinko-escenario { height: 290px; }

            /* Senda */
            .celda-senda { width: 62px; height: 62px; font-size: 26px; }

            /* Ruleta PRO: tapete horizontal scroll */
            .tapete-pro     { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px; }
            .celda-tapete   { min-width: 26px; font-size: 11px; padding: 7px 0; }
            .numeros-grid   { gap: 1px; }
            .columnas-grid  { width: 44px; }

            /* Perfil / Tutorial modales */
            .perfil-caja  { width: 88vw; padding: 20px; margin-top: 30px; }
            .tutorial-caja { width: 88vw; padding: 24px 20px; max-width: none; }
            .tutorial-caja h3 { font-size: 24px; }
            .tutorial-caja p  { font-size: 15px; }

            /* Estadio penaltis */
            #estadio { height: 240px; }

            /* Pista carreras */
            .pista-carreras { height: 200px; }
            .corredor-c { font-size: 26px; }

            /* Apuestas */
            .panel-apuesta input[type=number] { font-size: 17px; }
            .btn-accion { padding: 16px; font-size: 15px; }
            .btn-bet    { padding: 9px 13px; font-size: 16px; }

            /* Tienda / colección grids */
            .grid-tienda    { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
            .grid-coleccion { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

            /* Deportes */
            .dep-panel { min-width: 0; }
            .marcador-live { font-size: 18px; padding: 14px; }

            /* XP bar */
            .xp-contenedor { max-width: 100%; }

            /* Buscador juegos */
            .buscador-contenedor { max-width: 100%; }
        }

        @media (max-width: 480px) {
            h1 { font-size: 22px !important; }
            .marcador-flotante { font-size: 16px; padding: 8px 12px; }

            /* 2 columnas fijas en menú de juegos */
            .menu-juegos-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

            .slot-caja { font-size: 46px; padding: 16px 0; }

            #estadio    { height: 200px; }
            .pista-carreras { height: 170px; }

            /* Puertas: puerta más pequeña */
            .puerta-box-fp { width: 160px; height: 260px; }
            .puertas-main-view { height: 320px; }

            /* Gallinita */
            .carretera-h { height: 220px; }
            .gallina-3d  { font-size: 44px; }

            /* Carta naipe oracle */
            .carta-naipe { width: 90px; height: 140px; font-size: 52px; }
        }
