* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 48px;
    color: #d97706;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #fbbf24;
}

.coin-display {
    margin-bottom: 30px;
}

.coin-count {
    font-size: 64px;
    font-weight: bold;
    color: #d97706;
}

.coin-label {
    font-size: 18px;
    color: #92400e;
    font-weight: bold;
}

.coin-button {
    width: 200px;
    height: 200px;
    margin: 30px auto;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4);
    user-select: none;
}

.coin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.6);
}

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

.coin-icon {
    font-size: 80px;
}

.tap-text {
    font-size: 20px;
    font-weight: bold;
    color: #92400e;
    margin-top: 10px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: #fef3c7;
    border-radius: 15px;
}

.stat {
    font-size: 16px;
    font-weight: bold;
    color: #92400e;
}

.stat span {
    color: #d97706;
}

.upgrades {
    margin-top: 30px;
}

.upgrades h2 {
    font-size: 24px;
    color: #d97706;
    margin-bottom: 15px;
}

.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fef3c7;
    border-radius: 10px;
    transition: all 0.2s;
}

.upgrade:hover {
    background: #fde68a;
}

.upgrade-info {
    text-align: left;
}

.upgrade-name {
    font-size: 16px;
    font-weight: bold;
    color: #92400e;
}

.upgrade-effect {
    font-size: 12px;
    color: #78350f;
}

.upgrade-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: #d97706;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-button:hover {
    background: #b45309;
}

.upgrade-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.popup {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #d97706;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}
