@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --void: #0a0d0b;
    --void-2: #10140f;
    --felt: #0f4a37;
    --felt-dark: #0a3527;
    --felt-light: #146349;
    --rail: #3a2618;
    --rail-light: #4d3521;
    --gold: #d4af6e;
    --gold-bright: #f0cf8e;
    --cream: #ede6d3;
    --cream-dim: #b8b0a0;
    --red: #b5453d;
    --red-bright: #d9645a;
    --card-white: #f7f3e8;
    --shadow: rgba(0, 0, 0, 0.55);
    --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background:
        radial-gradient(ellipse at 50% -10%, #1a2119 0%, var(--void) 55%, #050603 100%);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-attachment: fixed;
}

::selection { background: var(--gold); color: #1a1a1a; }

a { color: var(--gold-bright); }

.mono { font-family: 'Space Mono', monospace; }

.hidden { display: none !important; }

button {
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
button:active { transform: translateY(1px) scale(.98); }
button:disabled { opacity: .4; cursor: not-allowed; transform: none; }

input {
    font-family: 'Inter', sans-serif;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,110,0.25);
    color: var(--cream);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
input::placeholder { color: var(--cream-dim); }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.plank-sign {
    position: relative;
    margin: 0 auto 36px;
    width: fit-content;
    padding: 10px 40px 16px;
    background: linear-gradient(180deg, var(--rail-light), var(--rail));
    border-radius: 6px;
    box-shadow: 0 14px 30px var(--shadow), inset 0 0 0 1px rgba(0,0,0,0.3);
    text-align: center;
}
.plank-sign::before, .plank-sign::after {
    content: '';
    position: absolute;
    top: -22px;
    width: 2px;
    height: 24px;
    background: rgba(212,175,110,0.5);
}
.plank-sign::before { left: 18px; }
.plank-sign::after { right: 18px; }
.plank-sign .pin {
    position: absolute;
    top: -26px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold) 60%, #8a6b3a);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.plank-sign .pin.left { left: 15px; }
.plank-sign .pin.right { right: 15px; }
.plank-sign h1 {
    font-family: 'Caveat', cursive;
    font-size: 44px;
    font-weight: 700;
    color: var(--gold-bright);
    margin: 0;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
    white-space: nowrap;
}
.plank-sign p {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: var(--cream-dim);
    margin: 4px 0 0;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    border: 1px solid rgba(212,175,110,0.18);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 30px 60px var(--shadow);
    backdrop-filter: blur(6px);
}

.tab-row {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    background: rgba(0,0,0,0.25);
    padding: 5px;
    border-radius: 12px;
}
.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    color: var(--cream-dim);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    border-radius: 8px;
}
.tab-btn.active {
    background: var(--felt);
    color: var(--gold-bright);
    box-shadow: inset 0 0 0 1px rgba(212,175,110,0.3);
}

.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-group label { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--cream-dim); }

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #241a0c;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    box-shadow: 0 8px 18px rgba(212,175,110,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 22px rgba(212,175,110,0.4); }

.error-msg {
    background: rgba(181,69,61,0.15);
    border: 1px solid rgba(181,69,61,0.4);
    color: var(--red-bright);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.game-page { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 26px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(212,175,110,0.15);
}
.topbar .brand {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--gold-bright);
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar .userinfo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    flex-shrink: 0;
}
.balance-pill {
    background: rgba(212,175,110,0.12);
    border: 1px solid rgba(212,175,110,0.3);
    padding: 7px 14px;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    color: var(--gold-bright);
    font-weight: 700;
}
.icon-btn {
    background: rgba(255,255,255,0.06);
    color: var(--cream-dim);
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.08);
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--cream); }

.table-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px 200px;
    position: relative;
}

.oval-wrap {
    position: relative;
    width: min(920px, 94vw);
    aspect-ratio: 16/10;
}

.felt {
    position: absolute;
    inset: 0;
    border-radius: 50% / 50%;
    background:
        radial-gradient(ellipse at 50% 40%, var(--felt-light) 0%, var(--felt) 55%, var(--felt-dark) 100%);
    box-shadow:
        0 0 0 14px var(--rail),
        0 0 0 17px rgba(212,175,110,0.35),
        0 30px 70px var(--shadow),
        inset 0 0 90px rgba(0,0,0,0.45);
}

.felt::after {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 50%/50%;
    border: 1.5px dashed rgba(212,175,110,0.22);
}

.center-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 78%;
    text-align: center;
}

.phase-label {
    font-family: 'Fraunces', serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: .85;
}

.community-row { display: flex; gap: 8px; min-height: 66px; align-items: center; justify-content: center; flex-wrap: wrap; }

.pot-display {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    color: var(--cream);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212,175,110,0.25);
    padding: 5px 16px;
    border-radius: 999px;
}
.pot-display b { color: var(--gold-bright); }

.winner-banner {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    color: var(--gold-bright);
    background: rgba(212,175,110,0.1);
    border: 1px solid rgba(212,175,110,0.35);
    padding: 8px 18px;
    border-radius: 12px;
    max-width: 100%;
}

.start-hint {
    font-size: 13px;
    color: var(--cream-dim);
}

.card {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    background: var(--card-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    flex-shrink: 0;
}
.card.small { width: 30px; height: 42px; font-size: 11px; }
.card.red { color: var(--red); }
.card.black { color: #1a1a1a; }
.card.back {
    background: repeating-linear-gradient(135deg, var(--felt-dark), var(--felt-dark) 4px, #0d3d2d 4px, #0d3d2d 8px);
    border: 1px solid rgba(212,175,110,0.4);
}
.card.back::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212,175,110,0.3);
    border-radius: 3px;
}

.card.dealing {
    animation: dealFly .55s cubic-bezier(.16,.84,.44,1) backwards;
}
@keyframes dealFly {
    0% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(.4) rotate(-6deg); opacity: 0; }
    55% { opacity: 1; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
}

.card.just-revealed {
    animation: cardReveal .5s ease;
}
@keyframes cardReveal {
    0% { transform: scale(1) rotateY(0deg); filter: brightness(1); }
    45% { transform: scale(1.15) rotateY(90deg); filter: brightness(1.4); }
    100% { transform: scale(1) rotateY(0deg); filter: brightness(1); }
}

.pot-display.pulse { animation: potPulse .4s ease; }
@keyframes potPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.winner-banner.pop { animation: winnerPop .4s cubic-bezier(.2,.9,.3,1); }
@keyframes winnerPop {
    0% { transform: scale(.85) translateY(8px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.seat-pod.is-turn { animation: turnPulse 1.7s ease-in-out infinite; }
@keyframes turnPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(240,207,142,0.18), 0 0 24px rgba(240,207,142,0.25); }
    50% { box-shadow: 0 0 0 5px rgba(240,207,142,0.38), 0 0 32px rgba(240,207,142,0.48); }
}

@media (prefers-reduced-motion: reduce) {
    .card.dealing, .card.just-revealed, .pot-display.pulse, .winner-banner.pop, .seat-pod.is-turn {
        animation: none;
    }
}

.announcer {
    position: fixed;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.8);
    z-index: 30;
    pointer-events: none;
    font-family: 'Fraunces', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--gold-bright);
    text-shadow: 0 4px 24px rgba(0,0,0,0.7);
    text-align: center;
    padding: 14px 32px;
    background: rgba(10,13,11,0.6);
    border-radius: 18px;
    border: 1px solid rgba(212,175,110,0.3);
    opacity: 0;
    max-width: 90vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.announcer.show {
    animation: announcePop 1.9s ease forwards;
}
@keyframes announcePop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
    14% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
    24% { transform: translate(-50%, -50%) scale(1); }
    78% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.bet-input {
    width: 90px;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    padding: 8px 6px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(212,175,110,0.3);
    color: var(--gold-bright);
    border-radius: 8px;
}
.bet-input::-webkit-inner-spin-button, .bet-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.bet-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.raise-input {
    width: 90px;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    padding: 7px 6px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(212,175,110,0.3);
    color: var(--gold-bright);
    border-radius: 8px;
}
.raise-input::-webkit-inner-spin-button, .raise-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.raise-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

@media (prefers-reduced-motion: reduce) {
    .announcer.show { animation: none; opacity: 0; }
}

.seat {
    position: absolute;
    width: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.seat[data-seat="0"] { top: 16%; left: 6%; }
.seat[data-seat="1"] { top: 84%; left: 14%; }
.seat[data-seat="2"] { top: 100%; left: 50%; }
.seat[data-seat="3"] { top: 84%; left: 86%; }
.seat[data-seat="4"] { top: 16%; left: 94%; }

.seat-pod {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(10,13,11,0.6);
    border: 1px solid rgba(212,175,110,0.15);
    min-width: 118px;
}
.seat-pod.is-turn {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(240,207,142,0.18), 0 0 24px rgba(240,207,142,0.25);
}
.seat-pod.is-folded { opacity: .4; }
.seat-pod.is-empty {
    background: rgba(255,255,255,0.02);
    border-style: dashed;
    cursor: pointer;
}
.seat-pod.is-empty:hover { background: rgba(212,175,110,0.08); }

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--felt-dark);
    border: 2px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar img { width: 100%; height: 100%; }

.seat-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--cream);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seat-chips {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--gold-bright);
}
.seat-cards { display: flex; gap: 3px; }
.seat-bet {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    background: rgba(212,175,110,0.15);
    color: var(--gold-bright);
    padding: 2px 8px;
    border-radius: 999px;
}
.dealer-chip {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cream);
    color: #222;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}
.join-label {
    font-size: 12px;
    color: var(--cream-dim);
    text-align: center;
}

.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10,13,11,0), rgba(10,13,11,0.96) 30%);
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hand-strength {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-bright);
    background: rgba(212,175,110,0.1);
    border: 1px solid rgba(212,175,110,0.3);
    padding: 6px 16px;
    border-radius: 999px;
    min-height: 14px;
    text-align: center;
}

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

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

.act-btn {
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    color: var(--cream);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}
.act-btn.fold { background: rgba(181,69,61,0.2); border-color: rgba(181,69,61,0.4); color: var(--red-bright); }
.act-btn.fold:hover { background: rgba(181,69,61,0.32); }
.act-btn.call, .act-btn.check {
    background: rgba(20,99,73,0.4);
    border-color: rgba(20,99,73,0.7);
    color: var(--cream);
}
.act-btn.call:hover, .act-btn.check:hover { background: rgba(20,99,73,0.6); }
.act-btn.raise {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #241a0c;
}
.act-btn.raise:hover { box-shadow: 0 6px 16px rgba(212,175,110,0.35); }

.raise-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,110,0.2);
}
.raise-box input[type="range"] { width: 140px; }
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    outline: none;
    cursor: pointer;
    vertical-align: middle;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6.5px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    border: 2px solid #241a0c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    cursor: pointer;
}
input[type="range"]::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}
input[type="range"]::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    border: 2px solid #241a0c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    cursor: pointer;
}
.raise-box .raise-value {
    font-family: 'Space Mono', monospace;
    color: var(--gold-bright);
    min-width: 54px;
    text-align: center;
}
.raise-quick {
    background: rgba(255,255,255,0.08);
    color: var(--cream-dim);
    padding: 6px 10px;
    font-size: 12px;
}

.log-toggle {
    position: fixed;
    top: 74px;
    right: 20px;
    z-index: 5;
}
.log-panel {
    position: fixed;
    top: 118px;
    right: 20px;
    width: 260px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(10,13,11,0.92);
    border: 1px solid rgba(212,175,110,0.2);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--cream-dim);
    line-height: 1.6;
    z-index: 5;
}
.log-panel div { border-bottom: 1px dashed rgba(255,255,255,0.06); padding: 3px 0; }

.log-toggle.chat-toggle { right: 118px; }
.chat-messages {
    max-height: 220px;
    overflow-y: auto;
    padding-bottom: 8px;
}
.chat-messages div {
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    padding: 4px 0;
    word-break: break-word;
}
.chat-messages b { color: var(--gold-bright); }
.chat-input-row {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(212,175,110,0.15);
}
.chat-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,110,0.2);
    color: var(--cream);
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
}
.chat-input-row button {
    padding: 7px 12px;
    background: var(--felt);
    color: var(--gold-bright);
    border: 1px solid rgba(212,175,110,0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.chat-input-row button:hover { background: rgba(212,175,110,0.15); }

.start-btn {
    padding: 14px 30px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #241a0c;
    font-weight: 700;
    font-size: 15px;
}

.game-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.25);
    padding: 4px;
    border-radius: 10px;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.game-nav::-webkit-scrollbar { display: none; }
.nav-group-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--cream-dim);
    opacity: .6;
    padding: 0 6px 0 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.12);
    margin: 0 4px;
    flex-shrink: 0;
}
.game-nav-link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cream-dim);
    text-decoration: none;
    border-radius: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}
.game-nav-link:hover { color: var(--cream); }
.game-nav-link.active {
    background: var(--felt);
    color: var(--gold-bright);
    box-shadow: inset 0 0 0 1px rgba(212,175,110,0.3);
}

.hub-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
}
.hub-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 720px;
}
.hub-card {
    width: 260px;
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(212,175,110,0.2);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--cream);
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    box-shadow: 0 20px 40px var(--shadow);
}
.hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 26px 50px var(--shadow);
}
.hub-card-icon {
    font-size: 40px;
    color: var(--gold-bright);
    margin-bottom: 12px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
}
.hub-card-title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.hub-card-desc {
    font-size: 13px;
    color: var(--cream-dim);
    line-height: 1.5;
}

.bj-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 200px;
}
.bj-felt {
    position: relative;
    width: min(900px, 94vw);
    min-height: 480px;
    border-radius: 32px;
    background: radial-gradient(ellipse at 50% 0%, var(--felt-light) 0%, var(--felt) 55%, var(--felt-dark) 100%);
    box-shadow:
        0 0 0 14px var(--rail),
        0 0 0 17px rgba(212,175,110,0.35),
        0 30px 70px var(--shadow),
        inset 0 0 90px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 18px;
}
.bj-dealer-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.bj-dealer-cards { display: flex; gap: 8px; min-height: 56px; }
.bj-hand-value {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    color: var(--gold-bright);
    background: rgba(0,0,0,0.3);
    padding: 3px 12px;
    border-radius: 999px;
    min-height: 20px;
}
.bj-hand-value.small { font-size: 11px; padding: 1px 8px; }
.bj-seats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: auto;
    width: 100%;
}
.bj-seat { display: flex; flex-direction: column; align-items: center; }
.bj-status {
    font-size: 11px;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bj-result {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 2px;
}
.bj-result.positive { background: rgba(20,99,73,0.4); color: var(--cream); }
.bj-result.negative { background: rgba(181,69,61,0.25); color: var(--red-bright); }
.bj-result.neutral { background: rgba(212,175,110,0.15); color: var(--gold-bright); }
.bj-bet-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trophy-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 0 2px rgba(212,175,110,0.3);
    z-index: 20;
    transition: transform .15s ease, box-shadow .15s ease;
}
.trophy-fab:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 26px rgba(0,0,0,0.55), 0 0 0 2px rgba(212,175,110,0.5);
}
.profile-fab {
    position: fixed;
    bottom: 22px;
    right: 86px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(212,175,110,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 20;
    transition: transform .15s ease, box-shadow .15s ease;
}
.profile-fab:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 26px rgba(0,0,0,0.55);
}

@media (max-width: 720px) {
    html, body { overflow-x: hidden; }

    .hub-cards { flex-direction: column; align-items: center; }
    .hub-card { width: 100%; max-width: 320px; }
    .bj-felt { min-height: 560px; padding: 20px 12px; border-radius: 24px; }
    .bj-seats { gap: 10px; }

    .topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .topbar .brand { font-size: 22px; }
    .topbar .userinfo { gap: 8px; font-size: 12px; flex-wrap: wrap; }
    .plank-sign h1 { font-size: 34px; }
    .plank-sign { padding: 10px 24px 16px; }
    .oval-wrap { aspect-ratio: 3/4; width: 96vw; }
    .felt { border-radius: 46% / 38%; }
    .seat { width: 108px; }
    .seat[data-seat="0"] { top: 10%; left: 22%; }
    .seat[data-seat="1"] { top: 38%; left: 4%; }
    .seat[data-seat="2"] { top: 68%; left: 4%; }
    .seat[data-seat="3"] { top: 92%; left: 30%; }
    .seat[data-seat="4"] { top: 92%; left: 70%; }
    .seat-pod { min-width: 96px; }
    .card { width: 32px; height: 46px; font-size: 12px; }
    .log-panel { width: 200px; right: 10px; }
    .action-bar { padding: 12px 10px 16px; }

    .game-nav {
        width: 100%;
        order: 10;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .game-nav::-webkit-scrollbar { display: none; }
    .game-nav-link {
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .raise-box {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        row-gap: 8px;
    }
    .raise-box input[type="range"] {
        width: 100%;
        order: 10;
    }
    .bet-input, .raise-input { width: 76px; font-size: 13px; padding: 8px 4px; }
    .raise-quick { padding: 6px 9px; font-size: 11px; }
    .act-btn { padding: 10px 16px; font-size: 13px; }

    .log-toggle { top: auto; bottom: 96px; right: 10px; }
    .log-toggle.chat-toggle { top: auto; bottom: 96px; right: 90px; }
    .log-panel { top: auto; bottom: 136px; max-height: 220px; }

    .announcer { font-size: 24px; padding: 10px 20px; max-width: 94vw; }

    .hand-strength { font-size: 12px; padding: 5px 12px; }

    .trophy-fab { width: 46px; height: 46px; font-size: 20px; bottom: 16px; right: 14px; }
    .profile-fab { width: 40px; height: 40px; font-size: 18px; bottom: 18px; right: 68px; }
}

.hub-section-title {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-bright);
    align-self: flex-start;
    margin: 6px 0 -6px;
}

.daily-bonus-toast {
    position: fixed;
    top: 84px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(155deg, rgba(20,30,20,0.95), rgba(10,15,10,0.95));
    border: 1px solid rgba(212,175,110,0.4);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    z-index: 100;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
}
.daily-bonus-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.daily-bonus-icon { font-size: 30px; }
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,110,0.25);
    border-radius: 999px;
    padding: 8px 18px;
    margin-bottom: 26px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--cream-dim);
}
.streak-badge b { color: var(--gold-bright); }
#bonusCountdown { font-family: 'Space Mono', monospace; }
.daily-bonus-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--gold-bright);
}
.daily-bonus-amount {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #4fd67a;
}
.daily-bonus-streak {
    font-size: 11px;
    color: var(--cream-dim);
}
@media (max-width: 720px) {
    .daily-bonus-toast { top: auto; bottom: 16px; left: 14px; right: 14px; }
}
