/* The live table occupies the available viewport; lobby and record layouts stay independent. */
.live-screen .bet-detail { flex: 0 0 18px; font-size: 11px; line-height: 18px; color: #b9d6c6; text-align: right; }
.live-screen .bet-detail.invalid { color: #ffc4a8; }
.live-screen #raise-amount[aria-invalid="true"] { border-color: #ed997a; }
.live-screen .waiting-controls { display: grid; align-content: center; justify-items: center; gap: 10px; flex: 1; min-height: 0; }
.live-screen .waiting-controls button { min-height: 44px; padding: 8px 18px; border: 1px solid #647e65; border-radius: 9px; background: #153a32; color: #e0eacb; font-size: 14px; }
.live-screen .waiting-controls button[aria-pressed="true"] { background: #38573d; border-color: #e4c271; color: #ffe4a2; }
.live-screen .waiting-controls span { font-size: 11px; color: #a3bdb0; text-align: center; }
.live-screen .seat-turn-clock { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 7px; padding: 1px 7px; background: #f2d18b; color: #18342a; font: 700 11px/16px system-ui; }
.live-screen .seat-turn-clock.urgent { background: #f4a487; }
.live-screen .table-sync-notice { font-size: 11px; color: #ffd78b; text-align: center; flex: 0 0 18px; line-height: 18px; }
.live-screen .action-area .bet-presets button { white-space: nowrap; font-size: 11px; }
@media (max-height:680px) and (orientation:portrait) { .live-screen:has([data-sync-notice]:not([hidden])) { grid-template-rows:44px 20px minmax(0,1fr) 90px 210px; } }
.live-screen .bet-slider .raise-amount { width:100%; min-width:0; max-width:100%; flex:none; height:28px; min-height:0; padding:2px 5px; border:1px solid #637b6d; border-radius:4px; background:#142a28; color:#f6df9e; font-size:16px; text-align:right; }
html.on-live-table, html.on-live-table body { overflow: hidden; overscroll-behavior: none; }
.live-screen { --board-width: clamp(48px, calc((100vw - 64px) / 5), 68px); --hero-width: 70px; display: grid; grid-template-rows: 50px 24px minmax(0, 1fr) 108px 204px; width: 100%; height: 100dvh; min-height: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: radial-gradient(ellipse at 50% 35%, #18483d, #071c23 70%); }
@supports not (height: 100dvh) { .live-screen { height: -webkit-fill-available; } }
.live-screen .table-top { grid-row: 1; height: auto; min-height: 0; padding: 0 6px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px; background: #09232bd9; }
.live-screen .table-title { min-width: 0; }
.live-screen .table-title b { max-width: 100%; width: 100%; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.live-screen .table-title > span { font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live-screen .table-title .connection-status { display: none; }
.live-screen .table-tools button { width: 36px; height: 42px; }
.live-screen .table-tools svg { width: 20px; height: 20px; }
.live-screen .table-tools .history-tool { width: auto; min-width: 48px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: #f4d58e; border-bottom: 2px solid transparent; }
.live-screen .table-tools .history-tool span { font-size: 11px; line-height: 1; }
.live-screen .table-tools .history-tool:active, .live-screen .table-tools .history-tool:focus-visible { border-bottom-color: #f4d58e; }
.live-screen .table-status { grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; padding: 0 8px; background: #09232b; z-index: 10; }
.live-screen .street-steps { padding: 0; gap: 2px; min-width: 0; align-items: center; }
.live-screen .street-steps span { padding: 2px 4px; font-size: 10px; line-height: 16px; white-space: nowrap; }
.live-screen .poker-table-wrap { grid-row: 3; position: relative; width: 100%; max-width: none; height: auto; min-height: 0; padding: 9px 8px; margin: 0; }
.live-screen .poker-table { height: 100%; min-height: 0; max-height: none; border: 5px solid #365349; border-radius: 30% / 38%; background: radial-gradient(ellipse at 50% 48%, #227159, #104638 70%); box-shadow: inset 0 0 0 1px #7b947050, inset 0 0 70px #001b2170, 0 8px 24px #00100d66; }
.live-screen .felt-line { inset: 12px; border-radius: inherit; border-color: #a2c98c28; }
.live-screen .poker-table:after { animation: none; background: radial-gradient(ellipse at 50% 45%, #9adea80d, transparent 65%); }
.live-screen .table-status .pot { position: static; transform: none; flex-shrink: 0; font-size: 10px; gap: 5px; align-items: baseline; white-space: nowrap; padding-left: 7px; border-left: 1px solid #a9c79b44; }
.live-screen .table-status .pot b { font: 700 16px/20px ui-sans-serif, system-ui, sans-serif; color: #ffe0a0; }
.live-screen .pot-chips { display: none; }
.live-screen .board-caption { top: 68%; font-size: 12px; letter-spacing: .02em; white-space: nowrap; z-index: 3; }
.live-screen .table-center-actions { position:absolute; left:50%; top:58%; transform:translate(-50%,-50%); z-index:8; display:flex; gap:7px; }
.live-screen .table-center-actions button { min-width:86px; min-height:40px; padding:0 12px; border:2px solid #d19d42; border-radius:7px; background:linear-gradient(#f4c96e,#c89035); color:#2a2417; font-weight:800; box-shadow:0 2px 0 #76531f; }
.live-screen .table-center-actions button:disabled { opacity:.45; }
.live-screen .community { top: 51%; gap: 6px; z-index: 4; }
.playing-card { position: relative; padding: 0; display: block; perspective: 600px; background: transparent; box-shadow: none; }
.card-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.card-face, .card-back { position: absolute; inset: 0; display: block; padding: 5px; border-radius: 5px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face { background: linear-gradient(130deg, #fffdf4, #ecf1e8); border: 1px solid #fffdf5; box-shadow: 0 3px 7px #00121140; overflow: hidden; }
.card-rank { display: block; font: 800 1em/1 ui-sans-serif, system-ui, sans-serif; }
.card-face > small { display: block; margin-top: 3px; font-size: .72em; }
.card-pip { position: absolute; right: 5px; bottom: 3px; font-size: 1.25em; line-height: 1; font-style: normal; opacity: .9; }
.card-back { display: grid; place-items: center; transform: rotateY(180deg); background: repeating-linear-gradient(40deg,#144454,#144454 4px,#245c65 4px,#245c65 6px); border: 3px solid #dbe5d8; color: #aecbbb; font-size: 28px; }
.playing-card.empty-card { display: grid; place-items: center; border: 1px dashed #c2dcc044; background: #062f2c40; box-shadow: none; }
.empty-card > i { font-size: 23px; font-style: normal; color: #bbd5b323; }
.live-screen .playing-card { width: var(--board-width); height: calc(var(--board-width) * 1.4); font: 800 27px/1 ui-sans-serif, system-ui, sans-serif; color: #13242c; }
.live-screen .playing-card.red { color: #cb253e; }
.live-screen .playing-card .card-face { padding: 6px; border-radius: 7px; }
.live-screen .player-seat { z-index: 5; width: 78px; }
.live-screen .seat-avatar { width: 40px; height: 40px; border-width: 2px; }
.live-screen .seat-info { width: 76px; min-width: 0; padding: 4px 4px 3px; margin-top: -4px; z-index: 1; border: 1px solid #829b6230; background: #061e25ed; }
.live-screen .seat-info b { max-width: 100%; font-size: 11px; line-height: 14px; }
.live-screen .seat-info span { font: 600 13px/16px ui-sans-serif, system-ui, sans-serif; }
.live-screen .seat-action { position: static; margin-top: 3px; font-size: 10px; line-height: 12px; color: #d4e5d1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.live-screen .seat-info, .live-screen .seat-avatar { pointer-events: none; }
.live-screen .seat-folded { opacity: .6; }
.live-screen .current-turn .seat-info { border-color: #f0c77e; box-shadow: 0 0 0 1px #f0c77e66; }
.live-screen .current-turn .seat-avatar { border-color: #f0c77e; }
.live-screen .current-turn:before, .live-screen .current-turn:after { display: none; }
.live-screen .online-dot { right: 17px; top: 28px; z-index: 3; }
.live-screen .dealer { top: 21px; right: 3px; width: auto; min-width: 20px; padding: 0 3px; height: 19px; z-index: 4; font-size: 9px; }
.live-screen .bet-chip { left: 50%; top: auto; bottom: -20px; transform: translateX(-50%); padding: 2px 6px; font-size: 10px; line-height: 14px; }
.live-screen .seat-lower .bet-chip { bottom: auto; top: -19px; }
.live-screen .revealed-cards { top: -3px; right: -4px; gap: 2px; transform: translateX(28%); pointer-events: none; }
.live-screen .playing-card.mini-card { width: 29px; height: 40px; font-size: 15px; }
.live-screen .mini-card .card-face { padding: 3px; border-radius: 3px; }
.live-screen .mini-card .card-face small { font-size: 11px; margin-top: 1px; }
.live-screen .mini-card .card-pip { display: none; }
.live-screen .hero-dock { grid-row: 4; min-height: 0; padding: 5px 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; background: #07252dd9; border-top: 1px solid #54776150; }
.live-screen .hero-copy { min-width: 0; }
.live-screen .hero-identity { display: flex; position: relative; align-items: center; gap: 8px; }
.live-screen .hero-identity > .hero-details { display: grid; gap: 3px; min-width: 0; }
.live-screen .hero-identity b { font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.live-screen .hero-identity strong { font-size: 19px; font-weight: 600; color: #f6d492; white-space: nowrap; }
.live-screen .hero-identity strong small { font-size: 10px; color: #9eaea5; }
.hero-position { font-size: 10px; color: #e1c681; }
.live-screen .my-cards { position: static; transform: none; gap: 6px; display: flex; align-items: center; }
.live-screen .my-cards .playing-card { width: var(--hero-width); height: calc(var(--hero-width) * 1.38); transform: none; font-size: 32px; }
.live-screen .my-cards.hand-folded { opacity: .7; filter: none; }
.live-screen .hero-to-act { border-top-color: #e9c776; box-shadow: inset 0 3px 0 #edca7255; }
.live-screen .hand-hint { min-height: 0; height: auto; margin-top: 5px; text-align: left; display: grid; gap: 3px; padding: 0; place-content: normal; position: relative; }
.live-screen .hand-hint b { font-size: 11px; line-height: 15px; color: #c4e9c8; }
.live-screen .hand-hint > span { font-size: 10px; line-height: 13px; color: #aabfb6; }
.live-screen .hand-hint #action-progress { bottom: -3px; height: 2px; left: 0; right: 0; }
.live-screen #action-clock { white-space: nowrap; color: #ffdb8d; font-size: 13px; }
.live-screen .action-area { grid-row: 5; position: static; padding: 3px 10px 7px; display: flex; flex-direction: column; gap: 3px; min-height: 0; width: 100%; background: #061d27; }
.live-screen .table-social { width: 100%; height: 28px; flex: 0 0 28px; margin: 0; gap: 7px; }
.live-screen .table-social button { height: 28px; width: 32px; border-radius: 7px; }
.live-screen .last-message-shell { min-width: 0; width: 100%; font-size: 11px; }
.live-screen .last-message-track { padding-right: 34px; }
.live-screen .bet-presets { display: flex; gap: 5px; width: 100%; padding: 0; margin: 0; flex: 0 0 29px; }
.live-screen .bet-presets button { flex: 1; height: 29px; min-width: 0; padding: 0 3px; font-size: 12px; }
.live-screen .bet-slider { width: 100%; margin: 0; height: 28px; flex: 0 0 28px; grid-template-columns: 46px minmax(0,1fr) 88px; font-size: 11px; }
.live-screen .bet-slider input { width: 100%; min-width: 0; height: 28px; }
.live-screen .bet-slider b { font-size: 14px; }
.live-screen .game-actions { width: 100%; flex: 1; min-height: 48px; gap: 8px; }
.live-screen .game-actions button { height: 100%; min-height: 48px; font-size: 17px; border-radius: 9px; }
.live-screen .game-actions b { font: 600 12px/17px ui-sans-serif, system-ui, sans-serif; }
.live-screen .game-actions button:disabled { opacity: .5; }
.live-screen .between-hand-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 6px; align-content: center; min-height: 0; height: auto; margin: 0; }
.live-screen .between-hand-actions button { min-width: 0; min-height: 36px; padding: 4px; font-size: 13px; }
.live-screen .between-hand-actions .history-inline { border-color: #7b6a3b; background: #2c3028; color: #f4d58e; }
.live-screen .insurance-panel { width: 100%; display: grid; gap: 7px; padding: 4px 0 2px; }
.live-screen .insurance-panel > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.live-screen .insurance-panel > div:first-child b { color: #f3d58e; font-size: 14px; white-space: nowrap; }
.live-screen .insurance-panel > div:first-child span { min-width: 0; color: #b5c7bc; font-size: 10px; text-align: right; }
.live-screen .insurance-panel > div:first-child i { color: #f3d58e; font-style: normal; }
.live-screen .insurance-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(70px, 1.3fr); gap: 5px; }
.live-screen .insurance-options:has(> button:only-child) { grid-template-columns:1fr; }
.live-screen .insurance-options button { min-height: 42px; padding: 2px 4px; border: 1px solid #66865e; border-radius: 7px; background: #183c32; color: #f5dfa0; font-size: 13px; font-weight: 700; }
.live-screen .insurance-options button small { display: block; color: #b8d7c0; font: 10px/13px ui-sans-serif, system-ui, sans-serif; }
.live-screen .insurance-options .insurance-decline { border-color: #52616a; background: #162a32; color: #b5c2c3; font-size: 12px; }
.live-modal .insurance-history { display: grid; gap: 4px; margin: 10px 0; padding: 9px 10px; border-left: 2px solid #d0a85b; background: #152d2c; color: #bcd0c4; font-size: 11px; }
.live-modal .insurance-history b { color: #f3d58e; }
.live-screen .insurance-panel { gap:4px; }
.insurance-panel .insurance-terms { display:flex; flex-wrap:wrap; gap:0 8px; min-width:0; margin:0; font-size:11px; line-height:16px; }
.insurance-panel .insurance-terms > span { white-space:nowrap; }
.insurance-detail-row { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:10px; min-width:0; }
.insurance-detail-row > span { min-width:0; overflow-wrap:anywhere; }
.insurance-detail-row > button { flex-shrink:0; }
.insurance-detail-row button { border:0; background:none; color:#f3d58e; padding:2px 0; font-size:11px; min-height:24px; }
.insurance-footnote { margin:0; color:#9fb9ad; font-size:9px; line-height:12px; }
.insurance-runouts { overflow:auto; max-height:42vh; margin-top:10px; }
.insurance-runouts table { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.insurance-runouts th,.insurance-runouts td { padding:8px 4px; border-bottom:1px solid #52616a; text-align:right; white-space:nowrap; }
.insurance-runouts th:first-child { text-align:left; }
.insurance-runouts thead { position:sticky; top:0; background:#142a28; }
.insurance-calculator { border:1px solid #617a65; border-radius:8px; padding:12px; margin:14px 0; }
.insurance-stats > div { gap:12px; }
.insurance-stats b { text-align:right; overflow-wrap:anywhere; }
.insurance-outs { display:flex; flex-wrap:wrap; gap:5px; margin:10px 0; }
.insurance-out-card { background:#fff7e7; color:#172f38; border-radius:4px; padding:6px 5px; font-weight:700; }
.insurance-out-card.red { color:#b52c3b; }
.insurance-odds-table { width:100%; border-collapse:collapse; text-align:center; font-variant-numeric:tabular-nums; }
.insurance-odds-table th,.insurance-odds-table td { padding:7px; border:1px solid #4b6970; }
.insurance-odds-table .current { color:#ffe3a2; background:#485239; font-weight:700; }
.insurance-last-result { color:#f3d58e; font-size:11px; margin:0; }
@media (orientation: landscape) and (min-width:600px) and (max-width:999px) {
  .live-screen .insurance-options { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
  .live-screen .insurance-options button { font-size:10px; white-space:nowrap; padding:2px; }
  .live-screen .insurance-options button small { font-size:9px; }
  .live-screen .insurance-options .insurance-decline { font-size:10px; }
}
.live-screen .intermission-status { display: grid; flex: 0 0 36px; min-height: 0; padding: 0; gap: 0; align-content: center; text-align: center; }
.live-screen .intermission-status[hidden] { display: none; }
.intermission-status b { color: #f2d196; font-size: 14px; line-height: 18px; }
.intermission-status span { font-size: 11px; line-height: 14px; color: #9fb9ad; }
.live-screen .spectating-note { font-size: 12px; padding: 9px 0; text-align: center; }
.live-screen .action-area > .spectating-note { flex: 1; display: grid; place-items: center; }
@keyframes live-card-flip { 0% { transform: rotateY(-180deg) translateY(-10px); } 40% { transform: rotateY(-90deg) translateY(-4px); } 100% { transform: rotateY(0) translateY(0); } }
@keyframes live-hand-deal { 0% { transform: translate(-50px,-65px) rotateY(-180deg) rotate(-10deg); opacity: 0; } 22% { opacity: 1; } 100% { transform: translate(0,0) rotateY(0) rotate(0); opacity: 1; } }
@media (max-width: 360px) { .live-screen { --hero-width: 59px; --board-width: calc((100vw - 58px) / 5); } .live-screen .seat-info { width: 65px; } .live-screen .player-seat { width: 66px; } .live-screen .playing-card { font-size: 24px; } .live-screen .hero-dock { padding-left: 8px; padding-right: 8px; } .live-screen .hero-identity .seat-avatar { width: 32px; height: 32px; } .live-screen .hero-identity strong { font-size: 17px; } .live-screen .table-tools { gap: 0; } .live-screen .table-tools button { width: 31px; padding: 0 2px; } .live-screen .table-tools .history-tool { width: 48px; } .live-screen .table-tools .history-tool svg { width: 18px; } .live-screen .table-tools .history-tool span { font-size: 10px; } .live-screen .between-hand-actions { gap: 5px; } .live-screen .between-hand-actions button { padding-left: 4px; padding-right: 4px; font-size: 13px; } }
@media (max-height: 680px) and (orientation: portrait) { .live-screen { --hero-width: 58px; grid-template-rows: 44px 20px minmax(0,1fr) 90px 186px; } .live-screen .playing-card { --board-width: clamp(46px, calc((100vw - 66px) / 5), 55px); font-size: 24px; } .live-screen .seat-avatar { width: 30px; height: 30px; } .live-screen .seat-info { padding: 2px 3px; } .live-screen .seat-info b { font-size: 10px; line-height: 12px; } .live-screen .seat-info span { font-size: 12px; line-height: 14px; } .live-screen .seat-action { font-size: 9px; line-height: 10px; } .live-screen .online-dot { top: 20px; } .live-screen .dealer { top: 12px; } .live-screen .pot b { font-size: 20px; } .live-screen .board-caption { top: 69%; font-size: 10px; } .live-screen .hero-identity .seat-avatar { width: 30px; height: 30px; } .live-screen .game-actions button { font-size: 16px; } .live-screen .table-top .table-tools button { height: 40px; } }
@media (orientation: landscape) and (min-width: 600px) { .live-screen { --board-width: clamp(48px, 6vw, 80px); --hero-width: 64px; grid-template-columns: minmax(0,1fr) clamp(250px,30vw,360px); grid-template-rows: 46px minmax(0,1fr); } .live-screen .table-top { grid-column: 1 / -1; grid-row: 1; padding: 0 16px; } .live-screen .table-title .connection-status { display: inline; } .live-screen .street-steps { grid-column: 1; grid-row: 2; align-self: start; z-index: 10; height: 24px; } .live-screen .poker-table-wrap { grid-column: 1; grid-row: 2; padding: 30px 14px 12px; } .live-screen .hero-dock { grid-column: 2; grid-row: 2; align-self: start; height: 142px; padding: 10px; grid-template-columns: minmax(0,1fr) auto; gap: 5px; border-left: 1px solid #42685766; } .live-screen .hero-identity .seat-avatar { display: none; } .live-screen .hero-identity strong { font-size: 17px; } .live-screen .action-area { grid-column: 2; grid-row: 2; align-self: end; height: min(220px, calc(100dvh - 192px)); min-height: 160px; border-left: 1px solid #42685766; } .live-screen .seat-avatar { width: 34px; height: 34px; } .live-screen .seat-info { width: 73px; } .live-screen .board-caption { top: 71%; } }
@media (min-width: 1000px) and (min-height: 600px) { .live-screen { --hero-width: 86px; } .live-screen .hero-dock { height: 220px; } .live-screen .hero-identity b { font-size: 15px; } .live-screen .seat-avatar { width: 50px; height: 50px; } .live-screen .seat-info { width: 94px; } .live-screen .seat-info b { font-size: 13px; line-height: 18px; } .live-screen .seat-info span { font-size: 16px; line-height: 20px; } .live-screen .playing-card { font-size: 35px; } .live-screen .my-cards .playing-card { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .card-inner { animation: none !important; } }
.reduce-motion .card-inner { animation: none !important; }
.live-screen .table-status { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 24px 24px; gap: 0 4px; }
.live-screen .pot-ribbon { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; height: 24px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #d8e8ca; font-size: 11px; text-align: left; }
.live-screen .pot-ribbon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-screen .pot-ribbon svg { width: 16px; height: 16px; flex-shrink: 0; }
.live-screen .best-five-card .card-face { outline: 2px solid #ffd877; outline-offset: 1px; box-shadow: 0 0 0 4px #6b5527; }
.live-screen .pot-winner .seat-avatar { border-color: #ffd877; box-shadow: 0 0 0 2px #ffd87766; }
.pot-detail-row { padding: 12px 0; border-bottom: 1px solid #617d6655; }
.pot-detail-row h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 15px; color: #f3d58e; }
.pot-contender { display: grid; gap: 8px; padding: 5px 0; }
.pot-contender > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; }
.pot-contender b { overflow-wrap: anywhere; min-width: 0; }
.pot-contender > div:first-child > span { flex-shrink: 0; color: #bcd0c4; }
.pot-best-five { display: flex; gap: 6px; }
.pot-best-five .playing-card { width: 35px; height: 49px; flex: 0 0 35px; font-size: 18px; }
.pot-best-five .card-face { padding: 3px; }
.pot-best-five .card-face > small { margin-top: 2px; }
.pot-best-five .card-pip { display: none; }
.live-modal [data-pot-details] h2, .live-modal .exit-pot-details h2 { font-size: 18px; }
.pot-net-summary { display: grid; gap: 6px; padding: 15px 0 0; font-size: 13px; }
.pot-net-summary strong { color: #f3d58e; }
.live-screen { grid-template-rows: 50px 48px minmax(0,1fr) 108px 204px; }
@media (max-height:680px) and (orientation:portrait) { .live-screen { grid-template-rows:44px 48px minmax(0,1fr) 90px 186px; } .live-screen:has([data-sync-notice]:not([hidden])) { grid-template-rows:44px 48px minmax(0,1fr) 90px 210px; } .live-screen .community { top:53%; } .live-screen .community .playing-card { width:44px; height:62px; font-size:22px; } .live-screen .board-caption { top:77%; } .live-screen:is([data-seat-count="7"],[data-seat-count="8"],[data-seat-count="9"]) .board-caption { display:none; } }
.live-screen .table-status .street-steps { position: static; grid-row:1; grid-column:1; height: auto; background: transparent; }
.live-screen .table-status .pot { grid-row:1; grid-column:2; }
@media (max-width: 360px) { .live-screen .table-status { padding: 0 5px; } .live-screen .street-steps span { padding: 1px 2px; font-size: 9px; } .live-screen .table-status .pot b { font-size: 14px; } }
@media (orientation: landscape) and (min-width: 600px) { .live-screen { grid-template-rows:46px minmax(0,1fr); } .live-screen .table-status { grid-column: 1; grid-row: 2; align-self: start; height: 48px; padding: 0 16px; } .live-screen .poker-table-wrap { padding-top: 54px; } }

/* Four equally selected river reveals keep the card back visible until turning. */
.playing-card[data-animating^="river"] { perspective:900px; isolation:isolate; }
.river-card-back { position:absolute;inset:0;display:grid;place-items:center;border:3px solid #e2d3a2;border-radius:7px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:repeating-linear-gradient(45deg,#123b48 0 4px,#285762 4px 6px);color:#dbc38b;font-size:28px;box-shadow:0 4px 15px #0006;pointer-events:none; }
@keyframes live-river-0 { 0%,42%{opacity:0;transform:rotateY(-180deg);}43%{opacity:1;transform:rotateY(-180deg);}78%{transform:rotateY(10deg) scale(1.08);}100%{opacity:1;transform:rotateY(0) scale(1);} }
@keyframes river-back-0 { 0%,42%{opacity:1;transform:rotateY(0);}77%,100%{opacity:0;transform:rotateY(180deg);} }
@keyframes live-river-1 { 0%,42%{opacity:0;transform:rotateX(180deg);}43%{opacity:1;transform:rotateX(180deg);}78%{transform:rotateX(-10deg) scale(1.08);}100%{opacity:1;transform:rotateX(0) scale(1);} }
@keyframes river-back-1 { 0%,42%{opacity:1;transform:rotateX(0);}77%,100%{opacity:0;transform:rotateX(-180deg);} }
@keyframes live-river-2 { 0%,42%{opacity:0;transform:rotate3d(1,1,0,-180deg) rotate(-8deg);}43%{opacity:1;transform:rotate3d(1,1,0,-180deg) rotate(-8deg);}80%{transform:rotate3d(1,1,0,9deg) rotate(2deg) scale(1.08);}100%{opacity:1;transform:rotate3d(1,1,0,0deg) rotate(0) scale(1);} }
@keyframes river-back-2 { 0%,42%{opacity:1;transform:rotate(-8deg);}77%,100%{opacity:0;transform:rotate3d(1,1,0,180deg) rotate(0);} }
@keyframes live-river-3 { 0%,42%{opacity:0;transform:rotate3d(1,-1,0,180deg) rotate(8deg);}43%{opacity:1;transform:rotate3d(1,-1,0,180deg) rotate(8deg);}80%{transform:rotate3d(1,-1,0,-9deg) rotate(-2deg) scale(1.08);}100%{opacity:1;transform:rotate3d(1,-1,0,0deg) rotate(0) scale(1);} }
@keyframes river-back-3 { 0%,42%{opacity:1;transform:rotate(8deg);}77%,100%{opacity:0;transform:rotate3d(1,-1,0,-180deg) rotate(0);} }

/* Insurance uses public showdown cards and a single next-card decision. */
.live-modal:has(.insurance-dialog) { width:min(100%,540px);padding:18px;background:#17222a;border-color:#47545e;border-radius:18px;color:#eef4f3; }
.insurance-dialog { font:13px/1.5 system-ui; }
.insurance-dialog > header { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 25px 12px 0; }
.insurance-dialog h2 { font-size:21px;margin:0!important;padding:0!important; }
.insurance-dialog header small { color:#9ab3bb; }
.insurance-buyer-tag { font-size:11px;color:#66e1bf;max-width:45%;overflow-wrap:anywhere; }
.insurance-match,.insurance-outs-block,.insurance-purchase { padding:12px;background:#0c151d;border-radius:12px;margin-bottom:10px; }
.insurance-contenders { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px; }
.insurance-contenders b { display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#d9e4e8;margin-bottom:5px; }
.insurance-public > b { font-size:11px;color:#9ab3bb; }
.insurance-card-row { display:flex;flex-wrap:wrap;gap:5px;margin-top:4px; }
.insurance-card-row .insurance-out-card { display:inline-grid;place-items:center;min-width:33px;height:43px;padding:3px;border-radius:4px;border:1px solid #ece9dc;background:#fffdf1;color:#182834;font-weight:800;font-size:16px; }
.insurance-card-row .insurance-out-card.red { color:#c73147; }
.insurance-outs-meta,.insurance-pool { display:flex;justify-content:space-between;gap:7px;color:#a5b8bd;font-size:11px; }
.insurance-outs-meta b { color:#68d4f5;font-size:15px; }
.insurance-outs-block > small { display:block;color:#9aaeb8;margin-top:6px;font-size:10px; }
.insurance-pool { margin-bottom:10px; }.insurance-pool b{color:#ffe0a0;}
.insurance-preset-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; }
.insurance-preset-grid button { min-width:0;display:grid;gap:2px;align-content:center;justify-items:center;padding:8px 2px;border:1px solid #3d505a;border-radius:8px;background:#1a2c37;color:#d6e5ea; }
.insurance-preset-grid button b { font-size:12px; }.insurance-preset-grid button span{font-size:11px;}.insurance-preset-grid button strong{color:#fff;font-size:16px;}.insurance-preset-grid button small{font-size:10px;color:#aac2cd;}
.insurance-preset-grid button[aria-pressed="true"] { border-color:#6fd9b5;background:#234637;box-shadow:inset 0 0 0 1px #6fd9b566; }.insurance-preset-grid button:disabled{opacity:.4;}
.insurance-custom-field { display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 10px;align-items:center;font-size:12px;margin:12px 0 5px; }
.insurance-custom-field input { width:100%;min-width:0;border:1px solid #425e67;border-radius:7px;padding:8px;background:#172830;color:#fff; }
.insurance-custom-field small { grid-column:2;color:#8eaab6;font-size:10px; }
.insurance-calculator > [data-insurance-preview] { font-size:11px;color:#97b0bb;line-height:1.4;margin:5px 0 12px; }
.insurance-buy-actions { display:grid;grid-template-columns:1fr 1fr 46px;gap:8px;align-items:center;position:sticky;bottom:-1px;z-index:3;background:#0c151d;padding:6px 0; }
.insurance-buy-actions button { display:grid;place-items:center;gap:2px;border:0;border-radius:9px;padding:9px 5px;color:white;font-size:14px;min-height:56px!important; }
.insurance-buy-actions small { font-size:11px; }.insurance-decline{background:#425368;}.insurance-confirm{background:#36845a;}.insurance-buy-actions button:disabled{opacity:.4;}
.insurance-timer { --progress:360deg;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;position:relative;background:conic-gradient(#f7cc78 var(--progress),#354653 0);font-size:17px;color:#fff;isolation:isolate; }
.insurance-timer:before { content:'';position:absolute;inset:3px;border-radius:50%;background:#14232c;z-index:-1; }
.insurance-countdown-note { font-size:10px;text-align:center;color:#94a9b7;margin:8px 0 0; }
.insurance-observer { color:#73dcb8;text-align:center;overflow-wrap:anywhere; }.insurance-observer-timer{display:flex;gap:10px;align-items:center;justify-content:center;font-size:11px;color:#a2b9c4;}
.insurance-rules { color:#95aeb9;font-size:11px; }.insurance-rules summary{padding:5px;cursor:pointer;}.insurance-rules > div{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;}.insurance-rules > div span{padding:5px;background:#0d1921;border-radius:4px;font-size:10px;}.insurance-rules .current{color:#78e1c1;border:1px solid #5ec79f;}
.live-screen .insurance-table-panel { display:grid;align-content:center;gap:6px;padding:8px 0;width:100%; }.live-screen .insurance-table-panel > div{display:flex;justify-content:space-between;}.live-screen .insurance-table-panel p{margin:0;font-size:12px;color:#a4c8be;}.live-screen .insurance-table-panel button{min-height:45px;border:1px solid #6bb494;border-radius:8px;background:#245142;color:#e7f5ed;font-weight:700;}.live-screen .insurance-table-panel > small{color:#9cb9ad;font-size:10px;}
.live-screen .insurance-table-notices { position:absolute;left:50%;top:70%;transform:translateX(-50%);z-index:7;width:min(62%,290px);display:grid;gap:4px; }
.insurance-seat-notice { display:flex;align-items:center;justify-content:center;gap:6px;max-width:100%;padding:5px 7px;border:1px solid #73b59666;border-radius:8px;background:#0b2429ee;color:#d1e5db;font-size:10px;line-height:1.35;text-align:left; }
.insurance-seat-notice > span:not(.insurance-shield){min-width:0;overflow-wrap:anywhere;}.insurance-seat-notice small{display:block;font-size:9px;color:#b0c5ba;}.insurance-seat-notice i{font-style:normal;white-space:nowrap;color:#86c4ae;}.insurance-shield{color:#a1dfc3;font-size:20px;}.insurance-seat-notice.is-hit{border-color:#e0c17a;color:#ffe1a4;}.insurance-seat-notice.is-buying{border-color:#89cfa7;}
.live-screen:has(.insurance-table-notices) .board-caption { display:none; }
.insurance-status-list section { background:#0c2029;border:1px solid #395a60;padding:12px;border-radius:10px;margin-bottom:10px;font-size:13px; }.insurance-status-list b{color:#8fe1c1;}.insurance-status-list p{margin:7px 0;}.insurance-status-list small{color:#a0b8ba;}

.completed-inspection-actions { position:static;display:flex;justify-content:space-between;gap:10px;flex:none; }
.live-screen .action-area:has(.completed-inspection-actions) .intermission-status { order:-1; }
.live-screen .action-area:has(.completed-inspection-actions) .between-hand-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
.live-screen .action-area:has(.completed-inspection-actions) .between-hand-actions button { font-size:11px; }
.completed-inspection-actions button { pointer-events:auto;display:grid;gap:3px;border:1px solid #778c67;border-radius:8px;padding:7px 12px;background:#173834f5;color:#edf0dc;min-height:43px; }.completed-inspection-actions small{font-size:9px;color:#bdd2b7;}.completed-inspection-actions b{font-size:12px;}.completed-inspection-actions button:disabled{opacity:.4;}
.inspection-private-notice { background:#123d38;border:1px solid #478e76;color:#a3e6c7;padding:10px;border-radius:8px;font-size:12px; }
.private-opponent-hands { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0; }.private-opponent-hands section{padding:10px;background:#0b222d;border-radius:10px;}.private-opponent-hands b{display:block;overflow-wrap:anywhere;margin-bottom:8px;font-size:12px;}.private-opponent-hands section > div{display:flex;gap:6px;}
.private-runout { display:flex;justify-content:center;gap:6px;margin:20px 0; }.private-runout > div{min-width:0;display:grid;justify-items:center;gap:7px;}.private-runout small{font-size:10px;color:#abbeb2;}.private-runout .playing-card{width:clamp(35px,11vw,54px);height:clamp(49px,15.4vw,76px);font-size:22px;}.hypothetical-card .playing-card{filter:saturate(.35);opacity:.75;}.hypothetical-card small{color:#f1d693;}
.rebuy-dialog .full + .full { margin-top:9px; }.rebuy-dialog .live-checkbox{margin:12px 0;}.rebuy-balance-error{padding:9px;border-radius:7px;background:#542a2a;color:#ffcfad;font-size:12px;}
@media (max-height:680px) and (orientation:portrait) { .live-screen .insurance-table-notices{top:73%;}.insurance-seat-notice{padding:3px 5px;font-size:9px;}.insurance-seat-notice small{font-size:8px;}.insurance-shield{font-size:16px;} }
@media (max-width:359px) { .live-modal:has(.insurance-dialog){padding:12px;}.insurance-match,.insurance-outs-block,.insurance-purchase{padding:9px;}.insurance-outs-meta b{font-size:12px;}.insurance-outs-meta{font-size:10px;}.insurance-preset-grid{gap:5px;}.insurance-preset-grid button b{font-size:11px;}.insurance-card-row .insurance-out-card{min-width:30px;height:38px;font-size:15px;}.completed-inspection-actions button{padding:6px 9px;} }
@media (orientation:landscape) and (min-width:600px) { .live-screen .completed-inspection-actions button{min-height:34px;padding:3px 8px;}.live-screen .action-area:has(.completed-inspection-actions) .between-hand-actions button{min-height:30px;}.live-screen .action-area:has(.completed-inspection-actions) .intermission-status{flex-basis:28px;}.live-screen .insurance-table-notices{top:76%;width:58%;}.live-modal:has(.insurance-dialog){width:min(100%,650px);} }
.reduce-motion .river-card-back { display:none!important; }.reduce-motion [data-animating^="river"] .card-inner{animation:none!important;}
@media (prefers-reduced-motion:reduce) { .river-card-back{display:none!important;}[data-animating^="river"] .card-inner{animation:none!important;} }

@keyframes river-notice{0%,85%{opacity:0;pointer-events:none;}100%{opacity:1;}}

.tw-settled-stack{display:block;font:500 9px/1.35 system-ui;color:#cee0d1;white-space:nowrap;}

.results-inspection .completed-inspection-actions{position:static;max-width:480px;margin:12px auto;padding:0 16px;}
