* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0f16;
    font-family: 'Inter', sans-serif;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.poker-fullscreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* === НАВИГАЦИЯ === */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(18, 20, 32, 0.95);
    border-bottom: 1px solid #2a2c47;
    z-index: 10;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: #1a1c2a;
    border: 1px solid #2d2f4a;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #2d2f4a;
    color: #fff;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span {
    color: #e74c3c;
}

.balance-box {
    background: #1a1c2a;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #e74c3c;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.balance-box span:first-child {
    color: #e74c3c;
}

.text-gold {
    color: #ffd700;
    font-size: 18px;
}

/* === ИГРОВОЙ СТОЛ (СУКНО) === */
.poker-viewport {
    flex-grow: 1;
    position: relative;
    background: radial-gradient(circle at center, #113a5c 0%, #06111a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.table-felt {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
    position: relative;
}

/* === ЗОНЫ КАРТ === */
.player-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.zone-label {
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.combo-text {
    color: #ffd700;
    margin-left: 8px;
    font-weight: 900;
}

.board-zone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.cards-container {
    display: flex;
    justify-content: center;
    min-height: 126px;
    gap: 10px;
}

/* Карты на руках немного внахлест */
#dealer-cards .playing-card,
#player-cards .playing-card {
    margin-left: -20px;
}

#dealer-cards .playing-card:first-child,
#player-cards .playing-card:first-child {
    margin-left: 0;
}

/* Карты на борде лежат ровно */
.board-container {
    gap: 15px;
    margin-left: 0;
}

.center-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffd700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 30px;
    border-radius: 10px;
    border: 1px solid #ffd700;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s;
}

.center-message.show {
    opacity: 1;
}

/* === КАРТЫ И СПРАЙТ-ЛИСТ === */
.playing-card {
    width: 90px;
    height: 126px;
    border-radius: 6px;
    overflow: hidden;
    color: #111827;
    background: linear-gradient(145deg, #fff, #eef0f4);
    border: 1px solid rgba(17, 24, 39, 0.22);
    box-shadow: -3px 5px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
    animation: dropCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.playing-card.red {
    color: #c81e3a;
}

.card-corner {
    position: absolute;
    top: 7px;
    left: 8px;
    display: grid;
    justify-items: center;
    font-size: 16px;
    font-weight: 900;
    line-height: 0.9;
}

.card-corner.bottom {
    top: auto;
    right: 8px;
    bottom: 7px;
    left: auto;
    transform: rotate(180deg);
}

.card-corner small {
    margin-top: 3px;
    font-size: 13px;
}

.card-suit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 39px;
    transform: translate(-50%, -50%);
}

@keyframes dropCard {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.playing-card.hidden {
    background-image: none;
    background: repeating-linear-gradient(45deg, #0b1a2e, #0b1a2e 10px, #173254 10px, #173254 20px);
    border: 3px solid #fff;
}

.playing-card.hidden .card-corner,
.playing-card.hidden .card-suit-center {
    display: none;
}

/* === ПАНЕЛЬ УПРАВЛЕНИЯ === */
.poker-controls {
    background: #121420;
    border-top: 1px solid #2d2f4a;
    padding: 20px;
    z-index: 10;
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.bet-info {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 180px;
}

.chips-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-bet-input {
    background: #1a1c2a;
    border: 1px solid #373a5e;
    border-radius: 8px;
    color: #fff;
    height: 46px;
    padding: 0 15px;
    width: 110px;
    font-weight: 700;
    outline: none;
}

.custom-bet-input::-webkit-inner-spin-button {
    display: none;
}

.chip-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1a1c2a;
    border: 2px dashed #ffd700;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.chip-btn:hover,
.chip-btn.active {
    background: #ffd700;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.chip-btn.clear-btn {
    border-color: #ef4444;
    color: #ef4444;
    font-size: 11px;
}

.chip-btn.clear-btn:hover {
    background: #ef4444;
    color: #fff;
}

.game-actions {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-end;
}

.action-btn {
    padding: 0 25px;
    height: 50px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:active:not(:disabled) {
    transform: translateY(2px);
}

.btn-deal {
    background: linear-gradient(135deg, #52be80, #27ae60);
    box-shadow: 0 4px 15px rgba(82, 190, 128, 0.3);
}

.btn-fold {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-call {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* ==========================================================================
МОДАЛЬНОЕ ОКНО КОМБИНАЦИЙ
========================================================================== */
.combo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 15, 22, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-modal-card {
    background: #1a1c2a;
    border: 1px solid #2d2f4a;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-combo-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.close-combo-btn:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.combo-title {
    text-align: center;
    color: #ffd700;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 5px;
}

.combo-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 25px;
}

.combo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combo-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #121420;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #2d2f4a;
    transition: 0.2s;
}

.combo-item:hover {
    border-color: #373a5e;
    background: #1e2030;
    transform: translateX(5px);
}

.c-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2d2f4a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.c-info {
    display: flex;
    flex-direction: column;
}

.c-name {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.c-desc {
    color: #64748b;
    font-size: 12px;
}

.combo-item.gold-item {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.combo-item.gold-item .c-rank {
    background: #ffd700;
    color: #000;
}

.combo-item.gold-item .c-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
