:root {
    --primary: #00f2ff;  /* Неон голубой */
    --secondary: #ff0055; /* Неон розовый */
    --bg-dark: #09090b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: white;
    font-family: var(--font-main);
    overflow: hidden;
    height: 100dvh;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

/* --- ФОН --- */
.bg-animation { position: fixed; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 10s infinite alternate; }
.orb-1 { width: 300px; height: 300px; background: var(--primary); top: -50px; left: -50px; }
.orb-2 { width: 250px; height: 250px; background: var(--secondary); bottom: -50px; right: -50px; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

/* --- ОБЩИЕ ЭКРАНЫ --- */
.screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 20px; box-sizing: border-box;
}
.hidden { opacity: 0; pointer-events: none; transform: scale(0.95); z-index: -1; }
.active { opacity: 1; transform: scale(1); z-index: 1; }

.glass-panel {
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 16px;
}

/* --- МЕНЮ --- */
#menu-screen { justify-content: space-between; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; }
.profile-mini { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: rgba(255,255,255,0.1); border: none; color: white; padding: 8px 12px; border-radius: 12px; font-size: 18px; cursor: pointer; }
.coin-display { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 5px; }
.coin-icon { font-size: 20px; }

.hero-section { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.avatar-wrapper { position: relative; width: 110px; height: 110px; margin-bottom: 15px; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid white; object-fit: cover; background: #111; position: relative; z-index: 2; box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }
.avatar-img[src=""] { display: block; background: url('https://cdn-icons-png.flaticon.com/512/847/847969.png') no-repeat center/cover; filter: grayscale(100%); }
.avatar-glow { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border-radius: 50%; background: var(--primary); filter: blur(20px); opacity: 0.5; animation: pulse-glow 3s infinite; }
@keyframes pulse-glow { 0% { opacity: 0.4; } 50% { opacity: 0.7; } 100% { opacity: 0.4; } }

.hero-name { font-size: 32px; line-height: 1.1; text-align: center; margin: 0 0 20px 0; font-weight: 800; letter-spacing: 1px; background: linear-gradient(to right, #fff, #ccc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.loader { width: 60px; height: 60px; border: 5px solid #333; border-top: 5px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.stats-container { display: flex; justify-content: space-around; align-items: center; width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.3); }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 11px; color: #888; letter-spacing: 1px; font-weight: 700; margin-bottom: 2px; }
.stat-value { font-size: 22px; font-weight: 800; color: white; }
.win-color { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.loss-color { color: var(--secondary); }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }

/* --- ГЛАВНЫЕ КНОПКИ --- */
.menu-controls { width: 100%; }
.play-btn { position: relative; width: 100%; padding: 20px; border: none; border-radius: 20px; background: linear-gradient(45deg, var(--secondary), #ff5e00); color: white; font-family: var(--font-main); font-size: 28px; font-weight: 800; letter-spacing: 3px; box-shadow: 0 10px 30px rgba(255, 0, 85, 0.4); margin-bottom: 15px; overflow: hidden; transition: transform 0.1s; }
.play-btn:active { transform: scale(0.98); }

.sub-menu { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
.menu-card { background: var(--glass); border: 1px solid var(--glass-border); color: white; padding: 10px 5px; border-radius: 16px; font-family: var(--font-main); font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; }
.menu-card:active { transform: scale(0.95); background: rgba(255,255,255,0.1); }
.btn-icon { font-size: 20px; margin-bottom: 5px; }
.menu-card span:last-child { font-size: 11px; }

.shop-btn { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 242, 255, 0.1); }
.inventory-btn { border-color: #00ff88; box-shadow: 0 0 10px rgba(0, 255, 136, 0.1); }

/* --- ЛОББИ И ЗАДАЧИ --- */
.header { padding: 15px; display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.header h2 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.lobby-list { overflow-y: auto; padding-bottom: 50px; }
.server-card { background: #1a1a20; border: 1px solid #333; padding: 20px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.create-new { border: 1px dashed var(--primary); justify-content: center; cursor: pointer; }
.join-btn { background: var(--primary); color: black; border: none; padding: 10px 24px; border-radius: 20px; font-weight: 800; }
.tag { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 255, 136, 0.2); color: #00ff88; }
.locked { opacity: 0.5; }

.tasks-list-container { padding: 15px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; padding-bottom: 80px; height: 100%; box-sizing: border-box; }
.task-card { background: rgba(20, 20, 25, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: 0.3s; position: relative; overflow: hidden; min-height: 80px; }
.task-card.completed { border-color: #00ff88; background: rgba(0, 255, 136, 0.05); box-shadow: 0 0 15px rgba(0, 255, 136, 0.1); }
.task-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.task-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.task-title { font-weight: 800; font-size: 16px; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-reward { background: rgba(0, 242, 255, 0.15); color: #00f2ff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; display: inline-block; }
.task-desc { font-size: 12px; color: #8899a6; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-progress-container { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; margin-top: auto; }
.task-progress-fill { height: 100%; background: #00d2ff; border-radius: 2px; transition: width 0.5s ease; }
.task-action { flex-shrink: 0; }
.task-btn { width: 80px; height: 36px; border: none; border-radius: 10px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.btn-go { background: #3b82f6; color: white; }
.btn-claim { background: linear-gradient(135deg, #00ff88, #00d2ff); color: #000; box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3); animation: pulse-claim 2s infinite; }
.btn-done { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: #555; }

/* --- EXCHANGE --- */
.exchange-container { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; overflow-y: auto; padding-bottom: 80px; align-content: start; }
.exchange-card { background: rgba(20, 20, 25, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 15px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; overflow: hidden; height: 180px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.card-image-wrapper { position: relative; width: 100%; height: 100px; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }
.card-image-wrapper img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.card-icon { font-size: 48px; z-index: 2; filter: drop-shadow(0 0 15px rgba(255,255,255,0.2)); display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.card-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; filter: blur(30px); opacity: 0.5; z-index: 1; }
.card-glow.gold { background: #ffd700; }
.card-glow.purple { background: #bd00ff; }
.card-glow.blue { background: #00f2ff; }
.card-title { font-weight: 800; font-size: 13px; color: white; margin-bottom: 10px; z-index: 2; text-align: center; letter-spacing: 0.5px; text-transform: uppercase; }
.exchange-btn { width: 100%; padding: 8px; border: none; border-radius: 12px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 5px; transition: 0.2s; z-index: 2; }
.exchange-btn.disabled { background: rgba(255, 255, 255, 0.1); color: #666; cursor: not-allowed; border: 1px solid rgba(255, 255, 255, 0.05); }

/* --- МОДАЛКА (CREATE) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: #0b0b10; border: 1px solid #333; border-radius: 16px; width: 90%; max-width: 360px; box-shadow: 0 0 30px rgba(0, 210, 255, 0.15); transform: translateY(20px); transition: transform 0.3s ease; overflow: hidden; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header { background: #111; padding: 15px 20px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 18px; color: #fff; letter-spacing: 1px; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.input-group label { display: block; font-size: 12px; color: #888; margin-bottom: 5px; font-weight: bold; text-transform: uppercase; }
.input-group input { width: 100%; background: #1a1a20; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 8px; font-size: 14px; outline: none; box-sizing: border-box;}
.input-group input:focus { border-color: #00d2ff; }
.mode-selector { display: flex; gap: 10px; }
.mode-btn { flex: 1; background: #1a1a20; border: 1px solid #333; border-radius: 8px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all 0.2s; position: relative; overflow: hidden; }
.mode-btn.active { background: rgba(0, 210, 255, 0.1); border-color: #00d2ff; box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
.bet-controls { display: flex; align-items: center; gap: 10px; }
.bet-step-btn { width: 30px; height: 30px; background: #222; border: none; color: #fff; border-radius: 50%; cursor: pointer; font-weight: bold; }
input[type=range] { flex: 1; accent-color: #00d2ff; }
.modal-footer { padding: 20px; border-top: 1px solid #222; }
.full-width { width: 100%; border: none; padding: 12px; background: #00d2ff; color: #000; font-weight: bold; border-radius: 8px; cursor: pointer; }

/* --- GAME HUD & SCREEN FIX --- */
/* [FIX] Изменено с flex на block, чтобы канвас не уезжал */
#gameCanvas { background-color: #0b0b10; }
canvas { display: block; width: 100%; height: 100%; }

#game-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* ВАЖНО: Убираем Flex, ставим Block и скрываем скроллы */
    display: block; 
    padding: 0;
    overflow: hidden;
    background: #0b0b10;
}

.game-ui { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; box-sizing: border-box; z-index: 10; }
.hud-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.hp-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; color: #888; }
.hp-track { width: 100px; height: 10px; background: rgba(0,0,0,0.5); border-radius: 5px; overflow: hidden; border: 1px solid #444; transform: skewX(-20deg); }
#player-hp { width: 100%; height: 100%; background: var(--primary); }
#enemy-hp { width: 100%; height: 100%; background: var(--secondary); }
/* Найди этот блок и убедись, что он такой */
.score-board {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 900;
    color: white;
    border: 1px solid #444;
    
    /* Выравнивание по центру */
    display: flex;
    align-items: center; /* Центрирует по вертикали */
    justify-content: center;
    line-height: 1; 
    gap: 8px; /* Расстояние между элементами */
}

.score-board span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.score-board .divider {
    color: #888;
    font-family: sans-serif; /* Для двоеточия лучше обычный шрифт, он ровнее */
    font-weight: normal;
    font-size: 0.9em;
    /* Поднимаем двоеточие визуально выше */
    transform: translateY(-2px); 
    margin: 0 2px;}
#score-player { color: var(--primary); }
#score-enemy { color: var(--secondary); }
.hud-bottom { display: flex; justify-content: center; width: 100%; padding-bottom: 20px; }
.ult-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: auto; }
.energy-track { width: 100px; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
#player-energy { width: 0%; height: 100%; background: #f1c40f; transition: 0.1s; }
#ult-btn { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #444; background: rgba(0,0,0,0.8); color: #666; font-family: var(--font-main); font-weight: 900; font-size: 20px; transition: 0.3s; }
#ult-btn.ready { border-color: white; background: linear-gradient(135deg, #ff9f43, #ff6b6b); color: white; box-shadow: 0 0 30px rgba(255, 159, 67, 0.6); transform: scale(1.1); animation: pulse-btn 1s infinite; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 11, 16, 0.85); backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 100; pointer-events: auto; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.overlay.active { opacity: 1; visibility: visible; }
.result-card { background: rgba(26, 26, 46, 0.9); padding: 40px 60px; border-radius: 24px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 60px rgba(0, 0, 0, 0.5); transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; }
.overlay.active .result-card { transform: scale(1); }
.result-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent 30%); animation: rotate-bg 4s linear infinite; z-index: -1; }
.result-title { font-size: 64px; font-weight: 900; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 4px; background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.res-win { background-image: linear-gradient(to bottom, #fff, #00f2ff); filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.8)); }
.res-defeat { background-image: linear-gradient(to bottom, #fff, #ff0055); filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.8)); }
.reward-container { margin: 20px 0; font-size: 28px; font-weight: 700; color: #ffd700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.restart-btn { background: white; color: black; border: none; padding: 16px 40px; font-family: var(--font-main); font-weight: 800; font-size: 18px; border-radius: 12px; cursor: pointer; margin-top: 20px; box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); transition: transform 0.2s, box-shadow 0.2s; }
.restart-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }

/* --- ROUND OVERLAY --- */
#round-message { 
    z-index: 9999 !important; 
    background: rgba(0,0,0,0.6) !important;
}
.round-banner { width: 100%; padding: 30px 0; background: rgba(0, 0, 0, 0.8); border-top: 2px solid rgba(255,255,255,0.1); border-bottom: 2px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateX(-100%); opacity: 0; }
.overlay.active .round-banner { 
    opacity: 1;
    transform: translateX(0);
    animation: slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
}
.round-title { font-size: 52px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; margin: 0; font-style: italic; }
.round-sub { font-size: 18px; color: #ccc; margin-top: 5px; letter-spacing: 2px; }
.r-win .round-title { color: #00f2ff; text-shadow: 0 0 20px rgba(0,242,255,0.8); }
.r-win { border-color: #00f2ff; background: linear-gradient(90deg, transparent, rgba(0,242,255,0.2), transparent); }
.r-loss .round-title { color: #ff0055; text-shadow: 0 0 20px rgba(255,0,85,0.8); }
.r-loss { border-color: #ff0055; background: linear-gradient(90deg, transparent, rgba(255,0,85,0.2), transparent); }
.next-round-timer { margin-top: 20px; font-size: 24px; color: white; font-weight: 700; opacity: 0; }
.overlay.active .next-round-timer { 
    animation: fade-in 0.5s 0.3s forwards; /* Задержка 0.3сек */
}
@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   === ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ИНВЕНТАРЯ И МАГАЗИНА (VUE COMPONENT) ===
   ========================================================================== */

.inventory-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 5000;
    display: flex; justify-content: center; align-items: center;
}

.inventory-card {
    width: 95%; max-width: 800px; height: 90vh;
    display: flex; flex-direction: column;
    padding: 15px; box-sizing: border-box;
}

.inv-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.inv-header h2 { margin: 0; font-size: 20px; color: #00d2ff; letter-spacing: 1px; }
.user-balance { font-size: 16px; font-weight: 700; color: #ffd700; }
.close-btn { background: none; border: none; font-size: 24px; color: #666; cursor: pointer; padding: 0 10px; }

/* === [SHOP] РЕЖИМ МАГАЗИНА === */
.inventory-content.shop-layout {
    display: flex; gap: 10px; height: 100%; overflow: hidden;
}

.weapon-sidebar {
    width: 70px; /* Узкий сайдбар для мобилок */
    min-width: 70px;
    overflow-y: auto; 
    padding-right: 5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.weapon-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px 4px; margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px; cursor: pointer; transition: 0.2s;
    border: 1px solid transparent;
}
.weapon-tab:hover { background: rgba(255,255,255,0.08); }
.weapon-tab.active { background: rgba(0, 210, 255, 0.15); border-color: #00d2ff; }
.weapon-tab.locked { opacity: 0.5; filter: grayscale(1); }

.tab-icon img { width: 40px; height: 40px; object-fit: contain; }
.tab-info { display: none; } /* Скрываем текст списка на мобилках */

/* Правая панель (Детали) */
.details-panel {
    flex: 1; display: flex; flex-direction: column; overflow-y: auto;
    padding-left: 5px;
}

.weapon-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.weapon-preview-header h1 { font-size: 18px; margin: 0; color: white; }
.weapon-type-badge { background: #333; font-size: 9px; padding: 2px 5px; border-radius: 4px; color: #aaa; text-transform: uppercase; }

.weapon-stats { margin-bottom: 15px; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; font-size: 12px; color: #ccc; }
.stat-bar { width: 60%; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
.stat-fill { height: 100%; background: var(--primary); transition: width 0.3s; }

.divider { height: 1px; background: rgba(255,255,255,0.1); margin: 10px 0; }

/* Кнопка покупки оружия */
.buy-section { margin-top: auto; padding: 10px 0; text-align: center; }
.buy-btn.large { 
    width: 100%; background: linear-gradient(to right, #00d2ff, #0088ff); 
    color: white; border: none; padding: 12px; font-weight: 800; font-size: 14px; 
    border-radius: 10px; cursor: pointer; box-shadow: 0 0 15px rgba(0,210,255,0.3); 
}

/* Сетка скинов (GRID для ровности) */
.section-title { font-size: 12px; color: #888; margin-bottom: 8px; font-weight: bold; }
.skins-grid.horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Ровные колонки */
    gap: 8px;
    padding-bottom: 10px;
}

.skin-card.small {
    background: rgba(30,30,35,0.8);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    aspect-ratio: 0.75; /* Фиксированное соотношение сторон */
    cursor: pointer;
    transition: transform 0.1s;
}
.skin-card.small:active { transform: scale(0.95); }

.skin-image { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.skin-image img { max-width: 100%; max-height: 60px; object-fit: contain; }

.price-tag { font-size: 10px; color: #ffd700; font-weight: bold; margin-top: 5px; background: rgba(0,0,0,0.5); padding: 2px 4px; border-radius: 4px; }
.owned-tag { font-size: 12px; margin-top: 5px; color: #00ff88; }

/* Редкости для карточек */
.skin-card.legendary { border-color: #ffd700; box-shadow: inset 0 0 10px rgba(255,215,0,0.1); }
.skin-card.epic { border-color: #a335ee; }
.skin-card.rare { border-color: #0070dd; }
.skin-card.locked { opacity: 0.6; }

/* === [INVENTORY] РЕЖИМ ИНВЕНТАРЯ (GRID) === */
.inventory-content.grid-layout { overflow-y: auto; padding: 10px; height: 100%; }

.rpg-grid {
    display: grid;
    /* БЫЛО: minmax(65px, 1fr) -> СТАЛО: minmax(95px, 1fr) */
    /* Это увеличит минимальный размер ячейки почти в 1.5 раза */
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 12px; /* Увеличили отступ между ячейками */
    padding-bottom: 50px;
}

.rpg-slot {
    aspect-ratio: 1; 
    background: rgba(20,20,25,0.8);
    border: 1px solid #444;
    border-radius: 12px; /* Чуть больше скругление */
    position: relative;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Добавили тень для объема */
}

.rpg-slot.equipped { 
    border: 2px solid #00ff88; 
    background: rgba(0,255,136,0.15); 
    box-shadow: 0 0 15px rgba(0,255,136,0.3); 
}

.rpg-slot.empty { 
    background: rgba(255,255,255,0.03); 
    border: 2px dashed #333; 
    pointer-events: none; 
}

.item-icon img { 
    width: 80%; /* БЫЛО 70% -> Картинка станет крупнее внутри квадрата */
    height: 80%; 
    object-fit: contain; 
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5));
}

.item-name { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    font-size: 10px; /* БЫЛО 8px -> Читаемость лучше */
    font-weight: 700;
    text-align: center; 
    background: rgba(0,0,0,0.85); 
    color: #fff; 
    padding: 4px 0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.equip-badge { 
    position: absolute; 
    top: 4px; 
    right: 4px; 
    background: #00ff88; 
    color: #000; 
    font-size: 10px; 
    font-weight: 900; 
    padding: 2px 5px; 
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Цвета редкости (рамки) */
.rpg-slot.legendary { border-color: #ffd700; box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.1); }
.rpg-slot.epic { border-color: #a335ee; box-shadow: inset 0 0 15px rgba(163, 53, 238, 0.1); }
.rpg-slot.rare { border-color: #0070dd; box-shadow: inset 0 0 15px rgba(0, 112, 221, 0.1); }

/* Медиа-запрос для экранов побольше (ПК/Планшет) */
@media (min-width: 600px) {
    .weapon-sidebar { width: 180px; }
    .weapon-tab { flex-direction: row; justify-content: flex-start; padding: 10px; }
    .tab-info { display: flex; flex-direction: column; margin-left: 10px; }
    .tab-name { font-size: 14px; font-weight: bold; color: white; }
    .tab-price { font-size: 12px; color: #ffd700; }
    .tab-owned { font-size: 11px; color: #00ff88; }
    .skin-card.small { aspect-ratio: 0.8; }
}