/* =========================================================
   GAME SCREEN
   ========================================================= */

#game-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: unset;
    padding: 8px 10px 10px;
    background: #111;
    transition: background 0.5s ease;
    overflow: hidden;
    box-sizing: border-box;
}

/* TOP BAR */
#top-bar {
    width: 100%;
    max-width: 760px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    margin-bottom: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

#top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

#top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Room code chip */
#tb-room-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255,215,0,0.10);
    border: 1px dashed rgba(255,215,0,0.45);
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}

.chip-label {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

#tb-room {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: gold;
    white-space: nowrap;
}

/* Pot chip */
#tb-pot-chip {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    min-width: 0;
}

#tb-pot {
    font-size: 13px;
    font-weight: bold;
    color: gold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Online badge with live status dot */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    background: rgba(80,200,80,0.15);
    color: #9dff9d;
    border: 1px solid rgba(80,200,80,0.35);
    border-radius: 20px;
    padding: 4px 9px;
    white-space: nowrap;
}

.online-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7eff7e;
    box-shadow: 0 0 6px rgba(126,255,126,0.9);
    animation: online-pulse 2s ease-in-out infinite;
}

.online-badge.zero::before {
    background: #888;
    box-shadow: none;
    animation: none;
}

@keyframes online-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

#mute-btn, #settings-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

#mute-btn:hover    { background: rgba(255,255,255,0.2); }
#settings-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(30deg); }

.game-transition-loader{position:fixed;inset:0;z-index:2500;align-items:center;justify-content:center;padding:20px;background:radial-gradient(circle at 50% 38%,#0c2638ee,#02070df7 68%);backdrop-filter:blur(10px)}.game-transition-card{width:min(460px,92vw);display:grid;justify-items:center;gap:13px;padding:38px 30px;border:1px solid #37556b;border-radius:18px;background:linear-gradient(145deg,#081925,#06121c);box-shadow:0 28px 90px #000d;text-align:center}.game-transition-card>img{width:132px;height:132px;object-fit:contain;filter:drop-shadow(0 10px 24px #000)}#start-countdown-number{color:#f5f7fb;font-size:30px;font-weight:900;line-height:1.1}#start-countdown-label{min-height:24px;color:#afbdca;font-size:16px}.game-transition-progress{width:min(330px,75vw);height:12px;overflow:hidden;border-radius:20px;background:#233a4d}.game-transition-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffbd00,#ffe000);box-shadow:0 0 18px #ffd80099;transition:width .18s linear}#game-transition-percent{color:#ffd900;font-weight:800}@media(max-width:480px){.game-transition-card{padding:30px 20px}.game-transition-card>img{width:105px;height:105px}#start-countdown-number{font-size:25px}#start-countdown-label{font-size:14px}}
