/* Variant-specific layout leaves the Hold'em table and dock intact. */
/* Keep the full two-digit index visible even at the outside fan angles. */
.seat.many-cards .hole-cards .card-slot + .card-slot { margin-left: -8px; }
.seat.hero.many-cards { left: 10px; width: 180px; --nameplate-half:49px; --feedback-rise: 21px; }
.seat.hero.many-cards .player-box { width: 98px; left: 50%; right: auto; transform: translateX(-50%); }
.seat.hero.many-cards .hole-cards .card-slot,
.seat.hero.many-cards .hole-cards .playing-card { width: 43px; height: 70px; }
.seat.hero.many-cards .hole-cards .card-slot + .card-slot { margin-left: -10px; }
.seat.hero.many-cards .playing-card { --corner-suit-size: 13px; --large-suit-size: 19px; }
.seat.hero.many-cards .card-corner { font-size: 29px; left: 2px; }
.seat.hero.many-cards .seat-bet { left: calc(100% - 2px); }
.private-hand-label { position: absolute; top: calc(100% + 4px); left: 0; width: max-content; min-width:0; max-width:none; padding: 2px 5px; border:1px solid #77624677; border-radius:3px; color: #e8d3a3; background:#191419ed; text-shadow: 0 1px 2px #000b; font-size: 10px; line-height: 13px; text-align:left; white-space:nowrap; overflow:visible; pointer-events:none; z-index:5; }
.seat.hero .private-hand-label,.seat.hero .private-hand-label.split-hand-label { left:calc(50% - var(--nameplate-half));width:max-content;max-width:none; }
.private-hand-label > :is(span,small) { display:block;font-size:inherit;line-height:13px;white-space:nowrap; }
.private-hand-label > small { color:#b4a28c; }
/* Five-card games keep a stable caption gutter above the betting utilities. */
.table-view:has(.seat.hero.many-cards) { --dock-height:160px; }
.seat.empty-seat .avatar { opacity: .23; filter: grayscale(1); }
.seat.empty-seat .avatar svg { opacity: .35; }
.seat.empty-seat .player-box { display: none; }
.seat.hero .card-slot[data-discard-card] { cursor: pointer; transition: transform 160ms ease; touch-action: manipulation; }
.seat.hero .card-slot[data-discard-card]:focus-visible { outline: 2px solid #edce83; outline-offset: 3px; }
.seat .card-slot.discard-selected { transform: translateY(-10px); }
.seat.hero .card-slot.discard-selected { transform: translateY(-14px); }
.seat .card-slot.discard-selected::after { content: '−'; position: absolute; top: -7px; right: 0; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #a23a4e; border: 1px solid #efb5bd; font-size: 17px; line-height: 15px; font-weight: 700; pointer-events: none; }
.draw-table-status { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%); width: 170px; display: grid; text-align: center; gap: 6px; color: #dfc7ce; }
.draw-table-status strong { font-size: 19px; font-weight: 650; color: #f1dce3; letter-spacing: 1px; }
.draw-table-status span { font-size: 12px; color: #edcb88; }
.draw-table-status small { font-size: 9px; line-height: 1.5; color: #b08d98; }
.badugi-table .street-pill { display: none; }
.table-scene.double-board .community-cards { top: 31%; }
.table-scene.double-board .second-board { top: calc(31% + 63px); }
.table-scene.double-board .community-cards :is(.playing-card,.card-slot) { width: 42px; height: 60px; }
.table-scene.double-board .community-cards .playing-card { --corner-suit-size: 12px; --large-suit-size: 19px; }
.table-scene.double-board .community-cards .card-corner { font-size: 26px; }
.table-scene.double-board :is(.seat-2,.seat-4) { top: 17%; }
.table-scene.double-board .community-cards::before { position: absolute; top: 50%; right: calc(100% + 5px); transform: translateY(-50%); color: #c6a8b2; font-size: 8px; }
.table-scene.double-board #board::before { content: '1'; }
.table-scene.double-board #board-two::before { content: '2'; }
.table-scene.double-board .street-pill { display: none; }
.table-scene.double-board .pot-area { top: 22%; }
.draw-dock { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.draw-dock-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.draw-dock-heading strong { font-size: 13px; color: #e9d3db; }
.draw-dock p { font-size: 11px; line-height: 1.4; color: #aaa0a6; }
.draw-dock-controls { display: flex; gap: 10px; }
.draw-dock-controls button { min-height: 44px; flex: 1; border-radius: 4px; border: 1px solid #6d5b42; background: linear-gradient(#55472d, #30291f); font-size: 15px; font-weight: 650; color: #f1dba5; }
.draw-dock-controls [data-clear-discards] { flex: 0 0 64px; color: #bfb3bb; font-size: 11px; border-color: #51474e; background: #29242a; }
.variant-rules { display: grid; gap: 8px; padding: 8px 0; }
.variant-rules strong { font-size: 12px; color: #e2c78f; }
.variant-rules p { font-size: 11px; line-height: 1.5; color: #b2a8ae; }
.variant-rules small { font-size: 10px; color: #8d8189; }
@media(max-width: 370px) {
  .seat.hero.many-cards { width: 160px; left: 5px; --feedback-rise: 24px; }
  .seat.hero.many-cards .hole-cards .card-slot,
  .seat.hero.many-cards .hole-cards .playing-card { width: 38px; height: 64px; }
  .seat.hero.many-cards .hole-cards .card-slot + .card-slot { margin-left: -9px; }
  .seat.hero.many-cards .playing-card { --corner-suit-size: 11px; --large-suit-size: 17px; }
  .seat.hero.many-cards .card-corner { font-size: 27px; left: 1px; }
}
@media(max-height: 740px) {
  .table-scene.double-board .community-cards :is(.playing-card,.card-slot) { width: 36px; height: 52px; }
  .table-scene.double-board .community-cards .playing-card { --corner-suit-size: 10px; --large-suit-size: 16px; }
  .table-scene.double-board .community-cards .card-corner { font-size: 24px; left: 2px; }
  .table-scene.double-board .second-board { top: calc(31% + 55px); }
}
@media(prefers-reduced-motion: reduce) { .seat.hero .card-slot[data-discard-card] { transition: none; } }

/* Keep every private rank visible beside either editor on narrow phones. */
@media(max-width: 420px) {
  .poker-app.sizing-editor-open .seat.hero.many-cards .hole-cards { left: calc(50% - 16px); }
  .poker-app.sizing-editor-open .seat.hero.many-cards .hole-cards :is(.card-slot,.playing-card) { width: 32px; height: 58px; }
  .poker-app.sizing-editor-open .seat.hero.many-cards .hole-cards .card-slot + .card-slot { margin-left: -7px; }
  .poker-app.sizing-editor-open .seat.hero.many-cards .playing-card { --corner-suit-size: 10px; --large-suit-size: 14px; }
  .poker-app.sizing-editor-open .seat.hero.many-cards .card-corner { top: 3px; left: 1px; font-size: 22px; }
}

/* Offer faces are their own card size. In particular they must not inherit the
   hero hand's 17/26px SVG masks merely because they share a seat ancestor. */
.seat .offer-note { box-sizing:border-box;width:114px;min-width:0;max-width:none;padding:4px;gap:6px;align-items:center; }
.seat .offer-note .offered-card { flex:0 0 36px;width:36px;height:51px;isolation:isolate; }
.seat .offer-note .offered-card .playing-card { --corner-suit-size:11px;--large-suit-size:17px;box-sizing:border-box;width:36px;height:51px;overflow:hidden; }
.seat .offer-note .offered-card .card-corner { top:2px;left:2px;font-size:22px;line-height:.9;gap:1px;letter-spacing:-.025em; }
.seat .offer-note .offered-card .card-corner small { font-size:0;line-height:0; }
.seat .offer-note .offered-card .card-suit { right:2px;bottom:2px;font-size:0;line-height:0; }
.seat .offer-note .offer-status { flex:1 1 0;min-width:0;font-size:10px;line-height:13px;overflow-wrap:normal;word-break:normal; }
.seat.seat-3 .offer-note { top:calc(100% + 5px);left:50%;right:auto;transform:translateX(-50%); }

/* At narrow widths expose the full outer index instead of tightening the fan. */
@media(max-width:370px) {
  .seat-1.many-cards .hole-cards,.seat-2.many-cards .hole-cards { left:calc(50% + 8px); }
  .seat-4.many-cards .hole-cards,.seat-5.many-cards .hole-cards { left:calc(50% - 8px); }
}
/* The top seat's offer occupies the centre gap between both upper fans. */
.seat.seat-3 .offer-note { top:calc(100% + 1px);width:80px;padding:2px;flex-direction:row;gap:4px; }
.seat.seat-3 .offer-note .offered-card { flex:0 0 36px; }
.seat.seat-3 .offer-note .offer-status { flex:1 1 0;min-width:0;text-align:center;white-space:normal;font-family:'DC Deck','Arial Narrow',Arial,sans-serif;font-size:11px;line-height:13px; }
