/* FONTE E RESET */
        @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
        
        body {
            background-color: #000;

            color: #fff;
            font-family: 'Press Start 2P', monospace;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            user-select: none;
        }

        /* CONTAINER DO JOGO */
        .game-container {
            width: 800px;
            height: 600px;
            background-image: url('/src/img/001.png'); 
            background-size: cover; 
            background-position: center;
            background-repeat: no-repeat;
            position: relative; 
            border: 4px solid #fff;
            overflow: hidden;
}

        /* PERSONAGENS */
        .character {
            position: absolute;
            font-size: 60px; /* Usando emojis como placeholder dos sprites */
            transition: transform 0.3s ease;
        }
        
        #magus { bottom: 200px; right: 150px; }
        #crono { bottom: 200px; left: 150px; }
        

        /* INTERFACE (UI) ESTILO SNES */
        .ui-panel {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 150px;
            background: linear-gradient(to bottom, #1020a0 0%, #000040 100%);
            border-top: 4px solid #dcdcdc;
            display: flex;
            box-sizing: border-box;
            padding: 10px;
            border-radius: 10px 10px 0 0;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
        }

        .menu-box {
            border: 2px solid #fff;
            border-radius: 8px;
            padding: 10px;
            margin: 0 5px;
            background: rgba(0, 0, 50, 0.6);
        }

        .stats-box { width: 35%; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
        .actions-box { width: 30%; display: flex; flex-direction: column; gap: 8px; }
        .log-box { width: 35%; font-size: 12px; line-height: 1.5; color: #ffeb3b; }

        /* BARRAS DE HP/MP */
        .bar-bg { width: 100%; background-color: #555; height: 10px; border-radius: 5px; margin-top: 5px;}
        .hp-bar { height: 100%; background-color: #32cd32; border-radius: 5px; width: 100%; transition: width 0.3s;}
        .mp-bar { height: 100%; background-color: #1e90ff; border-radius: 5px; width: 100%; transition: width 0.3s;}

        /* BOTÕES DE AÇÃO */
        button {
            background: none; border: none; color: #fff;
            font-family: 'Press Start 2P', monospace;
            text-align: left; font-size: 12px; cursor: pointer;
            padding: 5px; transition: color 0.2s;
        }
        button:hover:not(:disabled) { color: #ffeb3b; }
        button:disabled { color: #555; cursor: not-allowed; }

        /* ANIMAÇÕES CSS */
        @keyframes atk-crono {
            0% { transform: translateX(0); }
            50% { transform: translateX(300px) rotate(15deg); }
            100% { transform: translateX(0); }
        }
        @keyframes atk-magus {
            0% { transform: translateX(0); }
            50% { transform: translateX(-300px) scale(1.2); }
            100% { transform: translateX(0); }
        }
        @keyframes damage {
            0%, 100% { filter: brightness(1); transform: translateX(0); }
            25% { filter: brightness(2) drop-shadow(0 0 10px red); transform: translateX(-10px); }
            75% { filter: brightness(2) drop-shadow(0 0 10px red); transform: translateX(10px); }
        }
        
        .anim-atk-crono { animation: atk-crono 0.6s ease-in-out; }
        .anim-atk-magus { animation: atk-magus 0.8s ease-in-out; }
        .anim-damage { animation: damage 0.4s ease; }

        /* CAMADA DE EFEITOS ESPECIAIS */
#magic-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Impede que a div bloqueie os cliques do mouse */
    z-index: 10; /* Fica acima do cenário e personagens, mas atrás dos menus */
    opacity: 0; /* Começa invisível */
}

/* Magia do Crono (Clarões de luz amarela/branca) */
.vfx-luminaire {
    animation: flash-luminaire 1.2s ease-out;
}
@keyframes flash-luminaire {
    0% { background: radial-gradient(circle, #fff 0%, transparent 10%); opacity: 0; }
    15% { background: radial-gradient(circle, #fff 40%, #ffeb3b 100%); opacity: 0.8; }
    30% { opacity: 0; }
    45% { background: #fff; opacity: 1; }
    100% { opacity: 0; }
}

/* Magia do Magus (Energia escura/roxa sugando a luz) */
.vfx-dark-matter {
    animation: flash-dark-matter 1.5s ease-in-out;
}
@keyframes flash-dark-matter {
    0% { background: #000; opacity: 0; }
    50% { background: radial-gradient(circle, #4a0080 0%, #000 80%); opacity: 0.8; }
    100% { background: #000; opacity: 0; }
}