body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    user-select: none;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#ui-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

#score-container {
    font-size: 24px;
    font-weight: bold;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#shop {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

#shop h2 {
    margin: 0 0 10px 0;
}

#shop button {
    display: block;
    margin-top: 10px;
    padding: 10px;
    width: 200px;
    border: 2px solid #ccc;
    background-color: #e9e9e9;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s;
}

#shop button:not(:disabled) {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

#shop button:not(:disabled):hover {
    background-color: #c3e6cb;
}


#shop button:disabled {
    cursor: not-allowed;
    color: #666;
}

#purple-dot-counter {
    font-size: 12px;
    color: #333;
}

#game-area {
    width: 500px;
    height: 500px;
    border: 2px solid #333;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#red-dot {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #e74c3c;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border: 3px solid #c0392b;
    transition: transform 0.1s ease;
}

#red-dot:active {
    transform: translate(-50%, -50%) scale(0.9);
}

.dot {
    position: absolute;
    border-radius: 50%;
}

.purple-dot {
    width: 15px;
    height: 15px;
    background-color: #9b59b6;
    border: 2px solid #8e44ad;
}

.green-dot {
    width: 25px;
    height: 25px;
    background-color: #2ecc71;
    border: 2px solid #27ae60;
}

.yellow-dot {
    width: 10px;
    height: 10px;
    background-color: #f1c40f;
    border: 1px solid #f39c12;
}

.click-effect {
    position: absolute;
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    animation: fade-up 0.7s ease-out forwards;
    pointer-events: none;
}

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

