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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    position: relative;
}

canvas {
    display: block;
}

/* Tela de carregamento */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.loader {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Interface do usuário do jogo */
#game-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.controls-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    pointer-events: all;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.controls-info h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #4ade80;
    padding-bottom: 8px;
}

.controls-info p {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.controls-info p::before {
    content: "→";
    margin-right: 10px;
    color: #4ade80;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .controls-info {
        top: 10px;
        left: 10px;
        padding: 15px;
        min-width: 150px;
    }

    .controls-info h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .controls-info p {
        font-size: 12px;
        margin: 5px 0;
    }
}

/* Efeitos visuais adicionais */
.controls-info {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cursor customizado para o jogo */
body {
    cursor: crosshair;
}

/* Remover seleção de texto durante o jogo */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}