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

body {
    background-color: #050505;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

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

canvas {
    display: block;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

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

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px #0ff;
}

.stat-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border: 1px solid #0ff;
    border-radius: 5px;
    color: #0ff;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 4rem;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #0ff;
}

p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #aaa;
}

button {
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    padding: 15px 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

button:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px #0ff;
}

button:active {
    transform: scale(0.92);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 5px #0ff;
    transition: transform 0.05s;
}

/* Shop Styles */
.shop-items {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.shop-item {
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid #444;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 220px;
    transition: transform 0.2s;
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: #0ff;
}

.shop-item h3 {
    color: #f0f;
    margin-bottom: 10px;
}

.shop-item p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.buy-btn {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
}