/* Table chrome only. Keep the fixed table canvas and all game geometry intact. */
#view-table .lf-toolbar{background:linear-gradient(180deg,#20372e,#182c25);border-bottom:1px solid #8c794c60;color:#e8e5d5;column-gap:16px;box-shadow:inset 0 1px #ffffff08;font-family:'Segoe UI',system-ui,sans-serif}
#view-table .lf-tools-left,#view-table .lf-tools-right{align-items:center;gap:5px;min-width:0}
#view-table .lf-tool{width:auto;min-width:27px;height:26px;padding:0 7px;gap:6px;border:1px solid transparent;border-radius:5px;background:transparent;color:#c6d5c9;font-size:12px;line-height:1;white-space:nowrap;transition:background .15s,border-color .15s,color .15s;flex-shrink:0}
#view-table .lf-tool svg{width:15px;height:15px;display:block;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}
#view-table .lf-tool .lf-tool-label{font:600 10px/1 'Segoe UI',system-ui,sans-serif;letter-spacing:.1px}
#view-table .lf-tool:hover{background:#ffffff0c;border-color:#b4c3a832;color:#f1d49b}
#view-table .lf-tool.active,#view-table .lf-tool[aria-expanded="true"]{background:#c1a66620;border-color:#c1a66666;color:#f1d49b}
#view-table .lf-tool:focus-visible{outline:2px solid #e8c883;outline-offset:2px}
#view-table .lf-tool:disabled{opacity:.45;cursor:not-allowed}
#view-table .lf-tools-right{justify-self:end}
#view-table .lf-tool-leave{border-color:#64715d;color:#d4cfbc}
#view-table .lf-tool-leave:hover{border-color:#bc8470;color:#ffd5bd;background:#8e4a2929}
#view-table .lf-hand-num{background:#0e2019;border:1px solid #6b79574d;border-radius:6px;padding:5px 12px;color:#f0d59e;font:650 12px/1 'Segoe UI',system-ui,sans-serif;white-space:nowrap;letter-spacing:.4px;font-variant-numeric:tabular-nums}
#view-table .lf-hand-num .lf-hand-label{color:#acbeb0;font-size:.8em;text-transform:uppercase;letter-spacing:1.1px;margin-right:5px}
#view-table .lf-menu-popover{background:#172c23;color:#e6e7d6;border:1px solid #8b805b;border-radius:8px;padding:7px;box-shadow:0 12px 32px #0007;min-width:210px}
#view-table .lf-menu-item{color:#e0e5d5;border-radius:5px;padding:9px 11px;font-family:'Segoe UI',system-ui,sans-serif}
#view-table .lf-menu-item:hover,#view-table .lf-menu-item:focus-visible{background:#344b36;color:#f4dba6}
#view-table .lf-menu-item:focus-visible{outline:2px solid #e8c883;outline-offset:-2px}
#view-table .lf-menu-sep{background:#6f795344;margin:7px 3px}
#view-table .lf-menu-balance{background:#223a2b;border-radius:5px;border:1px solid #70815a45;padding:10px}
#view-table .lf-menu-balance .k{color:#acbeac}
#view-table .lf-menu-balance .v{color:#f1d49b}
/* Existing reference layout scales all table descendants from 1812 × 1286.
   Retain its 60px reserved toolbar strip: smaller button faces create a lighter
   visual treatment without moving cards, avatars, betting controls or menus. */
body.pbb-v3-active #view-table .lf-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);background:linear-gradient(180deg,#20372e,#182c25);padding:9px 20px!important;border-bottom:1px solid #8c794c60}
body.pbb-v3-active #view-table .lf-tools-left{gap:6px}
body.pbb-v3-active #view-table .lf-tool{width:auto;height:38px;min-width:38px;padding:0 11px;gap:8px;font-size:18px}
body.pbb-v3-active #view-table .lf-tool svg{width:20px;height:20px}
body.pbb-v3-active #view-table .lf-tool .lf-tool-label{font-size:16px}
body.pbb-v3-active #view-table .lf-hand-num{font-size:20px!important;padding:10px 18px}
body.pbb-v3-active #view-table .lf-menu-popover{font-size:16px;min-width:270px;top:58px}
body.pbb-v3-active #view-table .lf-menu-item{font-size:16px;padding:11px 13px}
@media(max-width:900px){body:not(.pbb-v3-active) #view-table .lf-tool-label{display:none}}
@media(prefers-reduced-motion:reduce){#view-table .lf-tool{transition:none}}
/* Replay is a separate floating window, outside the scaled table scene. */
#replayWindow #replayLog{background:#12231c;color:#e3eade;border:1px solid #60715b;border-radius:7px;padding:8px 10px;font:14px/1.65 'Segoe UI',system-ui,sans-serif;scrollbar-color:#6d856f #12231c;overflow-wrap:anywhere}
#replayWindow #replayLog .log-entry{opacity:1;color:#adc0b0;padding:5px 10px;border-left:3px solid transparent;margin:0;transition:background .15s}
#replayWindow #replayLog .log-entry.shown{color:#e3eade}
#replayWindow #replayLog .log-entry.round.shown{color:#d9c2f5;font-weight:600}
#replayWindow #replayLog .log-entry.chat.shown{color:#b9d9f5}
#replayWindow #replayLog .log-entry.fold.shown{color:#e7b5a9}
#replayWindow #replayLog .log-entry.win.shown{color:#b9e2b7;font-weight:700}
#replayWindow #replayLog .log-entry.current,#replayWindow #replayLog .log-entry.shown.current{color:#fff1c8;background:#384330;border-left-color:#edc774;border-radius:0 4px 4px 0;font-weight:700}
#replayWindow .replay-btn:focus-visible,#replayWindow .replay-close:focus-visible{outline:2px solid #1d6d52;outline-offset:2px}
@media(prefers-reduced-motion:reduce){#replayWindow #replayLog .log-entry{transition:none}}
