/* Common artwork and responsive table geometry from the regular table. */
.poker-surface .seat {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    min-height: 0
}

.poker-surface .card {
    min-width: 0;
    min-height: 0
}

.poker-surface .cards {
    margin: 0;
    min-height: 0
}

.poker-surface .table {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 1.85;
    margin: 0 auto
}

.poker-surface .felt {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 12%;
    bottom: 12%;
    border-radius: 50%/50%;
    background: radial-gradient(ellipse at center, #2f7d4a 0%, #1d5a33 65%, #164427 100%);
    border: 14px solid #5a3a22;
    box-shadow: 0 0 0 4px #2e1d10, inset 0 0 40px rgba(0, 0, 0, .5)
}

.poker-surface .center {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    text-align: center
}

.poker-surface .board {
    display: flex;
    gap: 6px;
    justify-content: center;
    min-height: 74px
}

.poker-surface .pot {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #ffe9a8
}

.poker-surface .msg {
    margin-top: 4px;
    font-size: 14px;
    color: #fff;
    min-height: 20px;
    max-width: 440px
}

.poker-surface .card {
    width: 50px;
    height: 70px;
    border-radius: 8px;
    background: #F7F3E8;
    color: #1a1a1a;
    display: block;
    position: relative;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .55);
    border: 1px solid #2c2c2c;
    box-sizing: border-box;
    line-height: 1;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased
}

.poker-surface .card .corner {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1
}

.poker-surface .card .corner.tl {
    top: 3px;
    left: 3px
}

.poker-surface .card .corner.br {
    right: 3px;
    bottom: 3px;
    transform: rotate(180deg)
}

.poker-surface .card .r {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.04em
}

.poker-surface .card .s {
    font-size: 11px;
    margin-top: 0
}

.poker-surface .card .pip {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    z-index: 0
}

.poker-surface .card.red {
    color: #C41E3A
}

.poker-surface .card.blue {
    color: #1B4F9C
}

.poker-surface .card.green {
    color: #0F7A3A
}

.poker-surface .card.back {
    color: transparent;
    border: 2.5px solid #F4F1E6;
    background-color: #0C2340;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, .2) 0 7%, transparent 8%),
        repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, .09) 4px 5px),
        repeating-linear-gradient(-45deg, transparent 0 4px, rgba(212, 175, 55, .11) 4px 5px),
        linear-gradient(160deg, #143868 0%, #0C2340 55%, #08182e 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .48), inset 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 0 0 3px #0C2340
}

.poker-surface .card.back .corner,
.poker-surface .card.back .pip,
.poker-surface .card.back .r,
.poker-surface .card.back .s {
    display: none
}

.poker-surface .card.slot {
    background: rgba(0, 0, 0, .15);
    box-shadow: none;
    border: 1px dashed rgba(255, 255, 255, .15)
}

.poker-surface .seat {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 132px;
    text-align: center
}

.poker-surface .seat .cards {
    display: flex;
    gap: 3px;
    justify-content: center;
    height: 58px
}

.poker-surface .seat .card {
    width: 40px;
    height: 56px;
    border-radius: 7px
}

.poker-surface .seat .card .corner.tl {
    top: 2px;
    left: 2px
}

.poker-surface .seat .card .corner.br {
    right: 2px;
    bottom: 2px
}

.poker-surface .seat .card .r {
    font-size: 11px
}

.poker-surface .seat .card .s {
    font-size: 9px
}

.poker-surface .seat .card .pip {
    font-size: 22px
}

.poker-surface .seat.hero .cards {
    height: 76px
}

.poker-surface .seat.hero .card {
    width: 54px;
    height: 76px;
    border-radius: 8px
}

.poker-surface .seat.hero .card .r {
    font-size: 14px
}

.poker-surface .seat.hero .card .s {
    font-size: 12px
}

.poker-surface .seat.hero .card .pip {
    font-size: 32px
}

.poker-surface .seat .plate {
    background: #0d0f12e6;
    border: 2px solid #3a414c;
    border-radius: 10px;
    padding: 3px 6px;
    margin-top: -10px;
    position: relative
}

.poker-surface .seat .nm {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.poker-surface .seat .nm i {
    color: #9ab;
    font-style: normal;
    font-size: 11px;
    margin-left: 3px
}

.poker-surface .seat .stk {
    font-size: 14px;
    font-weight: 700;
    color: #ffe9a8
}

.poker-surface .seat .sty {
    font-size: 11px;
    color: #c9a
}

.poker-surface .seat.toact .plate {
    border-color: #ffd54a;
    box-shadow: 0 0 12px #ffd54a
}

.poker-surface .seat.folded {
    opacity: .42
}

.poker-surface .seat.win .plate {
    border-color: #4ade80;
    box-shadow: 0 0 14px #4ade80
}

.poker-surface .seat .badge {
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    background: #ffd54a;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9px;
    white-space: nowrap;
    z-index: 3
}

.poker-surface .seat .badge.fold {
    background: #888
}

.poker-surface .seat .badge.raise {
    background: #ff7a59
}

.poker-surface .seat .badge.win {
    background: #4ade80
}

.poker-surface .seat .hn {
    font-size: 11px;
    color: #8f8
}

.poker-surface .bet {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #00000080;
    border-radius: 10px;
    padding: 1px 8px;
    white-space: nowrap
}

.poker-surface .bet:before {
    content: "●";
    color: #e33;
    margin-right: 4px
}

.poker-surface .dealer {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px #000
}

@media (max-width:900px) {
    .poker-surface .seat {
        width: 96px
    }

    .poker-surface .seat .card {
        width: 30px;
        height: 42px;
        border-radius: 6px
    }

    .poker-surface .seat .card .r {
        font-size: 9px
    }

    .poker-surface .seat .card .s {
        font-size: 8px
    }

    .poker-surface .seat .card .pip {
        font-size: 16px
    }

    .poker-surface .seat .card .corner.br {
        display: none
    }

    .poker-surface .seat .cards {
        height: 44px
    }

    .poker-surface .seat.hero .card {
        width: 44px;
        height: 62px
    }

    .poker-surface .seat.hero .card .r {
        font-size: 12px
    }

    .poker-surface .seat.hero .card .s {
        font-size: 10px
    }

    .poker-surface .seat.hero .card .pip {
        font-size: 24px
    }

    .poker-surface .seat.hero .cards {
        height: 62px
    }

    .poker-surface .card {
        width: 38px;
        height: 54px;
        border-radius: 7px
    }

    .poker-surface .card .r {
        font-size: 11px
    }

    .poker-surface .card .s {
        font-size: 9px
    }

    .poker-surface .card .pip {
        font-size: 20px
    }

    .poker-surface .board {
        min-height: 56px
    }

    .poker-surface .seat .nm,
    .poker-surface .seat .stk {
        font-size: 11px
    }
}

.poker-surface .imit {
    font-size: 11px;
    color: #fbbf24;
    margin-top: 4px;
    opacity: .85
}

.poker-surface .seat .nm .fake {
    color: #fbbf24;
    font-size: 10px;
    margin-left: 2px
}

.poker-surface .table {
    perspective: 1500px;
    perspective-origin: 50% 30%
}

.poker-surface .table .shadow {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 22%;
    bottom: 4%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(14px);
    transform: translateY(16px)
}

.poker-surface .felt {
    left: 6%;
    right: 6%;
    top: 11%;
    bottom: 11%;
    border: none;
    border-radius: 50%;
    transform: rotateX(24deg);
    transform-origin: 50% 55%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .35) 100%),
        repeating-linear-gradient(97deg, #6e3f1d 0 5px, #5b3216 5px 9px, #7d4a24 9px 14px, #663a1b 14px 20px);
    box-shadow: 0 0 0 2px #2a1709, 0 2px 0 3px #1a0e05, 0 18px 30px rgba(0, 0, 0, .6), inset 0 3px 4px rgba(255, 255, 255, .25), inset 0 -6px 10px rgba(0, 0, 0, .5)
}

.poker-surface .felt .cloth {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
        repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .018) 0 1px, rgba(0, 0, 0, .018) 1px 2px),
        radial-gradient(ellipse at center, #2f8a50 0%, #1f6a3a 55%, #154a29 100%);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 0 9px rgba(255, 255, 255, .035), inset 0 0 0 11px rgba(255, 255, 255, .07), inset 0 10px 40px rgba(0, 0, 0, .55)
}

.poker-surface .felt .cloth:after {
    content: "♠ ♥ JASON 练习桌 ♦ ♣";
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, .07);
    font-weight: 800;
    white-space: nowrap
}

.poker-surface .card {
    position: relative;
    background: linear-gradient(165deg, #FFFEF8 0%, #F7F3E8 55%, #EFE8D8 100%);
    box-shadow: 0 3px 7px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 0 0 1px rgba(0, 0, 0, .08);
    transform-style: preserve-3d
}

.poker-surface .card.back {
    color: transparent;
    border: 2.5px solid #F4F1E6;
    background-color: #0C2340;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, .22) 0 7%, transparent 8%),
        repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, .1) 4px 5px),
        repeating-linear-gradient(-45deg, transparent 0 4px, rgba(212, 175, 55, .12) 4px 5px),
        linear-gradient(160deg, #143868 0%, #0C2340 55%, #08182e 100%);
    box-shadow: 0 3px 7px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .3), inset 0 0 0 3px #0C2340
}

.poker-surface .card.slot {
    background: rgba(0, 0, 0, .18);
    border: 1px dashed rgba(255, 255, 255, .18);
    box-shadow: none
}

.poker-surface .card.deal {
    animation: dealIn .38s cubic-bezier(.2, .8, .3, 1) both
}

@keyframes dealIn {
    from {
        transform: translate(var(--fx), var(--fy)) rotate(-25deg) scale(.6);
        opacity: 0
    }

    15% {
        opacity: 1
    }

    to {
        transform: none;
        opacity: 1
    }
}

.poker-surface .card.boardin {
    animation: boardIn .5s cubic-bezier(.2, .8, .3, 1) both
}

@keyframes boardIn {
    from {
        transform: translateY(-60px) rotateY(180deg) scale(.7);
        opacity: 0
    }

    40% {
        opacity: 1
    }

    to {
        transform: none;
        opacity: 1
    }
}

.poker-surface .card.flip {
    animation: flipIn .6s ease-out both
}

.poker-surface .card.flip span,
.poker-surface .card.boardin span {
    backface-visibility: hidden
}

.poker-surface .card.flip:after,
.poker-surface .card.boardin:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-color: #0C2340;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, .22) 0 7%, transparent 8%),
        repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, .1) 4px 5px),
        repeating-linear-gradient(-45deg, transparent 0 4px, rgba(212, 175, 55, .12) 4px 5px),
        linear-gradient(160deg, #143868 0%, #0C2340 55%, #08182e 100%);
    border: 2.5px solid #F4F1E6;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 0 0 3px #0C2340;
    box-sizing: border-box;
    transform: rotateY(180deg);
    backface-visibility: hidden
}

@keyframes flipIn {
    from {
        transform: rotateY(180deg)
    }

    to {
        transform: rotateY(0)
    }
}

.poker-surface .seat {
    width: 164px
}

.poker-surface .seat .plate {
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
    padding: 4px 8px 4px 4px;
    border-radius: 32px;
    margin-top: -8px;
    background: linear-gradient(180deg, rgba(30, 36, 46, .96), rgba(12, 14, 18, .96));
    border: 1px solid #3a414c;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .55)
}

.poker-surface .seat .info {
    min-width: 0;
    flex: 1;
    line-height: 1.25
}

.poker-surface .seat .avatar {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0b0d10, 0 0 0 3px #4b5563
}

.poker-surface .seat .avatar>svg:first-child {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: block
}

.poker-surface .seat .tag {
    display: inline-block;
    font-size: 10px;
    line-height: 14px;
    padding: 0 5px;
    border-radius: 7px;
    background: #3a2e10;
    color: #fbbf24;
    border: 1px solid #a16207
}

.poker-surface .seat .nm {
    font-size: 13px;
    font-weight: 600
}

.poker-surface .seat .stk {
    font-size: 14px
}

.poker-surface .seat.toact .plate {
    border-color: #ffd54a;
    box-shadow: 0 0 0 1px #ffd54a, 0 0 18px rgba(255, 213, 74, .55)
}

.poker-surface .seat.toact .avatar {
    animation: pulse 1.2s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px #0b0d10, 0 0 0 3px #ffd54a, 0 0 8px #ffd54a
    }

    50% {
        box-shadow: 0 0 0 2px #0b0d10, 0 0 0 3px #ffd54a, 0 0 20px #ffd54a
    }
}

.poker-surface .seat .ring {
    position: absolute;
    inset: -5px;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
    pointer-events: none
}

.poker-surface .seat .ring circle {
    fill: none;
    stroke: #ffd54a;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation-name: ringRun;
    animation-timing-function: linear;
    animation-fill-mode: both
}

@keyframes ringRun {
    from {
        stroke-dashoffset: 0;
        stroke: #4ade80
    }

    60% {
        stroke: #ffd54a
    }

    to {
        stroke-dashoffset: 100;
        stroke: #ef4444
    }
}

.poker-surface .seat.win .plate {
    border-color: #4ade80;
    box-shadow: 0 0 0 1px #4ade80, 0 0 22px rgba(74, 222, 128, .6)
}

.poker-surface .seat.folded {
    opacity: .45;
    filter: grayscale(.6)
}

.poker-surface .seat .badge {
    top: -12px;
    left: 60%
}

.poker-surface .seat.hero .plate {
    border-color: #60a5fa
}

.poker-surface .chips {
    position: relative;
    width: 24px;
    display: inline-block;
    vertical-align: bottom
}

.poker-surface .chip {
    position: absolute;
    left: 0;
    width: 24px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), var(--c);
    border: 2px dashed rgba(255, 255, 255, .85);
    box-sizing: border-box;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 3px 3px rgba(0, 0, 0, .3)
}

.poker-surface .bet {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    background: none;
    padding: 0
}

.poker-surface .bet:before {
    content: none
}

.poker-surface .bet span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border-radius: 9px;
    padding: 0 7px;
    line-height: 18px
}

.poker-surface #potchips {
    display: flex;
    justify-content: center;
    min-height: 42px;
    margin-top: 6px
}

.poker-surface .potchips {
    display: flex;
    gap: 5px;
    align-items: flex-end
}

.poker-surface .sweep {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: left .75s cubic-bezier(.4, 0, .2, 1), top .75s cubic-bezier(.4, 0, .2, 1), opacity .4s ease .65s;
    z-index: 6;
    pointer-events: none
}

.poker-surface .dealer {
    background: radial-gradient(circle at 40% 35%, #fff, #d4d4d4);
    border: 2px solid #9ca3af;
    width: 26px;
    height: 26px;
    z-index: 4
}

.poker-surface .center {
    z-index: 2
}

@media (max-width:900px) {
    .poker-surface .seat {
        width: 112px
    }

    .poker-surface .seat .avatar,
    .poker-surface .seat .avatar>svg:first-child {
        width: 32px;
        height: 32px
    }

    .poker-surface .seat .ring {
        width: 42px;
        height: 42px
    }

    .poker-surface .seat .plate {
        gap: 4px;
        padding: 2px 6px 2px 2px
    }
}

@media (prefers-reduced-motion:reduce) {

    .poker-surface .card.deal,
    .poker-surface .card.boardin,
    .poker-surface .card.flip,
    .poker-surface .seat.toact .avatar {
        animation: none
    }
}

@media(max-width:600px) {
    .poker-surface .table {
        aspect-ratio: .7
    }

    .poker-surface .seat {
        width: 84px
    }

    .poker-surface .seat .plate {
        padding: 3px;
        border-radius: 9px
    }

    .poker-surface .seat .avatar {
        display: none
    }

    .poker-surface .seat .nm {
        font-size: 10px
    }

    .poker-surface .seat .stk {
        font-size: 12px
    }

    .poker-surface .seat .tag,
    .poker-surface .imit {
        display: none
    }

    .poker-surface .seat .card {
        width: 26px;
        height: 38px;
        border-radius: 5px
    }

    .poker-surface .seat .card .r {
        font-size: 8px
    }

    .poker-surface .seat .card .s {
        font-size: 7px
    }

    .poker-surface .seat .card .pip {
        font-size: 14px
    }

    .poker-surface .seat .card .corner.br {
        display: none
    }

    .poker-surface .seat .cards {
        height: 40px
    }

    .poker-surface .seat.hero .card {
        width: 40px;
        height: 56px
    }

    .poker-surface .seat.hero .card .r {
        font-size: 11px
    }

    .poker-surface .seat.hero .card .s {
        font-size: 9px
    }

    .poker-surface .seat.hero .card .pip {
        font-size: 22px
    }

    .poker-surface .seat.hero .cards {
        height: 58px
    }

    .poker-surface .center .card {
        width: 28px;
        height: 42px;
        border-radius: 5px
    }

    .poker-surface .center .card .r {
        font-size: 9px
    }

    .poker-surface .center .card .s {
        font-size: 8px
    }

    .poker-surface .center .card .pip {
        font-size: 15px
    }

    .poker-surface .center .card .corner.br {
        display: none
    }

    .poker-surface .board {
        gap: 3px;
        min-height: 44px
    }

    .poker-surface .pot {
        font-size: 13px
    }

    .poker-surface .msg {
        font-size: 11px;
        max-width: 170px
    }

    .poker-surface #potchips {
        min-height: 26px
    }
}

@media(orientation:landscape) and (max-height:500px) {
    .poker-surface .table {
        aspect-ratio: 1.8
    }
}

.decision-ack {
    width: 100%;
    min-height: 44px;
    margin-bottom: 12px;
    background: #254a60;
    color: #dcf3ff;
    border: 1px solid #8ab4cd;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px
}

.decision-ack[hidden] {
    display: none !important
}


/* === UI POLISH 2026-11: felt / seats / toact / deal === */
.poker-surface .felt .cloth {
    background:
        radial-gradient(ellipse at 50% 32%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 52%),
        repeating-radial-gradient(circle at 28% 42%, rgba(255, 255, 255, .022) 0 1px, rgba(0, 0, 0, .02) 1px 2px),
        radial-gradient(ellipse at center, #34985a 0%, #217544 52%, #165530 100%);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, .32),
        inset 0 0 0 8px rgba(255, 255, 255, .04),
        inset 0 0 0 11px rgba(255, 255, 255, .075),
        inset 0 14px 48px rgba(0, 0, 0, .5),
        inset 0 -18px 40px rgba(0, 0, 0, .28);
}

.poker-surface .felt .cloth:after {
    content: "♠  名人德扑课  ♦";
    letter-spacing: 5px;
    color: rgba(255, 255, 255, .09);
}

.poker-surface .pot {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 750;
    color: #ffe9a8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.poker-surface .msg {
    margin-top: 4px;
    font-size: 14px;
    color: #f4fff8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.poker-surface .seat .plate {
    background: linear-gradient(180deg, rgba(36, 44, 56, .97), rgba(12, 14, 18, .97));
    border: 1px solid #445064;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.poker-surface .seat.hero .plate {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, .35), 0 8px 18px rgba(0, 0, 0, .55);
}

.poker-surface .seat.toact {
    z-index: 5;
}

.poker-surface .seat.toact .plate {
    border-color: #ffe082;
    box-shadow:
        0 0 0 2px rgba(255, 224, 130, .85),
        0 0 0 5px rgba(255, 213, 74, .18),
        0 0 28px rgba(255, 213, 74, .65),
        0 8px 18px rgba(0, 0, 0, .5);
    animation: toactGlow 1.4s ease-in-out infinite;
}

.poker-surface .seat.toact .avatar {
    animation: pulse 1.15s ease-in-out infinite;
    box-shadow: 0 0 0 2px #0b0d10, 0 0 0 4px #ffd54a, 0 0 16px rgba(255, 213, 74, .7);
}

.poker-surface .seat.toact .nm {
    color: #fff8d6;
}

@keyframes toactGlow {

    0%,
    100% {
        filter: brightness(1)
    }

    50% {
        filter: brightness(1.08)
    }
}

.poker-surface .card.deal {
    animation: dealIn .42s cubic-bezier(.18, .85, .28, 1) both;
}

.poker-surface .card.boardin {
    animation: boardIn .55s cubic-bezier(.18, .85, .28, 1) both;
}

@keyframes dealIn {
    from {
        transform: translate(var(--fx), var(--fy)) rotate(-22deg) scale(.55);
        opacity: 0
    }

    18% {
        opacity: 1
    }

    to {
        transform: none;
        opacity: 1
    }
}

@keyframes boardIn {
    from {
        transform: translateY(-52px) rotateY(160deg) scale(.72);
        opacity: 0
    }

    35% {
        opacity: 1
    }

    to {
        transform: none;
        opacity: 1
    }
}

.poker-surface .seat.win .plate {
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, .75), 0 0 26px rgba(74, 222, 128, .55);
}

@media (prefers-reduced-motion:reduce) {

    .poker-surface .card.deal,
    .poker-surface .card.boardin,
    .poker-surface .card.flip,
    .poker-surface .seat.toact .avatar,
    .poker-surface .seat.toact .plate {
        animation: none
    }
}

/* === 2026-11-05 polish: fly chips, hand result, nav, allin, shortcuts, avatars === */
.fly {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: left .42s cubic-bezier(.4, 0, .2, 1), top .42s cubic-bezier(.4, 0, .2, 1), opacity .35s ease .12s;
  z-index: 8;
  pointer-events: none;
}

.hand-result {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.hand-result.show {
  opacity: 1;
  pointer-events: auto;
}
.hand-result[hidden] { display: none !important; }
.hand-result-card {
  min-width: min(86vw, 320px);
  max-width: 420px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 24, 30, .94), rgba(10, 12, 16, .96));
  border: 1px solid rgba(255, 213, 74, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  text-align: center;
  pointer-events: auto;
}
.hand-result-net {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hand-result-net.pos { color: #7dffb2; }
.hand-result-net.neg { color: #ff8f9d; }
.hand-result-net.flat { color: #d7e0ea; }
.hand-result-detail {
  font-size: 13px;
  color: #b7c4cf;
  line-height: 1.45;
  margin-bottom: 12px;
  max-height: 3.2em;
  overflow: hidden;
}
.hand-result-skip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #4a7eae;
  background: linear-gradient(180deg, #2f5f8a, #24496e);
  color: #e8f4ff;
  font-weight: 650;
  cursor: pointer;
}

.nav-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px !important;
  border-radius: 999px;
  border: 1px solid #3d4f46;
  background: linear-gradient(180deg, #24352e, #1a2721);
  color: #d7ebe1 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-pill:hover {
  filter: brightness(1.08);
  border-color: #5f8a76;
}
.audio-mute-btn {
  min-width: 36px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.audio-mute-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #3a2a2e, #2a1c20);
  border-color: #7a4a55;
  color: #ffd0d8 !important;
}

.act.allin {
  background: linear-gradient(180deg, #8a3d2a, #642716);
  border-color: #c86a48;
  color: #ffe8df;
}

.shortcut-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #9eb0a8;
  font-size: 12px;
}
.shortcut-hint button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #496058;
  background: #24372f;
  color: #dfece5;
  cursor: pointer;
}

.tablewrap { position: relative; }

@media (max-width: 600px) {
  .seat .avatar,
  .poker-surface .seat .avatar {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
  }
  .seat .avatar > svg:first-child,
  .poker-surface .seat .avatar > svg:first-child {
    width: 28px !important;
    height: 28px !important;
  }
  .seat .ring,
  .poker-surface .seat .ring {
    width: 36px;
    height: 36px;
    inset: -4px;
  }
  body.play-page .seat .avatar,
  body.play-page .seat .avatar > svg:first-child {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
  }
  .act kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fly, .hand-result { transition: none; }
}


.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  overflow: visible;
}
