.climb-match .card-room {
  display: grid;
  grid-template: "north north north" auto "west board east" minmax(90px,auto) "status status status" auto
    "south south south" auto "hand hand hand" auto "actions actions actions" auto / minmax(112px,1fr) minmax(0,3fr) minmax(112px,1fr);
  justify-items: center;
  align-items: center;
  gap: 5px 12px;
  padding-inline: clamp(16px,4vw,52px);
}
.climb-match .turn-seats { display: contents; }
.climb-match .turn-seat { text-align: center; }
.climb-match .turn-seat:nth-child(1) { grid-area: south; }
.climb-match .turn-seat:nth-child(2) { grid-area: west; }
.climb-match .turn-seat:nth-child(3) { grid-area: north; }
.climb-match .turn-seat:nth-child(4) { grid-area: east; }
.climb-match .turn-board { grid-area: board; width: 100%; margin: 0; }
.climb-match .status { grid-area: status; }
.climb-match .duel-seat { grid-area: hand; min-width: 0; width: 100%; }
.climb-match .actions { grid-area: actions; }
.climb-match .card-room #player {
  --card-w: clamp(36px,4vw,45px);
  max-width: calc(var(--card-w)*14 + 52px);
  margin-inline: auto;
  gap: 5px 4px;
  overflow: visible;
  max-height: none;
}
.climb-match .card-room #player .hand-card { width: var(--card-w); height: clamp(52px,5vw,66px); }
.climb-match .card-room .hand .hand-card { flex: 0 0 auto; }
.climb-match .card-room .hand-card[data-card^="joker"] .card-corner { font-size: .8em; }
.climb-match .card-room .actions { display: flex; flex-wrap: wrap; justify-content: center; }
.climb-match .actions [id^="play-alt"] { border-color: var(--gold); color: var(--gold); }
.climb-match .actions button:disabled { opacity: .5; }
.climb-match .card-room[data-finished] {
  grid-template-rows: auto minmax(54px,auto) auto auto auto auto;
}
@media (orientation: landscape) and (max-height: 480px) {
  .climb-match .card-room {
    padding: 7px 10px 9px;
    grid-template-columns: minmax(64px,1fr) minmax(0,4fr) minmax(64px,1fr);
    grid-template-rows: auto minmax(43px,auto) auto auto auto auto;
    border-radius: 12% / 22%;
    gap: 2px 4px;
  }
  .climb-match .turn-seat { font-size: 10px; padding: 1px 5px; }
  .climb-match .turn-board p { font-size: 11px; margin: 0 0 3px; }
  .climb-match .card-room #player { --card-w: clamp(28px,calc((100vw - 104px)/14),35px); gap: 3px 4px; }
  .climb-match .card-room #player .hand-card { height: 39px; }
  .climb-match .card-room #board .hand-card { width: 27px; height: 34px; }
  .climb-match .duel-seat h2 { display: none; }
  .climb-match .card-room .status { margin: 2px 0; font-size: 11px; }
  .climb-match .card-room .actions { gap: 4px; }
  .climb-match .actions button { min-height: 30px; }
}
@media (orientation: portrait) and (max-width: 580px) {
  .climb-match .card-room {
    grid-template-columns: minmax(58px,1fr) minmax(0,2fr) minmax(58px,1fr);
    grid-template-rows: auto minmax(64px,auto) auto auto auto auto;
    gap: 4px;
    padding-inline: 8px;
    border-radius: 17px;
  }
  .climb-match .turn-seat { font-size: 10px; }
  .climb-match .turn-board p { font-size: 11px; }
  .climb-match .card-room #board .hand-card { width: 22px; height: 29px; }
  .climb-match .card-room #board .card-corner { font-size: 10px; }
  .climb-match .card-room #player { --card-w: clamp(27px,8vw,39px); }
  .climb-match .card-room #player .hand-card { height: 43px; }
}
