/* Six seats follow the sides and lower curve, leaving the dealer in the upper center. */
.poker-table.table {
  height: 780px;
  min-height: 780px;
  margin-top: 20px;
}
.poker-table:before {
  border-radius: 28px 28px 45% 45% / 28px 28px 21% 21%;
}
.poker-table:after {
  border-radius: 16px 16px 44% 44% / 16px 16px 20% 20%;
}
.poker-table .dealer-area {
  top: 30px;
  left: 50%;
  width: 280px;
}
.poker-table .dealer-area .hand {
  --card-width: 64px;
  min-height: 91px;
}
.poker-table .dealer-area .hand-heading { justify-content: center; }
.poker-table .table-top { top: 160px; left: 50%; width: 250px; }
.poker-table .deck-shoe { top: 60px; left: 72%; width: 48px; height: 68px; }
.poker-table .felt-ornament {
  top: 232px;
  left: 50%;
  opacity: .8;
}
.poker-table .felt-ornament span { font-size: 13px; letter-spacing: 4px; }
.poker-table .felt-ornament b { display: none; }
.poker-table .felt-ornament small { display: block; margin-top: 10px; font-size: 6px; letter-spacing: 2px; }
.poker-table .player-seat { width: 138px; }
.poker-table .player-seat[data-position="1"] { left: 9%; top: 170px; }
.poker-table .player-seat[data-position="2"] { left: 9%; top: 390px; }
.poker-table .player-seat[data-position="3"] { left: 65%; top: 480px; }
.poker-table .player-seat[data-position="4"] { left: 91%; top: 390px; }
.poker-table .player-seat[data-position="5"] { left: 91%; top: 170px; }
.poker-table #self-seat { left: 35%; top: 470px; width: 180px; }
.poker-table #self-seat .hand { --card-width: 54px; min-height: 77px; }
.poker-table #self-seat .hand-heading { top: -27px; }
.poker-table .player-seat.is-empty { min-height: 135px; opacity: .4; }
.poker-table .player-seat.is-empty .seat-avatar {
  width: 36px;
  height: 36px;
  border-color: #d1e5c94d;
  background: #062b2526;
  font-size: 21px;
}
.poker-table .player-seat.is-empty strong { font-size: 8px; }

@media (min-width: 801px) and (max-width: 1100px) {
  .poker-table.table { height: 780px; min-height: 780px; }
  .poker-table .player-seat { width: 112px; }
  .poker-table .player-seat[data-position="1"] { left: 9%; top: 170px; }
  .poker-table .player-seat[data-position="2"] { left: 9%; top: 390px; }
  .poker-table .player-seat[data-position="3"] { left: 65%; top: 480px; }
  .poker-table .player-seat[data-position="4"] { left: 91%; top: 390px; }
  .poker-table .player-seat[data-position="5"] { left: 91%; top: 170px; }
  .poker-table .player-seat .seat-name { font-size: 10px; }
  .poker-table .player-seat .seat-identity { padding: 6px; column-gap: 5px; }
  .poker-table .player-seat .seat-avatar { width: 25px; height: 25px; font-size: 11px; }
  .poker-table .player-seat .seat-identity { grid-template-columns: 25px minmax(0, 1fr); }
  .poker-table #self-seat { left: 35%; top: 470px; width: 150px; }
}

/* Narrow screens keep the dealer above everyone; the rail unfolds down both sides. */
@media (max-width: 800px) {
  .poker-table.table { height: 880px; min-height: 880px; }
  .poker-table:before { border-radius: 22px 22px 90px 90px; }
  .poker-table:after { border-radius: 14px 14px 72px 72px; }
  .poker-table .dealer-area { top: 30px; left: 50%; width: 230px; }
  .poker-table .dealer-area .hand { --card-width: 54px; min-height: 77px; }
  .poker-table .table-top { top: 148px; width: 230px; }
  .poker-table .deck-shoe { top: 62px; left: 81%; width: 30px; height: 43px; }
  .poker-table .felt-ornament { left: 50%; top: 365px; }
  .poker-table .felt-ornament span { font-size: 9px; letter-spacing: 2px; }
  .poker-table .felt-ornament small { display: none; }
  .poker-table .player-seat { width: 112px; }
  .poker-table .player-seat[data-position="1"] { left: 17%; top: 200px; }
  .poker-table .player-seat[data-position="2"] { left: 17%; top: 365px; }
  .poker-table .player-seat[data-position="3"] { left: 65%; top: 535px; }
  .poker-table .player-seat[data-position="4"] { left: 83%; top: 365px; }
  .poker-table .player-seat[data-position="5"] { left: 83%; top: 200px; }
  .poker-table #self-seat { left: 35%; top: 535px; width: 120px; }
  .poker-table #self-seat .hand { --card-width: 45px; min-height: 64px; }
  .poker-table .player-seat.is-empty { min-height: 130px; }
}

@media (max-width: 540px) {
  .poker-table.table { height: 920px; min-height: 920px; }
  .poker-table .dealer-area { width: 190px; }
  .poker-table .dealer-area .hand { --card-width: 48px; min-height: 69px; }
  .poker-table .dealer-area .card-corner { font-size: 11px; }
  .poker-table .dealer-area .card-corner small { font-size: 8px; }
  .poker-table .dealer-area .card-center > span { font-size: 22px; }
  .poker-table .table-top { top: 140px; width: 210px; }
  .poker-table .deck-shoe { top: 73px; left: 82%; width: 23px; height: 33px; }
  .poker-table .player-seat { width: 88px; }
  .poker-table .player-seat[data-position="1"] { left: 17%; top: 200px; }
  .poker-table .player-seat[data-position="2"] { left: 17%; top: 365px; }
  .poker-table .player-seat[data-position="3"] { left: 65%; top: 535px; }
  .poker-table .player-seat[data-position="4"] { left: 83%; top: 365px; }
  .poker-table .player-seat[data-position="5"] { left: 83%; top: 200px; }
  .poker-table #self-seat { left: 35%; top: 535px; width: 100px; }
  .poker-table #self-seat .hand { --card-width: 38px; min-height: 54px; }
  .poker-table .felt-ornament { top: 373px; }
  .poker-table .felt-ornament span { font-size: 7px; letter-spacing: 1px; }
}


/* Corner badges anchor the two upper places to the rail, with cards pointing inward. */
.poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-identity { order: 0; }
.poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-cards { order: 1; margin-top: 8px; }
.poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-wager { order: 2; }
.poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-status { order: 3; }
.poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-points { top: 98px; }
@media(max-width: 800px) {
  .poker-table.table #self-seat .self-identity { margin-top: 100px; transform: translateX(calc(15vw - 6px)); }
  .poker-table.table #self-seat .control-dock { transform: translateX(calc(15vw - 6px)); }
}
@media(max-width: 540px) {
  .poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-points { top: 74px; }
}

/* Solo has a centered seat and no unused multiplayer places. */
body[data-mode="solo"] .poker-table.table { height: 640px; min-height: 640px; }
body[data-mode="solo"] .poker-table #players-strip { display: none; }
body[data-mode="solo"] .poker-table #self-seat { left: 50%; top: 310px; width: 180px; }
body[data-mode="solo"] .poker-table.table #self-seat .self-identity { margin-top: 6px; transform: none; }
body[data-mode="solo"] .poker-table.table #self-seat .control-dock { transform: none; }
body[data-mode="solo"] .poker-table .table-top { display: none; }
body[data-mode="solo"] .poker-table .felt-ornament { top: 220px; }
@media(max-width: 800px) {
  body[data-mode="solo"] .poker-table.table { height: 610px; min-height: 610px; }
  body[data-mode="solo"] .poker-table #self-seat { top: 290px; }
  body[data-mode="solo"] .poker-table #self-seat .hand { --card-width: 48px; min-height: 69px; }
}

/* Seat positions follow the rail; controls below the table consume no felt space. */
body[data-mode] .poker-table.table { height: 650px; min-height: 650px; margin-bottom: 0; }
body[data-mode] .poker-table #self-seat { top: auto; bottom: 0; height: 150px; }
body[data-mode] .poker-table.table #self-seat .self-identity {
  position: absolute;
  bottom: -5px;
  margin: 0;
  transform: none;
}
.poker-table .player-seat[data-position="3"] { top: auto; bottom: 0; height: 150px; min-height: 0; }
.poker-table .player-seat[data-position="3"] .seat-cards { margin-top: 0; }
.poker-table .player-seat[data-position="3"] .seat-identity { position: absolute; bottom: -5px; width: 100%; }
.poker-table .player-seat:is([data-position="2"],[data-position="4"]) { top: auto; bottom: 105px; }
.poker-table .player-seat[data-position="3"].is-empty {
  height: 150px;
  justify-content: flex-start;
  padding-top: 20px;
}
@media(max-width: 800px) {
  body[data-mode="online"] .poker-table.table { height: 720px; min-height: 720px; }
  body[data-mode] .poker-table #self-seat { height: 125px; }
  .poker-table .player-seat[data-position="3"] { top: auto; bottom: 0; height: 125px; }
  .poker-table .player-seat[data-position="3"].is-empty { height: 125px; padding-top: 14px; }
  .poker-table .player-seat:is([data-position="2"],[data-position="4"]) { top: auto; bottom: 170px; }
  body[data-mode="online"] .poker-table.table #self-seat .self-identity { width: 110px; grid-template-columns: 24px minmax(0, 1fr); border-radius: 12px; }
  body[data-mode="online"] .poker-table.table #self-seat .self-identity #self-state { grid-column: 2; border: 0; padding: 0; }
  body[data-mode="solo"] .poker-table.table { height: 480px; min-height: 480px; }
}
@media(max-width: 540px) {
  .poker-table .player-seat[data-position="3"].is-empty { padding-top: 9px; }
}



/* Branded felt and larger hands, matching the poker room's table. */
#game-layout { max-width:1280px; margin-inline:auto; }
body[data-mode] .poker-table.table { height:620px; min-height:620px; margin-top:30px; }
body[data-mode="solo"] .poker-table.table { height:520px; min-height:520px; }
.poker-table:before { inset:0; border:14px solid #443a33; border-radius:90px 90px 43% 43% / 70px 70px 24% 24%; background:radial-gradient(ellipse at 50% 38%,#246858,#0a352e); box-shadow:0 0 0 2px #827459,inset 0 0 0 3px #4b7665,0 12px 0 #17191c,0 18px 30px #0005; }
.poker-table:after { inset:28px; border:1px solid #d9e5b624; border-radius:66px 66px 42% 42% / 50px 50px 22% 22%; background:repeating-linear-gradient(28deg,transparent 0 3px,#ffffff01 3px 4px); }
.poker-table .felt-ornament { top:320px; left:50%; display:flex; align-items:center; gap:9px; opacity:.55; color:#c4d9c4; }
body[data-mode="solo"] .poker-table .felt-ornament { top:270px; }
.poker-table .felt-ornament img { width:34px; height:34px; object-fit:contain; }
.poker-table .felt-ornament span { font-size:10px; letter-spacing:2px; }
.poker-table .felt-ornament small { display:block; margin-top:6px; font-size:6px; letter-spacing:2px; }
.poker-table .dealer-area { top:92px; width:320px; }
.poker-table .dealer-area .hand { --card-width:78px; min-height:111px; }
.poker-table .deck-shoe { top:116px; left:72%; width:56px; height:80px; }
.poker-table .table-top { top:257px; }
body[data-mode] .poker-table #self-seat { width:240px; height:190px; }
body[data-mode] .poker-table #self-seat .hand { --card-width:76px; min-height:108px; }
.poker-table .player-seat { width:164px; }
.poker-table .player-seat:is([data-position="1"],[data-position="5"]) { top:110px; }
.poker-table .player-seat[data-position="3"] { height:190px; }
.poker-table .player-seat[data-position="3"].is-empty { height:190px; }
.poker-table .player-seat .seat-cards { --card-width:58px; min-height:83px; }
.poker-table .player-seat .playing-card { width:var(--card-width); height:calc(var(--card-width)*1.42); flex-shrink:0; }
.poker-table .playing-card .card-corner { top:5%; left:6%; font-size:calc(var(--card-width)*.21); }
.poker-table .playing-card .card-corner small { display:block; font-size:.72em; }
.poker-table .playing-card .card-corner--bottom { inset:auto 6% 5% auto; }
.poker-table .playing-card .card-center { inset:16% 19%; }
.poker-table .playing-card .card-center>span { font-size:calc(var(--card-width)*.55); }
@media(max-width:1100px) and (min-width:801px) {
  .poker-table .player-seat { width:140px; }
  .poker-table .player-seat[data-position="1"],.poker-table .player-seat[data-position="2"] { left:11%; }
  .poker-table .player-seat[data-position="4"],.poker-table .player-seat[data-position="5"] { left:89%; }
}
@media(max-width:800px) {
  body[data-mode="online"] .poker-table.table { height:780px; min-height:780px; }
  body[data-mode="solo"] .poker-table.table { height:510px; min-height:510px; }
  .poker-table:before { border-width:9px; border-radius:45px 45px 80px 80px; }
  .poker-table:after { inset:18px; border-radius:30px 30px 65px 65px; }
  .poker-table .dealer-area { top:92px; width:240px; }
  .poker-table .dealer-area .hand { --card-width:64px; min-height:91px; }
  .poker-table .deck-shoe { top:120px; left:84%; width:30px; height:43px; }
  .poker-table .table-top { top:224px; }
  body[data-mode="online"] .poker-table .felt-ornament { top:254px; }
  body[data-mode] .poker-table #self-seat { width:150px; height:165px; }
  body[data-mode] .poker-table #self-seat .hand { --card-width:54px; min-height:77px; }
  body[data-mode="solo"] .poker-table #self-seat { width:230px; height:180px; }
  body[data-mode="solo"] .poker-table #self-seat .hand { --card-width:68px; min-height:97px; }
  .poker-table .player-seat { width:110px; }
  .poker-table .player-seat:is([data-position="1"],[data-position="5"]) { top:280px; }
  .poker-table .player-seat[data-position="3"],.poker-table .player-seat[data-position="3"].is-empty { height:165px; }
  .poker-table .player-seat .seat-cards { --card-width:46px; min-height:66px; }
  .poker-table .player-seat:is([data-position="1"],[data-position="5"]) .seat-points { top:90px; }
}
@media(max-width:540px) {
  .poker-table .player-seat { width:100px; }
  .poker-table .player-seat[data-position="1"],.poker-table .player-seat[data-position="2"] { left:20%; }
  .poker-table .player-seat[data-position="4"],.poker-table .player-seat[data-position="5"] { left:80%; }
  .poker-table .player-seat .seat-cards { --card-width:42px; min-height:60px; }
  body[data-mode="online"] .poker-table #self-seat { width:150px; left:30%; }
  .poker-table .player-seat[data-position="3"] { left:70%; }
  .poker-table .deck-shoe { left:85%; width:24px; height:34px; }
}
