/* ==========================================================================
   EA HIGH-TECH SECURITY SHIELD - CINEMATIC MOTION GRAPHICS 4K
   100% Full-Window Immersive Canvas Experience
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #02050e;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    color: #e0f7ff;
    cursor: default;
}

#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at center, #061528 0%, #030a16 60%, #010307 100%);
}

/* Canvas ocupa exactamente el 100% de la ventana */
#cinema-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 1;
    cursor: crosshair;
}

/* Capa de Viñeta Cinemática Suave */
#vignette-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(1, 4, 12, 0.6) 80%, rgba(0, 1, 5, 0.95) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Micro-scanlines Cyberpunk */
#scanline-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.35;
    z-index: 6;
}

/* Pulso de Aberración Cromática en impactos */
#chromatic-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    z-index: 7;
    transition: opacity 0.12s ease-out;
}

/* Indicador Minimalista de Audio en la esquina superior */
.audio-badge {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(3, 11, 24, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #00f0ff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-badge:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
}

.audio-badge.muted {
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.audio-wave {
    width: 3px;
    height: 12px;
    background-color: #00f0ff;
    border-radius: 2px;
    animation: wave-bounce 1.2s infinite ease-in-out;
}

.audio-wave:nth-child(2) {
    animation-delay: 0.2s;
    height: 18px;
}

.audio-wave:nth-child(3) {
    animation-delay: 0.4s;
    height: 10px;
}

.audio-badge.muted .audio-wave {
    animation: none;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Prompt de inicio minimalista */
.click-prompt {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.click-prompt.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.prompt-content {
    background: rgba(3, 12, 26, 0.82);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.15);
    padding: 12px 28px;
    border-radius: 30px;
    backdrop-filter: blur(14px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: float-pulse 2.5s infinite ease-in-out alternate;
}

.prompt-icon {
    font-size: 16px;
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
}

.prompt-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.prompt-sub {
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(0, 240, 255, 0.75);
    font-family: 'JetBrains Mono', monospace;
}

@keyframes wave-bounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1.3); }
}

@keyframes float-pulse {
    0% { transform: translateY(0); box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
    100% { transform: translateY(-6px); box-shadow: 0 0 35px rgba(0, 240, 255, 0.5); }
}
