:root {
    --bg-color: #050510;
    --neon-cyan: #00ff41;
    --neon-magenta: #ff00ff;
    --neon-green: #00f3ff;
    --text-color: #fff;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* HUD Styles */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-top,
.hud-bottom {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.score-box {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.life-box {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta);
}

.ammo-box {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

#reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
}

#reticle::before,
#reticle::after {
    content: '';
    position: absolute;
    background: var(--neon-cyan);
}

#reticle::before {
    top: 50%;
    left: -10px;
    width: 10px;
    height: 2px;
}

#reticle::after {
    top: -10px;
    left: 50%;
    width: 2px;
    height: 10px;
}

/* Overlay Styles */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 20, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s;
}

.glow-text {
    font-size: 4rem;
    margin: 0;
    text-shadow: 0 0 20px var(--neon-cyan);
    letter-spacing: 5px;
}

.btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* Shop Layout */
.overlay {
    width: 80% !important;
    max-width: 900px !important;
}

.shop-status {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding-bottom: 15px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.shop-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.status-label {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-color);
    background: var(--neon-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.shop-card.active-item {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.shop-card.active-item .status-label {
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}

.shop-card:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.shop-card h3 {
    margin: 0 0 10px 0;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

.shop-card p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 15px;
}

.buy-btn {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 0;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: var(--neon-green);
    color: var(--bg-color);
}

.shop-card.disabled {
    opacity: 0.5;
    filter: grayscale(0.8);
    /* pointer-events: none; */
    /* Remove to allow clicking for feedback */
}

.shop-card.disabled .buy-btn {
    border-color: #666;
    color: #666;
    cursor: not-allowed;
}

.shop-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.close-shop-btn,
.home-btn {
    margin: 0 !important;
    width: 220px;
}

.home-btn {
    border-color: #ff0044;
    color: #ff0044;
}

.home-btn:hover {
    background: #ff0044;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 0, 68, 0.4);
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -45%) !important;
    /* Slight slide animation */
}

/* Quit Button in Shop Top Right */
.quit-top-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 68, 0.1);
    border: 2px solid #ff0044;
    color: #ff0044;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 110;
    pointer-events: auto;
    text-shadow: 0 0 10px #ff0044;
    box-shadow: 0 0 10px rgba(255, 0, 68, 0.2);
}

.quit-top-btn:hover {
    background: #ff0044;
    color: #fff;
    box-shadow: 0 0 20px #ff0044;
}