body { margin: 0; font-family: sans-serif; background: #000; overflow: hidden; }

#video-container { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: all 0.5s;
}

.hidden { display: none; }

.card {
    background: white; padding: 20px; border-radius: 15px; text-align: center;
    width: 80%; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

button {
    padding: 15px 25px; margin: 10px; border: none; border-radius: 8px;
    background: #007bff; color: white; font-weight: bold; width: 80%; font-size: 1.1rem;
}

/* Efecto de Hackeo para Variable Continua */
.hack-effect { background: rgba(0, 255, 65, 0.2); backdrop-filter: blur(5px); }
#btn-cronometro { background: #ff4757; height: 100px; border-radius: 50%; width: 100px; }

.ia-avatar-mini {
    font-size: 50px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.ia-comment .card {
    border: 2px solid #007bff;
    background: #f0f7ff;
}

button { touch-action: manipulation; }

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --success: #00b894;
    --danger: #ff7675;
    --dark: #0f0c29;
    --glass: rgba(255, 255, 255, 0.95);
}

body { 
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); 
    margin: 0; display: flex; justify-content: center; align-items: center; 
    min-height: 100vh; font-family: 'Poppins', sans-serif; overflow: hidden;
}

#video-container {
    position: relative; width: 100%; max-width: 430px; height: 100vh;
    background: #000; overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

video { width: 100%; height: 100%; object-fit: cover; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center; z-index: 10;
}

.card { 
    width: 85%; padding: 30px 20px; background: var(--glass); 
    border-radius: 32px; text-align: center; border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

h3 { margin: 0 0 10px 0; color: var(--dark); font-size: 1.4rem; font-weight: 700; }
p { color: #555; font-size: 0.9rem; margin-bottom: 20px; }

/* Botones de selección de cajeros (Grandes y Pro) */
.btn-grid { display: flex; justify-content: center; gap: 12px; }
.btn-num {
    width: 60px; height: 60px; border: none; border-radius: 18px;
    background: var(--primary); color: white; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}
.btn-num:active { transform: scale(0.9); background: var(--dark); }

/* Botones de acción general */
.btn-ui {
    width: 100%; border: none; padding: 15px; border-radius: 16px;
    font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s;
    margin-bottom: 10px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }

#btn-cronometro {
    width: 140px; height: 140px; border-radius: 50%; background: var(--danger);
    color: white; border: 8px solid rgba(255,255,255,0.2); font-weight: bold;
    display: flex; align-items: center; justify-content: center; margin: 20px auto;
    box-shadow: 0 0 20px rgba(255, 118, 117, 0.4); cursor: pointer; touch-action: none;
}

.hidden { display: none !important; }