/* --- ГЛОБАЛЬНЫЕ СТИЛИ --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0b0c0f;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    background-image: url('data:image/svg+xml;utf8,<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><text x="10" y="50" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 10 50)">$</text><text x="150" y="120" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 150 120)">€</text><text x="280" y="80" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 280 80)">£</text><text x="50" y="200" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 50 200)">¥</text><text x="200" y="250" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 200 250)">₽</text><text x="320" y="220" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 320 220)">$</text><text x="100" y="350" font-family="Arial" font-size="30" fill="%23222" opacity="0.3" transform="rotate(-30 100 350)">€</text></svg>');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}


.container {
    background-color: #1a1a1e;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    z-index: 2;
}

/* --- ВЕРХНЯЯ ЧАСТЬ (HEADER) --- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.exit-button {
    background: none;
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    font-size: 1em;
}

.exit-button:hover {
    background-color: #ffd700;
    color: #1a1a1e;
    transform: translateY(-1px);
}

.welcome-message {
    text-align: center;
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 30px;
}

/* --- БАЛАНС --- */
.balance-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px; /* Уменьшаем отступ, чтобы добавить админ-панель */
}

.balance-item {
    background-color: #2a2a30;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    border: 1px solid #444;
}

.balance-item i {
    font-size: 1.5em;
    color: #ffd700;
}

.balance-value {
    color: #aaffaa;
}
.balance-item.cigarettes .balance-value {
    color: #bbb;
}

/* --- НОВЫЕ СТИЛИ: АДМИН ПАНЕЛЬ --- */
.admin-panel {
    background-color: #202025; /* Более темный фон для выделения */
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #ffd700; /* Пунктирная золотая рамка */
    margin-bottom: 30px;
    text-align: center;
}
.admin-panel h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}
.admin-panel .add-chips-button {
    background-color: #1e88e5; /* Синяя кнопка */
    border-color: #0d47a1;
    width: auto;
    flex-grow: 1;
}
.admin-panel .add-chips-button:hover {
    background-color: #42a5f5;
}
.admin-panel .status-message {
    margin-top: 10px;
    font-weight: bold;
    min-height: 1.2em;
}

/* --- КНОПКА БАНКА --- */
.bank-button-container {
    text-align: center;
    margin-bottom: 30px;
}
.bank-button {
    background-color: #3f3f4a;
    color: #ffd700;
    padding: 12px 25px;
    border: 1px solid #ffd700;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.bank-button:hover {
    background-color: #5a5a65;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}
.bank-button i {
    color: #ffd700;
}


/* --- МЕНЮ ИГР (4 колонки) --- */
.game-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.menu-item {
    background-color: #2a2a30;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-color: #ffd700;
}

.menu-item.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.menu-item.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #444;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 2em;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.icon-circle.color-purple { background-color: #673ab7; }
.icon-circle.color-orange { background-color: #ff9800; }
.icon-circle.color-blue-dark { background-color: #2196f3; }
.icon-circle.color-blue-light { background-color: #03a9f4; }
.icon-circle.color-red { background-color: #f44336; }
.icon-circle.color-green { background-color: #4caf50; }
.icon-circle.color-orange-light { background-color: #ffc107; }
.icon-circle.color-purple-dark { background-color: #9c27b0; }


.game-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.game-description {
    font-size: 0.9em;
    color: #aaa;
}


/* --- ОБЩИЕ СТИЛИ ДЛЯ ИГРОВЫХ СТРАНИЦ --- */
button {
    background-color: #cc0000;
    color: white;
    padding: 12px 20px;
    border: 2px solid #ffd700;
    border-radius: 3px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

button:hover:not(:disabled) {
    background-color: #ff3333;
    transform: translateY(-2px);
}

button:disabled {
    background-color: #555;
    border-color: #888;
    cursor: not-allowed;
}

.game-module {
    background-color: #2a2a30;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #444;
}

.game-module h2 {
    color: #ffd700;
    text-align: center;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* УПРАВЛЕНИЕ СТАВКАМИ (Переиспользуется в Админке) */
.bet-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.bet-control label {
    font-size: 1.1em;
    font-weight: bold;
    white-space: nowrap;
}
.bet-control input {
    width: 100px;
    font-size: 1.2em;
    text-align: center;
    background: #555;
    color: #fff;
    border: 1px solid #ffd700;
    border-radius: 3px;
    padding: 5px;
}
.bet-control button {
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    padding: 0;
    line-height: 40px;
    flex-shrink: 0;
}
/* Скрытие стрелок в input[type=number] */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Стили для Блэкджека */
.hand-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 80px;
    padding: 10px;
    border: 1px dashed #777;
    border-radius: 5px;
    margin: 15px 0;
}
.card {
    background: #fff;
    color: #000;
    width: 60px;
    height: 90px;
    border-radius: 5px;
    padding: 5px;
    font-size: 1.3em;
    font-weight: bold;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.card.red { color: #d32f2f; }
.card.black { color: #000000; }
.card .suit { font-size: 1.8em; line-height: 1; }
.card .value { font-size: 1.4em; line-height: 1; }

/* Стили для Костей */
.dice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed #777;
    border-radius: 8px;
    min-height: 120px;
}
.dice-wrapper {
    perspective: 800px;
}
.dice {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    transform-style: preserve-3d;
}
.dot {
    width: 18px;
    height: 18px;
    background-color: #000;
    border-radius: 50%;
    align-self: center;
    justify-self: center;
}


/* Стили для Слотов */
.slots-container {
    display: flex;
    justify-content: space-around;
    padding: 25px;
    background: #111;
    border: 2px solid #ffd700;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}
.reel {
    font-size: 3.5em;
    padding: 10px;
    background: #eee;
    border-radius: 5px;
    width: 60px;
    text-align: center;
    transition: filter 0.2s;
    color: #333;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}
.reel.spinning {
    filter: blur(4px);
}

/* Стили для Рулетки */
.roulette-wheel { text-align: center; padding: 20px; }
.wheel-display {
    display: inline-block;
    font-size: 3.5em;
    font-weight: bold;
    color: white;
    background: #000;
    border: 5px solid #ffcc00;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    line-height: 90px;
    margin-bottom: 20px;
    transition: transform 1s ease-out;
}
.wheel-display.spinning { animation: spin 1s ease-in-out forwards; }


/* --- МЕДИА-ЗАПРОСЫ для адаптивности --- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    .top-header {
        flex-direction: column;
        gap: 15px;
    }
    .logo {
        font-size: 2em;
    }
    .balance-container {
        flex-direction: column;
        gap: 15px;
    }
    .admin-panel .bet-control {
        flex-direction: column;
    }
    .admin-panel .bet-control input, .admin-panel .bet-control button {
        width: 100%;
    }
    .game-menu {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .menu-item {
        min-height: 120px;
        padding: 15px;
    }
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }
    .game-name {
        font-size: 1.1em;
    }
    .game-description {
        font-size: 0.8em;
    }
    .dice {
        width: 70px;
        height: 70px;
        padding: 5px;
    }
    .dot {
        width: 14px;
        height: 14px;
    }
    .reel {
        font-size: 2.8em;
        width: 45px;
    }
    .card {
        width: 50px;
        height: 75px;
        font-size: 1.1em;
    }
}


/* --- АНИМАЦИИ --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(720deg); }
}
@keyframes diceRoll {
    0% { transform: translate(0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg); opacity: 1; }
    25% { transform: translate(20px, -10px) rotateX(90deg) rotateY(45deg) rotateZ(30deg); opacity: 0.8; }
    50% { transform: translate(-20px, 15px) rotateX(180deg) rotateY(90deg) rotateZ(60deg); opacity: 0.9; }
    75% { transform: translate(10px, -5px) rotateX(270deg) rotateY(135deg) rotateZ(90deg); opacity: 0.95; }
    100% { transform: translate(0, 0) rotateX(360deg) rotateY(180deg) rotateZ(120deg); opacity: 1; }
}
/* ... (Остальная часть style.css) ... */

/* --- Стили для ИГРОВЫХ СТРАНИЦ --- */

/* ... (Оставлены стили для .game-module, h2, button и т.д.) ... */

/* --- Дополнительные стили для полной Рулетки --- */
.bet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Три колонки */
    gap: 10px;
}
.bet-option {
    padding: 15px 10px;
    font-weight: bold;
    color: white;
    border: 3px solid transparent; /* Добавляем прозрачную границу */
    transition: all 0.2s;
}
.bet-option:hover {
    transform: scale(1.05);
}
.bet-option.active {
    border-color: #ffd700; /* Золотое выделение активной ставки */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.color-red-bg { background-color: #d32f2f; border-color: #9a0007; }
.color-black-bg { background-color: #000; border-color: #333; }
.color-green-bg { background-color: #4caf50; border-color: #2e7d32; }

/* Адаптация сетки для Рулетки */
@media (max-width: 600px) {
    .bet-grid {
        grid-template-columns: 1fr; /* Одна колонка на узких экранах */
    }
}

/* ... (Остальная часть style.css) ... */
/* ... (Остальная часть style.css) ... */


/* --- СТИЛИ ДЛЯ ПОЛНОЙ РУЛЕТКИ (roulette_full.html) --- */

/* --- СТИЛИ ПОЛНОЙ РУЛЕТКИ (ИСПРАВЛЕННЫЙ МАКЕТ - FLEXBOX) --- */

.board-container {
    border: 3px solid #000;
    width: 95%; /* Ширина доски */
    max-width: 800px;
    margin: 20px auto;
    background-color: #1a5e1a; /* Зеленое поле */
    display: flex;
    flex-direction: column;
}

/* Общая ячейка */
.board-cell {
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    position: relative; /* Для фишек */
    min-height: 40px;
    box-sizing: border-box;
    user-select: none; /* Запрет выделения текста */
    flex-grow: 1; /* Чтобы ячейки занимали равное место */
    padding: 5px 0;
}
.board-cell:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Переопределяем цвета для числовых ячеек */
.board-cell.red { background-color: #d32f2f; }
.board-cell.black { background-color: #000; }
.board-cell.red:hover, .board-cell.black:hover { background-color: rgba(255, 255, 255, 0.2); }


/* Секция 1: 0 */
.zero-row {
    display: flex;
}
.zero-cell {
    width: 10%; /* Ширина, чтобы соответствовать высоте трех рядов чисел */
    background-color: #4caf50; /* Зеленый */
    font-size: 1.5em;
    height: 120px; /* Чтобы соответствовать трем рядам (примерно 3*40px) */
    align-self: flex-start;
}

/* Секция 2: Основное поле */
.main-table-area {
    display: flex;
    width: 100%;
}

.number-rows {
    display: flex;
    flex-direction: column; /* Ряды чисел stacked вертикально */
    width: 90%; /* Оставшееся место после 0 */
}

.row {
    display: flex;
    flex-direction: row; /* Числа в ряду расположены горизонтально */
    width: 100%;
}

/* СТАВКИ НА КОЛОНКИ (2:1) */
.column-bets {
    display: flex;
    flex-direction: column;
    width: 10%;
}
.column-bet {
    background-color: #ccc;
    color: #000;
    font-size: 0.8em;
}

/* Секция 3: Дюжины и Внешние ставки */
.bottom-bets {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* СТАВКИ НА ДЮЖИНЫ (1st 12, 2nd 12, 3rd 12) */
.dozen-bets {
    display: flex;
    width: 90%; /* Ширина, чтобы быть под числовым полем */
    margin-left: 10%; /* Смещение под поле, чтобы выровнять с числами */
}
.dozen-bet {
    background-color: #ccc;
    color: #000;
    font-size: 0.8em;
}

/* СТАВКИ "РАВНЫЕ ШАНСЫ" (Внешние ставки) */
.outside-bets {
    display: flex;
    width: 90%; /* Ширина, чтобы быть под числовым полем */
    margin-left: 10%; /* Смещение под поле */
}
.outside-bet {
    background-color: #ccc;
    color: #000;
    font-size: 0.8em;
}
.outside-bet.red { color: #fff; background-color: #d32f2f; }
.outside-bet.black { color: #fff; background-color: #000; }


/* СТИЛИ ФИШКИ (сохраняем) */
.bet-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: gold;
    color: #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 0.8em;
    text-align: center;
    font-weight: bold;
    pointer-events: none; 
    border: 1px solid #333;
    z-index: 10;
}

/* ... (Продолжите остальные стили из вашего оригинального файла styles.css) ... */

/* --- ИГРОВОЕ ПОЛЕ --- */
.roulette-board {
    background-color: #2e7d32; /* Темно-зеленый стол */
    padding: 10px;
    border-radius: 5px;
    border: 3px solid #ffd700;
    display: grid;
    grid-template-areas:
        "zero numbers"
        "thirds thirds"
        "halves halves";
    grid-template-columns: 50px 1fr;
    gap: 5px;
    margin-top: 15px;
    user-select: none;
}
.board-numbers {
    grid-area: numbers;
    display: grid;
    grid-template-columns: repeat(13, 1fr); /* 12 чисел + 2:1 */
    gap: 5px;
}
.board-thirds {
    grid-area: thirds;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.board-halves {
    grid-area: halves;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 внешних ставок */
    gap: 5px;
}

.board-cell {
    background-color: #1a1a1e;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.1s, box-shadow 0.1s;
    position: relative;
    height: 40px; /* Фиксированная высота для удобства */
}
.board-cell:hover:not(.bet-active) {
    box-shadow: 0 0 5px #ffd700;
    background-color: #333;
}

/* Специфические цвета для ячеек */
.board-cell.cell-0 {
    grid-area: zero;
    background-color: #4caf50; /* Зеленый */
    color: white;
    height: auto; /* Растянуть по высоте чисел */
}
.board-cell.cell-red { background-color: #cc0000; }
.board-cell.cell-black { background-color: #000; }
.board-cell.cell-dozen, .board-cell.cell-half {
    background-color: #1a1a1e;
}
.board-cell.cell-col-1, .board-cell.cell-col-2, .board-cell.cell-col-3 {
    background-color: #1a1a1e;
}

/* АКТИВНАЯ СТАВКА (чип) */
.bet-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffd700;
    color: #1a1a1e;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 0.8em;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    pointer-events: none; /* Не блокирует клики */
}

/* --- КОНТРОЛЬ СТАВОК --- */
.bet-control-container {
    background-color: #2a2a30;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}
.status-message {
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}
.bet-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.bet-adjust-button {
    width: 60px;
    padding: 8px;
    background-color: #444;
    border-color: #777;
    font-size: 1em;
}
.bet-adjust-button:hover {
    background-color: #555;
}
.clear-button {
    background-color: #880000;
    border-color: #ff3333;
    width: 100%;
    margin-bottom: 15px;
}
.clear-button:hover {
    background-color: #ff3333;
}
.spin-main-button {
    background-color: #007700;
    border-color: #00ff00;
    font-size: 1.5em;
    padding: 15px;
    width: 100%;
}
.spin-main-button:hover:not(:disabled) {
    background-color: #00aa00;
    transform: translateY(-2px);
}
.spin-main-button:disabled {
    background-color: #555;
    border-color: #888;
}

/* --- СУММАРНЫЕ СТАВКИ --- */
.active-bets-summary {
    background-color: #1a1a1e;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px dashed #777;
}
.active-bets-summary h3 {
    margin-top: 0;
    color: #ccc;
    font-size: 1.1em;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#active-bets-list {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}
#active-bets-list li {
    font-size: 0.9em;
    padding: 3px 0;
    color: #999;
    border-bottom: 1px dotted #333;
}
#active-bets-list li:last-child {
    border-bottom: none;
}
.total-bet {
    font-weight: bold;
    font-size: 1.2em;
    padding-top: 10px;
    border-top: 1px solid #444;
    color: #fff;
}
#total-bet-amount {
    color: #ffd700;
}


/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
    .roulette-game-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
    }
    .roulette-board {
        grid-template-columns: 1fr;
        grid-template-areas:
            "zero"
            "numbers"
            "thirds"
            "halves";
    }
    .board-numbers {
        grid-template-columns: repeat(4, 1fr) 50px; /* Уменьшаем до 4 столбцов, 2:1 в конце */
    }
    .board-cell.cell-0 {
        height: 50px;
        grid-area: zero;
    }
    .board-row {
        display: contents; /* Разрешить детям быть частью родительской сетки */
    }
}


/* ... (Остальная часть style.css) ... */
/* --- Стили для Блэкджека (Карт) и Костей --- */

/* Область игры в Блэкджек */
.hand-area {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #1a1a1e;
}
.hand-area h3 {
    margin-top: 0;
    color: #ccc;
    font-size: 1.2em;
}
.cards-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 100px;
    align-items: center;
}

/* Сама Карта */
.card {
    width: 60px;
    height: 90px;
    background-color: white;
    color: black;
    border: 1px solid #000;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1;
}
.card span {
    font-size: 0.8em;
}
.card.red {
    color: #cc0000;
}
/* Рубашка карты (для скрытой карты дилера) */
.card.back {
    background-color: #cc0000;
    color: white;
    font-size: 2em;
    justify-content: center;
}

/* Кнопки Блэкджека */
.bj-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.bj-actions .action-button {
    background-color: #3f3f4a;
}
.bj-actions .action-button:hover:not(:disabled) {
    background-color: #5a5a65;
}

/* Кости */
.dice-result-area {
    text-align: center;
    margin: 20px 0;
}
.dice-display {
    font-size: 3em;
    color: #ffd700;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    padding: 10px;
    border: 1px dashed #777;
    border-radius: 5px;
    display: inline-block;
}
.craps-point-display {
    text-align: center;
    font-size: 1.5em;
    color: #4caf50;
    font-weight: bold;
    margin-bottom: 10px;
}
/* --- СТИЛИ ТАБЛИЦЫ ВЫПЛАТ (PAYTABLE) --- */
#slots-paytable {
    margin-top: 30px;
    background-color: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f39c12;
}

#slots-paytable h3 {
    text-align: center;
    color: #f1c40f;
    margin-top: 0;
}

#slots-paytable table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 1.1em;
}

#slots-paytable th, #slots-paytable td {
    padding: 8px;
    text-align: center;
    border: 1px solid #34495e;
}

#slots-paytable thead th {
    background-color: #e74c3c;
    color: white;
}

#slots-paytable tbody tr:nth-child(even) {
    background-color: #3e5268;
}

#slots-paytable tbody tr:hover {
    background-color: #5d6d7e;
}

.paytable-note {
    font-size: 0.9em;
    color: #bdc3c7;
    margin-top: 15px;
    text-align: center;
}

.game-title {
	text-align: center;
}

/* --- СТИЛИ ДЛЯ КОЛЕСА ФОРТУНЫ (WHEEL.HTML) --- */

/* Контейнер колеса */
/* --- СТИЛИ ДЛЯ КОЛЕСА ФОРТУНЫ (WHEEL.HTML) --- */

.wheel-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* КОНТЕЙНЕР КОЛЕСА И СТРЕЛКА */
.wheel-container {
    width: 350px;
    height: 350px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

/* ВРАЩАЮЩЕЕСЯ КОЛЕСО */
.the-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Используем conic-gradient для создания секторов */
    /* Цвета и углы должны совпадать с wheelSectors в JS, но это визуализация */
    background: conic-gradient(
        #4caf50 0deg 9.73deg,     /* 1 */
        #ffeb3b 9.73deg 16.92deg,   /* 2 */
        #2196f3 16.92deg 23.33deg,   /* 5 */
        #ff9800 23.33deg 26.66deg,  /* 10 */
        #f44336 26.66deg 28.51deg,  /* 20 */
        gold 28.51deg 30.13deg,     /* JOKER */
        #4caf50 30.13deg 40.52deg,   /* 1 (продолжение) */
        /* и так далее для 54 секторов... */
        /* ТАК КАК ВРУЧНУЮ СЛОЖНО, ОСТАВЛЯЕМ ПРОСТУЮ ВИЗУАЛИЗАЦИЮ */
        #4caf50 0%, #ffeb3b 18%, #2196f3 35%, #ff9800 50%, #f44336 70%, gold 85%, #4caf50 100%
    );
    border: 10px solid #333;
    transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1.0); /* Плавная остановка */
}

/* Анимация вращения */
.the-wheel.spinning {
    transform: rotate(7200deg); /* Начальное быстрое вращение */
}

/* Указатель */
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #f00; /* Красный треугольник */
    z-index: 10;
}

/* Дисплей результата */
#wheel-result-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 5;
}

/* --- СТИЛИ ДЛЯ ДОСКИ СТАВОК (остаются, но немного очищены) --- */

.wheel-bets-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 500px;
}

.wheel-sector {
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s;
    border: 2px solid #333;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.wheel-sector:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Цвета секторов */
.wheel-1 { background-color: #4caf50; } /* x2 - Green */
.wheel-2 { background-color: #ffeb3b; color: #333; text-shadow: none; } /* x3 - Yellow */
.wheel-5 { background-color: #2196f3; } /* x6 - Blue */
.wheel-10 { background-color: #ff9800; } /* x11 - Orange */
.wheel-20 { background-color: #f44336; } /* x21 - Red */
.wheel-joker { 
    background: linear-gradient(45deg, gold, #ffcc00);
    border: 4px solid #333;
    font-size: 1.1em;
}

/* Отображение фишек на секторах */
.wheel-sector .bet-chip {
    /* ... стили чипов остаются прежними ... */
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
/* --- КОНЕЦ СТИЛЕЙ КОЛЕСА ФОРТУНЫ --- */

/* --- СТИЛИ ДЛЯ HILO (HILO.HTML) --- */
.hilo-board {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.card-slot {
    min-width: 100px;
    min-height: 150px;
    border: 2px dashed #aaa;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #444;
}

.hilo-card {
    width: 80px;
    height: 130px;
    border: 1px solid #000;
    border-radius: 6px;
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    font-size: 24px;
}

.hilo-card span {
    font-size: 18px;
    display: block;
    text-align: right;
}

.hilo-card.red {
    color: red;
}

.hilo-card.back {
    background-color: #a00;
    color: white;
    font-size: 40px;
    text-align: center;
    line-height: 120px;
}

.hilo-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.higher-button, .lower-button, #hilo-cashout {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.higher-button { background-color: #4caf50; color: white; }
.lower-button { background-color: #f44336; color: white; }
#hilo-cashout { background-color: #ff9800; color: white; }

.higher-button:disabled, .lower-button:disabled, #hilo-cashout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- АДАПТИВНОСТЬ ДЛЯ HILO (Мобильные устройства) --- */
@media (max-width: 600px) {
    
    /* 1. Общая компоновка: Перестраиваем доску в колонку */
    .hilo-board {
        flex-direction: column;
        gap: 15px; /* Уменьшаем расстояние между элементами */
        margin: 15px 0;
    }

    /* 2. Названия карт: Скрываем дублирующий текст "Следующая карта:" */
    /* Теперь заголовок H2 "Текущая карта:" будет единственным заголовком */
    .hilo-board h2:last-of-type { 
        display: none; /* Скрываем "Следующая карта:" */
    }
    
    /* 3. Переносим кнопки под первую карту */
    .hilo-buttons {
        order: 2; /* Размещаем кнопки между слотами для карт */
        width: 100%; /* Растягиваем кнопки на всю ширину */
        max-width: 250px; /* Ограничиваем максимальную ширину для эстетики */
    }
    
    /* 4. Располагаем слоты для карт */
    #current-card {
        order: 1; /* Текущая карта сверху */
    }
    #next-card {
        order: 3; /* Следующая карта снизу */
        /* Добавляем надпись "Следующая карта" прямо над слотом */
        border: none;
        background-color: transparent;
        min-height: 120px;
    }
    
    /* 5. Добавляем видимый заголовок для следующей карты */
    #next-card::before {
        content: "Следующая карта:";
        display: block;
        color: #fff;
        font-size: 1em;
        margin-bottom: 5px;
        text-align: center;
        border-bottom: 1px solid #444;
        padding-bottom: 5px;
    }
    
    /* 6. Уменьшаем размер карточных слотов */
    .card-slot {
        min-width: 100px;
        min-height: 120px;
        width: 100%;
        max-width: 150px; /* Ограничиваем, чтобы не занимало всю ширину экрана */
        margin: 0 auto;
        border: 2px dashed #aaa;
        background-color: #444;
    }
    
    /* 7. Уменьшаем кнопки */
    .higher-button, .lower-button, #hilo-cashout {
        padding: 10px 15px;
        font-size: 16px;
    }
	
}

.roulette-wheel {
    position: relative;
    width: 330px;
    height: 330px;
    margin: 0 auto;
}
/* Сам барабан */
.roulette-wheel-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 330px;     /* УВЕЛИЧЕНО */
    height: 330px;    /* УВЕЛИЧЕНО */
    transform: translate(-50%, -50%);
    z-index: 5;       /* ВАЖНО! Делает БАРАБАН НАД всем */
    transition: transform 8s cubic-bezier(.17,.67,.16,1);
    pointer-events: none;
}

#wheel-full-display {
    position: relative;
    font-size: 48px;
    font-weight: bold;
    z-index: 3;
}

/* Цифра поверх барабана */
#roulette-wheel-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;       /* увеличено */
    color: white;
    font-weight: bold;
    z-index: 10;           /* над барабаном */
}

	
	/* --- ЭФФЕКТЫ ПОБЕДЫ И ПОРАЖЕНИЯ (Vignette) --- */

/* Слой перекрытия, который висит поверх всего сайта */
/* --- ЭФФЕКТЫ ПОБЕДЫ И ПОРАЖЕНИЯ (УСИЛЕННАЯ ВЕРСИЯ) --- */

/* 1. Сам слой перекрытия */
#feedback-overlay {
    position: fixed;       /* Фиксируем относительно окна */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;       /* Максимально высокий слой поверх всего */
    pointer-events: none;  /* Клики проходят сквозь него */
    opacity: 0;            /* Скрыт по умолчанию */
    transition: opacity 0.3s ease-out;
/* ВАЖНО: transition должен быть ЗДЕСЬ, чтобы работать и на вход, и на выход */
    /* 'all' означает анимировать всё: и прозрачность, и рамку, и тень */
    /* 0.8s - время исчезновения */
    transition: all 0.5s ease-in-out;
    
    box-sizing: border-box;
}

/* 2. Стиль ПОБЕДЫ (Глобальный - и ПК, и телефон) */
.feedback-win {
    opacity: 1 !important;
    /* Жесткая рамка + свечение внутри */
    border: 0px solid #00ff00; 
    box-shadow: inset 0 0 150px 9px rgba(0, 255, 0, 0.6);
}

/* 3. Стиль ПОРАЖЕНИЯ (Глобальный) */
.feedback-loss {
    opacity: 1 !important;
    /* Жесткая рамка + свечение внутри */
    border: 0px solid #ff0000;
    box-shadow: inset 0 0 150px 0px rgba(255, 0, 0, 0.6);
}

/* 4. Адаптация для телефонов (чтобы рамка не была слишком толстой) */
@media (max-width: 768px) {
    .feedback-win {
        border-width: 0px; /* Чуть тоньше рамка на телефоне */
        box-shadow: inset 0 0 40px 20px rgba(0, 255, 0, 0.8);
    }
    .feedback-loss {
        border-width: 0px;
        box-shadow: inset 0 0 40px 20px rgba(255, 0, 0, 0.8);
    }
}
@keyframes pop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.profile-card, .stat-box {
    animation: pop 0.4s ease;
}
.leader-card {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#1e1e22;
    border:1px solid #444;
    padding:10px;
    border-radius:10px;
    margin-bottom:12px;
    cursor:pointer;
    transition:0.25s;
}

.leader-card:hover {
    transform:scale(1.03);
}

.leader-left {
    display:flex;
    align-items:center;
    gap:10px;
}

.leader-avatar {
    width:55px;
    height:55px;
    border-radius:50%;
    border:2px solid gold;
}

.leader-right {
    font-size:1.1em;
    text-align:right;
    min-width:110px;
}

.leader-name {
    color:gold;
    font-size:1.1em;
}
/* ========================================================================= */
/* --- СНЕГОПАД 2.0 (РАНДОМНЫЙ И ПЛАВНЫЙ) --- */
/* ========================================================================= */

/* Основной контейнер */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Пропускать клики, чтобы не мешал UI */
    z-index: 9999; 
    overflow: hidden; /* Скрывать снежинки, которые находятся вне экрана */
}

/* Базовый стиль для каждой снежинки */
.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    /* Анимации будут назначены через JavaScript, чтобы быть рандомными */
}

/* 1. Анимация падения (сверху вниз) */
@keyframes fall {
    to {
        transform: translateY(100vh); /* Двигаем снежинку вниз на всю высоту экрана */
    }
}

/* 2. Анимация колыхания (имитация ветра) */
@keyframes sway {
    0% { transform: translateX(0); }
    50% { transform: translateX(50px); } /* Сдвиг вправо */
    100% { transform: translateX(0); }
}
/* ========================================================================= */
/* --- СТИЛИ ДЛЯ ДОСТИЖЕНИЙ В ПРОФИЛЕ --- */
/* ========================================================================= */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-card {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    background: rgba(255, 215, 0, 0.1); /* Золотистый фон */
    border: 1px solid #ffd700;
}

.achievement-card.locked {
    background: rgba(51, 51, 51, 0.5); /* Темный фон */
    border: 1px solid #444;
    filter: grayscale(100%); /* Делаем неоткрытые серыми */
    opacity: 0.7;
}

.achiev-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.achiev-text {
    flex-grow: 1;
}

.achiev-name {
    font-size: 1em;
    color: white;
    font-weight: bold;
    line-height: 1.1;
}

.achiev-desc {
    font-size: 0.8em;
    color: #bbb;
    margin-top: 2px;
}

.achiev-lock {
    color: #aaa;
    font-size: 1.2em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
/* --- СТИЛИ ДЛЯ ОБНОВЛЕННОГО ТАМАГОЧИ --- */

/* Фон страницы (динамический) */
.pet-bg-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-color: #0b0c0f;
    transition: background-image 0.5s ease;
    filter: brightness(0.6); /* Немного затемняем фон */
}

.pet-main-container {
    display: flex; flex-direction: column; height: 90vh;
    justify-content: space-between;
    background: transparent !important; /* Убираем фон контейнера */
    box-shadow: none !important; border: none !important;
}

/* Верхняя инфо */
.pet-header-info { text-align: center; margin-bottom: 10px; }
#pet-name-display { font-size: 1.8em; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); margin: 0; }
.rarity-badge { font-size: 0.9em; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* Полоски статов */
.pet-stats-wrapper { padding: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.stat-row { display: flex; align-items: center; gap: 10px; }
.stat-track {
    flex-grow: 1; height: 14px; background: rgba(0,0,0,0.6);
    border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.stat-fill { height: 100%; border-radius: 10px; transition: width 0.4s ease; box-shadow: inset 0 -2px 5px rgba(0,0,0,0.3); }

/* Цвета полосок */
.fill-orange { background: linear-gradient(90deg, #ff6d00, #ff9100); }
.icon-orange { color: #ff9100; width: 20px; text-align: center; }

.fill-green { background: linear-gradient(90deg, #2e7d32, #64dd17); }
.icon-green { color: #64dd17; width: 20px; text-align: center; }

.fill-yellow { background: linear-gradient(90deg, #fbc02d, #ffeb3b); } /* Энергия */
.icon-yellow { color: #ffeb3b; width: 20px; text-align: center; }

.fill-cyan { background: linear-gradient(90deg, #0097a7, #00e5ff); } /* Чистота */

/* ЦЕНТРАЛЬНАЯ СЦЕНА (ПИТОМЕЦ) */
.pet-center-stage {
    position: relative; flex-grow: 1;
    display: flex; justify-content: center; align-items: center;
    min-height: 250px;
}

/* Свечение редкости (Glow) */
.pet-glow {
    position: absolute; width: 180px; height: 180px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
    opacity: 0.6;
    transition: background 0.5s ease;
}

.pet-visuals { position: relative; width: 200px; height: 200px; z-index: 1; }
.pet-base-img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; height: auto; transition: 0.2s; }
.pet-acc-img { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 70%; z-index: 2; }

/* Анимация дыхания питомца */
.pet-base-img { animation: petBreath 3s infinite ease-in-out; }
@keyframes petBreath { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.02); } }

/* НИЖНИЙ ДОК (Кнопки) */
.pet-bottom-dock {
    display: flex; justify-content: center; gap: 15px;
    padding: 20px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.dock-btn {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5em; color: white; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.1s, border-color 0.2s;
}
.dock-btn:active { transform: scale(0.9); }
.dock-btn:hover { border-color: gold; }

/* Область вкладок (магазин и т.д.) */
.pet-tab-area {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 50%;
    background: #1e1e22;
    border-top: 3px solid gold;
    border-radius: 20px 20px 0 0;
    z-index: 100;
    padding: 15px; box-sizing: border-box;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.pet-tab-area.hidden { transform: translateY(105%); }

.tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tab-header span { color: gold; font-size: 1.2em; font-weight: bold; }
.close-tab-btn { background: none; border: none; color: #fff; font-size: 1.5em; cursor: pointer; }

/* --- СТИЛИ ГРЯЗИ --- */
.pet-dirt-overlay {
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; /* Или подгони под размер картинки питомца */
    height: auto;
    z-index: 3; /* Поверх питомца и аксессуаров */
    pointer-events: none; /* Чтобы клики проходили сквозь грязь */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- СТИЛИ ДЛЯ ОТДЕЛЬНЫХ КОМНАТ --- */
/* Убираем фиксированный фон body для этих страниц, так как фон будет динамическим */
body[data-page^="pet_"] {
    background: #0b0c0f; /* Цвет подложки */
}

.room-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: -2;
    filter: brightness(0.7); /* Чуть затемняем, чтобы интерфейс читался */
}

/* Меню навигации (док) всегда снизу */
.bottom-nav-dock {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 15px;
    background: rgba(30, 30, 35, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #ffd700;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-btn {
    width: 50px; height: 50px; border-radius: 50%; border: none;
    font-size: 1.2em; color: white; cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.nav-btn:hover { transform: translateY(-3px); }
.nav-btn.active { border: 2px solid white; box-shadow: 0 0 10px gold; }

/* Кнопка действия (большая по центру, например "Помыть") */
.action-big-btn {
    position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%);
    padding: 15px 40px; font-size: 1.2em; font-weight: bold;
    border-radius: 30px; border: 2px solid white; cursor: pointer;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 10; transition: 0.1s;
}
.action-big-btn:active { transform: translateX(-50%) scale(0.95); }

/* --- СТИЛИ ДЛЯ КУХНИ --- */

.kitchen-food-menu {
    position: absolute;
    bottom: 90px; /* Над нижним доком */
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 20;
}

.food-scroll-container {
    display: flex;
    overflow-x: auto; /* Горизонтальный скролл */
    gap: 15px;
    padding-bottom: 10px;
    padding-left: 10px;
    scrollbar-width: none; /* Скрыть скроллбар (Firefox) */
}
.food-scroll-container::-webkit-scrollbar { display: none; } /* Скрыть скроллбар (Chrome) */

.food-card {
    min-width: 100px;
    background: rgba(40, 40, 45, 0.9);
    border: 1px solid #555;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.food-card:active { transform: scale(0.95); border-color: gold; }
.food-card img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 5px; }
.food-name { color: white; font-size: 0.8em; font-weight: bold; margin-bottom: 3px; }
.food-price { color: gold; font-size: 0.9em; }
.food-bonus { color: #4caf50; font-size: 0.7em; }

/* === СТИЛИ ГЛАВНОГО МЕНЮ (КАК НА МАКЕТЕ) === */

/* Контейнер для статов (Сетка 2 колонки) */
.stats-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 15px 20px; /* Отступы между строками и колонками */
    padding: 0 15px;
    margin-top: 20px;
}

/* Одна ячейка стата */
.stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Иконки статов */
.stat-icon {
    font-size: 1.5em;
    width: 25px;
    text-align: center;
}

/* Полоска прогресса (Толстая, как на макете) */
.stat-track-thick {
    flex-grow: 1;
    height: 18px; /* Толстая полоска */
    background: #2a2a2e;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.stat-fill-thick {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.2); /* Объем */
}

/* Цвета полосок */
.bar-orange { background: #ff9800; }
.bar-green { background: #4caf50; }
.bar-cyan { background: #00e5ff; }
.bar-yellow { background: #ffd700; }

/* Цвета иконок */
.icon-orange { color: #ff9800; }
.icon-green { color: #4caf50; }
.icon-cyan { color: #00e5ff; }
.icon-yellow { color: #ffd700; }


/* ЦЕНТРАЛЬНАЯ ЧАСТЬ */
.pet-main-stage {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

/* Свечение редкости (Градиент) */
.rarity-glow-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0,255,0,0.6) 0%, transparent 70%); /* Зеленый по дефолту */
    border-radius: 50%;
    z-index: 0;
    opacity: 0.8;
}

.pet-layers {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.pet-layers img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* НИЖНЕЕ МЕНЮ (КРУГЛЫЕ КНОПКИ) */
.main-menu-dock {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #111;
    border-top: 2px solid #333;
}

.circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
    color: white;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.circle-btn:active { transform: scale(0.9); }

/* Внутренний блик для объема */
.circle-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 50% 50% 0 0;
}

/* Цвета кнопок как на фото */
.btn-food { background: #d84315; }  /* Красный/Коричневый */
.btn-game { background: #2e7d32; }  /* Зеленый */
.btn-bath { background: #0097a7; }  /* Голубой */
.btn-sleep { background: #3f51b5; } /* Синий */
.btn-shop { background: #616161; }  /* Серый */

/* ===== НАСТРОЙКИ (МОБИЛЬНЫЕ) ===== */

.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.settings-modal.hidden {
    display: none;
}

.settings-sheet {
    width: 100%;
    max-width: 420px;
    background: #1e1e22;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
    animation: slideUp 0.25s ease;
}

.settings-sheet h2 {
    text-align: center;
    margin-top: 0;
    color: gold;
}

.setting-item {
    margin-top: 20px;
}

.setting-item label {
    color: #ccc;
    font-size: 14px;
}

.setting-item input[type="range"] {
    width: 100%;
    margin-top: 15px;
    height: 6px;
}

.volume-value {
    text-align: center;
    color: #aaa;
    margin-top: 5px;
    font-size: 14px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}



