* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

html, body, .container {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #1a237e, #000051);
    color: #333;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    border-radius: 5px;
}

.stats-bar p {
    margin: 0;
    font-size: 0.9rem;
}

#unlock-gold-store {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0.5rem auto;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.open {
    display: block;
}

.game-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 1rem;
}

.clickable {
    cursor: pointer;
    transition: transform 0.1s;
    width: 80%;
    max-width: 400px;
    max-height: 60vh;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

#nugget {
    touch-action: none;
}

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

button {
    touch-action: manipulation;
}

.menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

#gold-store-button {
    top: 4rem;
}

.shop-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 1rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    touch-action: pan-y manipulation;
    -webkit-overflow-scrolling: touch;
}

.shop-menu h2, .shop-menu .shop {
    touch-action: manipulation;
}

.shop-menu.open {
    right: 0;
}

.gold-store-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 1rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    touch-action: pan-y manipulation;
    -webkit-overflow-scrolling: touch;
}

.gold-store-menu.open {
    right: 0;
}

.gold-store-menu h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-toggle.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gold-shop button {
    background: white;
    color: #FFD700;
    border: 2px solid #FFD700;
    font-weight: bold;
}

.shop {
    margin-top: 1rem;
}

.shop button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0.5rem;
    display: block;
    width: calc(100% - 1rem);
    max-width: 280px;
    margin: 0.5rem auto;
}

.shop button:hover:not(:disabled) {
    background: #45a049;
}

.shop button:disabled {
    background: #ff4444;
    cursor: not-allowed;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.9);
}

.nugget-particle {
    position: absolute;
    pointer-events: none;
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 0;
    animation: particle 1.2s ease-out forwards;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.5);
        opacity: 0;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
}

.achievement {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ffeb3b;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    animation: slideIn 0.5s ease-out;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.golden-progress-container {
    width: 80%;
    height: 20px;
    background-color: #444;
    border-radius: 10px;
    margin: 10px auto;
    overflow: hidden;
}

.golden-progress {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.golden-nugget {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: auto;
    cursor: pointer;
    filter: brightness(1.5) sepia(1) hue-rotate(10deg) saturate(5);
    animation: flyAcross 10s linear;
    z-index: 1000;
}

@keyframes flyAcross {
    from {
        left: -200px;
    }
    to {
        left: calc(100% + 200px);
    }
}

.floating-number {
    position: absolute;
    color: #ffb6c1;  /* Light pink */
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}

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

.floating-gold {
    position: absolute;
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    z-index: 100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8);
} 