* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    padding: 15px 40px;
    border-bottom: 2px solid #00d2ff;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #00d2ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar .menu a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar .menu a:hover {
    color: #00d2ff;
}

.usuario-logado {
    margin-left: 20px;
    color: #a8ff78;
}

.btn-cadastro, .btn-jogar {
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: #fff !important;
}

.btn-sair {
    color: #ff4b4b !important;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00d2ff;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #b3b3b3;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    border: 2px solid #3a7bd5;
}

/* Formulários */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.game-form {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    width: 100%;
    max-width: 400px;
    border: 1px solid #333;
}
.game-form h2 { color: #00d2ff; margin-bottom: 20px; text-align: center; }
.game-form label { display: block; margin-bottom: 5px; color: #b3b3b3; }
.game-form input {
    width: 100%; padding: 10px; margin-bottom: 15px; border-radius: 5px;
    border: 1px solid #444; background-color: #2a2a2a; color: white;
}
.game-form input:focus { outline: none; border-color: #00d2ff; }
.msg-erro { color: #ff4b4b; margin-bottom: 15px; text-align: center; font-weight: bold; }
.msg-sucesso { color: #a8ff78; margin-bottom: 15px; text-align: center; font-weight: bold; }
.link-footer { text-align: center; margin-top: 20px; font-size: 14px; }
.link-footer a { color: #00d2ff; text-decoration: none; }

/* Novas Seções de Instruções (Guia do Jogo) */
.instructions-section {
    padding: 60px 40px;
    background-color: #161616;
    display: flex;
    justify-content: center;
    border-top: 2px solid #1e1e1e;
}

.container-info {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.container-info h2 {
    color: #00d2ff;
    font-size: 38px;
    margin-bottom: 15px;
}

.container-info .subtitulo-geral {
    font-size: 18px;
    color: #b3b3b3;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.grid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card-info {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card-info:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.2);
}

.card-info h3 {
    color: #00d2ff;
    margin-bottom: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-info p {
    color: #b3b3b3;
    font-size: 15px;
    line-height: 1.6;
}

.card-info strong {
    color: #ffffff;
}