/* ============================================================
   EASTER EGG DOOM — Estilos
   Ativado quando o e-mail E a senha forem "doom"
   ============================================================ */

/* ------------------------------------------------------------
   Overlay e modal
   ------------------------------------------------------------ */
.doom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: doomFadeIn 0.25s ease-out;
}

@keyframes doomFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.doom-modal {
    background: #0a0a0a;
    border: 2px solid #8b1a1a;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(255, 40, 40, 0.4), 0 20px 80px rgba(0, 0, 0, 0.8);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: doomZoom 0.3s ease-out;
}

@keyframes doomZoom {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.doom-header {
    background: linear-gradient(90deg, #8b1a1a, #3a0000);
    color: #ffdd00;
    padding: 0.75rem 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(255, 80, 0, 0.7);
    border-bottom: 2px solid #ff4400;
}

.doom-fechar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #ffdd00;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    z-index: 10;
    transition: background 0.2s;
}

.doom-fechar:hover {
    background: rgba(255, 80, 0, 0.25);
}

/* ------------------------------------------------------------
   Canvas e HUD
   ------------------------------------------------------------ */
.doom-canvas-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

#doom-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
}

/* Tela treme quando o jogador toma dano */
#doom-canvas.shake {
    animation: doomShake 0.25s ease-in-out;
}

@keyframes doomShake {
    0%, 100% { transform: translate(0, 0); }
    20%      { transform: translate(-4px, 3px); }
    40%      { transform: translate(5px, -3px); }
    60%      { transform: translate(-3px, 4px); }
    80%      { transform: translate(3px, -2px); }
}

.doom-hud {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #ffdd00;
    text-shadow: 0 0 6px rgba(255, 80, 0, 0.9);
}

.doom-hud-item {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid #8b1a1a;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.doom-hud-item i {
    color: #ff4444;
}

/* ------------------------------------------------------------
   Tela de vitória
   ------------------------------------------------------------ */
.doom-vitoria {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    overflow-y: auto;
    animation: doomFadeIn 0.4s ease-out;
    z-index: 5;
}

.doom-vitoria-inner {
    max-width: 640px;
    width: 100%;
}

.doom-vitoria-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: doomPulse 1.2s ease-in-out infinite;
}

@keyframes doomPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.doom-vitoria h2 {
    color: #ffdd00;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 14px rgba(255, 100, 0, 0.8);
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}

.doom-vitoria-sub {
    color: #ff8888;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ------------------------------------------------------------
   Créditos
   ------------------------------------------------------------ */
.doom-creditos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media (max-width: 640px) {
    .doom-creditos {
        grid-template-columns: 1fr;
    }
}

.doom-creditos-bloco {
    background: rgba(139, 26, 26, 0.18);
    border: 1px solid #8b1a1a;
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.doom-creditos-bloco h3 {
    color: #ffdd00;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #8b1a1a;
    padding-bottom: 0.4rem;
}

.doom-creditos-bloco ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doom-creditos-bloco li {
    color: #fff;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    font-weight: 600;
}

.doom-creditos-bloco li::before {
    content: '▸ ';
    color: #ff4444;
}

.doom-creditos-bloco p {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.doom-creditos-bloco p:last-child {
    margin-bottom: 0;
}

.doom-creditos-bloco strong {
    color: #ffdd00;
}

/* ------------------------------------------------------------
   Botão e rodapé
   ------------------------------------------------------------ */
.doom-btn-reiniciar {
    background: linear-gradient(135deg, #8b1a1a, #c92a2a);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(201, 42, 42, 0.5);
}

.doom-btn-reiniciar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 42, 42, 0.7);
}

.doom-footer {
    background: #1a0000;
    color: #ff8888;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-top: 1px solid #8b1a1a;
    font-family: 'Courier New', monospace;
}

.doom-footer kbd {
    background: #2a0000;
    border: 1px solid #8b1a1a;
    color: #ffdd00;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ------------------------------------------------------------
   Utilitário
   ------------------------------------------------------------ */
.doom-overlay.hidden {
    display: none !important;
}