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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-header h1 i {
    color: #4299e1;
}

.player-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.score-display, .status-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
}

.score-display {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.status-display.ativo {
    background: linear-gradient(45deg, #48bb78, #68d391);
    color: white;
}

.status-display.inativo {
    background: linear-gradient(45deg, #f56565, #fc8181);
    color: white;
}

/* Main Game Area */
.game-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Menu Card */
.menu-card, .penalty-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.menu-card h2, .penalty-card h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #4a5568;
}

.menu-card p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 30px;
}

/* Game Rules */
.game-rules {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.game-rules h3 {
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-rules ul {
    list-style: none;
    padding-left: 0;
}

.game-rules li {
    padding: 8px 0;
    color: #718096;
    position: relative;
    padding-left: 25px;
}

.game-rules li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #a0aec0, #cbd5e0);
    color: #4a5568;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(160, 174, 192, 0.4);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.2rem;
}

.menu-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Penalty Screen */
.penalty-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.penalty-screen .penalty-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
    border: 2px solid #ffc107;
}

.penalty-screen .penalty-card i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.penalty-screen .penalty-card h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.penalty-screen .penalty-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .player-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-card, .penalty-card {
        padding: 25px;
        margin: 0 10px;
    }
    
    .menu-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Game Screen Styles */
.game-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    width: 100%;
    max-width: 900px;
}

.game-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 15px;
}

.question-counter {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
}

.current-score {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4299e1;
}

.hangman-display {
    text-align: center;
    margin-bottom: 30px;
}

.hangman-image {
    width: 200px;
    height: 250px;
    margin: 0 auto;
    background: #f7fafc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #a0aec0;
}

.question-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: center;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.answer-option {
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.answer-option:hover {
    border-color: #4299e1;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.answer-option.selected {
    border-color: #4299e1;
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
}

.game-actions {
    text-align: center;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .game-progress {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Estilos para textarea */
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Estilos para checkboxes customizados */
.checkbox-group {
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4285f4;
    border-color: #4285f4;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label:hover .checkmark {
    border-color: #4285f4;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-actions .btn {
    flex: 1;
}

/* Form Styles for Modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

input[type="password"], input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="password"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: #4299e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

input[type="password"]::placeholder, input[type="text"]::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* Enhanced Modal Header */
.modal-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #4299e1;
    font-size: 1.2rem;
}

/* Enhanced Modal Body */
.modal-body {
    padding: 30px 25px;
    background: #ffffff;
}

/* Enhanced Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border: 1px solid #fc8181;
    color: #c53030;
}

.alert-error i {
    color: #e53e3e;
}
.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Telas de Status do Sistema */
.maintenance-screen,
.game-disabled-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.maintenance-card,
.disabled-card {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    max-width: 500px;
    width: 90%;
}

.maintenance-card i,
.disabled-card i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.maintenance-card h2,
.disabled-card h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.maintenance-card p,
.disabled-card p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Checkbox personalizado para dashboard */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.player-name-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.player-name-section .form-group {
    margin-bottom: 0;
}

.player-name-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.player-name-section label i {
    margin-right: 8px;
    color: #4CAF50;
}

.player-name-section input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.player-name-section input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1), 0 2px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.player-name-section input:invalid {
    border-color: #f44336;
}

.player-name-section small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* Animação para botão de loading */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .player-name-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .player-name-section input {
        padding: 12px 15px;
        font-size: 16px; /* Evita zoom no iOS */
    }
}
}

/* Penalty Card Styles */
.penalty-section {
    margin: 20px 0;
}

.penalty-card {
    background: white;
    border: 2px solid #e53e3e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15);
    margin: 15px 0;
}

.penalty-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #fed7d7;
}

.penalty-header i {
    font-size: 2.5rem;
    color: #e53e3e;
    margin-bottom: 10px;
}

.penalty-header h3 {
    color: #e53e3e;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.penalty-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.penalty-amount {
    text-align: center;
    padding: 15px;
    background: #fed7d7;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.amount-label {
    display: block;
    font-size: 1rem;
    color: #742a2a;
    margin-bottom: 5px;
}

.amount-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #e53e3e;
}

.payment-info {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.payment-info h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pix-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pix-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pix-label {
    font-weight: 600;
    color: #4a5568;
}

.pix-value {
    font-family: 'Courier New', monospace;
    color: #2d3748;
    font-weight: 500;
}

.payment-instructions {
    background: #ebf8ff;
    border-radius: 8px;
    border: 1px solid #bee3f8;
}

.instruction-box {
    padding: 15px;
    text-align: center;
}

.instruction-box i {
    font-size: 1.5rem;
    color: #3182ce;
    margin-bottom: 10px;
}

.instruction-box p {
    margin: 0 0 15px 0;
    color: #2a4365;
    line-height: 1.5;
}

.btn-chat {
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-chat:hover {
    background: #128c7e;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .penalty-card {
        padding: 15px;
        margin: 10px;
    }
    
    .pix-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .amount-value {
        font-size: 1.5rem;
    }
}
}

/* Card de Resultado do Jogo */
.game-result-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
    border: 2px solid #e0e0e0;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-icon.success {
    color: #28a745;
}

.result-icon.failure {
    color: #dc3545;
}

.result-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #666;
    line-height: 1.4;
}

.result-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #495057;
}

.stat-value {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
}

/* Card de Multa */
.penalty-info {
    margin: 25px 0;
}

.penalty-card {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.penalty-card h3 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.pix-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f1c40f;
}

.pix-info p {
    margin: 8px 0;
    color: #333;
    font-size: 1rem;
}

.payment-notice {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #bee5eb;
}

.payment-notice p {
    margin-bottom: 15px;
    color: #0c5460;
    font-weight: 500;
}

.payment-notice i {
    color: #17a2b8;
    margin-right: 8px;
}

/* Botões */
.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn-chat {
    background: #28a745;
    color: white;
}

.btn-chat:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .game-result-card {
        margin: 10px;
        padding: 20px;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
}