body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding-top: 2rem;
    background-color: #f4f4f9;
    color: #333;
    user-select: none; /* Prevents text selection during rapid clicking */
}

#main-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

#game-container {
    text-align: center;
    padding: 2rem 3rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

h1 {
    color: #555;
    margin-bottom: 0.5rem;
}

.score-label {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0;
}

.cpc-label {
    font-size: 1.2rem;
    color: #777;
    margin-top: 0.25rem;
}

#score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
}

#click-area-container {
    margin-top: 1.5rem;
    position: relative; /* For floating text positioning */
}

#click-area {
    cursor: pointer;
    width: 200px;
    transition: transform 0.1s ease-out;
}

#click-area:active {
    transform: scale(0.93);
}

#by-logo-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 100;
}

#by-logo-container img {
    width: 120px;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}

#by-logo-container img:hover {
    opacity: 1;
}

.floating-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #000;
    pointer-events: none;
    animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -150%);
    }
}

#upgrades-container {
    padding: 1rem 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
}

#upgrades-list {
    padding: 0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upgrade {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    text-align: left;
    background-color: #fdfdfd;
    transition: background-color 0.2s, opacity 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.upgrade.disabled {
    opacity: 0.6;
    background-color: #f0f0f0;
}

.upgrade-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.upgrade-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
}

.buy-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 90px;
    text-align: center;
}

.buy-btn:hover:not(:disabled) {
    background-color: #45a049;
}

.buy-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}