.subline #seat-format { font-weight: inherit; }
.practice-setup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  margin: 0 0 .7rem;
  color: #e3d6c7;
  font-size: .84rem;
}
.practice-setup select, .practice-setup button {
  color: #f5e7ce;
  background: #282433;
  border: 1px solid #736143;
  border-radius: .45rem;
  padding: .35rem .6rem;
  min-height: 36px;
  font: inherit;
}
.practice-setup span { color: #c5b6ad; }
.practice-setup[hidden], .practice-setup button[hidden], .computer-seats[hidden], #opposite[hidden] { display: none; }
.computer-seats {
  list-style: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}
.computer-seats li {
  --ring: #b4a384;
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-y);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  width: clamp(78px, 10%, 106px);
  font-size: 13px;
  line-height: 1.13;
  color: #fff4df;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
[data-rail="0"] { --rail-x: 16%; --rail-y: 76%; }
[data-rail="1"] { --rail-x: 9%; --rail-y: 46%; }
[data-rail="2"] { --rail-x: 25%; --rail-y: 21%; }
[data-rail="3"] { --rail-x: 50%; --rail-y: 15%; }
[data-rail="4"] { --rail-x: 75%; --rail-y: 21%; }
[data-rail="5"] { --rail-x: 91%; --rail-y: 46%; }
[data-rail="6"] { --rail-x: 84%; --rail-y: 76%; }
.rail-person {
  position: relative;
  width: clamp(43px, 5vw, 66px);
  aspect-ratio: 1;
}
.rail-person::before, .rail-person::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -12%;
  width: 23%;
  height: 31%;
  border: 1px solid #d8bf8e;
  border-radius: 2px;
  transform: rotate(-24deg);
  background: repeating-linear-gradient(50deg, #746953 0 1px, #263853 1px 3px);
}
.rail-person::after { left: -1%; transform: rotate(-6deg); }
.folded .rail-person::before, .folded .rail-person::after,
.revealed .rail-person::before, .revealed .rail-person::after { display: none; }
.rail-avatar, .seat .emblem {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}
.rail-avatar {
  width: 100%;
  height: 100%;
  color: #e8dbbb;
  font: 600 22px Georgia, serif;
  z-index: 1;
  background: #254153;
  border: 2px solid var(--ring);
  box-shadow: 0 0 0 2px #111b25, 0 3px 10px #060910a1;
}
.rail-avatar::before { content: attr(data-initial); }
.rail-avatar img, .seat .emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail-dealer {
  position: absolute;
  top: 2px;
  right: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #5e431e;
  background: #f1d49c;
  color: #2a2219;
  font: 800 10px/1 Georgia, serif;
}
.rail-dealer[hidden], .seat .emblem img[hidden], .rail-avatar img[hidden] { display: none; }
.rail-plate {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: -5px;
  padding: 3px 4px 4px;
  border: 1px solid #8a7962;
  border-radius: 7px;
  background: linear-gradient(160deg, #283b4a, #111b29 78%);
  box-shadow: 0 3px 8px #060910a1;
}
.rail-plate strong, .rail-stack { display: block; }
.rail-stack { color: #f3d995; font-size: .92em; }
.rail-plate small {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 5px 2px;
  border-radius: 3px;
  white-space: nowrap;
  background: #0b1724ed;
  color: #e4e9eb;
  font-size: .8em;
}
.computer-seats .acting { --ring: #9de6f2; }
.computer-seats .acting .rail-plate { border-color: #9de6f2; box-shadow: 0 0 9px #63d5ee91; }
.computer-seats .acting small { color: #adf1fd; }
.computer-seats .folded { --ring: #6c7781; }
.computer-seats .folded img { filter: saturate(.43) brightness(.77); }
.computer-seats .folded .rail-plate { color: #d0d5d9; border-color: #61717d; }
.computer-seats .winner { --ring: #ffdb86; }
.computer-seats .winner .rail-plate { border-color: #ffd27a; background: linear-gradient(150deg, #665036, #27232c); }
.mini-card { background: #f1e3cd; color: #182229; margin-right: 2px; padding: 0 2px; border-radius: 2px; }
.mini-card.red { color: #a3223a; }
.multi-table .shoe { visibility: hidden; }
.multi-table .rail { inset: 16% 4% 13%; }
.multi-table .board-area { top: 48%; transform: translate(-50%, -50%); }
.multi-table .player { bottom: 2.5%; }
.multi-table .player .emblem, .table-stage[data-mode="practice"] .opposite .emblem { width: 42px; height: 42px; border: 1px solid #aa9472; }
@media (max-width: 800px) {
  .rail-person { width: 43px; }
  .computer-seats li { width: 73px; }
  .multi-table .board { gap: 4px; }
  .multi-table .board .slot, .multi-table .board .card { width: clamp(35px, 7.4vw, 48px); }
}
@media (max-width: 520px) {
  main { padding-top: 6px; }
  .mast-in { height: 45px; }
  .title-row { gap: 6px; margin-bottom: 5px; }
  .title-row h1 { font-size: 26px; line-height: 1.08; }
  .title-row .eyebrow, .title-row .subline { display: none; }
  .modes { padding: 2px; }
  .modes button { min-height: 35px; }
  .practice-setup { margin-bottom: 4px; min-height: 35px; gap: 5px; }
  .practice-setup select, .practice-setup button { min-height: 32px; padding: 3px 6px; }
  .table-stage { height: clamp(293px, 47dvh, 370px); }
  .action-dock { padding: 7px 10px; }
  .action-buttons,.between { margin-top: 5px; }
  .hand-strip { padding-block: 4px; }
  .computer-seats li { width: clamp(53px, 16.3vw, 73px); font-size: 11px; }
  .rail-person { width: clamp(32px, 9.5vw, 44px); }
  .rail-plate { border-radius: 5px; padding: 2px 2px 3px; }
  .rail-plate small { font-size: 9px; }
  .rail-dealer { width: 14px; height: 14px; font-size: 8px; }
  [data-rail="1"] { --rail-x: 11%; }
  [data-rail="5"] { --rail-x: 89%; }
  [data-rail="3"] { --rail-y: 16%; }
  .multi-table .rail { inset: 17% 2.5% 12%; }
  .multi-table .player .emblem, .table-stage[data-mode="practice"] .opposite .emblem { width: 32px; height: 32px; }
  .multi-table .player { gap: 3px; }
}
@media (max-width: 520px) {
  .table-stage .board .card, .table-stage .board .slot { width: clamp(33px, 9vw, 43px); }
  .multi-table .board .card, .multi-table .board .slot { width: clamp(26px, 7.4vw, 37px); }
  .multi-table .board { gap: 3px; }
  .table-stage .mine .card { width: clamp(31px, 8.5vw, 40px); }
}
@media (max-width: 520px) and (max-height: 600px) {
  .title-row > div:first-child { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .hand-strip { padding-block: 2px; }
  .turn-line small { margin-top: 0; }
}
