body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
canvas {
    display: block;
}
.user-card {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 96px;
    height: 96px;
    background-image: url('avatar.png');
    background-size: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-info {
    font-size: 16px;
    text-align: center;
}

.gold-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    align-items: center;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 5px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-display {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 5px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gold-icon, .score-icon {
    width: 36px;
    height: 36px;
    background-size: cover;
    margin-right: 10px;
}

.gold-icon {
    background-image: url('coin.png'); /* High-quality coin icon */
}

.score-icon {
    background-image: url('score.png');
}

.gold-amount, .score-amount {
    font-size: 18px;
    font-weight: bold;

    color: #333;
}

.button {
    background-color: #099f5a;
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 150px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
    font-size: 18px;
}

.button:hover {
    background-color: #34775a;
}

.button:active {
    transform: scale(0.95);
}

.button-disabled {
    pointer-events: auto; /* Disables all interactions */
    opacity: 0.6; /* Makes the button look visually disabled */
    cursor: not-allowed; /* Changes the cursor to indicate the button is disabled */
    background-color: #ccc; /* Sets a grey background color */
    color: #666; /* Adjusts the text color for a "disabled" appearance */
    animation: none; /* Removes any animations */
    transition: none; /* Disables hover effects or transitions */
}

/* Optional: Remove hover effects if applied */
.button-disabled:hover {
    background-color: #ccc; /* Ensure it remains grey on hover */
}

.login-button {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
}

.play-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100px;
    width: 170px;
    height: 50px;
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:active {
    transform: translateX(-50%) scale(0.95);
}

.purchase-button, .claim-button {
    width: 120px;
    height: 40px;
}

.claim-button {
    margin-top: 10px;
}

.rewarded-button {
    position: absolute;
    top: 80px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button {
    position: absolute;
    top: 140px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rewarded-button, .share-button {
    width: 120px;
    height: 50px;
    font-size: 13px;
}

.share-button .gold-icon{
    width: 25px;
    height: 25px;
}

.rewarded-button .gold-icon{
    width: 25px;
    height: 25px;
}

.plus-button {
    width: 30px;
    height: 30px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.shop-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.product:last-child {
    border-bottom: none;
}

.purchase-window, .shop-window, .victory-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.shop-window {
    width: 300px;
}

#statistics {
    bottom: 10px;
    left: 10px;
    background-color: #fff;
    position: absolute;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

#statistics p {
    margin: 0
}

#statistics h3 {
    margin: 0
}

*[data-tooltip] {
    position: relative;
}

*[data-tooltip]::after {
    pointer-events: none;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translate(-50%, -100%);
    display: none;
    content: attr(data-tooltip);
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    background-color: #333;
    border-radius: 3px;
    padding: 5px;
    z-index: 10;
}

*[data-tooltip]:hover::after {
    display: block;
}

.notification {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: top 0.5s ease, opacity 0.5s ease;
    z-index: 1000;
}

.notification.show {
    top: 10px;
    opacity: 1;
}