:root {
    --compact-table: 0;
    --ink: #332b22;
    --cream: #f5eedf;
    --paper: #fffaf0;
    --muted: #766b5b;
    --wood: #3c291d;
    --felt: #194c3c;
    --gold: #d6ad60;
    --bs-primary: #245e46;
    --bs-primary-rgb: 36,94,70;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--cream);
    --bs-border-color: #d9cdb8;
    --bs-secondary-color: var(--muted);
    --bs-border-radius: .65rem;
    --bs-border-radius-lg: 1rem;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; }
body { font-family: "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--wood); }
button, input { font: inherit; }
h1,h2,h3,h4,h5,.wordmark { font-family: Georgia, "Times New Roman", serif; }
h1,h2,h3 { letter-spacing: -.035em; }
a { color: #296149; }
.btn { font-weight: 600; min-height: 42px; padding: .55rem 1rem; border-radius: .6rem; }
.btn-sm { min-height: 36px; padding: .35rem .7rem; }
.btn-primary,.btn-success { --bs-btn-bg:#245e46; --bs-btn-border-color:#245e46; --bs-btn-hover-bg:#194832; --bs-btn-hover-border-color:#194832; --bs-btn-active-bg:#133a29; --bs-btn-active-border-color:#133a29; --bs-btn-disabled-bg:#245e46; --bs-btn-disabled-border-color:#245e46; }
.btn-outline-primary { --bs-btn-color:#245e46; --bs-btn-border-color:#245e46; --bs-btn-hover-bg:#245e46; --bs-btn-hover-border-color:#245e46; --bs-btn-active-bg:#245e46; --bs-btn-active-border-color:#245e46; --bs-btn-disabled-color:#245e46; --bs-btn-disabled-border-color:#245e46; }
.btn-outline-light { --bs-btn-color:#4d4438; --bs-btn-border-color:#b5a68d; --bs-btn-hover-bg:#e6dcc8; --bs-btn-hover-color:#332b22; --bs-btn-active-bg:#d9cdb8; --bs-btn-active-color:#332b22; }
.btn-outline-warning { --bs-btn-color:#825416; --bs-btn-border-color:#b58a45; --bs-btn-hover-bg:#ead6ac; --bs-btn-hover-color:#4b3210; }
.btn:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; box-shadow: none; }
.form-control { min-height: 44px; background: var(--paper); border-color: #cfc1a8; }
.form-control:focus { background: #fffdf7; border-color: #50715b; box-shadow: 0 0 0 3px #245e4620; }
.eyebrow { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.wordmark { display: inline-block; position: relative; padding-left: 43px; color: var(--cream); font-size: 1.65rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: white; }
.brand-acorn { position: absolute; left: 0; top: -3px; color: var(--gold); font-size: 2.5rem; line-height: 1; }
.brand-sub { display: block; font-family: "Segoe UI",sans-serif; font-size: .5rem; font-weight: 600; letter-spacing: .19em; margin-top: 7px; color: #beae95; }
.game-shell,.lobby-shell {
    background: repeating-linear-gradient(92deg,transparent 0 79px,#ffffff02 80px 81px,transparent 82px 160px),
        linear-gradient(110deg,#3d2c21,#271d17 65%,#3d2c21);
}
.game-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left)); overflow: clip; }
.game-toolbar { flex: 0 0 80px; display: grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; align-content:center; gap:3px 20px; width: 100%; max-width: 1600px; margin: auto; }
.game-toolbar > .wordmark { grid-column:1; grid-row:1 / 3; }
.game-toolbar > .toolbar-actions { grid-column:3; grid-row:1 / 3; }
.table-meta { grid-column:2; grid-row:1; display:flex; justify-content:center; align-items:center; gap:16px; color:#c8bda9; font-size:.75rem; }
.table-meta strong { font-weight: 500; color: #f5eedf; letter-spacing: .1em; margin-left: 5px; }
.round-chip { border: 1px solid #ba9f6d55; border-radius: 30px; padding: 6px 13px; color: #e7cca0; white-space: nowrap; }
.game-summary { grid-column:2; grid-row:2; display:flex; align-items:center; justify-content:center; gap:12px; min-width:0; color:#eadbbe; }
.game-summary-copy { min-width:0; text-align:center; }
.game-contract,.contract-declarer { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.game-contract { font-size:.85rem; }
.contract-declarer { font-size:.68rem; color:#bfd8e5; }
.trick-progress { flex:0 0 auto; border-left:1px solid #d8bd8650; padding-left:12px; font-size:.68rem; color:#d6c5a6; white-space:nowrap; }
.toolbar-actions { display: flex; gap: 7px; }
.btn-table { --bs-btn-color:#ede1ca; --bs-btn-border-color:#e0c79b40; --bs-btn-hover-color:white; --bs-btn-hover-bg:#f5eedf16; --bs-btn-hover-border-color:#d6ad60; --bs-btn-disabled-color:#a99880; --bs-btn-disabled-border-color:#c9b18a20; color: var(--bs-btn-color); font-size: .78rem; }
.btn-table i { margin-right: 6px; }
.btn-table.is-on { color: var(--gold); border-color: var(--gold); }
.table-frame { flex: 1; min-height: 0; width: 100%; max-width: 1600px; margin: 0 auto; border-radius: 32px; padding: 10px; border: 1px solid #a97e4c77; background: linear-gradient(150deg,#825b37,#3e291b 45%,#715032); box-shadow: 0 10px 35px #0006,inset 0 1px 1px #efc58a55; }
.game-table { overflow:clip; height: 100%; position: relative; display: grid; grid-template-columns: minmax(135px,1fr) minmax(230px,3fr) minmax(135px,1fr); grid-template-rows: 132px minmax(0,1fr) clamp(125px,24vh,240px); gap: 4px 10px; padding: 18px 24px 10px; border-radius: 24px; border: 1px solid #a4bb9370; isolation: isolate; color: var(--cream); background: radial-gradient(ellipse at 50% 45%,#32634b 0%,#1c4d3b 50%,#123a2d 100%); box-shadow: inset 0 0 70px #071e2090; }
.game-table::before { content:""; position:absolute; pointer-events:none; inset: 9px; border: 1px solid #d5c48b22; border-radius: 18px; }
.opponent-seat { min-width: 0; position: relative; z-index: 2; }
.seat-1 { grid-column: 1; grid-row: 2; align-self: center; }
.seat-2 { grid-column: 2; grid-row: 1; justify-self: center; width: min(270px,100%); }
.seat-3 { grid-column: 3; grid-row: 2; align-self: center; }
.player-panel { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 12px; color: var(--ink); background: linear-gradient(140deg,#fff9eb,#eaddc2); border: 1px solid #e6d1a4; box-shadow: 0 6px 14px #071f2630; min-width: 0; }
.player-panel.is-declarer,.local-player.is-declarer { background:linear-gradient(140deg,#e5f2f8,#c3dce9); border-color:#93bfd3; color:#243e4d; }
.player-panel.is-declarer .player-avatar { background:#366276; border-color:#84aebf; }
.player-panel.is-active,.local-player.is-active { background:linear-gradient(140deg,#ffe5a2,#e7b95f); color:#3f2c13; border-color:#f8d78b; outline:2px solid #edc369; outline-offset:3px; box-shadow:0 0 24px #efc26d40; }
.player-panel.is-active .player-avatar { background:#6d4d20; border-color:#ac7b35; }
.player-panel.is-active .player-detail { font-weight:700; }
.player-panel.is-empty { background: #fff4db0c; color: #d2dacb; border: 1px dashed #c6d4b460; box-shadow: none; }
.player-avatar { flex: 0 0 32px; height: 32px; display: grid; place-items: center; background: #295b45; border: 1px solid #81947a; color: #f9efda; border-radius: 50%; font: 17px Georgia,serif; }
.is-empty .player-avatar { background: transparent; border-style: dashed; }
.player-identity { flex: 1; min-width: 0; }
.player-name { display: block; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-detail { display:flex; align-items:center; justify-content:inherit; gap:4px; font-size:.65rem; overflow:hidden; white-space:nowrap; margin-top:2px; }
.player-detail > span:last-child { overflow:hidden; text-overflow:ellipsis; }
.declarer-badge { display:inline-block; flex:0 0 auto; padding:1px 5px; border-radius:4px; background:#315d71; color:#f0f8fc; font-size:.6rem; font-weight:700; line-height:1.4; }
.seat-tag { font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; color: #766b5b; }
.trick-stack { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; font-size: .7rem; }
.stack-cards { display: inline-block; width: 12px; height: 18px; border-radius: 2px; background: #59705b; border: 1px solid #e8d8b3; box-shadow: -2px 1px 0 #6d805f,-4px 2px 0 #d1c6a7; transform: rotate(8deg); }
.opponent-hand { position: relative; width: 100%; height: 85px; margin-top: 14px; pointer-events: none; }
.card-back { width: 42px; height: 76px; border: 3px solid #f4ead5; border-radius: 4px; background: repeating-linear-gradient(45deg,#812c29 0 2px,#963c32 2px 4px); position: absolute; left: calc(50% + var(--back-position)*13px); top: 0; transform: translateX(-50%) rotate(calc(var(--back-position)*3deg)); box-shadow: 0 2px 4px #0003; }
.seat-1 .opponent-hand,.seat-3 .opponent-hand { height: 95px; }
.seat-2 .opponent-hand { margin-top: 10px; height: 46px; overflow: hidden; }
.seat-2 .card-back { width: 34px; height: 62px; }
.table-center { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.live-trick { width:100%; height:100%; padding-top:14px; container-type:size; }
.trick-layout { --trick-height: min(42cqh,174px); position: relative; width: 100%; height: 100%; min-height: 125px; }
.trick-slot { position: absolute; height: var(--trick-height); width: calc(var(--trick-height)*.55062); left: 50%; top: 50%; z-index: 1; }
.trick-slot-0 { transform: translate(-38%, -7%) rotate(5deg); z-index: 4; }
.trick-slot-1 { transform: translate(-125%, -58%) rotate(-12deg); z-index: 2; }
.trick-slot-2 { transform: translate(-55%, -107%) rotate(-4deg); }
.trick-slot-3 { transform: translate(30%, -60%) rotate(12deg); z-index: 3; }
.trick-card-target { width: 100%; height: var(--trick-height); }
.skcard { width: 100%; aspect-ratio: 156.3 / 283.86; background-size: 100% 100%; background-repeat: no-repeat; background-color: #fffcf4; border: 0; border-radius: 5px; box-shadow: 0 3px 7px #0004; display: block; padding: 0; }
.trick-player { display: block; font-size: .6rem; max-width: 100%; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 3px 0; color: #f5e6c9; text-shadow: 0 1px 2px #000; }
.is-winner .skcard { outline: 3px solid var(--gold); outline-offset: 3px; }
.trick-caption { position: absolute; bottom: -10px; left: 0; right: 0; text-align: center; color: #fff2cd; font-size: .75rem; z-index: 5; }
.trick-caption span:not(.winner-mark) { color: #c9d5bb; }
.winner-mark { color: #edc77d; }
.local-seat { grid-column: 1 / -1; grid-row: 3; min-height: 0; position: relative; display: flex; flex-direction: column; z-index: 5; width: 100%; max-width: 1150px; justify-self: center; }
.local-seat.is-active::before { content:""; position:absolute; inset:-4px -8px -100px; z-index:-1; border-top:2px solid #e5bc67; border-radius:16px 16px 0 0; background:linear-gradient(#edc67522,transparent 75%); pointer-events:none; }
.local-status { display:flex; flex-wrap:wrap; gap:8px 18px; justify-content:center; align-items:center; flex:0 0 42px; min-width:0; }
.local-player { display:flex; align-items:center; gap:10px; min-width:0; padding:4px 10px; border:1px solid #bcc9ad45; border-radius:9px; background:#143c30; }
.local-identity { min-width:0; line-height:1.1; }
.local-identity .declarer-badge { margin-top:2px; }
.local-name { display:block; font-size:.8rem; max-width:150px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.local-name small { color: #b4c4a8; font-size: .55rem; letter-spacing: .12em; margin-left: 6px; }
.local-player.is-active .local-name small,.local-player.is-declarer .local-name small { color:inherit; }
.turn-indicator { font-size:.78rem; display:flex; align-items:center; justify-content:center; gap:8px; color:#bdcfb4; }
.turn-indicator::before { content:""; width: 6px; height: 6px; background: #849c83; border-radius: 50%; }
.turn-indicator.your-turn { min-height:38px; padding:7px 16px; border-radius:9px; background:#ffdb89; border:1px solid #ffe9b8; color:#38290f; font-size:1.05rem; font-weight:800; box-shadow:0 3px 18px #070f1240; }
.turn-indicator.your-turn::before { display:none; }
.turn-indicator.your-turn i { font-size:1.15em; }
.hand-container { flex: 1; position: relative; min-height: 0; width: 100%; --hand-card-width: 80px; --hand-step: 35px; touch-action: none; user-select: none; -webkit-user-select: none; }
.hand-card { --fan:calc(var(--position)*2deg); position: absolute; top: 18px; width: var(--hand-card-width); left: calc(50% + var(--position)*var(--hand-step)); transform: translate(calc(-50% + var(--drag-x,0px)),var(--drag-y,0px)) rotate(var(--fan)); transform-origin: 50% 85%; transition: transform .16s ease; }
.hand-card .skcard { touch-action: none; -webkit-touch-callout: none; cursor: default; outline-offset: -2px; }
.hand-card .skcard.is-playable { outline: 2px solid #efcb7c; cursor: grab; }
.hand-card .skcard[aria-disabled="true"] { filter: saturate(.7) brightness(.87); }
.hand-card:focus-within { z-index: 20; }
.hand-card .skcard:focus-visible { outline: 3px solid #fff3b2; outline-offset: 3px; }
.hand-card.is-dragging { z-index: 30; transition: none; }
.hand-card.is-dragging .skcard { cursor: grabbing; }
@media (hover:hover) and (pointer:fine) {
    .hand-card:hover:not(.is-dragging):not(.is-touch-selected) { transform: translate(-50%,-14px) rotate(var(--fan)); z-index: 21; }
}
.hand-card.is-touch-selected { transform:translate(-50%,var(--touch-lift,-52px)) rotate(0deg); z-index:30; }
.local-seat:has(.is-touch-selected) { z-index:8; }
.hand-card.is-touch-selected .skcard { outline:3px solid #ffdc88; outline-offset:2px; filter:none; box-shadow:0 0 0 7px #ffdc8826,0 12px 24px #061c1866; }
.hand-card.is-touch-selected .skcard[aria-disabled="true"] { outline-color:#c3c6b8; }
.hand-container.is-scrubbing .hand-card { transition:none; }
.is-play-armed .is-touch-selected .skcard { outline-color:#fff2ac; box-shadow:0 0 0 8px #ffdc8855,0 12px 24px #061c1866; }
.is-play-armed .touch-selection { border-color:#ffdc88; background:#fff0c4; }
.touch-selection { position:absolute; bottom:calc(100% + 61px + var(--selection-raise,0px)); left:50%; transform:translateX(-50%); width:min(100%,380px); display:flex; align-items:center; gap:8px; padding:7px 8px 7px 12px; border:1px solid #cfb474; border-radius:12px; background:#fff8e8; color:var(--ink); box-shadow:0 6px 24px #071f2655; z-index:40; touch-action:manipulation; }
.touch-selection[hidden] { display:none; }
.touch-selection-copy { flex:1; min-width:0; }
.touch-selection-name { display:block; font-size:.82rem; }
.touch-selection-hint { display:block; color:var(--muted); font-size:.62rem; margin-top:2px; }
.touch-play,.touch-dismiss { min-width:48px; min-height:48px; touch-action:manipulation; }
.touch-play { padding:8px 13px; }
.touch-dismiss { border:0; border-radius:7px; background:transparent; color:#78684b; font-size:1.65rem; }
.touch-guidance { display:none; }
@media (any-pointer:coarse) { .game-footer .mouse-guidance { display:none; } .touch-guidance { display:inline; } }
@media (max-height:500px) {
    .hand-card.is-touch-selected { transform:translate(-50%,var(--touch-lift,-32px)) rotate(0deg); }
    .touch-selection { bottom:calc(100% + 34px + var(--selection-raise,0px)); padding-top:3px; padding-bottom:3px; }
}
.card-flight { position: fixed; top: 0; left: 0; z-index: 1040; pointer-events: none; margin: 0; transform-origin: center; will-change: transform; }
.play-error { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); background: #fff4df; color: #9a3528; border-radius: 5px; padding: 5px 12px; font-size: .75rem; z-index: 40; }
.table-signature { position: absolute; bottom: 20px; right: 24px; opacity: .35; font-size: .52rem; letter-spacing: .2em; writing-mode: vertical-rl; }
.game-footer { flex: 0 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1600px; margin: auto; color: #ac9b83; font-size: .62rem; }
.app-version { font-size: .65rem; white-space: nowrap; }
.waiting-panel { text-align: center; max-width: 430px; padding: 14px; z-index: 2; }
.waiting-panel .eyebrow { color: #cbbb8b; font-size: .55rem; }
.waiting-panel h1 { font-size: clamp(1.5rem,2.6vw,2.5rem); margin: 10px 0; }
.waiting-panel p { font-size: .83rem; color: #c9d5be; }
.waiting-panel .text-muted { color: #c9d5be!important; font-size: .66rem; }
.waiting-panel .btn-success { --bs-btn-bg: #e5c07a; --bs-btn-border-color: #e5c07a; --bs-btn-color: #38291b; --bs-btn-hover-bg: #f4d699; --bs-btn-hover-border-color: #f4d699; --bs-btn-hover-color: #38291b; }
.lobby-shell { min-height: 100vh; min-height: 100dvh; padding: 0 max(24px,env(safe-area-inset-left)); color: var(--cream); }
.lobby-header { max-width: 1120px; margin: auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #c5a66e25; }
.lobby-note { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #c7b89e; }
.lobby-main { max-width: 1120px; margin: auto; min-height: calc(100vh - 165px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; padding: 65px 0; }
.lobby-copy .eyebrow { color: #d0ac6c; }
.lobby-copy h1 { font-size: clamp(2.8rem,5.5vw,5.3rem); line-height: 1.05; margin: 24px 0; font-weight: 400; }
.lobby-copy h1 em { color: #d4b57b; font-weight: 400; }
.lobby-copy > p { color: #c6bba8; max-width: 390px; font-size: .95rem; line-height: 1.8; }
.lobby-features { display: flex; gap: 22px; margin-top: 28px; font-size: .7rem; color: #c7bca8; }
.lobby-features i { color: #d3b575; margin-right: 5px; }
.lobby-card { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 34px; border: 1px solid #f1d8a3; box-shadow: 0 20px 60px #0004; }
.lobby-card .eyebrow { color: #8a7652; }
.lobby-card h2 { font-size: 2rem; margin: 12px 0 10px; }
.lobby-card p { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.lobby-card .btn { width: 100%; }
.lobby-card .form-label { font-size: .75rem; font-weight: 600; }
.lobby-divider { display: flex; align-items: center; gap: 16px; color: #8c7b61; font-size: .62rem; letter-spacing: .15em; margin: 24px 0; }
.lobby-divider::before,.lobby-divider::after { content:""; height: 1px; flex: 1; background: #d6c9b2; }
.lobby-deck { height: 150px; position: relative; margin-top: 38px; }
.lobby-deck .skcard { position: absolute; width: 70px; left: 90px; top: 5px; transform: rotate(-15deg); }
.lobby-deck .skcard:nth-child(2) { left: 146px; top: 0; transform: rotate(2deg); }
.lobby-deck .skcard:nth-child(3) { left: 200px; transform: rotate(17deg); }
.lobby-footer { max-width: 1120px; margin: auto; padding: 22px 0; border-top: 1px solid #c5a66e25; color: #aa9b82; font-size: .65rem; display: flex; justify-content: space-between; gap: 20px; }
.modal { --bs-modal-bg: var(--cream); --bs-modal-color: var(--ink); --bs-modal-border-color:#d5c29a; --bs-modal-header-border-color:#dbcfb9; --bs-modal-footer-border-color:#dbcfb9; }
.modal-content { box-shadow: 0 25px 80px #0005; border-radius: 17px; }
.modal-header { padding: 21px 24px; }
.modal-title { font-size: 1.5rem; color: #3d3324; letter-spacing: -.025em; }
.modal-body { padding: 24px; }
.modal-footer { padding: 15px 24px; gap: 8px; }
.modal-backdrop { --bs-backdrop-opacity:.68; background-color:#101c15; }
.modal .btn-group { flex-wrap: wrap; gap: 5px; background: transparent!important; }
.modal .btn-group .btn { border-radius: .5rem!important; }
.report-heading .eyebrow { color:#8b7142; }
.report-heading { gap:12px; }
.report-heading > div:first-child { min-width:0; }
.result-price { flex:0 0 auto; min-width:78px; padding:8px 12px; border:1px solid #d5c29a; border-radius:10px; background:#fff9ed; text-align:center; }
.result-price span { display:block; margin-bottom:4px; color:var(--muted); font-size:.65rem; }
.result-price strong { display:block; font:1.65rem/1 Georgia,serif; color:var(--ink); }
.result-summary { padding: 23px; background: #fff9ed; border: 1px solid #dbcfb9; border-radius: 12px; margin-bottom: 24px; }
.result-summary h2 { margin: 7px 0 10px; font-size: 1.9rem; }
.result-summary p { font-size:.85rem; color:var(--muted); }
.result-outcome { display:inline-block; background:#245e4610; border:1px solid #245e4635; color:#245e46; border-radius:30px; padding:5px 13px; font-size:.75rem; font-weight:600; }
.result-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; border-top:1px solid #e2d8c4; padding-top:16px; margin-top:20px; }
.result-metrics strong { display:block; font:1.5rem Georgia,serif; }
.result-metrics span { font-size:.66rem; color:var(--muted); }
.table { --bs-table-bg:transparent; --bs-table-color:var(--ink); --bs-table-striped-bg:#a5894c0b; --bs-table-border-color:#d9cdb8; font-size:.85rem; }
.table > :not(caption) > * > * { padding:12px 9px; }
.table thead th { font-size:.65rem; text-transform:uppercase; letter-spacing:.08em; color:#7f6e50; }
.result-seat-controls { margin-top:22px; padding-top:12px; border-top:1px solid #dbcfb9; }
.review-table { height: min(65vh,550px); min-height:280px; border-radius:16px; background:radial-gradient(ellipse at center,#32634b,#123a2d); padding:25px; }
.review-table .trick-layout { --trick-height:min(23vh,210px); }
.review-table .trick-caption { bottom:8px; }
.starting-hand { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 26px; }
.starting-hand .skcard { width:clamp(40px,8vw,75px); flex:0 0 auto; }
.empty-trick { text-align:center; padding:45px 15px; color:var(--muted); }
@media (min-width:1800px) {
    .game-toolbar { flex-basis:92px; }
    .game-table { grid-template-columns:260px 1fr 260px; grid-template-rows:132px minmax(0,1fr) 240px; padding:25px 40px 16px; }
    .trick-layout { --trick-height:min(42cqh,190px); }
}
@media (max-width:1000px) {
    .table-meta > span:first-child { display:none; }
    .toolbar-actions .btn span { display:none; }
    .toolbar-actions .btn i { margin:0; }
    .toolbar-actions .btn { width:42px; padding:8px; }
    .game-table { padding:16px 15px 8px; grid-template-columns:minmax(110px,1fr) minmax(200px,2.7fr) minmax(110px,1fr); gap:4px 8px; }
    .player-panel { gap:6px; padding:9px; flex-wrap:wrap; }
    .player-avatar { width:26px; height:26px; flex-basis:26px; font-size:14px; }
    .seat-tag { display:none; }
    .player-panel .trick-stack { margin-left:auto; }
    .lobby-main { gap:35px; }
}
@media (max-width:600px) and (min-height:501px) {
    .game-shell { padding-left:max(6px,env(safe-area-inset-left)); padding-right:max(6px,env(safe-area-inset-right)); }
    .game-toolbar { flex-basis:104px; gap:5px 8px; padding:5px 4px; }
    .game-toolbar > .wordmark,.game-toolbar > .toolbar-actions { grid-row:1; }
    .game-summary { grid-column:1 / -1; grid-row:2; justify-content:space-between; padding:5px 9px; border:1px solid #acbfc02b; border-radius:7px; background:#fff8e907; }
    .game-summary-copy { text-align:left; }
    .wordmark { font-size:1.2rem; padding-left:29px; }
    .brand-acorn { font-size:1.8rem; top:0; }
    .brand-sub { font-size:.35rem; letter-spacing:.12em; }
    .toolbar-actions { gap:4px; }
    .toolbar-actions .btn { min-height:36px; width:34px; padding:6px; }
    .table-meta { font-size:.6rem; }
    .round-chip { padding:5px 8px; }
    .table-frame { padding:5px; border-radius:22px; }
    .game-table { padding:13px 9px 5px; border-radius:17px; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:104px minmax(0,1fr) clamp(125px,23vh,200px); gap:0 7px; }
    .seat-1,.seat-2,.seat-3 { grid-row:1; align-self:start; width:100%; }
    .seat-1 { grid-column:1; }
    .seat-2 { grid-column:2; }
    .seat-3 { grid-column:3; }
    .player-panel { padding:7px 6px; gap:4px; border-radius:8px; justify-content:center; flex-wrap:wrap; }
    .player-avatar { display:none; }
    .player-identity { flex-basis:100%; text-align:center; }
    .player-name { font-size:.7rem; }
    .player-detail { font-size:.52rem; }
    .player-detail { justify-content:center; }
    .player-detail .declarer-badge { font-size:.48rem; padding:1px 3px; }
    .player-panel .trick-stack { margin:0; font-size:.6rem; }
    .stack-cards { width:9px; height:12px; }
    .opponent-hand,.seat-1 .opponent-hand,.seat-2 .opponent-hand,.seat-3 .opponent-hand { height:23px; margin-top:7px; overflow:hidden; }
    .card-back,.seat-2 .card-back { width:18px; height:32px; border-width:2px; left:calc(50% + var(--back-position)*7px); border-radius:3px; }
    .table-center { grid-column:1 / -1; grid-row:2; }
    .live-trick { padding-top:16px; padding-bottom:13px; }
    .trick-layout { --trick-height:min(42cqh,130px); }
    .trick-player { font-size:.54rem; }
    .trick-caption { font-size:.64rem; bottom:-14px; }
    .local-seat { grid-row:3; }
    .local-status { gap:5px 8px; flex-basis:38px; }
    .local-player { gap:6px; padding:4px 7px; }
    .local-name { font-size:.7rem; max-width:75px; }
    .turn-indicator { font-size:.65rem; }
    .turn-indicator.your-turn { min-height:34px; padding:6px 9px; font-size:.88rem; gap:6px; }
    .local-name small { display:none; }
    .game-footer { flex-basis:27px; font-size:.52rem; justify-content:center; }
    .game-footer span:first-child { display:none; }
    .table-signature { display:none; }
    .waiting-panel { padding:5px 10px; }
    .waiting-panel p { font-size:.7rem; margin-bottom:8px; }
    .waiting-panel .eyebrow { display:none; }
    .waiting-panel .btn { min-height:36px; font-size:.7rem; padding:7px 10px; }
    .waiting-panel h1 { font-size:1.5rem; margin:7px 0; }
}
@media (max-height:500px) {
    .game-shell { padding:0 max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left)); }
    .game-toolbar { flex-basis:58px; gap:1px 10px; padding:0 6px; }
    .game-summary { gap:7px; }
    .game-summary-copy { display:flex; gap:6px; align-items:baseline; }
    .game-contract,.contract-declarer { font-size:.65rem; }
    .contract-declarer { border-left:1px solid #d8bd8650; padding-left:6px; }
    .trick-progress { font-size:.58rem; padding-left:7px; }
    .wordmark { font-size:1.1rem; padding-left:28px; }
    .brand-acorn { font-size:1.7rem; top:-3px; }
    .brand-sub { display:none; }
    .table-meta { font-size:.6rem; }
    .round-chip { padding:4px 9px; }
    .toolbar-actions .btn { min-height:32px; width:34px; padding:4px; }
    .game-footer { flex-basis:19px; font-size:.5rem; }
    .table-frame { padding:4px; border-radius:20px; }
    .game-table { padding:9px 12px 3px; grid-template-columns:115px minmax(150px,1fr) 115px; grid-template-rows:37px minmax(0,1fr) 90px; gap:0 5px; border-radius:16px; }
    .seat-2 { width:185px; z-index:6; }
    .player-panel { padding:5px 7px; gap:5px; flex-wrap:nowrap; border-radius:7px; }
    .player-avatar { display:none; }
    .player-name { font-size:.65rem; }
    .player-detail { font-size:.52rem; }
    .opponent-hand,.seat-1 .opponent-hand,.seat-3 .opponent-hand { height:40px; margin-top:7px; overflow:hidden; }
    .seat-2 .opponent-hand { display:block; position:absolute; top:0; right:-35px; width:42px; height:34px; margin:0; overflow:hidden; z-index:-1; }
    .card-back { width:25px; height:45px; border-width:2px; left:calc(50% + var(--back-position)*8px); }
    .live-trick { padding-top:20px; }
    .trick-layout { --trick-height: min(42cqh,70px); min-height:0; }
    .trick-player { font-size:.45rem; padding:1px; }
    .trick-caption { font-size:.55rem; bottom:-12px; }
    .local-status { flex-basis:32px; gap:10px; }
    .local-player { padding:3px 7px; gap:7px; }
    .local-name { font-size:.65rem; }
    .turn-indicator { font-size:.65rem; }
    .turn-indicator.your-turn { min-height:28px; font-size:.8rem; padding:3px 10px; }
    .local-name small { display:none; }
    .hand-card { top:7px; }
    .table-signature { display:none; }
    .waiting-panel { padding:0; }
    .waiting-panel h1 { font-size:1.05rem; margin:3px; }
    .waiting-panel p,.waiting-panel .eyebrow,.waiting-panel .text-muted { display:none; }
    .waiting-panel .btn { min-height:28px; font-size:.6rem; padding:4px 7px; }
    .waiting-panel > .my-2 { margin:3px!important; }
    .modal-dialog { margin:8px auto; max-height:calc(100% - 16px); }
    .modal-header { padding:12px 20px; }
    .modal-body { padding:16px 20px; }
    .modal-footer { padding:10px 20px; }
}
@media (max-width:720px) {
    .lobby-shell { padding:0 22px; }
    .lobby-header { min-height:85px; }
    .lobby-note { font-size:.5rem; text-align:right; max-width:100px; }
    .lobby-main { grid-template-columns:1fr; padding:35px 0; gap:28px; min-height:0; }
    .lobby-copy h1 { font-size:3.2rem; margin:18px 0; }
    .lobby-copy > p { max-width:100%; font-size:.85rem; }
    .lobby-deck { display:none; }
    .lobby-features { margin-top:17px; font-size:.65rem; }
    .lobby-card { padding:26px; }
    .lobby-footer { font-size:.55rem; }
    .modal { --bs-modal-margin:12px; }
    .modal-dialog { margin:var(--bs-modal-margin); }
    .modal-header,.modal-body { padding:20px; }
    .modal-footer { padding:13px 20px; }
    .modal-title { font-size:1.3rem; }
    .result-summary { padding:17px; }
    .result-summary h2 { font-size:1.55rem; }
    .result-metrics strong { font-size:1.3rem; }
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
/* A single row keeps all four trick faces readable in short landscape windows. */
@media (max-height:500px) {
    .live-trick { padding-top:0; padding-bottom:4px; }
    .trick-layout { --trick-height:min(calc(100cqh - 18px),90px); }
    .trick-slot { top:47%; }
    .trick-slot-1 { left:calc(50% - var(--trick-height)*.55062*1.05); transform:translate(-50%,-50%) rotate(-4deg); }
    .trick-slot-2 { left:calc(50% - var(--trick-height)*.55062*.35); transform:translate(-50%,-50%) rotate(2deg); }
    .trick-slot-3 { left:calc(50% + var(--trick-height)*.55062*.35); transform:translate(-50%,-50%) rotate(-2deg); }
    .trick-slot-0 { left:calc(50% + var(--trick-height)*.55062*1.05); transform:translate(-50%,-50%) rotate(4deg); }
    .trick-caption { bottom:-12px; }
    .review-table .trick-layout { --trick-height:min(38vh,140px); }
}/* Keep player labels outside the overlapping faces. */
.trick-slot-1 .trick-player,.trick-slot-2 .trick-player,.trick-slot-3 .trick-player { position:absolute; top:-19px; left:0; right:0; }
@media (max-width:600px) and (min-height:501px) and (max-height:680px) {
    .trick-layout { --trick-height:min(calc(100cqh - 20px),115px); }
    .trick-slot { top:48%; }
    .trick-slot-1 { left:calc(50% - var(--trick-height)*.55062*1.05); transform:translate(-50%,-50%) rotate(-4deg); }
    .trick-slot-2 { left:calc(50% - var(--trick-height)*.55062*.35); transform:translate(-50%,-50%) rotate(2deg); }
    .trick-slot-3 { left:calc(50% + var(--trick-height)*.55062*.35); transform:translate(-50%,-50%) rotate(-2deg); }
    .trick-slot-0 { left:calc(50% + var(--trick-height)*.55062*1.05); transform:translate(-50%,-50%) rotate(4deg); }
    .review-table .trick-layout { --trick-height:min(25vh,130px); }
    .trick-slot .trick-player { position:static; }
}
@media (max-height:500px) { .trick-slot .trick-player { position:static; } }
@media (max-width:600px) { .hand-card { --fan:calc(var(--position)*.6deg); } }

/* Desktop tricks use a tighter overlap so the faces can grow without reaching
   the hand or player panels. Constrain both axes for narrow browser windows. */
@media (min-width:1001px) and (min-height:651px) {
    .live-trick .trick-layout { --trick-height:min(calc((100cqh - 42px)/1.5),60cqw,340px); }
    .live-trick .trick-slot-0 { transform:translate(-38%,-29%) rotate(5deg); }
    .live-trick .trick-slot-1 { transform:translate(-115%,-53%) rotate(-8deg); }
    .live-trick .trick-slot-2 { transform:translate(-55%,-71%) rotate(-4deg); }
    .live-trick .trick-slot-3 { transform:translate(22%,-53%) rotate(8deg); }
}
/* HD and laptop screens have ample width but little vertical room. Spread the
   same ordered pile sideways rather than shrinking every card to fit a cross. */
@media (min-width:1001px) and (min-height:651px) and (max-height:850px) {
    .live-trick .trick-layout { --trick-height:min(calc((100cqh - 32px)/1.06),50cqw,280px); }
    .live-trick .trick-slot { top:48%; }
    .live-trick .trick-slot-1 { left:calc(50% - var(--trick-height)*.55062*1.05); transform:translate(-50%,-50%) rotate(-4deg); }
    .live-trick .trick-slot-2 { left:calc(50% - var(--trick-height)*.55062*.35); transform:translate(-50%,-50%) rotate(2deg); }
    .live-trick .trick-slot-3 { left:calc(50% + var(--trick-height)*.55062*.35); transform:translate(-50%,-50%) rotate(-2deg); }
    .live-trick .trick-slot-0 { left:calc(50% + var(--trick-height)*.55062*1.05); transform:translate(-50%,-50%) rotate(4deg); }
    .live-trick .trick-slot .trick-player { position:static; }
}

/* Each back represents one remaining card. Hand boxes stay the same size as
   cards leave, providing a neutral animation origin for all opponents. */
.opponent-hand,.seat-1 .opponent-hand,.seat-2 .opponent-hand,.seat-3 .opponent-hand {
    display:flex; align-items:center; justify-content:center; height:62px;
    margin-top:10px; overflow:visible;
}
.card-back,.seat-2 .card-back {
    position:relative; flex:0 0 28px; width:28px; height:50px; top:auto; left:auto;
    margin-left:-12px; transform:rotate(calc(var(--back-position)*1deg));
}
.card-back:first-child { margin-left:0; }
.hand-count { position:absolute; left:calc(50% + 68px); top:20px; min-width:19px; height:19px;
    border:1px solid #d8c79670; border-radius:50%; background:#173e30; color:#eedab3;
    display:grid; place-items:center; font-size:.6rem; }
@media (max-width:1000px) {
    .card-back,.seat-2 .card-back { flex-basis:24px; width:24px; height:44px; margin-left:-13px; }
    .card-back:first-child { margin-left:0; }
    .hand-count { left:calc(50% + 45px); }
}
@media (max-width:600px) and (min-height:501px) {
    .opponent-hand,.seat-1 .opponent-hand,.seat-2 .opponent-hand,.seat-3 .opponent-hand { height:32px; margin-top:6px; }
    .card-back,.seat-2 .card-back { flex-basis:16px; width:16px; height:29px; margin-left:-7px; border-width:2px; }
    .card-back:first-child { margin-left:0; }
    .hand-count { left:auto; right:0; top:21px; min-width:15px; height:15px; font-size:.5rem; }
}
@media (max-height:500px) {
    .opponent-hand,.seat-1 .opponent-hand,.seat-3 .opponent-hand { height:36px; margin-top:6px; }
    .seat-2 .opponent-hand { position:absolute; top:0; left:-105px; right:auto; width:95px; height:36px; margin:0; z-index:0; }
    .card-back,.seat-2 .card-back { flex-basis:14px; width:14px; height:26px; margin-left:-5px; border-width:2px; }
    .card-back:first-child { margin-left:0; }
    .hand-count { left:auto; right:1px; top:20px; min-width:14px; height:14px; font-size:.48rem; }
}

/* Both bidding presentations share controls and a single selection state. */
.bidding-controls { display:flex; flex-direction:column; min-height:0; width:100%; max-height:100%; }
.bidding-title { flex:none; margin:0; padding:18px 22px; }
.bidding-options { min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 22px 18px; }
.bidding-field + .bidding-field { margin-top:14px; }
.bidding-label { display:block; font-size:.82rem; font-weight:600; margin-bottom:6px; }
.bidding-controls .btn-group { display:flex; flex-wrap:wrap; gap:5px; width:100%; }
.bidding-controls .btn-group .btn { border-radius:7px!important; margin:0; }
.bidding-controls .btn { min-height:44px; }
.bidding-confirm { flex:none; display:flex; justify-content:flex-end; gap:8px; border-top:1px solid #dbcfb9; padding:12px 22px; }
.bidding-confirm .btn[aria-pressed="true"] { background:#ead6ac; color:#4b3210; }
.bidding-modal .bidding-controls { max-height:calc(100dvh - 64px); }
.bidding-panel { display:flex; min-height:0; max-height:100%; width:100%; max-width:680px; border:1px solid #d5c29a; border-radius:12px; background:var(--cream); color:var(--ink); box-shadow:0 5px 18px #071f2630; overflow:hidden; }

/* The full safe width belongs to the hand, including short landscape windows. */
@media (max-width:1024px), (max-height:500px) {
    :root { --compact-table:1; }
    .game-shell { padding-left:max(4px,env(safe-area-inset-left)); padding-right:max(4px,env(safe-area-inset-right)); }
    .table-frame { padding:4px; }
    .game-table { padding-left:3px; padding-right:3px; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:100px minmax(0,1fr) clamp(180px,32dvh,300px); gap:4px 8px; }
    .seat-1,.seat-2,.seat-3 { grid-row:1; align-self:start; width:100%; max-width:260px; justify-self:center; }
    .seat-1 { grid-column:1; }
    .seat-2 { grid-column:2; }
    .seat-3 { grid-column:3; }
    .table-center { grid-column:1 / -1; grid-row:2; }
    .has-bidding-panel { grid-template-rows:40px minmax(0,1fr) clamp(180px,32dvh,300px); }
    .has-bidding-panel .opponent-hand,.has-bidding-panel .player-detail { display:none; }
    .has-bidding-panel .player-panel { flex-wrap:nowrap; padding:6px; }
    .has-bidding-panel .player-identity { flex-basis:auto; text-align:left; }
    .game-shell:has(.has-bidding-panel) .game-footer { display:none; }
    .local-seat { max-width:none; }
    .local-status { flex-basis:36px; gap:6px; }
    .hand-card { top:12px; --fan:calc(var(--position)*.35deg); }
    .bidding-title { padding:8px 12px; font-size:1.15rem; }
    .bidding-label { display:none; }
    .bidding-field + .bidding-field { margin-top:8px; }
    .bidding-options { padding:0 12px 8px; }
    .bidding-confirm { padding:6px 12px; }
    .bidding-controls .btn { padding:6px 10px; font-size:.82rem; }
    .table-signature { display:none; }
    .hand-container[data-inspect-only="true"] .skcard { filter:none; }
    .hand-container[data-inspect-only="true"] .is-touch-selected { transform:translate(-50%,0) rotate(0); }
    .hand-container[data-inspect-only="true"] .touch-selection { top:-34px; bottom:auto; padding:0 8px; width:auto; max-width:100%; height:34px; white-space:nowrap; }
    .hand-container[data-inspect-only="true"] .touch-selection-hint,
    .hand-container[data-inspect-only="true"] .touch-play { display:none; }
    .hand-container[data-inspect-only="true"] .touch-dismiss { min-height:32px; height:32px; min-width:44px; font-size:1.3rem; }
    .local-seat:has([data-inspect-only="true"] .is-touch-selected) .local-status { visibility:hidden; }
}
@media (max-width:600px) and (min-height:501px) {
    .game-table { grid-template-rows:94px minmax(0,1fr) clamp(180px,32dvh,280px); }
    .game-table.has-bidding-panel { grid-template-rows:40px minmax(0,1fr) clamp(180px,32dvh,280px); }
    .bidding-title { font-size:1rem; }
    .bidding-controls .btn { padding-left:7px; padding-right:7px; }
}
@media (max-height:500px) {
    .game-shell { padding-top:env(safe-area-inset-top); }
    .game-toolbar { flex-basis:44px; }
    .game-footer { display:none; }
    .game-table { padding-top:4px; padding-bottom:2px; grid-template-rows:40px minmax(0,1fr) clamp(128px,40dvh,200px); gap:3px 8px; }
    .player-panel { padding:4px 7px; }
    .opponent-hand,.seat-1 .opponent-hand,.seat-2 .opponent-hand,.seat-3 .opponent-hand { display:none; }
    .local-status { flex-basis:28px; }
    .local-player { padding:2px 6px; }
    .hand-card { top:10px; }
    .has-bidding-panel { grid-template-rows:28px minmax(0,1fr) clamp(112px,36dvh,170px); }
    .has-bidding-panel .player-detail { display:none; }
    .bidding-panel { max-width:none; }
    .bidding-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto minmax(0,1fr); padding:5px 7px; gap:3px 8px; }
    .bidding-title { grid-column:1 / -1; padding:0; font-size:.95rem; }
    .bidding-controls:has(.bidding-confirm) .bidding-title { grid-column:1; }
    .bidding-options { grid-column:1 / -1; padding:0; display:flex; flex-wrap:wrap; gap:4px 8px; }
    .bidding-controls:has(.bidding-confirm) .bidding-options { grid-column:1; }
    .bidding-field { flex:1 1 200px; }
    .bidding-field + .bidding-field { margin-top:0; }
    .bidding-label { display:none; }
    .bidding-controls .btn { padding:4px 7px; font-size:.75rem; }
    .bidding-confirm { grid-column:2; grid-row:1 / 3; padding:0; border:0; flex-direction:column; justify-content:flex-end; gap:4px; }
    .bidding-interest { align-self:start; }
}

/* During play, the status occupies the left of the middle row. The hand keeps
   the entire bottom row, while the live trick can use the freed vertical space. */
@media (max-width:1024px), (max-height:500px) {
    .game-table.is-playing { --status-width:clamp(88px,20vw,140px); grid-template-rows:100px minmax(0,1fr) clamp(136px,24dvh,230px); }
    .is-playing .local-seat { display:contents; }
    .is-playing .local-seat::before { display:none; }
    .is-playing .local-status { grid-column:1; grid-row:2; align-self:center; justify-self:start; width:var(--status-width); flex-direction:column; align-items:stretch; gap:8px; padding:3px; z-index:6; }
    .is-playing .turn-indicator { justify-content:flex-start; text-align:left; font-size:.72rem; }
    .is-playing .turn-indicator.your-turn { padding:6px; gap:4px; font-size:.78rem; }
    .is-playing .local-player { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:6px; gap:4px; }
    .is-playing .local-identity { display:contents; }
    .is-playing .local-name { grid-column:1 / -1; max-width:100%; font-size:.7rem; }
    .is-playing .local-player .declarer-badge { justify-self:start; }
    .is-playing .local-player .trick-stack { grid-column:2; grid-row:2; }
    .is-playing .local-name small { display:none; }
    .is-playing .table-center { margin-left:calc(var(--status-width) + 8px); }
    .is-playing .hand-container { grid-column:1 / -1; grid-row:3; z-index:5; }
    .is-playing .hand-container:has(.is-touch-selected) { z-index:8; }
    .is-playing .live-trick { padding:0; }
    .is-playing .live-trick .trick-layout { min-height:0; --trick-height:min(calc((100cqh - 38px)/1.05),calc(100cqw/1.45),260px); }
    .is-playing .live-trick .trick-slot { top:48%; }
    .is-playing .live-trick .trick-slot-1 { left:calc(50% - var(--trick-height)*.55062*.75); transform:translate(-50%,-50%) rotate(-3deg); }
    .is-playing .live-trick .trick-slot-2 { left:calc(50% - var(--trick-height)*.55062*.25); transform:translate(-50%,-50%) rotate(2deg); }
    .is-playing .live-trick .trick-slot-3 { left:calc(50% + var(--trick-height)*.55062*.25); transform:translate(-50%,-50%) rotate(-2deg); }
    .is-playing .live-trick .trick-slot-0 { left:calc(50% + var(--trick-height)*.55062*.75); transform:translate(-50%,-50%) rotate(3deg); }
    .is-playing .live-trick .trick-player { font-size:.65rem; padding:1px 0; }
    .is-playing .live-trick .trick-slot-1 .trick-player,.is-playing .live-trick .trick-slot-3 .trick-player { position:absolute; top:-17px; left:0; right:0; }
    .is-playing .live-trick .trick-slot-0 .trick-player,.is-playing .live-trick .trick-slot-2 .trick-player { position:static; }
    .is-playing .live-trick .trick-caption { bottom:-3px; font-size:.65rem; }
}
@media (max-width:600px) and (min-height:501px) {
    .game-table.is-playing { grid-template-rows:94px minmax(0,1fr) clamp(136px,24dvh,210px); }
}
@media (max-height:500px) {
    .game-table.is-playing { grid-template-rows:36px minmax(0,1fr) clamp(86px,26dvh,128px); }
    .is-playing .opponent-seat .player-panel { padding-top:2px; padding-bottom:2px; }
}
@media (min-width:601px) and (max-width:1024px), (max-height:500px) {
    .is-playing .live-trick .trick-layout { --trick-height:min(calc((100cqh - 38px)/1.05),calc(100cqw/2.05),260px); }
    .is-playing .live-trick .trick-slot-1 { left:calc(50% - var(--trick-height)*.55062*1.275); }
    .is-playing .live-trick .trick-slot-2 { left:calc(50% - var(--trick-height)*.55062*.425); }
    .is-playing .live-trick .trick-slot-3 { left:calc(50% + var(--trick-height)*.55062*.425); }
    .is-playing .live-trick .trick-slot-0 { left:calc(50% + var(--trick-height)*.55062*1.275); }
}
