:root {
    --primary-color: #4f46e5;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #1f2937;
    --text-light: #f9fafb;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    min-height: 100vh;
}

.game-container {
    max-width: 600px;
    margin: 60px auto 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-icon-small {
    width: 32px;
    height: 32px;
}

.back-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 16px;
}

.info-item {
    text-align: center;
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.info-value.danger {
    color: #ef4444;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.game-screen {
    position: relative;
    min-height: 400px;
}

.flag-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#flagImage {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border: 1px solid #ddd;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-btn {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.option-btn:hover {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.option-btn.correct {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.option-btn.wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Screens */
.start-screen,
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.start-content,
.game-over-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
}

.hidden {
    display: none !important;
}

.setup-group {
    margin: 20px 0;
    text-align: left;
}

.setup-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.setup-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
}

.game-start-btn,
.restart-btn {
    width: 100%;
    padding: 16px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
}

.record-box {
    margin: 20px 0;
    padding: 15px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
}

.bottom-ad {
    margin-top: 20px;
}