/**
 * Texas Hold'em Poker - Stylesheet
 * Main CSS file for the poker application
 */

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

:root {
    --header-height: 60px;
    --footer-height: 140px;
    --primary-gold: #ffd700;
    --felt-green: #2d5016;
    --felt-dark: #1e3a0f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========== STICKY HEADER ========== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.player-info .avatar {
    font-size: 18px;
}

.player-info .name {
    font-weight: bold;
    color: #ecf0f1;
}

.player-info .chips {
    color: var(--primary-gold);
    font-weight: bold;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.game-info .phase {
    background: rgba(52, 152, 219, 0.3);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-info .phase.preflop { color: #9b59b6; }
.game-info .phase.flop { color: #2ecc71; }
.game-info .phase.turn { color: #f39c12; }
.game-info .phase.river { color: #e74c3c; }
.game-info .phase.showdown { color: #ffd700; }
.game-info .phase.waiting { color: #3498db; }

.game-info .hand-num {
    color: #7f8c8d;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ready {
    background: linear-gradient(145deg, #27ae60, #1e8449);
    color: white;
    animation: pulse-ready 1.5s infinite;
}

.btn-ready.active {
    background: linear-gradient(145deg, #3498db, #2980b9);
    animation: none;
}

.btn-leave {
    background: linear-gradient(145deg, #7f8c8d, #6c7a7d);
    color: white;
}

.btn-rebuy {
    background: linear-gradient(145deg, #f39c12, #d68910);
    color: white;
    animation: pulse-rebuy 2s infinite;
}

.btn-sitout {
    background: linear-gradient(145deg, #f4d03f, #d4ac0d);
    color: #2c3e50;
}

.btn-sitout:hover {
    background: linear-gradient(145deg, #f7dc6f, #f4d03f);
}

.btn-backin {
    background: linear-gradient(145deg, #27ae60, #1e8449);
    color: white;
    animation: pulse-ready 1.5s infinite;
}

@keyframes pulse-ready {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(39, 174, 96, 0); }
}

@keyframes pulse-rebuy {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(243, 156, 18, 0); }
}

.timeout-warning {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    animation: pulse-warning 0.5s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========== TABLE AREA ========== */
.table-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 10px) 10px calc(var(--footer-height) + 90px);
    overflow: visible;
}

.table-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    max-height: 100%;
}

.poker-table {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    aspect-ratio: 2.2/1;
    background: linear-gradient(145deg, var(--felt-green), var(--felt-dark));
    border-radius: 50%;
    border: 12px solid #5c4033;
    box-shadow: 0 0 40px rgba(0,0,0,0.6), inset 0 0 40px rgba(0,0,0,0.4),
                0 0 0 4px #3d2817, 0 0 0 6px #2a1c10;
}

.table-felt {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.pot-display {
    background: rgba(0,0,0,0.6);
    padding: 6px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 2px solid var(--primary-gold);
}

.pot-label {
    font-size: 10px;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pot-amount {
    font-size: 22px;
    color: var(--primary-gold);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.community-cards {
    display: flex;
    gap: 6px;
    justify-content: center;
    min-height: 70px;
}

/* ========== CARDS ========== */
.card {
    width: 45px;
    height: 65px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    position: relative;
}

.card.red { color: #e74c3c; }
.card.black { color: #2c3e50; }

.card-back {
    width: 45px;
    height: 65px;
    background: linear-gradient(145deg, #2980b9, #1a5276);
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back::after {
    content: '';
    width: 30px;
    height: 45px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.1) 3px,
        rgba(255,255,255,0.1) 6px
    );
}

/* Player cards - smaller */
.player-cards {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 4px;
}

.player-cards .card,
.player-cards .card-back {
    width: 35px;
    height: 50px;
    font-size: 12px;
}

.player-cards .card-back::after {
    width: 22px;
    height: 35px;
}

/* ========== SEATS ========== */
.seat {
    position: absolute;
    z-index: 20;
}

.seat-info {
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border-radius: 10px;
    padding: 8px;
    min-width: 90px;
    text-align: center;
    border: 2px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s;
    position: relative;
}

.seat-info.empty {
    background: rgba(44, 62, 80, 0.5);
    border: 2px dashed #5d6d7e;
    cursor: pointer;
    min-width: 70px;
    padding: 15px 10px;
}

.seat-info.empty:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

.empty-text {
    font-size: 10px;
    color: #7f8c8d;
}

.seat-info.active-turn {
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
    animation: glow-turn 1s infinite alternate;
}

@keyframes glow-turn {
    from { box-shadow: 0 0 15px rgba(243, 156, 18, 0.4); }
    to { box-shadow: 0 0 25px rgba(243, 156, 18, 0.8); }
}

.seat-info.winner {
    border-color: var(--primary-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.seat-info.folded {
    opacity: 0.5;
    border-color: #7f8c8d;
}

.seat-info.sitting-out {
    opacity: 0.6;
    border-color: #f4d03f;
    border-style: dashed;
}

.player-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2px;
}

.player-info-row .avatar {
    font-size: 14px;
}

.player-name {
    font-size: 11px;
    font-weight: bold;
    color: #ecf0f1;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-chips {
    font-size: 11px;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Seat positions - Desktop (horizontal table) */
/* Seats positioned relative to table-container, which is larger than the actual table */
.seat-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.seat-2 { top: 25%; right: 5%; }
.seat-3 { bottom: 25%; right: 5%; }
.seat-4 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.seat-5 { bottom: 25%; left: 5%; }
.seat-6 { top: 25%; left: 5%; }

/* Dealer button */
.dealer-button {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #f1c40f, #d4ac0d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: #2c3e50;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    z-index: 25;
    border: 2px solid #fff;
}

/* Dealer button positions - placed near seats but not overlapping cards */
.dealer-pos-1 { top: 18%; left: 40%; }
.dealer-pos-2 { top: 30%; right: 18%; }
.dealer-pos-3 { bottom: 30%; right: 18%; }
.dealer-pos-4 { bottom: 18%; left: 55%; }
.dealer-pos-5 { bottom: 30%; left: 18%; }
.dealer-pos-6 { top: 30%; left: 18%; }

/* Blind/Ready chips */
.blind-chip {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.blind-chip.sb {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
}

.blind-chip.bb {
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
    color: white;
}

.blind-chip.ready {
    background: linear-gradient(145deg, #27ae60, #1e8449);
    color: white;
    width: auto;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 7px;
}

.blind-chip.not-ready {
    background: linear-gradient(145deg, #7f8c8d, #6c7a7d);
    color: white;
    font-size: 10px;
}

/* Player bet chips */
.player-bet-chip {
    position: absolute;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 15;
}

.bet-pos-1 { top: 28%; left: 50%; transform: translateX(-50%); }
.bet-pos-2 { top: 35%; right: 24%; }
.bet-pos-3 { bottom: 35%; right: 24%; }
.bet-pos-4 { bottom: 28%; left: 50%; transform: translateX(-50%); }
.bet-pos-5 { bottom: 35%; left: 24%; }
.bet-pos-6 { top: 35%; left: 24%; }

/* Timer bar */
.timer-bar {
    height: 3px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: #2ecc71;
    transition: width 0.5s linear;
}

.timer-fill.warning { background: #f39c12; }
.timer-fill.danger { background: #e74c3c; }

/* Status badges */
.status-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.allin {
    background: #e74c3c;
    color: white;
}

.status-badge.folded {
    background: #7f8c8d;
    color: white;
}

.status-badge.sitout {
    background: #f4d03f;
    color: #2c3e50;
}

/* Action indicators */
.last-action {
    position: absolute;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    z-index: 30;
    animation: action-pop 3s forwards;
    white-space: nowrap;
}

@keyframes action-pop {
    0% { opacity: 0; transform: scale(0.5) translateY(10px); }
    15% { opacity: 1; transform: scale(1) translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}

.last-action.fold { background: #7f8c8d; }
.last-action.check { background: #3498db; }
.last-action.call { background: #2ecc71; }
.last-action.raise, .last-action.bet { background: #f39c12; }
.last-action.allin { background: #e74c3c; }
.last-action.timeout { background: #95a5a6; }
.last-action.kicked { background: #c0392b; font-size: 10px; }

.action-indicator-pos-1 { top: 15%; left: 50%; transform: translateX(-50%); }
.action-indicator-pos-2 { top: 28%; right: 15%; }
.action-indicator-pos-3 { bottom: 28%; right: 15%; }
.action-indicator-pos-4 { bottom: 15%; left: 50%; transform: translateX(-50%); }
.action-indicator-pos-5 { bottom: 28%; left: 15%; }
.action-indicator-pos-6 { top: 28%; left: 15%; }

/* Winner overlay */
.winner-overlay {
    position: absolute;
    padding: 10px 20px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.95), rgba(218, 165, 32, 0.95));
    border-radius: 15px;
    text-align: center;
    z-index: 50;
    animation: winner-pop 4s forwards;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

@keyframes winner-pop {
    0% { opacity: 0; transform: scale(0.5); }
    15% { opacity: 1; transform: scale(1.1); }
    25% { transform: scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.winner-text {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.winner-amount {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

.winner-hand {
    font-size: 11px;
    color: #34495e;
}

.winner-pos-1 { top: 12%; left: 50%; transform: translateX(-50%); }
.winner-pos-2 { top: 28%; right: 10%; }
.winner-pos-3 { bottom: 28%; right: 10%; }
.winner-pos-4 { bottom: 12%; left: 50%; transform: translateX(-50%); }
.winner-pos-5 { bottom: 28%; left: 10%; }
.winner-pos-6 { top: 28%; left: 10%; }

/* ========== STICKY FOOTER (Betting Controls) ========== */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background: linear-gradient(0deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid #3498db;
    padding: 10px 15px;
    z-index: 100;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.5);
}

.betting-controls {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.betting-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bet-btn {
    flex: 1;
    max-width: 120px;
    padding: 12px 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.bet-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.bet-btn:not(:disabled):hover {
    transform: translateY(-2px);
}

.bet-btn:not(:disabled):active {
    transform: translateY(0);
}

.bet-btn.fold {
    background: linear-gradient(145deg, #7f8c8d, #6c7a7d);
    color: white;
}

.bet-btn.check-call {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    color: white;
}

.bet-btn.raise {
    background: linear-gradient(145deg, #f39c12, #d68910);
    color: white;
}

.bet-btn.allin {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
}

.raise-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.raise-presets {
    display: flex;
    gap: 5px;
}

.preset-btn {
    padding: 6px 10px;
    border: 1px solid #3498db;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.preset-btn:not(:disabled):hover {
    background: rgba(52, 152, 219, 0.4);
}

.raise-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.raise-input {
    width: 100px;
    padding: 8px 10px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.raise-input:disabled {
    opacity: 0.4;
}

.raise-slider {
    flex: 1;
    max-width: 150px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(52, 152, 219, 0.3);
    border-radius: 3px;
    outline: none;
}

.raise-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.raise-slider:disabled {
    opacity: 0.4;
}

.spectator-message {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    padding: 20px;
}

.spectator-message .highlight {
    color: #3498db;
    font-weight: bold;
}

/* ========== JOIN MODAL ========== */
.join-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.join-form {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #3498db;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 300px;
    width: 90%;
}

.join-form h2 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 22px;
}

.join-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.join-form input::placeholder {
    color: #7f8c8d;
}

.join-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, #27ae60, #1e8449);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.join-form button:hover {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 10px;
}

/* ========== HELP BUTTON ========== */
.help-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #3498db;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-btn:hover {
    background: rgba(52, 152, 219, 0.4);
    transform: scale(1.1);
}

/* ========== HELP MODAL ========== */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.help-content {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #3498db;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.help-content h2 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.help-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.help-close:hover {
    color: #e74c3c;
}

.help-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-section {
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.help-section h3 {
    color: #3498db;
    font-size: 14px;
    margin-bottom: 6px;
}

.help-section p {
    color: #bdc3c7;
    font-size: 12px;
    line-height: 1.5;
}

/* ========== NOTIFICATION FEED ========== */
.notification-feed {
    position: fixed;
    bottom: var(--footer-height);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80px;
    overflow-y: auto;
    background: linear-gradient(0deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-top: 1px solid rgba(52, 152, 219, 0.3);
    padding: 6px 15px;
    z-index: 90;
    font-size: 12px;
}

.notification-feed::-webkit-scrollbar {
    width: 4px;
}

.notification-feed::-webkit-scrollbar-track {
    background: transparent;
}

.notification-feed::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 2px;
}

.notification-item {
    padding: 4px 0;
    color: #bdc3c7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notif-player {
    font-weight: bold;
    color: #ecf0f1;
}

.notif-amount {
    color: #2ecc71;
    font-weight: bold;
}

.notif-card {
    font-weight: bold;
}

.notif-card.red {
    color: #e74c3c;
}

.notif-card.black {
    color: #ecf0f1;
}

/* Notification type colors */
.notification-join .notif-player { color: #3498db; }
.notification-leave .notif-player { color: #7f8c8d; }
.notification-fold { color: #95a5a6; }
.notification-winner { color: #f1c40f; font-weight: bold; }
.notification-winner .notif-player { color: #f1c40f; }
.notification-allin { color: #e74c3c; }
.notification-kicked { color: #e74c3c; }
.notification-timeout { color: #f39c12; }
.notification-phase { color: #9b59b6; }
.notification-newhand { color: #3498db; font-weight: bold; text-align: center; }

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    :root {
        --header-height: 50px;
        --footer-height: 100px;
    }

    .header-logo {
        font-size: 14px;
    }

    .player-info {
        padding: 4px 8px;
        font-size: 11px;
    }

    .player-info .avatar {
        font-size: 14px;
    }

    .game-info {
        display: none;
    }

    .header-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .help-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .help-content {
        padding: 20px;
        max-height: 75vh;
    }

    .help-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .help-section {
        padding: 10px 12px;
    }

    .help-section h3 {
        font-size: 13px;
    }

    .help-section p {
        font-size: 11px;
    }

    /* Mobile notification feed */
    .notification-feed {
        max-height: 60px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .notification-item {
        padding: 2px 0;
    }

    /* Mobile footer - more compact */
    .sticky-footer {
        padding: 8px 10px;
    }

    .betting-controls {
        gap: 6px;
    }

    .spectator-message {
        padding: 10px;
        font-size: 13px;
    }

    /* Mobile table area */
    .table-area {
        padding: calc(var(--header-height) + 5px) 5px calc(var(--footer-height) + 70px);
    }

    /* Mobile table - compact vertical layout */
    .table-container {
        width: 95%;
        max-width: 320px;
        aspect-ratio: 3/4;
        margin: 0 auto;
    }

    .poker-table {
        width: 55%;
        aspect-ratio: 2/3;
        border-radius: 40%;
        border-width: 8px;
    }

    .table-felt {
        border-radius: 38%;
    }

    .pot-display {
        padding: 3px 10px;
        margin-bottom: 5px;
    }

    .pot-label {
        font-size: 7px;
    }

    .pot-amount {
        font-size: 14px;
    }

    .community-cards {
        gap: 3px;
        min-height: 45px;
    }

    .card {
        width: 28px;
        height: 40px;
        font-size: 10px;
    }

    .card-back {
        width: 28px;
        height: 40px;
    }

    .card-back::after {
        width: 18px;
        height: 28px;
    }

    .player-cards .card,
    .player-cards .card-back {
        width: 22px;
        height: 32px;
        font-size: 8px;
    }

    .player-cards .card-back::after {
        width: 14px;
        height: 22px;
    }

    /* Compact seat tiles */
    .seat-info {
        padding: 3px 4px;
        min-width: 50px;
        max-width: 55px;
        border-radius: 6px;
    }

    .seat-info.empty {
        min-width: 40px;
        max-width: 45px;
        padding: 6px 4px;
    }

    .empty-text {
        font-size: 7px;
    }

    .player-info-row .avatar {
        font-size: 10px;
    }

    .player-name {
        font-size: 8px;
        max-width: 35px;
    }

    .player-chips {
        font-size: 7px;
    }

    .player-cards {
        gap: 1px;
        margin-top: 2px;
    }

    /* Mobile seat positions - evenly distributed around vertical table */
    /* All positions use positive values to stay within container bounds */
    .seat-1 { top: 2%; left: 50%; transform: translateX(-50%); }
    .seat-2 { top: 22%; right: 2%; }
    .seat-3 { bottom: 22%; right: 2%; }
    .seat-4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
    .seat-5 { bottom: 22%; left: 2%; }
    .seat-6 { top: 22%; left: 2%; }

    .dealer-button {
        width: 16px;
        height: 16px;
        font-size: 7px;
    }

    /* Mobile dealer positions - offset from seats to not block cards */
    .dealer-pos-1 { top: 14%; left: 38%; }
    .dealer-pos-2 { top: 28%; right: 24%; }
    .dealer-pos-3 { bottom: 28%; right: 24%; }
    .dealer-pos-4 { bottom: 14%; left: 56%; }
    .dealer-pos-5 { bottom: 28%; left: 24%; }
    .dealer-pos-6 { top: 28%; left: 24%; }

    .blind-chip {
        width: 14px;
        height: 14px;
        font-size: 6px;
        bottom: -2px;
        right: -2px;
    }

    .player-bet-chip {
        padding: 2px 4px;
        font-size: 8px;
    }

    .bet-pos-1 { top: 22%; left: 50%; transform: translateX(-50%); }
    .bet-pos-2 { top: 32%; right: 28%; }
    .bet-pos-3 { bottom: 32%; right: 28%; }
    .bet-pos-4 { bottom: 22%; left: 50%; transform: translateX(-50%); }
    .bet-pos-5 { bottom: 32%; left: 28%; }
    .bet-pos-6 { top: 32%; left: 28%; }

    .action-indicator-pos-1 { top: 12%; left: 50%; transform: translateX(-50%); }
    .action-indicator-pos-2 { top: 26%; right: 15%; }
    .action-indicator-pos-3 { bottom: 26%; right: 15%; }
    .action-indicator-pos-4 { bottom: 12%; left: 50%; transform: translateX(-50%); }
    .action-indicator-pos-5 { bottom: 26%; left: 15%; }
    .action-indicator-pos-6 { top: 26%; left: 15%; }

    .winner-pos-1 { top: 10%; left: 50%; transform: translateX(-50%); }
    .winner-pos-2 { top: 25%; right: 12%; }
    .winner-pos-3 { bottom: 25%; right: 12%; }
    .winner-pos-4 { bottom: 10%; left: 50%; transform: translateX(-50%); }
    .winner-pos-5 { bottom: 25%; left: 12%; }
    .winner-pos-6 { top: 25%; left: 12%; }

    /* Mobile betting controls */
    .betting-buttons {
        gap: 6px;
    }

    .bet-btn {
        padding: 10px 6px;
        font-size: 12px;
        max-width: 90px;
    }

    .raise-controls {
        gap: 6px;
    }

    .preset-btn {
        padding: 4px 6px;
        font-size: 10px;
    }

    .raise-input {
        width: 80px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .raise-slider {
        max-width: 100px;
    }

    .last-action {
        font-size: 9px;
        padding: 3px 8px;
    }

    .winner-overlay {
        padding: 8px 15px;
    }

    .winner-text {
        font-size: 14px;
    }

    .winner-amount {
        font-size: 16px;
    }

    .winner-hand {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .header-left {
        gap: 6px;
    }

    .header-logo {
        font-size: 12px;
    }

    .player-info {
        padding: 3px 6px;
        font-size: 10px;
    }

    .preset-btn {
        display: none;
    }

    .raise-presets {
        display: none;
    }
}
