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

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background: #000;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.top-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 20, 40, 0.7);
    padding: 15px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.5);
    color: white;
    pointer-events: auto;
}

.logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
}

.logo span {
    color: #4db8ff;
    text-shadow: 0 0 15px rgba(77, 184, 255, 0.8);
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon {
    font-size: 24px;
}

.value {
    color: #4db8ff;
}

.controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #aaa;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.shop-panel {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: rgba(10, 20, 40, 0.85);
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(77, 184, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    pointer-events: auto;
    box-shadow: 0 0 40px rgba(0, 50, 100, 0.6);
}

.shop-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #4db8ff;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.shop-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-5px);
}

.item-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.item-info p {
    font-size: 12px;
    color: #99aab5;
}

.buy-btn {
    align-self: flex-start;
    background: rgba(77, 184, 255, 0.2);
    border: 1px solid #4db8ff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: #4db8ff;
    color: #000;
    box-shadow: 0 0 15px #4db8ff;
}

.buy-btn.disabled {
    opacity: 0.5;
    background: #333;
    border-color: #555;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

#notifications {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-text {
    position: absolute;
    color: #2be28a;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 10px rgba(43, 226, 138, 0.8), 0 2px 5px rgba(0, 0, 0, 1);
    animation: floatUp 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}