/* -----------------------------------------------------------------------
   CSS custom properties
   ----------------------------------------------------------------------- */
:root {
    /* Table */
    --felt:          #327a38;
    --felt-dark:     #122c14;
    --table-border:  #8b6535;

    /* Cards */
    --card-bg:       #fff;
    --card-border:   #bbb;
    --card-shadow:   2px 2px 5px rgba(0,0,0,0.35);

    /* Suit colors */
    --red:           #cc2222;
    --black:         #111;

    /* Text */
    --text-light:    #f0f0f0;
    --text-dim:      #8a93a8;

    /* Chips */
    --chip-gold:     #c8a800;

    /* Game action buttons */
    --btn-default:   #2a4a2a;
    --btn-hover:     #3a6a3a;
    --btn-fold:      #6a1a1a;
    --btn-fold-hov:  #8a2a2a;

    /* Page / panel */
    --page-bg:       #060d1a;
    --panel-bg:      rgba(5, 10, 22, 0.97);
    --panel-border:  rgba(200, 168, 0, 0.18);

    /* Denomination chip colors */
    --chip-1:   #ddd0b8;
    --chip-5:   #c0392b;
    --chip-25:  #27ae60;
    --chip-100: #2c3e50;
    --chip-500: #8e44ad;
}

/* -----------------------------------------------------------------------
   Reset + base
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
    background-color: var(--page-bg);
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.018) 1px, transparent 1px),
        radial-gradient(ellipse 80% 65% at 50% 42%, rgba(12,30,80,0.55) 0%, transparent 68%),
        radial-gradient(ellipse at 15% 85%, rgba(100,25,130,0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 20%, rgba(30,60,130,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 60%, #0b1830 0%, #060d1a 55%, #030810 100%);
    background-size: 34px 34px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text-light);
    font-family: 'Lato', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* -----------------------------------------------------------------------
   Background suit watermarks
   ----------------------------------------------------------------------- */
#bg-suits {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.suit-glyph {
    position: absolute;
    font-family: 'Georgia', serif;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.038;
    transform: rotate(var(--rot, 0deg));
    animation-name: suit-breathe;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 8s;
    animation-delay: 0s;
    user-select: none;
}

.suit-glyph.red {
    color: rgba(255, 170, 170, 0.85);
    opacity: 0.030;
}

@keyframes suit-breathe {
    0%, 100% {
        opacity: 0.028;
        transform: rotate(var(--rot, 0deg)) scale(1);
    }
    50% {
        opacity: 0.072;
        transform: rotate(var(--rot, 0deg)) scale(1.055);
    }
}

/* -----------------------------------------------------------------------
   Game start overlay
   ----------------------------------------------------------------------- */
#game-start-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(3, 7, 18, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.game-start-suits {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: var(--chip-gold);
    opacity: 0.75;
    letter-spacing: 8px;
}

.game-start-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.game-start-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(200, 168, 0, 0.6);
    margin-top: 4px;
}

/* -----------------------------------------------------------------------
   Screen management
   ----------------------------------------------------------------------- */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.screen.active { display: flex; }

/* -----------------------------------------------------------------------
   Site title — "Parker Hill Poker" two-line logo with shimmer animation
   ----------------------------------------------------------------------- */
.site-title {
    position: relative;
    text-align: center;
    line-height: 1.18;
    margin-bottom: 4px;
}

/* Soft ambient glow behind the title that pulses with the shimmer */
.site-title::before {
    content: '';
    position: absolute;
    inset: -24px -50px;
    background: radial-gradient(ellipse 80% 80% at 50% 50%,
        rgba(200,168,0,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: title-glow 5s ease-in-out infinite;
    z-index: 0;
}

.site-title-line {
    position: relative;
    z-index: 1;
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    /* Wider gradient so the sweep is visible as it animates */
    background: linear-gradient(90deg,
        #9a7000 0%,
        #c8a800 10%,
        #ffe07a 26%,
        #fff8f0 44%,
        #e0ccff 58%,
        #b888e8 72%,
        #8e44ad 84%,
        #9a7000 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 5.5s ease-in-out infinite;
}

@keyframes title-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes title-glow {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 1.0; }
}

/* -----------------------------------------------------------------------
   Home screen — divider and room list
   ----------------------------------------------------------------------- */
.home-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(200, 168, 0, 0.35);
    font-size: 0.78rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 2px 0;
    width: 100%;
}
.home-divider::before,
.home-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,168,0,0.2), transparent);
}

#room-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.room-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(200,168,0,0.12);
    border-radius: 8px;
    gap: 12px;
    transition: background 0.15s, border-color 0.15s;
}

.room-row:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(200,168,0,0.26);
}

.room-info {
    color: var(--text-light);
    font-size: 0.86rem;
    opacity: 0.88;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* -----------------------------------------------------------------------
   Chip denomination colors
   ----------------------------------------------------------------------- */
/* (Already defined in :root above) */

/* -----------------------------------------------------------------------
   Chip dot — base style for all denomination circles
   ----------------------------------------------------------------------- */
.chip-dot {
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.22);
}
.chip-dot.chip-1   { background: var(--chip-1);   border-color: rgba(0,0,0,0.25); }
.chip-dot.chip-5   { background: var(--chip-5);   }
.chip-dot.chip-25  { background: var(--chip-25);  }
.chip-dot.chip-100 { background: var(--chip-100); border-color: rgba(255,255,255,0.35); }
.chip-dot.chip-500 { background: var(--chip-500); }

/* -----------------------------------------------------------------------
   Opponent chip pile — compact overlapping pips showing denominations
   ----------------------------------------------------------------------- */
.chip-pile {
    display: flex;
    align-items: center;
    margin-top: 4px;
}
.chip-pile .chip-dot {
    width:  10px;
    height: 10px;
}
.chip-pile .chip-dot + .chip-dot {
    margin-left: -3px;
}

/* -----------------------------------------------------------------------
   My seat chip breakdown — denomination groups with count labels
   ----------------------------------------------------------------------- */
.chip-breakdown {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 130px;
}
.chip-group {
    display: flex;
    align-items: center;
    gap: 2px;
}
.chip-group .chip-dot {
    width:  13px;
    height: 13px;
}
.chip-count {
    font-size: 10px;
    color: rgba(255,255,255,0.62);
    font-weight: 600;
    line-height: 1;
}

/* -----------------------------------------------------------------------
   Game screen — fixed-coordinate canvas
   position / width / height / transform are all set by layout.js applyScale().
   The canvas is 1000×620 (landscape) or 620×900 (portrait).
   Every element inside uses plain px — no clamp(), vw, or vh.
   ----------------------------------------------------------------------- */
#screen-game {
    position: absolute;
    z-index: 1;
    overflow: hidden;
}

/* -----------------------------------------------------------------------
   Table oval — visual-only; position and size are set by layout.js
   ----------------------------------------------------------------------- */
#table {
    position: absolute;
    z-index: 1; /* creates stacking context — traps painter's-algo seat z-indices within the table */
    background:
        repeating-linear-gradient(
             45deg, transparent, transparent 13px,
             rgba(0,0,0,0.026) 13px, rgba(0,0,0,0.026) 14px
        ),
        repeating-linear-gradient(
            -45deg, transparent, transparent 13px,
            rgba(0,0,0,0.026) 13px, rgba(0,0,0,0.026) 14px
        ),
        radial-gradient(ellipse at 50% 40%,
            #52b85a 0%,
            #327a38 28%,
            #1d5420 60%,
            var(--felt-dark) 100%);
    border: 16px solid var(--table-border);
    box-shadow:
        0 0 0 3px #2a1200,
        0 0 0 5px rgba(185,145,50,0.30),
        0 14px 65px rgba(0,0,0,0.88),
        0 4px 18px rgba(0,0,0,0.65),
        inset 0 0 100px rgba(0,0,0,0.22),
        inset 0 3px 12px rgba(255,255,255,0.07);
}

/* Inner pad line — the thin action-line ring classic to casino tables */
#table::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    border: 1.5px solid rgba(255, 245, 200, 0.18);
    pointer-events: none;
}

/* -----------------------------------------------------------------------
   Board center — uses --cx / --cy CSS vars set by layout.js on #table
   ----------------------------------------------------------------------- */
#deck-anchor {
    position: absolute;
    left: var(--cx);
    top:  var(--cy);
    width: 0; height: 0;
    pointer-events: none;
}

#board-center {
    position: absolute;
    left: var(--cx);
    top:  var(--cy);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 2;
}

/* Cards row — centered, no pot inline */
#board-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#board-cards {
    display: flex;
    gap: 6px;
    align-items: center;
    perspective: 600px;
}

#phase-label {
    color: rgba(255,255,255,0.40);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------
   Pot badge — centered above board cards in #board-center
   ----------------------------------------------------------------------- */
#pot-label {
    background: rgba(0, 0, 0, 0.76);
    border: 1px solid rgba(200, 168, 0, 0.70);
    border-radius: 20px;
    padding: 4px 18px 5px;
    color: var(--chip-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    text-align: center;
    align-self: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 10px rgba(200,168,0,0.12);
}

/* -----------------------------------------------------------------------
   Cards — landscape sizes (overridden for portrait below)
   ----------------------------------------------------------------------- */
.card {
    width: 42px;
    height: 60px;
    background: #fafafa;
    border: 1.5px solid #c8c8c8;
    border-radius: 6px;
    box-shadow: 1px 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    flex-shrink: 0;
    user-select: none;
}

.card.card-board {
    width: 46px;
    height: 66px;
}

.card.red   { color: #cc2222; }
.card.black { color: #111; }

.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.card-corner-tl { top: 4px; left: 5px; }
.card-corner-br { bottom: 4px; right: 5px; transform: rotate(180deg); }

.card-rank      { font-size: 11px; font-weight: 800; line-height: 1; }
.card-suit-sm   { font-size: 9px;  line-height: 1; }
.rank-ten       { font-size: 9px;  letter-spacing: -0.5px; }

.card-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
}

.card.card-board .card-rank    { font-size: 13px; }
.card.card-board .card-suit-sm { font-size: 10px; }
.card.card-board .rank-ten     { font-size: 10px; }
.card.card-board .card-center  { font-size: 28px; }

/* Card placeholder slots */
.card-slot {
    width: 42px;
    height: 60px;
    border: 1.5px dashed rgba(255,255,255,0.13);
    border-radius: 6px;
    background: rgba(0,0,0,0.10);
    flex-shrink: 0;
}
.card-slot.card-slot-board {
    width: 46px;
    height: 66px;
}

/* Facedown card — classic burgundy with gold diamond lattice */
.card.facedown {
    background: #6e1425;
    border-color: rgba(200,168,0,0.5);
    overflow: hidden;
}
.card.facedown::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient( 45deg,
            transparent, transparent 6px,
            rgba(200,168,0,0.18) 6px, rgba(200,168,0,0.18) 7px),
        repeating-linear-gradient(-45deg,
            transparent, transparent 6px,
            rgba(200,168,0,0.18) 6px, rgba(200,168,0,0.18) 7px);
}
.card.facedown::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1.5px solid rgba(200,168,0,0.45);
    border-radius: 3px;
}

/* -----------------------------------------------------------------------
   Seats
   ----------------------------------------------------------------------- */
.seat {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Local player — panel on top, cards below (pointing away from table center) */
.seat.seat-me {
    flex-direction: column-reverse;
}

.seat-cards { display: flex; gap: 4px; }

.seat-panel {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 5px 12px 6px;
    text-align: center;
    min-width: 96px;
    transition: box-shadow 0.2s;
}

.seat-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    letter-spacing: 0.2px;
}

.seat-chips {
    font-size: 12px;
    color: var(--chip-gold);
    font-weight: 600;
    white-space: nowrap;
}

.seat-bet {
    font-size: 10px;
    color: #bbb;
    margin-top: 2px;
}

.seat-allin-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ff9933;
    margin-top: 2px;
}

/* Dealer button */
.dealer-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #999;
    box-shadow: 0 1px 5px rgba(0,0,0,0.5);
    color: #111;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating bet chips on the table surface */
#bet-chips { pointer-events: none; }

.bet-chip {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #5a90dd, #1a5ab0 65%, #0a3070);
    border: 2px solid #6ab0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-align: center;
    line-height: 1.1;
    z-index: 5;
}

/* Opponent seats — compact cards and badge */
.seat:not(.seat-me) {
    flex-direction: column-reverse;
}

.seat:not(.seat-me) .card,
.seat:not(.seat-me) .card-slot {
    width:  26px;
    height: 37px;
}

.seat:not(.seat-me) .card-rank,
.seat:not(.seat-me) .rank-ten     { font-size: 6px; }
.seat:not(.seat-me) .card-suit-sm { font-size: 5px; }
.seat:not(.seat-me) .card-center  { font-size: 13px; }

.seat:not(.seat-me) .seat-cards                      { gap: 0; }
.seat:not(.seat-me) .seat-cards > *:not(:first-child) { margin-left: -10px; }

.seat:not(.seat-me) .seat-panel {
    min-width: 0;
    padding: 3px 8px 4px;
}
.seat:not(.seat-me) .seat-name  { font-size: 11px; max-width: 80px; }
.seat:not(.seat-me) .seat-chips { font-size: 10px; }
.seat:not(.seat-me) .seat-bet   { font-size: 9px;  margin-top: 0; }

/* Active seat: amber glow */
.seat.active .seat-panel {
    box-shadow: 0 0 0 2px #f5c542, 0 0 14px 3px rgba(245,197,66,0.45);
}

/* Winner seat: gold pulse */
.seat.winner .seat-panel {
    box-shadow: 0 0 0 2px #ffd700, 0 0 22px 5px rgba(255,215,0,0.55);
    animation: winner-pulse 1.4s ease-in-out infinite;
}

@keyframes winner-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #ffd700, 0 0 18px 4px rgba(255,215,0,0.45); }
    50%       { box-shadow: 0 0 0 2px #ffd700, 0 0 30px 8px rgba(255,215,0,0.75); }
}

/* Folded seat */
.seat.folded { opacity: 0.38; }

/* -----------------------------------------------------------------------
   Action controls — absolute in game canvas
   ----------------------------------------------------------------------- */
#controls-area {
    position: absolute;
    bottom: 28px;
    left: var(--table-cx, 50%);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    white-space: nowrap;
    min-width: 300px;
}

#action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

#action-buttons button {
    padding: 10px 22px;
    background: var(--btn-default);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
}

#action-buttons button:hover         { background: var(--btn-hover); }
#action-buttons .btn-fold            { background: var(--btn-fold); }
#action-buttons .btn-fold:hover      { background: var(--btn-fold-hov); }

#action-buttons button.btn-selected {
    box-shadow: 0 0 0 2px #fff;
    background: var(--btn-hover);
}
#action-buttons .btn-fold.btn-selected {
    box-shadow: 0 0 0 2px #ff9999;
    background: var(--btn-fold-hov);
}

#raise-group {
    position: absolute;
    right: calc(100% + 12px);
    bottom: 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    background: rgba(8,12,8,0.82);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 11px 12px;
    backdrop-filter: blur(6px);
    white-space: normal;
}

/* ── Preset buttons ─────────────────────────────────────────── */
#raise-presets {
    display: flex;
    gap: 5px;
}

.btn-preset {
    flex: 1;
    padding: 5px 2px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.btn-preset:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.32);
    color: var(--text-light);
}

.btn-preset.preset-active {
    background: rgba(200,164,72,0.18);
    border-color: #c8a448;
    color: #f0d080;
}

/* All-In preset: red tint */
.btn-preset[data-frac="allin"] {
    background: rgba(110,28,28,0.38);
    border-color: rgba(180,70,70,0.38);
    color: #cc8888;
}
.btn-preset[data-frac="allin"]:hover {
    background: rgba(140,38,38,0.52);
    border-color: rgba(210,90,90,0.55);
    color: #ffaaaa;
}
.btn-preset[data-frac="allin"].preset-active {
    background: rgba(160,40,40,0.5);
    border-color: #cc4444;
    color: #ff9090;
}

/* ── Slider row ─────────────────────────────────────────────── */
#raise-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#raise-min-label,
#raise-max-label {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    min-width: 32px;
}
#raise-max-label { text-align: right; }

#raise-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
}
#raise-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c8a448;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.6);
    transition: transform 0.1s;
}
#raise-slider::-webkit-slider-thumb:active { transform: scale(1.2); }
#raise-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c8a448;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

/* ── Amount display ─────────────────────────────────────────── */
#raise-amount-display {
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

#raise-amount-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #f0d080;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 2px;
}

#submit-turn {
    padding: 10px 34px;
    background: #3a6a3a;
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.1s, opacity 0.1s;
    width: 100%;
}

#submit-turn:not(:disabled):hover { background: #4a8a4a; }
#submit-turn:disabled { opacity: 0.35; cursor: not-allowed; }

/* -----------------------------------------------------------------------
   Ready button — absolute in game canvas
   ----------------------------------------------------------------------- */
#ready-btn {
    position: absolute;
    bottom: 28px;
    left: var(--table-cx, 50%);
    transform: translateX(-50%);
    padding: 12px 44px;
    background: #3a7a3a;
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.1s, opacity 0.1s;
    white-space: nowrap;
}

#ready-btn:not(:disabled):hover { background: #4a9a4a; }
#ready-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* -----------------------------------------------------------------------
   Message banner — absolute in game canvas
   ----------------------------------------------------------------------- */
#message-banner {
    position: absolute;
    bottom: 78px;
    left: var(--table-cx, 50%);
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    text-align: center;
    max-width: 700px;
    white-space: pre-line;
    z-index: 20;
}

/* -----------------------------------------------------------------------
   Chip token — flying animation element, absolute child of #table
   ----------------------------------------------------------------------- */
.chip-token {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f0c040, var(--chip-gold) 60%, #8a6800);
    border: 2px solid #a07800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    color: #2a1800;
    font-size: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
    text-align: center;
    line-height: 1;
    overflow: hidden;
}

.chip-token-win {
    background: radial-gradient(circle at 35% 35%, #fff5a0, #ffd700 60%, #a07800);
    border-color: #c8a000;
    box-shadow: 0 2px 12px rgba(255,215,0,0.65);
}

/* -----------------------------------------------------------------------
   Win overlay — hand result celebration
   ----------------------------------------------------------------------- */
#win-overlay {
    position: absolute;
    inset: 0;
    z-index: 200;
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%,
            rgba(12, 22, 55, 0.90) 0%, rgba(3, 7, 18, 0.96) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(3px);
}

.win-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

/* Multiple winners: horizontal layout */
#win-overlay.multi-winner {
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.win-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #9a7000, #c8a800, #ffe87a, #c8a800, #9a7000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 3s ease-in-out infinite;
}

.win-amount {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.58);
}

.win-hand-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(200, 168, 0, 0.8);
    margin-bottom: 4px;
}

.win-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,168,0,0.3), transparent);
    margin: 2px 0 6px;
}

.win-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Card row with hole-card / board-card groups */
.win-cards-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.win-cards-group {
    display: flex;
    gap: 8px;
}

/* Thin vertical separator between hole cards and board */
.win-cards-sep {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(200,168,0,0.35), transparent);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Larger card variant for win overlay */
.card.card-win {
    width: 62px;
    height: 88px;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.9);
}
.card.card-win .card-rank    { font-size: 14px; }
.card.card-win .card-suit-sm { font-size: 11px; }
.card.card-win .rank-ten     { font-size: 11px; }
.card.card-win .card-center  { font-size: 34px; }

/* 5 cards that form the winning hand — gold glow */
.card.card-win.card-win-highlight {
    box-shadow:
        0 0 0 2px rgba(200, 168, 0, 0.85),
        0 0 18px 4px rgba(200, 168, 0, 0.45),
        2px 4px 16px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* The 2 cards that didn't contribute — subtly dimmed */
.card.card-win.card-win-dim {
    opacity: 0.32;
    filter: saturate(0.4);
}

.win-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.16);
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
}

/* -----------------------------------------------------------------------
   Action toast — per-action notification at top-center of game canvas
   ----------------------------------------------------------------------- */
#action-toast {
    position: absolute;
    bottom: 132px;
    left: var(--table-cx, 50%);
    transform: translateX(-50%);
    background: rgba(8, 10, 18, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 9px 26px 10px;
    text-align: center;
    cursor: pointer;
    z-index: 40;
    min-width: 160px;
    max-width: 420px;
    pointer-events: auto;
    backdrop-filter: blur(6px);
    user-select: none;
}

#action-toast.your-turn {
    border-color: rgba(74, 222, 128, 0.75);
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, 0.25),
        0 0 22px rgba(74, 222, 128, 0.28);
    animation: toast-pulse 1.3s ease-in-out infinite;
}

@keyframes toast-pulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(74,222,128,0.25), 0 0 18px rgba(74,222,128,0.25);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(74,222,128,0.45), 0 0 30px rgba(74,222,128,0.45);
    }
}

.toast-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.toast-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.toast-sub.your-turn-sub {
    color: rgba(74, 222, 128, 0.9);
    font-weight: 600;
}

/* -----------------------------------------------------------------------
   Help button — bottom-right corner of game canvas
   ----------------------------------------------------------------------- */
#help-btn {
    position: absolute;
    bottom: 28px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1;
}
#help-btn:hover {
    background: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.35);
}
#help-btn.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* -----------------------------------------------------------------------
   Help panel — slides in from the right edge of the game canvas
   ----------------------------------------------------------------------- */
#help-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 258px;
    height: 100%;
    background: rgba(10, 12, 20, 0.97);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 60;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transform: translateX(100%);
}
#help-panel.open {
    pointer-events: auto;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px 11px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

#help-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    transition: color 0.1s;
}
#help-close:hover { color: rgba(255,255,255,0.85); }

.help-content {
    overflow-y: auto;
    flex: 1;
    padding: 14px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.help-section-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

/* Chip key */
.help-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.help-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.help-chip-row .chip-dot {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.help-chip-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Hand rankings list */
.help-hands {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.help-hand-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    background: rgba(255,255,255,0.035);
    border-radius: 5px;
}
.help-hand-num {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    font-weight: 700;
    flex-shrink: 0;
    width: 16px;
    text-align: right;
}
.help-hand-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    flex: 1;
    white-space: nowrap;
}
.help-hand-cards {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}
.help-hand-cards span {
    display: inline-block;
    width: 18px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    padding: 2px 0;
    flex-shrink: 0;
}

/* Suit colors in the hand ranking examples */
.hs { color: rgba(210,220,255,0.88); }
.hc { color: rgba(200,215,200,0.78); }
.hh { color: #e05555; }
.hd { color: #e07070; }

/* -----------------------------------------------------------------------
   Portrait phone — smaller cards to fit the 620×900 canvas
   ----------------------------------------------------------------------- */
@media (orientation: portrait) {
    .card {
        width:  30px;
        height: 43px;
    }
    .card.card-board {
        width:  34px;
        height: 48px;
    }
    .card-slot {
        width:  30px;
        height: 43px;
    }
    .card-slot.card-slot-board {
        width:  34px;
        height: 48px;
    }

    .card-rank    { font-size: 8px; }
    .card-suit-sm { font-size: 7px; }
    .rank-ten     { font-size: 7px; }
    .card-center  { font-size: 17px; }

    .card.card-board .card-rank    { font-size: 9px; }
    .card.card-board .card-suit-sm { font-size: 8px; }
    .card.card-board .rank-ten     { font-size: 8px; }
    .card.card-board .card-center  { font-size: 20px; }

    .card-corner-br { display: none; }

    #board-cards { gap: 4px; }

    .seat:not(.seat-me) .card,
    .seat:not(.seat-me) .card-slot {
        width:  18px;
        height: 26px;
    }
    .seat:not(.seat-me) .card-center { font-size: 9px; }
    .seat:not(.seat-me) .seat-name   { font-size: 9px; max-width: 60px; }
    .seat:not(.seat-me) .seat-chips  { font-size: 8px; }

    .seat-panel  { min-width: 72px; padding: 4px 10px 5px; }
    .seat-name   { font-size: 12px; max-width: 100px; }
    .seat-chips  { font-size: 11px; }

    #action-buttons button { padding: 8px 16px; font-size: 13px; }
    #submit-turn           { padding: 8px 28px; font-size: 13px; }
    #ready-btn             { padding: 10px 36px; font-size: 15px; }
    .btn-preset            { font-size: 10px; padding: 5px 1px; }
    #raise-amount-value    { font-size: 20px; }
    #raise-group           { width: 220px; }
    #message-banner        { font-size: 12px; max-width: 520px; }
    #pot-label             { font-size: 11px; padding: 3px 14px 4px; }
    #board-row             { gap: 8px; }

    .site-title-line { font-size: 1.75rem; letter-spacing: 2px; }
}

/* -----------------------------------------------------------------------
   Back / leave buttons — ghost style secondary action
   ----------------------------------------------------------------------- */
.btn-back {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: rgba(255,255,255,0.38);
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 7px 18px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.btn-back:hover {
    color: rgba(255,255,255,0.72);
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.04);
}

/* Leave button in game canvas — top-left corner, matches help-btn style */
#leave-game-btn {
    position: absolute;
    top: 18px;
    left: 16px;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.48);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
#leave-game-btn:hover {
    background: rgba(200,50,50,0.18);
    color: rgba(255,180,180,0.9);
    border-color: rgba(200,80,80,0.35);
}

/* -----------------------------------------------------------------------
   Lobby / Home screens
   ----------------------------------------------------------------------- */
.lobby-panel {
    position: relative;
    background: rgba(5, 10, 24, 0.96);
    border: 1px solid rgba(200, 168, 0, 0.16);
    border-top: 2px solid rgba(200, 168, 0, 0.55);
    border-radius: 12px;
    padding: 36px 44px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 380px;
    max-width: 520px;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 24px 64px rgba(0,0,0,0.75),
        0 0 50px rgba(100, 30, 130, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

/* Faint corner suit decorations */
.lobby-panel::before {
    content: '♣';
    position: absolute;
    top: -22px;
    right: -8px;
    font-size: 140px;
    font-family: 'Georgia', serif;
    color: rgba(200, 168, 0, 0.05);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}
.lobby-panel::after {
    content: '♠';
    position: absolute;
    bottom: -22px;
    left: -8px;
    font-size: 140px;
    font-family: 'Georgia', serif;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

/* All direct children float above the decorative pseudo-elements */
.lobby-panel > * {
    position: relative;
    z-index: 1;
}

.lobby-title {
    font-family: 'Cinzel', serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    text-align: center;
}

.lobby-status {
    color: var(--text-dim);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.55;
}

.lobby-config-info {
    color: rgba(200,168,0,0.65);
    font-size: 0.82rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.lobby-error {
    color: #f08080;
    font-size: 0.84rem;
    text-align: center;
}

.lobby-banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(150, 20, 20, 0.94);
    border: 1px solid rgba(220,80,80,0.5);
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    max-width: 560px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* -----------------------------------------------------------------------
   Primary button — pill shape, gradient, glowing hover
   ----------------------------------------------------------------------- */
.btn-primary {
    padding: 11px 34px;
    background: linear-gradient(135deg, #1c5a2a 0%, #2d8a3e 100%);
    color: var(--text-light);
    border: 1px solid rgba(56,176,80,0.32);
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    box-shadow: 0 4px 14px rgba(30,120,50,0.22);
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #256e34 0%, #38b050 100%);
    box-shadow: 0 4px 22px rgba(40,160,65,0.40), 0 0 0 1px rgba(56,176,80,0.45);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Larger CTA variant */
.btn-cta {
    padding: 13px 44px;
    font-size: 0.88rem;
    letter-spacing: 2px;
}

/* -----------------------------------------------------------------------
   Lobby sections
   ----------------------------------------------------------------------- */
.lobby-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lobby-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(200, 168, 0, 0.65);
    border-bottom: 1px solid rgba(200, 168, 0, 0.14);
    padding-bottom: 8px;
}

.seat-count-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-count {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,168,0,0.25);
    border-radius: 6px;
    color: var(--chip-gold);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, border-color 0.12s;
}

.btn-count:hover {
    background: rgba(200,168,0,0.12);
    border-color: rgba(200,168,0,0.5);
}

#seat-count-display {
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-light);
}

/* -----------------------------------------------------------------------
   Seat config rows (host panel)
   ----------------------------------------------------------------------- */
.seat-config-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.seat-config-label {
    flex: 0 0 56px;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.lobby-select {
    padding: 6px 28px 6px 10px;
    background-color: #0d1828;
    border: 1px solid rgba(200,168,0,0.22);
    border-radius: 6px;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.84rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.12s;
    /* Remove native OS chrome so our background shows */
    appearance: none;
    -webkit-appearance: none;
    /* Gold chevron arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c8a800' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
}

.lobby-select:focus {
    border-color: rgba(200,168,0,0.55);
}

.lobby-select option {
    background-color: #0d1828;
    color: var(--text-light);
}

/* -----------------------------------------------------------------------
   Settings grid (blinds / starting chips)
   ----------------------------------------------------------------------- */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 16px;
    align-items: center;
    width: 100%;
}

.settings-grid label {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: right;
    font-family: 'Lato', sans-serif;
}

.settings-grid input {
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(200,168,0,0.2);
    border-radius: 6px;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.settings-grid input:focus {
    border-color: rgba(200,168,0,0.55);
    box-shadow: 0 0 0 3px rgba(200,168,0,0.08);
}

/* -----------------------------------------------------------------------
   Lobby-open: seat list
   ----------------------------------------------------------------------- */
.seat-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lobby-seat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.035);
    border-radius: 7px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.lobby-seat-row.lobby-seat-ai {
    background: rgba(30,50,120,0.18);
    border-color: rgba(80,110,220,0.22);
}

.lobby-seat-row.lobby-seat-empty {
    opacity: 0.45;
}

.lobby-seat-row.lobby-seat-ready {
    background: rgba(25,80,35,0.22);
    border-color: rgba(56,176,80,0.30);
}

.lobby-seat-num {
    flex: 0 0 56px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
}

.lobby-seat-info {
    flex: 1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lobby-badge-ready {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(46,204,113,0.18);
    color: #4ade80;
    border: 1px solid rgba(46,204,113,0.35);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------
   Join form
   ----------------------------------------------------------------------- */
.join-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.join-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(200,168,0,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.join-form input::placeholder {
    color: rgba(255,255,255,0.28);
}

.join-form input:focus {
    border-color: rgba(200,168,0,0.55);
    box-shadow: 0 0 0 3px rgba(200,168,0,0.08);
}

.join-form .btn-primary {
    padding: 10px 22px;
}

/* -----------------------------------------------------------------------
   Legacy join box (kept for compatibility)
   ----------------------------------------------------------------------- */
.join-box {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 320px;
    text-align: center;
}
