/* Responsive MVC table. Classic styles apply only after beta-mode is removed. */
.tableIG.beta-mode {
  scroll-margin-top:60px;
  --ot-surface:#fffdf4;--ot-text:#242820;--ot-muted:#586052;--ot-edge:#b2af94;
  --ot-board:radial-gradient(ellipse at center,#92a938,#5d7420);
  --ot-hand-bottom:84px;--ot-card-width:clamp(64px,6vw,90px);--ot-shell-inset:16px;
  position:relative;width:100%;max-width:945px;height:var(--ot-table-height,620px);min-height:0;max-height:none;
  padding:6px;box-sizing:border-box;border:2px solid #252b24;background:#d3c76f;box-shadow:0 2px 8px #0006;
}
.tableIG.beta-mode.ot-dark-theme { --ot-surface:#252b30;--ot-text:#f3f5f6;--ot-muted:#c7cdd1;--ot-edge:#66727a;--ot-board:radial-gradient(ellipse at center,#414b51,#242c31);background:#171d21; }
@media(hover:hover) and (pointer:fine) {
  body.ot-responsive-table-active .ot-table-column,body.ot-responsive-table-active .ot-site-panels { float:none;width:100%; }
  body.ot-responsive-table-active .tableIG.beta-mode { max-width:none; }
}
.tableIG.beta-mode.is-gold-table { border-color:#bca25b;box-shadow:0 2px 8px #0006,0 0 0 1px #d8b85a35; }
.tableIG.beta-mode.ot-dark-theme.is-gold-table { border-color:#a58d50;box-shadow:0 2px 8px #0006,0 0 0 1px #d8b85a25; }
.beta-mode > :not(#uiReplayControls):not(#responsiveTable):not(#loading) { display:none!important; }
.beta-mode>#loading { inset:6px 6px auto;width:auto;height:calc(var(--ot-table-height,620px) - var(--ot-shell-inset));z-index:2010;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:18px;padding:24px;border:1px solid var(--ot-edge);border-radius:12px;background:var(--ot-board);color:var(--ot-text); }
.beta-mode #loadingMessage { position:static;max-width:100%;font:600 clamp(16px,3vw,24px)/1.5 Arial,sans-serif;text-align:center;color:var(--ot-text);overflow-wrap:anywhere; }
.beta-mode #ingamePassword { position:static;width:min(260px,100%);margin:0; }
.beta-mode #responsiveTable { position:relative;z-index:2000;display:flex;flex-direction:column;gap:6px;width:100%;height:100%;min-height:0;overflow:hidden;color:var(--ot-text);font:14px Arial,Helvetica,sans-serif; }
#responsiveTable * { box-sizing:border-box; }
.ot-chat-below>.ot-tray-backdrop  { display:none; }
.tableIG.beta-mode.ot-chat-below { height:calc(var(--ot-table-height,620px) + var(--ot-panels-space,0px));margin-bottom:0!important; }
.beta-mode>#responsiveTable.ot-chat-below { height:calc(var(--ot-table-height,620px) - var(--ot-shell-inset));overflow:visible; }
.ot-chat-below>.ot-tray,.ot-mobile-menu.ot-chat-below>.ot-tray { inset:calc(100% + 10px) 0 auto;width:100%;height:360px;max-height:none;border-radius:8px; }
.ot-chat-below .ot-tray-tabs,.ot-chat-below .ot-activity  { display:none; }
.ot-chat-below .ot-tray-content  { display:flex;overflow:hidden;padding:6px; }
.ot-chat-below .ot-tray-panel:not([hidden])  { flex:1;min-width:0; }
.ot-chat-below .ot-chat-section  { display:flex;flex-direction:column;flex:1;min-height:0;padding:6px; }
.ot-chat-below .ot-chat  { flex:1;min-height:0;max-height:none; }
.ot-chat-below form  { flex-shrink:0; }
.ot-chat-below>.ot-tray>.ot-tray-head  { display:none; }
.ot-chat-below .ot-chat-section  { background:#f6f1e5; }
.ot-dark-theme.ot-chat-below .ot-chat-section  { background:#171d21; }
.ot-chat-section h3,.ot-scores-panel>h3 { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.ot-chat-section h3 button,.ot-scores-panel>h3 button { border:1px solid var(--ot-edge);border-radius:4px;background:var(--ot-surface);color:var(--ot-text);width:32px;height:32px;font-size:22px; }
.ot-scores-panel { position:absolute;top:calc(100% + var(--ot-scores-offset,10px));left:0;width:100%;height:420px;overflow:auto;padding:12px;border:1px solid var(--ot-edge);border-radius:8px;background:var(--ot-surface);color:var(--ot-text);box-sizing:border-box; }
.ot-chat-below:not(.ot-panels-wide)>.ot-scores-panel { height:auto;overflow:visible; }
.ot-chat-below>.ot-tray,.ot-chat-below>.ot-scores-panel { padding:8px;border:1px solid #171d21;border-radius:8px;background:var(--ot-surface);box-shadow:0 2px 4px #0004; }
.ot-chat-below .ot-tray-content { padding:0; }
.ot-chat-below .ot-chat-section,.ot-dark-theme.ot-chat-below .ot-chat-section { padding:0;border:0;background:transparent; }
.ot-chat-below .ot-chat-section h3,.ot-scores-panel>h3 { margin:0 0 8px;font:700 14px/1.4 Arial,sans-serif; }
.ot-beta-toolbar .ot-wide-panel-control { display:none; }
.ot-panels-wide .ot-wide-panel-control { display:inline-flex; }
.ot-panels-wide .ot-separate-panel-control { display:none; }
.ot-panels-pair>.ot-tray,.ot-mobile-menu.ot-panels-pair>.ot-tray { width:calc((100% - 10px)/2);height:420px;right:auto; }
.ot-panels-pair>.ot-scores-panel { left:calc(50% + 5px);width:calc((100% - 10px)/2); }
/* Wide desktop: reserve a slim column inside the original table footprint. */
.beta-mode>#responsiveTable.ot-panels-docked { display:grid;grid-template-columns:minmax(0,1fr) var(--ot-dock-column-width,clamp(200px,24%,360px));grid-template-rows:auto minmax(0,1fr);overflow:hidden; }
.beta-mode>#responsiveTable.ot-panels-docked.ot-dock-both { grid-template-rows:auto minmax(0,.42fr) minmax(0,.58fr); }
.ot-panels-docked>.ot-beta-toolbar { grid-column:1/-1;grid-row:1;min-width:0; }
.ot-panels-docked>.ot-board { grid-column:1;grid-row:2/-1;min-width:0; }
.ot-panels-docked>.ot-tray,.ot-panels-docked>.ot-scores-panel { position:relative;inset:auto;grid-column:2;grid-row:2;width:auto;height:auto;min-width:0;min-height:0;max-height:none; }
.ot-panels-docked.ot-dock-both>.ot-tray { grid-row:3; }
.ot-panels-docked .ot-settings-section { padding:8px; }
.ot-panels-docked .ot-settings-section h3 { margin:0 0 6px;font:700 13px/1.4 Arial,sans-serif; }
.ot-panels-docked .ot-score-details table { font-size:12px; }
.ot-panels-docked .ot-score-details :is(th,td) { padding:4px; }
.ot-dock-available .ot-beta-toolbar .ot-wide-panel-control { display:none; }
.ot-dock-available .ot-beta-toolbar .ot-separate-panel-control { display:inline-flex; }
.ot-chat-docked .ot-chat-notice { display:none; }
.tableIG.ot-fullscreen-mode.ot-chat-below,.tableIG.beta-mode:fullscreen.ot-chat-below { overflow-y:auto!important;overflow-x:hidden!important;margin-bottom:0!important; }
.tableIG.ot-fullscreen-mode>#responsiveTable.ot-chat-below,.tableIG:fullscreen>#responsiveTable.ot-chat-below { height:calc(100dvh - 12px);flex-shrink:0; }
.ot-beta-toolbar { display:flex;flex-wrap:nowrap;align-items:center;gap:6px;flex:0 0 auto;min-height:42px;padding:5px 8px;border:1px solid #171d21;border-radius:8px;background:var(--ot-surface);color:var(--ot-text);box-shadow:0 2px 4px #0004; }
.ot-phase { flex:1 1 160px;min-width:0;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ot-phase i { display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#30b957; }
.ot-toolbar-score { display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:4px 8px;background:#101820;color:#fff;border-radius:5px;font-family:inherit;font-size:12px;font-weight:normal;cursor:pointer; }
.ot-toolbar-score b { font-size:16px; }
.ot-toolbar-score.is-winning { background:#dff2e1;color:#214b29; }
.ot-toolbar-score.is-losing { background:#f8dddd;color:#7b2525; }
.ot-clock { font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums; }
.ot-icon,.ot-classic,.ot-toolbar-action,.ot-quick-controls button { min-height:34px;padding:5px 9px;border:1px solid var(--ot-edge);border-radius:5px;background:var(--ot-surface);color:var(--ot-text);font-size:12px;cursor:pointer;white-space:nowrap; }
.ot-classic { background:#a92f2d;color:#fff;border-color:#a92f2d; }
.ot-quick-controls { display:flex;gap:4px;position:static; }
.ot-board { position:relative;z-index:1;flex:1;min-height:0;overflow:hidden;border:1px solid #10171b;border-radius:14px;background:var(--ot-board);box-shadow:inset 0 1px 8px #0006; }
.ot-player { --ot-seat-width:124px;--ot-seat-max:30%;position:absolute;z-index:3;display:grid;grid-template-columns:36px 23px minmax(0,1fr);grid-template-rows:17px 21px;align-items:center;gap:2px 3px;width:var(--ot-seat-width);min-width:0;max-width:var(--ot-seat-max);padding:3px;border:2px solid var(--ot-edge);border-radius:8px;background:var(--ot-surface);color:var(--ot-text);box-shadow:0 2px 5px #0005;transition:border-color .15s,box-shadow .15s; }
.ot-player[data-action="player-options"] { cursor:pointer; }
.ot-player { --ot-seat-turn:#a5e9ac;--ot-seat-last:#f6dd83;--ot-seat-fold:#f6b1aa;--ot-seat-dragon:#c8def5;border-color:#171d21; }
.ot-player:is(.is-turn,.is-last-player,.is-folding,.is-dragon-target) { --ot-text:#242820; }
.ot-player-menu { --ot-menu-avatar-size:min(60px,18cqw);position:absolute;z-index:48;left:50%;top:50%;transform:translate(-50%,-50%);width:min(320px,94%);max-height:88%;overflow:auto;padding:12px;border:1px solid #171d21;border-radius:9px;background:var(--ot-surface);color:var(--ot-text);box-shadow:0 4px 18px #0007; }
.ot-player-menu>header { position:relative;min-height:32px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;padding-inline:calc(var(--ot-menu-avatar-size) + 6px);text-align:center; }
.ot-player-menu>header strong { overflow-wrap:anywhere;min-width:0; }
.ot-player-rating { margin:0 0 10px;padding-inline:calc(var(--ot-menu-avatar-size) + 6px);color:var(--ot-muted);text-align:center; }
.ot-player-menu .ot-player-menu-close { position:absolute;right:0;top:0;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;font-size:23px;line-height:1; }
.ot-player-menu-actions { display:flex;gap:8px; }
.ot-player-menu-actions>.ot-btn { display:flex;flex:1 1 0;align-items:center;justify-content:center;min-width:0;min-height:42px;padding:6px;text-align:center;text-decoration:none;white-space:normal;font:12px/1.3 Arial,sans-serif; }
.ot-avatar { display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--ot-edge);border-radius:6px;background:#60727d;color:#fff; }
.ot-player>.ot-avatar { position:relative;grid-column:1;grid-row:1/-1;width:100%; }
.ot-player-menu>.ot-avatar { position:absolute;top:12px;left:12px;width:var(--ot-menu-avatar-size); }
.ot-player-menu .ot-avatar-initial { font-size:24px; }
@container (max-width:360px) {
  .ot-player-rating { padding-inline-end:12px; }
}
.ot-avatar img { display:block;width:100%;height:100%;object-fit:cover;border-radius:5px; }
.ot-avatar-initial { font-size:17px;font-weight:bold; }
.ot-player-text { grid-column:2/-1;grid-row:1;min-width:0; }
.ot-player strong { display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ot-player strong { font-size:14px; }
.ot-player-name { display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;padding:0;margin:0;background:transparent;color:#000;font:inherit;font-size:14px;font-weight:bold;text-align:left;cursor:pointer; }
.ot-player-menu-name { color:#000; }
.ot-dark-theme :is(.ot-player-name,.ot-player-menu-name) { color:#fff; }
.ot-player-name:focus-visible { outline:2px solid currentColor;outline-offset:2px; }
.ot-east .ot-full-name { left:auto;right:0; }.ot-north .ot-full-name { left:50%;transform:translateX(-50%); }
.ot-south .ot-full-name { top:auto;bottom:calc(100% + 4px); }
.ot-player .ot-call { display:inline-flex;align-items:center;justify-content:center;width:22px;height:17px;padding:0 1px;border:1px solid currentColor;border-radius:4px;white-space:nowrap;color:var(--ot-text);font-size:11px;font-weight:bold; }
.ot-player-meta { grid-row:2;grid-column:3;display:grid;grid-template-columns:minmax(22px,1fr) 14px;align-items:center;column-gap:6px;min-width:0; }
.ot-player-meta>.ot-call { grid-row:1;grid-column:1;justify-self:center; }
.ot-count { display:block;grid-column:2;grid-row:2;width:calc(19px + var(--ot-stack-count)*2px);height:21px;white-space:nowrap; }
.ot-count>span { display:block;position:relative;width:100%;height:100%; }
.ot-count i,.ot-count b { position:absolute;top:0;width:19px;height:21px;border:1px solid #343a3e;border-radius:3px;background:#f9faf6; }
.ot-count i { left:calc(var(--ot-stack-index)*2px); }
.ot-count b { display:grid;place-items:center;right:0;color:#b32020;font-size:13px;font-weight:bold;line-height:1;text-shadow:0 1px #fff;font-variant-numeric:tabular-nums; }
.ot-count.is-empty b { border-style:dashed;background:transparent;color:var(--ot-text);text-shadow:none; }
.ot-player-timer { display:inline-block;grid-row:1;grid-column:2;justify-self:end;padding:0;border:0;background:none;color:#146b32;font-size:12px;line-height:18px;font-weight:bold;font-variant-numeric:tabular-nums;white-space:nowrap; }
.ot-player-timer.is-urgent { color:#b02020; }
.ot-dark-theme .ot-player-timer { color:#72ed98; }.ot-dark-theme .ot-player-timer.is-urgent { color:#ff9991; }
.ot-player:is(.is-turn,.is-last-player,.is-folding,.is-dragon-target) .ot-player-timer { color:#124922; }
.ot-player:is(.is-turn,.is-last-player,.is-folding,.is-dragon-target) .ot-player-timer.is-urgent { color:#8c1717; }
.ot-time-limit { font-size:11px;white-space:nowrap; }
.ot-use-timer { font-size:14px;white-space:nowrap; }
.ot-gold-label { flex-shrink:0;padding:2px 6px;border:1px solid #c3a85f;border-radius:4px;background:#f3e8c8;color:#745b20;font-size:11px;line-height:16px;font-weight:bold;white-space:nowrap; }
.ot-dark-theme .ot-gold-label { background:#403a28;color:#ecd18a;border-color:#877343; }
.ot-cheater { position:absolute;top:-5px;right:-5px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#a92424;color:#fff;font-size:12px; }
.ot-player.is-tichu .ot-call { color:#302400;background:#f2ce55;border-color:#946c19; }
.ot-player.is-grandtichu .ot-call { color:#fff;background:#b43636;border-color:#e87973; }
.ot-player.is-last-player { background:var(--ot-seat-last); }
.ot-player.is-turn { background:var(--ot-seat-turn); }
.ot-player.is-turn.is-last-player { background:linear-gradient(90deg,var(--ot-seat-turn) 50%,var(--ot-seat-last) 50%); }
.ot-player.is-dragon-target { background:var(--ot-seat-dragon); }
.ot-player.is-folding { background:var(--ot-seat-fold);transition:none;animation:ot-fold-flash .35s 3 alternate; }
.ot-player.is-open-seat { border-style:dashed;cursor:pointer; }
.ot-north { top:12px;left:50%;transform:translateX(-50%); }
.ot-west { top:30%;left:12px; }
.ot-east { top:30%;right:12px; }
.ot-south { bottom:10px;left:12px; }
.ot-trick { position:absolute;z-index:1;left:50%;top:44%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;max-width:70%; }
.ot-card { display:block;flex:0 0 auto;position:relative;padding:0;border:0;background:transparent; }
.ot-card img { display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;border-radius:4px;border:1px solid #1a2025;background:#fff; }
.ot-trick-card { width:var(--ot-trick-width,clamp(52px,6vw,86px));aspect-ratio:2/3;margin-left:calc(var(--ot-trick-width,56px)*(var(--ot-trick-step,.5) - 1)); }
.ot-trick-card:first-child { margin-left:0; }
.ot-hand-wrap { position:absolute;z-index:2;left:10px;right:10px;bottom:var(--ot-hand-bottom);height:calc(var(--ot-card-width)*1.5 + 18px);display:flex;align-items:flex-end;overflow:visible; }
.ot-hand { display:flex;align-items:flex-end;justify-content:center;width:100%;height:100%; }
.ot-hand-card { width:var(--ot-card-width);aspect-ratio:2/3;margin-left:calc(var(--ot-card-width)*(var(--ot-card-step,.51) - 1));cursor:pointer;transition:transform .12s;touch-action:manipulation;-webkit-appearance:none;appearance:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none; }
.ot-hand-card:first-child { margin-left:0; }
.ot-card { box-shadow:0 0 0 .5px #1a2025;border-radius:4px; }
.ot-hand-card.is-selected { transform:translateY(-15px); }
.ot-clear-selection { position:absolute;z-index:4;right:var(--ot-clear-selection-right,10px);bottom:var(--ot-clear-selection-bottom,0);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;color:var(--ot-text);font-size:0;cursor:pointer;touch-action:manipulation; }
.ot-clear-selection::before { content:"";position:absolute;inset:0;margin:auto;z-index:-1;width:30px;height:30px;border:1px solid var(--ot-edge);border-radius:50%;background:var(--ot-surface); }
.ot-clear-selection::after { content:"";position:absolute;inset:0;margin:auto;width:13px;height:13px;background:linear-gradient(45deg,transparent 44%,currentColor 44% 56%,transparent 56%),linear-gradient(-45deg,transparent 44%,currentColor 44% 56%,transparent 56%); }
.ot-clear-selection:hover::before { border-color:currentColor; }
@media (min-width:769px) and (min-height:601px) { .tableIG.ot-desktop-controls .ot-clear-selection { left:50%;right:auto;bottom:var(--ot-clear-selection-desktop-bottom,0);transform:translateX(-50%); } }
.ot-game-message { position:absolute;z-index:4;top:6px;left:6px;padding:3px 5px;border:1px solid #d4dbdf;border-radius:4px;background:#17242d;color:#fff;font-size:12px;white-space:nowrap;pointer-events:none; }
.ot-actions { position:absolute;z-index:5;right:12px;bottom:10px;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;max-width:calc(100% - 245px); }
.tableIG.beta-mode:not(.ot-portrait-layout) .ot-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:clamp(100px,18vw,160px);max-width:none; }
.tableIG.beta-mode:not(.ot-portrait-layout) :is(.ot-actions,.ot-bomb-control)>.ot-btn { min-width:0;padding-left:4px;padding-right:4px;overflow-wrap:anywhere; }
.tableIG.beta-mode:not(.ot-portrait-layout) .ot-actions>.ot-phase-note { grid-column:1/-1;white-space:normal;text-align:right; }
.ot-btn { min-width:64px;min-height:42px;padding:7px 12px;border:1px solid #6d767b;border-radius:5px;background:#f4f5f6;color:#172127;font-size:14px;cursor:pointer;touch-action:manipulation; }
.ot-btn:disabled { opacity:.55;cursor:not-allowed; }
.ot-green { background:#317a35;color:#fff;border-color:#245e28; }
.ot-red { background:#b93632;color:#fff;border-color:#982c28; }
.ot-gold { background:#e3b43f;color:#251c05;border-color:#aa821b; }
.ot-phase-note { max-width:100%;padding:5px 8px;border-radius:5px;background:#17242ded;color:#fff;font-size:12px;text-align:center; }
.ot-notice { position:absolute;z-index:38;top:54px;right:10px;width:min(440px,calc(100% - 20px));max-height:45%;overflow:auto;box-shadow:0 4px 18px #0006;display:flex;align-items:center;gap:8px;margin:0;padding:7px 10px;border:1px solid #c8786b;border-radius:6px;background:#fff1ec;color:#80251c;font-size:13px;font-weight:bold; }
.ot-notice span { flex:1;min-width:0;overflow-wrap:anywhere; }
.ot-notice.is-timed { animation:ot-notice-fade 6s linear both; }
@keyframes ot-notice-fade { 0%,92% { opacity:1; } 100% { opacity:0;visibility:hidden; } }
.ot-notice button { flex:0 0 32px;min-height:32px;border:1px solid #ab6c63;border-radius:5px;background:#fff;color:#80251c;font-size:20px; }
.ot-live-log { position:absolute;z-index:2;left:8px;top:8px;width:clamp(86px,22%,190px);height:112px;max-height:22%;padding:0;border:0;background:none;color:#000;font:12px/1.35 Consolas,monospace;pointer-events:none; }
.ot-dark-theme .ot-live-log { color:#fff; }
.ot-live-log ol { height:100%;overflow:hidden;list-style:none;padding:0;margin:0;overflow-wrap:anywhere; }
.ot-live-log li { margin:0 0 3px; }
.ot-received-exchange { position:absolute;z-index:37;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,94%);max-height:90%;overflow:auto;padding:12px;border:1px solid var(--ot-edge);border-radius:8px;background:var(--ot-surface);color:var(--ot-text);box-shadow:0 6px 24px #0008; }
.ot-received-exchange header { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px; }
.ot-received-exchange header button { width:32px;height:32px;border:1px solid var(--ot-edge);border-radius:4px;background:var(--ot-surface);color:var(--ot-text);font-size:22px; }
.ot-received-exchange>div { display:grid;grid-template-columns:repeat(3,minmax(0,110px));justify-content:center;gap:10px; }
.ot-received-exchange img { display:block;width:100%;aspect-ratio:2/3;object-fit:contain;background:#fff;border:1px solid var(--ot-edge);border-radius:5px; }
.ot-game-announcement { position:absolute;z-index:35;inset:0;display:grid;place-items:center;padding:20px;background:#0009;color:#fff;font-size:clamp(24px,5vw,52px);font-weight:bold;text-align:center;pointer-events:none;transition:opacity .5s; }
.ot-game-announcement.is-hiding { opacity:0; }
.ot-bomb-animation { position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);width:min(300px,55%);height:min(300px,70%);background-position:center;background-repeat:no-repeat;background-size:contain;pointer-events:none;animation:ot-bomb-fade 4s linear both; }
@keyframes ot-bomb-fade { 0%,100% { opacity:0; } 50% { opacity:1; } }
.ot-achievement-popup { position:absolute;z-index:40;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:26px 24px 24px;text-align:center;border:2px solid #d5af4b;border-radius:16px;background:var(--ot-surface);color:var(--ot-text);box-shadow:0 12px 36px #0007; }
.ot-achievement-popup>button { position:absolute;top:7px;right:7px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--ot-muted);font-size:25px;cursor:pointer; }
.ot-achievement-popup>button:hover,.ot-achievement-popup>button:focus-visible { background:#d5af4b33;outline:2px solid #d5af4b; }
.ot-achievement-popup>img { display:block;width:88px;height:88px;object-fit:contain;margin:0 auto 14px; }
.ot-achievement-eyebrow { color:#856214;font-size:12px;font-weight:bold;letter-spacing:.08em;text-transform:uppercase; }
.ot-dark-theme .ot-achievement-eyebrow { color:#f0cc70; }
.ot-achievement-popup h2 { margin:9px 0;font-size:22px;line-height:1.2;overflow-wrap:anywhere; }
.ot-achievement-popup p { margin:0;font-size:14px;line-height:1.5;color:var(--ot-muted);overflow-wrap:anywhere; }
.ot-achievement-popup p>strong { display:block;margin-top:8px;color:var(--ot-text);font-size:24px; }
@media(orientation:landscape) and (max-height:500px) { .ot-achievement-popup { padding:16px 30px; }.ot-achievement-popup>img { width:56px;height:56px;margin-bottom:6px; }.ot-achievement-popup h2 { font-size:18px;margin:5px 0; }.ot-achievement-popup p>strong { font-size:20px;margin-top:3px; } }
.ot-exchange-slots { position:absolute;z-index:6;bottom:110px;left:50%;transform:translateX(-50%);width:min(510px,94%);color:#fff;text-align:center; }
.ot-exchange-slots>div { display:grid;grid-template-columns:repeat(3,minmax(0,var(--ot-exchange-card-width,54px)));justify-content:center;gap:8px; }
.ot-exchange-slot { position:relative;min-width:0; }
.ot-exchange-slot>.ot-btn { display:block;width:100%;min-width:0;min-height:0;aspect-ratio:2/3;padding:0;border:1px dashed var(--ot-edge);background:var(--ot-surface);overflow:hidden; }
.ot-exchange-slot.has-card>.ot-btn { border-style:solid;background:#fff; }
.ot-exchange-slot img { display:block;width:100%;height:100%;object-fit:contain; }
.ot-exchange-remove { position:absolute;right:3px;top:3px;display:grid;place-items:center;width:24px;height:24px;padding:0;background:#a92f2d;color:#fff;border:1px solid #fff;border-radius:4px;font-size:18px;line-height:1;cursor:pointer; }
.is-stacked-exchange .ot-exchange-slots { bottom:auto; }
.ot-chat-notice { position:absolute;z-index:5;top:8px;right:8px;max-width:25%;padding:0;border:0;background:none;color:#000;font:12px/1.35 Consolas,monospace;text-align:right;overflow-wrap:anywhere;cursor:pointer; }
.ot-dark-theme .ot-chat-notice { color:#fff; }
@media(max-width:480px) { .ot-chat-notice { font-size:10px; } }
@media(orientation:landscape) and (max-height:500px) {
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .is-stacked-exchange .ot-north { left:auto;right:8px;transform:none; }
}
.ot-board.ot-short-board { --ot-hand-bottom:8px; }
.ot-bomb-tray,.ot-special-tray { position:absolute;z-index:24;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:8px;width:min(440px,94%);max-height:88%;padding:12px;border:1px solid var(--ot-edge);border-radius:9px;background:var(--ot-surface);color:var(--ot-text);box-shadow:0 4px 25px #0008;overflow:auto;overscroll-behavior:contain; }
.ot-bomb-tray>strong,.ot-special-tray>strong { position:sticky;top:-12px;z-index:2;padding:8px;background:var(--ot-surface); }
.ot-bomb-tray>[data-action="bomb-close"] { position:sticky;bottom:-12px;flex-shrink:0; }
.ot-bomb-choice { display:flex;flex-shrink:0;justify-content:center;min-height:58px;padding:5px;border:1px solid var(--ot-edge);border-radius:5px;background:transparent;cursor:pointer; }
.ot-bomb-choice img { height:54px;width:36px;object-fit:contain;margin-left:-12px; }
.ot-bomb-choice img:first-child { margin-left:0; }
.ot-bomb-control { position:relative;min-width:0; }
.ot-bomb-control>.ot-btn { box-sizing:border-box;display:block;width:100%;min-width:0; }
.ot-bomb-menu { display:none;position:absolute;z-index:1;right:0;bottom:100%;width:max-content;max-width:min(340px,calc(100vw - 32px));max-height:clamp(68px,calc(var(--ot-table-height,620px) - 125px),360px);overflow:auto;overscroll-behavior:contain;padding:6px;gap:4px;border:1px solid var(--ot-edge);border-radius:8px;background:var(--ot-surface);box-shadow:0 5px 18px #0008; }
.ot-bomb-control.is-open>.ot-bomb-menu { display:grid; }
.ot-bomb-menu.ot-bomb-preview { right:0;bottom:50%;transform:translateY(50%);justify-items:center;pointer-events:none;background:#b93632;border:2px solid #982c28; }
.ot-bomb-menu.ot-bomb-preview .ot-bomb-choice { background:#fff;border-color:#982c28; }
@media (hover:hover) { .ot-bomb-control:not(.is-dismissed):hover>.ot-bomb-menu { display:grid; } }
.ot-bomb-menu .ot-bomb-choice { justify-content:flex-start;gap:2px;min-height:0;padding:4px; }
.ot-bomb-menu .ot-bomb-choice:hover,.ot-bomb-menu .ot-bomb-choice:focus-visible { background:var(--ot-board); }
.ot-bomb-card-corner { position:relative;flex:0 0 24px;height:31px;overflow:hidden;border:1px solid var(--ot-edge);border-radius:3px;background:#fff; }
.ot-bomb-card-corner img { position:absolute;top:0;left:0;width:120px;max-width:none;height:auto;margin:0; }
.ot-special-tray { flex-direction:row;flex-wrap:wrap;justify-content:center; }
.ot-special-tray>strong { flex-basis:100%;text-align:center; }
.ot-choice-btn { min-width:42px;min-height:42px;border:1px solid var(--ot-edge);border-radius:4px;background:var(--ot-surface);color:var(--ot-text);font-weight:bold;cursor:pointer; }
.ot-choice-btn.is-active { background:#e3b43f;color:#251c05; }
.ot-tray-backdrop { position:absolute;z-index:29;inset:0;border:0;background:#10182088; }
.ot-tray { position:absolute;z-index:30;inset:0 0 0 auto;display:flex;flex-direction:column;width:min(420px,94%);min-height:0;overflow:hidden;border:1px solid var(--ot-edge);border-radius:9px 0 0 9px;background:var(--ot-surface);color:var(--ot-text);box-shadow:-5px 0 25px #0008; }
.ot-mobile-menu .ot-tray { inset:0;width:100%;max-height:none;border-radius:8px; }
.ot-mobile-menu .ot-chat-section input { font-size:16px; }
/* Inline chat must pass scrolling to the page/fullscreen table at its edges. */
.ot-tray-content,.ot-chat { overscroll-behavior:auto; }
.ot-chat-compact-close { display:none; }
.ot-mobile-menu .is-compact-chat .ot-tray-head,.ot-mobile-menu .is-compact-chat .ot-tray-tabs,.ot-mobile-menu .is-compact-chat .ot-activity,.ot-mobile-menu .is-compact-chat .ot-chat-section>h3,.ot-mobile-menu .is-compact-chat .ot-clear { display:none; }
.ot-mobile-menu .is-compact-chat .ot-tray-content { display:flex;padding:4px;overflow:hidden; }
.ot-mobile-menu .is-compact-chat .ot-tray-panel:not([hidden]) { flex:1;min-width:0; }
.ot-mobile-menu .is-compact-chat .ot-chat-section { display:flex;flex-direction:column;flex:1;min-height:0;padding:4px; }
.ot-mobile-menu .is-compact-chat .ot-chat { flex:1;min-height:0;max-height:none; }
.ot-mobile-menu .is-compact-chat form { flex-shrink:0;margin-top:4px; }
.ot-mobile-menu .is-compact-chat .ot-chat-compact-close { display:block;min-width:36px;border:1px solid var(--ot-edge);border-radius:4px;background:var(--ot-surface);color:var(--ot-text);font-size:22px; }
.ot-tray-head { display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid var(--ot-edge); }
.ot-tray-head div { display:flex;flex-direction:column;gap:3px; }
.ot-tray-head small { font-size:10px;color:var(--ot-muted); }
.ot-tray-head b { font-size:18px; }
.ot-tray-head button { width:36px;height:36px;border:1px solid var(--ot-edge);border-radius:5px;background:var(--ot-surface);color:var(--ot-text);font-size:24px; }
.ot-tray-tabs { display:flex;flex-shrink:0;gap:5px;padding:7px; }
.ot-tray-tabs button { flex:1;min-height:40px;padding:5px;border:1px solid var(--ot-edge);border-radius:4px;background:var(--ot-surface);color:var(--ot-text); }
.ot-tray-tabs button[aria-selected="true"] { background:#e3b43f;color:#251c05;font-weight:bold; }
.ot-tray-content { flex:1;min-height:0;overflow:auto;padding:10px; }
.ot-tray-panel { display:flex;flex-direction:column;gap:12px;min-height:0; }
.ot-tray-panel[hidden] { display:none!important; }
.ot-settings-content { display:flex;flex-direction:column;gap:12px; }
.ot-settings-section,.ot-activity,.ot-chat-section { position:relative;padding:12px;border:1px solid var(--ot-edge);border-radius:6px;overflow-wrap:anywhere; }
.ot-tray-content h3 { margin:0 0 10px;font-size:14px;color:var(--ot-text); }
.ot-meta-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:12px; }
.ot-meta-grid span { display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px; }
.ot-setting-actions { display:flex;flex-wrap:wrap;gap:5px; }
.ot-setting-actions .ot-btn { min-height:38px;font-size:12px; }
.ot-table-status { margin-top:10px;font-size:12px; }
.ot-score-details {
  --ot-score-stripe:#171d2108;
  --ot-score-total:#171d2112;
  overflow:auto;
}
.ot-dark-theme .ot-score-details {
  --ot-score-stripe:#ffffff0a;
  --ot-score-total:#ffffff18;
}
.ot-score-details table { width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 3px; }
.ot-score-details th { width:50%;color:#000; }
.ot-dark-theme .ot-score-details th { color:var(--ot-text); }
.ot-score-details th,.ot-score-details td { padding:6px 8px;border:0;text-align:center; }
.ot-score-details td { font-variant-numeric:tabular-nums; }
.ot-score-details tbody tr:nth-child(odd) td { background:var(--ot-score-stripe); }
.ot-score-details tfoot td { background:var(--ot-score-total);font-weight:700; }
.ot-score-details td:first-child { border-radius:5px 0 0 5px; }
.ot-score-details td:last-child { border-radius:0 5px 5px 0; }
.ot-spectator-details { padding-left:15px; }
.ot-spectator-details li { display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:6px; }
.ot-spectator-profile,.ot-spectator-profile:visited,.ot-spectator-profile:hover,.ot-spectator-profile:focus,.ot-spectator-profile:active { color:inherit;text-decoration:none!important; }
.ot-player-option { display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--ot-edge); }
.ot-player-option>div { display:flex;flex-wrap:wrap;gap:4px; }
.ot-player-option .ot-btn { min-height:34px;padding:5px 8px;font-size:12px; }
.ot-activity-list { padding-left:18px;font-size:12px; }
.ot-activity-list li { margin:6px 0;overflow-wrap:anywhere; }
.ot-chat { max-height:25vh;overflow:auto;overflow-wrap:anywhere;font-size:13px;padding:8px;border:1px solid var(--ot-edge);border-radius:6px;background:#f0ede3; }
.ot-settings-section { background:#f0ede3;border-color:#171d21;box-shadow:0 1px 3px #0003; }
.ot-dark-theme .ot-chat,.ot-dark-theme .ot-settings-section { background:#30383e; }
.ot-chat-section form { display:flex;gap:5px;margin-top:10px;padding:6px; }
.ot-chat-section input { flex:1;min-width:0;padding:8px;border:1px solid var(--ot-edge);border-radius:4px;background:var(--ot-surface);color:var(--ot-text); }
.ot-clear { margin-top:8px;border:0;background:transparent;color:var(--ot-text);text-decoration:underline;cursor:pointer; }
.ot-side { display:none; }
/* Use the same Bootstrap btn-xs geometry as Classic's adjacent controls. */
#toggleResponsiveTable { border-radius:0;box-shadow:none; }
#toggleResponsiveTable[hidden] { display:none!important; }
#responsiveTable :is(button,input,a,[tabindex]):focus-visible { outline:3px solid #519eff;outline-offset:2px; }
#responsiveTable :is(.ot-btn,.ot-icon,.ot-classic,.ot-toolbar-action,.ot-quick-controls button,.ot-chat-section h3 button,.ot-scores-panel>h3 button) { border-color:#171d21;box-shadow:inset 0 1px 0 #fff3,0 2px 3px #0005; }
#responsiveTable :is(.ot-btn,.ot-icon,.ot-classic,.ot-toolbar-action,.ot-quick-controls button):active:not(:disabled) { box-shadow:inset 0 1px 2px #0004,0 1px 2px #0004; }
.tableIG.ot-fullscreen-mode,.tableIG.beta-mode:fullscreen { position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;padding:4px!important; }
body.ot-table-fullscreen { overflow:hidden; }
@keyframes ot-fold-flash { to { filter:brightness(1.3); } }
@media (hover:hover) { .ot-hand-card:hover { transform:translateY(-8px); }.ot-hand-card.is-selected:hover { transform:translateY(-15px); } }
@media (prefers-reduced-motion:reduce) { #responsiveTable *,#responsiveTable *:before { animation:none!important;transition:none!important; } }
@media(max-width:768px) {
  .tableIG.beta-mode { --ot-card-width:clamp(48px,13vw,64px);--ot-hand-bottom:112px;--ot-shell-inset:12px;padding:4px; }
  .ot-beta-toolbar { gap:4px;padding:4px;font-size:12px; }
  .ot-phase { flex-basis:calc(100% - 150px);font-size:12px; }
  .ot-toolbar-score { font-size:10px;padding:3px 5px; }
  .ot-toolbar-score b { font-size:13px; }
  .ot-clock { font-size:10px;flex-shrink:0; }
  .ot-icon,.ot-classic,.ot-toolbar-action,.ot-quick-controls button { min-height:32px;padding:4px 7px;font-size:11px; }
  .ot-player { --ot-seat-width:108px;grid-template-columns:28px 23px minmax(0,1fr); }
  .ot-player strong,.ot-player-name { font-size:12px; }
  .ot-north { top:8px; }.ot-west { left:8px;top:26%; }.ot-east { right:8px;top:26%; }
  .ot-south { left:8px;bottom:8px; }
  .ot-actions { right:8px;bottom:8px;max-width:calc(100% - 155px);gap:4px; }
  .ot-btn { min-width:48px;min-height:42px;padding:6px;font-size:12px; }
  .ot-trick { top:40%;max-width:64%; }
  .ot-tray { inset:auto 0 0;width:100%;max-height:94%;border-radius:12px 12px 0 0; }
  .ot-notice { font-size:12px;padding:5px 7px; }
}
@media(orientation:landscape) and (max-height:600px) {
  .tableIG.beta-mode:not(.ot-desktop-controls) { --ot-card-width:clamp(42px,6vw,60px);--ot-hand-bottom:58px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-beta-toolbar) { gap:4px;min-height:32px;padding:3px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-phase) { flex:1 1 120px;font-size:11px; } :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-clock) { font-size:10px;flex-shrink:0; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-icon,.ot-classic,.ot-toolbar-action,.ot-quick-controls button) { min-height:28px;padding:3px 6px;font-size:10px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-player { --ot-seat-max:23%; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-player strong,.ot-player-name) { font-size:11px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-north) { top:5px;left:68%; } :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-west,.ot-east) { top:15%; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-south) { left:8px;bottom:5px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-trick) { top:32%; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-actions) { bottom:5px;max-width:calc(100% - 200px); } :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-btn) { min-height:34px;padding:4px 8px;font-size:12px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-hand-wrap) { left:20%;right:20%; }
}
@media(max-width:360px) and (orientation:portrait) {
  .ot-hand-wrap { overflow-x:auto;overflow-y:hidden; }.ot-hand { min-width:100%;padding-top:18px; }

  .is-stacked-exchange .ot-west,.is-stacked-exchange .ot-east { top:22%; }
  .ot-actions { max-width:calc(100% - 135px); }
}
@container (max-width:400px) {
  .ot-player { --ot-seat-max:36%;grid-template-columns:24px 21px minmax(0,1fr);grid-template-rows:16px 18px; }
  .ot-count { width:calc(17px + var(--ot-stack-count)*2px);height:18px; }
  .ot-count i,.ot-count b { width:17px;height:18px; }
  .ot-player-meta { grid-template-columns:minmax(18px,1fr) 14px;column-gap:4px; }
  .ot-player .ot-call { width:18px;font-size:10px; }
}
/* Debug-only floating controls never reserve table or page layout space. */
#uiReplayControls { position:fixed;z-index:2147483001;bottom:8px;right:8px;width:min(620px,calc(100vw - 16px));font:12px Arial,sans-serif;text-align:left; }
#uiReplayControls:not([open]) { width:auto; }
#uiReplayControls summary { width:max-content;margin-left:auto;padding:6px 10px;border:1px solid #31708f;border-radius:5px;background:#d9edf7;color:#245269;cursor:pointer; }
#uiReplayPanel { display:grid;grid-template-columns:auto auto auto minmax(80px,1fr);align-items:center;gap:4px 6px;margin:4px 0 0;padding:8px;max-height:calc(100dvh - 60px);overflow:auto;box-shadow:0 3px 14px #0005; }
#uiReplayControls button { padding:5px 9px; }
#uiReplayState { width:100%;min-width:0; }
#uiReplayInspect,#uiReplayStatus { grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
@media(max-width:600px) {
  #uiReplayPanel { grid-template-columns:1fr auto auto; }
  #uiReplayState { grid-column:1/-1; }
}
@supports not(height:100dvh) { .tableIG.beta-mode:fullscreen,.tableIG.ot-fullscreen-mode { height:100vh!important; } }
/* Short landscape compacts the controls without changing the page layout. */
@media(orientation:landscape) and (max-height:600px) {
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-trick { top:35%; }
  #uiReplayPanel { grid-template-columns:auto auto auto minmax(80px,1fr); }
  #uiReplayControls button { padding:3px 8px; }
  #uiReplayInspect { display:none; }
  #uiReplayState { grid-column:auto; }
}

@media(max-width:480px) { .ot-live-log { font-size:10px; } }


@media(orientation:landscape) and (max-height:600px) {
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-live-log { height:76px;max-height:30%;width:28%;font-size:10px; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) :is(.ot-west,.ot-east) { top:42%; }
}

/* Give the player panels more room on laptop and desktop windows without scaling game cards. */
@media (min-width:1366px) and (min-height:640px) {
  .tableIG.beta-mode { --ot-large-ui-scale:1.5; }
  .ot-player { --ot-seat-width:186px;grid-template-columns:54px 34.5px minmax(0,1fr);grid-template-rows:26px 32px;gap:3px 4.5px;padding:5px;border-radius:12px; }
  .ot-player strong,.ot-player-name { font-size:21px; }
  .ot-player .ot-avatar-initial { font-size:25.5px; }
  .ot-player .ot-call { width:33px;height:25.5px;font-size:16.5px; }
  .ot-player-meta { grid-template-columns:minmax(33px,1fr) 21px;column-gap:9px; }
  .ot-player-timer { font-size:18px;line-height:27px; }
  .ot-count { width:calc(28.5px + var(--ot-stack-count)*3px);height:31.5px; }
  .ot-count i,.ot-count b { width:28.5px;height:31.5px;border-radius:4.5px; }
  .ot-count i { left:calc(var(--ot-stack-index)*3px); }
  .ot-count b { font-size:19.5px; }
  .ot-player-menu,.ot-received-exchange,.ot-achievement-popup,.ot-bomb-tray,.ot-special-tray { transform:translate(-50%,-50%) scale(var(--ot-large-ui-scale)); }
  .ot-player-menu,.ot-bomb-tray,.ot-special-tray { max-height:58.67%; }
  .ot-received-exchange { max-height:60%; }
  .ot-achievement-popup { max-height:60%; }
  .ot-bomb-animation { transform:translate(-50%,-50%) scale(var(--ot-large-ui-scale)); }
  .ot-exchange-slots { transform:translateX(-50%) scale(var(--ot-large-ui-scale));transform-origin:center top; }
  .ot-notice { transform:scale(var(--ot-large-ui-scale));transform-origin:top center;max-height:30%; }
  .ot-bomb-menu { transform:scale(var(--ot-large-ui-scale));transform-origin:right bottom;max-height:240px; }
  .ot-bomb-menu.ot-bomb-preview { transform:translateY(50%) scale(var(--ot-large-ui-scale));transform-origin:right center; }
  .ot-game-announcement { padding:30px;font-size:clamp(36px,7.5vw,78px); }
}



.ot-chat-notice>span { display:block; }
.ot-target-points { font-size:11px;white-space:nowrap; }
.ot-auto-fold.is-on { background:#dff2e1;color:#214b29;border-color:#5c9965; }
.ot-auto-fold.is-off { background:#f8dddd;color:#7b2525;border-color:#bb6b6b;text-decoration:line-through; }
.ot-toolbar-summary,.ot-toolbar-buttons { display:contents; }
.beta-mode #responsiveTable { container-type:inline-size; }
/* Keep the narrow toolbar on one line whenever its contents fit, then wrap controls right-aligned. */
@media(max-width:768px) {
  .ot-beta-toolbar { display:flex;flex-wrap:wrap; }
  .ot-toolbar-summary { display:flex;flex:1 1 220px;align-items:center;gap:5px;min-width:140px; }
  .ot-toolbar-summary .ot-phase { flex:1 1 auto; }
  .ot-toolbar-summary .ot-target-points,.ot-toolbar-summary .ot-time-limit { font-size:10px; }
  .ot-toolbar-summary .ot-use-timer { font-size:13px; }
  .ot-toolbar-score { flex:0 0 auto;align-self:center; }
  .ot-toolbar-buttons { display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;min-width:0;margin-left:auto; }
}
@media(min-width:769px) {
  .ot-beta-toolbar .ot-wide-panel-control { display:inline-flex; }
  .ot-beta-toolbar .ot-separate-panel-control { display:none; }
}
@media(max-width:360px) and (orientation:portrait) {
  .ot-toolbar-buttons .ot-icon,.ot-toolbar-buttons .ot-classic,.ot-toolbar-buttons .ot-toolbar-action,.ot-toolbar-buttons .ot-quick-controls button { padding:4px;font-size:10px; }
}

.ot-clock:empty { display:none; }
.ot-clock,.ot-target-points,.ot-time-limit,.ot-use-timer { display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;min-height:28px;padding:3px 5px;border:1px solid var(--ot-edge);border-radius:5px;background:var(--ot-surface);color:var(--ot-text);line-height:1; }
.ot-quick-controls .ot-spectator-count { display:inline-flex;align-items:center;justify-content:center;gap:2px;padding-inline:2px;font-variant-numeric:tabular-nums; }
.ot-quick-controls .ot-spectator-count { background:#e3effa;color:#234766;border-color:#9fb8d0; }
.ot-dark-theme .ot-quick-controls .ot-spectator-count { background:#293f55;color:#d9ebfb;border-color:#526f8b; }
.ot-spectator-count>i { flex:none;width:16px;height:10px;border:1px solid currentColor;border-radius:65%;background:radial-gradient(circle,currentColor 2px,transparent 2.5px); }
.ot-toolbar-score { align-self:center;justify-content:center;min-height:28px;border:1px solid var(--ot-edge);line-height:1; }
.ot-toolbar-score:focus-visible { outline:2px solid #4389bf;outline-offset:2px; }
.ot-clock:empty { display:none; }
.ot-toolbar-buttons button { display:inline-flex;align-items:center;justify-content:center;line-height:1; }
.ot-toolbar-buttons button svg { display:block;flex-shrink:0; }
@media(orientation:landscape) and (max-height:600px) {
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-beta-toolbar { display:flex; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-toolbar-summary { display:flex;flex:1 1 150px;align-items:center;gap:4px;min-width:0; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-toolbar-summary .ot-phase { flex:1 1 auto; }
  :where(.tableIG.beta-mode:not(.ot-desktop-controls)) .ot-toolbar-buttons { display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:4px; }
}
.tableIG.beta-mode.ot-desktop-controls .ot-actions { display:flex;flex-wrap:nowrap;width:max-content;max-width:calc(100% - var(--ot-footer-seat-space,180px) - 10px);gap:clamp(6px,1vw,12px); }
.tableIG.beta-mode.ot-desktop-controls .ot-actions>:is(.ot-btn,.ot-bomb-control) { flex:0 1 96px;width:96px;min-width:0; }
.tableIG.beta-mode.ot-desktop-controls .ot-actions>.ot-btn,.tableIG.beta-mode.ot-desktop-controls .ot-bomb-control>.ot-btn { min-height:48px;padding:10px 12px;font-size:clamp(14px,1.6vw,16px); }
.ot-north.is-spectator-seat { left:50%;right:auto;transform:translateX(-50%); }
.tableIG.beta-mode { --ot-footer-button-width:min(var(--ot-tichu-width),var(--ot-footer-button-cap,96px));--ot-tichu-width:64px;--ot-footer-bottom:10px;--ot-footer-right:12px; }
.tableIG.beta-mode.ot-desktop-controls { --ot-tichu-width:96px; }
.ot-tichu-call { position:absolute;z-index:5;left:var(--ot-footer-seat-space,180px);bottom:var(--ot-footer-bottom);box-sizing:border-box;width:var(--ot-footer-button-width);min-width:0; }
.tableIG.beta-mode.ot-desktop-controls .ot-tichu-call { min-height:48px;padding:10px 12px;font-size:clamp(14px,1.6vw,16px); }
.tableIG.beta-mode .ot-tichu-call+.ot-actions { max-width:calc(100% - var(--ot-footer-seat-space,180px) - var(--ot-footer-button-width) - var(--ot-footer-right) - 6px); }
.tableIG.beta-mode.ot-desktop-controls .ot-tichu-call+.ot-actions { flex-wrap:wrap; }
.tableIG.beta-mode .ot-tichu-call+.ot-actions>:is([data-action="fold"],[data-action="play"],[data-action="bomb"],.ot-bomb-control) { box-sizing:border-box;flex:0 0 var(--ot-footer-button-width);width:var(--ot-footer-button-width);min-width:0;justify-self:end; }
.tableIG.beta-mode .ot-tichu-call,.tableIG.beta-mode .ot-tichu-call+.ot-actions :is([data-action="fold"],[data-action="play"],[data-action="bomb"]) { padding-inline:4px; }
@media(max-width:768px) {
  .tableIG.beta-mode { --ot-tichu-width:48px;--ot-footer-bottom:8px;--ot-footer-right:8px; }

}
@media(orientation:landscape) and (max-height:600px) { .tableIG.beta-mode:not(.ot-desktop-controls) { --ot-footer-bottom:5px; } }
.ot-south.is-spectator-seat { left:50%;transform:translateX(-50%); }
