/* ===== CULTURE GAMES STYLES ===== */

/* ===== CULTURE MODE BODY BACKGROUND ===== */
body.culture-mode {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== CULTURE GAME CONTAINER ===== */
.culture-game-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.culture-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== CULTURE HEADER ===== */
.culture-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.culture-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.culture-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===== TASTELE SPECIFIC STYLES ===== */
.tastele-game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

/* ===== GEOMOJI SPECIFIC STYLES ===== */
.geomoji-game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

/* ===== ANIMATED SQUARES STYLES ===== */
.squares-summary {
    display: none;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

#gameSquaresSummary {
    display: none;
}

#squaresSummary {
    display: flex !important;
}

.summary-square {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    cursor: pointer;
}

.summary-square.revealed {
    opacity: 1;
    transform: scale(1);
}

.summary-square:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Square color variants */
.correct-square {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}

.close-square {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: white;
}

.far-square {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #f97316;
    color: white;
}

.very-far-square {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
}

.empty-square {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(102, 126, 234, 0.3);
    color: #6b7280;
}

/* Animation keyframes */
@keyframes squareReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes correctBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Dark mode support for squares */
@media (prefers-color-scheme: dark) {
    .summary-square {
        background: rgba(31, 41, 55, 0.8);
        border-color: rgba(102, 126, 234, 0.4);
    }
    
    .empty-square {
        background: rgba(31, 41, 55, 0.5);
        border-color: rgba(102, 126, 234, 0.3);
        color: #9ca3af;
    }
    
    .squares-summary {
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
    }
}

/* Responsive squares */
@media (max-width: 768px) {
    .summary-square {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .squares-summary {
        gap: 6px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .summary-square {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .squares-summary {
        gap: 4px;
        padding: 10px;
    }
}
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.emoji-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.emoji-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji-set {
    display: flex;
    gap: 20px;
    align-items: center;
}

.emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.emoji:hover {
    transform: scale(1.1);
}

/* End game emoji styles */
.result-emoji-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.result-emoji-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-emoji-set {
    display: flex;
    gap: 20px;
    align-items: center;
}

.result-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.result-emoji-info {
    text-align: center;
}

.result-emoji-explanation {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Responsive emoji styles */
@media (max-width: 768px) {
    .emoji {
        font-size: 3rem;
    }
    
    .emoji-set {
        gap: 15px;
    }
    
    .result-emoji {
        font-size: 2.5rem;
    }
    
    .result-emoji-set {
        gap: 15px;
    }
    
    .result-emoji-explanation {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .emoji {
        font-size: 2.5rem;
    }
    
    .emoji-set {
        gap: 10px;
    }
    
    .result-emoji {
        font-size: 2rem;
    }
    
    .result-emoji-set {
        gap: 10px;
    }
}
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.game-instruction {
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.game-instruction p {
    margin: 0;
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 500;
}

.game-completed-notice {
    margin: 10px 0 0 0;
    color: #059669;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ===== FOOD DISPLAY ===== */
.food-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.food-image-container {
    display: flex;
    justify-content: center;
}

.food-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    border: 3px solid rgba(102, 126, 234, 0.3);
}

.food-info {
    text-align: center;
    width: 100%;
}

.dish-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DISTANCE INDICATORS ===== */
/* Country Distance Classification:
   🟩 Green: Correct country ONLY
   🟨 Yellow: < 2,000km (Neighboring countries, same region)
   🟧 Orange: 2,000-8,000km (Same continent, nearby regions)
   🟥 Red: > 8,000km (Far continents) */

.guess-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.distance-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.distance-close {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.distance-far {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.distance-very-far {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.correct-indicator {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.5);
    animation: correctBounce 0.6s ease;
}

@keyframes correctBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ===== GUESS INPUT SECTION ===== */
.guess-input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.guess-input-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== COUNTRY SUGGESTIONS DROPDOWN ===== */
.country-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.country-suggestion-item:last-child {
    border-bottom: none;
}

.country-suggestion-item:hover,
.country-suggestion-item.highlighted {
    background: #f3f4f6;
}

.country-suggestion-item.highlighted {
    background: rgba(102, 126, 234, 0.1);
}

.suggestion-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.suggestion-name {
    font-weight: 500;
    color: #374151;
    flex: 1;
}

/* Dark mode for suggestions */
@media (prefers-color-scheme: dark) {
    .country-suggestions {
        background: rgba(31, 41, 55, 0.95);
        border-color: #4b5563;
    }
    
    .country-suggestion-item {
        border-bottom-color: #4b5563;
    }
    
    .country-suggestion-item:hover {
        background: rgba(55, 65, 81, 0.8);
    }
    
    .country-suggestion-item.highlighted {
        background: rgba(102, 126, 234, 0.2);
    }
    
    .suggestion-name {
        color: #e5e7eb;
    }
}

.country-guess-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    outline: none;
}

.country-guess-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* When suggestions are shown, modify input border radius */
.guess-input-container.has-suggestions .country-guess-input {
    border-radius: 12px 12px 0 0;
}

.country-guess-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.submit-guess-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.submit-guess-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-guess-btn:active {
    transform: translateY(0);
}

/* ===== GUESS HISTORY ===== */
.guesses-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.guess-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.guess-item.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.guess-item.incorrect {
    background: rgba(239, 68, 68, 0.05);
    border-color: #ef4444;
}

.guess-number {
    font-weight: 700;
    color: #667eea;
    min-width: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.guess-country {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.guess-flag {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.guess-name {
    font-weight: 600;
    color: #374151;
}

.guess-result {
    font-weight: 500;
    font-size: 0.9rem;
}

.guess-item.correct .guess-result {
    color: #10b981;
}

.guess-item.incorrect .guess-result {
    color: #ef4444;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .culture-game-container {
        background: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .culture-title {
        color: #e5e7eb;
    }
    
    .culture-subtitle {
        color: #9ca3af;
    }
    
    .game-instruction {
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
    }
    
    .game-instruction p {
        color: #9ca3af;
    }
    
    .game-completed-notice {
        color: #34d399;
        background: rgba(52, 211, 153, 0.2);
        border-color: rgba(52, 211, 153, 0.4);
    }
    
    .dish-name {
        color: #e5e7eb;
    }
    
    /* Dark Mode Distance Indicators */
    .distance-close {
        background: rgba(234, 179, 8, 0.3);
        border-color: rgba(234, 179, 8, 0.5);
    }
    
    .distance-far {
        background: rgba(249, 115, 22, 0.3);
        border-color: rgba(249, 115, 22, 0.5);
    }
    
    .distance-very-far {
        background: rgba(239, 68, 68, 0.3);
        border-color: rgba(239, 68, 68, 0.5);
    }
    
    /* Dark Mode End Game Screen */
    .end-game-header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .end-game-title {
        color: #e5e7eb;
    }
    
    .end-game-subtitle {
        color: #9ca3af;
    }
    
    .result-food-display {
        background: rgba(31, 41, 55, 0.6);
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .result-dish-name {
        color: #e5e7eb;
    }
    
    .result-country-reveal {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }
    
    .result-country-name {
        color: #34d399;
    }
    
    .end-game-stats {
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
    }
    
    .stat-number {
        color: #a5b4fc;
    }
    
    .stat-label {
        color: #9ca3af;
    }
    
    .history-title {
        color: #e5e7eb;
    }
    
    .guess-summary-item {
        background: rgba(31, 41, 55, 0.4);
        border-color: rgba(102, 126, 234, 0.2);
    }
    
    .guess-summary-item:hover {
        background: rgba(31, 41, 55, 0.6);
    }
    
    .guess-summary-name {
        color: #e5e7eb;
    }
    
    .guess-summary-distance {
        color: #9ca3af;
    }
    
    .share-title {
        color: #e5e7eb;
    }
    
    .share-text-container {
        background: rgba(31, 41, 55, 0.6);
        border-color: #4b5563;
    }
    
    .share-text {
        color: #d1d5db;
    }
    
    .country-guess-input {
        background: rgba(31, 41, 55, 0.9);
        border-color: #4b5563;
        color: #e5e7eb;
    }
    
    .country-guess-input:focus {
        background: rgba(31, 41, 55, 1);
        border-color: #667eea;
    }
    
    .guess-item {
        background: rgba(31, 41, 55, 0.8);
        border-color: #4b5563;
    }
    
    .guess-name {
        color: #e5e7eb;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .culture-game-container {
        margin: 10px;
        padding: 20px;
    }
    
    .culture-title {
        font-size: 2rem;
    }
    
    .game-instruction {
        padding: 12px 16px;
    }
    
    .game-instruction p {
        font-size: 1rem;
    }
    
    .food-display {
        gap: 15px;
    }
    
    .food-image {
        max-height: 250px;
    }
    
    .dish-name {
        font-size: 2rem;
    }
    
    .guess-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .guess-country {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .culture-game-container {
        padding: 15px;
    }
    
    .culture-title {
        font-size: 1.8rem;
    }
    
    .game-instruction {
        padding: 10px 12px;
    }
    
    .game-instruction p {
        font-size: 0.95rem;
    }
    
    .food-display {
        gap: 12px;
    }
    
    .food-image {
        max-height: 200px;
    }
    
    .dish-name {
        font-size: 1.8rem;
    }
    
    .country-guess-input {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
            .submit-guess-btn {
            padding: 12px 24px;
            font-size: 1rem;
        }
    }

    /* ===== ADDITIONAL ENHANCEMENTS ===== */
    
    /* Error state for input */
    .country-guess-input.error {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    /* Success animation for correct guesses */
    .guess-item.correct {
        animation: correctPulse 0.6s ease-in-out;
    }

    @keyframes correctPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.02); }
        100% { transform: scale(1); }
    }

    /* Loading states */
    .loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        border-radius: 20px;
    }

    @media (prefers-color-scheme: dark) {
        .loading-overlay {
            background: rgba(31, 41, 55, 0.9);
        }
    }

    /* Enhanced button states */
    .submit-guess-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

    .submit-guess-btn:disabled:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Improved accessibility */
    .country-guess-input:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .submit-guess-btn:focus-visible {
        outline: 2px solid white;
        outline-offset: 2px;
    }

    /* Smooth transitions for all interactive elements */
    .guess-item,
    .country-guess-input,
    .submit-guess-btn,
    .food-image {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Enhanced mobile experience */
    @media (max-width: 480px) {
        .food-image {
            max-height: 180px;
        }
        
        .guess-item {
            padding: 12px;
        }
        
        .guess-number {
            font-size: 1rem;
            min-width: 25px;
        }
        
        .guess-flag {
            width: 25px;
            height: 16px;
        }
        
        .guess-name {
            font-size: 0.9rem;
        }
        
        .guess-result {
            font-size: 0.8rem;
        }
    }

    /* Print styles */
    @media print {
        .culture-game-container {
            box-shadow: none;
            border: 1px solid #000;
        }
        
        .submit-guess-btn,
        .back-to-culture-btn {
            display: none;
        }
    }

/* ===== END GAME SCREEN STYLES ===== */
.end-game-screen {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.end-game-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.end-game-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.end-game-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.end-game-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Result Food Display */
.end-game-result {
    margin-bottom: 30px;
}

.result-food-display {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.result-food-image-container {
    margin-bottom: 20px;
}

.result-food-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.result-food-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-dish-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.result-country-reveal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.result-country-flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-country-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
}

/* End Game Stats */
.end-game-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #667eea, transparent);
}

/* Guess History Summary */
.end-game-history {
    margin-bottom: 30px;
}

.history-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    text-align: center;
}

.guesses-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guess-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.guess-summary-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guess-summary-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.guess-summary-country {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.guess-summary-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.guess-summary-name {
    font-weight: 600;
    color: #374151;
}

.guess-summary-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guess-summary-distance {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Share Section */
.share-section {
    text-align: center;
    margin-bottom: 30px;
}

.share-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.share-text-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.share-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
    margin: 0;
    white-space: pre-line;
}

.copy-result-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-result-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* End Game Actions */
.end-game-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.play-again-btn,
.back-to-culture-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.play-again-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.play-again-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.back-to-culture-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.back-to-culture-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
} 