/* SnapEX Games poker (preview): the room of four tables and a heads-up table — dark console, green felt. */

.pk {
    --pk-felt: #0e5a3e;
    --pk-felt-2: #0a4330;
    --pk-rim: #4a2a16;
    --pk-gold: #f5b83d;
    --pk-red: #c81e3a;
    padding-top: 22px;
    padding-bottom: 40px;
}

/* ——— cards ——— */

.pk-card {
    position: relative;
    display: inline-grid;
    place-items: center;
    align-content: center;
    gap: 0;
    width: 46px;
    height: 64px;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    font-family: var(--cas-font);
    line-height: 1;
    user-select: none;
    flex: none;
}

.pk-card b {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pk-card i {
    font-style: normal;
    font-size: 20px;
    margin-top: 2px;
}

.pk-card--h,
.pk-card--d {
    color: var(--pk-red);
}

.pk-card--back {
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 8px),
        linear-gradient(160deg, #10b981, #047857);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.pk-card--slot {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

/* The winning hand (owner 20.11): its five cards lift with a thin gold line and a soft glow, nothing over the rank or the suit;
   the cards not in it — on the board and the winner's other card — dim. No blinking. */
.pk .pk-card.is-best {
    box-shadow: 0 0 0 2px #fbbf24, 0 0 16px 1px rgba(251, 191, 36, 0.55), 0 10px 18px -8px rgba(0, 0, 0, 0.6);
    transform: translateY(-7px);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pk .pk-card.is-off {
    filter: brightness(0.5) saturate(0.7);
    transition: filter 0.3s ease;
}

.pk-card--xs {
    width: 24px;
    height: 33px;
    border-radius: 5px;
}

.pk-card--xs b {
    font-size: 12px;
}

.pk-card--xs i {
    font-size: 11px;
    margin-top: 0;
}

.pk .pk-card--xs.is-best {
    transform: none;
}

.pk-chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 28%, var(--pk-gold) 30% 58%, #fff 60% 66%, var(--pk-gold) 68%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ——— room ——— */






.pk-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 700;
}








.pk-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 30px 0 14px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.pk-tables {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pk .pk-tcard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--cas-border);
    border-radius: var(--cas-radius-lg);
    background: var(--cas-surface);
    box-shadow: var(--cas-shadow);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s var(--cas-ease), box-shadow 0.2s var(--cas-ease);
}

.pk-tcard:hover {
    transform: translateY(-2px);
    box-shadow: var(--cas-shadow-md);
}

.pk-tcard__name {
    color: var(--cas-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.pk-tcard__blinds {
    font-family: var(--cas-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pk-tcard__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}

.pk-tcard__row small {
    color: var(--cas-muted);
    font-size: 13px;
}

.pk-tcard__mode {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--cas-surface-2);
    color: var(--cas-text-2);
    font-size: 12px;
    font-weight: 600;
}

.pk-tcard__mode.is-pvp {
    background: rgba(56, 189, 248, 0.14);
    color: #0369a1;
}

.pk-tcard__mode.is-mine {
    background: var(--cas-accent-soft);
    color: #047857;
}

.pk-tcard__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: #047857;
    font-weight: 700;
    font-size: 14px;
}

.pk-how ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin: 0;
    padding: 18px 22px 18px 40px;
    border: 1px solid var(--cas-border);
    border-radius: var(--cas-radius-lg);
    background: var(--cas-surface);
    color: var(--cas-text-2);
    font-size: 14px;
}

/* ——— table shell ——— */

.pk-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    overflow: clip;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--cas-radius-xl);
    background: var(--cas-ink-900);
    color: var(--cas-on-dark);
    box-shadow: var(--cas-shadow-game);
}

.pk-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cas-line);
}

.pk .pk-back {
    flex: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cas-on-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pk-back .cas-i {
    transform: scaleX(-1);
    width: 16px;
    height: 16px;
}

.pk-bar__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.pk-bar__title b {
    font-size: 15px;
}

.pk-bar__title small {
    overflow: hidden;
    color: var(--cas-on-dark-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pk-live__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pk-pulse 1.6s infinite;
}

.pk-live.is-off {
    background: rgba(251, 113, 133, 0.12);
    color: #fda4af;
}

.pk-live.is-off .pk-live__dot {
    background: #fb7185;
}

@keyframes pk-pulse {
    50% {
        opacity: 0.35;
    }
}

/* ——— felt ——— */

.pk-felt {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    min-height: 470px;
    margin: 16px;
    padding: 18px 16px;
    border: 10px solid var(--pk-rim);
    border-radius: 190px;
    background: radial-gradient(ellipse at 50% 42%, #137a54 0%, var(--pk-felt) 45%, var(--pk-felt-2) 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.pk-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pk-board {
    display: flex;
    gap: 6px;
}

.pk-pot {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    font-family: var(--cas-mono);
}

.pk-pot:empty {
    display: none;
}

.pk-pot small {
    color: #cfe9dd;
    font-family: var(--cas-font);
    font-size: 12px;
}

.pk-pot b {
    font-size: 16px;
}

.pk-note {
    /* The line comes and goes (only «Your move» and results): its height is reserved so the board and pot never jump. */
    min-height: 22px;
    line-height: 22px;
    margin: 0;
    color: #e6f4ee;
    font-size: 14px;
    text-align: center;
}

.pk-note__win {
    color: #fde68a;
}

.pk-note__turn {
    color: #fff;
}

.pk-note__eq {
    color: #cfe9dd;
    font-size: 13px;
}

.pk-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pk-seat--bottom {
    flex-direction: column-reverse;
}

.pk-seat__cards {
    display: flex;
    gap: 5px;
    min-height: 64px;
}

.pk-seat--bottom .pk-seat__cards .pk-card {
    width: 54px;
    height: 76px;
}

.pk-seat--bottom .pk-seat__cards .pk-card b {
    font-size: 25px;
}

.pk-seat--bottom .pk-seat__cards .pk-card i {
    font-size: 23px;
}

.pk-seat__plate {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
    background: rgba(7, 10, 16, 0.78);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pk-seat__plate.is-acting {
    box-shadow: 0 0 0 2px #34d399, 0 0 22px rgba(52, 211, 153, 0.35);
}

.pk-seat__plate.is-winner {
    box-shadow: 0 0 0 2px var(--pk-gold), 0 0 22px rgba(245, 184, 61, 0.4);
}

.pk-seat__plate.is-empty {
    opacity: 0.75;
}

.pk-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: var(--cas-ink-600);
    color: #fff;
    font-weight: 800;
}

.pk-avatar--bot {
    background: linear-gradient(140deg, #047857, #065f46);
}

.pk-avatar.is-me {
    background: linear-gradient(140deg, #0369a1, #075985);
}

.pk-avatar--empty {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
    color: var(--cas-on-dark-2);
}

.pk-seat__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-right: auto;
    line-height: 1.25;
}

.pk-seat__who b {
    font-size: 14px;
}

.pk-seat__who small {
    color: var(--cas-on-dark-2);
    font-family: var(--cas-mono);
    font-size: 13px;
}

.pk-tag {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(7, 10, 16, 0.6);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
}

.pk-dealer {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
}

.pk-eq {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 3px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    line-height: 1.15;
}

.pk-eq b {
    font-family: var(--cas-mono);
    font-size: 15px;
}

.pk-eq small {
    color: var(--cas-on-dark-2);
    font-size: 10px;
    white-space: nowrap;
}

.pk-eq.is-lead {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.pk-eq--hint {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

.pk-timer {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -7px;
    height: 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* The bar shrinks every frame in poker.js (no transition: the server deadline drives it), its colour goes green → red. */
.pk-timer span {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: #22c55e;
    transform-origin: left;
}

.pk-timer em {
    position: absolute;
    right: -8px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0b1018;
    color: #fff;
    font-family: var(--cas-mono);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    transform: translateY(-50%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.pk-seat__bet {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    font-family: var(--cas-mono);
    font-size: 14px;
}

.pk-seat--top .pk-seat__bet {
    margin-top: 8px;
}

/* Every bet, the pot and the flying chips: a pile of chips and its amount on a dark pill, the same in every skin. */
.pk-stack {
    --cw: 26px;
    --ch: 11px;
    --ce: 4px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    flex: none;
    padding-bottom: 2px;
}

/* The shadow the stacks cast on the cloth. */
.pk-stack::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: -2px;
    z-index: -1;
    height: calc(var(--ch) + 2px);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

/* One stack: chips from the bottom up, each shows its notched edge under the next one; the top one shows its face. */
.pk-col {
    display: flex;
    flex-direction: column-reverse;
}

.pk-col i {
    --c: #f1f5f9;
    --s: #2563eb;
    display: block;
    width: var(--cw);
    height: var(--ch);
    border-radius: 50%;
    background: linear-gradient(90deg, var(--c) 0 12%, var(--s) 12% 24%, var(--c) 24% 44%, var(--s) 44% 56%, var(--c) 56% 76%, var(--s) 76% 88%, var(--c) 88%);
    box-shadow: inset 0 calc(var(--ce) * -0.5) 0 rgba(0, 0, 0, 0.32), 0 1px 0 rgba(0, 0, 0, 0.35);
}

.pk-col i + i {
    margin-bottom: calc(var(--ce) - var(--ch));
}

.pk-col i:last-child {
    background:
        radial-gradient(closest-side, var(--c) 0 50%, var(--s) 52% 60%, var(--c) 62% 74%, transparent 76%),
        repeating-conic-gradient(var(--c) 0 22.5deg, var(--s) 22.5deg 33.75deg, var(--c) 33.75deg 45deg);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 calc(var(--ce) * 0.5) 0 rgba(0, 0, 0, 0.25);
}

.pk-col .pk-chip-white {
    --c: #f1f5f9;
    --s: #2563eb;
}

.pk-col .pk-chip-red {
    --c: #dc2626;
    --s: #fff;
}

.pk-col .pk-chip-green {
    --c: #15803d;
    --s: #fff;
}

.pk-col .pk-chip-black {
    --c: #111827;
    --s: #e5e7eb;
}

.pk-col .pk-chip-purple {
    --c: #7e22ce;
    --s: #fde68a;
}

.pk-col .pk-chip-orange {
    --c: #ea580c;
    --s: #fff;
}

.pk-amt {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.78);
    color: #fff;
    font-family: var(--cas-mono);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.pk-pot {
    align-items: center;
}

.pk-pot .pk-amt {
    padding: 0;
    background: none;
    font-size: 16px;
}

.pk-ghost__chips {
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
}

/* ——— controls ——— */

.pk-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 16px;
}

.pk-acts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pk-acts__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 8px;
}

.pk-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 54px;
    padding: 8px 12px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pk-btn b {
    font-family: var(--cas-mono);
    font-size: 14px;
}

.pk-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.pk .pk-btn--fold {
    background: rgba(255, 255, 255, 0.08);
    color: #fecdd3;
}

.pk .pk-btn--call {
    background: #e2e8f0;
    color: #0f172a;
}

.pk .pk-btn--raise {
    background: linear-gradient(180deg, #047857, #065f46);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.pk-btn--wide {
    width: 100%;
}

.pk-raise {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-raise__presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.pk .pk-preset {
    padding: 8px 6px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--cas-on-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pk .pk-preset.is-active {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

.pk-raise__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: 10px;
}

.pk-range {
    width: 100%;
    accent-color: #10b981;
}

.pk .pk-amount {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--cas-line-strong);
    border-radius: 10px;
    background: var(--cas-ink-800);
    color: var(--cas-on-dark);
    font-family: var(--cas-mono);
    font-size: 15px;
    text-align: right;
}

.pk-sit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.pk-sit__label {
    color: var(--cas-on-dark-2);
    font-size: 13px;
    font-weight: 600;
}

.pk-status {
    margin: 0;
    color: var(--cas-on-dark-2);
    font-size: 14px;
    text-align: center;
}

.pk .pk-leave {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cas-on-dark-2);
    font-size: 13px;
    cursor: pointer;
}

.pk .pk-leave:hover {
    color: #fecdd3;
}

/* ——— side: chat, history, fairness ——— */

.pk-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 760px;
    border-left: 1px solid var(--cas-line);
    background: var(--cas-ink-850);
}

.pk-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--cas-line);
}

.pk .pk-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 6px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--cas-on-dark-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pk-tab .cas-i {
    width: 16px;
    height: 16px;
}

.pk .pk-tab.is-active {
    border-bottom-color: #34d399;
    color: var(--cas-on-dark);
}

.pk-tab__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fb7185;
}

.pk-pane {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.pk-chat {
    flex: 1;
    min-height: 220px;
    margin: 0;
    padding: 12px 14px;
    overflow-y: auto;
    list-style: none;
}

.pk-msg {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 88%;
    margin-bottom: 10px;
}

.pk-msg__who {
    display: flex;
    gap: 8px;
    color: var(--cas-on-dark-2);
    font-size: 12px;
    font-weight: 600;
}

.pk-msg__who time {
    color: #8b95a7;
    font-weight: 500;
}

.pk-msg__text {
    padding: 7px 11px;
    border-radius: 12px 12px 12px 4px;
    background: var(--cas-ink-700);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.pk-msg.is-me {
    align-self: flex-end;
    margin-left: auto;
    align-items: flex-end;
}

.pk-msg.is-me .pk-msg__text {
    border-radius: 12px 12px 4px 12px;
    background: #065f46;
}

.pk-msg.is-bot .pk-msg__text {
    background: rgba(16, 185, 129, 0.14);
    color: #d1fae5;
}

.pk-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--cas-line);
}

.pk .pk-chat-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--cas-line-strong);
    border-radius: 12px;
    background: var(--cas-ink-800);
    color: var(--cas-on-dark);
    font-size: 14px;
}

.pk-chat-form input::placeholder {
    color: var(--cas-on-dark-3);
}

.pk .pk-send {
    display: grid;
    place-items: center;
    width: 42px;
    border: 0;
    border-radius: 12px;
    background: #059669;
    color: #fff;
    cursor: pointer;
}

.pk-history {
    flex: 1;
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    list-style: none;
}

.pk-empty {
    padding: 22px 8px;
    color: var(--cas-on-dark-2);
    font-size: 14px;
    text-align: center;
}

.pk-h {
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--cas-ink-800);
}

.pk-h summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    cursor: pointer;
    list-style: none;
}

.pk-h summary::-webkit-details-marker {
    display: none;
}

.pk-h__no {
    color: var(--cas-on-dark-2);
    font-size: 12px;
    white-space: nowrap;
}

/* Round 9.5: the table's number under the hand's. */
.pk-h__no small {
    display: block;
    font-size: 11px;
}

.pk-h__cards {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pk-h__cards em {
    margin: 0 3px;
    color: var(--cas-on-dark-3);
    font-size: 11px;
    font-style: normal;
}

.pk-h__net {
    margin-left: auto;
    font-family: var(--cas-mono);
    font-size: 13px;
    font-weight: 700;
}

.pk-h__net.is-win {
    color: var(--cas-win);
}

.pk-h__net.is-loss {
    color: var(--cas-loss);
}

.pk-h__body {
    padding: 0 10px 12px;
    font-size: 13px;
}

.pk-h__board {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.pk-h__pot {
    margin-left: 8px;
    color: var(--cas-on-dark-2);
    font-family: var(--cas-mono);
}

.pk-h__res {
    margin: 0 0 6px;
    color: #fde68a;
}

.pk-h__street {
    margin-top: 6px;
}

.pk-h__street b {
    font-size: 12px;
}

.pk-h__eq {
    margin-left: 8px;
    color: #7dd3fc;
    font-family: var(--cas-mono);
    font-size: 12px;
}

.pk-h__street ul {
    margin: 2px 0 0;
    padding-left: 16px;
    color: var(--cas-on-dark-2);
}

.pk-h__fair {
    display: grid;
    gap: 2px;
    margin: 10px 0 8px;
}

.pk-h__fair dt,
.pk-fair__row small,
.pk-fair__seed small {
    color: var(--cas-on-dark-2);
    font-size: 11px;
}

.pk-h__fair dd {
    margin: 0 0 4px;
}

.pk-h code,
.pk-fair code {
    display: block;
    color: var(--cas-on-dark);
    font-family: var(--cas-mono);
    font-size: 11px;
    overflow-wrap: anywhere;
    background: none;
}

.pk .pk-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pk-verify__out .is-ok {
    color: var(--cas-win);
}

.pk-verify__out .is-bad {
    color: var(--cas-loss);
}

.pk-verify__deck {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.pk-verify__deck small {
    width: 100%;
    color: var(--cas-on-dark-2);
}

.pk-fair {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
}

.pk-fair__seed {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.pk-fair__seed label {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.pk .pk-fair__seed input {
    padding: 8px 10px;
    border: 1px solid var(--cas-line-strong);
    border-radius: 10px;
    background: var(--cas-ink-800);
    color: var(--cas-on-dark);
    font-family: var(--cas-mono);
    font-size: 13px;
}

.pk-fair__how {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--cas-on-dark-2);
    font-size: 13px;
}

/* ——— narrow screens ——— */

@media (max-width: 1100px) {
    .pk-tables {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pk-shell {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 1100px) {
    .pk-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .pk-side {
        max-height: none;
        border-left: 0;
        border-top: 1px solid var(--cas-line);
    }

    .pk-chat {
        max-height: 320px;
    }

    .pk-history {
        max-height: 520px;
    }
}

@media (max-width: 640px) {
    .pk {
        padding-top: 12px;
    }



    .pk-how ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .pk-tables {
        gap: 10px;
    }

    .pk-tcard {
        padding: 14px;
    }

    .pk-tcard__blinds {
        font-size: 18px;
    }

    .pk-tcard__row {
        flex-direction: column;
        gap: 0;
    }

    .pk-shell {
        margin: 0 -8px;
        border-radius: 20px;
    }

    .pk-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .pk-back span {
        display: none;
    }

    .pk-felt {
        min-height: 400px;
        margin: 10px;
        padding: 14px 8px;
        border-width: 7px;
        border-radius: 110px;
    }

    .pk-card {
        width: 40px;
        height: 56px;
    }

    .pk-card b {
        font-size: 18px;
    }

    .pk-card i {
        font-size: 17px;
    }

    .pk-board {
        gap: 4px;
    }

    .pk-seat__plate {
        min-width: 0;
        width: min(100%, 300px);
    }

    .pk-controls {
        padding: 0 12px 14px;
    }
}

/* ——— the room: every table drawn as a table (owner 15.11) ——— */

.pk .pk-tables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pk .pk-ttable {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto auto;
    justify-items: center;
    gap: 6px;
    padding: 16px 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--cas-radius-xl);
    background: radial-gradient(420px 220px at 50% 50%, rgba(16, 185, 129, 0.16), transparent 70%), var(--cas-ink-900);
    color: var(--cas-on-dark);
    box-shadow: var(--cas-shadow-game);
    cursor: pointer;
    transition: transform 0.2s var(--cas-ease), box-shadow 0.2s var(--cas-ease);
}

.pk .pk-ttable:hover {
    transform: translateY(-3px);
}

.pk .pk-ttable.is-mine {
    box-shadow: 0 0 0 2px #34d399, var(--cas-shadow-game);
}

.pk-ttable__rail {
    order: 2;
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7a4a2a, #4a2a16 55%, #3a2010);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 10px 22px -10px rgba(0, 0, 0, 0.8);
}

.pk-ttable__felt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 118px;
    border-radius: 999px;
    background: radial-gradient(ellipse at 50% 40%, #179463 0%, #0e5a3e 60%, #0a4330 100%);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.pk-ttable__name {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

/* Round 9.5: the table's number next to NL…, small. */
.pk-ttable__no {
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.pk-ttable__blinds {
    color: #fff;
    font-family: var(--cas-mono);
    font-size: 22px;
    letter-spacing: -0.02em;
}

.pk-ttable__buyin {
    color: #d7f3e6;
    font-size: 12px;
}

.pk-ttable__mode {
    order: 4;
    margin-top: 2px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--cas-on-dark-2);
    font-size: 12px;
    font-weight: 600;
}

.pk-ttable__mode.is-pvp {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

.pk-lseat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.pk-lseat--top {
    order: 1;
}

.pk-lseat--bottom {
    order: 3;
}

.pk-lseat__ava {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cas-ink-600);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.pk-lseat__ava svg {
    width: 100%;
    height: 100%;
}

.pk-lseat--empty .pk-lseat__ava {
    background: transparent;
    color: #a9b3c4;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.pk-lseat--empty .pk-lseat__ava svg {
    width: 20px;
    height: 20px;
}

.pk-lseat--empty .pk-lseat__name {
    color: var(--cas-on-dark-2);
}

.pk-lseat.is-me .pk-lseat__ava {
    background: #0369a1;
    box-shadow: 0 0 0 2px #34d399;
    font-size: 11px;
}

/* ——— table: the dealer, the deck, motion ——— */

.pk-sound {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 17px;
    cursor: pointer;
}

.pk-sound + .pk-live {
    margin-left: 0;
}

.pk-avatar svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.pk-avatar--bot {
    overflow: hidden;
    padding: 0;
}

.pk-seat__plate.is-thinking .pk-avatar--bot {
    box-shadow: 0 0 0 2px #34d399;
    animation: pk-nod 1.6s ease-in-out infinite;
}

@keyframes pk-nod {
    50% {
        transform: rotate(-6deg);
    }
}

.pk-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 4px;
}

.pk-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #6ee7b7;
    animation: pk-dot 1s infinite;
}

.pk-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.pk-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes pk-dot {
    0%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.pk-deck {
    position: absolute;
    left: 7%;
    top: 50%;
    z-index: 1;
    width: 34px;
    height: 48px;
    transform: translateY(-50%) rotate(-8deg);
}

.pk-deck span {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 3px, transparent 3px 6px),
        linear-gradient(160deg, #10b981, #047857);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.pk-deck span:nth-child(2) {
    transform: translate(2px, -2px);
}

.pk-deck span:nth-child(3) {
    transform: translate(4px, -4px);
}

.pk-fx {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.pk-ghost {
    position: absolute;
    display: flex;
    will-change: transform;
}

.pk-ghost .pk-card {
    width: 44px;
    height: 62px;
}

.pk-chip--fly {
    width: 18px;
    height: 18px;
}

.pk-chip--2 {
    margin-left: -8px;
    margin-top: -4px;
}

.pk-card.is-flip {
    animation: pk-flip 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pk-flip {
    from {
        transform: rotateY(90deg);
    }

    to {
        transform: rotateY(0);
    }
}

/* ——— a free seat sits on the rail with its own «Sit down» ——— */

.pk-free {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 10px;
    width: min(100%, 340px);
    /* Sits on the rail of the table, half over the wood, like a chair pulled up to it. */
    margin-bottom: -38px;
    position: relative;
    z-index: 2;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #4a2a16, #2e190c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}

.pk-free--dealer {
    margin-top: 8px;
}

.pk-seat--bottom .pk-free--dealer {
    order: -1;
}

.pk-free.is-idle {
    width: auto;
}

.pk-free__chair {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #f3d9c4;
    box-shadow: inset 0 0 0 2px rgba(243, 217, 196, 0.45);
}

.pk-free__chair svg {
    width: 20px;
    height: 20px;
}

.pk-free__label {
    color: #f3e4d7;
    font-size: 14px;
    font-weight: 700;
}

.pk-free__bb {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.pk .pk-bb {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #f8efe7;
    font-family: var(--cas-mono);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pk .pk-bb small {
    color: #e2cdbd;
    font-family: var(--cas-font);
    font-size: 11px;
    font-weight: 600;
}

.pk .pk-bb.is-active {
    background: #f5b83d;
    color: #1f1406;
}

.pk .pk-bb.is-active small {
    color: #3b2a12;
}

.pk-free__sit {
    grid-column: 1 / -1;
    min-height: 44px;
    flex-direction: row;
}

/* ——— history: the check block stays folded ——— */

.pk-check {
    margin-top: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.pk-check summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.pk-check summary::-webkit-details-marker {
    display: none;
}

.pk-check > :not(summary) {
    margin-left: 10px;
    margin-right: 10px;
}

.pk-check .pk-verify {
    margin-bottom: 10px;
}

.pk-fair__rake {
    margin: 0;
    color: var(--cas-on-dark-2);
    font-size: 13px;
}

@media (max-width: 640px) {
    .pk .pk-tables {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .pk-ttable__felt {
        min-height: 96px;
    }

    .pk-ttable__blinds {
        font-size: 19px;
    }

    .pk-deck {
        left: 3%;
        width: 26px;
        height: 37px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-dots i,
    .pk-seat__plate.is-thinking .pk-avatar--bot,
    .pk-card.is-flip,
    .pk-live__dot {
        animation: none;
    }
}

/* ——— the win chance, base look (skin 1 «Classic»): a bar under the cards with the hand name ——— */

.pk-seat__eq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
}

/* Under the bottom plate the move clock hangs below it: keep the chance clear of it. */
.pk-seat--bottom .pk-seat__eq {
    margin-top: 8px;
}

.pk-seat--top .pk-seat__eq {
    margin-bottom: 4px;
}

.pk-eqbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.72);
    color: #fff;
    font-size: 12px;
}

.pk-eqbar__track {
    position: relative;
    width: 86px;
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
}

.pk-eqbar__track i {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #38bdf8, #34d399);
}

.pk-eqbar.is-open .pk-eqbar__track i {
    background: linear-gradient(90deg, #f5b83d, #fde68a);
}

.pk-eqbar b {
    font-family: var(--cas-mono);
    font-size: 14px;
}

.pk-eqbar small {
    color: #d7f3e6;
    font-size: 12px;
    font-weight: 600;
}

/* ——— framed inside the variants page: only the table ——— */

.pk-framed .cas-ribbon,
.pk-framed .cas-header,
.pk-framed .cas-gamebar,
.pk-framed .cas-footer,
.pk-framed .cas-ambient {
    display: none !important;
}

.pk-framed .pk {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ——— skin 2 «Night table»: navy cloth, neon rail, the chance as a ring around the avatar, stacks as chip piles ——— */

.pk-skin-2 .pk-shell {
    background: #050914;
}

.pk-skin-2 .pk-felt {
    border-color: #0c1630;
    background: radial-gradient(ellipse at 50% 40%, #1d3768 0%, #12234a 50%, #0a1430 100%);
    box-shadow: 0 0 0 2px #22d3ee, 0 0 28px rgba(34, 211, 238, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.pk-skin-2 .pk-seat__plate {
    background: rgba(5, 9, 20, 0.85);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.pk-skin-2 .pk-seat__plate.is-acting {
    box-shadow: 0 0 0 2px #22d3ee, 0 0 18px rgba(34, 211, 238, 0.5);
}

.pk-skin-2 .pk-avatar {
    position: relative;
    overflow: visible;
}

.pk-skin-2 .pk-avatar.has-ring::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(#22d3ee calc(var(--eq) * 1%), rgba(255, 255, 255, 0.14) 0);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
    mask: radial-gradient(circle, transparent 62%, #000 64%);
}

.pk-skin-2 .pk-avatar--bot svg {
    border-radius: 50%;
}

.pk-eqtext {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.pk-eqtext b {
    color: #67e8f9;
    font-family: var(--cas-mono);
    font-size: 16px;
}

.pk-eqtext.is-open.is-lead b {
    color: #fde68a;
}

.pk-eqtext small {
    color: #cbd5e1;
    font-size: 11px;
}

.pk-skin-2 .pk-seat__who small::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 4px;
    margin-right: 6px;
    border-radius: 50%;
    background: #f5b83d;
    vertical-align: 2px;
    box-shadow: 0 -3px 0 #22d3ee, 0 -6px 0 #f43f5e;
}

.pk-skin-2 .pk-btn--raise,
.pk-skin-2 .pk-free__sit {
    background: linear-gradient(180deg, #0e7490, #155e75);
}

/* ——— skin 3 «Perspective»: the cloth tilted 3/4, the chance as a % chip on it, bet presets as chips ——— */

.pk-skin-3 .pk-felt {
    border-color: transparent;
    background: none;
    box-shadow: none;
}

.pk-skin-3 .pk-felt::before {
    content: "";
    position: absolute;
    inset: -10px -4px;
    border: 14px solid #5b3a1e;
    border-radius: 200px;
    background: radial-gradient(ellipse at 50% 35%, #1a8a5c 0%, #0e5a3e 55%, #083726 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 30px 40px -20px rgba(0, 0, 0, 0.8);
    transform: perspective(900px) rotateX(24deg);
    transform-origin: 50% 70%;
}

.pk-skin-3 .pk-felt > .pk-ring,
.pk-skin-3 .pk-felt > .pk-center {
    z-index: 1;
}

.pk.pk-skin-3 .pk-seat--top {
    transform: translate(-50%, -50%) scale(0.9);
}

.pk-eqchip {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #0b1018 0 54%, transparent 56%),
        repeating-conic-gradient(#f8fafc 0 15deg, #0e7490 15deg 30deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pk-eqchip b {
    color: #fff;
    font-family: var(--cas-mono);
    font-size: 11px;
    letter-spacing: -0.03em;
}

.pk-eqchip.is-open.is-lead {
    background:
        radial-gradient(circle, #0b1018 0 54%, transparent 56%),
        repeating-conic-gradient(#fde68a 0 15deg, #b45309 15deg 30deg);
}

.pk-eqchip__hand {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.pk-skin-3 .pk-raise__presets {
    grid-template-columns: repeat(4, minmax(0, 64px));
    justify-content: center;
    gap: 14px;
}

.pk.pk-skin-3 .pk-preset {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, #0b1018 0 56%, transparent 58%),
        repeating-conic-gradient(#e2e8f0 0 15deg, #be123c 15deg 30deg);
    color: #fff;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
}

.pk.pk-skin-3 .pk-preset.is-active {
    background:
        radial-gradient(circle, #064e3b 0 56%, transparent 58%),
        repeating-conic-gradient(#fde68a 0 15deg, #047857 15deg 30deg);
    color: #fff;
}

/* ——— skin 4 «Minimal»: a light flat table, the chance as a gauge, the outs as a hint ——— */

.pk-skin-4 .pk-felt {
    border: 4px solid #9fb3a8;
    background: #dfe8e3;
    box-shadow: none;
}

.pk-skin-4 .pk-seat__plate {
    background: #fff;
    box-shadow: 0 0 0 1px #c3d0c9, 0 6px 14px -8px rgba(15, 23, 42, 0.35);
}

.pk-skin-4 .pk-seat__who b {
    color: #0f172a;
}

.pk-skin-4 .pk-seat__who small {
    color: #475569;
}

.pk-skin-4 .pk-seat__bet,
.pk-skin-4 .pk-note,
.pk-skin-4 .pk-note__turn {
    color: #0f172a;
}

.pk-skin-4 .pk-note__win {
    color: #92400e;
}

.pk-skin-4 .pk-note__eq {
    color: #334155;
}

.pk-skin-4 .pk-pot {
    background: #0f172a;
}

.pk-skin-4 .pk-card--slot {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.18);
}

.pk-skin-4 .pk-card {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15), 0 4px 8px -4px rgba(15, 23, 42, 0.35);
}

.pk-skin-4 .pk-timer {
    background: rgba(15, 23, 42, 0.18);
}

.pk-skin-4 .pk-seat__plate.is-acting {
    box-shadow: 0 0 0 2px #059669;
}

.pk-skin-4 .pk-dealer {
    background: #0f172a;
    color: #fff;
}

.pk-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.pk-gauge svg {
    width: 54px;
    height: 30px;
    overflow: visible;
}

.pk-gauge__track,
.pk-gauge__fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.pk-gauge__track {
    stroke: #cbd5e1;
}

.pk-gauge__fill {
    stroke: #059669;
}

.pk-gauge.is-open.is-lead .pk-gauge__fill {
    stroke: #d97706;
}

.pk-gauge__needle {
    stroke: #0f172a;
    stroke-width: 2.5;
    stroke-linecap: round;
    transform-origin: 32px 32px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pk-gauge b {
    margin-top: 2px;
    color: #0f172a;
    font-family: var(--cas-mono);
    font-size: 13px;
}

.pk-hint {
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 0 1px #c3d0c9;
}

/* ——— skin 5 «Casino night»: burgundy cloth, gold rail, a gesturing dealer, a big chance plate, a loud all-in ——— */

.pk-skin-5 .pk-shell {
    background: #12070b;
}

.pk-skin-5 .pk-felt {
    border-color: #a37422;
    background: radial-gradient(ellipse at 50% 40%, #8b1c38 0%, #5c1024 55%, #3a0816 100%);
    box-shadow: inset 0 0 0 3px #f1c76b, inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 0 2px #5c3b0c;
}

.pk-skin-5 .pk-seat__plate {
    background: rgba(18, 7, 11, 0.86);
    box-shadow: 0 0 0 1px rgba(241, 199, 107, 0.5);
}

.pk-skin-5 .pk-seat__plate.is-acting {
    box-shadow: 0 0 0 2px #f1c76b, 0 0 20px rgba(241, 199, 107, 0.45);
}

.pk-skin-5 .pk-seat__plate.is-thinking::before {
    content: "🤚";
    position: absolute;
    left: 30px;
    top: -14px;
    font-size: 20px;
    animation: pk-wave 0.9s ease-in-out infinite;
}

@keyframes pk-wave {
    0%,
    100% {
        transform: rotate(-18deg);
    }

    50% {
        transform: rotate(16deg) translateY(-2px);
    }
}

.pk-skin-5 .pk-deck {
    animation: pk-deck 2.4s ease-in-out infinite;
}

@keyframes pk-deck {
    50% {
        transform: translateY(-50%) rotate(-2deg);
    }
}

.pk-eqbadge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fde68a, #f1c76b);
    color: #3b1d06;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}

.pk-eqbadge b {
    padding: 2px 8px;
    border-radius: 9px;
    background: #3b1d06;
    color: #fde68a;
    font-family: var(--cas-mono);
    font-size: 18px;
}

.pk-eqbadge span {
    font-size: 13px;
    font-weight: 700;
}

.pk-eqbadge.is-open {
    animation: pk-glow 1.2s ease-in-out infinite;
}

@keyframes pk-glow {
    50% {
        box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.6), 0 0 26px rgba(253, 230, 138, 0.55);
    }
}

.pk-skin-5 .pk-note__eq {
    color: #fde68a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pk-skin-5 .pk-btn--raise,
.pk-skin-5 .pk-free__sit {
    background: linear-gradient(180deg, #9f1239, #6b0f2a);
}

/* ——— the variants page ——— */

.pk-variants__head {
    max-width: 760px;
    margin-bottom: 18px;
}

.pk-variants__head h1 {
    margin: 10px 0 8px;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.03em;
}

.pk-variants__head p {
    margin: 0;
    color: var(--cas-text-2);
}

.pk-variants__list {
    display: grid;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pk-variant {
    overflow: hidden;
    border: 1px solid var(--cas-border);
    border-radius: var(--cas-radius-xl);
    background: var(--cas-surface);
    box-shadow: var(--cas-shadow-md);
}

.pk-variant__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.pk-variant__no {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: var(--cas-ink-900);
    color: #fff;
    font-weight: 800;
}

.pk-variant__copy {
    flex: 1;
    min-width: 0;
}

.pk-variant__copy h2 {
    margin: 0;
    font-size: 18px;
}

.pk-variant__copy p {
    margin: 2px 0 0;
    color: var(--cas-text-2);
    font-size: 14px;
}

.pk .pk-variant__open {
    flex: none;
    min-height: 44px;
    flex-direction: row;
    text-decoration: none;
}

.pk-variant__frame iframe {
    display: block;
    width: 100%;
    height: 900px;
    border: 0;
    background: var(--cas-ink-900);
}

@media (max-width: 640px) {
    .pk-variant__head {
        flex-wrap: wrap;
    }

    .pk .pk-variant__open {
        width: 100%;
    }

    .pk-variant__frame iframe {
        height: 1180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-skin-5 .pk-seat__plate.is-thinking::before,
    .pk-skin-5 .pk-deck,
    .pk-eqbadge.is-open {
        animation: none;
    }
}

/* ——— round 4 (owner 16.11): the SIT seat, the sit-down modal (the room counters went away in round 8.6) ——— */







.pk-ttable__live {
    order: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 12px;
}

.pk-ttable__hand {
    color: var(--cas-on-dark-2);
}

.pk-ttable__hand.is-on {
    color: #6ee7b7;
    font-weight: 600;
}

.pk-ttable__hand.is-on::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #34d399;
    vertical-align: 1px;
    animation: pk-pulse 1.6s infinite;
}

.pk-ttable__eye {
    color: var(--cas-on-dark-2);
}

.pk-ttable__mode {
    order: 5;
}

.pk-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--cas-border);
    border-radius: var(--cas-radius-lg);
    background: var(--cas-surface);
    list-style: none;
}

.pk-feed__empty {
    grid-column: 1 / -1;
    color: var(--cas-muted);
    font-size: 14px;
}

.pk-feed__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pk-feed__ava {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    background: #0369a1;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.pk-feed__ava svg {
    width: 100%;
    height: 100%;
}

.pk-feed__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.pk-feed__text b {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-feed__text small {
    color: var(--cas-muted);
    font-size: 12px;
}

.pk-feed__item time {
    flex: none;
    color: var(--cas-muted);
    font-size: 12px;
}

.pk-watch {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cas-on-dark-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pk-watch + .pk-live,
.pk-watch:not([hidden]) ~ .pk-sound {
    margin-left: 0;
}

/* The free seat: a chair standing at the rail with a big «Sit». */
.pk-chair {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: -40px;
    padding: 8px 8px 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4a2a16, #2e190c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 18px -10px rgba(0, 0, 0, 0.8);
}

.pk-seat--top .pk-chair {
    margin-bottom: 0;
    margin-top: -40px;
}

.pk-chair__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #f3d9c4;
    box-shadow: inset 0 0 0 2px rgba(243, 217, 196, 0.5);
}

.pk-chair__icon svg {
    width: 22px;
    height: 22px;
}

.pk-chair__label {
    color: #f3e4d7;
    font-size: 14px;
    font-weight: 700;
}

.pk .pk-sitbtn {
    min-width: 128px;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #1f1406;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -6px rgba(217, 119, 6, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.pk .pk-sitbtn:hover {
    filter: brightness(1.06);
}

.pk-sitbtn--rail {
    position: relative;
    z-index: 2;
    margin-bottom: -34px;
}

.pk-seat--bottom .pk-sitbtn--rail {
    order: -1;
}

.pk-seat--top .pk-sitbtn--rail {
    margin: 4px 0 0;
}

/* The modal. */
.pk-modal {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: var(--cas-radius-xl);
    background: var(--cas-ink-900);
    color: var(--cas-on-dark);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.pk-modal::backdrop {
    background: rgba(7, 10, 16, 0.66);
    backdrop-filter: blur(2px);
}

.pk-modal__box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px 20px;
}

.pk-modal h2 {
    margin: 0 36px 0 0;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.pk .pk-modal__x {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--cas-on-dark);
    cursor: pointer;
}

.pk-modal__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}

.pk-modal__facts > div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.pk-modal__facts dt {
    color: var(--cas-on-dark-2);
    font-size: 12px;
}

.pk-modal__facts dd {
    display: flex;
    flex-direction: column;
    margin: 2px 0 0;
}

.pk-modal__facts b {
    font-family: var(--cas-mono);
    font-size: 17px;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .pk-modal__facts b {
        font-size: 15px;
    }
}

.pk-modal__facts small {
    color: var(--cas-on-dark-2);
    font-size: 11px;
}

.pk-modal__buyin {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.pk-modal__buyin legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
}

.pk-modal__buyin legend small {
    color: var(--cas-on-dark-2);
    font-weight: 500;
}

.pk-modal__presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pk-modal .pk-bb {
    background: rgba(255, 255, 255, 0.07);
    color: var(--cas-on-dark);
}

.pk-modal .pk-bb small {
    color: var(--cas-on-dark-2);
}

.pk-modal .pk-bb.is-active {
    background: #f5b83d;
    color: #1f1406;
}

.pk-modal .pk-bb.is-active small {
    color: #3b2a12;
}

.pk-modal__note,
.pk-modal__low {
    margin: 0;
    color: var(--cas-on-dark-2);
    font-size: 12px;
}

.pk-modal__low {
    color: #fda4af;
}

.pk-modal__go {
    min-height: 52px;
    flex-direction: row;
    font-size: 16px;
}

/* Skins: the light «Minimal» table needs dark copy on its free seat. */
.pk-skin-2 .pk-chair {
    background: linear-gradient(180deg, #0f1d3d, #091329);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45);
}

.pk-skin-4 .pk-chair {
    background: #fff;
    box-shadow: 0 0 0 1px #c3d0c9, 0 8px 16px -10px rgba(15, 23, 42, 0.4);
}

.pk-skin-4 .pk-chair__icon {
    color: #334155;
    box-shadow: inset 0 0 0 2px #94a3b8;
}

.pk-skin-4 .pk-chair__label {
    color: #0f172a;
}

.pk-skin-5 .pk-chair {
    background: linear-gradient(180deg, #2a0a14, #12070b);
    box-shadow: 0 0 0 1px rgba(241, 199, 107, 0.6);
}

@media (max-width: 640px) {
    .pk-feed {
        grid-template-columns: minmax(0, 1fr);
    }


    .pk-chair__label {
        display: none;
    }

    .pk-watch {
        padding: 5px 8px;
    }

    .pk-watch__txt {
        display: none;
    }
}

.pk-watch__short {
    display: none;
}

@media (max-width: 640px) {
    .pk-watch__short {
        display: inline;
    }
}

/* ——— round 5 (owner 16.11): two kinds of tables, each table in its own cloth, seats on a ring ——— */

/* The cloth of a table, used by the room card and the table inside — and by every skin. */
.pk-cloth--green {
    --cloth-a: #179463;
    --cloth-b: #0e5a3e;
    --cloth-c: #0a4330;
    --cloth-tint: #dfe8e3;
}

.pk-cloth--blue {
    --cloth-a: #2368b4;
    --cloth-b: #154a86;
    --cloth-c: #0c2d56;
    --cloth-tint: #dde6f2;
}

.pk-cloth--burgundy {
    --cloth-a: #932040;
    --cloth-b: #631228;
    --cloth-c: #3c0917;
    --cloth-tint: #f0dfe4;
}

.pk-cloth--purple {
    --cloth-a: #7444ab;
    --cloth-b: #4b2a78;
    --cloth-c: #2d174d;
    --cloth-tint: #e8e0f2;
}

/* Room tabs (owner 16.11). Round 12.2 (owner 18.11): a wide segmented switch on a dark plate across the room (variant 2
   «Table showcase» of round 12) — two halves, the mode in bold and one line about it; the active half is light with dark text.
   The phone room has its own top (.pkm) and hides this one. */
.pk-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 26px 0 16px;
    padding: 6px;
    border-radius: 18px;
    background: var(--cas-ink-900);
    box-shadow: var(--cas-shadow-game);
}

.pk .pk-modes__tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 10px 18px 10px 12px;
    border: 0;
    border-radius: 13px;
    background: none;
    color: #b6c2d1;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pk .pk-modes__tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pk-modes__tab b {
    font-size: 16px;
}

.pk-modes__tab small {
    font-size: 13px;
}

.pk .pk-modes__tab.is-active {
    background: #fff;
    color: #0b1018;
}

.pk .pk-modes__tab.is-active small {
    color: #334155;
}

/* Round 12.3: the picture of each mode (the dealer one on one; four players round a table), the words beside it. */
.pk-modes__icon {
    flex: none;
    width: 100px;
    height: 72px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    opacity: 0.8;
    transition: opacity 0.15s, transform 0.15s;
}

.pk-modes__icon--pvp {
    height: 84px;
}

.pk .pk-modes__tab:hover .pk-modes__icon,
.pk .pk-modes__tab.is-active .pk-modes__icon {
    opacity: 1;
}

.pk .pk-modes__tab.is-active .pk-modes__icon {
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.25));
    transform: scale(1.04);
}

.pk-modes__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pk-modes__text b {
    font-size: 18px;
}

.pk-modes__text small {
    font-size: 14px;
}

/* A table card of the room: the oval in its cloth, the seats around it, the eye in the corner. */
.pk .pk-ttable {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px 14px;
}

.pk-ttable__eye {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--cas-on-dark);
    font-size: 12px;
    font-weight: 700;
}

.pk-ttable__stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 26px 30px;
}

.pk-ttable__stage .pk-ttable__felt {
    background: radial-gradient(ellipse at 50% 40%, var(--cloth-a) 0%, var(--cloth-b) 60%, var(--cloth-c) 100%);
}

.pk-cseat {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cas-ink-600);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px #0b1018;
}

.pk-cseat svg {
    width: 100%;
    height: 100%;
}

.pk-cseat--empty {
    background: #1b2431;
    box-shadow: 0 0 0 2px #0b1018, inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.pk-cseat.is-me {
    background: #0369a1;
    box-shadow: 0 0 0 2px #34d399;
    font-size: 10px;
}

.pk-ttable__stage--8 .pk-cseat {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.pk-ttable__who {
    color: var(--cas-on-dark-2);
    font-size: 13px;
    font-weight: 600;
}

/* ——— the table: felt in the table's cloth, seats placed around it by angle ——— */

.pk-felt {
    display: block;
    min-height: 0;
    height: 500px;
    padding: 0;
    background: radial-gradient(ellipse at 50% 42%, var(--cloth-a, #137a54) 0%, var(--cloth-b, var(--pk-felt)) 50%, var(--cloth-c, var(--pk-felt-2)) 100%);
}

.pk-felt--8 {
    height: 580px;
    border-radius: 240px;
}

.pk-ring {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.pk-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: min(330px, 80%);
    transform: translate(-50%, -50%);
}

.pk .pk-seat {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transform: translate(-50%, -50%);
}

.pk .pk-seat--bottom {
    flex-direction: column-reverse;
}

.pk .pk-seat .pk-chair {
    margin: 0;
}

.pk-betspot {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}



.pk-pot {
    flex-wrap: wrap;
    justify-content: center;
}

/* 8 seats: compact plates and small cards; mine stays bigger. */
.pk-seat--ring .pk-seat__plate {
    min-width: 0;
    width: 150px;
    gap: 7px;
    padding: 5px 9px 5px 5px;
}

.pk-seat--ring .pk-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.pk-seat--ring .pk-seat__who b {
    overflow: hidden;
    max-width: 92px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-seat--ring .pk-seat__who small {
    font-size: 11px;
}

.pk-seat--ring .pk-seat__cards {
    min-height: 0;
}

.pk-seat--ring .pk-card {
    width: 32px;
    height: 45px;
    border-radius: 6px;
}

.pk-seat--ring .pk-card b {
    font-size: 15px;
}

.pk-seat--ring .pk-card i {
    font-size: 14px;
}

.pk-seat--ring.is-mine .pk-card {
    width: 44px;
    height: 62px;
}

.pk-seat--ring.is-mine .pk-card b {
    font-size: 20px;
}

.pk-seat--ring.is-mine .pk-card i {
    font-size: 19px;
}

.pk-seat--ring.is-mine .pk-seat__plate {
    width: 180px;
}

.pk-seat__plate.is-folded {
    opacity: 0.55;
}

.pk-seat--ring .pk-dealer {
    width: 18px;
    height: 18px;
    font-size: 10px;
}

.pk-seat--ring .pk-eqbar__track {
    width: 54px;
}

.pk-seat.is-free .pk-chair {
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 18px;
}

.pk-seat--bottom.is-free .pk-chair {
    flex-direction: row;
    border-radius: 999px;
}

.pk .pk-sitbtn--sm {
    min-width: 0;
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

/* Skins take the table's cloth too (owner 16.11: the same colour inside the table). */
.pk-skin-2 .pk-felt {
    background: radial-gradient(ellipse at 50% 40%, var(--cloth-b) 0%, var(--cloth-c) 55%, #050a17 100%);
}

.pk-skin-3 .pk-felt::before {
    background: radial-gradient(ellipse at 50% 35%, var(--cloth-a) 0%, var(--cloth-b) 55%, var(--cloth-c) 100%);
}

.pk-skin-4 .pk-felt {
    background: var(--cloth-tint);
}

.pk-skin-5 .pk-felt {
    background: radial-gradient(ellipse at 50% 40%, var(--cloth-a) 0%, var(--cloth-b) 55%, var(--cloth-c) 100%);
}



@media (max-width: 640px) {
    .pk-felt {
        height: 540px;
    }

    .pk-felt--8 {
        height: 660px;
        border-radius: 160px;
    }

    .pk-center {
        width: 78%;
    }

    .pk-felt--8 .pk-board .pk-card {
        width: 34px;
        height: 48px;
    }

    .pk-felt--8 .pk-board .pk-card b {
        font-size: 16px;
    }

    .pk-seat--ring .pk-seat__plate {
        flex-direction: column;
        width: 82px;
        gap: 2px;
        padding: 5px 4px 6px;
        border-radius: 12px;
        text-align: center;
    }

    .pk-seat--ring .pk-seat__who {
        align-items: center;
        margin: 0;
    }

    .pk-seat--ring .pk-seat__who b {
        max-width: 76px;
        font-size: 11px;
    }

    .pk-seat--ring .pk-seat__who small {
        font-size: 10px;
    }

    .pk-seat--ring .pk-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .pk-seat--ring .pk-card {
        width: 24px;
        height: 34px;
        border-radius: 5px;
    }

    .pk-seat--ring .pk-card b {
        font-size: 12px;
    }

    .pk-seat--ring .pk-card i {
        font-size: 11px;
    }

    .pk-seat--ring.is-mine .pk-seat__plate {
        flex-direction: row;
        width: 170px;
        text-align: left;
    }

    .pk-seat--ring.is-mine .pk-seat__who {
        align-items: flex-start;
    }

    .pk-seat--ring.is-mine .pk-card {
        width: 40px;
        height: 56px;
    }

    .pk-seat--ring .pk-eqbar {
        padding: 2px 6px;
        font-size: 10px;
    }

    .pk-seat--ring .pk-dealer {
        position: absolute;
        top: -6px;
        right: -4px;
    }

    .pk-seat--ring .pk-seat__plate .pk-eqtext,
    .pk-seat--ring .pk-seat__plate .pk-gauge {
        display: none;
    }

    .pk-seat--ring.is-mine .pk-seat__plate .pk-eqtext,
    .pk-seat--ring.is-mine .pk-seat__plate .pk-gauge {
        display: flex;
    }

    .pk-ttable__stage {
        padding: 22px 26px;
    }
}

/* Empty seats on the 8-seat ring: a small chair. */
.pk-seat--ring.is-free .pk-chair {
    padding: 6px;
    background: rgba(46, 25, 12, 0.85);
}

.pk-seat--ring .pk-chair__icon {
    width: 32px;
    height: 32px;
}

.pk-seat--ring .pk-chair__icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .pk-seat--ring .pk-chair__icon {
        width: 26px;
        height: 26px;
    }

    .pk-seat--ring.is-free .pk-chair {
        padding: 4px;
        border-radius: 14px;
    }

    .pk-seat--ring.is-mine .pk-seat__plate {
        width: 140px;
    }
}

@media (max-width: 640px) {
    /* Other seats on the ring show only the percentage; the hand name and the bar stay for my own seat. */
    .pk-seat--ring:not(.is-mine) .pk-eqbar__track,
    .pk-seat--ring:not(.is-mine) .pk-eqbar small,
    .pk-seat--ring:not(.is-mine) .pk-eqchip__hand,
    .pk-seat--ring:not(.is-mine) .pk-hint {
        display: none;
    }

    .pk-seat--ring:not(.is-mine) .pk-eqbadge span {
        display: none;
    }

    .pk-seat--ring:not(.is-mine) .pk-eqchip {
        width: 42px;
        height: 42px;
    }


    .pk-felt--8 .pk-pot b,
    .pk-felt--8 .pk-pot .pk-amt {
        font-size: 14px;
    }

    .pk-felt--8 .pk-note {
        font-size: 12px;
    }
}

/* 8 seats: the dealer's deck lies on the cloth below the top seat, out of the way of the side seats. */
.pk-felt--8 .pk-deck {
    left: 50%;
    top: 24%;
    transform: translate(-50%, -50%) rotate(-8deg);
}

@media (max-width: 640px) {
    .pk-felt--8 .pk-deck {
        top: 22%;
        left: 64%;
    }
}

@media (max-width: 640px) {
    .pk .pk-seat--ring .pk-sitbtn--sm {
        min-height: 26px;
        padding: 0 10px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .pk-seat--ring.is-free .pk-chair {
        gap: 4px;
    }
}

/* Heads-up cards of the room: the seats sit just outside the oval, the caption below clears the bottom one. */
.pk-ttable__stage--2 {
    padding-bottom: 34px;
}

.pk-ttable__stage--2 + .pk-ttable__who {
    margin-top: 4px;
}

/* ——— round 6 (owner 16.11) ——— */

.pk-emoji {
    font-size: 1.25em;
    line-height: 1;
}

.pk-avatar .pk-emoji {
    font-size: 20px;
}

/* Drawn characters (round 9.4): the round picture fills its plate. */
.pk-char {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.pk-avatar:has(> .pk-char),
.pk-cocc__ava:has(> .pk-char) {
    overflow: hidden;
}

.pk-tool__ava .pk-char,
.pk-sound [data-pk-my-ava] .pk-char {
    width: 24px;
    height: 24px;
}

/* Last move bubble over the plate. */
.pk-bubble {
    position: absolute;
    left: 50%;
    top: -14px;
    z-index: 4;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.6);
    animation: pk-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pk-bubble--bet {
    background: #fde68a;
    color: #3b1d06;
}

.pk-bubble--allin {
    background: #be123c;
    color: #fff;
}

.pk-bubble--fold {
    background: #334155;
    color: #e2e8f0;
}

.pk-bubble--call {
    background: #bbf7d0;
    color: #064e3b;
}

@keyframes pk-pop {
    from {
        transform: translateX(-50%) scale(0.6);
        opacity: 0;
    }
}

/* Reactions float up over the seat. */
.pk-fly {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 6;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.75);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    pointer-events: none;
    animation: pk-fly 2s ease-out forwards;
}

@keyframes pk-fly {
    0% {
        transform: translate(-50%, 0) scale(0.6);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -18px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -70px) scale(1);
        opacity: 0;
    }
}

.pk-reacts {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pk .pk-react {
    min-width: 42px;
    height: 38px;
    padding: 0 8px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.pk .pk-react:active {
    transform: scale(0.92);
}

/* Pre-action checkboxes. */
.pk-pre {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pk-prebox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cas-on-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pk-prebox input {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.pk-prebox.is-on {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: inset 0 0 0 1px #34d399;
}

/* Time bank: «+15» right by the seconds of my move. */
.pk .pk-bankchip {
    position: absolute;
    right: -48px;
    top: 50%;
    z-index: 2;
    min-width: 34px;
    height: 22px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-family: var(--cas-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    transform: translateY(-50%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    pointer-events: auto;
    -webkit-touch-callout: none;
    user-select: none;
}

.pk .pk-bankchip:hover {
    background: #2563eb;
}

.pk .pk-bankchip:disabled {
    opacity: 0.55;
    cursor: default;
}

.pk-timer.is-bank {
    box-shadow: 0 0 0 2px #60a5fa, 0 0 12px rgba(96, 165, 250, 0.6);
}

/* Rabbit hunt: cards that were not played. */
.pk .pk-rabbit {
    align-self: center;
    padding: 7px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: var(--cas-on-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pk-card.is-rabbit {
    opacity: 0.6;
    filter: grayscale(0.4);
    outline: 2px dashed rgba(255, 255, 255, 0.6);
    outline-offset: 1px;
}

.pk-rabbit-note,
.pk-h__rabbit {
    align-self: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #e2e8f0;
    font-size: 11px;
    font-style: normal;
}

/* Room tools: profile and hand rankings. */
.pk-tools {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.pk .pk-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--cas-border);
    border-radius: 999px;
    background: var(--cas-surface);
    color: var(--cas-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pk-tool b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cas-ink-900);
    color: #fff;
    font-size: 13px;
}

.pk-tool__ava {
    font-size: 18px;
}

.pk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.pk-field input {
    padding: 10px 12px;
    border: 1px solid var(--cas-line-strong);
    border-radius: 12px;
    background: var(--cas-ink-800);
    color: var(--cas-on-dark);
    font-size: 16px;
}

.pk-avatars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.pk-avatars legend {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.pk .pk-avatar-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 2px 6px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cas-on-dark);
    cursor: pointer;
}

.pk .pk-avatar-pick .pk-char {
    width: 52px;
    height: 52px;
}

.pk .pk-avatar-pick span {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk .pk-avatar-pick.is-active {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: inset 0 0 0 2px #34d399;
}

.pk-modal--wide {
    width: min(560px, calc(100vw - 24px));
}

.pk-cheat {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: cheat;
}

.pk-cheat li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.pk-cheat__cards {
    display: flex;
    flex: none;
    gap: 3px;
}

.pk-cheat__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.pk-cheat__text b {
    font-size: 14px;
}

.pk-cheat__text small {
    color: var(--cas-on-dark-2);
    font-size: 12px;
}

.pk-sound b {
    color: var(--cas-on-dark);
    font-size: 16px;
}

/* 390 px: plates stay small and inside the felt; the status words are short. */
@media (max-width: 640px) {
    .pk-seat--ring .pk-seat__plate {
        width: 78px;
    }

    .pk-seat--ring .pk-seat__who small {
        overflow: hidden;
        max-width: 72px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pk-seat--ring.is-mine .pk-seat__plate {
        width: 150px;
    }

    .pk-pre {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .pk-avatars {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pk .pk-avatar-pick .pk-char {
        width: 46px;
        height: 46px;
    }

    .pk-cheat li {
        gap: 8px;
    }

    .pk-cheat .pk-card--xs {
        width: 21px;
        height: 30px;
    }

    .pk-bubble {
        font-size: 10px;
        top: -12px;
    }
}

/* ——— round 6.1: the own seat laid out neatly (owner 16.11) ——— */

/* The move bubble sits above the cards of its seat, never over the name. */
.pk .pk-seat > .pk-bubble {
    top: -24px;
}

.pk .pk-seat--bottom > .pk-bubble {
    top: -24px;
}

/* At the dealer table my seat reads like at the shared ones: cards, the win chance, then the plate. */
.pk .pk-seat--bottom.is-mine {
    flex-direction: column;
}

/* The bubble stands beside my cards so it never covers the line under the pot. */
.pk .pk-seat--bottom.is-mine > .pk-bubble {
    top: 26px;
    left: calc(50% + 100px);
}

@media (min-width: 700px) {
    .pk .pk-seat--bottom.is-mine > .pk-bubble {
        top: 20px;
        left: calc(50% + 94px);
    }
}

/* The win chance always on one line. */
.pk-eqbar,
.pk-eqbar small,
.pk-eqbadge span,
.pk-eqchip__hand,
.pk-hint {
    white-space: nowrap;
}

.pk-seat__eq {
    flex-wrap: nowrap;
}

/* Cards, the win chance and the plate do not overlap: plain flow with gaps. */
.pk .pk-seat {
    gap: 6px;
}

.pk-seat--ring.is-mine .pk-seat__plate {
    margin-top: 2px;
}

@media (max-width: 640px) {
    /* 8 seats on a phone: smaller board cards and plates, so the side seats stay clear of the board. */
    .pk-felt--8 .pk-board .pk-card {
        width: 25px;
        height: 36px;
    }

    .pk-felt--8 .pk-board .pk-card b {
        font-size: 13px;
    }

    .pk-felt--8 .pk-board .pk-card i {
        font-size: 12px;
    }

    .pk-felt--8 .pk-board {
        gap: 4px;
    }

    .pk-seat--ring:not(.is-mine) .pk-seat__plate {
        width: 70px;
    }

    .pk-seat--ring.is-mine .pk-eqbar {
        gap: 5px;
        font-size: 11px;
    }

    .pk-seat--ring.is-mine .pk-eqbar__track {
        width: 34px;
    }

    .pk-seat--ring.is-mine .pk-eqbar b {
        font-size: 12px;
    }

    .pk-seat--ring.is-mine .pk-eqbadge {
        gap: 6px;
        padding: 4px 8px 4px 5px;
    }

    .pk-seat--ring.is-mine .pk-eqbadge b {
        font-size: 14px;
    }

    .pk-seat--ring.is-mine .pk-eqbadge span {
        font-size: 11px;
    }

    .pk-felt--8 .pk-betspot .pk-amt {
        padding: 1px 6px;
        font-size: 11px;
    }

    .pk-felt--8 .pk-betspot .pk-stack {
        --cw: 19px;
        --ch: 8px;
        --ce: 3px;
    }
}

/* ——— round 7 (owner 16.11): seats on the rail, the center free for the board and the pot ——— */

.pk .pk-felt {
    margin: 34px 30px 44px;
}

/* 8 seats on a wide screen: the side plates stand half over the rail, so the felt keeps room for them inside the panel. */
.pk .pk-felt--8 {
    margin: 34px 70px 44px;
}

/* A name on the rail stays on one line. */
.pk .pk-seat .pk-seat__who b {
    white-space: nowrap;
}

.pk .pk-seat.is-o-down {
    flex-direction: column;
}

.pk .pk-seat.is-o-up {
    flex-direction: column-reverse;
    gap: 12px;
}

.pk .pk-seat.is-o-left {
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
}

.pk .pk-seat.is-o-right {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* A seat at the top rail says its move under its cards, on the cloth. */
.pk .pk-seat.is-o-up > .pk-bubble {
    top: auto;
    bottom: -26px;
}

@media (max-width: 599px) {
    .pk .pk-felt,
    .pk .pk-felt--8 {
        margin: 34px 14px 46px;
    }
}

/* The pot: the biggest stacks on the table. */
.pk-pot .pk-stack {
    --cw: 28px;
    --ch: 12px;
    --ce: 4.5px;
}

/* Chips in a real stack are never lined up perfectly: every other one is turned a little and sits a hair aside. */
.pk-col i {
    background-size: 130% 100%;
    background-position: 0 0;
}

.pk-col i:nth-child(even) {
    background-position: 45% 0;
    transform: translateX(0.6px);
}

.pk-col i:nth-child(3n) {
    background-position: 90% 0;
    transform: translateX(-0.7px);
}

.pk-col i:last-child {
    background-size: auto;
    background-position: center;
}

/* The pot lies on the cloth: stacks side by side and the amount in its pill, no box around the chips. */
.pk .pk-pot {
    align-items: center;
    padding: 0;
    background: none;
}

.pk .pk-pot small {
    color: #e2f3ea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.pk .pk-pot .pk-amt {
    padding: 3px 10px;
    background: rgba(7, 10, 16, 0.78);
}

@media (max-width: 640px) {
    .pk .pk-felt--8 .pk-deck {
        left: 50%;
        top: 34%;
    }
}

/* ——— round 7.1 (owner 16.11): «DEALER» by the dealer, «OPEN SEAT» on every free seat ——— */

/* A solid amber ribbon: it reads the same on green, blue, red, purple and light felt. */
.pk .pk-role {
    position: absolute;
    left: 2px;
    top: -10px;
    z-index: 3;
    padding: 1px 7px;
    border-radius: 6px;
    background: #fbbf24;
    color: #1f1406;
    font-family: var(--cas-font);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* On a table card the ribbon crosses the bottom of the dealer's round avatar. */
.pk .pk-role--card {
    left: auto;
    top: auto;
    transform: translate(-50%, 9px);
    font-size: 9px;
    padding: 0 6px;
}

/* A free seat on a table card: a small plate with a chair and the word. */
.pk-cfree {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    border-radius: 999px;
    background: #2e190c;
    color: #f3e4d7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(243, 217, 196, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pk-cfree svg {
    width: 12px;
    height: 12px;
    flex: none;
}

/* Inside the table: the chair at the rail always says «OPEN SEAT»; the whole plate opens the sit-down modal. */
.pk .pk-seat.is-free .pk-chair__label {
    display: block;
    color: #f3e4d7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.pk .pk-chair.is-open {
    cursor: pointer;
}

.pk .pk-chair.is-open:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 2px rgba(251, 191, 36, 0.6);
}

@media (max-width: 640px) {
    .pk .pk-seat--ring.is-free .pk-chair__label {
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .pk .pk-seat--ring.is-free .pk-chair {
        padding: 4px 6px;
    }
}

/* A phone card is narrow: the side plates lean inward along the rail instead of hanging past the card. */
@media (max-width: 640px) {
    .pk-cfree.is-l {
        transform: translate(-6%, -50%);
    }

    .pk-cfree.is-r {
        transform: translate(-94%, -50%);
    }

    .pk-cfree.is-l,
    .pk-cfree.is-r {
        gap: 2px;
        padding: 2px 5px 2px 4px;
        letter-spacing: 0;
    }

    .pk-ttable__stage--8 .pk-ttable__blinds {
        font-size: 17px;
    }
}

/* Heads-up: the one free seat is big, its word is as big as the button next to it. */
.pk .pk-seat--bottom.is-free .pk-chair__label {
    font-size: 14px;
}

/* A phone, 8 seats: the line under the pot stays between the side seats on the rails. */
@media (max-width: 640px) {
    .pk .pk-felt--8 .pk-center {
        width: 54%;
    }
}

/* ——— round 7.2 (owner 16.11): pre-actions always in place while seated; pale and off when they cannot apply ——— */

.pk .pk-prebox.is-off {
    opacity: 0.5;
    cursor: default;
}

.pk .pk-prebox.is-off input {
    cursor: default;
}

.pk-dock {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

/* Between hands «What would have come?» and the status line sit in the place of the move buttons. */
.pk-dock > .pk-rabbit {
    margin-top: 6px;
}

/* The time bank button: «+15 s» by the seconds; on hover it opens smoothly into «⏳ Think 15 more seconds».
   It grows to the right, away from the timer; a touch screen keeps the short label. */
.pk .pk-bankchip {
    right: auto;
    left: calc(100% + 18px);
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0 9px;
    white-space: nowrap;
    transition: padding 0.2s ease, background-color 0.2s ease;
}

/* The timer paints its own bar on «.pk-timer span»: the labels inside the button are not that bar. */
.pk .pk-timer .pk-bankchip__s,
.pk .pk-timer .pk-bankchip__l {
    height: auto;
    border-radius: 0;
    background: none;
    transform: none;
}

.pk-bankchip__s,
.pk-bankchip__l {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.2s ease, opacity 0.2s ease;
}

.pk-bankchip__s {
    max-width: 80px;
}

.pk-bankchip__l {
    max-width: 0;
    opacity: 0;
}

@media (hover: hover) {
    .pk .pk-bankchip:hover {
        padding: 0 12px;
    }

    .pk .pk-bankchip:hover .pk-bankchip__s {
        max-width: 0;
        opacity: 0;
    }

    .pk .pk-bankchip:hover .pk-bankchip__l {
        max-width: 260px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk .pk-bankchip,
    .pk-bankchip__s,
    .pk-bankchip__l {
        transition: none;
    }
}

.pk-bankchip__l {
    font-family: var(--cas-font);
    font-weight: 700;
}

/* The move buttons keep one height whatever their label (one line «Check» or two «Raise to / $0.20»), so the place kept
   for them under the pre-actions is right from the first hand. */
.pk .pk-acts .pk-btn {
    min-height: 64px;
}

/* Round 8.1 (owner 16.11): on a narrow 8-seat felt (a phone, up to 640 px) a bet is a column — the chips,
   the amount under them — so every seat's bet fits the cloth between the side seats' cards without touching a plate or cards
   (scripts/agent/poker-bets-check.mjs). */
.pk-felt--8.pk-felt--narrow .pk-betspot {
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pk-felt--8.pk-felt--narrow .pk-betspot .pk-stack {
    --cw: 15px;
    --ch: 7px;
    --ce: 2.5px;
}

.pk-felt--8.pk-felt--narrow .pk-betspot .pk-amt {
    padding: 1px 6px;
    font-size: 11px;
}

/* Round 8.1 (owner 16.11): the header buttons never shrink (the «?» button used to slide over «NL10»); the phone header is
   one row since round 8.4 (below). */
.pk-bar .pk-sound {
    flex: none;
}

.pk-live__short {
    display: none;
}

@media (max-width: 640px) {
    .pk-live__full {
        display: none;
    }

    .pk-live__short {
        display: inline;
    }

    /* A safety net: whatever the words, the pill stays on the tools row and cuts its text. */
    .pk-bar .pk-live {
        max-width: 150px;
    }

    .pk-bar .pk-live [data-pk-live-text] {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Round 8.2 (owner 16.11): on a phone a long name ends with «…» inside its plate instead of running over its edge. */
@media (max-width: 640px) {
    .pk .pk-seat--ring:not(.is-mine) .pk-seat__who {
        min-width: 0;
        max-width: 100%;
    }

    .pk .pk-seat--ring:not(.is-mine) .pk-seat__who b {
        display: block;
        overflow: hidden;
        max-width: 66px;
        text-overflow: ellipsis;
    }
}

/* ——— round 8.3 (owner 16.11): the window fits the screen, the move buttons stay in place, full screen ——— */

/* The room is as tall as the screen under the site header (poker.js sets the height); the bar and the controls keep their
   height, the table stage takes the rest and the table is zoomed down to it. */
.pk-room .pk-shell {
    grid-template-rows: minmax(0, 1fr);
}

.pk-room .pk-main {
    min-height: 0;
}

.pk-stage {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

/* The table keeps its own height (it is zoomed, never squeezed). */
.pk-stage > .pk-felt {
    flex: none;
}

.pk-room .pk-side {
    max-height: none;
    min-height: 0;
}

.pk-room .pk-chat {
    min-height: 0;
}

/* The bar: the tools stand together on the right. */
.pk-bar .pk-sound ~ .pk-sound {
    margin-left: 0;
}

.pk .pk-bar .pk-leave {
    flex: none;
    width: auto;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cas-on-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pk-bar .pk-sound svg:not(.cas-i) {
    width: 18px;
    height: 18px;
    color: var(--cas-on-dark);
}

.pk-sideopen,
.pk-side__x {
    display: none;
}

.pk-sideopen {
    position: relative;
}

.pk-sideopen .pk-tab__dot {
    position: absolute;
    top: 6px;
    right: 6px;
}

/* Reactions open the side panel, above the tabs. */
.pk-side .pk-reacts {
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cas-line);
}

/* The controls: the pre-actions row (or the status in its place), then the move buttons — nothing appears or disappears. */
.pk .pk-controls {
    gap: 8px;
    padding: 0 16px 12px;
}

.pk-preline {
    display: grid;
}

.pk-preline > .pk-pre,
.pk-preline > .pk-prenote {
    grid-area: 1 / 1;
}

.pk .pk-prebox {
    padding: 8px 12px;
}

.pk-prenote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    color: var(--cas-on-dark-2);
    font-size: 14px;
    text-align: center;
}

.pk-prenote[hidden] {
    display: none;
}

.pk .pk-prenote .pk-btn {
    min-height: 0;
    padding: 7px 14px;
    font-size: 14px;
}

.pk .pk-prenote .pk-rabbit {
    padding: 6px 12px;
}

/* PC: the raise box (presets, slider and amount) beside the three buttons — one band. */
.pk .pk-acts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: stretch;
    gap: 12px;
}

.pk .pk-acts[hidden] {
    display: none;
}

.pk .pk-raise {
    gap: 6px;
}

.pk .pk-acts .pk-preset {
    padding: 6px 4px;
}

.pk .pk-acts .pk-amount {
    padding: 6px 8px;
}

.pk .pk-acts .pk-raise__row {
    grid-template-columns: minmax(0, 1fr) 96px;
}

.pk .pk-acts .pk-btn {
    min-height: 68px;
}

/* Not his move, after his fold, between hands: pale and switched off, with plain labels. */
.pk .pk-acts.is-off {
    opacity: 0.45;
}

.pk .pk-acts.is-off .pk-btn:disabled,
.pk .pk-acts.is-off .pk-preset:disabled,
.pk .pk-acts.is-off input:disabled {
    opacity: 1;
    cursor: default;
}

.pk .pk-acts .pk-preset:disabled,
.pk .pk-acts input:disabled {
    cursor: default;
}

/* Narrow screens: chat, history and fairness slide up from the 💬 button over the table. */
@media (max-width: 1100px) {
    .pk-sideopen,
    .pk-side__x {
        display: grid;
    }

    .pk .pk-room .pk-side {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        height: min(74dvh, 600px);
        border: 1px solid var(--cas-line);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.45);
        transform: translateY(104%);
        visibility: hidden;
        transition: transform 0.22s ease, visibility 0s linear 0.22s;
    }

    .pk .pk-room .pk-side.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.22s ease;
    }

    .pk-side__x {
        position: absolute;
        top: 8px;
        right: 10px;
        z-index: 1;
        place-items: center;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--cas-on-dark);
        cursor: pointer;
    }

    .pk-side .pk-reacts {
        padding-right: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk .pk-room .pk-side,
    .pk .pk-room .pk-side.is-open {
        transition: none;
    }
}

/* Phone: three pre-actions side by side, presets and the amount in one row (the slider stays on wider screens). */
@media (max-width: 640px) {
    .pk .pk-pre {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .pk .pk-prebox {
        gap: 6px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .pk .pk-prebox input {
        width: 16px;
        height: 16px;
    }

    .pk .pk-controls {
        gap: 6px;
        padding: 0 10px 8px;
    }

    .pk .pk-acts {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .pk .pk-raise {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 84px;
        gap: 6px;
    }

    .pk .pk-acts .pk-range {
        display: none;
    }

    .pk .pk-acts .pk-raise__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pk .pk-acts .pk-btn {
        min-height: 50px;
        padding: 6px 8px;
        font-size: 14px;
    }

    .pk .pk-prenote {
        font-size: 13px;
    }

    .pk-bar .pk-leave span {
        display: none;
    }

    .pk .pk-bar .pk-leave {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
    }

    .pk .pk-bar {
        padding: 8px 10px;
        row-gap: 6px;
    }
}

@media (max-width: 420px) {
    .pk-bar .pk-watch {
        display: none;
    }

    .pk-bar .pk-sound,
    .pk .pk-bar .pk-leave {
        width: 32px;
        height: 32px;
    }

    .pk .pk-bar {
        gap: 6px;
    }
}

/* Full screen (⛶ or F): the room alone on the screen; without the Fullscreen API it is laid over the page. */
.pk-room.is-fs {
    padding: 0;
    background: var(--cas-ink-900);
}

.pk-room.is-fs .pk-shell {
    border-radius: 0;
}

body.pk-fs {
    overflow: hidden;
}

body.pk-fs .pk-room {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
}

/* At a table: the games bar above the window goes away, so the window sits right under the site header. */
.pk-in-room .cas-gamebar {
    display: none;
}

.pk-in-room .pk {
    padding-top: 8px;
}

/* ——— round 8.4 (owner 16.11): the pot never reaches a seat; tablets; a compact phone table ——— */

/* On a phone 8-seat table the pot is two rows — its stacks, then «Pot $X» — so even the widest ($12,524.40 in 4 stacks)
   stays between the side seats' cards (scripts/agent/poker-bets-check.mjs). */
.pk .pk-felt--8.pk-felt--narrow .pk-pot {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 6px;
    row-gap: 2px;
}

.pk .pk-felt--8.pk-felt--narrow .pk-pot > .pk-stack {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: center;
}

.pk .pk-felt--8.pk-felt--narrow .pk-pot > small {
    grid-row: 2;
    grid-column: 1;
}

.pk .pk-felt--8.pk-felt--narrow .pk-pot > .pk-amt {
    grid-row: 2;
    grid-column: 2;
}


/* The bar title: the blinds and the table's number (round 9.5; the description moved to «?»). */
.pk-bar {
    position: relative;
}

.pk-bar__sub {
    display: flex;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.pk-bar__sub small {
    flex: none;
    color: var(--cas-on-dark-2);
    font-size: 12px;
}

.pk .pk-bar__sub .pk-bar__no {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-bar__no::before {
    content: '\00a0·\00a0';
}

.pk-side__tools,
.pk-preset--more {
    display: none;
}

/* ——— the compact phone table (round 8.4): one-row bar, tight controls, compact plates, a shorter 8-seat felt ——— */
@media (max-width: 640px) {
    .pk .pk-bar {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 7px 10px;
    }

    .pk-bar .pk-bar__title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pk-bar .pk-bar__title b {
        font-size: 14px;
    }

    .pk-bar [data-pk-cheat-open],
    .pk-bar [data-pk-profile-open],
    .pk-bar .pk-watch {
        display: none;
    }

    .pk-bar .pk-sound {
        margin-left: 0;
    }

    .pk-bar .pk-sound,
    .pk .pk-bar .pk-leave {
        width: 32px;
        height: 32px;
    }

    .pk-bar .pk-live {
        flex: none;
        max-width: none;
        padding: 0 6px;
        height: 32px;
        background: none;
    }

    .pk-bar .pk-live [data-pk-live-text] {
        display: none;
    }

    .pk-side__tools {
        display: flex;
        gap: 8px;
        padding: 10px 54px 0 12px;
    }

    .pk .pk-side__tool {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 12px;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.07);
        color: var(--cas-on-dark);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    .pk-side .pk-reacts {
        padding-right: 12px;
    }

    /* Controls: pre-actions as small chips, the presets in one row with «±» (slider and amount pop up over them). */
    .pk .pk-prebox {
        gap: 5px;
        min-height: 30px;
        padding: 4px 7px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 1.15;
    }

    .pk .pk-prebox input {
        width: 14px;
        height: 14px;
        margin: 0;
    }

    .pk .pk-prenote .pk-btn {
        padding: 5px 12px;
        font-size: 13px;
    }

    .pk .pk-prenote .pk-rabbit {
        padding: 4px 10px;
        font-size: 12px;
    }

    .pk .pk-raise {
        position: relative;
        display: block;
    }

    .pk .pk-raise__presets {
        grid-template-columns: repeat(4, minmax(0, 1fr)) 40px;
        gap: 5px;
    }

    .pk-preset--more {
        display: block;
    }

    .pk .pk-acts .pk-preset {
        padding: 5px 2px;
        font-size: 12px;
    }

    .pk .pk-acts .pk-raise__row {
        display: none;
    }

    .pk .pk-raise.is-open .pk-raise__row {
        position: absolute;
        right: 0;
        bottom: calc(100% + 6px);
        left: 0;
        z-index: 5;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 96px;
        padding: 8px 10px;
        border: 1px solid var(--cas-line-strong);
        border-radius: 12px;
        background: var(--cas-ink-800);
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.4);
    }

    .pk .pk-raise.is-open .pk-range {
        display: block;
    }

    .pk .pk-raise.is-open .pk-preset--more {
        background: rgba(16, 185, 129, 0.22);
        color: #6ee7b7;
    }

    .pk .pk-acts .pk-btn {
        min-height: 46px;
        padding: 4px 8px;
        border-radius: 12px;
    }

    .pk .pk-acts .pk-btn b {
        font-size: 13px;
    }

    /* The 8-seat felt is shorter and its plates compact: no avatar, the tag and the stack on two short lines. */
    .pk .pk-felt--8.pk-felt--narrow {
        height: 520px;
        /* Room above the top seat for a bot's two-line ribbon (round 9). */
        margin: 46px 14px 26px;
    }

    .pk .pk-felt--narrow .pk-seat--ring:not(.is-mine) .pk-seat__plate {
        width: 64px;
        gap: 0;
        padding: 3px 3px 4px;
        border-radius: 10px;
    }

    .pk .pk-felt--narrow .pk-seat--ring:not(.is-mine) .pk-avatar {
        display: none;
    }

    .pk .pk-felt--narrow .pk-seat--ring:not(.is-mine) .pk-seat__who b {
        max-width: 58px;
        font-size: 11px;
    }

    .pk .pk-felt--narrow .pk-seat--ring:not(.is-mine) .pk-seat__who small {
        max-width: 58px;
        font-size: 10px;
    }

    .pk .pk-felt--narrow .pk-seat--ring.is-mine .pk-seat__plate {
        width: 150px;
        padding: 3px 8px 3px 4px;
    }

    .pk .pk-felt--narrow .pk-seat--ring.is-mine .pk-avatar {
        width: 24px;
        height: 24px;
    }

    .pk .pk-felt--narrow .pk-seat--ring.is-mine .pk-card {
        width: 36px;
        height: 50px;
    }

    .pk .pk-felt--narrow .pk-seat--ring.is-free .pk-chair {
        width: 44px;
        height: 34px;
    }

    /* The pot: small stacks, the amount under them, no «Pot» word. */
    .pk .pk-felt--8.pk-felt--narrow .pk-pot .pk-stack {
        --cw: 15px;
        --ch: 7px;
        --ce: 2.5px;
    }

    .pk .pk-felt--8.pk-felt--narrow .pk-pot > small {
        display: none;
    }

    .pk .pk-felt--8.pk-felt--narrow .pk-pot > .pk-amt {
        grid-column: 1 / -1;
        padding: 1px 7px;
        font-size: 12px;
    }

    .pk .pk-felt--8.pk-felt--narrow .pk-board .pk-card {
        width: 30px;
        height: 42px;
    }

    /* The centre: the board above the band of the middle side seats, the pot below it (the band is theirs); the deck is
       only the point the cards fly from. */
    .pk .pk-felt--8.pk-felt--narrow .pk-deck {
        visibility: hidden;
    }

    .pk .pk-felt--8.pk-felt--narrow .pk-center {
        top: 33.5%;
        gap: 0;
        transform: translate(-50%, 0);
    }

    .pk .pk-felt--8.pk-felt--narrow .pk-pot {
        margin-top: 60px;
    }

    .pk .pk-felt--8.pk-felt--narrow .pk-note {
        margin-top: 4px;
    }
}

/* Tablets and narrow windows (round 8.4): the blinds stay readable — «Stand up» and «Watching» shrink to their icons. */
.pk-bar .pk-bar__title {
    flex: 0 1 auto;
    min-width: 7.5em;
}

@media (max-width: 1100px) {
    .pk-bar .pk-leave span,
    .pk-bar .pk-watch__txt {
        display: none;
    }

    .pk-bar .pk-watch__short {
        display: inline;
    }

    .pk .pk-bar .pk-leave {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
}

/* The move buttons have one fixed height whatever their label («Check» or «Raise to / $313.10»): the controls never change
   height, so the zoomed table never moves (round 8.4). */
.pk .pk-acts .pk-btn {
    height: 68px;
    min-height: 0;
    line-height: 1.15;
}

@media (max-width: 640px) {
    .pk .pk-acts .pk-btn {
        height: 50px;
    }
}

/* ——— round 9.3 (owner 18.11): a seated player is seen at once on the room card ——— */

/* The avatar ~1.7× bigger, in a bright ring — a person green, me blue, a bot violet (as on the table) — and one pill
   «name · chips» pointing away from the table (over the upper seats, under the others). The avatar stays on the rail;
   the card has room above and below for the pills. */
/* Room above and below the table for the pills (a margin: the seats stand on the rail, in percent of the stage), and a
   taller 8-seat table, so the rows of seats are far enough apart for a pill between them. */
.pk .pk-ttable__stage {
    margin: 44px 0 46px;
}

.pk .pk-ttable__stage--8 .pk-ttable__felt {
    min-height: 210px;
}

.pk .pk-cocc {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transform: translate(-50%, -23px);
    pointer-events: none;
}

.pk .pk-cocc.is-up {
    flex-direction: column-reverse;
    transform: translate(-50%, calc(-100% + 23px));
}

.pk .pk-cocc.is-l {
    align-items: flex-start;
    transform: translate(-23px, -23px);
}

.pk .pk-cocc.is-r {
    align-items: flex-end;
    transform: translate(calc(-100% + 23px), -23px);
}

.pk-cocc__ava {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cas-ink-600);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 0 0 3px #34d399, 0 0 16px rgba(52, 211, 153, 0.65);
}

.pk-cocc__ava svg {
    width: 100%;
    height: 100%;
}

.pk-cocc__ava .pk-emoji {
    font-size: 25px;
}

.pk .pk-cocc.is-me .pk-cocc__ava {
    background: #0369a1;
    box-shadow: 0 0 0 3px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.7);
    font-size: 12px;
}

.pk .pk-cocc.is-bot .pk-cocc__ava {
    box-shadow: 0 0 0 3px #a78bfa, 0 0 16px rgba(139, 92, 246, 0.75);
}

.pk .pk-cocc--bot .pk-cocc__ava {
    box-shadow: 0 0 0 3px #fbbf24, 0 0 14px rgba(251, 191, 36, 0.55);
}

.pk-cocc__tag {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    max-width: 128px;
    padding: 2px 7px;
    border-radius: 7px;
    background: rgba(7, 10, 16, 0.86);
    white-space: nowrap;
}

.pk-cocc__name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.pk-cocc__stack {
    flex: none;
    color: #a7f3d0;
    font-family: var(--cas-mono);
    font-size: 11px;
    font-style: normal;
}

/* Free seats stay readable but step back behind the seated ones. */
.pk .pk-ttable .pk-cfree {
    opacity: 0.72;
}

@media (max-width: 640px) {
    .pk-cocc__ava {
        width: 40px;
        height: 40px;
    }

    .pk .pk-cocc {
        transform: translate(-50%, -20px);
    }

    .pk .pk-cocc.is-up {
        transform: translate(-50%, calc(-100% + 20px));
    }

    .pk .pk-cocc.is-l {
        transform: translate(-20px, -20px);
    }

    .pk .pk-cocc.is-r {
        transform: translate(calc(-100% + 20px), -20px);
    }

    .pk .pk-ttable__stage {
        margin: 54px 0 56px;
    }

    .pk .pk-ttable__stage--8 .pk-ttable__felt {
        min-height: 185px;
    }

    .pk-cocc__tag {
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 84px;
        padding: 1px 5px;
    }

    .pk-cocc__name {
        max-width: 74px;
        font-size: 11px;
    }

    .pk-cocc__stack {
        font-size: 10px;
    }
}

.pk [data-pk-my-ava] {
    display: inline-flex;
    align-items: center;
}

/* ——— round 10 (owner 18.11): the 8-seat table, one scheme for every seat and every screen ———
   poker.js draws the table in one of two fixed layouts (wide / tall) and zooms it to the stage. Every seat: its cards on
   top, the plate (avatar, nick, stack; a bot's «🤖 BOT» line) on the rail, the chance strip with the hand's name
   under it. Bets lie between the seats and the center, the pot (one pile, one amount since round 10.2) under the board. Sizes come
   from the variables below, so both layouts share the rules. */
.pk .pk-room .pk-felt.pk-felt--8 {
    --pk8-cw: 36px;
    --pk8-ch: 50px;
    --pk8-cb: 17px;
    --pk8-ci: 15px;
    --pk8-mcw: 48px;
    --pk8-mch: 66px;
    --pk8-mcb: 23px;
    --pk8-mci: 20px;
    --pk8-pw: 150px;
    --pk8-mpw: 176px;
    --pk8-ava: 30px;
    --pk8-fn: 13px;
    --pk8-fs: 12.5px;
    --pk8-ef: 12.5px;
    display: block;
    min-height: 0;
    padding: 0;
    border-width: 10px;
    border-radius: 999px;
}

.pk .pk-room .pk-felt.pk-felt--8.pk-felt--narrow {
    --pk8-cw: 30px;
    --pk8-ch: 42px;
    --pk8-cb: 15px;
    --pk8-ci: 13px;
    --pk8-mcw: 42px;
    --pk8-mch: 58px;
    --pk8-mcb: 20px;
    --pk8-mci: 18px;
    --pk8-pw: 106px;
    --pk8-mpw: 124px;
    --pk8-ava: 24px;
    /* Round 10.1: ≥10 px on screen at 360 (zoom ~0.77), ≥10.5 at 390 — the nick is cut at 7 characters for the room. */
    --pk8-fn: 13.2px;
    --pk8-fs: 13.2px;
    --pk8-ef: 13.2px;
    border-width: 8px;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring {
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.pk .pk-room .pk-felt--8 .pk-seat--ring .pk-seat__cards {
    gap: 3px;
    min-height: 0;
}

.pk .pk-room .pk-felt--8 .pk-seat--ring .pk-seat__cards:empty {
    display: none;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-card {
    width: var(--pk8-cw);
    height: var(--pk8-ch);
    border-radius: 5px;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-card b {
    font-size: var(--pk8-cb);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-card i {
    font-size: var(--pk8-ci);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring.is-mine .pk-card {
    width: var(--pk8-mcw);
    height: var(--pk8-mch);
    border-radius: 7px;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring.is-mine .pk-card b {
    font-size: var(--pk8-mcb);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring.is-mine .pk-card i {
    font-size: var(--pk8-mci);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-seat__plate {
    box-sizing: border-box;
    flex-direction: row;
    width: var(--pk8-pw);
    min-width: 0;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: 12px;
    text-align: left;
}

/* A bot: the violet outline round the plate. */
.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-seat__plate:has(.pk-seat__bot) {
    box-shadow: 0 0 0 2px #8b5cf6, 0 6px 16px rgba(0, 0, 0, 0.45);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring.is-mine .pk-seat__plate {
    width: var(--pk8-mpw);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-avatar {
    display: grid;
    width: var(--pk8-ava);
    height: var(--pk8-ava);
    font-size: calc(var(--pk8-ava) * 0.42);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-seat__who {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: none;
    margin: 0;
    line-height: 1.2;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-seat__who b {
    overflow: hidden;
    max-width: 100%;
    font-size: var(--pk8-fn);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-seat__who small {
    overflow: hidden;
    max-width: 100%;
    font-size: var(--pk8-fs);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A bot's line «🤖 BOT», one row, under its stack (round 14: it sees only its own cards — said on hover). */
.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-seat__who .pk-seat__bot {
    color: #c4b5fd;
    font-family: var(--cas-font);
    font-weight: 700;
}

.pk .pk-seat__bot i {
    font-style: normal;
}

/* The tall layout's plate is narrow: the bot is a 🤖 on the avatar's corner (the words on hover and in «?»). */
.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-seat.pk-seat--ring .pk-seat__who .pk-seat__bot {
    position: absolute;
    left: calc(var(--pk8-ava) - 8px);
    top: 0;
    overflow: visible;
    font-size: var(--pk8-fs);
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-seat__bot span {
    display: none;
}

/* The chance strip under the plate, as wide as it: the bar, the %, the hand's name. */
.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring > .pk-seat__eq {
    width: var(--pk8-pw);
    margin: 0;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring.is-mine > .pk-seat__eq {
    width: var(--pk8-mpw);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring > .pk-seat__eq > * {
    box-sizing: border-box;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
    gap: 5px;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: var(--pk8-ef);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-eqbar__track {
    display: block;
    flex: none;
    width: 28px;
}

/* On the narrow plates of the tall layout only my own strip keeps the bar: the others' % and hand name need the room. */
.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-seat.pk-seat--ring:not(.is-mine) .pk-eqbar__track {
    display: none;
}

/* The dealer button on the plate's top-right corner, clear of the name and the cards. */
.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-dealer {
    position: absolute;
    top: -7px;
    right: -7px;
    margin: 0;
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-eqbar b {
    flex: none;
    font-size: var(--pk8-ef);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-eqbar small {
    display: block;
    overflow: hidden;
    min-width: 0;
    font-size: var(--pk8-ef);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bets: «c» the amount under the chips, «r» beside them (poker.js L8). */
.pk .pk-room .pk-felt--8 .pk-betspot {
    gap: 3px;
}

.pk .pk-room .pk-felt--8 .pk-betspot.is-c {
    flex-direction: column;
    align-items: center;
}

.pk .pk-room .pk-felt--8 .pk-betspot.is-r {
    flex-direction: row;
    align-items: center;
}

.pk .pk-room .pk-felt--8 .pk-betspot .pk-stack {
    --cw: 20px;
    --ch: 9px;
    --ce: 3px;
}

.pk .pk-room .pk-felt--8 .pk-betspot .pk-amt {
    padding: 1px 6px;
    font-size: var(--pk8-fn);
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-betspot.is-c {
    gap: 1px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-betspot .pk-amt {
    padding: 0 6px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-betspot .pk-stack {
    --cw: 15px;
    --ch: 6px;
    --ce: 1.7px;
}

/* The center: the board, the pot block under it, the line for the moves (poker.js sets its top and width). */
.pk .pk-room .pk-felt--8 .pk-center {
    top: 28%;
    gap: 6px;
    transform: translate(-50%, 0);
}

.pk .pk-room .pk-felt--8 .pk-board {
    gap: 6px;
}

.pk .pk-room .pk-felt--8 .pk-board .pk-card {
    width: 46px;
    height: 64px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-board {
    gap: 3px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-board .pk-card {
    width: 34px;
    height: 48px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-board .pk-card b {
    font-size: 17px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-board .pk-card i {
    font-size: 15px;
}

/* The pot: its chips and one total amount in a row, always readable (round 10.2: no side-pot lines on the table). */
/* The pot's box is as wide as what it shows (the label, chips and amount), so nothing
   lies on it unseen. */
.pk .pk-room .pk-felt--8 .pk-pot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.pk .pk-room .pk-felt--8 .pk-pot:empty {
    display: none;
}

.pk .pk-room .pk-felt--8 .pk-pot__row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pk .pk-room .pk-felt--8 .pk-pot .pk-stack {
    --cw: 22px;
    --ch: 10px;
    --ce: 3.5px;
}

.pk .pk-room .pk-felt--8 .pk-pot .pk-amt {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.82);
    font-size: 15px;
}

.pk .pk-room .pk-felt--8 .pk-pot small {
    font-size: var(--pk8-fs);
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-pot small {
    display: none;
}


.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-pot .pk-stack {
    --cw: 16px;
    --ch: 7px;
    --ce: 2.5px;
}



.pk .pk-room .pk-felt--8 .pk-note {
    min-height: 20px;
    line-height: 20px;
    font-size: var(--pk8-fn);
}

.pk .pk-room .pk-felt--8 .pk-deck {
    transform: translate(-50%, -50%) rotate(-8deg);
}

/* The reactions stay in one row in the side panel (round 10: 👏 dropped to a second line at 1024). */
.pk .pk-side .pk-reacts {
    flex-wrap: nowrap;
}

.pk .pk-side .pk-react {
    flex: 1 1 0;
    min-width: 0;
    max-width: 52px;
}

/* A big screen (round 10): the table window grows past the site's column, so the 8-seat table uses the screen instead of
   standing in its middle. */
@media (min-width: 1500px) {
    .pk.cas-container:has(> .pk-room:not([hidden])) {
        max-width: min(1880px, 100vw);
    }
}

/* The 8-seat cloth belongs to the seats, the bets, the board and the pot: the deck is only the point the cards fly from
   (as on phones since round 8.4) — a visible deck lay under the widest bets. */
.pk .pk-room .pk-felt--8 .pk-deck {
    visibility: hidden;
}

/* ——— round 10.1 (owner 18.11) ——— */

/* The table number in the bar: «Стол №867» on a wide screen, «№867» up to 640 px — it fits by the blinds. */
.pk-bar__no-s {
    display: none;
}

@media (max-width: 640px) {
    .pk-bar__no-l {
        display: none;
    }

    .pk-bar__no-s {
        display: inline;
    }

    /* The number stands by «NL50» on the first line, the blinds alone on the second. */
    .pk .pk-bar .pk-bar__title {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        column-gap: 6px;
    }

    .pk .pk-bar .pk-bar__sub {
        display: contents;
    }

    .pk .pk-bar .pk-bar__sub [data-pk-blinds] {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .pk .pk-bar .pk-bar__sub .pk-bar__no {
        grid-column: 2;
        grid-row: 1;
    }

    .pk .pk-bar .pk-bar__no::before {
        content: none;
    }
}

/* The chance strip never cuts the hand's short name: on a narrow plate it may grow a little past the plate's sides. */
.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring > .pk-seat__eq {
    width: max-content;
    min-width: var(--pk8-pw);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring.is-mine > .pk-seat__eq {
    min-width: var(--pk8-mpw);
}

.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring .pk-eqbar small {
    overflow: visible;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-seat.pk-seat--ring > .pk-seat__eq > * {
    gap: 4px;
    padding: 1px 5px;
}

/* The tall plate gives its width to the text: a 7-character nick with «…» fits whole at the bigger size. */
.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-seat.pk-seat--ring .pk-seat__plate {
    gap: 4px;
    padding: 4px 5px 4px 3px;
}

.pk .pk-room .pk-felt--8.pk-felt--narrow .pk-seat.pk-seat--ring .pk-seat__who b {
    letter-spacing: -0.01em;
}

/* ——— round 12.1 (owner 18.11): the phone room ———
   Up to 640 px the room is the «Quick play» top (a big mode switch, the stake chips, one «Find a table» button) and the tables as
   showcase cards (the table from above with the avatars, the colour of the stake, big blinds, «Play $…»). A wider screen keeps
   the switch and the grid of tables above as they were — this block is not shown there. */
.pkm {
    display: none;
}

@media (max-width: 640px) {
    .pk .pk-lobby .pk-modes,
    .pk .pk-lobby .pk-tables {
        display: none;
    }

    .pk .pkm {
        display: block;
        margin-bottom: 26px;
    }
}

.pkm .pk-cloth--green { --cloth-lv: #34d399; }
.pkm .pk-cloth--blue { --cloth-lv: #60a5fa; }
.pkm .pk-cloth--burgundy { --cloth-lv: #fb7185; }
.pkm .pk-cloth--purple { --cloth-lv: #c4b5fd; }

.pkm-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 20px;
    background: var(--cas-ink-900);
}

.pk .pkm-toggle button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 13px 6px;
    border: 0;
    border-radius: 15px;
    background: none;
    color: #b6c2d1;
    font: inherit;
    cursor: pointer;
}

.pkm-toggle button span {
    font-size: 17px;
    letter-spacing: 2px;
}

.pkm-toggle button b {
    font-size: 15px;
}

.pk .pkm-toggle button.is-on {
    background: linear-gradient(180deg, #19c690, #0fae7a);
    color: #04140d;
}

.pkm-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

.pk .pkm-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 8px 2px;
    border: 0;
    background: none;
    color: var(--cas-text, #0f172a);
    font: inherit;
    cursor: pointer;
}

.pkm-chip__disc {
    display: grid;
    place-items: center;
    width: min(68px, 18vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--cloth-b) 0 42%, transparent 43%),
        repeating-conic-gradient(var(--cloth-a) 0 22.5deg, #fff 22.5deg 33.75deg, var(--cloth-a) 33.75deg 45deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.25);
    transition: transform 0.15s;
}

.pkm-chip__disc b {
    color: #fff;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.pkm-chip__blinds {
    color: #475569;
    font-family: var(--cas-mono);
    font-size: 11px;
    white-space: nowrap;
}

.pkm-chip.is-on .pkm-chip__disc {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 0 3px #f5b83d, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.pkm-chip.is-on .pkm-chip__blinds {
    color: #0f172a;
    font-weight: 700;
}

.pk .pkm-find,
.pk .pkm-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: linear-gradient(180deg, #19c690, #0fae7a);
    color: #04140d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pk .pkm-find {
    min-height: 58px;
    margin-bottom: 18px;
    border-radius: 16px;
    font-size: 18px;
    box-shadow: 0 14px 30px -12px rgba(16, 185, 129, 0.8);
}

.pkm-find small {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.75;
}

.pkm-cards {
    display: grid;
    gap: 14px;
}

.pkm-card {
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--cloth-a) 45%, transparent), transparent 70%),
        var(--cas-ink-900);
    color: var(--cas-on-dark);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 3px 0 var(--cloth-lv);
    scroll-margin: 90px 0;
}

.pkm-card.is-on {
    box-shadow: inset 0 0 0 2px var(--cloth-lv), 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}

.pk .pkm-art {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 32px 4px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.pkm-eye {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(5, 10, 16, 0.6);
    font-size: 12px;
}

.pkm-top {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2.1;
    margin: 14px 0;
}

.pkm-top--2 {
    aspect-ratio: 2.6;
}

.pkm-felt {
    position: absolute;
    inset: 8% 10%;
    display: grid;
    place-items: center;
    border: 6px solid #5b3a24;
    border-radius: 999px;
    background: radial-gradient(ellipse at 50% 40%, var(--cloth-a) 0%, var(--cloth-b) 55%, var(--cloth-c) 100%);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.pkm-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(5, 10, 16, 0.72);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 700;
}

.pkm-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.pkm-seat {
    position: absolute;
    transform: translate(-50%, -50%);
}

.pkm-face {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #334155;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 0 0 2px #34d399;
}

.pkm-face svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.pkm-face.is-bot {
    box-shadow: 0 0 0 2px #a78bfa;
}

.pkm-face.is-me {
    box-shadow: 0 0 0 2px #38bdf8;
}

.pkm-face.is-dealer {
    box-shadow: 0 0 0 2px #f5b83d;
}

.pkm-face.is-empty {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.pkm-face i {
    position: absolute;
    right: -6px;
    bottom: -4px;
    font-size: 12px;
    font-style: normal;
}

.pkm-body {
    padding: 0 16px 16px;
}

.pkm-blinds {
    margin: 0;
    font-family: var(--cas-mono);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pkm-line {
    margin: 2px 0 0;
    color: #b6c2d1;
    font-size: 14px;
}

.pkm-line b {
    color: var(--cloth-lv);
}

.pkm-bots {
    color: #c4b5fd;
    font-weight: 700;
}

.pk .pkm-play {
    min-height: 50px;
    margin-top: 14px;
    border-radius: 12px;
    font-size: 16px;
}

/* ——— round 15 (owner 19.11): a player closed to the house plays only people ———
   A seat he cannot take (a bot's, which he does not see): grey «TAKEN», no chair, no «Sit»; the dealer tab says why it is closed. */
.pk .pk-cfree--closed {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.pkm-face.is-closed {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.pk .pk-seat.is-closed .pk-chair {
    background: #1f2937;
    border-color: #4b5563;
    cursor: default;
}

.pk .pk-seat.is-closed .pk-chair__label {
    color: #e5e7eb;
}

.pk .pk-closed {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #f59e0b;
    border-radius: 16px;
    background: #1f2937;
    color: #fef3c7;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.pkm .pk-closed,
.pk .pkm .pk-closed {
    margin-top: 14px;
}

/* The dealer tab's reason spans the whole list (not one card's column). */
.pk [data-pk-list] > .pk-closed {
    grid-column: 1 / -1;
}

/* ——— Test money (owner 20.11): the room of a test account is the test tables — said on top of the room, on every table card, in
   the table's header, on the player's own seat and in the buy-in window (the violet and «TEST» of casino.css). ——— */
.pk-testbar {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(109, 40, 217, 0.35);
    border-radius: 16px;
    background: #f3edff;
    color: #3b0764;
}

.pk-testbar.is-on {
    display: flex;
}

.pk-testbar .cas-testtag {
    background: #6d28d9;
    color: #fff;
    font-size: 11.5px;
    padding: 4px 10px;
}

.pk-testbar__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-width: 0;
}

.pk-testbar__text b {
    font-size: 15px;
}

.pk-testbar__text small {
    color: #5b21b6;
    font-size: 13.5px;
    font-weight: 600;
}

.pk .pk-ttable.is-test {
    box-shadow: inset 0 0 0 2px rgba(167, 139, 250, 0.55), var(--cas-shadow-game);
}

.pk .pk-ttable__test {
    position: absolute;
    top: 10px;
    left: 12px;
}

.pk .pkm-line .cas-testtag {
    margin-left: 4px;
    vertical-align: 1px;
}

/* The table's header: «TEST · test money» after the table's number. */
.pk .pk-bar__sub .pk-bar__test {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: #ddd6fe;
    font-weight: 700;
}

.pk .pk-bar__sub .pk-bar__test[hidden] {
    display: none;
}

.pk-room.is-test .pk-bar {
    box-shadow: inset 0 -2px 0 rgba(167, 139, 250, 0.6);
}

/* The player's own seat at a test table: the badge on his plate. */
.pk .pk-testmark {
    position: absolute;
    left: 10px;
    top: -10px;
    z-index: 3;
    background: #6d28d9;
    color: #fff;
    font-style: normal;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* The buy-in window of a test table. */
.pk-modal__test {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 12px;
    background: rgba(109, 40, 217, 0.24);
    color: #ede9fe;
    font-size: 13px;
    font-weight: 700;
}

.pk-modal__test[hidden] {
    display: none;
}

.pk-modal.is-test .pk-modal__box {
    box-shadow: inset 0 3px 0 #8b5cf6;
}

@media (max-width: 640px) {
    .pk-testbar {
        margin-top: 12px;
        padding: 10px 12px;
    }

    .pk-testbar__text b {
        font-size: 14px;
    }

    .pk-testbar__text small {
        font-size: 12.5px;
    }

    /* The phone bar: the badge alone, on the first line after the table's number («NL10 №23 TEST»). */
    .pk .pk-bar__sub .pk-bar__test-l {
        display: none;
    }

    .pk .pk-room.is-test .pk-bar .pk-bar__title {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .pk .pk-bar .pk-bar__sub .pk-bar__test {
        grid-column: 3;
        grid-row: 1;
        margin-left: 2px;
        align-self: center;
    }
}

/* ——— skin 6, the clear deck (owner 20.11): «hearts and diamonds blend, spades and clubs too». A big rank and suit in the
   corner and a big pip; the suits are drawn shapes (#pks-*), not font glyphs. Two colours like a real deck — ♥ ♦ red, ♠ ♣ black
   (owner 20.11, after a four-colour try: a flush must be seen by its colour); the shapes keep the pairs apart. Every card keeps its
   own size from the rules above; inside it everything is measured in the card's own units (cq*), so a hole card, the board, a
   seat at showdown, the history and the hand rankings all read the same, down to a 320 px phone. ——— */

.pk-card.pk-c4 {
    --c4: #111827;
    display: inline-block;
    container-type: size;
    overflow: hidden;
    color: var(--c4);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}

.pk-card.pk-c4.pk-card--h,
.pk-card.pk-c4.pk-card--d {
    --c4: #d0112b;
}

.pk-c4 .pk-c4__r {
    position: absolute;
    left: 9cqw;
    top: 3cqh;
    font-size: 56cqw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.09em;
    font-variant-numeric: tabular-nums;
}

.pk-c4 .pk-c4__s {
    position: absolute;
    left: 10cqw;
    top: calc(5cqh + 50cqw);
    width: 27cqw;
    height: 27cqw;
    fill: currentColor;
}

.pk-c4 .pk-c4__p {
    position: absolute;
    right: 6cqw;
    bottom: 5cqh;
    width: 60cqw;
    height: 60cqw;
    fill: currentColor;
}

.pk-skin-6 .pk-card.is-rabbit.pk-c4 {
    filter: grayscale(0.15);
}

/* ——— a chat line at its seat (owner 20.11), every skin: placed by poker.js beside the plate, clear of the cards ——— */

.pk-stage {
    position: relative;
}

.pk-says {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.pk-say {
    --tail: 50%;
    position: absolute;
    left: 0;
    top: 0;
    width: max-content;
    max-width: 230px;
    padding: 7px 11px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(15, 23, 42, 0.12);
    animation: pk-say-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.3s;
}

.pk-say.is-out {
    opacity: 0;
}

.pk-say__text {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/* The tail points at the plate the line came from. */
.pk-say::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
}

.pk-say[data-side='up']::after {
    left: calc(var(--tail) - 6px);
    bottom: -5px;
}

.pk-say[data-side='down']::after {
    left: calc(var(--tail) - 6px);
    top: -5px;
}

.pk-say[data-side='right']::after {
    top: calc(var(--tail) - 6px);
    left: -5px;
}

.pk-say[data-side='left']::after {
    top: calc(var(--tail) - 6px);
    right: -5px;
}

/* The last resort on a small table: smaller type, two lines — rather than cover a plate. */
.pk .pk-say.is-tight {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.25;
}

.pk .pk-say.is-tight .pk-say__text {
    -webkit-line-clamp: 2;
}

/* My own seat: the bubble stands north-west of my avatar, its tail a slanted point down-right into it. */
.pk-say[data-side='nw']::after {
    left: calc(var(--tail) - 15px);
    bottom: calc(-1 * var(--tail-h, 11px) + 1px);
    width: 15px;
    height: var(--tail-h, 11px);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transform: none;
}

@keyframes pk-say-in {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
}

@media (max-width: 640px) {
    .pk-say {
        padding: 5px 9px;
        border-radius: 12px;
        font-size: 12.5px;
    }

    .pk-say__text {
        -webkit-line-clamp: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-say {
        animation: none;
    }
}

/* The 150-character limit: the count of what is left, from 120 characters on. */
.pk-chat-form {
    position: relative;
}

.pk .pk-chat-form input {
    padding-right: 46px;
}

.pk-chat-count {
    position: absolute;
    right: 68px;
    top: 50%;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--cas-ink-700);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transform: translateY(-50%);
    pointer-events: none;
}

.pk-chat-count.is-end {
    background: #7f1d1d;
    color: #fff;
}

/* The name of an open hand at the showdown, said once by its seat (owner 20.11): the winner's in gold with a star. */
.pk-winhand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.82);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pk-winhand.is-win {
    background: linear-gradient(180deg, #fde68a, #f59e0b);
    color: #231500;
    font-weight: 800;
    box-shadow: 0 6px 14px -6px rgba(245, 158, 11, 0.8);
}

.pk-winhand i {
    font-style: normal;
}

@media (max-width: 640px) {
    .pk-winhand {
        padding: 2px 8px;
        font-size: 11.5px;
    }
}

/* At 8 seats the name sits centred under the plate, a pill of its own width (not the chance strip's). */
.pk .pk-room .pk-felt--8 .pk-seat.pk-seat--ring > .pk-seat__eq > .pk-winhand {
    flex: 0 0 auto;
    margin: 4px auto 0;
    padding: 2px 9px;
    border-radius: 999px;
}
