* { margin:0; padding:0; box-sizing:border-box; }
body { 
    background: #0a0a1a; 
    color: #fff; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes actionMessage {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

/* ===== HEADER ===== */
.poker-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 15px 40px;
    background: linear-gradient(180deg, #1a1a3e 0%, #0a0a1a 100%);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid #ffd70033; z-index: 1000;
}
.logo { font-size: 24px; font-weight: bold; color: #ffd700; }
.logo span { color: #fff; }
.balance-info { background: #1a1a3e; padding: 8px 20px; border-radius: 20px; border: 1px solid #ffd70055; }

/* Кнопка профиля */
.profile-btn {
    background: #1a1a3e;
    border: 1px solid #ffd70055;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: rgba(255,215,0,0.1);
    border-color: #ffd700;
}

/* ===== LOBBY ===== */
.lobby { width: 100%; max-width: 1400px; padding: 30px; animation: fadeIn 0.5s ease; }
.lobby-header { text-align: center; margin-bottom: 40px; }
.lobby-title {
    font-size: 36px; font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 10px;
}
.lobby-subtitle { color: #aaa; font-size: 14px; }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; padding: 10px; }

/* Карточка стола */
.table-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a3e 0%, #0d0d2a 100%);
    border-radius: 20px; padding: 25px;
    border: 2px solid #2a2a5e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.3s ease; cursor: pointer; overflow: hidden;
    min-height: 280px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.table-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.table-card:hover {
    transform: translateY(-5px); border-color: #ffd700;
    box-shadow: 0 15px 50px rgba(0,0,0,0.7), 0 0 30px rgba(255,215,0,0.2);
}
.table-card.full { border-color: #ff4444; }
.table-card.full:hover { border-color: #ff4444; box-shadow: 0 15px 50px rgba(0,0,0,0.7), 0 0 30px rgba(255,68,68,0.2); }

.table-name { font-size: 18px; font-weight: bold; color: #ffd700; margin-bottom: 5px; text-align: center; }
.table-level { font-size: 12px; color: #888; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }

.table-status {
    font-size: 13px; margin-bottom: 15px; padding: 5px 15px;
    border-radius: 20px; font-weight: 600;
}
.table-status.waiting { background: rgba(136,204,255,0.1); color: #88ccff; border: 1px solid rgba(136,204,255,0.3); }
.table-status.playing { background: rgba(255,170,0,0.1); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); animation: pulse 1.5s ease-in-out infinite; }
.table-status.full { background: rgba(255,68,68,0.1); color: #ff4444; border: 1px solid rgba(255,68,68,0.3); }

/* Мини-стол */
.table-mini {
    position: relative; width: 140px; height: 90px;
    background: radial-gradient(ellipse at center, #0d8a4a, #065a2a);
    border-radius: 50%; border: 4px solid #5a3a1a;
    margin-bottom: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.seats-mini { position: absolute; inset: 0; }
.seat-mini {
    position: absolute; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; border: 2px solid #444; transition: all 0.3s;
}
.seat-mini.occupied { background: rgba(255,215,0,0.3); border-color: #ffd700; box-shadow: 0 0 10px rgba(255,215,0,0.3); }
.seat-mini.empty { background: rgba(0,0,0,0.5); border-color: #555; }
.seat-mini-0 { top: -10px; left: 50%; transform: translateX(-50%); }
.seat-mini-1 { top: 15px; right: 5px; }
.seat-mini-2 { top: 50%; right: -10px; transform: translateY(-50%); }
.seat-mini-3 { bottom: -5px; left: 50%; transform: translateX(-50%); }
.seat-mini-4 { top: 50%; left: -10px; transform: translateY(-50%); }
.seat-mini-5 { top: 15px; left: 5px; }

.table-info { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; justify-content: center; }
.table-info-item { text-align: center; font-size: 11px; color: #888; }
.table-info-item .value { font-size: 14px; color: #fff; font-weight: bold; display: block; margin-top: 2px; }
.table-info-item .value.gold { color: #ffd700; }

.join-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a3e; border: none; border-radius: 25px;
    font-weight: bold; cursor: pointer; font-size: 14px;
    transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255,215,0,0.3);
}
.join-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,215,0,0.5); }
.join-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; transform: none; }

/* Кнопка удаления стола */
.delete-table-btn {
    margin-top: 8px; padding: 8px 20px;
    background: rgba(255,68,68,0.15);
    border: 1px solid rgba(255,68,68,0.4);
    color: #ff4444; border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.3s; letter-spacing: 0.5px;
}
.delete-table-btn:hover {
    background: #ff4444; color: #fff; border-color: #ff4444;
    transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,68,68,0.3);
}

/* Кнопка добавления стола */
.add-table-card {
    border: 3px dashed #2a2a5e; background: transparent;
    border-radius: 20px; padding: 25px; min-height: 280px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; gap: 15px;
}
.add-table-card:hover { border-color: #ffd700; background: rgba(255,215,0,0.05); transform: translateY(-5px); }
.add-table-icon { font-size: 48px; color: #ffd700; animation: pulse 2s ease-in-out infinite; }
.add-table-text { color: #aaa; font-size: 16px; font-weight: bold; }
.add-table-desc { color: #666; font-size: 12px; }

/* ===== ИГРОВОЙ СТОЛ ===== */
#poker-table { display: none; width: 100%; max-width: 900px; padding: 20px; }
#poker-table.active { display: block; }
.back-btn { padding: 8px 20px; background: #333; border: none; border-radius: 8px; color: #fff; cursor: pointer; margin-bottom: 10px; }

.poker-table-oval {
    position: relative; width: 100%; min-height: 550px;
    background: radial-gradient(ellipse at center, #0d8a4a, #065a2a);
    border-radius: 50%; border: 10px solid #5a3a1a;
    box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.3);
}

.seat {
    position: absolute; width: 120px;
    background: rgba(0,0,0,0.7); border-radius: 10px;
    border: 2px solid #333; text-align: center; padding: 8px; z-index: 2;
}
.seat.active { border-color: #ffd700 !important; box-shadow: 0 0 20px rgba(255,215,0,0.6) !important; animation: pulse 1s ease-in-out infinite; }
.seat.folded { opacity: 0.5; filter: grayscale(50%); }
.seat.folded .player-name::after { content: ' (сбросил)'; font-size: 10px; color: #888; }
.seat.all-in { border-color: #ff4444; }
.seat.dealer::after {
    content: '🟡';
    font-size: 8px;
    position: absolute;
    top: 3px;
    right: 5px;
    line-height: 1;
}
.seat.winner { border-color: #ffd700 !important; box-shadow: 0 0 30px rgba(255,215,0,0.8) !important; background: rgba(255,215,0,0.2) !important; }
.seat-empty { border: 2px dashed #666 !important; cursor: pointer; }
.seat-empty:hover { border-color: #ffd700 !important; background: rgba(255,215,0,0.1) !important; }
.seat-0 { top: 2%; left: 50%; transform: translateX(-50%); }
.seat-1 { top: 15%; right: 2%; }
.seat-2 { top: 50%; right: -3%; transform: translateY(-50%); }
.seat-3 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.seat-4 { top: 50%; left: -3%; transform: translateY(-50%); }
.seat-5 { top: 15%; left: 2%; }

.player-name { font-weight: bold; font-size: 12px; }
.player-balance { font-size: 11px; color: #88ff88; }
.player-bet { font-size: 11px; color: #ffd700; }
.player-cards { display: flex; gap: 3px; justify-content: center; margin: 4px 0; }
.mini-card { width: 35px; height: 48px; background: #fff; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; color: #222; }
.mini-card-back { background: linear-gradient(135deg, #1a237e, #0d1442); }
.mini-card-back::before { content: '♠'; font-size: 18px; color: #ffd700; }
.mini-card-red { color: #cc0000; }

.community-cards-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 8px; z-index: 1; }
.community-card { width: 55px; height: 75px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; color: #222; box-shadow: 0 3px 10px rgba(0,0,0,0.4); }
.community-card-back { background: linear-gradient(135deg, #1a237e, #0d1442); }
.community-card-back::before { content: '♠'; font-size: 30px; color: #ffd700; }
.community-card-red { color: #cc0000; }

.pot-display-center { position: absolute; top: 35%; left: 50%; transform: translateX(-50%); font-size: 20px; color: #ffd700; font-weight: bold; z-index: 1; }
.game-status-bottom { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); font-size: 16px; color: #ffd700; text-align: center; z-index: 2; }
.timer-bar-container { position: absolute; top: 28%; left: 50%; transform: translateX(-50%); width: 200px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; z-index: 2; }
.timer-bar-fill { height: 100%; background: #88ff88; border-radius: 3px; transition: width 0.1s linear; width: 100%; }
.timer-text-center { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: bold; z-index: 2; }

/* Action badge */
.action-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    padding: 4px 12px; border-radius: 15px; font-size: 12px; font-weight: bold;
    z-index: 10; animation: slideIn 0.3s ease-out; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.action-fold { background: #cc0000; color: #fff; }
.action-check { background: #2d6da8; color: #fff; }
.action-call { background: #2d8a4e; color: #fff; }
.action-raise { background: #b8860b; color: #fff; }
.action-bet { background: #b8860b; color: #fff; }
.action-all_in { background: #cc4400; color: #fff; animation: pulse 0.5s ease-in-out infinite; }

.action-message {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 28px; font-weight: bold; z-index: 9999; pointer-events: none;
    animation: actionMessage 1.5s ease-out forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* ===== UI ЭЛЕМЕНТЫ ===== */
#spectator-panel { display: none; text-align: center; margin: 10px 0; }
#spectator-panel .join-btn { display: inline-block; }
#actions { display: none; gap: 8px; justify-content: center; padding: 15px 0; flex-wrap: wrap; }
.btn { padding: 10px 18px; border: none; border-radius: 25px; font-size: 13px; font-weight: bold; cursor: pointer; min-width: 70px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-fold { background: #cc0000; color: #fff; }
.btn-check { background: #2d6da8; color: #fff; }
.btn-call { background: #2d8a4e; color: #fff; }
.btn-raise { background: #b8860b; color: #fff; }
.btn-allin { background: #cc4400; color: #fff; }

#quick-bets { display: none; gap: 5px; justify-content: center; flex-wrap: wrap; padding-bottom: 10px; }
.quick-bet-btn { padding: 6px 12px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 15px; color: #fff; cursor: pointer; font-size: 11px; }
.quick-bet-btn:disabled { opacity: 0.3; cursor: not-allowed; }

#chat { width: 100%; background: rgba(0,0,0,0.7); border-radius: 10px; padding: 10px; height: 120px; overflow-y: auto; font-size: 12px; margin-top: 10px; }
#chat-messages { padding: 5px; }
.chat-msg { padding: 2px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat-msg .time { color: #888; font-size: 11px; }

#need-rebuy-panel { display: none; text-align: center; margin: 10px 0; background: rgba(255,0,0,0.2); padding: 10px; border-radius: 8px; }

/* Toast */
.toast-notification {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #1a1a3e; border: 2px solid #ffd700; border-radius: 12px;
    padding: 14px 24px; color: #fff; z-index: 10001;
    font-size: 14px; animation: fadeIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Ползунок ставок */
#bet-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 3px;
    outline: none;
}

#bet-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

#bet-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a3e;
    border-radius: 20px;
    padding: 30px;
    max-width: 550px;
    width: 90%;
    border: 2px solid #ffd70055;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}

.modal-title { color: #ffd700; font-size: 20px; font-weight: bold; margin: 0; }

.modal-close {
    background: none; border: none; color: #fff;
    font-size: 24px; cursor: pointer;
}

.modal-body { margin-bottom: 20px; }

.form-group { margin-bottom: 15px; }
.form-label { color: #aaa; font-size: 13px; display: block; margin-bottom: 5px; }
.form-input {
    width: 100%; padding: 10px; border-radius: 8px;
    border: 1px solid #333; background: #0a0a1a; color: #fff; font-size: 14px;
}
.form-input:focus { border-color: #ffd700; outline: none; box-shadow: 0 0 10px rgba(255,215,0,0.2); }

.form-select {
    width: 100%; padding: 10px; border-radius: 8px;
    border: 1px solid #333; background: #0a0a1a; color: #fff; font-size: 14px;
}

.btn-primary {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none; border-radius: 10px;
    font-weight: bold; font-size: 16px; cursor: pointer; color: #1a1a3e;
}
.btn-primary:hover { box-shadow: 0 5px 20px rgba(255,215,0,0.4); }

/* Аватары */
.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

/* Аватар игрока */
.player-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 3px;
    display: block;
    border: 1px solid #ffd70055;
}

.player-avatar-emoji {
    font-size: 24px;
    display: block;
    text-align: center;
    margin-bottom: 3px;
}

.avatar-item {
    text-align: center; padding: 10px; border-radius: 10px;
    border: 2px solid #333; cursor: pointer; transition: all 0.3s;
}
.avatar-item:hover { border-color: #ffd700; background: rgba(255,215,0,0.1); transform: scale(1.05); }
.avatar-item.selected { border-color: #ffd700; background: rgba(255,215,0,0.2); }
.avatar-emoji { font-size: 30px; display: block; }
.avatar-name { font-size: 10px; color: #aaa; margin-top: 3px; }

@media (max-width: 768px) {
    .poker-table-oval { min-height: 400px; border-radius: 30px; }
    .seat { width: 80px; padding: 5px; }
    .community-card { width: 40px; height: 55px; font-size: 16px; }
    .btn { padding: 8px 12px; font-size: 11px; min-width: 50px; }
    .tables-grid { grid-template-columns: 1fr; }
    .lobby-title { font-size: 28px; }
}

/* ============================================
   АДАПТИВНЫЙ ДИЗАЙН ДЛЯ МОБИЛЬНЫХ
   ============================================ */

/* Планшеты */
@media (max-width: 992px) {
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .poker-table-oval {
        min-height: 500px;
    }
    
    .seat {
        width: 100px;
    }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    /* Header */
    .poker-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .balance-info {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .profile-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Lobby */
    .lobby {
        padding: 15px 10px;
    }
    
    .lobby-title {
        font-size: 24px;
    }
    
    .lobby-subtitle {
        font-size: 12px;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 5px;
    }
    
    .table-card {
        min-height: 250px;
        padding: 20px;
    }
    
    .table-mini {
        width: 120px;
        height: 75px;
    }
    
    .seat-mini {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* Poker Table */
    #poker-table {
        padding: 10px;
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .poker-table-oval {
        min-height: 420px;
        border-radius: 50%;
        border-width: 6px;
    }
    
    .seat {
        width: 70px;
        padding: 4px;
        border-radius: 8px;
    }
    
    .seat-0 { top: 1%; }
    .seat-1 { top: 12%; right: 0; }
    .seat-2 { top: 60%; right: 0%; }
    .seat-3 { bottom: 1%; }
    .seat-4 { top: 60%; left: 0%; }
    .seat-5 { top: 12%; left: 0; }
    
    .player-name {
        font-size: 10px;
    }
    
    .player-balance {
        font-size: 9px;
    }
    
    .player-bet {
        font-size: 9px;
    }
    
    .mini-card {
        width: 25px;
        height: 34px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    .community-cards-center {
        gap: 4px;
    }
    
    .community-card {
        width: 35px;
        height: 48px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .pot-display-center {
        font-size: 14px;
        top: 32%;
    }
    
    .game-status-bottom {
        font-size: 10px;
        bottom: 30%;
    }
    
    .timer-bar-container {
        width: 120px;
        top: 25%;
    }
    
    .timer-text-center {
        font-size: 11px;
        top: 27%;
    }
    
    /* Action buttons */
    #actions {
        gap: 5px;
        padding: 10px 0;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 11px;
        min-width: 55px;
    }
    
    #quick-bets {
        gap: 3px;
    }
    
    .quick-bet-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    /* Chat */
    #chat {
        height: 100px;
        font-size: 11px;
    }
    
    /* Action badge */
    .action-badge {
        font-size: 9px;
        padding: 3px 8px;
        top: -12px;
    }
    
    .action-message {
        font-size: 18px;
    }
    
    /* Modals */
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    /* Avatar grid in profile */
    #avatars-list {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 5px;
    }
    
    .avatar-emoji {
        font-size: 24px;
    }
    
    /* Winner overlay */
    #winner-overlay {
        padding: 20px;
    }
    
    #winner-overlay .trophy {
        font-size: 50px;
    }
    
    #winner-overlay .winner-text {
        font-size: 24px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .poker-table-oval {
        min-height: 350px;
        border-radius: 40%;
    }
    
    .seat {
        width: 60px;
        padding: 3px;
    }
    
    .seat-2 { right: 0%; }
    .seat-4 { left: 0%; }
    
    .player-name {
        font-size: 8px;
    }
    
    .mini-card {
        width: 20px;
        height: 28px;
        font-size: 8px;
    }
    
    .community-card {
        width: 28px;
        height: 38px;
        font-size: 11px;
    }
    
    .btn {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 45px;
    }
    
    .table-name {
        font-size: 15px;
    }
    
    .table-info {
        gap: 8px;
    }
    
    .table-info-item {
        font-size: 9px;
    }
    
    .table-info-item .value {
        font-size: 12px;
    }
}

/* Альбомная ориентация телефона */
@media (max-width: 768px) and (orientation: landscape) {
    .poker-table-oval {
        min-height: 300px;
    }
    
    .seat {
        width: 80px;
    }
    
    .community-card {
        width: 30px;
        height: 40px;
        font-size: 12px;
    }
    
    #actions {
        padding: 5px 0;
    }
    
    .btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}
/* Исправление для сиденья с аватаром */
.seat img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 3px;
    display: block;
    border: 2px solid #ffd70055;
}

.seat .avatar-emoji {
    font-size: 28px;
    display: block;
    text-align: center;
    margin-bottom: 3px;
}

.seat.dealer::before {
    content: '🟡';
    font-size: 8px;
    position: absolute;
    top: 2px;
    right: 3px;
    z-index: 5;
    line-height: 1;
}

.seat-0 { margin-left: -60px; transform: none; }
.seat-2 { margin-top: -50px; transform: none; }
.seat-3 { margin-left: -60px; transform: none; }
.seat-4 { margin-top: -50px; transform: none; }

@media (max-width: 768px) {
    .seat img {
        width: 25px;
        height: 25px;
    }
    .seat .avatar-emoji {
        font-size: 20px;
    }
    .seat-0 { margin-left: -35px; }
    .seat-3 { margin-left: -35px; }
    .seat-2 { margin-top: -30px; }
    .seat-4 { margin-top: -30px; }
}

/* Полоска быстрых ставок */
#quick-bets {
    display: none;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    margin-top: 5px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid rgba(255,215,0,0.2);
}

.quick-bet-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.quick-bet-btn:hover {
    background: rgba(255,215,0,0.2);
    border-color: #ffd700;
}

.quick-bet-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
