/* finesse · register=product · shell=table-workbench · palette=inherited-ChenAO
 * SOUL=6 SPECTACLE=1 DENSITY=6 · feedback-only motion, paper score sheet */
@font-face {
  font-family: "ChenAO Noto Serif SC";
  src: url("../fonts/noto-serif-sc-poker-title.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
  unicode-range: U+5206, U+540C, U+5668, U+5DDE, U+5FB7, U+684C, U+8BA1;
}
@font-face {
  font-family: "ChenAO Poker Bodoni Moda";
  src: url("../fonts/bodoni-moda-900-score.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}
@font-face {
  font-family: "ChenAO Poker Sans";
  src: url("../fonts/noto-sans-sc-poker-ui.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "ChenAO Poker Sans Common";
  src: url("../fonts/noto-sans-sc-poker-common.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.chenao-poker {
  --pk-bg: var(--paper, #f3f0e7); --pk-panel: var(--paper-bright, #fbfaf5);
  --pk-ink: var(--ink, #11110f); --pk-accent: var(--blue, #1714e8);
  --pk-accent-hover: var(--blue-deep, #100ec4); --pk-line: var(--line-dark, rgba(17,17,15,.2));
  --pk-muted: #5d5c57; --pk-danger: #a82e26; --pk-soft: #e9e7f5; --pk-dim: #e6e3d9;
  --pk-shadow: 0 18px 70px rgba(24,20,65,.2); --pk-overlay: rgba(18,17,45,.52);
  --pk-sans: "ChenAO Poker Sans", "ChenAO Poker Sans Common", sans-serif;
  --pk-mono: var(--pk-sans);
  --pk-score-font: "ChenAO Poker Bodoni Moda", serif;
  --pk-score-ivory: #F5F0DF; --pk-score-gold: #EFD698;
  color: var(--pk-ink); background: var(--pk-bg); font: 15px/1.6 var(--pk-sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  border: 1px solid var(--pk-line); margin: 32px auto 64px; max-width: 1100px;
  text-align: left; isolation: isolate; position: relative; overflow-wrap: anywhere;
}
.chenao-poker *, .chenao-poker *::before, .chenao-poker *::after { box-sizing: border-box; }
.chenao-poker :is(h2,h3,h4,p,ul,ol,fieldset) { margin: 0; padding: 0; }
.chenao-poker :is(h2,h3,h4) { font-family: var(--pk-sans); font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.chenao-poker h2 { font-size: 28px; } .chenao-poker h3 { font-size: 19px; } .chenao-poker h4 { font-size: 16px; }
.chenao-poker a { color: var(--pk-accent); text-decoration: underline; }
.chenao-poker button, .chenao-poker input, .chenao-poker select { font: inherit; }
.chenao-poker button { min-height: 44px; padding: 10px 16px; color: var(--pk-ink); background: var(--pk-panel); border: 1px solid var(--pk-line); border-radius: 3px; cursor: pointer; font-weight: 600; white-space: nowrap; line-height: 1.4; transition: background-color .15s; }
.chenao-poker button:active:not(:disabled) { transform: translateY(1px); }
.chenao-poker button:disabled { opacity: .48; cursor: not-allowed; }
.chenao-poker :is(button,input,select,summary,a):focus-visible { outline: 3px solid var(--pk-accent); outline-offset: 3px; }
.chenao-poker .pk-primary { background: var(--pk-accent); color: var(--pk-panel); border-color: var(--pk-accent); }
.chenao-poker .pk-danger { color: var(--pk-danger); }
.chenao-poker .pk-text-button { border-color: transparent; background: transparent; padding-inline: 10px; color: var(--pk-accent); }
.chenao-poker input:not([type=checkbox]):not([type=range]), .chenao-poker select { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; color: var(--pk-ink); background: var(--pk-panel); border: 1px solid var(--pk-line); border-radius: 3px; font-size: 16px; }
.chenao-poker input[type=checkbox] { accent-color: var(--pk-accent); width: 20px; height: 20px; flex: 0 0 auto; }
.chenao-poker input[type=range] { width: 100%; accent-color: var(--pk-accent); min-height: 44px; }
.chenao-poker input[readonly] { background: var(--pk-dim); }
.chenao-poker label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.chenao-poker .pk-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.chenao-poker .pk-check span { white-space: normal; }
.chenao-poker fieldset { border: 0; min-width: 0; }
.pk-masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--pk-line); }
.pk-wordmark { display: flex; align-items: baseline; gap: 14px; font: 700 24px var(--display, serif); color: var(--pk-accent); }
.pk-wordmark span, .pk-edition { font: 10px/1.5 var(--pk-mono); letter-spacing: .12em; }
.pk-edition { color: var(--pk-muted); }
.pk-notice:empty { display: none; }
.pk-notice { padding: 12px 24px; background: var(--pk-soft); color: var(--pk-accent); border-bottom: 1px solid var(--pk-line); }
.pk-notice[data-kind=error], .pk-error { color: var(--pk-danger); }
.chenao-poker.pk-phone > .pk-notice[data-kind="seat"] { position: absolute; top: 0; left: 50%; right: auto; transform: translate3d(-50%,var(--seat-notice-y,0px),0) translateY(-50%); visibility: hidden; width: max-content; max-width: calc(100% - 24px); z-index: 90; padding: 4px 12px; border: 1px solid var(--pk-line); background: var(--pk-panel); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.chenao-poker.pk-phone > .pk-notice[data-kind="seat"][data-positioned] { visibility: visible; }
.pk-loading, .pk-empty { padding: 32px; text-align: center; color: var(--pk-muted); }
.pk-onboarding { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.pk-intro { padding: 40px 32px; border-right: 1px solid var(--pk-line); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.chenao-poker .pk-intro h2 { font: 400 46px/1.2 var(--display, serif); color: var(--pk-accent); margin-bottom: 20px; }
.chenao-poker .pk-intro p { color: var(--pk-muted); max-width: 32em; }
.pk-steps { list-style: none; display: grid; gap: 16px; }
.pk-steps li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: baseline; }
.pk-steps b { font: 12px var(--pk-mono); color: var(--pk-accent); }
.pk-entry { padding: 32px; }
.pk-form { display: grid; gap: 18px; }
.pk-form h3 { margin-bottom: 2px; }
.pk-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pk-form small, .pk-hint { color: var(--pk-muted); font-size: 13px; }
.pk-tabs { display: flex; gap: 4px; padding: 8px 24px; border-bottom: 1px solid var(--pk-line); overflow-x: auto; }
.chenao-poker .pk-tabs button { background: transparent; border-color: transparent; color: var(--pk-muted); }
.chenao-poker .pk-tabs button[aria-pressed=true] { color: var(--pk-accent); background: var(--pk-soft); }
.pk-entry .pk-tabs { padding: 0 0 16px; margin-bottom: 24px; }
.pk-room-head { padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pk-room-head h2 { margin-bottom: 4px; }
.pk-room-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--pk-muted); font-size: 12px; }
.pk-live { display: inline-flex; align-items: center; gap: 6px; }
.pk-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pk-room-actions, .pk-row-actions, .pk-button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pk-body { padding: 24px 28px; }
.pk-table-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 24px; }
.pk-scoreboard { background: var(--pk-accent); color: var(--pk-panel); padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.pk-scoreboard .pk-hint { color: inherit; opacity: .85; }
.pk-pot { font: 400 54px/1.15 var(--pk-mono); letter-spacing: -.065em; margin-top: 4px; }
.pk-stage { display: flex; align-items: flex-end; justify-content: flex-end; flex-direction: column; gap: 6px; text-align: right; }
.pk-stage strong { font-size: 18px; }
.pk-stage small { font: 11px var(--pk-mono); opacity: .85; }
.pk-streets { display: flex; gap: 6px; margin-top: 20px; grid-column: 1 / -1; }
.pk-streets span { flex: 1; border-top: 2px solid currentColor; opacity: .38; padding-top: 7px; font-size: 11px; }
.pk-streets span.is-current { opacity: 1; }
.pk-players { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.pk-player { padding: 14px; background: var(--pk-panel); border: 1px solid var(--pk-line); min-width: 0; position: relative; }
.pk-player.is-turn { border-color: var(--pk-accent); box-shadow: inset 0 0 0 1px var(--pk-accent); }
.pk-player.is-folded { opacity: .55; }
.pk-player-top { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 10px; min-height: 22px; }
.pk-seat { color: var(--pk-muted); font: 11px/1.6 var(--pk-mono); }
.pk-positions { display: flex; gap: 4px; }
.pk-badge { display: inline-block; padding: 2px 5px; font: 10px/1.5 var(--pk-mono); background: var(--pk-soft); color: var(--pk-accent); border-radius: 2px; }
.pk-player-name { font-weight: 650; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.pk-stack { font: 23px/1.7 var(--pk-mono); letter-spacing: -.04em; }
.pk-player-info { font-size: 11px; color: var(--pk-muted); display: flex; justify-content: space-between; gap: 4px; }
.pk-next-step { display: grid; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--pk-line); }
.pk-next-step h3 { font-size: 18px; }
.pk-side { display: flex; flex-direction: column; gap: 22px; }
.pk-side h3 { margin-bottom: 12px; }
.pk-activity { list-style: none; display: grid; gap: 12px; }
.pk-activity li { font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--pk-line); }
.pk-activity small { display: block; color: var(--pk-muted); font: 10px/1.8 var(--pk-mono); }
.pk-actionbar { position: sticky; bottom: 0; z-index: 20; padding: 18px 28px max(18px,env(safe-area-inset-bottom)); background: var(--pk-panel); border-top: 1px solid var(--pk-line); box-shadow: 0 -8px 24px rgba(24,20,65,.04); }
.pk-action-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.pk-action-head strong { color: var(--pk-accent); font-size: 16px; }
.pk-action-stats { color: var(--pk-muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 5px 14px; }
.pk-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.pk-actions button { min-height: 50px; }
.pk-button-amount { display: block; font: 12px/1.4 var(--pk-mono); margin-top: 3px; }
.pk-waiting { color: var(--pk-muted); font-size: 14px; }
.pk-members { display: grid; gap: 0; }
.pk-member { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--pk-line); }
.pk-member:last-child { border-bottom: 0; }
.pk-member h4 { margin-bottom: 4px; }
.pk-member-data { font-size: 12px; color: var(--pk-muted); }
.pk-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.pk-table-wrap { overflow-x: auto; }
.chenao-poker table { width: 100%; border-collapse: collapse; font-size: 13px; }
.chenao-poker :is(th,td) { padding: 12px 8px; border-bottom: 1px solid var(--pk-line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chenao-poker :is(th,td):first-child { text-align: left; white-space: normal; min-width: 84px; }
.chenao-poker th { font-size: 11px; color: var(--pk-muted); font-weight: 500; }
.pk-net-positive { color: var(--pk-accent); } .pk-net-negative { color: var(--pk-danger); }
.chenao-poker details { border-top: 1px solid var(--pk-line); padding: 16px 0; }
.chenao-poker summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.pk-settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.pk-management { display: grid; align-content: start; gap: 16px; }
.pk-dialog { color: var(--pk-ink); background: var(--pk-bg); border: 1px solid var(--pk-line); border-radius: 6px; padding: 0; width: min(480px,calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 40px); box-shadow: var(--pk-shadow); overscroll-behavior: contain; }
.pk-dialog::backdrop { background: var(--pk-overlay); }
.pk-dialog-head { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--pk-line); }
.pk-dialog-head button { padding-inline: 12px; }
.pk-dialog-body { padding: 22px; display: grid; gap: 18px; }
.pk-dialog .pk-hint { white-space: normal; }
.pk-dialog .pk-error { min-height: 1.6em; font-size: 13px; }
.pk-quick { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.pk-quick button { font-size: 12px; padding: 10px 3px; }
.pk-quick small { display: block; font: 11px var(--pk-mono); margin-top: 5px; }
.pk-amount-summary { background: var(--pk-soft); padding: 14px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.pk-amount-summary strong { display: block; font: 24px/1.5 var(--pk-mono); color: var(--pk-accent); }
.pk-qr { display: flex; justify-content: center; padding: 8px; background: var(--pk-panel); }
.pk-qr svg { display: block; width: min(100%,240px); height: auto; }
.pk-code { font: 32px/1.4 var(--pk-mono); text-align: center; letter-spacing: .18em; color: var(--pk-accent); }
.pk-settle-tier { padding: 12px; background: var(--pk-soft); border-radius: 3px; font-size: 13px; }
.pk-settle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.pk-footnote { padding: 16px 28px; border-top: 1px solid var(--pk-line); color: var(--pk-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 10px; }
.pk-tool-page { padding: 24px max(16px,4vw) 60px; }
.pk-tool-page .chenao-poker { width: 100%; }
@media (hover:hover) {
  .chenao-poker button:not(:disabled):hover { background: var(--pk-soft); }
  .chenao-poker .pk-primary:not(:disabled):hover { background: var(--pk-accent-hover); }
}
@media (max-width:900px) {
  .pk-table-layout { grid-template-columns: minmax(0,1fr); }
  .pk-side { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:620px) {
  .chenao-poker { margin: 16px auto 36px; font-size: 14px; }
  .pk-masthead, .pk-room-head { padding: 16px; }
  .pk-edition { display: none; }
  .pk-onboarding, .pk-settings { grid-template-columns: minmax(0,1fr); }
  .pk-intro { padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--pk-line); gap: 24px; }
  .chenao-poker .pk-intro h2 { font-size: 38px; }
  .pk-steps { gap: 10px; }
  .pk-entry { padding: 24px 20px; }
  .pk-room-head { align-items: flex-start; }
  .chenao-poker .pk-room-head h2 { font-size: 22px; }
  .pk-room-actions { justify-content: flex-end; }
  .pk-room-actions button { padding-inline: 10px; font-size: 12px; }
  .pk-tabs { padding: 8px 12px; gap: 0; }
  .pk-tabs button { padding-inline: 13px; font-size: 13px; }
  .pk-body { padding: 16px; }
  .pk-scoreboard { padding: 20px; }
  .pk-pot { font-size: 44px; }
  .pk-players { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .pk-player { padding: 12px; }
  .pk-side { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .pk-side .pk-activity { display: none; }
  .pk-side h3 { margin-bottom: 6px; }
  .pk-actionbar { padding: 14px 16px max(14px,env(safe-area-inset-bottom)); }
  .pk-action-head { display: grid; gap: 6px; }
  .pk-actions { gap: 6px; }
  .pk-actions button { padding: 10px 5px; font-size: 13px; }
  .pk-member { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .pk-footnote { padding: 14px 16px; }
  .pk-dialog-head, .pk-dialog-body { padding: 16px; }
  .pk-tool-page { padding: 12px 10px 32px; }
}
@media (prefers-reduced-motion:reduce) {
  .chenao-poker *, .chenao-poker *::before, .chenao-poker *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width:380px) {
  .pk-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pk-actions > :last-child { grid-column: 1 / -1; }
}

/* finesse · shared-pool workbench · inherited ChenAO blue / paper
 * Compact entry, one shared balance, two thumb controls; legacy poker untouched. */
.chenao-poker.is-pool {
  --pk-pool-negative: #ffd6de;
  --pk-pool-line: rgba(251,250,245,.3);
  --pk-pool-muted: rgba(251,250,245,.82);
  --pk-chip-light: #e9e8ff;
  --pk-chip-mid: #c8c5ff;
  --pk-chip-dark: #0e0c78;
  max-width: 900px;
}
.chenao-poker.is-pool .pk-masthead { display: none; }
.chenao-poker.is-pool .pk-wordmark { font-size: 25px; line-height: 1.3; }
.chenao-poker .pk-simple-entry { grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 390px; }
.chenao-poker .pk-simple-entry .pk-intro { justify-content: center; align-items: flex-start; gap: 24px; padding: 36px; }
.chenao-poker .pk-simple-entry .pk-intro h2 { margin: 0; font-size: clamp(34px,4vw,48px); line-height: 1.35; }
.chenao-poker .pk-simple-entry .pk-chip-art { width: 86px; height: 86px; color: var(--pk-accent); }
.chenao-poker .pk-simple-entry .pk-entry { align-self: center; padding: 32px; min-width: 0; }
.chenao-poker .pk-simple-entry .pk-entry .pk-tabs { margin-bottom: 20px; }
.chenao-poker .pk-simple-entry .pk-form { gap: 16px; }
.chenao-poker .pk-simple-entry .pk-form > button { min-height: 50px; }
.chenao-poker .pk-pool-room { background: var(--pk-accent); color: var(--pk-panel); }
.chenao-poker .pk-pool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 16px; }
.chenao-poker .pk-pool-head > div { min-width: 0; }
.chenao-poker .pk-pool-head h2 { font: 400 26px/1.4 var(--display,serif); overflow-wrap: anywhere; }
.chenao-poker .pk-room-code { display: block; padding-top: 4px; color: var(--pk-pool-muted); font: 11px/1.6 var(--pk-mono); letter-spacing: .09em; }
.chenao-poker .pk-pool-nav { display: flex; flex: 0 0 auto; gap: 4px; }
.chenao-poker .pk-pool-nav button { color: var(--pk-panel); border-color: transparent; background: transparent; padding: 9px 12px; font-size: 13px; font-weight: 500; }
.chenao-poker .pk-pool-main { min-height: 420px; display: flex; flex-direction: column; gap: 34px; padding: 12px 36px 36px; }
.chenao-poker .pk-pool-balance { display: grid; justify-items: center; align-content: center; gap: 8px; min-width: 0; padding: 12px 0 8px; text-align: center; }
.chenao-poker .pk-pool-balance .pk-chip-art { display: block; width: 104px; height: 104px; margin-bottom: 10px; color: var(--pk-panel); }
.chenao-poker .pk-pool-balance > span { font-size: 14px; color: var(--pk-pool-muted); }
.chenao-poker .pk-pool-total { display: block; max-width: 100%; font: 900 40px/1.2 var(--pk-score-font); letter-spacing: -.012em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.chenao-poker .pk-pool-people { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 18px; width: 100%; max-width: 620px; margin: auto auto 0; }
.chenao-poker .pk-pool-person { min-width: 0; display: grid; align-content: start; justify-items: center; gap: 6px; text-align: center; }
.chenao-poker .pk-avatar { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 3px; color: var(--pk-accent); background: var(--pk-panel); border-radius: 50%; font: 500 24px/1 var(--display,serif); }
.chenao-poker .pk-pool-person.is-me .pk-avatar { outline: 1px solid var(--pk-panel); outline-offset: 4px; }
.chenao-poker .pk-person-name { max-width: 100%; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chenao-poker .pk-person-net { max-width: 100%; font: 900 36px/1.3 var(--pk-score-font); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.012em; overflow-wrap: anywhere; }
.chenao-poker .pk-person-net.is-negative,
.chenao-poker .pk-pool-person.is-negative .pk-person-net,
.chenao-poker .pk-pool-summary .is-negative { color: var(--pk-pool-negative); }
.chenao-poker .pk-pool-dock { position: sticky; bottom: 0; z-index: 20; background: var(--pk-accent); border-top: 1px solid var(--pk-pool-line); padding: 18px 28px max(12px,env(safe-area-inset-bottom)); }
.chenao-poker .pk-pool-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.chenao-poker .pk-pool-controls button { display: flex; justify-content: center; align-items: center; gap: 12px; min-width: 0; min-height: 74px; border-color: var(--pk-panel); font-size: 19px; font-weight: 500; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.chenao-poker .pk-pool-controls button:disabled { opacity: 1; }
.chenao-poker .pk-pool-controls svg { width: 25px; height: 25px; flex: 0 0 auto; pointer-events: none; }
.chenao-poker .pk-pool-controls span { pointer-events: none; }
.chenao-poker .pk-pool-controls .pk-collect { background: var(--pk-panel); color: var(--pk-accent); }
.chenao-poker .pk-pool-controls .pk-collect.is-armed { background: var(--pk-chip-light); box-shadow: inset 0 0 0 2px var(--pk-accent); }
.chenao-poker .pk-pool-controls .pk-pay { background: transparent; color: var(--pk-panel); }
.chenao-poker .pk-pool-controls button:active:not(:disabled),
.chenao-poker .pk-pool-controls button.is-pressing:not(:disabled) { transform: translateY(1px); }
.chenao-poker .pk-pool-summary { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; font-size: 13px; }
.chenao-poker .pk-pool-summary > span { color: var(--pk-pool-muted); flex: 0 0 auto; }
.chenao-poker .pk-pool-summary button { min-width: 0; max-width: 50%; min-height: 44px; padding: 8px; margin-left: auto; border-color: transparent; color: var(--pk-panel); background: transparent; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.chenao-poker .pk-pool-summary strong { font: 900 22px/1.3 var(--pk-score-font); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.chenao-poker .pk-pool-room button:focus-visible { outline-color: var(--pk-panel); }
.chenao-poker .pk-pool-room .pk-empty { color: var(--pk-pool-muted); }
.chenao-poker .pk-pool-pending { min-height: 74px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chenao-poker .pk-pool-pending > div { display: flex; gap: 8px; }
.chenao-poker .pk-pool-history { list-style: none; display: grid; gap: 0; }
.chenao-poker .pk-pool-history li { display: grid; grid-template-columns: minmax(48px,.7fr) minmax(0,1fr) max-content; align-items: baseline; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--pk-line); font-size: 13px; }
.chenao-poker .pk-pool-history .pk-history-pay { color: #ce1528; }
.chenao-poker .pk-pool-history .pk-history-collect { color: #00852e; }
.chenao-poker .pk-pool-history li > * { min-width: 0; color: inherit; }
.chenao-poker .pk-pool-history :is(.pk-history-pay,.pk-history-collect) .pk-history-action { font: 700 15px/1.6 var(--pk-mono); font-variant-numeric: tabular-nums; }
.chenao-poker .pk-history-name, .chenao-poker .pk-history-action { text-align: left; overflow-wrap: anywhere; }
.chenao-poker .pk-history-time { justify-self: end; text-align: right; white-space: nowrap; font: 700 14px/1.6 var(--pk-mono); font-variant-numeric: tabular-nums; }
.chenao-poker .pk-history-dialog { overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.chenao-poker .pk-history-dialog::-webkit-scrollbar { display: none; }
.chenao-poker .pk-history-refresh { width: 100%; min-height: 48px; color: #fff; text-align: center; }
.chenao-poker .pk-pool-history:focus-visible { outline: 3px solid var(--pk-accent); outline-offset: 3px; }
.chenao-poker .pk-pool-sheet { width: min(460px,calc(100vw - 24px)); }
.chenao-poker .pk-pool-sheet .pk-dialog-head h3 { font: 400 23px/1.35 var(--display,serif); }
.chenao-poker .pk-quick-chips { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 14px; padding: 4px; }
.chenao-poker .pk-quick-chips .pk-chip-value {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.chenao-poker .pk-quick-chips .pk-chip-value { display: grid; place-items: center; justify-self: center; width: min(100%,88px); aspect-ratio: 1; min-width: 0; min-height: 64px; padding: 4px; border: 0; border-radius: 50%; background: transparent; box-shadow: none; font-variant-numeric: tabular-nums; touch-action: manipulation; }
.chenao-poker .pk-quick-chips .pk-chip-value[aria-pressed=true] { outline: 2px solid var(--pk-accent); outline-offset: 4px; }
/* finesse component: a selected chip lifts; confirmed payments have bounded feedback. */
.chenao-poker .pk-quick-chips .pk-chip-value > .pk-denom-chip { transition: transform 180ms ease; }
.chenao-poker .pk-quick-chips .pk-chip-value[aria-pressed=true] > .pk-denom-chip { transform: translateY(-4px) scale(1.035); filter: drop-shadow(0 4px 4px rgba(23,20,232,.3)); animation: pk-quick-chip-select 280ms ease-out; }
@keyframes pk-quick-chip-select { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.07); } 100% { transform: translateY(-4px) scale(1.035); } }
.chenao-poker .pk-pool-addition, .chenao-poker .pk-pay-feedback { position: absolute; z-index: 24; width: max-content; max-width: calc(100% - 24px); pointer-events: none; user-select: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chenao-poker .pk-pool-addition { top: 0; left: 0; color: var(--pk-panel); font: 600 16px/20px var(--pk-mono); }
.chenao-poker .pk-pool-addition-value { display: block; animation: pk-pool-addition-fade 1600ms linear both; }
.chenao-poker .pk-pay-feedback { color: #ffd34e; font: 700 56px/1.2 var(--pk-mono); transform: translateX(-50%); }
.chenao-poker .pk-pay-feedback > span { display: block; transform-origin: center; animation: pk-pay-rebound 320ms ease-out, pk-payment-fade 1240ms linear both; }
@keyframes pk-pay-rebound { 0% { transform: scale(.78); } 45% { transform: scale(1.18); } 75% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes pk-payment-fade { 0%,80.645% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pk-pool-addition-fade { 0%,62.5% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chenao-poker .pk-quick-chips .pk-chip-value > .pk-denom-chip,
  .chenao-poker .pk-quick-chips .pk-chip-value[aria-pressed=true] > .pk-denom-chip { animation: none; transition: none; transform: none; }
  .chenao-poker .pk-pool-addition { transition: none; }
  .chenao-poker .pk-pool-addition-value, .chenao-poker .pk-pay-feedback > span { animation: none; }
}
.chenao-poker .pk-pay-form { gap: 12px; }
.chenao-poker .pk-pay-form > label { text-align: center; justify-items: center; gap: 6px; }
.chenao-poker .pk-pay-form input[name=poolAmount] { width: min(100%,240px); height: 48px; min-height: 48px; padding: 8px 12px; background: var(--pk-panel); color: var(--pk-accent); text-align: center; font: 400 24px/1.2 var(--pk-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chenao-poker .pk-pay-form > .pk-error { min-height: 0; text-align: center; }
.chenao-poker .pk-pay-form > .pk-error:empty { display: none; }
.chenao-poker .pk-pay-form > button { min-height: 54px; font-size: 17px; }
.chenao-poker .pk-pay-submit { display: flex; align-items: center; gap: 12px; }
.chenao-poker .pk-pay-submit .pk-primary { flex: 1; min-height: 48px; font-size: 17px; }
@media (hover:hover) {
  .chenao-poker .pk-pool-nav button:not(:disabled):hover,
  .chenao-poker .pk-pool-summary button:not(:disabled):hover { background: var(--pk-accent-hover); }
  .chenao-poker .pk-pool-controls .pk-pay:hover { background: transparent; }
  .chenao-poker .pk-pool-controls .pk-collect:hover { background: var(--pk-panel); }
  .chenao-poker .pk-pool-controls .pk-collect.is-armed:hover { background: var(--pk-chip-light); }
  .chenao-poker .pk-quick-chips .pk-chip-value:not(:disabled):hover { background: var(--pk-panel); color: var(--pk-accent); outline: 2px solid var(--pk-accent); outline-offset: 3px; }
}
@media (max-width:620px) {
  .chenao-poker .pk-simple-entry { min-height: 0; grid-template-columns: minmax(0,1fr); }
  .chenao-poker .pk-simple-entry .pk-intro { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 20px; }
  .chenao-poker .pk-simple-entry .pk-intro h2 { font-size: 34px; }
  .chenao-poker .pk-simple-entry .pk-chip-art { width: 72px; height: 72px; flex: 0 0 auto; }
  .chenao-poker .pk-simple-entry .pk-entry { padding: 20px; }
  .chenao-poker .pk-pool-head { gap: 10px; padding: 18px 16px 10px; }
  .chenao-poker .pk-pool-head h2 { font-size: 21px; }
  .chenao-poker .pk-pool-nav { gap: 0; }
  .chenao-poker .pk-pool-nav button { padding-inline: 8px; min-width: 44px; font-size: 12px; }
  .chenao-poker .pk-pool-main { min-height: 364px; gap: 22px; padding: 10px 22px 20px; }
  .chenao-poker .pk-pool-balance { padding-top: 12px; gap: 6px; }
  .chenao-poker .pk-pool-balance .pk-chip-art { width: 84px; height: 84px; margin-bottom: 4px; }
  .chenao-poker .pk-pool-total { font-size: 48px; }
  .chenao-poker .pk-pool-people { gap: 26px 10px; }
  .chenao-poker .pk-avatar { width: 44px; height: 44px; font-size: 23px; }
  .chenao-poker .pk-person-name { font-size: 13px; }
  .chenao-poker .pk-person-net { font-size: 18px; }
  .chenao-poker .pk-pool-dock { padding: 16px 16px max(10px,env(safe-area-inset-bottom)); }
  .chenao-poker .pk-pool-controls { gap: 12px; }
  .chenao-poker .pk-pool-controls button { min-height: 70px; gap: 8px; padding: 10px 8px; font-size: 17px; }
  .chenao-poker .pk-pool-summary { gap: 6px; margin-top: 6px; }
  .chenao-poker .pk-pool-summary strong { font-size: 16px; }
  .chenao-poker .pk-pool-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 520px; max-height: calc(100dvh - 90px); margin: 0 auto; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .chenao-poker .pk-pool-sheet .pk-dialog-head { position: sticky; top: 0; z-index: 1; background: var(--pk-bg); padding: 14px 20px; }
  .chenao-poker .pk-pool-sheet .pk-dialog-body { padding: 20px; }
  .chenao-poker .pk-pool-sheet .pk-dialog-head h3 { font-size: 22px; }
}
@media (max-width:359px) {
  .chenao-poker .pk-simple-entry .pk-intro { padding: 18px 16px; }
  .chenao-poker .pk-simple-entry .pk-intro h2 { font-size: 29px; }
  .chenao-poker .pk-simple-entry .pk-chip-art { width: 60px; height: 60px; }
  .chenao-poker .pk-simple-entry .pk-entry { padding: 18px 16px; }
  .chenao-poker .pk-pool-head { padding-inline: 12px; }
  .chenao-poker .pk-pool-head h2 { font-size: 18px; }
  .chenao-poker .pk-pool-main { padding-inline: 16px; }
  .chenao-poker .pk-pool-controls button { font-size: 15px; }
  .chenao-poker .pk-pool-controls svg { width: 22px; height: 22px; }
  .chenao-poker .pk-pool-dock { padding-inline: 12px; }
}

/* One phone-sized surface at every viewport; scoped to the shared-pool UI. */
.chenao-poker.pk-phone {
  --pk-rank-gold: #f4d992;
  --pk-rank-silver: #e7e8f2;
  --pk-rank-bronze: #ecc1a3;
  width: 100%; max-width: 390px; margin: 16px auto 36px; font-size: 14px;
}
.prose .chenao-poker.pk-phone.alignwide { width: 100%; max-width: 390px; margin-inline: auto; transform: none; }
.chenao-poker.pk-phone .pk-masthead { padding: 16px; }
.chenao-poker.pk-phone .pk-edition { display: none; }
.chenao-poker.pk-phone .pk-simple-entry { min-height: 0; grid-template-columns: minmax(0,1fr); }
.chenao-poker.pk-phone .pk-simple-entry .pk-intro { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 20px; border-right: 0; border-bottom: 1px solid var(--pk-line); }
.chenao-poker.pk-phone .pk-simple-entry .pk-intro h2 { font-size: 34px; }
.chenao-poker.pk-phone .pk-simple-entry .pk-chip-art { width: 72px; height: 72px; flex: 0 0 auto; }
.chenao-poker.pk-phone .pk-simple-entry .pk-entry { padding: 20px; }
.chenao-poker.pk-phone .pk-simple-entry .pk-entry .pk-tabs { gap: 0; }
.chenao-poker.pk-phone .pk-simple-entry .pk-entry .pk-tabs button { padding-inline: 13px; font-size: 13px; }
.chenao-poker.pk-phone .pk-pool-head { position: relative; display: block; container-type: inline-size; height: 136px; min-height: 136px; padding: 0; }
.chenao-poker.pk-phone .pk-pool-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; margin-inline: 14px; border-bottom: 1px solid rgba(245,240,223,.22); }
.chenao-poker.pk-phone .pk-pool-toolbar button { min-height: 44px; color: var(--pk-panel); background: transparent; border: 0; border-radius: 2px; }
.chenao-poker.pk-phone .pk-pool-toolbar button:focus-visible { outline: 2px solid var(--pk-score-ivory); outline-offset: 1px; }
.chenao-poker.pk-phone .pk-pool-back { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0; }
.chenao-poker.pk-phone .pk-pool-back span { font: 700 18px/1.2 "ChenAO Noto Serif SC",serif; }
.chenao-poker.pk-phone .pk-pool-back svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chenao-poker.pk-phone .pk-pool-score { position: relative; height: 80px; }
/* One through four digits are always 108px, independent of available width.
   Only five or more digits scale down together from that four-digit size. */
.chenao-poker.pk-phone .pk-pool-watermark { position: absolute; top: 14px; left: 14px; width: max-content; color: var(--pk-score-ivory); opacity: 1; font: 900 calc(432px / max(4,var(--pool-digits,1)))/1 var(--pk-score-font); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.012em; white-space: nowrap; transform-origin: left center; pointer-events: none; }
.chenao-poker.pk-phone .pk-pool-nav { position: relative; z-index: 2; flex: 0 0 auto; width: auto; align-items: center; gap: 2px; margin: 0 -8px 0 0; }
.chenao-poker.pk-phone .pk-pool-nav button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; min-width: 44px; padding: 0; font-size: 13px; }
.chenao-poker.pk-phone .pk-pool-nav .pk-pool-invite { width: 64px; }
.chenao-poker.pk-phone .pk-pool-invite span { padding: 4px 10px; border: 0; line-height: 20px; }
.chenao-poker .pk-pool-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover:hover) { .chenao-poker.pk-phone .pk-pool-toolbar button:hover:not(:disabled) { background: rgba(245,240,223,.09); } }
.chenao-poker.pk-phone .pk-pool-main { min-height: 364px; gap: 18px; padding: 10px 22px 20px; }
.chenao-poker.pk-phone .pk-pool-balance { gap: 6px; padding: 8px 0 4px; }
.chenao-poker.pk-phone .pk-pool-balance .pk-chip-art { width: 84px; height: 84px; margin-bottom: 4px; }
.chenao-poker.pk-phone .pk-pool-total { font-size: 48px; }
.chenao-poker.pk-phone .pk-pool-people { max-width: 100%; gap: 18px 10px; }
.chenao-poker.pk-phone .pk-avatar-wrap { display: grid; place-items: end center; position: relative; width: 56px; height: 56px; padding-top: 0; border-radius: 50%; }
.chenao-poker.pk-phone .pk-avatar-wrap:has(.pk-rank-badge) { height: 90px; padding-top: 34px; }
.chenao-poker.pk-phone .pk-avatar { width: 56px; height: 56px; margin-bottom: 0; overflow: hidden; font-size: 27px; }
.chenao-poker.pk-phone .pk-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.chenao-poker.pk-phone .pk-avatar [hidden] { display: none; }
.chenao-poker.pk-phone .pk-rank-badge { position: absolute; inset: 0 auto auto 50%; transform: translateX(-50%); display: inline-flex; align-items: flex-end; justify-content: center; width: 26px; height: 28px; white-space: nowrap; }
.chenao-poker.pk-phone .pk-rank-badge svg { display: block; width: 100%; height: auto; flex: 0 0 auto; overflow: visible; }
.chenao-poker.pk-phone .pk-crown-metal { stroke-width: 1.25; stroke-linejoin: round; }
.chenao-poker.pk-phone .pk-crown-glint { fill: none; stroke: #fffaf0; stroke-width: .75; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.chenao-poker.pk-phone .pk-rank-badge b { position: absolute; left: calc(100% + 3px); bottom: 3px; font: 650 12px/1 var(--pk-mono); font-variant-numeric: tabular-nums; }
.chenao-poker.pk-phone .pk-rank-badge[data-rank="1"] { width: 38px; color: var(--pk-rank-gold); }
.chenao-poker.pk-phone .pk-rank-badge[data-rank="2"] { width: 32px; color: var(--pk-rank-silver); }
.chenao-poker.pk-phone .pk-rank-badge[data-rank="3"] { color: var(--pk-rank-bronze); }
.chenao-poker.pk-phone .pk-person-name { font-size: 13px; }
.chenao-poker.pk-phone .pk-person-net { font-size: 18px; }
.chenao-poker.pk-phone .pk-pool-dock { position: static; padding: 12px 12px max(10px,env(safe-area-inset-bottom)); }
.chenao-poker.pk-phone .pk-pool-controls { gap: 10px; }
.chenao-poker.pk-phone .pk-pool-controls button { min-height: 84px; gap: 8px; padding: 10px 6px; font-size: 22px; font-weight: 650; }
.chenao-poker.pk-phone .pk-pool-controls svg { width: 30px; height: 30px; }
.chenao-poker[data-submitting="pay"] [data-action="pool-pay"],
.chenao-poker[data-submitting="collect"] [data-action="pool-collect"] { cursor: progress; }
/* finesse · component: confirmed pool transfer · inherited blue/paper, transform/opacity only */
.chenao-poker .pk-chip-flight-layer { position: absolute; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.chenao-poker .pk-chip-flight-layer * { pointer-events: none; }
.chenao-poker .pk-flight-depth,
.chenao-poker .pk-flight-shadow-plane { position: absolute; inset: 0; pointer-events: none; }
.chenao-poker .pk-flight-masks { position: absolute; width: 0; height: 0; pointer-events: none; }
.chenao-poker .pk-player-delta { position: absolute; z-index: 35; display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 4px 8px; border: 1px solid rgba(255,250,240,.8); border-radius: 999px; color: var(--pk-accent); background: var(--pk-panel); box-shadow: 0 2px 8px rgba(8,5,72,.18); font: 700 17px/1.2 var(--pk-mono); letter-spacing: -.03em; white-space: nowrap; pointer-events: none; animation: pk-player-delta-out 520ms ease-out both; }
.chenao-poker .pk-player-delta.is-static { animation: none; }
@keyframes pk-player-delta-out { 0%,55% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion:reduce) { .chenao-poker .pk-player-delta { animation: none; } }
.chenao-poker .pk-collect-confetti { position: absolute; z-index: 40; pointer-events: none; contain: strict; }
.chenao-poker.pk-phone .pk-collect.is-collected { opacity: 1; color: var(--pk-accent); border-color: #ffd34e; background: #ffd34e; }
.chenao-poker .pk-collect.is-celebrating { animation: pk-collect-bounce .42s cubic-bezier(.2,.75,.25,1); transform-origin: center; }
@keyframes pk-collect-bounce {
  0% { transform: scale(1); }
  18% { transform: translateY(2px) scale(.93); }
  64% { transform: translateY(-2px) scale(1.045); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion:reduce) {
  .chenao-poker .pk-collect-confetti { display: none; }
  .chenao-poker .pk-collect.is-celebrating { animation: none; }
}
.chenao-poker .pk-transfer-chip { position: absolute; top: 0; left: 0; display: block; width: 24px; height: 24px; color: var(--pk-accent); background: var(--pk-panel); border: 1px solid var(--pk-panel); border-radius: 50%; will-change: transform, opacity; }
.chenao-poker .pk-transfer-chip > svg { display: block; width: 100%; height: 100%; }
.chenao-poker .pk-pool-room .pk-transfer-arrival { outline: 2px solid var(--pk-panel); outline-offset: 5px; border-radius: 50%; }
@media (prefers-reduced-motion:reduce) {
  .chenao-poker .pk-chip-flight-layer { display: none; }
}
.chenao-poker.pk-phone .pk-pool-summary { gap: 6px; margin-top: 6px; }
.chenao-poker.pk-phone .pk-pool-summary strong { font-size: 22px; color: var(--pk-score-gold); }
.chenao-poker.pk-phone .pk-dialog { position: fixed; inset: 0; width: min(390px,calc(100vw - 24px)); max-width: 390px; max-height: calc(100dvh - 40px); margin: auto; border-radius: 14px; padding-bottom: 0; }
.chenao-poker.pk-phone .pk-dialog-head { position: sticky; top: 0; z-index: 1; background: var(--pk-bg); padding: 14px 20px; }
.chenao-poker.pk-phone .pk-dialog-head h3 { font-size: 22px; }
.chenao-poker.pk-phone .pk-dialog-body { padding: 20px; }
.chenao-poker .pk-quick-pay-dialog .pk-dialog-body,
.chenao-poker.pk-phone .pk-quick-pay-dialog .pk-dialog-body { padding: 16px; }
.chenao-poker .pk-inline-setting { min-width: 0; gap: 8px; }
.chenao-poker .pk-inline-setting > .pk-error:empty { display: none; }
.chenao-poker .pk-setting-row { display: grid; grid-template-columns: minmax(0,1fr) 46px; align-items: end; gap: 10px; min-width: 0; }
.chenao-poker .pk-setting-row label { min-width: 0; }
.chenao-poker .pk-setting-save { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; }
.chenao-poker .pk-setting-save svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.chenao-poker.pk-phone .pk-avatar-edit { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; justify-items: center; gap: 12px 20px; padding-bottom: 4px; min-width: 0; }
.chenao-poker.pk-phone .pk-avatar-preview { display: grid; place-items: center; width: 120px; height: 120px; }
.chenao-poker.pk-phone .pk-avatar-preview .pk-avatar { width: 120px; height: 120px; background: var(--pk-soft); font-size: 48px; }
.chenao-poker.pk-phone .pk-avatar-upload { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; background: var(--pk-panel); color: var(--pk-accent); border: 1px solid var(--pk-line); border-radius: 3px; cursor: pointer; }
.chenao-poker.pk-phone .pk-avatar-upload input[type=file] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chenao-poker.pk-phone .pk-avatar-upload:focus-within { outline: 3px solid var(--pk-accent); outline-offset: 3px; }
.chenao-poker.pk-phone .pk-avatar-upload:has(input:disabled) { opacity: .48; cursor: not-allowed; }
.chenao-poker.pk-phone .pk-avatar-actions { display: grid; gap: 8px; width: 100%; max-width: 148px; min-width: 0; }
.chenao-poker.pk-phone .pk-avatar-actions button[hidden] { display: none; }
.chenao-poker.pk-phone .pk-avatar-edit > :is(.pk-avatar-status,[data-avatar-error]) { grid-column: 1 / -1; margin: 0; text-align: center; }
.chenao-poker.pk-phone .pk-avatar-status { color: var(--pk-muted); font-size: 13px; text-align: center; }
.chenao-poker.pk-phone .pk-avatar-status:empty,
.chenao-poker.pk-phone [data-avatar-error]:empty { display: none; }
.chenao-poker.pk-phone .pk-profile-dialog .pk-dialog-body { padding: 16px; gap: 12px; }
.chenao-poker.pk-phone .pk-profile-dialog .pk-avatar-edit { gap: 8px 16px; padding-bottom: 0; }
.chenao-poker.pk-phone .pk-profile-dialog .pk-avatar-actions { gap: 4px; }
.chenao-poker .pk-profile-dialog .pk-inline-setting { margin: 0; gap: 4px; }
.chenao-poker .pk-profile-dialog .pk-setting-row { grid-template-columns: minmax(0,1fr) 44px; gap: 8px; }
.chenao-poker .pk-profile-dialog .pk-setting-row label { gap: 4px; }
.chenao-poker .pk-profile-dialog .pk-setting-row input { height: 44px; min-height: 44px; padding: 8px 10px; }
.chenao-poker .pk-profile-dialog .pk-setting-save { width: 44px; height: 44px; }
.chenao-poker.pk-phone .pk-profile-dialog :is(button,.pk-avatar-upload) { background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; text-align: center; }
@media (hover: hover) {
  .chenao-poker.pk-phone .pk-profile-dialog button:hover:not(:disabled),
  .chenao-poker.pk-phone .pk-profile-dialog .pk-avatar-upload:hover:not(:has(input:disabled)) { background: var(--pk-accent-hover); color: #fff; }
}
.chenao-poker .pk-motion-dialog.is-sheet-entering::backdrop { animation: pk-sheet-backdrop-in 360ms ease both; }
.chenao-poker .pk-motion-dialog.is-sheet-leaving::backdrop { animation: pk-sheet-backdrop-out 280ms ease both; }
.chenao-poker .pk-motion-dialog.is-sheet-leaving { pointer-events: none; }
@keyframes pk-sheet-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pk-sheet-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chenao-poker .pk-motion-dialog::backdrop { animation: none; }
}
@media (hover:hover) {
  .chenao-poker.pk-phone .pk-avatar-upload:hover { background: var(--pk-soft); }
}
@media (max-width:620px) {
  .chenao-poker.pk-phone .pk-dialog { inset: auto 0 0; width: min(390px,100%); max-height: calc(100dvh - 90px); margin: 0 auto; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width:359px) {
  .chenao-poker.pk-phone .pk-simple-entry .pk-intro,
  .chenao-poker.pk-phone .pk-simple-entry .pk-entry { padding: 18px 16px; }
  .chenao-poker.pk-phone .pk-simple-entry .pk-intro h2 { font-size: 29px; }
  .chenao-poker.pk-phone .pk-simple-entry .pk-chip-art { width: 60px; height: 60px; }
  .chenao-poker.pk-phone .pk-pool-main { padding-inline: 16px; }
  .chenao-poker.pk-phone .pk-pool-controls button { font-size: 20px; gap: 6px; }
  .chenao-poker.pk-phone .pk-pool-controls svg { width: 28px; height: 28px; }
  .chenao-poker.pk-phone .pk-pool-dock { padding-inline: 12px; }
}

/* finesse · component: circular shared table · inherited cobalt / paper
 * Equal-height seats, centered crowns, denomination depth; no viewport lock. */
.chenao-poker.pk-phone .pk-pool-main { display: block; min-height: 0; padding: 2px 8px 10px; }
.chenao-poker .pk-pool-table { position: relative; width: 100%; height: var(--table-height,480px); isolation: isolate; }
.chenao-poker .pk-table-scene { position: absolute; top: calc(50% + var(--scene-offset-y,0px)); left: 50%; width: 100%; height: var(--world-height,480px); transform: translate(-50%,-50%) scale(var(--camera-scale,.82)) perspective(var(--camera-distance,1000px)) rotateX(43.946deg); transform-origin: center; }
.chenao-poker .pk-table-surface { position: absolute; top: 50%; left: 50%; width: calc(2 * var(--world-rx,150px)); height: calc(2 * var(--world-ry,180px)); transform: translate(-50%,-50%); border: 3px solid #ffd34e; border-radius: 50%; background: linear-gradient(180deg,rgba(8,5,117,.22),rgba(15,9,155,.08) 56%,rgba(112,104,255,.13)); box-shadow: 0 7px 0 rgba(10,6,110,.48),0 9px 0 #c39220,0 16px 20px -10px rgba(4,2,72,.35),inset 0 0 0 5px var(--pk-accent),inset 0 0 0 6px #ffd34e; }
.chenao-poker.pk-phone .pk-pool-table .pk-pool-balance { position: absolute; top: 50%; left: 50%; width: 132px; height: 104px; transform: translate(-50%,-50%) scale(var(--pool-scale,1)); padding: 0; gap: 0; z-index: 1; }
.chenao-poker.pk-phone .pk-pool-table .pk-pool-total { position: absolute; top: calc(100% + 40px); left: 50%; transform: translateX(-50%); width: 144px; max-width: none; height: 52px; color: var(--pk-score-gold); font-size: min(40px,calc(200px / var(--pool-digits,1))); font-weight: 900; line-height: 52px; letter-spacing: -.012em; white-space: nowrap; }
.chenao-poker.pk-phone .pk-pool-table .pk-pool-people { position: absolute; inset: 0; display: block; width: 100%; max-width: none; margin: 0; }
.chenao-poker.pk-phone .pk-pool-table .pk-pool-person { position: absolute; left: var(--seat-x); top: var(--seat-y); transform: translate(-50%,-50%); width: 70px; height: 140px; display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 44px; z-index: 2; }
.chenao-poker.pk-phone .pk-pool-table .pk-avatar-wrap,
.chenao-poker.pk-phone .pk-pool-table .pk-avatar-wrap:has(.pk-rank-badge) { width: 52px; height: 52px; flex: 0 0 52px; padding: 0; }
.chenao-poker.pk-phone .pk-pool-table .pk-avatar { width: 52px; height: 52px; font-size: 24px; box-shadow: 1px 2px 0 rgba(8,5,72,.28),3px 5px 3px -2px rgba(5,3,55,.24); }
/* Keep the table's tilted crop, but render the uploaded photo upright inside it. */
.chenao-poker.pk-phone .pk-pool-table .pk-avatar img { border-radius: 0; transform: var(--avatar-photo-view,none); transform-origin: center; }
.chenao-poker.pk-phone .pk-pool-table .pk-rank-badge { top: -27px; }
.chenao-poker.pk-phone .pk-pool-table .pk-person-name { display: flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 96px; max-width: none; height: 20px; margin-top: 6px; font-size: 16px; line-height: 20px; white-space: nowrap; overflow-wrap: normal; text-overflow: clip; overflow: visible; }
.chenao-poker.pk-phone .pk-pool-table .pk-person-name-text { display: block; flex: none; width: max-content; transform: scale(var(--name-scale,1)); transform-origin: center; }
.chenao-poker.pk-phone .pk-pool-table .pk-person-net { display: block; flex: 0 0 30px; width: 96px; max-width: none; height: 30px; margin-top: 6px; color: var(--pk-score-gold); font-size: min(36px,calc(138px / var(--net-digits,1))); font-weight: 900; line-height: 30px; white-space: nowrap; letter-spacing: -.012em; text-align: center; text-shadow: 0 1px 2px rgba(8,5,85,.9); }
/* Keep the real minus in the text, but paint a substantial, font-independent
   stroke: Bodoni's hairline hyphen disappears at the table's camera angle. */
.chenao-poker .pk-score-minus { position: relative; display: inline-block; width: .44em; color: transparent; text-shadow: none; }
.chenao-poker .pk-score-minus::after { content: ""; position: absolute; left: .02em; right: .04em; top: 50%; height: max(2px,.10em); transform: translateY(-50%); border-radius: .02em; background: var(--pk-score-gold); }
.chenao-poker :is(.pk-pool-watermark,.pk-pool-total,.pk-person-net,.pk-pool-summary strong) {
  font-family: var(--pk-score-font);
  font-weight: 900;
  font-style: normal;
  font-variant-numeric: lining-nums tabular-nums;
  font-kerning: none;
  font-optical-sizing: none;
  font-feature-settings: "lnum" 1, "tnum" 1, "kern" 0;
}
/* finesse component: pre-game seat pickup, magnetic target, confirmed exchange. */
.chenao-poker .pk-table-rotatable { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chenao-poker .pk-table-rotatable img { pointer-events: none; -webkit-user-drag: none; }
.chenao-poker .pk-table-rotatable:focus-visible { outline: 2px solid var(--pk-panel); outline-offset: 5px; border-radius: 8px; }
.chenao-poker .pk-table-rotatable:active,
.chenao-poker .is-table-rotating .pk-table-rotatable { cursor: grabbing; }
@media (hover:hover) { .chenao-poker .pk-table-rotatable:hover .pk-avatar { outline: 2px solid var(--pk-panel); outline-offset: 4px; } }
.chenao-poker .pk-seat-movable.is-seat-holding .pk-avatar { outline: none; }
.chenao-poker .pk-seat-hold-progress { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); max-width: none; max-height: none; fill: none; stroke: #ffd34e; stroke-width: 5; pointer-events: none; }
.chenao-poker .pk-seat-hold-track { opacity: .2; }
.chenao-poker .pk-seat-hold-fill { stroke-dasharray: 100; stroke-dashoffset: 100; animation: pk-seat-hold var(--seat-hold-duration) linear forwards; }
@keyframes pk-seat-hold { to { stroke-dashoffset: 0; } }
.chenao-poker.pk-phone .pk-pool-table .pk-pool-person.is-seat-dragging { z-index: 8; cursor: grabbing; transform: translate(-50%,-50%) translate(var(--seat-drag-x,0px),var(--seat-drag-y,0px)); }
.chenao-poker .pk-pool-person.is-seat-dragging .pk-avatar { outline: 4px solid #ffd34e; outline-offset: 5px; box-shadow: 0 8px 14px rgba(8,5,72,.4); }
.chenao-poker .is-seat-snapped { transition: transform 110ms cubic-bezier(.2,.8,.2,1); }
.chenao-poker .is-seat-snapped .pk-avatar img { transition: transform 110ms cubic-bezier(.2,.8,.2,1); }
.chenao-poker .is-seat-target .pk-avatar { outline: 3px dashed var(--pk-panel); outline-offset: 9px; opacity: .5; }
.chenao-poker .is-seat-pending { pointer-events: none; cursor: progress; }
@media (prefers-reduced-motion:reduce) {
  .chenao-poker .is-seat-snapped,
  .chenao-poker .is-seat-snapped .pk-avatar img { transition: none; }
  .chenao-poker .pk-seat-hold-fill { animation: none; }
}
.chenao-poker .pk-player-chips { position: absolute; left: calc(50% + var(--player-chip-x,80px)); top: calc(70px + var(--player-chip-y,0px)); width: var(--player-pile-width,30px); height: var(--player-pile-height,36px); transform: translate(-50%,-50%) scale(var(--player-chip-scale,.8)); transform-origin: center; pointer-events: none; }
.chenao-poker .is-table-rotating .pk-player-chips { transition: left 80ms ease-out, top 80ms ease-out; }
@media (prefers-reduced-motion:reduce) { .chenao-poker .is-table-rotating .pk-player-chips { transition: none; } }
.chenao-poker .pk-player-chip-stack { position: absolute; left: var(--player-stack-x,0px); top: var(--player-stack-y,0px); width: var(--coin-size); height: var(--coin-size); z-index: var(--stack-depth,1); }
.chenao-poker .pk-player-chip-stack .pk-denom-chip { position: absolute; left: 0; bottom: calc(var(--chip-layer,0) * 4px); transform: var(--coin-view,matrix(1,0,0,1,0,0)) rotate(-12deg); transform-origin: center; }
.chenao-poker .pk-player-chip-stack::before { content: ''; position: absolute; inset: 0; transform: translateY(2px); border-radius: 50%; background: radial-gradient(closest-side,rgba(5,3,54,.5) 45%,rgba(5,3,54,0)); pointer-events: none; }
.chenao-poker :is(.pk-chip-stack,.pk-player-chip-stack) .pk-denom-chip { box-shadow: 0 1px 0 rgba(255,249,233,.72),0 3px 0 var(--coin-edge),0 4px 0 rgba(7,5,61,.55),inset 0 0 0 1px rgba(255,251,236,.6); }
.chenao-poker .pk-player-chip-stack .pk-denom-chip { box-shadow: var(--coin-edge-x,0px) var(--coin-edge-y,1px) 0 rgba(255,249,233,.72),calc(3 * var(--coin-edge-x,0px)) calc(3 * var(--coin-edge-y,1px)) 0 var(--coin-edge),calc(4 * var(--coin-edge-x,0px)) calc(4 * var(--coin-edge-y,1px)) 0 rgba(7,5,61,.55),inset 0 0 0 1px rgba(255,251,236,.6); }
.chenao-poker :is(.pk-chip-stack,.pk-player-chip-stack) .pk-denom-chip:not(:last-of-type) .pk-chip-face { visibility: hidden; }
.chenao-poker .pk-player-chip-count { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: none; overflow: visible; padding: 1px 2px; border-radius: 3px; background: var(--pk-panel); color: var(--pk-accent); font: 700 min(14px,calc(40px / var(--count-units,3)))/1.1 var(--pk-mono); letter-spacing: 0; white-space: nowrap; }

/* The diameter ratio is shared by the pile and moving chips: 1 / 1.25 / 1.5 / 1.75 / 2. */
.chenao-poker .pk-denom-chip,
.chenao-poker .pk-transfer-shadow,
.chenao-poker .pk-chip-stack,
.chenao-poker .pk-player-chip-stack { --chip-scale: 1; --coin-ink: #1512b9; --coin-face: #f3f0ff; --coin-edge: #9b98e7; --coin-finish: linear-gradient(135deg,#faf8ff,#c6c2ff); --coin-size: calc(24px * var(--chip-scale)); }
.chenao-poker .pk-transfer-shadow[data-denomination="20"] { --chip-scale: 1.25; }
.chenao-poker .pk-transfer-shadow[data-denomination="50"] { --chip-scale: 1.5; }
.chenao-poker .pk-transfer-shadow[data-denomination="100"] { --chip-scale: 1.75; }
.chenao-poker .pk-transfer-shadow[data-denomination="200"] { --chip-scale: 2; }
.chenao-poker .pk-transfer-shadow { position: absolute; top: 0; left: 0; width: var(--coin-size); height: var(--coin-size); border-radius: 50%; background: radial-gradient(closest-side,rgba(5,3,54,.52) 30%,rgba(5,3,54,.32) 62%,rgba(5,3,54,0) 100%); pointer-events: none; will-change: transform,opacity; }
.chenao-poker .pk-transfer-chip { z-index: 1; }
.chenao-poker :is(.pk-denom-chip,.pk-chip-stack,.pk-player-chip-stack)[data-denomination="20"] { --chip-scale: 1.25; --coin-ink: #603016; --coin-face: #efd1ae; --coin-edge: #9d5629; --coin-finish: linear-gradient(135deg,#f4d7b6 5%,#c08750 26%,#ffe4c8 47%,#a96639 75%,#e6b886); }
.chenao-poker :is(.pk-denom-chip,.pk-chip-stack,.pk-player-chip-stack)[data-denomination="50"] { --chip-scale: 1.5; --coin-ink: #414653; --coin-face: #e7eaf4; --coin-edge: #7a8096; --coin-finish: linear-gradient(135deg,#fafbff 5%,#9da7bc 25%,#fffef9 47%,#a5acc1 72%,#e3e9fa); }
.chenao-poker :is(.pk-denom-chip,.pk-chip-stack,.pk-player-chip-stack)[data-denomination="100"] { --chip-scale: 1.75; --coin-ink: #715013; --coin-face: #ffeeb0; --coin-edge: #aa791f; --coin-finish: conic-gradient(from 20deg,#ffeaa0,#e5ae31,#fff5c2,#f6dc7d,#edaece,#ffe788,#c6eddb,#ffdd75,#ffeaa0); }
.chenao-poker :is(.pk-denom-chip,.pk-chip-stack,.pk-player-chip-stack)[data-denomination="200"] { --chip-scale: 2; --coin-ink: #082b38; --coin-pattern: #edfffd; --coin-face: linear-gradient(120deg,rgba(207,255,248,.94),rgba(255,240,161,.86) 36%,rgba(255,158,219,.82) 64%,rgba(145,250,255,.94)); --coin-edge: #7af7e8; --coin-finish: conic-gradient(from 25deg,#50ffed,#f4ff9b 16%,#ffcb56 27%,#ff51d6 40%,#926bff 53%,#40dcff 65%,#68ffb8 78%,#fff4b0 89%,#50ffed); }
.chenao-poker .pk-denom-chip { display: block; position: relative; width: var(--coin-size); height: var(--coin-size); color: var(--coin-ink); background: var(--coin-finish); border: 1px solid var(--coin-edge); border-radius: 50%; box-shadow: 0 2px 0 var(--coin-edge), 0 3px 1px rgba(7,5,61,.5), inset 0 0 0 1px rgba(255,251,236,.6); }
.chenao-poker .pk-denom-chip::before { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: var(--coin-face); }
/* finesse component: slow laser-foil color flow inside the existing coin face.
   The nested texture moves independently of the flight's angular reflections. */
.chenao-poker .pk-coin-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.chenao-poker .pk-coin-specular,
.chenao-poker .pk-coin-spectrum { position: absolute; inset: -45%; display: block; pointer-events: none; }
.chenao-poker .pk-coin-specular { background: linear-gradient(108deg,transparent 32%,rgba(255,255,255,.15) 42%,rgba(255,255,244,.96) 49%,rgba(255,255,255,.55) 52%,transparent 65%); transform: translate(8%,-6%) rotate(-12deg); opacity: .36; }
.chenao-poker .pk-coin-spectrum { opacity: .92; transform: translate(0,0) rotate(0deg); }
.chenao-poker .pk-coin-spectrum-flow { position: absolute; inset: 0; display: block; pointer-events: none; background: radial-gradient(ellipse at 30% 35%,rgba(115,255,240,.82),transparent 22%),radial-gradient(ellipse at 72% 65%,rgba(255,66,211,.75),transparent 23%),repeating-linear-gradient(125deg,rgba(255,255,255,.18) 0 .4px,transparent .8px 3px),conic-gradient(from 35deg at 45% 55%,#00f4ce 0%,#ffe354 14%,#ff4d9e 28%,#7c48ff 42%,#17c8ff 56%,#43ffc0 70%,#ffe86a 83%,#ff51c8 92%,#00f4ce 100%); background-blend-mode: normal; transform-origin: center; animation: pk-foil-flow 12s linear infinite; animation-play-state: var(--pk-foil-play,running); }
@keyframes pk-foil-flow {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(9%,-7%) rotate(90deg); }
  50% { transform: translate(-7%,8%) rotate(180deg); }
  75% { transform: translate(7%,9%) rotate(270deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}
.chenao-poker :is(.pk-pile-probe,.pk-player-pile-probe) .pk-coin-spectrum-flow { animation: none; }
@media (prefers-reduced-motion:reduce) { .chenao-poker .pk-coin-spectrum-flow { animation: none; transform: none; } }
/* Emissive metal rims are shared by quick presets, table piles and flights.
   Only the exposed coin radiates; the halo adds no physical size or hit area. */
.chenao-poker .pk-denom-chip:is([data-denomination="50"],[data-denomination="100"],[data-denomination="200"])::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--coin-glow-rim); border-radius: inherit; box-shadow: var(--coin-glow); pointer-events: none; }
.chenao-poker .pk-denom-chip[data-denomination="50"] { --coin-glow-rim: rgba(238,249,255,1); --coin-glow: 0 0 4px 2px rgba(240,251,255,1),-2px -2px 10px 3px rgba(199,229,255,.95),2px 3px 18px 4px rgba(135,172,224,.82),0 0 26px 3px rgba(170,210,255,.55),inset 0 0 4px rgba(244,250,255,.95); }
.chenao-poker .pk-denom-chip[data-denomination="100"] { --coin-glow-rim: rgba(255,244,173,1); --coin-glow: 0 0 5px 2px rgba(255,242,143,1),-2px -2px 12px 3px rgba(255,211,56,.98),2px 3px 20px 4px rgba(241,157,23,.88),0 0 28px 3px rgba(255,199,55,.64),inset 0 0 5px rgba(255,246,177,.95); }
.chenao-poker .pk-denom-chip[data-denomination="200"] { --coin-glow-rim: rgba(231,255,252,1); --coin-glow: 0 0 5px 2px rgba(235,255,248,1),-4px -3px 14px 3px rgba(24,255,220,1),4px 3px 18px 3px rgba(255,42,204,.98),-2px 5px 25px 4px rgba(113,125,255,.85),4px -4px 20px 3px rgba(255,224,75,.88),0 0 32px 3px rgba(92,235,255,.62),inset 0 0 5px rgba(243,255,218,.95); }
/* The outer rainbow shares the face's 12-second document-time phase. Only this
   halo rotates and changes hue; the denomination and coin geometry stay fixed. */
.chenao-poker .pk-denom-chip[data-denomination="200"]::after { animation: pk-foil-halo 12s linear infinite; animation-play-state: var(--pk-foil-play,running); }
@keyframes pk-foil-halo {
  from { transform: rotate(0deg); filter: hue-rotate(0deg); }
  to { transform: rotate(360deg); filter: hue-rotate(360deg); }
}
.chenao-poker :is(.pk-pile-probe,.pk-player-pile-probe) .pk-denom-chip[data-denomination="200"]::after { animation: none; }
@media (prefers-reduced-motion:reduce) { .chenao-poker .pk-denom-chip[data-denomination="200"]::after { animation: none; transform: none; filter: none; } }
.chenao-poker .pk-denom-chip[data-denomination="200"] > .pk-coin-sheen { box-shadow: inset 1px 1px 3px rgba(183,255,245,.85),inset -1px -1px 3px rgba(255,161,237,.75); }
.chenao-poker .pk-denom-chip[data-denomination="200"] .pk-coin-specular { opacity: .42; }
.chenao-poker .pk-denom-chip[data-denomination="200"] > .pk-chip-art { opacity: .86; }
.chenao-poker .pk-denom-chip[data-denomination="200"] > .pk-chip-face { text-shadow: 0 1px 0 rgba(245,255,242,.85),0 0 2px rgba(245,255,242,.75); }
.chenao-poker :is(.pk-chip-stack,.pk-player-chip-stack) .pk-denom-chip:not(:last-of-type)::after { display: none; }
.chenao-poker :is(.pk-chip-stack,.pk-player-chip-stack) .pk-denom-chip:not(:last-of-type) .pk-coin-sheen { display: none; }
.chenao-poker.pk-phone .pk-pool-balance .pk-denom-chip > .pk-chip-art,
.chenao-poker .pk-denom-chip > .pk-chip-art { position: relative; display: block; width: 100%; height: 100%; margin: 0; color: var(--coin-pattern,var(--coin-ink)); }
.chenao-poker .pk-denom-chip > .pk-chip-face { position: absolute; inset: 0; display: grid; place-items: center; padding-inline-end: .08em; color: var(--coin-ink); font: 700 calc(8px * var(--chip-scale))/1 var(--pk-mono); letter-spacing: -.08em; }
.chenao-poker .pk-quick-chips .pk-denom-chip { --coin-size: 100%; width: 100%; height: 100%; pointer-events: none; }
.chenao-poker .pk-quick-chips .pk-denom-chip > .pk-chip-face { font-size: clamp(20px,6vw,27px); }
.chenao-poker .pk-player-chips :is(.pk-denom-chip,.pk-player-chip-stack) { --coin-size: calc(24px * var(--chip-scale)); }
.chenao-poker .pk-player-chips .pk-chip-face { font-size: calc(8px * var(--chip-scale)); }
.chenao-poker .pk-chip-pile { --pile-scale: 1.12; position: relative; width: 132px; height: 104px; transform: scale(var(--pile-scale)); transform-origin: center; }
.chenao-poker .pk-chip-pile.pk-pile-probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
/* Optical centering corrects the larger projected ellipse, without moving a landing point. */
/* Center the ring on the visible coin body: half the 4px edge, rotated -12deg.
   The physical chip center and measured flight landing points remain fixed. */
.chenao-poker .pk-chip-plinth { --chip-body-center-x: .416px; --chip-body-center-y: 1.956px; position: absolute; left: calc(50% + var(--chip-body-center-x)); top: calc(50% + var(--chip-body-center-y) + (2209 - var(--plinth-radius-squared,576)) * var(--plinth-optical-step,0px)); width: 100px; height: 100px; transform: translate(-50%,-50%) rotate(-12deg); color: var(--pk-panel); opacity: .58; border-radius: 50%; box-shadow: 1px 2px 0 rgba(5,3,54,.3); pointer-events: none; }
.chenao-poker.pk-phone .pk-chip-plinth > .pk-chip-art { width: 100%; height: 100%; margin: 0; }
.chenao-poker .pk-pile-merge-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.chenao-poker .pk-stack-ghost { pointer-events: none; }
.chenao-poker .pk-stack-receiving .pk-denom-chip:last-of-type { filter: drop-shadow(0 0 2px rgba(255,244,209,.68)); }
.chenao-poker .pk-chip-stack { position: absolute; width: var(--coin-size); height: var(--coin-size); left: var(--stack-x,calc(50% - var(--coin-size) * .5)); top: var(--stack-y,calc(50% - var(--coin-size) * .5)); transform: none; z-index: var(--stack-depth,1); }
.chenao-poker .pk-chip-stack::before { content: ''; position: absolute; inset: 0; transform: translate(0,1px); border-radius: 50%; background: radial-gradient(closest-side,rgba(5,3,54,.4) 50%,rgba(5,3,54,.18) 80%,rgba(5,3,54,0)); pointer-events: none; }
.chenao-poker .pk-chip-stack .pk-denom-chip { position: absolute; left: 0; bottom: calc(var(--chip-layer,0) * 4px); transform: rotate(-12deg); transform-origin: center; }
.chenao-poker .pk-chip-count { position: absolute; left: 50%; top: calc(100% - 10px); transform: translateX(-50%); width: max-content; max-width: none; padding: 1px 2px; overflow: visible; color: var(--pk-panel); background: var(--pk-accent); border-radius: 2px; font: 700 min(10px,calc(40px / var(--count-units,3)))/1.1 var(--pk-mono); white-space: nowrap; }
.chenao-poker :is(.pk-player-chip-count,.pk-chip-count) { pointer-events: auto; cursor: help; }
.chenao-poker .pk-chip-pile[data-empty="true"] .pk-chip-plinth { opacity: .78; }
.chenao-poker .pk-transfer-chip.pk-denom-chip { position: absolute; width: var(--coin-size); height: var(--coin-size); top: 0; left: 0; }
.chenao-poker .pk-merge-confetti { position: absolute; z-index: 70; display: block; pointer-events: none; contain: strict; }

/* Pause only when the table is offscreen; payment never changes its finish. */
.chenao-poker.pk-table-away .pk-coin-spectrum-flow,
.chenao-poker.pk-table-away .pk-denom-chip[data-denomination="200"]::after { animation-play-state: paused; }
.chenao-poker .pk-flight-count { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); width: max-content; padding: 1px 3px; border-radius: 2px; color: var(--pk-accent); background: var(--pk-panel); font: 700 10px/1.2 var(--pk-mono); white-space: nowrap; }

.chenao-poker .pk-dialog.pk-half-dialog,
.chenao-poker.pk-phone .pk-dialog.pk-half-dialog {
  inset: auto 0 0; margin: 0 auto; width: min(390px,100%);
  height: calc(var(--pk-viewport-height,100dvh) * .5);
  max-height: calc(var(--pk-viewport-height,100dvh) * .5);
  box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom);
}
/* Native dialogs live in the viewport top layer, not the 390px table column.
   Match the phone viewport at every width, including wider touch devices. */
@media (max-width: 620px), (hover: none) and (pointer: coarse) {
  .chenao-poker.pk-phone .pk-dialog.pk-pool-sheet {
    inset: auto 0 0; width: 100%; max-width: 100%; margin: 0;
    box-sizing: border-box; border-inline: 0; border-radius: 14px 14px 0 0;
  }
}
.chenao-poker .pk-half-dialog .pk-dialog-body,
.chenao-poker.pk-phone .pk-half-dialog .pk-dialog-body { padding: 16px; gap: 10px; }
.chenao-poker .pk-invite-dialog .pk-qr { padding: 0; }
.chenao-poker .pk-invite-dialog .pk-qr svg { width: min(100%,clamp(100px,18dvh,160px)); }
.chenao-poker .pk-invite-dialog .pk-code { font-size: 26px; line-height: 1.2; }
.chenao-poker .pk-dialog.pk-history-dialog { overflow: hidden; }
.chenao-poker .pk-history-dialog .pk-dialog-body,
.chenao-poker.pk-phone .pk-history-dialog .pk-dialog-body { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.chenao-poker .pk-history-dialog .pk-pool-history { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; scrollbar-width: none; align-content: start; }
.chenao-poker .pk-history-dialog .pk-pool-history::-webkit-scrollbar { display: none; }
.chenao-poker .pk-history-dialog .pk-history-refresh { flex: 0 0 auto; margin-top: 12px; }

/* A second, naturally scrolling page shares the same confirmed room snapshot. */
.chenao-poker .pk-pool-ranking { min-height: var(--pk-viewport-height,100svh); padding: 30px 22px max(36px,env(safe-area-inset-bottom)); background: var(--pk-panel); color: var(--pk-ink); border-top: 1px solid var(--pk-line); scroll-margin-top: env(safe-area-inset-top,0px); }
.chenao-poker .pk-pool-ranking > header { display: flex; align-items: center; justify-content: center; text-align: center; gap: 12px; margin-bottom: 32px; }
.chenao-poker .pk-pool-ranking h2 { margin: 0; font: 800 36px/1.25 var(--display,serif); }
.chenao-poker .pk-ranking-columns { display: flex; justify-content: space-between; padding: 0 0 12px; border-bottom: 1px solid var(--pk-ink); color: var(--pk-muted); font-size: 15px; font-weight: 700; }
.chenao-poker .pk-ranking-list { padding: 0; margin: 0; list-style: none; }
.chenao-poker .pk-ranking-list li { --ranking-avatar-size: 42px; display: grid; grid-template-columns: 30px var(--ranking-avatar-size) minmax(0,1fr) fit-content(42%); align-items: center; gap: 8px; min-height: 76px; padding: 15px 0; border-bottom: 1px solid var(--pk-line); }
.chenao-poker.pk-phone .pk-ranking-avatar .pk-avatar { width: var(--ranking-avatar-size); height: var(--ranking-avatar-size); border: 1px solid var(--pk-line); font-size: 20px; }
.chenao-poker .pk-ranking-place { color: var(--pk-muted); font: 900 18px/1 var(--pk-score-font); font-variant-numeric: tabular-nums; }
.chenao-poker .pk-ranking-name { min-width: 0; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.chenao-poker .pk-ranking-name small { display: inline-block; margin-left: 7px; font-size: 14px; font-weight: 700; color: var(--pk-muted); }
.chenao-poker .pk-ranking-list .is-me .pk-ranking-name { color: var(--pk-accent); }
.chenao-poker .pk-ranking-list strong { justify-self: end; font: 900 min(28px,calc(min(116px,30vw) / var(--rank-units,1)))/1.2 var(--pk-score-font); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum","lnum","kern" 0; letter-spacing: -.012em; white-space: nowrap; }
.chenao-poker .pk-ranking-list strong.is-positive { color: #12734d; }
.chenao-poker .pk-ranking-list strong.is-negative { color: #c13131; }
.chenao-poker .pk-ranking-list .pk-score-minus::after { background: #c13131; }

/* User-designed entry: paper, live serif title and six-seat table drawing.
   This scope ends when a room opens; in-room proportions remain unchanged. */
.chenao-poker.pk-phone.is-entry { --pk-entry-field: #fffefb; border: 0; background: var(--pk-panel); }
.chenao-poker.is-entry > .pk-masthead { display: none; }
.chenao-poker.pk-phone.is-entry .pk-simple-entry {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  padding: 0 20px max(36px,env(safe-area-inset-bottom,0px));
}
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-intro {
  padding: 28px 0;
  gap: 14px;
  border-bottom: 1px solid var(--pk-line);
  color: var(--pk-ink);
}
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-entry-title {
  margin: 0;
  font-family: var(--display,serif);
  font-size: 76px;
  font-size: clamp(58px,22cqw,80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: inherit;
  white-space: nowrap;
}
.pk-entry-title > span { display: block; }
.chenao-poker.is-entry .pk-entry-title > span + span { margin-top: .18em; font-size: .5em; }
.pk-entry-table-art { display: block; flex: 0 0 44%; width: 44%; height: auto; overflow: visible; }
.pk-entry-seat-accent { fill: var(--signal,#ff5c35); }
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-entry { padding: 22px 0 0; }
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-entry .pk-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  margin: 0 0 24px;
  border: 1px solid var(--pk-line);
  border-radius: 3px;
  overflow: visible;
}
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-tabs button {
  min-width: 0;
  min-height: 60px;
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  color: var(--pk-ink);
  font-size: 18px;
  font-weight: 700;
}
.chenao-poker.is-entry .pk-tabs button:first-child { border-radius: 2px 0 0 2px; }
.chenao-poker.is-entry .pk-tabs button:last-child { border-radius: 0 2px 2px 0; }
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-tabs button[aria-pressed=true] { color: var(--pk-panel); background: var(--pk-accent); }
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-form { gap: 18px; }
.chenao-poker.is-entry .pk-form label { gap: 8px; font-size: 16px; font-weight: 700; }
.chenao-poker.is-entry .pk-form input { min-height: 58px; padding: 14px 18px; font-size: 16px; font-weight: 400; background: var(--pk-entry-field); }
.chenao-poker.is-entry .pk-form input::placeholder { color: var(--pk-muted); opacity: .85; }
.chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-form > button { min-height: 60px; font-size: 18px; font-weight: 700; }
.chenao-poker.is-entry .pk-entry-recent { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--pk-line); }
.chenao-poker.is-entry .pk-entry-recent button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 16px; background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; font-size: 17px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .chenao-poker.is-entry .pk-entry-recent button:hover:not(:disabled) { background: var(--pk-accent-hover); color: #fff; }
}
@media (max-width: 340px) {
  .chenao-poker.pk-phone.is-entry .pk-simple-entry { padding-inline: 18px; }
  .chenao-poker.pk-phone.is-entry .pk-simple-entry .pk-tabs button { font-size: 17px; }
}
