body.play-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--advertising-height, 0px) var(
      --play-header-height,
      46px
    ) minmax(0, 1fr);
  background: #164736;
  font-size: 15px;
  color: #fff9e9;
  --card-w: 66px;
  --card-h: 92px;
}
.play-page [hidden] {
  display: none !important;
}
.play-page .advertising-space {
  display: none;
  grid-row: 1;
  grid-template-rows: 14px 50px 150px;
  justify-content: center;
  background: #103a2c;
  text-align: center;
}
.play-page .advertising-label {
  font: 10px/14px system-ui;
  color: #c5d8c9;
  letter-spacing: 0.04em;
}
.play-page .advertising-unit {
  width: 320px;
  height: 50px;
  background: #ffffff04;
}
.play-page[data-ad-preview="true"] .advertising-unit {
  background: #f0e8d2;
  display: grid;
  place-items: center;
  color: #304a37;
}
.play-page[data-ad-preview="true"] .advertising-unit:after {
  content: "Sample advertisement · 320 × 50";
  font: 14px system-ui;
}
.play-page .play-header {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 max(8px, calc((100vw - 1040px) / 2));
  background: #123b2d;
  border-bottom: 1px solid #ffffff20;
  z-index: 20;
}
.play-page .menu-toggle,
.play-page .help-shortcut {
  min-height: 38px;
  padding: 3px 10px;
  border: 1px solid #819d85;
  border-radius: 5px;
  background: transparent;
  color: #fff9e9;
  box-shadow: none;
  font-size: 14px;
}
.play-page .menu-toggle {
  font-size: 25px;
  border: 0;
  min-width: 42px;
}
.play-page .help-shortcut {
  margin-left: auto;
}
.play-page .game-switch {
  position: relative;
  min-width: 0;
}
.play-page .game-switch summary {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  min-height: 42px;
}
.play-page .game-switch summary::-webkit-details-marker {
  display: none;
}
.play-page .game-switch h1 {
  font: 600 20px Georgia;
  margin: 0;
  color: #fff9e9;
}
.play-page .game-switch nav {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: #fff9e9;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px #062b2580;
}
.play-page .game-switch a {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  min-height: 44px;
  text-decoration: none;
  border-radius: 4px;
}
.play-page .game-switch a[aria-current] {
  background: #deead9;
  font-weight: 700;
}
.play-page .game-switch small {
  font: 12px system-ui;
}
.play-page #main {
  min-height: 0;
  min-width: 0;
  padding: 6px max(6px, calc((100vw - 1040px) / 2))
    max(4px, env(safe-area-inset-bottom));
}
.play-page .load-status {
  text-align: center;
  margin: 30px auto;
  color: #fff9e9;
}
.play-page .load-status:empty {
  display: none;
}
.play-page .game-shell {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 42px;
  gap: 4px;
  container-type: size;
}
.play-page .table-layout {
  display: block;
  min-width: 0;
  min-height: 0;
}
.play-page .felt-table {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 66px minmax(78px, 1fr) 108px 24px 124px 42px;
  gap: 5px;
  height: 100%;
  padding: 6px 10px;
  border: 1px solid #648364;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, #326e4b, #245e40 85%);
  color: #fff9e9;
  min-height: 0;
  min-width: 0;
  box-shadow: inset 0 0 35px #123d2420;
}
.play-page .opponents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  border: 0;
  min-height: 0;
}
.play-page .turn-note {
  min-width: 0;
  max-width: 280px;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  background: none;
  color: #fff9e9;
  line-height: 1.15;
}
.play-page .turn-note strong {
  font: 600 16px/1.1 system-ui;
  color: #fff3ba;
}
.play-page .turn-note p {
  font: 13px/1.2 system-ui;
  margin: 3px 0;
  color: #fff9e9;
}
.play-page #opening-label {
  display: block;
  font: 11px/1.2 system-ui;
  color: #f0deb0;
}
.play-page .seat,
.play-page .seat.partner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff9e9;
  text-align: center;
}
.play-page .avatar {
  width: 54px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #16332444);
}
.play-page .seat-caption {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.play-page .seat strong {
  font: 600 14px/1.15 system-ui;
  white-space: nowrap;
}
.play-page .seat small {
  font: 11px/1.15 system-ui;
  color: #e1edda;
}
.play-page #partner-seat {
  grid-column: 2;
  display: grid;
  grid-template-columns: 55px auto;
  justify-content: center;
  column-gap: 5px;
}
.play-page #partner-seat .avatar {
  grid-row: 1/3;
}
.play-page #partner-seat .seat-caption {
  align-items: start;
}
.play-page .seat-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding-right: 13px;
  margin-top: 3px;
  max-width: 100%;
}
.play-page .seat-cards i {
  display: block;
  width: 16px;
  height: 22px;
  border: 1px solid #f9efcf;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #a05c45 0 2px, #743f33 2px 4px);
  margin-right: -12px;
}
.play-page #partner-seat .seat-cards {
  grid-column: 2;
  height: 18px;
}
.play-page #partner-seat .seat-cards i {
  height: 18px;
  width: 13px;
  margin-right: -9px;
}
.play-page .dealer-badge {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font: 700 9px/13px system-ui;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #213026;
  color: #fff2c9;
  border: 1px solid #e0c985;
  border-radius: 3px;
  padding: 0 4px;
  white-space: nowrap;
}
.play-page #partner-seat .dealer-badge {
  left: 26px;
}
.play-page .active-seat .avatar {
  filter: drop-shadow(0 0 4px #fbe088);
}
.play-page .active-seat .seat-caption strong {
  color: #ffeba0;
}
.play-page .meld-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 34px;
  gap: 4px 10px;
  min-height: 0;
  min-width: 0;
  padding: 0 52px;
}
.play-page .meld-region {
  display: grid;
  grid-template-rows: 20px minmax(0, 1fr);
  padding: 4px 6px;
  min-width: 0;
  min-height: 0;
  background: #133e2860;
  border: 0;
  border-radius: 7px;
  margin: 0;
}
.play-page .meld-region h2 {
  font: 600 13px/18px system-ui;
  color: #eae8c8;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-page .meld-surface,
.play-page .melds {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.play-page .melds,
.play-page #plan-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  align-content: start;
  gap: 4px;
  padding: 2px;
}
.play-page #team-melds {
  overflow: visible;
}
.play-page .has-plan #team-melds:has(.empty-melds) {
  display: none;
}
.play-page .empty-melds {
  font: italic 12px/1.2 system-ui;
  color: #d4dfc7;
  white-space: normal;
  padding: 3px;
}
.play-page .meld-chip,
.play-page .prepared-meld {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2px;
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #fff9e9;
  cursor: pointer;
}
.play-page .meld-chip:hover,
.play-page .prepared-meld:hover {
  background: #ffffff18;
}
.play-page .meld-chip.complete {
  border-color: #e2c966;
}
.play-page .meld-chip.complete.dirty {
  border-color: #b9c8ad;
}
.play-page .mini-cards {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding-right: 6px;
  gap: 2px 0;
}
.play-page .mini-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 37px;
  padding: 1px 2px;
  margin-right: -6px;
  background: #fffdf4;
  border: 1px solid #a2ad9b;
  border-radius: 3px;
  color: #182b20;
  font: 16px/1 system-ui;
  box-shadow: 1px 1px 1px #12332244;
}
.play-page .mini-card b {
  font-size: 16px;
  font-weight: 700;
}
.play-page .mini-card.red {
  color: #b22229;
}
.play-page .meld-detail {
  font: 10px/1.2 system-ui;
  color: #e8ead6;
}
.play-page .plan-group {
  display: block;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
.play-page .prepared-meld {
  border: 1px dashed #ebd48c;
  background: #e8ca6612;
}
.play-page #meld-plan {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
.play-page .plan-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
}
.play-page .plan-actions button,
.play-page .plan-actions select {
  width: auto;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 3px 6px;
  font: 12px system-ui;
  border-radius: 4px;
  box-shadow: none;
}
.play-page .plan-actions select {
  max-width: 145px;
  flex: 0 1 130px;
}
.play-page #plan-status {
  flex: 1;
  min-width: 0;
  font: 11px/1.2 system-ui;
  color: #f3e3ad;
}
.play-page .plan-actions button {
  flex-shrink: 0;
}
.play-page #play-plan {
  background: #f0d995;
  color: #233b2b;
  border-color: #f7e5b6;
  font-weight: 700;
}
.play-page #clear-plan {
  background: none;
  border-color: #b3c4aa;
  color: #fff9e9;
}
.play-page .stock-area {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  min-height: 0;
  min-width: 0;
}
.play-page .piles {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 32px;
  min-height: 0;
  height: 100%;
}
.play-page .stock-button,
.play-page .discard-area {
  flex: 0 0 86px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px 14px;
  justify-items: center;
  gap: 0;
  width: 86px;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #fff9e9;
}
.play-page .stock-button > span:not(.card-back),
.play-page .discard-area > span {
  font: 600 12px/18px system-ui;
  white-space: nowrap;
}
.play-page .stock-button > small,
.play-page .discard-area > small {
  font: 10px/1.1 system-ui;
  color: #f1e4b6;
  text-align: center;
}
.play-page .card-back {
  height: 100%;
  width: auto;
  aspect-ratio: 5/7;
  border: 3px solid #fff4d5;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #a2664d 0 2px, #78452f 2px 5px);
  box-shadow:
    2px 2px 0 #c3c6a5,
    4px 4px 0 #fff1cc;
  display: grid;
  place-items: center;
  margin: 0;
}
.play-page .card-back > span {
  font: 24px Georgia;
  color: #f6e5b5;
  background: #42644e;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.play-page #discard-card {
  height: 100%;
  min-height: 0;
  display: grid;
  align-items: center;
}
.play-page #discard-card .empty-discard {
  height: 100%;
  max-height: 64px;
  width: auto;
  aspect-ratio: 5/7;
  font-size: 11px;
}
.play-page #discard-card > .playing-card {
  height: 100%;
  width: auto;
  aspect-ratio: 5/7;
  min-height: 0;
}
.play-page #discard-card .card-pips,
.play-page #discard-card .card-bottom,
.play-page #discard-card .card-center {
  display: none;
}
.play-page #discard-card .card-face {
  display: grid;
  place-items: center;
}
.play-page #discard-card .card-corner {
  position: static;
  font-size: 24px;
  align-items: center;
}
.play-page #discard-card .card-corner small {
  font-size: 18px;
}
.play-page #deal-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.play-page #deal {
  font: 700 19px system-ui;
  min-height: 48px;
  padding: 9px 26px;
  background: #f2dd9e;
  color: #1d3b2a;
  border: 1px solid #e7d09a;
  border-radius: 7px;
}
.play-page #deal-error {
  font-size: 12px;
  color: #fff5d5;
  max-width: 290px;
  margin: 4px;
  text-align: center;
}
.play-page .awaiting-deal .piles {
  visibility: hidden;
}
.play-page .awaiting-deal .meld-board {
  opacity: 0.55;
}
.play-page .hand-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  min-width: 0;
  color: #fff9e9;
}
.play-page .hand-header h2 {
  display: block;
  flex: none;
  min-width: 0;
  font: 600 13px/1.1 system-ui;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  color: #fff9e9;
}
.play-page #selection-count {
  margin-left: auto;
  min-width: 0;
  font: 11px/1.1 system-ui;
}
.play-page #clear-selection {
  font: 12px system-ui;
  min-height: 24px;
  margin: 0;
  padding: 2px 5px;
  background: none;
  box-shadow: none;
  border: 0;
  color: #fff9e9;
}
.play-page .hand-tray {
  display: block;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
.play-page .hand {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
  min-height: 0;
  min-width: 0;
  isolation: isolate;
}
.play-page .playing-card {
  position: relative;
  aspect-ratio: 5/7;
  background: transparent;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  margin: 0;
  padding: 0;
  color: #17271d;
  flex-shrink: 0;
}
.play-page .playing-card.red {
  color: #b0252b;
}
.play-page .card-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #fffdf4;
  border: 1px solid #a6aa97;
  border-radius: 5px;
  box-shadow: 1px 2px 2px #11362255;
  --index-size: 24px;
  pointer-events: none;
  overflow: hidden;
}
.play-page .card-corner {
  position: absolute;
  top: 3%;
  left: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font:
    bold var(--index-size)/1 Arial,
    sans-serif;
  color: inherit;
}
.play-page .card-corner small {
  font-size: 0.86em;
  line-height: 1;
}
.play-page .card-center {
  display: none;
}
.play-page .card-bottom {
  position: absolute;
  right: 4%;
  bottom: 3%;
  font: 600 calc(var(--index-size) * 0.62)/1 Arial;
  transform: rotate(180deg);
  color: inherit;
}
.play-page .card-pips {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 28%;
  right: 13%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: space-around;
  justify-items: center;
  font: 16px/1 Georgia;
  color: inherit;
}
.play-page .card-pips[data-count="1"] {
  display: grid;
  place-items: center;
  font-size: 35px;
  left: 20%;
  right: 12%;
}
.play-page .card-pips[data-count="2"],
.play-page .card-pips[data-count="3"] {
  grid-template-columns: 1fr;
}
.play-page .card-pips[data-count="5"] span:last-child,
.play-page .card-pips[data-count="7"] span:last-child,
.play-page .card-pips[data-count="9"] span:last-child {
  grid-column: 1/-1;
}
.play-page .card-pips.court {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 28px Georgia;
  color: inherit;
}
.play-page .card-pips.court b {
  font-size: 20px;
}
.play-page .hand .playing-card {
  position: absolute;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0;
  transform: none;
  overflow: visible;
  cursor: pointer;
  touch-action: manipulation;
}
.play-page .hand .card-face {
  position: absolute;
  top: 0;
  left: 0;
  transition:
    translate 0.13s ease,
    filter 0.13s ease;
}
.play-page .hand .playing-card[aria-pressed="true"] {
  outline: none;
}
.play-page .hand .playing-card[aria-pressed="true"] .card-face {
  translate: 0 -7px;
  border: 2px solid #f3cd55;
  box-shadow: 0 0 0 1px #fcebc0;
}
.play-page .hand .playing-card.staged .card-face {
  background: #ccd5be;
  border: 1px dashed #71825f;
  filter: brightness(0.85);
}
.play-page .hand .playing-card:focus-visible {
  outline: none;
  z-index: 999 !important;
}
.play-page .hand .playing-card:focus-visible .card-face {
  outline: 2px solid #a5edff;
  outline-offset: 1px;
  filter: brightness(1.07);
  translate: 0 -7px;
}
.play-page .hand .playing-card:hover {
  z-index: 998 !important;
}
.play-page .hand .playing-card:hover .card-face {
  translate: 0 -7px;
}
.play-page .action-panel {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 7px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  min-width: 0;
  min-height: 0;
}
.play-page .action-panel > button {
  flex: 0 1 145px;
  min-width: 0;
  width: auto;
  min-height: 38px;
  height: 38px;
  margin: 0;
  padding: 3px 9px;
  font: 600 14px system-ui;
  border-radius: 5px;
  box-shadow: none;
}
.play-page .action-panel > .primary {
  background: #efda9a;
  color: #243b2c;
  border-color: #f3e4b7;
}
.play-page .table-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 0;
  min-width: 0;
  color: #e7ecd9;
}
.play-page .table-bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 9px;
  min-height: 36px;
  margin: 0;
  border: 1px solid #8daa90;
  background: transparent;
  color: #fff9e9;
  border-radius: 5px;
  font: 13px system-ui;
  box-shadow: none;
  white-space: nowrap;
}
.play-page #score-button strong {
  color: #f2db96;
}
.play-page .round-indicator {
  font: 12px system-ui;
  white-space: nowrap;
}
.play-page #you-seat {
  display: flex;
  flex-direction: row;
  gap: 3px;
  margin-left: auto;
  margin-right: auto;
}
.play-page #you-seat .avatar {
  width: 32px;
  height: 35px;
}
.play-page #you-seat strong {
  font-size: 11px;
}
.play-page #you-seat .dealer-badge {
  font-size: 7px;
  line-height: 10px;
  top: -1px;
  left: 14px;
}
.play-page #compact-turn {
  display: none;
}
.play-page #skip-animation {
  font-size: 11px;
  border-color: #e1c575;
  color: #fff0bc;
}
.play-page .flying-card {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  transform-origin: top left;
  margin: 0;
  aspect-ratio: auto;
}
.play-page .flying-back {
  border: 2px solid #fff0d2;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, #a2664d 0 2px, #78452f 2px 5px);
  box-shadow: 2px 3px 3px #103d2b55;
}
.play-page .flying-card .card-corner {
  font-size: 16px;
}
.play-page .flying-card .card-pips,
.play-page .flying-card .card-bottom {
  display: none;
}
.play-page .arriving {
  visibility: hidden;
}
.play-page.animating .action-panel,
.play-page.animating #hand {
  pointer-events: none;
}
.play-page .game-shell[data-hand-density="medium"] .felt-table {
  grid-template-rows: 60px minmax(68px, 1fr) 96px 24px minmax(126px, 28cqh) 42px;
}
.play-page .game-shell[data-hand-density="dense"] .felt-table {
  grid-template-rows: 54px minmax(64px, 1fr) 82px 22px minmax(150px, 38cqh) 42px;
}
.play-page dialog {
  max-height: calc(100dvh - 24px);
  max-width: 680px;
  width: calc(100vw - 24px);
  padding: 20px 22px;
  border: 1px solid #adbaa3;
  border-radius: 12px;
  overflow: auto;
  color: #243f2d;
  background: #fffaf0;
}
.play-page dialog::backdrop {
  background: #082b20ac;
}
.play-page .dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: -20px;
  background: #fffaf0;
  z-index: 2;
  padding: 5px 0;
}
.play-page .dialog-top h2 {
  margin: 0;
  font-size: 24px;
}
.play-page .dialog-top button {
  min-height: 40px;
}
.play-page .table-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.play-page .table-menu a,
.play-page .table-menu button {
  padding: 11px 13px;
  min-height: 46px;
  text-align: left;
  text-decoration: none;
  background: #eef0e4;
  color: #29432f;
  border: 1px solid #c3ccb9;
  border-radius: 6px;
  box-shadow: none;
  font: 16px system-ui;
}
.play-page .detail-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}
.play-page .detail-cards .playing-card {
  width: 76px;
  height: 106px;
}
.play-page .more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.play-page .help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.play-page .help-links a {
  min-height: 40px;
  padding: 7px;
}
.play-page #game-message {
  font-size: 18px;
  line-height: 1.5;
}
.play-page .game-explanation {
  margin-top: 20px;
}
.play-page #events {
  padding-left: 22px;
  font-size: 15px;
  max-height: 220px;
  overflow: auto;
}
.play-page #history {
  overflow: auto;
}
.play-page[data-contrast="true"] .felt-table {
  background: #123b29;
}
.play-page[data-motion="reduced"] *,
.play-page[data-motion="reduced"] *:before {
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (min-width: 320px) and (min-height: 760px) {
  body.play-page[data-ad-preview="true"] {
    --advertising-height: 214px;
  }
  .play-page[data-ad-preview="true"] .advertising-space {
    display: grid;
  }
}
.play-page #main {
  grid-row: 3;
}
@media (min-width: 800px) and (min-height: 950px) {
  body.play-page[data-ad-preview="true"] {
    --advertising-height: 254px;
  }
  .play-page .advertising-space {
    grid-template-rows: 14px 90px 150px;
  }
  .play-page .advertising-unit {
    width: 728px;
    height: 90px;
  }
  .play-page[data-ad-preview="true"] .advertising-unit:after {
    content: "Sample advertisement · 728 × 90";
  }
}
@media (max-width: 600px) {
  .play-page .game-switch h1 {
    font-size: 17px;
  }
  .play-page #main {
    padding: 4px 4px max(3px, env(safe-area-inset-bottom));
  }
  .play-page .felt-table {
    padding: 4px 5px;
    gap: 4px;
    grid-template-rows: 57px minmax(88px, 1fr) 91px 22px 104px 40px;
  }
  .play-page .opponents {
    grid-template-columns: minmax(0, 1fr) 98px minmax(0, 0.5fr);
  }
  .play-page #partner-seat {
    grid-template-columns: 42px auto;
    column-gap: 3px;
  }
  .play-page .avatar {
    width: 46px;
    height: 50px;
  }
  .play-page #partner-seat .avatar {
    width: 42px;
    height: 46px;
  }
  .play-page .seat strong {
    font-size: 12px;
  }
  .play-page .seat small {
    font-size: 10px;
  }
  .play-page .turn-note strong {
    font-size: 13px;
  }
  .play-page .turn-note p {
    font-size: 11px;
    line-height: 1.15;
    margin: 2px 0;
  }
  .play-page #opening-label {
    font-size: 10px;
  }
  .play-page .stock-area {
    grid-template-columns: 55px minmax(0, 1fr) 55px;
    gap: 3px;
  }
  .play-page .piles {
    gap: 13px;
  }
  .play-page .stock-button,
  .play-page .discard-area {
    width: 77px;
    flex-basis: 77px;
  }
  .play-page .meld-board {
    padding: 0;
    gap: 3px 5px;
  }
  .play-page .meld-region {
    padding: 3px;
    grid-template-rows: 18px minmax(0, 1fr);
  }
  .play-page .meld-region h2 {
    font-size: 11px;
  }
  .play-page .plan-actions {
    gap: 4px;
  }
  .play-page .plan-actions button,
  .play-page .plan-actions select {
    font-size: 11px;
    padding: 2px 4px;
  }
  .play-page .plan-actions select {
    max-width: 100px;
    flex-basis: 100px;
  }
  .play-page #plan-status {
    font-size: 10px;
  }
  .play-page .action-panel {
    gap: 5px;
  }
  .play-page .action-panel > button {
    font-size: 13px;
    padding: 2px 5px;
  }
  .play-page .table-bottom {
    gap: 4px;
  }
  .play-page .table-bottom button {
    font-size: 11px;
    padding: 3px 6px;
    gap: 6px;
  }
  .play-page .round-indicator {
    font-size: 10px;
  }
  .play-page .game-shell[data-hand-density="medium"] .felt-table {
    grid-template-rows:
      53px minmax(70px, 1fr) 83px 22px minmax(112px, 27cqh)
      40px;
  }
  .play-page .game-shell[data-hand-density="dense"] .felt-table {
    grid-template-rows:
      48px minmax(64px, 1fr) 73px 20px minmax(130px, 36cqh)
      40px;
  }
}
@media (max-height: 650px) and (max-width: 599px) {
  .play-page .felt-table {
    grid-template-rows: 48px minmax(72px, 1fr) 74px 20px 85px 38px;
    gap: 3px;
  }
  .play-page .game-shell[data-hand-density="medium"] .felt-table {
    grid-template-rows: 44px minmax(66px, 1fr) 70px 20px 105px 38px;
  }
  .play-page .game-shell[data-hand-density="dense"] .felt-table {
    grid-template-rows: 42px minmax(58px, 1fr) 66px 20px 125px 38px;
  }
  .play-page .meld-board {
    grid-template-rows: minmax(0, 1fr) 30px;
  }
  .play-page .mini-card {
    height: 29px;
    font-size: 13px;
  }
  .play-page .mini-card b {
    font-size: 13px;
  }
  .play-page .meld-detail {
    font-size: 9px;
  }
  .play-page .plan-actions button,
  .play-page .plan-actions select {
    height: 28px;
    min-height: 28px;
  }
  .play-page .seat-cards {
    display: none;
  }
  .play-page #partner-seat .seat-cards {
    display: none;
  }
  .play-page .avatar {
    width: 37px;
    height: 40px;
  }
  .play-page #partner-seat .avatar {
    width: 36px;
    height: 40px;
  }
  .play-page .turn-note strong {
    font-size: 12px;
  }
  .play-page .turn-note p {
    font-size: 10px;
  }
  .play-page #opening-label {
    font-size: 9px;
  }
  .play-page #discard-card .card-corner {
    font-size: 20px;
  }
  .play-page #discard-card .card-corner small {
    font-size: 15px;
  }
}
@media (max-height: 540px) and (min-width: 600px) {
  .play-page .game-shell {
    grid-template-rows: minmax(0, 1fr) 34px;
  }
  .play-page .felt-table,
  .play-page .game-shell[data-hand-density] .felt-table {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 48px minmax(0, 1fr) 38px;
    gap: 3px 10px;
    padding: 3px 7px;
  }
  .play-page .opponents {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .play-page #partner-seat {
    grid-template-columns: 35px auto;
  }
  .play-page #partner-seat .avatar {
    width: 33px;
    height: 36px;
  }
  .play-page #partner-seat .seat-cards {
    display: none;
  }
  .play-page .meld-board {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    grid-template-rows: minmax(0, 1fr) 30px;
  }
  .play-page .stock-area {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .play-page .piles {
    gap: 12px;
  }
  .play-page .stock-button,
  .play-page .discard-area {
    height: 48px;
    grid-template-rows: 32px 14px;
    width: 60px;
    flex-basis: 60px;
  }
  .play-page .stock-button small,
  .play-page .discard-area small,
  .play-page .stock-button > span:not(.card-back),
  .play-page .discard-area > span {
    display: none;
  }
  .play-page .avatar {
    width: 32px;
    height: 35px;
  }
  .play-page .seat-cards,
  .play-page .seat small {
    display: none;
  }
  .play-page .seat strong {
    font-size: 10px;
  }
  .play-page .dealer-badge {
    font-size: 7px;
    line-height: 10px;
  }
  .play-page #discard-card .card-corner {
    font-size: 15px;
  }
  .play-page #discard-card .card-corner small {
    font-size: 12px;
  }
  .play-page .card-back > span {
    font-size: 15px;
    width: 20px;
    height: 20px;
  }
  .play-page .hand-header {
    display: none;
  }
  .play-page .hand-tray {
    grid-column: 2;
    grid-row: 2;
  }
  .play-page .action-panel {
    grid-row: 3;
    grid-column: 1/-1;
  }
  .play-page .action-panel > button {
    min-height: 34px;
    height: 34px;
    font-size: 13px;
  }
  .play-page .table-bottom button {
    min-height: 30px;
    font-size: 11px;
  }
  .play-page #you-seat .avatar {
    height: 28px;
    width: 26px;
  }
  .play-page .turn-note p {
    font-size: 11px;
  }
  .play-page .turn-note strong {
    font-size: 13px;
  }
  .play-page #opening-label {
    font-size: 10px;
  }
  .play-page .plan-actions select {
    max-width: 95px;
    flex-basis: 95px;
  }
  .play-page .plan-actions button {
    font-size: 11px;
    min-height: 28px;
    height: 28px;
  }
  .play-page #plan-status {
    font-size: 10px;
  }
  .play-page .mini-card {
    height: 28px;
    font-size: 13px;
  }
  .play-page .mini-card b {
    font-size: 13px;
  }
  .play-page .meld-detail {
    font-size: 9px;
  }
}
.play-page .stock-button,
.play-page .discard-area {
  grid-template-columns: minmax(0, 1fr);
}
.play-page .stock-button > *,
.play-page .discard-area > * {
  grid-area: auto;
}
.play-page .hand .playing-card .card-corner {
  font-size: var(--index-size);
  top: 3%;
  left: 3%;
  line-height: 1;
  align-items: center;
}
.play-page .hand .playing-card .card-corner small {
  font-size: 0.86em;
  line-height: 1;
}
.play-page .hand .playing-card .card-bottom {
  font-size: calc(var(--index-size) * 0.62);
}

.play-page .foot-stack {
  position: absolute;
  right: -7px;
  top: 23px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 28px;
  border: 2px solid #ede2bd;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, #8f6655 0 2px, #514734 2px 4px);
  color: #fff;
  font: 7px system-ui;
  opacity: 0.35;
  box-shadow: 2px 2px 0 #c3c3a2;
}
.play-page .foot-stack.is-dealt {
  opacity: 1;
}
.play-page #you-seat .foot-stack {
  position: relative;
  right: auto;
  top: auto;
  flex-shrink: 0;
  width: 16px;
  height: 23px;
}

@media (max-width: 600px) {
  .play-page.animating #hint,
  .play-page.animating .round-indicator {
    display: none;
  }
}

.play-page .stock-area .seat-cards {
  height: 16px;
  margin-top: 1px;
  padding-right: 7px;
}
.play-page .stock-area .seat-cards i {
  width: 11px;
  height: 16px;
  margin-right: -7px;
}
.play-page .game-shell[data-hand-density="dense"] .stock-area .avatar {
  width: 37px;
  height: 40px;
}

@media (max-width: 600px) {
  .play-page .stock-area .seat-cards {
    height: 12px;
    margin-top: 1px;
  }
  .play-page .stock-area .seat-cards i {
    height: 12px;
  }
  .play-page .game-shell[data-hand-density="dense"] .stock-area .avatar {
    width: 32px;
    height: 35px;
  }
}

.play-page .stock-area .foot-stack {
  top: 2px;
  right: -3px;
  width: 17px;
  height: 24px;
}
