:root {
    --bg-color: #0f0f0f;
    --card-bg: rgba(255, 255, 255, 0.08);
    --primary: #ffcc00;
    --text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; font-family: 'Inter', sans-serif; }
body { background: var(--bg-color); color: var(--text); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

/* Топ-бар */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 10;
}
.user-info { display: flex; gap: 10px; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); }
.balance-box { display: flex; align-items: center; gap: 5px; font-size: 20px; font-weight: bold; }

/* Главный экран (Тапалка) */
main { flex: 1; position: relative; display: flex; flex-direction: column; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.screen.active { display: flex; }

/* Энергия */
.energy-bar-container { width: 80%; max-width: 350px; margin-top: 20px; }
.energy-text { font-size: 14px; display: flex; justify-content: space-between; margin-bottom: 5px; color: #aaa; }
.energy-bar { height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; }
.energy-fill { height: 100%; background: linear-gradient(90deg, #ffcc00, #ff9900); width: 100%; transition: width 0.2s; }

/* 3D Контейнер */
#canvas-container { width: 300px; height: 300px; cursor: pointer; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8)); }
#canvas-container:active { transform: scale(0.96); }

/* Карточки (Магазин / Бустеры) */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; max-width: 400px; margin-top: 20px; }
.card {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px; padding: 15px; text-align: center; cursor: pointer;
    transition: 0.2s; position: relative; overflow: hidden;
}
.card:hover { background: rgba(255,255,255,0.12); }
.card:active { transform: scale(0.95); }
.card-icon { font-size: 30px; margin-bottom: 10px; }
.card-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.card-desc { font-size: 11px; color: #aaa; margin-bottom: 10px; }
.card-price { font-size: 14px; color: var(--primary); font-weight: bold; }

/* Нижнее меню */
nav {
    display: flex; justify-content: space-around; padding: 10px;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1); z-index: 10;
}
.nav-btn {
    background: none; border: none; color: #666; font-size: 12px; font-weight: bold;
    display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
    transition: 0.2s;
}
.nav-btn i { font-size: 24px; }
.nav-btn.active { color: var(--primary); }