.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-circle:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.click-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.click-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
}

.click-circle:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.click-circle:active {
    transform: scale(0.98);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.click-icon {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.click-circle:hover .click-icon {
    transform: rotate(5deg) scale(1.1);
}

.click-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 0 2rem;
}

.timer-selector {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    padding: 0 0.5rem;
    scrollbar-width: none;
}

.timer-selector::-webkit-scrollbar {
    display: none;
}

.timer-btn {
    margin: 0 auto;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 50px;
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

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

.timer-btn.active {
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    color: #ffffff;
    box-shadow: 
        0 6px 16px rgba(58, 134, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.click-circle.pulse {
    animation: pulse 1s infinite;
}


.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.game-over.active {
    opacity: 1;
    visibility: visible;
}

.game-over-content {
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 420px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: dialogEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.game-over-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(58, 134, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(131, 56, 236, 0.1) 0%, transparent 50%);
    transform: rotate(45deg);
    pointer-events: none;
}

@keyframes dialogEnter {
    0% {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.game-over-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.score-display {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.score-details {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.rating-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.star {
    color: #444;
    font-size: 2.5rem;
    transition: transform 0.2s ease, color 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.star.filled {
    color: #ffd700;
    animation: starFill 0.5s ease forwards;
}

@keyframes starFill {
    0% {
        transform: scale(0.5) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.share-section {
    margin-bottom: 2rem;
}

.share-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.game-over-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.game-over-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 16px rgba(58, 134, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.game-over-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.game-over-btn:hover::before {
    left: 100%;
}

.game-over-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(58, 134, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2a2f41, #3a3f51);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.restart-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 
        0 6px 16px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.restart-btn:hover {
    box-shadow: 
        0 8px 20px rgba(255, 107, 107, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sound-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .stats-container {
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-circle {
        width: 120px;
        height: 120px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .click-circle {
        width: 250px;
        height: 250px;
    }
    
    .click-icon {
        width: 40px;
        height: 40px;
    }
    
    .click-text {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .timer-selector {
        gap: 0.8rem;
        padding: 0 0.4rem;
    }
    
    .timer-btn {
        min-width: 45px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .game-over-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .game-over-title {
        font-size: 2rem;
    }
    
    .score-value {
        font-size: 1.8rem;
    }
    
    .star {
        font-size: 2rem;
    }
    
    .game-over-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .game-over-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    
    .share-buttons {
        gap: 1rem;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 1rem;
    }
    
    .stat-circle {
        width: 90px;
        height: 90px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .click-container {
        min-height: 300px;
    }
    
    .click-circle {
        width: 200px;
        height: 200px;
    }
    
    .click-icon {
        width: 32px;
        height: 32px;
    }
    
    .click-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .timer-selector {
        gap: 0.6rem;
        padding: 0 0.3rem;
    }
    
    .timer-btn {
        min-width: 40px;
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .game-over-content {
        padding: 1.5rem 1.2rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .game-over-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .score-display {
        font-size: 1rem;
    }
    
    .score-value {
        font-size: 1.6rem;
    }
    
    .score-details {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .star {
        font-size: 1.6rem;
    }
    
    .rating-container {
        margin-bottom: 1.5rem;
        gap: 0.3rem;
    }
    
    .share-section {
        margin-bottom: 1.5rem;
    }
    
    .share-title {
        font-size: 0.9rem;
    }
    
    .share-buttons {
        gap: 0.8rem;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .game-over-actions {
        gap: 0.6rem;
    }
    
    .game-over-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .close-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}

.content-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

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