/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Utility classes */
.hidden {
    display: none !important;
}
/* Language Modal Styles */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.language-modal-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 3px solid #475569;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.language-modal-title {
    font-size: 2.5em;
    color: #60a5fa;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.language-modal-subtitle {
    font-size: 1.2em;
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.5;
}

.language-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.language-option {
    flex: 1;
    max-width: 180px;
}

.language-btn {
    width: 100%;
    padding: 25px;
    background: rgba(30, 41, 59, 0.8);
    border: 3px solid #475569;
    border-radius: 15px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.language-btn:hover {
    transform: translateY(-5px);
    border-color: #60a5fa;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.language-btn.active {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.language-flag {
    font-size: 3em;
    margin-bottom: 10px;
}

.language-name {
    font-size: 1.3em;
    font-weight: 600;
}

.language-code {
    font-size: 0.9em;
    color: #94a3b8;
    margin-top: 5px;
}

.language-confirm {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.language-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.skip-btn {
    background: rgba(245, 158, 11, 0.2) !important;
    border: 2px solid #f59e0b !important;
    color: #f59e0b !important;
}

.skip-btn:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    border-color: #f59e0b !important;
}

.skip-btn.selected {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
}

.game-loading {
    text-align: center;
    padding: 40px;
}

.game-loading p {
    margin-top: 20px;
    color: #94a3b8;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .modal-container {
        padding: 20px;
        margin: 10px;
    }
}
@keyframes fast-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}