.jl-poker-embed {
    background: #07111f;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    color: #f8fbff;
    box-shadow: none;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
    width: 100vw;
    z-index: auto;
}

.jl-poker-embed *,
.jl-poker-embed *::before,
.jl-poker-embed *::after {
    box-sizing: border-box;
}

.jl-poker-embed .game-shell {
    background:
        radial-gradient(circle at top left, rgba(44, 161, 255, 0.2), transparent 28rem),
        linear-gradient(135deg, #050914, #10213f);
    box-sizing: border-box;
    display: grid;
    gap: 24px;
    isolation: isolate;
    min-height: 100%;
    padding: clamp(14px, 4vw, 36px);
}

.jl-poker-embed .hero,
.jl-poker-embed .panel {
    backdrop-filter: blur(22px);
    background: rgba(7, 17, 31, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(16px, 3vw, 28px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    padding: clamp(16px, 3vw, 28px);
}

.jl-poker-embed.is-in-room .lobby-only {
    display: none;
}

.jl-poker-embed .poker-table-panel {
    display: none;
    overflow: visible;
}

.jl-poker-embed.is-in-room .poker-table-panel {
    display: block;
}

.jl-poker-embed .table-panel-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.jl-poker-embed .table-panel-header h2 {
    margin: 0;
}

.jl-poker-embed .fullscreen-action {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #dff8ff;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 14px;
    white-space: nowrap;
}

.jl-poker-embed .eyebrow {
    color: #8fd9ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.jl-poker-embed h1 {
    color: #f8fbff;
    font-size: clamp(30px, 7vw, 76px);
    line-height: 0.95;
    margin: 0;
}

.jl-poker-embed h2 {
    color: #f8fbff;
    margin-top: 0;
}

.jl-poker-embed .cards,
.jl-poker-embed .rooms {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.jl-poker-embed button {
    cursor: pointer;
}

.jl-poker-embed .profile-editor {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.jl-poker-embed .profile-editor label,
.jl-poker-embed .profile-editor small {
    color: #b7c8de;
    font-weight: 800;
}

.jl-poker-embed .profile-editor input[type="text"],
.jl-poker-embed .profile-editor input[type="file"] {
    background: rgba(4, 14, 25, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: #fff;
    padding: 12px;
}

.jl-poker-embed .profile-editor button {
    background: linear-gradient(135deg, #10b981, #2563eb);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    padding: 13px 18px;
}

.jl-poker-embed #player-profile-message {
    grid-column: 1 / -1;
}

.jl-poker-embed #player-profile-message.is-error {
    color: #fecaca;
}

.jl-poker-embed .shop-card,
.jl-poker-embed .room-card,
.jl-poker-embed #create-room {
    background: linear-gradient(135deg, #1b8cff, #7a4dff);
    border: 0;
    border-radius: 18px;
    color: white;
    display: grid;
    gap: 6px;
    padding: 18px;
    position: relative;
    text-align: left;
    text-decoration: none;
    z-index: 30;
}

.jl-poker-embed .room-create-row {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
}

.jl-poker-embed .admin-close-room-tools {
    align-items: center;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 1 1 280px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    position: relative;
    z-index: 30;
}

.jl-poker-embed .toggle-switch {
    align-items: center;
    color: #dff8ff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    gap: 10px;
}

.jl-poker-embed .toggle-switch input {
    appearance: none;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    height: 28px;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease;
    width: 52px;
}

.jl-poker-embed .toggle-switch input::before {
    background: #f8fbff;
    border-radius: 50%;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 160ms ease;
    width: 20px;
}

.jl-poker-embed .toggle-switch input:checked {
    background: rgba(127, 29, 29, 0.94);
    border-color: rgba(254, 202, 202, 0.8);
}

.jl-poker-embed .toggle-switch input:checked::before {
    transform: translateX(24px);
}

.jl-poker-embed .admin-close-room-select {
    align-items: end;
    display: grid;
    flex: 1 1 100%;
    gap: 8px;
    grid-template-columns: minmax(160px, 1fr) auto;
}

.jl-poker-embed .admin-close-room-select[hidden] {
    display: none;
}

.jl-poker-embed .admin-close-room-select label {
    color: #b7c8de;
    font-size: 12px;
    font-weight: 900;
    grid-column: 1 / -1;
}

.jl-poker-embed .admin-close-room-select select {
    background: rgba(4, 14, 25, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    padding: 11px 12px;
}

.jl-poker-embed #admin-close-room {
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    padding: 12px 16px;
}

.jl-poker-embed #admin-close-room:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
    opacity: 0.58;
}

.jl-poker-embed #rooms,
.jl-poker-embed .rooms,
.jl-poker-embed .poker-table {
    position: relative;
    z-index: 25;
}

.jl-poker-embed .success {
    color: #9effb0;
    font-weight: 700;
}

.jl-poker-embed .connection-status {
    color: #9effb0;
    font-weight: 700;
}

.jl-poker-embed .wallet-status {
    color: #8fd9ff;
    font-weight: 700;
}

.jl-poker-embed .connection-status.is-error {
    color: #ffb3b3;
}

.jl-poker-embed .poker-table {
    min-height: 320px;
    overflow: visible;
    padding-bottom: 8px;
}

.jl-poker-embed .poker-table-panel:fullscreen {
    background: #07111f;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100vh;
    overflow: hidden;
    padding: 16px;
    width: 100vw;
}

.jl-poker-embed .poker-table-panel:fullscreen .poker-table {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.jl-poker-embed .poker-table-panel:fullscreen .table-felt {
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding: clamp(14px, 2.2vw, 26px);
    width: 100%;
}

.jl-poker-embed .poker-table-panel:fullscreen .player-control-row {
    bottom: 2%;
}

.jl-poker-embed .table-felt {
    background:
        radial-gradient(circle at center, rgba(31, 164, 113, 0.95), rgba(10, 78, 54, 0.95)),
        linear-gradient(135deg, #0b5c41, #063522);
    border: clamp(6px, 1.8vw, 12px) solid #3a1f12;
    border-radius: clamp(28px, 12vw, 999px);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.38), 0 28px 80px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: clamp(10px, 1.6vw, 16px);
    grid-template-rows: auto auto auto 1fr;
    min-height: clamp(560px, 68vw, 700px);
    min-width: min(760px, 100%);
    padding: clamp(16px, 4vw, 34px);
    position: relative;
}

.jl-poker-embed .table-title,
.jl-poker-embed .player-hand {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.jl-poker-embed .table-title {
    gap: 10px;
}

.jl-poker-embed .pot-display {
    align-items: center;
    color: #fff7cc;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.jl-poker-embed .pot-gold-icon {
    background:
        radial-gradient(circle at 36% 28%, #fff7a8 0 13%, transparent 14%),
        radial-gradient(circle at 62% 28%, #fde047 0 14%, transparent 15%),
        linear-gradient(180deg, #facc15 0 38%, #ca8a04 39% 100%);
    border: 2px solid rgba(120, 53, 15, 0.9);
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset 0 -4px 0 rgba(120, 53, 15, 0.35), 0 3px 8px rgba(0, 0, 0, 0.28);
    display: inline-block;
    height: 24px;
    position: relative;
    width: 30px;
}

.jl-poker-embed .pot-gold-icon::after {
    background: #1f2937;
    border-radius: 0 0 999px 999px;
    bottom: -3px;
    content: "";
    height: 9px;
    left: 3px;
    position: absolute;
    right: 3px;
}

.jl-poker-embed .stage-toggle {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #dff8ff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

.jl-poker-embed .player-control-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 28px);
    justify-content: center;
    left: 50%;
    position: absolute;
    bottom: 3%;
    transform: translateX(-50%);
    max-width: min(100%, 620px);
    width: auto;
    z-index: 6;
}

.jl-poker-embed .player-control-row .player-hand {
    cursor: grab;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: center;
    order: 2;
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

.jl-poker-embed .player-position-you,
.jl-poker-embed .player-position-you .player-bet-chips,
.jl-poker-embed .player-position-you .winner-chip-pile,
.jl-poker-embed .player-position-you .seat-role-indicators,
.jl-poker-embed .table-bet-pile,
.jl-poker-embed .player-control-row .action-wheel {
    touch-action: none;
}

.jl-poker-embed .player-position-you .player-avatar,
.jl-poker-embed .player-position-you .player-bet-chips,
.jl-poker-embed .player-position-you .winner-chip-pile,
.jl-poker-embed .player-position-you .seat-role-indicators,
.jl-poker-embed .table-bet-pile,
.jl-poker-embed .player-control-row .action-wheel-hub {
    cursor: grab;
}

.jl-poker-embed .is-user-positioned {
    will-change: translate;
}

.jl-poker-embed .player-control-row .player-hand.is-stacked {
    cursor: pointer;
    display: grid;
    gap: 0;
    height: clamp(112px, 13vw, 150px);
    justify-items: end;
    min-width: clamp(116px, 12vw, 150px);
    position: relative;
    touch-action: manipulation;
    width: clamp(116px, 12vw, 150px);
}

.jl-poker-embed .player-control-row .player-hand.is-stacked .playing-card {
    grid-area: 1 / 1;
    transition: transform 0.16s ease;
}

.jl-poker-embed .player-control-row .player-hand.is-stacked .playing-card:first-child {
    transform: translateX(clamp(-28px, -2.5vw, -18px)) rotate(-2deg);
    z-index: 2;
}

.jl-poker-embed .player-control-row .player-hand.is-stacked .playing-card:nth-child(2) {
    transform: translateX(clamp(22px, 2.8vw, 36px)) translateY(10px) rotate(2deg);
    z-index: 1;
}

.jl-poker-embed .player-control-row .player-hand.is-concealed:not(.is-privacy-peeking) .playing-card {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.26) 0 8%, transparent 9%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 5px, transparent 5px 10px),
        linear-gradient(145deg, #1d4ed8, #0f172a);
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow:
        inset 0 0 0 3px rgba(255, 255, 255, 0.16),
        inset 0 0 0 9px rgba(15, 23, 42, 0.45),
        0 12px 26px rgba(0, 0, 0, 0.34);
}

.jl-poker-embed .player-control-row .player-hand.is-concealed:not(.is-privacy-peeking) .playing-card > * {
    opacity: 0;
}

.jl-poker-embed .hand-phase {
    color: #dff8ff;
    font-weight: 900;
    margin: 0;
    text-align: center;
}

.jl-poker-embed .hand-phase.is-hidden {
    display: none;
}

.jl-poker-embed .community-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.8vw, 16px);
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 36%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.jl-poker-embed .community-card-slot {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.jl-poker-embed .community-cards .playing-card {
    height: clamp(104px, 12vw, 142px);
    width: clamp(72px, 8vw, 98px);
}

.jl-poker-embed .community-showdown-slot {
    display: flex;
    gap: 4px;
    justify-content: center;
    min-height: 58px;
}

.jl-poker-embed .community-showdown-slot .playing-card,
.jl-poker-embed .community-showdown-center .playing-card {
    border-radius: 7px;
    height: 58px;
    width: 40px;
}

.jl-poker-embed .community-showdown-slot .card-corner,
.jl-poker-embed .community-showdown-center .card-corner {
    line-height: 0.76;
    width: 12px;
}

.jl-poker-embed .community-showdown-slot .card-corner b,
.jl-poker-embed .community-showdown-center .card-corner b {
    font-size: 10px;
}

.jl-poker-embed .community-showdown-slot .card-corner small,
.jl-poker-embed .community-showdown-center .card-corner small {
    font-size: 9px;
}

.jl-poker-embed .community-showdown-slot .card-corner-top,
.jl-poker-embed .community-showdown-center .card-corner-top {
    left: 4px;
    top: 4px;
}

.jl-poker-embed .community-showdown-slot .card-corner-bottom,
.jl-poker-embed .community-showdown-center .card-corner-bottom {
    bottom: 4px;
    right: 4px;
}

.jl-poker-embed .community-showdown-slot .card-face,
.jl-poker-embed .community-showdown-center .card-face {
    font-size: 22px;
}

.jl-poker-embed .community-cards.has-centered-showdown {
    padding-bottom: 64px;
}

.jl-poker-embed .community-showdown-center {
    bottom: 0;
    display: flex;
    gap: 4px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.jl-poker-embed .table-bet-pile {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    left: 50%;
    max-width: min(72%, 420px);
    pointer-events: none;
    position: absolute;
    top: 54%;
    transform: translate(-50%, -50%);
    z-index: 6;
}

.jl-poker-embed .table-direction-arrow {
    border: 2px dashed rgba(255, 247, 204, 0.18);
    border-radius: inherit;
    inset: clamp(44px, 8vw, 92px);
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.jl-poker-embed .table-direction-arrow::before {
    border: solid rgba(255, 247, 204, 0.54);
    border-width: 0 3px 3px 0;
    content: "";
    height: 16px;
    position: absolute;
    right: 12%;
    top: 9%;
    transform: rotate(-45deg);
    width: 16px;
}

.jl-poker-embed .table-direction-arrow span {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 247, 204, 0.18);
    border-radius: 999px;
    color: rgba(255, 247, 204, 0.72);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 9px;
    position: absolute;
    right: 7%;
    text-transform: uppercase;
    top: 14%;
}

.jl-poker-embed .table-players {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.jl-poker-embed .player-marker {
    --avatar-size: clamp(58px, 7vw, 78px);
    pointer-events: auto;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.jl-poker-embed .seat-role-indicators {
    display: flex;
    gap: 4px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 24px);
    transform: translateX(-50%);
    z-index: 8;
}

.jl-poker-embed .seat-role-badge {
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
    color: #0f172a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 1000;
    height: 30px;
    justify-content: center;
    letter-spacing: 0.02em;
    min-width: 30px;
    padding: 0 8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.jl-poker-embed .seat-role-badge.is-dealer {
    background: linear-gradient(180deg, #fff7cc, #facc15 62%, #ca8a04);
}

.jl-poker-embed .seat-role-badge.is-small-blind {
    background: linear-gradient(180deg, #dff8ff, #38bdf8 62%, #0369a1);
}

.jl-poker-embed .seat-role-badge.is-big-blind {
    background: linear-gradient(180deg, #fee2e2, #fb7185 62%, #be123c);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.jl-poker-embed .player-position-you {
    bottom: 5%;
    right: 24%;
    transform: translate(50%, 0);
}

.jl-poker-embed .player-position-opponent-1 {
    left: 4%;
    top: 50%;
}

.jl-poker-embed .player-position-opponent-2 {
    left: auto;
    right: 4%;
    top: 50%;
    transform: translate(50%, -50%);
}

.jl-poker-embed .player-position-opponent-3 {
    left: 16%;
    top: 8%;
}

.jl-poker-embed .player-position-opponent-4 {
    left: auto;
    right: 16%;
    top: 8%;
    transform: translate(50%, -50%);
}

.jl-poker-embed .opponents-1.player-position-opponent-1 {
    left: 4%;
    top: 50%;
}

.jl-poker-embed .opponents-2.player-position-opponent-1 {
    left: 4%;
    top: 50%;
}

.jl-poker-embed .opponents-2.player-position-opponent-2 {
    right: 4%;
    top: 50%;
}

.jl-poker-embed .opponents-3.player-position-opponent-1 {
    left: 4%;
    top: 50%;
}

.jl-poker-embed .opponents-3.player-position-opponent-2 {
    right: 4%;
    top: 50%;
}

.jl-poker-embed .opponents-3.player-position-opponent-3 {
    left: 16%;
    top: 8%;
}

.jl-poker-embed .player-control-row .playing-card {
    height: clamp(104px, 12vw, 142px);
    width: clamp(72px, 8vw, 98px);
}

.jl-poker-embed .player-avatar {
    align-items: center;
    appearance: none;
    background: rgba(3, 12, 23, 0.78);
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    color: #fff;
    cursor: help;
    display: grid;
    gap: 4px;
    justify-items: center;
    min-width: calc(var(--avatar-size) + 14px);
    padding: 7px;
    position: relative;
}

.jl-poker-embed .player-stones-badge,
.jl-poker-embed .seat-stones-badge {
    align-items: center;
    background: rgba(3, 12, 23, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.52);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
    color: #fff7cc;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 4px;
    line-height: 1;
    padding: 5px 8px;
    white-space: nowrap;
}

.jl-poker-embed .player-stones-badge {
    left: 50%;
    position: absolute;
    top: -32px;
    transform: translateX(-50%);
    z-index: 31;
}

.jl-poker-embed .player-stones-badge::before,
.jl-poker-embed .seat-stones-badge::before {
    background:
        radial-gradient(circle at 38% 32%, #fff7a8 0 18%, transparent 19%),
        linear-gradient(180deg, #facc15, #ca8a04);
    border: 1px solid rgba(120, 53, 15, 0.75);
    border-radius: 50%;
    content: "";
    height: 13px;
    width: 13px;
}

.jl-poker-embed .seat-stones-badge {
    justify-self: start;
    margin-bottom: 3px;
}

.jl-poker-embed .player-bankroll {
    align-items: center;
    color: #fff7cc;
    display: inline-flex;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    left: 50%;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
    top: -56px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 19;
}

.jl-poker-embed .player-bankroll strong {
    background: rgba(3, 12, 23, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 999px;
    padding: 5px 8px;
}

.jl-poker-embed .lobby-chip-stack {
    display: block;
    height: 32px;
    position: relative;
    width: 26px;
}

.jl-poker-embed .lobby-chip-stack span {
    background: linear-gradient(90deg, var(--chip-color, #ef4444) 0 28%, #fff 28% 38%, var(--chip-color, #ef4444) 38% 62%, #fff 62% 72%, var(--chip-color, #ef4444) 72%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    box-shadow: 0 2px 0 var(--chip-shadow, #7f1d1d);
    display: block;
    height: 20px;
    left: 0;
    position: absolute;
    top: calc(18px - (var(--chip-index) * 2px));
    width: 20px;
}

.jl-poker-embed .player-position-opponent-1 .player-bankroll {
    bottom: calc(100% + 8px);
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
}

.jl-poker-embed .player-position-opponent-3 .player-bankroll,
.jl-poker-embed .player-position-opponent-4 .player-bankroll {
    left: auto;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
}

.jl-poker-embed .player-position-opponent-2 .player-bankroll {
    bottom: calc(100% + 8px);
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
}

.jl-poker-embed .player-admin-controls {
    display: inline-flex;
    gap: 4px;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 32;
}

.jl-poker-embed .player-admin-control {
    align-items: center;
    appearance: none;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
    color: #fff;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 28px;
}

.jl-poker-embed .player-admin-control:hover,
.jl-poker-embed .player-admin-control:focus-visible {
    border-color: #fde68a;
    transform: translateY(-1px);
}

.jl-poker-embed .player-admin-ban {
    background: rgba(127, 29, 29, 0.94);
}

.jl-poker-embed .player-admin-permban {
    background: rgba(88, 28, 135, 0.96);
}

.jl-poker-embed .admin-control-text {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.jl-poker-embed .admin-icon {
    display: block;
    height: 16px;
    position: relative;
    width: 16px;
}

.jl-poker-embed .admin-icon-shoe::before {
    background: #f8fafc;
    border-radius: 7px 3px 3px 4px;
    bottom: 4px;
    content: "";
    height: 7px;
    left: 2px;
    position: absolute;
    transform: rotate(-12deg);
    width: 12px;
}

.jl-poker-embed .admin-icon-shoe::after {
    background: #facc15;
    border-radius: 999px;
    bottom: 3px;
    content: "";
    height: 3px;
    left: 1px;
    position: absolute;
    transform: rotate(-12deg);
    width: 15px;
}

.jl-poker-embed .admin-icon-gavel::before {
    background: #f8fafc;
    border-radius: 2px;
    content: "";
    height: 6px;
    left: 1px;
    position: absolute;
    top: 3px;
    transform: rotate(-24deg);
    width: 13px;
}

.jl-poker-embed .admin-icon-gavel::after {
    background: #facc15;
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 5px;
    position: absolute;
    top: 8px;
    transform: rotate(48deg);
    width: 12px;
}

.jl-poker-embed .admin-icon-permban::before {
    border: 3px solid #f8fafc;
    border-radius: 50%;
    content: "";
    height: 14px;
    left: 1px;
    position: absolute;
    top: 1px;
    width: 14px;
}

.jl-poker-embed .admin-icon-permban::after {
    background: #facc15;
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 2px;
    position: absolute;
    top: 7px;
    transform: rotate(-38deg);
    width: 13px;
}

.jl-poker-embed .player-marker.is-active .player-avatar {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18), 0 14px 28px rgba(0, 0, 0, 0.36);
}

.jl-poker-embed .player-marker.is-folded .player-avatar {
    filter: grayscale(0.45);
    opacity: 0.72;
}

.jl-poker-embed .player-marker.is-waiting-seat .player-avatar {
    filter: grayscale(0.8);
    opacity: 0.58;
}

.jl-poker-embed .player-marker.is-waiting-seat .player-bankroll {
    opacity: 0.7;
}

.jl-poker-embed .is-waiting-table .table-direction-arrow {
    opacity: 0.72;
}

.jl-poker-embed .waiting-table-actions {
    bottom: 7%;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 16;
}

.jl-poker-embed .player-avatar-image {
    background-position: center;
    background-size: cover;
    border-radius: 14px;
    display: block;
    height: var(--avatar-size);
    width: var(--avatar-size);
}

.jl-poker-embed .player-avatar-name {
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 900;
    max-width: calc(var(--avatar-size) + 18px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jl-poker-embed .showdown-hole-cards {
    display: flex;
    gap: 4px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 42px);
    transform: translateX(-50%);
    z-index: 12;
}

.jl-poker-embed .showdown-hole-cards .playing-card {
    border-radius: 7px;
    height: 58px;
    width: 40px;
}

.jl-poker-embed .showdown-hole-cards .card-corner {
    line-height: 0.76;
    width: 12px;
}

.jl-poker-embed .showdown-hole-cards .card-corner b {
    font-size: 10px;
}

.jl-poker-embed .showdown-hole-cards .card-corner small {
    font-size: 9px;
}

.jl-poker-embed .showdown-hole-cards .card-corner-top {
    left: 4px;
    top: 4px;
}

.jl-poker-embed .showdown-hole-cards .card-corner-bottom {
    bottom: 4px;
    right: 4px;
}

.jl-poker-embed .showdown-hole-cards .card-face {
    font-size: 22px;
}

.jl-poker-embed .player-position-you .showdown-hole-cards {
    bottom: calc(100% + 10px);
    top: auto;
}

.jl-poker-embed .player-tooltip {
    background: rgba(3, 12, 23, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
    color: #fff;
    display: grid;
    gap: 4px;
    left: calc(100% + 10px);
    min-width: 142px;
    opacity: 0;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateX(-4px) translateY(-50%);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.jl-poker-embed .player-marker:hover .player-tooltip,
.jl-poker-embed .player-marker:focus-within .player-tooltip,
.jl-poker-embed .player-avatar:hover + .player-tooltip,
.jl-poker-embed .player-avatar:focus + .player-tooltip {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

.jl-poker-embed .player-position-you .player-tooltip,
.jl-poker-embed .player-position-opponent-2 .player-tooltip,
.jl-poker-embed .player-position-opponent-4 .player-tooltip {
    left: auto;
    right: calc(100% + 10px);
    transform: translateX(4px) translateY(-50%);
}

.jl-poker-embed .player-position-you:hover .player-tooltip,
.jl-poker-embed .player-position-you:focus-within .player-tooltip,
.jl-poker-embed .player-position-opponent-2:hover .player-tooltip,
.jl-poker-embed .player-position-opponent-2:focus-within .player-tooltip,
.jl-poker-embed .player-position-opponent-4:hover .player-tooltip,
.jl-poker-embed .player-position-opponent-4:focus-within .player-tooltip,
.jl-poker-embed .player-position-you .player-avatar:hover + .player-tooltip,
.jl-poker-embed .player-position-you .player-avatar:focus + .player-tooltip,
.jl-poker-embed .player-position-opponent-2 .player-avatar:hover + .player-tooltip,
.jl-poker-embed .player-position-opponent-2 .player-avatar:focus + .player-tooltip,
.jl-poker-embed .player-position-opponent-4 .player-avatar:hover + .player-tooltip,
.jl-poker-embed .player-position-opponent-4 .player-avatar:focus + .player-tooltip {
    transform: translateX(0) translateY(-50%);
}

.jl-poker-embed .player-bet-chips,
.jl-poker-embed .winner-chip-pile {
    align-items: center;
    color: #fef3c7;
    display: grid;
    gap: 2px;
    justify-items: center;
    left: 50%;
    position: absolute;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
    top: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 5;
}

.jl-poker-embed .winner-chip-pile {
    gap: 4px;
    z-index: 6;
}

.jl-poker-embed .table-bet-pile .player-bet-chips {
    left: auto;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
}

.jl-poker-embed .player-bet-chips.is-street-bet {
    z-index: 32;
}

.jl-poker-embed .player-bet-chips.is-street-bet .reraise-loading-bar {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.58);
    border-radius: 999px;
    display: block;
    height: 10px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: -18px;
    transform: translateX(-50%);
    width: min(160px, 44vw);
}

.jl-poker-embed .player-bet-chips.is-street-bet .reraise-loading-bar span {
    animation: jl-poker-timer-bar var(--timer-duration, 3s) linear forwards;
    background: var(--timer-color, #facc15);
    display: block;
    height: 100%;
    transform: scaleX(var(--timer-progress, 1));
    transform-origin: left center;
    width: 100%;
}

.jl-poker-embed .table-bet-pile .reraise-loading-bar {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.58);
    border-radius: 999px;
    display: block;
    flex: 0 0 min(220px, 70vw);
    height: 10px;
    margin: 4px auto 0;
    overflow: hidden;
}

.jl-poker-embed .table-bet-pile .reraise-loading-bar span {
    animation: jl-poker-timer-bar var(--timer-duration, 3s) linear forwards;
    background: var(--timer-color, #facc15);
    display: block;
    height: 100%;
    transform: scaleX(var(--timer-progress, 1));
    transform-origin: left center;
    width: 100%;
}

.jl-poker-embed .player-position-opponent-1 .player-bet-chips,
.jl-poker-embed .player-position-opponent-1 .winner-chip-pile,
.jl-poker-embed .player-position-opponent-3 .player-bet-chips,
.jl-poker-embed .player-position-opponent-3 .winner-chip-pile {
    left: calc(100% + 18px);
    top: 50%;
    transform: translateY(-50%);
}

.jl-poker-embed .player-position-opponent-1 .player-bet-chips.is-street-bet,
.jl-poker-embed .player-position-opponent-3 .player-bet-chips.is-street-bet,
.jl-poker-embed .player-position-opponent-2 .player-bet-chips.is-street-bet,
.jl-poker-embed .player-position-opponent-4 .player-bet-chips.is-street-bet,
.jl-poker-embed .player-position-you .player-bet-chips.is-street-bet {
    top: calc(50% - 46px);
}

.jl-poker-embed .player-position-opponent-2 .player-bet-chips,
.jl-poker-embed .player-position-opponent-2 .winner-chip-pile,
.jl-poker-embed .player-position-opponent-4 .player-bet-chips,
.jl-poker-embed .player-position-opponent-4 .winner-chip-pile,
.jl-poker-embed .player-position-you .player-bet-chips,
.jl-poker-embed .player-position-you .winner-chip-pile {
    left: auto;
    right: calc(100% + 18px);
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 641px) {
    .jl-poker-embed .player-position-opponent-1 .seat-role-indicators,
    .jl-poker-embed .player-position-opponent-2 .seat-role-indicators {
        top: calc(100% + 38px);
    }

    .jl-poker-embed .player-position-you .player-tooltip {
        left: calc(100% + 10px);
        right: auto;
        transform: translateX(-4px) translateY(-50%);
    }

    .jl-poker-embed .player-position-you:hover .player-tooltip,
    .jl-poker-embed .player-position-you:focus-within .player-tooltip,
    .jl-poker-embed .player-position-you .player-avatar:hover + .player-tooltip,
    .jl-poker-embed .player-position-you .player-avatar:focus + .player-tooltip {
        transform: translateX(0) translateY(-50%);
    }

    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        left: calc(100% + 18px);
        right: auto;
        top: 50%;
        transform: translateY(-50%);
    }
}

.jl-poker-embed .chip-stack {
    display: block;
    height: 22px;
    position: relative;
    width: 54px;
}

.jl-poker-embed .chip-stack span {
    background: linear-gradient(90deg, var(--chip-color, #ef4444) 0 28%, #fff 28% 38%, var(--chip-color, #ef4444) 38% 62%, #fff 62% 72%, var(--chip-color, #ef4444) 72%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    box-shadow: 0 2px 0 var(--chip-shadow, #7f1d1d);
    height: 18px;
    left: calc(var(--chip-index) * 4px);
    position: absolute;
    top: calc(var(--chip-index) * -1px);
    width: 18px;
}

.jl-poker-embed .winner-contribution {
    align-items: center;
    display: inline-grid;
    gap: 1px;
    justify-items: center;
}

.jl-poker-embed .winner-contribution .chip-stack {
    height: 18px;
    width: 46px;
}

.jl-poker-embed .winner-contribution small {
    color: #fff7cc;
    font-size: 10px;
    font-weight: 900;
}

.jl-poker-embed .player-bet-chips.is-all-in .chip-stack {
    height: 34px;
    width: 76px;
}

.jl-poker-embed .player-bet-chips.is-all-in .chip-stack span {
    height: 22px;
    left: calc(var(--chip-index) * 5px);
    width: 22px;
}

.jl-poker-embed .player-bet-chips.is-queued {
    color: #bfdbfe;
}

.jl-poker-embed .player-bet-chips.is-queued .chip-stack span {
    background: linear-gradient(90deg, #2563eb 0 28%, #fff 28% 38%, #2563eb 38% 62%, #fff 62% 72%, #2563eb 72%);
    box-shadow: 0 2px 0 #1e3a8a;
}

.jl-poker-embed .player-bet-chips em {
    color: #bfdbfe;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jl-poker-embed .playing-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 239, 246, 0.98));
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: clamp(8px, 1.6vw, 12px);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.7),
        0 12px 26px rgba(0, 0, 0, 0.34);
    color: #111827;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    height: clamp(82px, 14vw, 118px);
    overflow: hidden;
    position: relative;
    transform-style: flat;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    width: clamp(58px, 9vw, 82px);
}

.jl-poker-embed .card-corner {
    display: grid;
    font-weight: 900;
    justify-items: center;
    line-height: 0.9;
    position: absolute;
    text-align: center;
    width: 20px;
}

.jl-poker-embed .card-corner b {
    font-size: clamp(15px, 2.6vw, 20px);
}

.jl-poker-embed .card-corner small {
    font-size: clamp(13px, 2.4vw, 18px);
    line-height: 1;
}

.jl-poker-embed .card-corner-top {
    left: 7px;
    top: 7px;
}

.jl-poker-embed .card-corner-bottom {
    bottom: 7px;
    right: 7px;
    transform: rotate(180deg);
}

.jl-poker-embed .card-face {
    display: grid;
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 900;
    height: 100%;
    place-items: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.jl-poker-embed .suit-hearts,
.jl-poker-embed .suit-diamonds {
    color: #bf1d35;
}

.jl-poker-embed .suit-clubs,
.jl-poker-embed .suit-spades {
    color: #111827;
}

.jl-poker-embed .playing-card.is-winning-hole-card {
    border-color: #facc15;
    box-shadow:
        0 0 0 4px rgba(250, 204, 21, 0.92),
        0 0 22px rgba(250, 204, 21, 0.68),
        inset 0 0 0 2px rgba(255, 255, 255, 0.82),
        0 12px 26px rgba(0, 0, 0, 0.34);
}

.jl-poker-embed .seat-grid {
    display: grid;
    gap: clamp(8px, 1.8vw, 12px);
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
}

.jl-poker-embed .seat {
    background: rgba(4, 14, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    position: relative;
}

.jl-poker-embed .seat .player-admin-controls {
    right: 8px;
    top: 8px;
}

.jl-poker-embed .action-timer {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: auto 1fr;
    margin-top: 4px;
}

.jl-poker-embed .action-timer-circle {
    align-items: center;
    animation: jl-poker-timer-circle var(--timer-duration, 60s) linear forwards;
    background: conic-gradient(var(--timer-color, #22c55e) var(--timer-degrees, 360deg), rgba(255, 255, 255, 0.14) 0deg);
    border-radius: 50%;
    display: grid;
    height: 42px;
    justify-items: center;
    place-items: center;
    width: 42px;
}

.jl-poker-embed .action-timer-circle span {
    align-items: center;
    background: #06111f;
    border-radius: 50%;
    color: #fff;
    display: grid;
    font-size: 12px;
    font-weight: 900;
    height: 30px;
    place-items: center;
    width: 30px;
}

.jl-poker-embed .action-timer-bar {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.jl-poker-embed .action-timer-bar span {
    animation: jl-poker-timer-bar var(--timer-duration, 60s) linear forwards;
    background: var(--timer-color, #22c55e);
    display: block;
    height: 100%;
    transform: scaleX(var(--timer-progress, 1));
    transform-origin: left center;
    will-change: transform;
    width: 100%;
}

.jl-poker-embed .player-avatar .action-timer {
    bottom: -18px;
    display: block;
    height: 10px;
    left: 50%;
    margin: 0;
    position: absolute;
    transform: translateX(-50%);
    width: calc(100% + 28px);
}

.jl-poker-embed .player-avatar .action-timer-circle {
    display: none;
}

.jl-poker-embed .player-avatar .action-timer-bar {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 10px;
}

.jl-poker-embed .action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.jl-poker-embed .action-wheel {
    aspect-ratio: 1;
    background:
        radial-gradient(circle at center, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98) 58%, rgba(0, 0, 0, 0.96)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border: clamp(5px, 1vw, 8px) solid rgba(17, 24, 39, 0.96);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.16),
        inset 0 0 32px rgba(0, 0, 0, 0.52),
        0 20px 42px rgba(0, 0, 0, 0.45);
    display: block;
    height: auto;
    margin: 0;
    flex: 0 0 auto;
    max-width: 240px;
    position: relative;
    width: min(42vw, 240px);
}

.jl-poker-embed .action-wheel::before {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px);
    border-radius: 50%;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 5;
}

.jl-poker-embed .action-wheel button {
    align-items: center;
    appearance: none;
    background: linear-gradient(145deg, #1f2937, #020617);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-weight: 900;
    height: clamp(54px, 9vw, 58px);
    justify-items: center;
    line-height: 1;
    padding: 0;
    place-items: center;
    position: absolute;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.44);
    text-transform: uppercase;
    width: clamp(54px, 9vw, 58px);
    z-index: 2;
}

.jl-poker-embed .action-wheel button span,
.jl-poker-embed .action-wheel button small {
    display: block;
    pointer-events: none;
    position: static;
    z-index: 4;
}

.jl-poker-embed .action-wheel button span {
    font-size: clamp(11px, 1.8vw, 13px);
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    -webkit-text-stroke: 0;
}

.jl-poker-embed .action-wheel button small {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(10px, 1.6vw, 12px);
    font-weight: 900;
    line-height: 1;
    margin-top: 3px;
    white-space: nowrap;
    -webkit-text-stroke: 0;
}

.jl-poker-embed .action-wheel button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.45);
    opacity: 0.68;
}

.jl-poker-embed .remote-action-bet,
.jl-poker-embed .remote-action-check,
.jl-poker-embed .remote-action-call,
.jl-poker-embed .remote-action-all-in,
.jl-poker-embed .remote-action-raise,
.jl-poker-embed .remote-action-fold {
    clip-path: none;
}

.jl-poker-embed .remote-action-bet span {
    transform: none;
}

.jl-poker-embed .remote-action-bet {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    left: 50%;
    top: 6%;
    transform: translateX(-50%);
}

.jl-poker-embed .remote-action-check,
.jl-poker-embed .remote-action-call {
    background: linear-gradient(145deg, #16a34a, #15803d);
    right: 6%;
    top: 42%;
    transform: translateY(-50%);
}

.jl-poker-embed .remote-action-all-in {
    background: linear-gradient(145deg, #7c3aed, #581c87);
    bottom: 13%;
    right: 15%;
}

.jl-poker-embed .remote-action-raise {
    background: linear-gradient(145deg, #f59e0b, #b45309);
    bottom: 13%;
    left: 15%;
}

.jl-poker-embed .remote-action-raise span,
.jl-poker-embed .remote-action-raise small {
    color: #fde047;
}

.jl-poker-embed .remote-action-raise span {
    font-size: clamp(9px, 1.35vw, 11px);
}

.jl-poker-embed .remote-action-fold {
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    left: 6%;
    top: 42%;
    transform: translateY(-50%);
}

.jl-poker-embed .action-wheel-hub {
    background:
        radial-gradient(circle at 36% 32%, #fff7c2, #fbbf24 36%, #92400e 68%, #111827 72%);
    border: 5px solid #05070c;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), 0 8px 16px rgba(0, 0, 0, 0.45);
    height: 18%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18%;
    z-index: 8;
}

.jl-poker-embed .table-secondary-actions {
    display: flex;
    flex-basis: auto;
    gap: 6px;
    justify-content: center;
    position: absolute;
    left: 8px;
    right: auto;
    bottom: 8px;
    order: 3;
    width: auto;
    z-index: 7;
}

.jl-poker-embed .layout-lock-toggle,
.jl-poker-embed .reset-layout-action,
.jl-poker-embed .player-chips-toggle {
    align-items: center;
    background: rgba(15, 23, 42, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
    color: #fff;
    cursor: pointer;
    display: inline-grid;
    font-size: 16px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
    z-index: 20;
}

.jl-poker-embed .layout-lock-toggle {
    bottom: 12px;
    left: auto;
    position: absolute;
    right: 12px;
    transform: none;
}

.jl-poker-embed .layout-lock-toggle.is-locked {
    background: rgba(127, 29, 29, 0.92);
}

.jl-poker-embed .player-chips-toggle.is-hidden {
    background: rgba(55, 65, 81, 0.92);
    color: rgba(255, 255, 255, 0.62);
}

.jl-poker-embed .is-player-chips-hidden .table-players .player-bankroll,
.jl-poker-embed .is-player-chips-hidden .table-players .player-stones-badge,
.jl-poker-embed .is-player-chips-hidden .table-players .seat-stones-badge,
.jl-poker-embed .is-player-chips-hidden .table-players .player-bet-chips,
.jl-poker-embed .is-player-chips-hidden .table-players .winner-chip-pile {
    display: none;
}

.jl-poker-embed .player-control-row .action-wheel {
    order: 1;
}

.jl-poker-embed .close-room-action {
    align-items: center;
    background: rgba(127, 29, 29, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    color: #fff;
    display: inline-grid;
    font-size: 18px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-indent: 0;
    width: 42px;
}

.jl-poker-embed .close-room-action:hover,
.jl-poker-embed .close-room-action:focus-visible {
    background: rgba(153, 27, 27, 0.96);
}

.jl-poker-embed .table-secondary-actions .secondary-action {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    padding: 10px 18px;
}

.jl-poker-embed .table-secondary-actions .close-room-action {
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    background: rgba(127, 29, 29, 0.9);
    display: inline-grid;
    font-size: 18px;
    font-weight: 900;
    height: 42px;
    line-height: 1;
    min-width: 0;
    padding: 0;
    width: 42px;
}

.jl-poker-embed .winner-banner {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(245, 158, 11, 0.96));
    border-radius: 999px;
    color: #1f1300;
    font-weight: 900;
    left: 50%;
    justify-self: center;
    padding: 12px 20px;
    position: absolute;
    text-align: center;
    top: 18%;
    transform: translateX(-50%);
    width: min(78%, 520px);
    z-index: 12;
}

.jl-poker-embed .pause-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.92));
    border: 1px solid rgba(147, 197, 253, 0.6);
    border-radius: 999px;
    color: #dff8ff;
    font-weight: 900;
    left: 50%;
    justify-self: center;
    padding: 12px 20px;
    position: absolute;
    text-align: center;
    top: 18%;
    transform: translateX(-50%);
    width: min(78%, 520px);
    z-index: 12;
}

.jl-poker-embed .waiting-room {
    background: rgba(4, 14, 25, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    display: grid;
    gap: 16px;
    padding: clamp(16px, 3vw, 28px);
}

.jl-poker-embed #start-demo-hand {
    background: linear-gradient(135deg, #10b981, #2563eb);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    justify-self: start;
    padding: 14px 22px;
}

.jl-poker-embed .hint {
    color: #b7c8de;
    margin: 0;
}

@keyframes jl-poker-timer-bar {
    from {
        transform: scaleX(var(--timer-progress, 1));
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes jl-poker-timer-circle {
    0% {
        background: conic-gradient(var(--timer-color, #22c55e) var(--timer-degrees, 360deg), rgba(255, 255, 255, 0.14) 0deg);
    }

    100% {
        background: conic-gradient(#ef4444 0deg, rgba(255, 255, 255, 0.14) 0deg);
    }
}

@media (max-width: 900px) {
    .jl-poker-embed .playing-card {
        border-radius: 9px;
    }

    .jl-poker-embed .card-corner {
        line-height: 0.82;
        width: 16px;
    }

    .jl-poker-embed .card-corner b {
        font-size: clamp(12px, 2.1vw, 16px);
    }

    .jl-poker-embed .card-corner small {
        font-size: clamp(10px, 1.9vw, 14px);
    }

    .jl-poker-embed .card-corner-top {
        left: 5px;
        top: 5px;
    }

    .jl-poker-embed .card-corner-bottom {
        bottom: 5px;
        right: 5px;
    }

    .jl-poker-embed .card-face {
        font-size: clamp(24px, 4.6vw, 38px);
    }

    .jl-poker-embed .community-cards {
        top: 31%;
    }

    .jl-poker-embed .table-bet-pile {
        top: 49%;
    }

    .jl-poker-embed .winner-banner {
        top: 11%;
    }

    .jl-poker-embed .community-cards .playing-card {
        height: clamp(86px, 12vw, 116px);
        width: clamp(60px, 8vw, 80px);
    }

    .jl-poker-embed .player-control-row {
        bottom: 2%;
        flex-wrap: nowrap;
        gap: clamp(8px, 1.4vw, 14px);
        width: min(calc(100% - 120px), 520px);
    }

    .jl-poker-embed .action-wheel {
        max-width: 190px;
        width: min(34vw, 190px);
    }

    .jl-poker-embed .remote-action-check,
    .jl-poker-embed .remote-action-call {
        right: 5%;
        top: 38%;
    }

    .jl-poker-embed .remote-action-fold {
        left: 5%;
        top: 38%;
    }

    .jl-poker-embed .remote-action-raise {
        bottom: 8%;
        left: 14%;
    }

    .jl-poker-embed .remote-action-all-in {
        bottom: 8%;
        right: 14%;
    }

    .jl-poker-embed .player-control-row .player-hand {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .jl-poker-embed .player-control-row .playing-card {
        height: clamp(82px, 12vw, 104px);
        width: clamp(56px, 8vw, 72px);
    }
}

@media (min-width: 641px) and (max-width: 900px) and (min-aspect-ratio: 6 / 5) and (max-aspect-ratio: 4 / 3) {
    .jl-poker-embed .player-position-you {
        bottom: 13%;
        left: 72%;
        right: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        left: auto;
        right: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%);
    }

    .jl-poker-embed .player-position-you .seat-role-indicators {
        left: calc(100% + 10px);
        right: auto;
        top: calc(100% + 18px);
        transform: none;
    }
}

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

    .jl-poker-embed {
        left: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
        overflow-x: hidden;
        width: 100vw !important;
    }

    .jl-poker-embed.is-in-room {
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
        overflow-x: clip;
        width: 100vw !important;
    }

    .jl-poker-embed .poker-table-panel {
        padding: 10px 12px 12px;
        position: relative;
    }

    .jl-poker-embed.is-in-room .game-shell,
    .jl-poker-embed.is-in-room .poker-table-panel {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100vw;
    }

    .jl-poker-embed.is-in-room .game-shell {
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }

    .jl-poker-embed .table-panel-header {
        align-items: start;
        display: grid;
        gap: 6px;
        grid-template-columns: 1fr auto;
        padding: 0 8px;
        width: 100%;
    }

    .jl-poker-embed .table-panel-header h2 {
        font-size: 0;
        line-height: 1;
        margin: 0;
        min-width: 0;
    }

    .jl-poker-embed .table-panel-header h2::after {
        content: "Texas Hold'em";
        display: block;
        font-size: clamp(20px, 7vw, 28px);
        line-height: 1.05;
    }

    .jl-poker-embed .fullscreen-action {
        font-size: 12px;
        padding: 8px 11px;
    }

    .jl-poker-embed .poker-table {
        overflow-x: clip;
        overflow-y: visible;
        padding-bottom: 144px;
    }

    .jl-poker-embed .game-shell {
        gap: 14px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .jl-poker-embed .player-control-row {
        align-items: center;
        bottom: -130px;
        flex-wrap: nowrap;
        gap: 14px;
        justify-content: center;
        width: calc(100% - 24px);
        z-index: 18;
    }

    .jl-poker-embed .layout-lock-toggle {
        bottom: 12px;
        height: 28px;
        font-size: 13px;
        right: 12px;
        width: 28px;
    }

    .jl-poker-embed .player-control-row .action-wheel {
        order: 1;
    }

    .jl-poker-embed .player-control-row .player-hand {
        order: 2;
    }

    .jl-poker-embed .player-control-row .player-hand.is-stacked {
        cursor: pointer;
        display: grid;
        gap: 0;
        height: 80px;
        justify-items: end;
        min-width: 92px;
        position: relative;
        touch-action: manipulation;
        width: 98px;
    }

    .jl-poker-embed .player-control-row .player-hand.is-stacked .playing-card {
        grid-area: 1 / 1;
        height: 76px;
        transition: transform 0.16s ease;
        width: 52px;
    }

    .jl-poker-embed .player-control-row .player-hand.is-stacked .playing-card:first-child {
        transform: translateX(-18px) rotate(-2deg);
        z-index: 2;
    }

    .jl-poker-embed .player-control-row .player-hand.is-stacked .playing-card:nth-child(2) {
        transform: translateX(20px) translateY(8px) rotate(2deg);
        z-index: 1;
    }

    .jl-poker-embed .player-control-row .player-hand.is-stacked.is-peeking {
        display: flex;
        gap: 6px;
        width: 116px;
    }

    .jl-poker-embed .player-control-row .player-hand.is-stacked.is-peeking .playing-card {
        transform: none;
    }

    .jl-poker-embed .player-avatar .action-timer {
        bottom: -8px;
        top: auto;
        width: calc(100% + 4px);
        z-index: 10;
    }

    .jl-poker-embed .seat-role-indicators {
        flex-direction: row;
        gap: 4px;
        left: 50%;
        top: calc(100% + 24px);
        transform: translateX(-50%);
        z-index: 12;
    }

    .jl-poker-embed .seat-role-badge {
        font-size: 10px;
        height: 26px;
        min-width: 26px;
        padding: 0 6px;
    }

    .jl-poker-embed .player-bet-chips.is-street-bet .reraise-loading-bar {
        top: calc(100% + 5px);
        width: min(104px, 34vw);
    }

    .jl-poker-embed .community-cards {
        gap: 4px;
        top: 29%;
    }

    .jl-poker-embed .table-bet-pile {
        gap: 6px;
        max-width: min(70%, 280px);
        top: 44%;
    }

    .jl-poker-embed .community-cards .playing-card {
        height: 66px;
        width: 44px;
    }

    .jl-poker-embed .winner-banner {
        font-size: 12px;
        padding: 9px 12px;
        top: 10%;
        width: min(86%, 360px);
    }

    .jl-poker-embed .action-wheel {
        max-width: 120px;
        width: min(38vw, 120px);
    }

    .jl-poker-embed .action-wheel button {
        height: 34px;
        width: 34px;
    }

    .jl-poker-embed .action-wheel button span {
        font-size: 10px;
    }

    .jl-poker-embed .action-wheel button small {
        font-size: 9px;
    }

    .jl-poker-embed .player-control-row .playing-card {
        height: 76px;
        width: 52px;
    }

    .jl-poker-embed .card-corner {
        line-height: 0.78;
        width: 14px;
    }

    .jl-poker-embed .card-corner b {
        font-size: 11px;
    }

    .jl-poker-embed .card-corner small {
        font-size: 9px;
    }

    .jl-poker-embed .card-face {
        font-size: 24px;
        opacity: 0.92;
    }

    .jl-poker-embed .table-felt {
        border-radius: 30px;
        margin-bottom: 8px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 26px;
        min-height: 480px;
        min-width: 0;
        overflow: visible;
        padding: 24px 12px 106px;
        width: calc(100% - 8px);
    }

    .jl-poker-embed .table-title {
        align-items: center;
        display: inline-flex;
        gap: 6px;
        left: 50%;
        position: absolute;
        top: -38px;
        transform: translateX(-50%);
        width: max-content;
        z-index: 16;
    }

    .jl-poker-embed .pot-display {
        background: rgba(15, 23, 42, 0.8);
        border-radius: 999px;
        padding: 3px 9px;
    }

    .jl-poker-embed .stage-toggle {
        display: none;
    }

    .jl-poker-embed .table-direction-arrow::before,
    .jl-poker-embed .table-direction-arrow span {
        display: none;
    }

    .jl-poker-embed .table-direction-arrow {
        inset: 42px 26px 28px;
    }

    .jl-poker-embed .table-secondary-actions {
        bottom: auto;
        left: calc(50% + 76px);
        right: auto;
        top: -38px;
        position: absolute;
        z-index: 20;
    }

    .jl-poker-embed .table-secondary-actions .close-room-action {
        height: 28px;
        width: 28px;
        font-size: 15px;
    }

    .jl-poker-embed .player-marker {
        --avatar-size: 50px;
    }

    .jl-poker-embed [data-layout-opponent-key] {
        touch-action: none;
    }

    .jl-poker-embed [data-layout-opponent-key] .player-avatar {
        cursor: grab;
    }

    .jl-poker-embed .player-avatar {
        border-radius: 14px;
        min-width: calc(var(--avatar-size) + 10px);
        padding: 5px;
    }

    .jl-poker-embed .player-avatar-name {
        font-size: 10px;
        max-width: calc(var(--avatar-size) + 10px);
    }

    .jl-poker-embed .player-position-you {
        bottom: 10%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-opponent-1 {
        left: 18%;
        top: 50%;
    }

    .jl-poker-embed .opponents-1.player-position-opponent-1,
    .jl-poker-embed .opponents-2.player-position-opponent-1,
    .jl-poker-embed .opponents-3.player-position-opponent-1 {
        left: 18%;
        top: 50%;
    }

    .jl-poker-embed .player-position-opponent-2 {
        right: 18%;
        top: 42%;
    }

    .jl-poker-embed .opponents-2.player-position-opponent-2,
    .jl-poker-embed .opponents-3.player-position-opponent-2 {
        right: 18%;
        top: 42%;
    }

    .jl-poker-embed .player-position-opponent-3 {
        left: 28%;
        top: 14%;
    }

    .jl-poker-embed .player-position-opponent-4 {
        right: 34%;
        top: 14%;
    }

    .jl-poker-embed .player-stones-badge {
        top: -26px;
    }

    .jl-poker-embed .player-bankroll,
    .jl-poker-embed .player-position-opponent-1 .player-bankroll,
    .jl-poker-embed .player-position-opponent-2 .player-bankroll,
    .jl-poker-embed .player-position-opponent-3 .player-bankroll,
    .jl-poker-embed .player-position-opponent-4 .player-bankroll {
        top: calc(100% + 26px);
    }

    .jl-poker-embed .player-bankroll .lobby-chip-stack {
        display: none;
    }

    .jl-poker-embed .player-bankroll strong {
        font-size: 10px;
        padding: 4px 7px;
    }

    .jl-poker-embed .player-bet-chips,
    .jl-poker-embed .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-1 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-1 .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-2 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-2 .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-3 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-3 .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-4 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-4 .winner-chip-pile,
    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        top: 50%;
    }

    .jl-poker-embed .player-position-opponent-1 .player-bet-chips.is-street-bet,
    .jl-poker-embed .player-position-opponent-2 .player-bet-chips.is-street-bet,
    .jl-poker-embed .player-position-opponent-3 .player-bet-chips.is-street-bet,
    .jl-poker-embed .player-position-opponent-4 .player-bet-chips.is-street-bet,
    .jl-poker-embed .player-position-you .player-bet-chips.is-street-bet {
        top: 50%;
    }

    .jl-poker-embed .player-position-opponent-1 .player-bankroll,
    .jl-poker-embed .player-position-opponent-1 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-1 .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-2 .player-bankroll,
    .jl-poker-embed .player-position-opponent-2 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-2 .winner-chip-pile {
        top: 50%;
    }

    .jl-poker-embed .player-position-opponent-1 .player-bankroll,
    .jl-poker-embed .player-position-opponent-1 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-1 .winner-chip-pile {
        left: calc(100% + 8px);
        right: auto;
        transform: translateY(-50%);
    }

    .jl-poker-embed .player-position-opponent-2 .player-bankroll,
    .jl-poker-embed .player-position-opponent-2 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-2 .winner-chip-pile {
        left: auto;
        right: calc(100% + 8px);
        transform: translateY(-50%);
    }

    .jl-poker-embed .player-position-opponent-1 .player-bankroll {
        bottom: calc(100% + 8px);
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-opponent-2 .player-bankroll {
        bottom: calc(100% + 8px);
        flex-direction: column;
        gap: 2px;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-opponent-2 .player-bankroll .lobby-chip-stack {
        display: block;
        height: 22px;
        width: 22px;
    }

    .jl-poker-embed .player-position-you .player-bankroll,
    .jl-poker-embed .player-position-opponent-3 .player-bankroll,
    .jl-poker-embed .player-position-opponent-4 .player-bankroll,
    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-3 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-3 .winner-chip-pile,
    .jl-poker-embed .player-position-opponent-4 .player-bet-chips,
    .jl-poker-embed .player-position-opponent-4 .winner-chip-pile {
        left: 50%;
        right: auto;
        top: calc(100% + 38px);
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-opponent-1 .seat-role-indicators {
        left: 50%;
        top: calc(100% + 28px);
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-opponent-2 .seat-role-indicators {
        left: 50%;
        right: auto;
        top: calc(100% + 28px);
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .seat-role-indicators,
    .jl-poker-embed .player-position-opponent-3 .seat-role-indicators,
    .jl-poker-embed .player-position-opponent-4 .seat-role-indicators {
        left: 50%;
        top: calc(100% + 16px);
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .player-bankroll {
        bottom: calc(100% + 8px);
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .player-avatar .action-timer {
        bottom: -4px;
    }

    .jl-poker-embed .player-position-opponent-1 .player-avatar .action-timer,
    .jl-poker-embed .player-position-opponent-2 .player-avatar .action-timer {
        bottom: -4px;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        left: calc(100% + 8px);
        right: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .jl-poker-embed .player-position-you .seat-role-indicators {
        bottom: auto;
        left: calc(100% + 18px);
        right: auto;
        top: calc(100% + 18px);
        transform: none;
    }

    .jl-poker-embed .seat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jl-poker-embed .action-bar:not(.action-wheel) button {
        flex: 1 1 42%;
        padding: 12px 14px;
    }
}

@media (max-width: 380px) {
    .jl-poker-embed .table-panel-header {
        gap: 4px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0 4px;
    }

    .jl-poker-embed .table-panel-header h2::after {
        font-size: clamp(16px, 5.5vw, 20px);
        line-height: 1;
        white-space: nowrap;
    }

    .jl-poker-embed .fullscreen-action {
        font-size: 10px;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .jl-poker-embed .table-title {
        gap: 4px;
        top: -34px;
    }

    .jl-poker-embed .pot-display {
        font-size: 12px;
        padding: 2px 7px;
    }

    .jl-poker-embed .table-secondary-actions {
        left: calc(50% + 64px);
        top: -35px;
    }

    .jl-poker-embed .table-secondary-actions .close-room-action {
        font-size: 13px;
        height: 24px;
        width: 24px;
    }
}

@media (max-width: 320px) {
    .jl-poker-embed .table-panel-header h2::after {
        font-size: 15px;
    }

    .jl-poker-embed .fullscreen-action {
        font-size: 9px;
        padding: 5px 7px;
    }
}

@media (max-width: 900px) and (max-height: 760px) {
    .jl-poker-embed .player-position-you {
        bottom: 13%;
        left: 86% !important;
        right: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        left: auto !important;
        right: calc(100% + 10px) !important;
        top: -10%;
        transform: translateY(-50%);
    }

    .jl-poker-embed .player-position-you .seat-role-indicators {
        left: 50%;
        right: auto;
        top: calc(100% + 34px);
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) and (min-aspect-ratio: 6 / 5) and (max-aspect-ratio: 4 / 3) {
    .jl-poker-embed .player-position-you {
        bottom: 13%;
        left: 86% !important;
        right: auto;
        transform: translateX(-50%);
    }

    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        left: auto !important;
        right: calc(100% + 10px) !important;
        top: -10%;
        transform: translateY(-50%);
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .jl-poker-embed .player-position-you {
        bottom: 13%;
        left: 88% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .jl-poker-embed .player-position-you .player-bet-chips,
    .jl-poker-embed .player-position-you .winner-chip-pile {
        left: auto !important;
        right: calc(100% + 10px) !important;
        top: -10%;
        transform: translateY(-50%);
    }

    .jl-poker-embed .player-position-you .seat-role-indicators {
        left: 50%;
        right: auto;
        top: calc(100% + 44px);
        transform: translateX(-50%);
    }
}

.jl-poker-embed #stone-packages.stone-shop-image-grid {
    align-items: start;
    gap: clamp(10px, 1.4vw, 16px);
    grid-template-columns: repeat(4, minmax(0, 238px));
    justify-content: center;
}

.jl-poker-embed .shop-card--image {
    aspect-ratio: 238 / 489;
    background: transparent;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.32), 0 0 28px rgba(168, 85, 247, 0.2);
    display: block;
    line-height: 0;
    max-width: 238px;
    overflow: hidden;
    padding: 0;
    text-align: center;
    width: 100%;
}

.jl-poker-embed .shop-card--image img {
    border-radius: inherit;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

.jl-poker-embed .shop-card--image:hover,
.jl-poker-embed .shop-card--image:focus-visible {
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.48), 0 0 34px rgba(168, 85, 247, 0.34);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .jl-poker-embed #stone-packages.stone-shop-image-grid {
        grid-template-columns: repeat(2, minmax(0, 238px));
    }
}

@media (max-width: 520px) {
    .jl-poker-embed #stone-packages.stone-shop-image-grid {
        grid-template-columns: minmax(0, min(100%, 238px));
    }
}

.jl-poker-embed .rooms-panel {
    align-items: center;
    background:
        radial-gradient(circle at 82% 100%, rgba(168, 85, 247, 0.28), transparent 34%),
        radial-gradient(circle at 0 50%, rgba(14, 165, 233, 0.2), transparent 28%),
        linear-gradient(100deg, rgba(5, 10, 26, 0.96), rgba(9, 11, 34, 0.95));
    border: 2px solid rgba(168, 85, 247, 0.8);
    border-left-color: rgba(14, 165, 233, 0.9);
    border-radius: 32px;
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.2) inset,
        0 0 28px rgba(14, 165, 233, 0.34),
        0 0 34px rgba(168, 85, 247, 0.38),
        inset 0 0 42px rgba(88, 28, 135, 0.32);
    display: grid;
    gap: clamp(22px, 1.8vw, 34px);
    grid-template-columns: 120px minmax(0, 1fr);
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
    overflow: hidden;
    min-height: 330px;
    padding: clamp(34px, 2.6vw, 48px) clamp(30px, 2.6vw, 44px);
    width: 100%;
}

.jl-poker-embed .rooms-panel__icon {
    aspect-ratio: 136 / 116;
    background: url('/assets/images/play/rooms-icon.jpg?v=1') center / cover no-repeat;
    border-radius: 10px;
    filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.55));
    justify-self: center;
    max-width: 104px;
    width: min(100%, 104px);
}

.jl-poker-embed .rooms-panel h2 {
    grid-column: 2;
    background: linear-gradient(180deg, #fff8bf 0%, #facc15 45%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(44px, 4.6vw, 68px);
    font-weight: 1000;
    letter-spacing: 0.02em;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(249, 115, 22, 0.32);
}

.jl-poker-embed .rooms-panel__controls {
    align-items: center;
    display: grid;
    gap: 18px 22px;
    grid-column: 1 / -1;
    grid-template-columns: auto 206px 1px auto 248px 176px;
    justify-content: center;
}

.jl-poker-embed .rooms-panel__controls label {
    color: #ffffff;
    font-size: clamp(18px, 1.45vw, 24px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.jl-poker-embed .rooms-panel__divider {
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.68), transparent);
    height: 58px;
    width: 1px;
}

.jl-poker-embed .rooms-panel select {
    appearance: none;
    -webkit-appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #22d3ee 50%) calc(100% - 24px) 50% / 10px 10px no-repeat,
        linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(16, 12, 38, 0.96));
    border: 2px solid rgba(59, 130, 246, 0.95);
    border-radius: 16px;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.7), inset 0 0 18px rgba(37, 99, 235, 0.18);
    color: #ffffff;
    font-size: clamp(17px, 1.25vw, 22px);
    font-weight: 900;
    min-height: 54px;
    padding: 0 46px 0 20px;
    position: relative;
    width: 100%;
}

.jl-poker-embed .rooms-panel select#jl-poker-starting-stones {
    background:
        linear-gradient(45deg, transparent 50%, #c026d3 50%) calc(100% - 24px) 50% / 10px 10px no-repeat,
        linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(28, 10, 46, 0.96));
    border-color: rgba(168, 85, 247, 0.95);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.72), inset 0 0 18px rgba(168, 85, 247, 0.2);
}

.jl-poker-embed .rooms-panel select option {
    background: #050914;
    color: #ffffff;
}

.jl-poker-embed .rooms-panel .room-create-row {
    grid-column: 1 / -1;
    justify-content: end;
    margin: 4px 0 0;
}

.jl-poker-embed .rooms-panel #create-room {
    background: linear-gradient(135deg, #1d4ed8, #a21caf);
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.35), 0 0 22px rgba(168, 85, 247, 0.24);
    justify-self: end;
    min-height: 54px;
    padding: 13px 24px;
    text-align: center;
    width: 100%;
}
.jl-poker-embed .rooms-panel #rooms,
.jl-poker-embed .rooms-panel .rooms {
    grid-column: 1 / -1;
    width: 100%;
}

.jl-poker-embed .rooms-panel .rooms {
    grid-template-columns: minmax(0, 1fr);
}

.jl-poker-embed .rooms-panel .room-card {
    align-items: start;
    display: grid;
    font-size: clamp(16px, 1.15vw, 19px);
    font-weight: 800;
    gap: 7px;
    justify-self: stretch;
    line-height: 1.3;
    min-height: 110px;
    min-width: min(100%, 420px);
    padding: 18px 24px;
    width: 100%;
}

.jl-poker-embed .rooms-panel .room-card strong,
.jl-poker-embed .rooms-panel .room-card span {
    display: block;
}

.jl-poker-embed .rooms-panel .room-card strong {
    font-size: clamp(18px, 1.25vw, 22px);
    line-height: 1.1;
}

.jl-poker-embed .rooms-panel .room-card span {
    color: rgba(255, 255, 255, 0.84);
}

.jl-poker-embed .rooms-panel .room-card .room-card__creator {
    align-items: center;
    display: flex;
    gap: 8px;
}

.jl-poker-embed .rooms-panel .room-card .room-card__avatar {
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(103, 232, 249, 0.6);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
    flex: 0 0 auto;
    height: 30px;
    width: 30px;
}

.jl-poker-embed .rooms-panel .room-card .room-card__meta {
    color: rgba(255, 255, 255, 0.72);
}



@media (max-width: 1120px) {
    .jl-poker-embed .rooms-panel {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .jl-poker-embed .rooms-panel__controls,
    .jl-poker-embed .rooms-panel .room-create-row {
        grid-column: 1 / -1;
    }

    .jl-poker-embed .rooms-panel__controls {
        gap: 16px 18px;
        grid-template-columns: auto minmax(160px, 190px) 1px auto minmax(190px, 220px) minmax(144px, 160px);
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .jl-poker-embed .rooms-panel__controls {
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: stretch;
    }

    .jl-poker-embed .rooms-panel__divider {
        display: none;
    }

    .jl-poker-embed .rooms-panel #create-room {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    .jl-poker-embed .rooms-panel {
        border-radius: 24px;
        grid-template-columns: 80px minmax(0, 1fr);
        min-height: 0;
        padding: 26px 22px;
    }

    .jl-poker-embed .rooms-panel h2 {
        font-size: clamp(38px, 14vw, 58px);
    }

    .jl-poker-embed .rooms-panel__controls {
        grid-template-columns: 1fr;
    }

    .jl-poker-embed .rooms-panel #create-room {
        grid-column: auto;
    }

    .jl-poker-embed .rooms-panel__divider {
        display: none;
    }

    .jl-poker-embed .rooms-panel select {
        min-height: 56px;
    }
}

