body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    font-family: 'Outfit', sans-serif;
}

#game-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    background-color: #000;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 25, 35, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.stat-row { 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.stat-label { font-weight: 800; color: #8ab4f8; font-size: 14px; letter-spacing: 1.5px; }
.stat-value { font-weight: 600; font-size: 16px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.progress-bar-container {
    width: 80px; /* Fixed width to fit horizontally */
    background: rgba(0, 0, 0, 0.6);
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.progress-bar { height: 100%; width: 100%; transition: width 0.2s ease, background 0.3s ease; }
canvas { display: block; }

/* Modals */
.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 12px;
    z-index: 100;
}

.modal.hidden { display: none; }
.modal h2 { margin-top: 0; color: #00ffaa; letter-spacing: 2px; text-shadow: 0 0 10px rgba(0,255,170,0.4); text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px;}
.section-title { font-size: 18px; color: #fff; border-bottom: 1px solid #444; padding-bottom: 8px; margin-top: 0; margin-bottom: 15px;}

.modal-buttons { display: flex; justify-content: space-between; gap: 15px; }

.btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover { background: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: #00b09b; border-color: #00ffaa; color: #000; font-weight: 800;}
.btn-primary:hover { background: #00ffaa; box-shadow: 0 0 15px rgba(0,255,170,0.4); }
.btn-primary:disabled { background: #333; border-color: #333; color: #666; box-shadow: none; cursor: not-allowed; }

.btn-buy { background: #ffaa00; border-color: #ffaa00; color: #000; width: 70px; font-weight: 800;}
.btn-buy:hover { background: #ffcc00; box-shadow: 0 0 15px rgba(255,170,0,0.4); }
.btn-buy:disabled { background: #555; border-color: #555; color: #888; cursor: not-allowed; box-shadow: none; }

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.upgrade-item.compact { padding: 8px 12px; margin-bottom: 8px; }
.upgrade-info h3 { margin: 0 0 4px 0; font-size: 15px; color: #fff;}
.upgrade-item.compact h3 { margin: 0; }
.upgrade-info p { margin: 0; font-size: 12px; color: #8ab4f8; }

.shop-grid { display: flex; gap: 30px; }
.shop-column { flex: 1; }

.shop-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tab-btn { background: none; border: none; color: #888; font-size: 18px; font-weight: 800; font-family: 'Outfit', sans-serif; cursor: pointer; padding: 5px 15px; border-radius: 4px; transition: all 0.2s;}
.tab-btn:hover { color: #ccc; }
.tab-btn.active { color: #00ffaa; background: rgba(0, 255, 170, 0.1); text-shadow: 0 0 10px rgba(0,255,170,0.4); }
.tab-content { display: none; }
.tab-content.active { display: block; }
