* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a2332;
    --bg-secondary: #2d3f54;
    --color-orange: #ff8c42;
    --color-white: #ffffff;
    --color-green: #4caf50;
    --color-red: #f44336;
    --color-yellow: #ffd700;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/logo.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background decorativo */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.barbed-wire {
    position: absolute;
    top: 20px;
    left: 0;
    width: 300px;
    transform: rotate(45deg);
}

.fire-effect {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    opacity: 0.5;
}

/* Container principal */
.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

/* Container do Logo com Fundo Especial */
.header .logo {
    max-width: 400px;
    width: 90%;
    height: auto;
    margin: 0 auto 30px;
    padding: 20px;
    background: url('../images/bg-gradient.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    border: 3px solid rgba(255, 140, 66, 0.5);
    box-shadow: 0 10px 50px rgba(255, 140, 66, 0.3),
                0 0 30px rgba(255, 140, 66, 0.2),
                inset 0 0 30px rgba(255, 140, 66, 0.1);
    filter: brightness(1.15) contrast(1.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    image-rendering: -webkit-optimize-contrast;
}

.header .logo::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff8c42, #ff6b35, #ff8c42);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: borderGlow 3s ease-in-out infinite;
}

.header .logo:hover::before {
    opacity: 0.6;
}

.header .logo:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 140, 66, 0.8);
    box-shadow: 0 15px 60px rgba(255, 140, 66, 0.5),
                0 0 50px rgba(255, 140, 66, 0.4),
                inset 0 0 40px rgba(255, 140, 66, 0.15);
}

@keyframes borderGlow {
    0%, 100% { 
        background: linear-gradient(45deg, #ff8c42, #ff6b35, #ff8c42); 
    }
    50% { 
        background: linear-gradient(45deg, #ff6b35, #ff8c42, #ff6b35); 
    }
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
}

.coin-icon, .fire-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    overflow: visible;
}

/* Menu de navegação */
.nav-menu {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.active, .nav-btn:hover {
    background: var(--color-orange);
}

/* Área do Jogo */
.game-area {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.mission-bar {
    text-align: center;
    margin-bottom: 30px;
}

.mission-title {
    color: var(--color-orange);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 35px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--color-yellow);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-green) 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Contador */
.counter {
    text-align: center;
    margin: 30px 0;
}

.counter-number {
    font-size: 80px;
    font-weight: bold;
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

/* Bombas */
.bombs-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.bomb {
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.bomb:hover {
    transform: scale(1.1);
}

.bomb img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.bomb-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
}

/* Botão de Ação */
.action-btn-container {
    text-align: center;
    margin: 30px 0;
}

.action-btn {
    background: var(--color-green);
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.action-btn:active {
    transform: translateY(0);
}

.cost-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 18px;
}

/* Indicadores de rodada */
.round-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.indicator.active {
    background: var(--color-orange);
}

.indicator.completed {
    background: var(--color-white);
}

/* Ranking */
.ranking-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.ranking-position {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-orange);
    width: 40px;
}

.ranking-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ranking-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.ranking-stats {
    display: flex;
    gap: 15px;
}

/* Animações */
@keyframes explode {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.exploding {
    animation: explode 0.5s forwards;
}

/* Formulários de Login/Cadastro */
.auth-container {
    max-width: 420px;
    margin: 60px auto;
    background: linear-gradient(165deg, rgba(30, 50, 70, 0.95) 0%, rgba(20, 35, 55, 0.97) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px 32px;
    border: 1px solid rgba(255, 140, 66, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 140, 66, 0.05);
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo img {
    max-width: 220px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-orange);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    transition: border 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-orange);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #56c45a 0%, #4caf50 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.text-center {
    text-align: center;
    margin-top: 24px;
}

.text-center p {
    margin-bottom: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.text-center a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
}

.text-center a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #69db7c;
}

/* Animações de explosão e efeitos */
@keyframes explosionOverlay {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes explosionEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: brightness(2);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1.5);
    }
    70% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
        filter: brightness(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
        filter: brightness(0.8);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
}

@keyframes blinking {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulseVencedora {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
        transform: scale(1.1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(76, 175, 80, 1);
        transform: scale(1.15);
    }
}

@keyframes valorRevelado {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes resultadoJogador {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Classes para bombas */
.bomb-item.exploded {
    animation: shake 0.5s ease-in-out;
}

.bomb-item.blinking {
    animation: blinking 0.5s ease-in-out infinite;
}

.bomb-item.selected {
    border: 3px solid var(--color-orange) !important;
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.6);
}

.bomb-image {
    transition: all 0.3s ease;
}

.bomb-image:hover {
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 600px) {
    .counter-number {
        font-size: 60px;
    }
    
    .bomb img {
        width: 100px;
        height: 100px;
    }
    
    .bombs-container {
        gap: 20px;
    }
    
    .action-btn {
        padding: 12px 40px;
        font-size: 20px;
    }

    .auth-container {
        margin: 30px 16px;
        padding: 28px 20px;
        border-radius: 20px;
    }

    .auth-logo img {
        max-width: 180px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 16px;
    }
}

/* Modal "Esqueci a senha" (login) */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.auth-modal-overlay.is-open {
    display: flex;
}

.auth-modal-box {
    position: relative;
    max-width: 400px;
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--color-orange);
    border-radius: 16px;
    padding: 28px 22px 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-close:hover {
    background: rgba(244, 67, 54, 0.45);
}

.auth-modal-text {
    margin: 8px 0 20px;
    line-height: 1.5;
    font-size: 15px;
}

.auth-modal-actions .btn-primary {
    width: 100%;
}




/* Fallback de fundo — impede branco ao rolar (login, cadastro, perfil) */
html {
    min-height: 100%;
    background: #0d1b2a;
}
