.practice-card{grid-column:1/-1;display:grid;grid-template-columns:64px 1fr auto;column-gap:20px;align-items:center}
.practice-card .mode-icon{grid-row:1/5;margin:0}
.practice-card .eyebrow,.practice-card h2,.practice-card .muted,.practice-card .hint{grid-column:2;margin:4px 0;min-height:0}
.practice-card .wide{grid-column:3;grid-row:1/5;width:190px;margin:0}
.practice-notice{margin:0 0 15px;padding:10px 14px;border:1px solid #e6c37b44;border-radius:8px;color:#ead5a7;font-size:12px;line-height:1.7;background:#e6c37b0b}
.card.card-art{background:transparent;box-shadow:none;border:0;border-radius:0}
.card-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 4px #0005)}
.seat.self .card{width:74px;height:104px}
.seat.self .cards{height:112px}
.seat.current .cards{filter:drop-shadow(0 0 6px #e6c37b44)}
.seat.current .seat-card{border-width:2px}
@media(max-width:760px){.practice-card{display:block}.practice-card .mode-icon{margin-bottom:12px}.practice-card .wide{width:100%;margin-top:18px}.seat.self .card{width:60px;height:84px}.seat.self .cards{height:90px}}
@media(max-width:440px){.seat.self .card{width:50px;height:70px}.seat.self .cards{height:76px}.practice-notice{font-size:11px}}

/* Give the active table most of the screen and keep its information readable. */
body.game-view main{width:min(1560px,calc(100% - 32px));padding:20px 0 36px}
.game-view .room-heading{margin-bottom:18px}
.game-view .room-heading h1{font-size:40px}
.game-view .room-heading .muted{font-size:16px}
.game-view .room-heading .eyebrow{font-size:12px}
.game-view .table-shell{padding:24px;border-radius:22px}
.game-view .practice-notice{font-size:14px;padding:12px 16px}
.game-view .felt{height:clamp(700px,72vh,840px);min-height:700px;max-height:none}
.game-view .round-pill,.game-view .timer-pill{font-size:15px;padding:10px 16px}
.game-view .seat{gap:8px;min-width:180px}
.game-view .seat.self{top:76%!important}
.game-view .cards{height:126px;gap:6px}
.game-view .card{width:84px;height:118px}
.game-view .seat.self .card{width:112px;height:157px}
.game-view .seat.self .cards{height:165px}
.game-view .seat-card{min-width:170px;padding:11px 16px}
.game-view .seat-name{font-size:17px;max-width:230px}
.game-view .seat-info{font-size:14px;margin-top:7px;line-height:1.4}
.game-view .cards-note{font-size:14px;min-height:20px;color:#e4eee5}
.game-view .card-rank{font-size:34px}
.game-view .card-suit{font-size:28px}
.game-view .felt-center{min-width:230px;max-width:38%;top:46%}
.game-view .table-emblem{font-size:34px}
.game-view .felt-center .eyebrow{font-size:13px}
.game-view .felt-center strong{font-size:48px}
.game-view .felt-center small{font-size:14px}
.game-view .turn-label{font-size:16px;line-height:1.6;margin-top:12px}
.game-view .table-turn-label{text-align:center;margin:0 0 16px;color:#f3d38b}
.game-view .action-bar{gap:12px;padding-top:22px}
.game-view .action-bar .button,.game-view .action-bar select{height:56px;font-size:18px;min-width:126px;padding:0 20px}
.game-view .action-bar .hint{font-size:16px}
.game-view .hand-result{font-size:17px;line-height:1.6;padding:16px 20px}
@media(max-width:1050px){
  .game-view .table-shell{padding:18px}
  .game-view .card{width:70px;height:98px}
  .game-view .cards{height:106px}
  .game-view .seat.self .card{width:100px;height:140px}
  .game-view .seat.self .cards{height:148px}
  .game-view .seat-name{font-size:15px;max-width:190px}
  .game-view .seat-info{font-size:13px}
  .game-view .seat-card{min-width:145px;padding:9px 12px}
  .game-view .action-bar .button,.game-view .action-bar select{font-size:16px;padding:0 14px;min-width:110px}
}
@media(max-width:760px){
  body.game-view main{width:calc(100% - 20px);padding-top:16px}
  .game-view .room-heading h1{font-size:30px}
  .game-view .room-heading .muted{font-size:14px}
  .game-view .table-shell{padding:12px}
  .game-view .felt{height:580px;min-height:580px}
  .game-view .seat{min-width:120px;gap:6px}
  .game-view .card{width:56px;height:78px}
  .game-view .cards{height:86px;gap:3px}
  .game-view .seat.self .card{width:82px;height:115px}
  .game-view .seat.self .cards{height:123px}
  .game-view .seat.self{top:77%!important}
  .game-view .seat-card{min-width:120px;padding:8px 9px}
  .game-view .seat-name{font-size:14px;max-width:150px}
  .game-view .seat-info,.game-view .cards-note{font-size:12px}
  .game-view .felt-center{min-width:165px}
  .game-view .felt-center strong{font-size:38px}
  .game-view .felt-center small{font-size:12px}
  .game-view .turn-label{font-size:14px}
  .game-view .action-bar{gap:8px}
  .game-view .action-bar .button,.game-view .action-bar select{height:52px;min-width:95px;font-size:15px;padding:0 10px}
  .game-view .round-pill,.game-view .timer-pill{font-size:13px;padding:9px 12px}
}
@media(max-width:440px){
  .game-view .room-heading h1{font-size:25px}
  .game-view .practice-notice{font-size:12px}
  .game-view .felt{height:520px;min-height:520px;border-width:5px}
  .game-view .card{width:46px;height:64px}
  .game-view .cards{height:72px;gap:2px}
  .game-view .seat.self .card{width:64px;height:90px}
  .game-view .seat.self .cards{height:98px}
  .game-view .seat-name{font-size:13px;max-width:120px}
  .game-view .seat-info{font-size:11px}
  .game-view .seat-card{min-width:110px;padding:7px}
  .game-view .cards-note{font-size:11px}
  .game-view .felt-center{min-width:150px}
  .game-view .felt-center strong{font-size:34px}
}

/* Action feedback uses one shared art set; words and amounts stay live text. */
.action-call{--action-color:#74cff2}.action-raise{--action-color:#ecc56b}.action-compare{--action-color:#c4a4f4}.action-fold{--action-color:#fa8f86}
.action-broadcast{min-height:64px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 30px;margin:0 0 16px;background:url(/assets/actions/broadcast_frame.png) center/100% 100% no-repeat;color:var(--action-color,#ead5a7);font-size:18px;font-weight:600;line-height:1.6;text-align:center}
.action-broadcast img{width:42px;height:42px;flex-shrink:0}
.seat-action{position:absolute;top:100%;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;width:216px;min-height:56px;padding:8px 15px;background-size:100% 100%;background-repeat:no-repeat;color:var(--action-color);font-size:18px;font-weight:700;white-space:nowrap;z-index:3}
.seat-action img{width:34px;height:34px;flex-shrink:0}
.out-of-hand .cards{opacity:.42}.out-of-hand .seat-card{border-color:#fa8f8655}
.comparing .seat-card{outline:3px solid #c4a4f4;box-shadow:0 0 24px #c4a4f455}
.game-view .action-bar .button[class*="action-"]{display:flex;align-items:center;justify-content:center;gap:7px;border-color:var(--action-color);color:var(--action-color);background:#0a2524}
.action-bar .button img{width:36px;height:36px}.action-bar .button:disabled{opacity:.5;cursor:wait}
.action-history{margin-top:22px;border-top:1px solid #e6c37b33;padding-top:14px;color:#cdded5}
.action-history summary{cursor:pointer;font-size:15px}.action-history ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.action-history li{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.5;color:var(--action-color)}
.action-history img{width:28px;height:28px;flex-shrink:0}
.action-effects{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden;border-radius:inherit}
.chip-effect{position:absolute;width:88px;height:88px;animation:chip-to-pot .4s ease-in forwards}
.compare-effect{position:absolute;width:180px;height:180px;left:50%;top:46%;transform:translate(-50%,-50%);animation:compare-flash .65s ease-out forwards}
@keyframes chip-to-pot{from{left:var(--from-x,50%);top:var(--from-y,76%);transform:translate(-50%,-50%) scale(.7);opacity:1}to{left:50%;top:46%;transform:translate(-50%,-50%) scale(.45);opacity:0}}
@keyframes compare-flash{0%{opacity:0;transform:translate(-50%,-50%) scale(.65)}35%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.12)}}
@media(max-width:760px){.action-broadcast{font-size:15px;padding:10px 16px;min-height:60px;gap:6px}.action-broadcast img{width:32px;height:32px}.seat-action{width:160px;min-height:46px;font-size:15px;gap:4px;padding:6px 10px}.seat-action img{width:27px;height:27px}.action-bar .button img{width:27px;height:27px}.action-history li{font-size:13px}.compare-effect{width:130px;height:130px}}
@media(max-width:440px){.seat-action{width:130px;font-size:13px;min-height:40px}.seat-action img{width:23px;height:23px}.action-broadcast{font-size:14px}.game-view .action-bar .button[class*="action-"]{gap:3px}.action-bar .button img{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.chip-effect,.compare-effect{animation:none;display:none}.comparing .seat-card{box-shadow:none}}
/* Keep feedback in the seat layout so the rounded table cannot clip it. */
.seat-action{position:static;transform:none;flex-shrink:0}
.game-view .seat.self{top:72%!important}
/* Leave clear space between the pot and the enlarged local hand. */
.game-view .felt-center{top:36%}
.compare-effect{top:36%}
@keyframes chip-to-pot{from{left:var(--from-x,50%);top:var(--from-y,76%);transform:translate(-50%,-50%) scale(.7);opacity:1}to{left:50%;top:36%;transform:translate(-50%,-50%) scale(.45);opacity:0}}

.audio-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 18px;padding:10px 0;border-bottom:1px solid #ecc56b33;font-size:14px;color:#cdded5}
.audio-controls .button{height:38px;padding:0 12px;font-size:14px;min-width:70px}
.audio-controls input[type=range]{width:140px;height:24px;padding:0;border:0;accent-color:#ecc56b}
.audio-controls output{min-width:38px;color:#ecc56b;font-variant-numeric:tabular-nums}
#audio-status{margin-left:auto;font-size:12px;color:#b8cfc3}
@media(max-width:550px){.audio-controls{gap:8px}.audio-controls input[type=range]{width:100px}#audio-status{width:100%;margin-left:0}}

/* Prominent action countdown, separate from the round indicator. */
.game-view .table-topline{align-items:center;gap:16px;flex-wrap:wrap}
.game-view .timer-pill{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 22px;min-width:310px;padding:14px 22px;border:2px solid #e6c37b;background:#102b26;color:#fff3d4;border-radius:16px;box-shadow:0 0 24px #e6c37b22;white-space:normal}
.timer-caption{font-size:17px;font-weight:700;grid-column:1;line-height:1.4}
.timer-value{grid-column:2;grid-row:1/3;display:flex;align-items:baseline;gap:6px}
.timer-value strong{font:800 48px/1 var(--sans);font-variant-numeric:tabular-nums;min-width:2ch;text-align:center}
.timer-value>span{font-size:17px;font-weight:700}
.timer-hint{grid-column:1;font-size:13px;color:#d6c9a8;line-height:1.4}
.game-view .timer-pill.urgent{background:#571f26;border-color:#ff777f;color:#fff;box-shadow:0 0 24px #f34b6055;animation:countdown-pulse 1s ease-in-out infinite}
.timer-pill.urgent .timer-hint{color:#ffd0d3;font-weight:700}
@keyframes countdown-pulse{50%{box-shadow:0 0 32px #f34b6088}}
@media(max-width:600px){.game-view .timer-pill{width:100%;min-width:0;padding:12px 16px}.timer-value strong{font-size:42px}.timer-caption{font-size:16px}}
@media(prefers-reduced-motion:reduce){.game-view .timer-pill.urgent{animation:none}}
.game-view .table-topline{position:sticky;top:8px;z-index:30;background:#102b26ed;border-radius:16px;padding:6px;box-shadow:0 6px 20px #0003}
.dissolve-panel{padding:20px;margin:16px 0;border:2px solid #e6c37b;background:#3d3020;border-radius:14px;color:#fff1d0}.dissolve-panel strong{font-size:20px}.dissolve-panel p{line-height:1.8}.dissolve-panel .button{margin:6px 12px 0 0;min-height:48px}

/* Seats and pot occupy separate grid cells; their real heights size each row. */
.game-view .table-shell{container-type:inline-size}
.game-view .felt{
  --opponent-card-width:clamp(30px,calc((100cqw - 150px)/6),84px);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:auto minmax(170px,auto) auto;
  gap:22px 16px;
  align-items:center;
  height:auto;min-height:740px;max-height:none;
  padding:42px 28px;border-radius:100px / 80px;
}
.game-view .player-seats{display:contents}
.game-view .felt .seat{
  position:relative;left:auto;top:auto!important;transform:none;
  min-width:0;width:100%;max-width:300px;justify-self:center;
  gap:6px;z-index:2;
}
.game-view .seat[data-position="top"]{grid-area:1/1/2/4}
.game-view .seat[data-position="upper-left"]{grid-area:1/1/2/2}
.game-view .seat[data-position="upper-right"]{grid-area:1/3/2/4}
.game-view .seat[data-position="left"]{grid-area:2/1/3/2}
.game-view .seat[data-position="right"]{grid-area:2/3/3/4}
.game-view .seat[data-position="self"]{grid-area:3/1/4/4;max-width:380px}
.game-view .felt .felt-center{
  grid-area:2/2/3/3;position:relative;left:auto;top:auto;transform:none;
  min-width:0;max-width:none;width:100%;padding:16px 4px;z-index:1;
  overflow-wrap:anywhere;
}
.game-view .felt-center strong{font-size:clamp(28px,4cqw,48px)}
.game-view .felt .card{width:var(--opponent-card-width);height:auto;aspect-ratio:5/7;flex-shrink:0}
.game-view .felt .cards{height:auto;min-height:0;gap:4px;flex-shrink:0}
.game-view .felt .seat.self .card{width:clamp(64px,10cqw,112px);height:auto}
.game-view .felt .seat.self .cards{height:auto}
.game-view .felt .seat-card{min-width:0;max-width:100%;width:220px;flex-shrink:0;padding:10px 12px}
.game-view .felt .seat-name{max-width:100%}
.game-view .felt .seat-info{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.game-view .felt .cards-note{min-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-view .felt .seat-action{width:min(216px,100%);max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:16px}
.game-view .felt .compare-effect{left:var(--to-x,50%);top:var(--to-y,50%)}
.game-view .felt .chip-effect{animation-name:layout-chip-to-pot}
@keyframes layout-chip-to-pot{from{left:var(--from-x,50%);top:var(--from-y,76%);transform:translate(-50%,-50%) scale(.7);opacity:1}to{left:var(--to-x,50%);top:var(--to-y,50%);transform:translate(-50%,-50%) scale(.45);opacity:0}}
/* Narrow tables dedicate a full row to the pot instead of squeezing it
   between two opponents. Applies to narrow app panels as well as phones. */
@container(max-width:960px){
  .game-view .felt{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto auto;gap:18px 12px;padding:28px 16px;min-height:640px;border-radius:60px / 46px}
  .game-view .seat[data-position="top"]{grid-area:1/1/2/3}
  .game-view .seat[data-position="upper-left"]{grid-area:1/1/2/2}
  .game-view .seat[data-position="upper-right"]{grid-area:1/2/2/3}
  .game-view .seat[data-position="left"]{grid-area:2/1/3/2}
  .game-view .seat[data-position="right"]{grid-area:2/2/3/3}
  .game-view .felt .felt-center{grid-area:3/1/4/3;min-height:135px}
  .game-view .seat[data-position="self"]{grid-area:4/1/5/3}
  .game-view .felt .seat-card{padding:8px}
  .game-view .felt .seat-info{font-size:13px}
  .game-view .felt .seat-name{font-size:15px}
  .game-view .felt .seat-action{font-size:14px;min-height:40px;padding:6px}
  .game-view .felt .seat-action img{width:24px;height:24px}
}

/* End-of-hand cards stay legible even for folded or defeated players. */
.game-view .seat.showdown.out-of-hand .cards{opacity:1}
