/* ===============================
   ESTILOS GENERALES
=============================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #0b0f1a;
    color: #ffffff;

    background-image: url('/imagenes/botfreimel.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* 🔥 capa oscura encima del fondo */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* ===============================
   CONTENEDOR PRINCIPAL
=============================== */

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(20, 20, 30, 0.85);
    padding: 24px;
    border-radius: 16px;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 255, 156, 0.1);
    width: 360px;
    backdrop-filter: blur(8px);
}

.container h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

/* ===============================
   ETIQUETA DEMO
=============================== */

.demo-tag {
    font-size: 12px;
    color: #f1c40f;
}

/* ===============================
   INPUTS
=============================== */

.input-group {
    margin: 10px 0;
    text-align: left;
}

.input-group label {
    font-size: 13px;
    color: #ccc;
    display: block;
    margin-bottom: 4px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: #1e1e2f;
    color: #fff;
    transition: 0.2s;
}

.input-group input:focus {
    box-shadow: 0 0 10px #00ff9c;
}

.input-group input::placeholder {
    color: #888;
}

/* ===============================
   BOTÓN PRINCIPAL
=============================== */

.btn {
    background: linear-gradient(45deg, #00ff9c, #00c97a);
    color: black;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.25s ease;
    font-weight: bold;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff9c;
}

.btn:disabled {
    background-color: #555;
    color: #ccc;
    cursor: not-allowed;
}

/* ===============================
   LOADER CIRCULAR
=============================== */

.circle-loader-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.circle-loader {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #00ff9c;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 0.8s linear infinite;
}

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

/* ===============================
   AREA DEL SIMULADOR
=============================== */

#gameArea {
    margin-top: 15px;
    padding: 25px;
    border-radius: 14px;

    background: linear-gradient(
        180deg,
        rgba(10,10,20,0.7),
        rgba(0,0,0,0.95)
    );

    box-shadow:
        0 0 25px rgba(0,0,0,0.9),
        inset 0 0 25px rgba(0,0,0,0.8);

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===============================
   🎯 GRÁFICA (LO QUE TE FALTABA)
=============================== */

#chart {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    margin-bottom: 12px;

    background: radial-gradient(circle, #000, #050505);

    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.8),
        0 0 10px rgba(0,255,156,0.1);
}

/* ===============================
   MULTIPLICADOR
=============================== */

#multiplier {
    font-size: 42px;
    font-weight: bold;
    color: #00ff9c;
    margin-top: 8px;

    animation: pulseGlow 1.5s infinite alternate;

    text-shadow:
        0 0 10px #00ff9c,
        0 0 25px rgba(0,255,150,0.6);
}

@keyframes pulseGlow {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* ===============================
   VALOR DINÁMICO
=============================== */

#priceIndicator {
    font-size: 32px;
    color: #ffd700;
    margin-top: 8px;
    font-weight: bold;
    letter-spacing: 1px;

    text-shadow:
        0 0 6px #ffd700,
        0 0 12px rgba(255,215,0,0.5);
}

/* ===============================
   RESULTADOS
=============================== */

#result {
    margin-top: 15px;
    font-size: 14px;
    color: #eaeaea;
    line-height: 1.5;
}

/* ===============================
   EFECTO CRASH 💥
=============================== */

.crash {
    animation: crashFlash 0.4s ease;
}

@keyframes crashFlash {
    0% { background-color: rgba(255,0,0,0); }
    50% { background-color: rgba(255,0,0,0.3); }
    100% { background-color: rgba(255,0,0,0); }
}

/* ===============================
   EFECTOS
=============================== */

.flash {
    animation: flash 0.6s ease-out;
}

@keyframes flash {
    0% { text-shadow: 0 0 0px #ffd700; }
    50% { text-shadow: 0 0 12px #ffd700; }
    100% { text-shadow: 0 0 0px #ffd700; }
}

.subiendo {
    animation: subida 0.3s ease;
}

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

.glow {
    text-shadow:
        0 0 6px #00ff9c,
        0 0 12px #00ff9c;
}

.pulse {
    animation: pulse 0.4s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}