/* ========================================================== */
/* ===== СПІЛЬНІ СТИЛІ ДЛЯ ВСІХ ІГОР =====                   */
/* ========================================================== */

/* ===== БАЗОВІ СТИЛІ ДЛЯ КОНТЕЙНЕРІВ ===== */
.game-container,
.casino-container,
.container {
    width: 100%;
    max-width: 1100px;
    background: #0a0a12;
    border-radius: 50px;
    padding: 25px;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    margin: 0 auto;
}

/* ===== ЗАГОЛОВКИ ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
    letter-spacing: 2px;
}
.logo span { color: #ffd700; }

/* ===== ІНФОРМАЦІЯ КОРИСТУВАЧА ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8960c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a0a12;
}
.user-name { color: #d4af37; font-weight: bold; }
.user-id { font-size: 10px; color: #888; }
.logout-btn {
    background: rgba(255,68,68,0.2);
    border: 1px solid #ff4444;
    border-radius: 20px;
    padding: 5px 12px;
    color: #ff4444;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}
.logout-btn:hover { background: rgba(255,68,68,0.4); }

/* ===== БАЛАНС ===== */
.balance-display {
    background: rgba(0,0,0,0.4);
    border-radius: 30px;
    padding: 8px 20px;
    border: 1px solid #d4af37;
    color: #d4af37;
    font-weight: bold;
    font-size: 18px;
}
.balance-display span { color: #fff; }

/* ===== ВАЛЮТИ ===== */
.currency-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.currency-option {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.currency-option:hover { border-color: #d4af37; }
.currency-option.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #0a0a12;
}

/* ===== НИЖНЯ ПАНЕЛЬ ===== */
.bottom-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 15px 20px;
    border-radius: 40px;
    border: 1px solid rgba(212,175,55,0.2);
}
.balance-box, .bet-box, .win-box {
    background: rgba(0,0,0,0.4);
    padding: 12px 15px;
    border-radius: 25px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(212,175,55,0.2);
}
.box-label {
    font-size: 11px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.box-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
.box-currency {
    position: absolute;
    right: 15px;
    bottom: 8px;
    font-size: 11px;
    color: #d4af37;
    font-weight: bold;
}
.bet-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.bet-control button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
    border: 1px solid #d4af37;
    color: #d4af37;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}
.bet-control button:hover { background: #3a3a4a; }
.bet-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-block;
}

/* ===== АДАПТАЦІЯ НИЖНЬОЇ ПАНЕЛІ ===== */
@media (max-width: 850px) {
    .bottom-panel {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }
    .box-value { font-size: 20px; }
}
@media (max-width: 480px) {
    .bottom-panel {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        padding: 8px;
        border-radius: 20px;
    }
    .box-value { font-size: 16px; }
    .box-label { font-size: 9px; }
    .box-currency { font-size: 9px; right: 8px; bottom: 4px; }
    .bet-control button { width: 28px; height: 28px; font-size: 16px; }
    .bet-value { font-size: 18px; }
}
@media (max-width: 360px) {
    .bottom-panel { gap: 4px; padding: 4px 6px; border-radius: 12px; }
    .box-value { font-size: 13px; }
    .bet-control button { width: 22px; height: 22px; font-size: 12px; }
    .bet-value { font-size: 14px; }
}

/* ===== АДАПТАЦІЯ ЗАГОЛОВКІВ ===== */
@media (max-width: 480px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    .logo { font-size: 20px; }
    .user-info { justify-content: center; gap: 8px; flex-wrap: wrap; }
    .user-avatar { width: 32px; height: 32px; font-size: 12px; }
    .balance-display { font-size: 14px; padding: 4px 14px; }
    .user-name { font-size: 13px; }
}

/* ===== АДАПТАЦІЯ КОНТЕЙНЕРІВ ===== */
@media (max-width: 850px) {
    .game-container,
    .casino-container,
    .container {
        padding: 18px;
        border-radius: 30px;
    }
}
@media (max-width: 480px) {
    .game-container,
    .casino-container,
    .container {
        padding: 12px;
        border-radius: 20px;
        border-width: 1.5px;
    }
}
@media (max-width: 360px) {
    .game-container,
    .casino-container,
    .container {
        padding: 8px;
        border-radius: 14px;
        border-width: 1px;
    }
}
@media (min-width: 1400px) {
    .game-container,
    .casino-container,
    .container {
        max-width: 1200px;
        padding: 35px 40px;
        border-radius: 60px;
    }
}

/* ===== ВАЛЮТИ АДАПТАЦІЯ ===== */
@media (max-width: 480px) {
    .currency-row { gap: 4px; margin-bottom: 8px; }
    .currency-option { font-size: 10px; padding: 3px 10px; }
}
@media (max-width: 360px) {
    .currency-option { font-size: 8px; padding: 2px 6px; }
}
