body {
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    background: #000;
}

#bg {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* El Precio Gigante */
#giant-btc {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;

    font-size: 18vw;
    font-weight: 900;
    letter-spacing: -5px;

    /* Base más transparente (5%) */
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;

    pointer-events: none;
    white-space: nowrap;
    transition: color 1s ease;
}

.giant-up {
    /* Verde muy sutil (8%) */
    color: rgba(0, 255, 65, 0.08) !important;
    /* Sombra reducida */
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.15);
}

.giant-down {
    /* Rojo muy sutil (8%) */
    color: rgba(255, 62, 77, 0.08) !important;
    text-shadow: 0 0 40px rgba(255, 62, 77, 0.15);
}

/* Animación Glitch */
.glitch-active #giant-btc {
    animation: text-shake 0.2s infinite;
}

/* Canvas Matrix */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* UI Superior Derecha */
#iotLoginContainer {
    z-index: 1000;
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 0, 0, 0.8);
    font-family: 'Roboto', sans-serif !important;
}

/* Corrección Botones: Usar el color estándar CULIverse (#1cb495) */
.login-action-btn:hover {
    background-color: #1cb495 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(28, 180, 149, 0.4);
}

/* HUD Central de Precios */
#crypto-hud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    /* Dejar pasar clicks */
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
}

#btc-price {
    color: #fff;
    font-size: 4rem;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hud-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: bold;
}

.hud-binary {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 4px;
}

/* Clases de Estado (Color HUD) */
.market-up #btc-price,
.market-up #btc-percent {
    color: #00ff41;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

.market-down #btc-price,
.market-down #btc-percent {
    color: #ff3e4d;
    text-shadow: 0 0 15px rgba(255, 62, 77, 0.6);
}

/* Efecto Glitch / Vibración (cuando no es 'Normal') */
.glitch-active body {
    animation: shake 0.2s cubic-bezier(.36, .07, .19, .97) both infinite;
}

.glitch-active #crypto-hud {
    border-color: red;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-2px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(2px, 0, 0);
    }
}

@keyframes glitch-skew {
    0% {
        clip-path: inset(80% 0 0 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(20% 0 70% 0);
        transform: translate(1px, 1px);
    }

    100% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(0);
    }
}

@keyframes text-shake {
    0% {
        transform: translate(-50%, -50%) skewX(0deg);
    }

    25% {
        transform: translate(-51%, -49%) skewX(-1deg);
    }

    75% {
        transform: translate(-49%, -51%) skewX(1deg);
    }

    100% {
        transform: translate(-50%, -50%) skewX(0deg);
    }
}