/* Shared scene, with room for 16 starting tiles and a growing hand. */
.game-view.runfast-view .hand {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  width: min(100%, 1240px);
  max-width: 1240px;
  max-height: min(158px, calc(var(--game-height, 100vh) * 0.23));
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  gap: 6px 4px;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-color: var(--scene-gold) var(--scene-deep);
}
.game-view.runfast-view .hand .tile {
  width: 100%;
  min-width: 0;
}
.viewport-narrow .game-view.runfast-view .hand {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  max-height: min(158px, calc(var(--game-height, 100vh) * 0.28));
}
.viewport-compact .game-view.runfast-view .hand {
  grid-template-columns: repeat(16, minmax(0, 1fr));
}
.viewport-short .game-view.runfast-view .hand {
  max-height: 48px;
  padding-top: 8px;
}
.runfast-view .fast-actions {
  grid-template-columns: 1.2fr 1fr;
  width: min(100%, 340px);
}
.viewport-narrow .runfast-view .fast-actions {
  width: 100%;
}
.viewport-compact .game-view.runfast-view .fast-actions {
  width: 310px;
}
.hand-scroll-hint {
  margin: 0 0 3px;
  color: var(--scene-muted);
  font-size: 10px;
}
.game-view.runfast-view .word-seat-play {
  width: 72px;
  max-width: 20vw;
}
.word-seat-play .last-word-button {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: #fffbe8;
  background: #19473e;
  border: 1px solid #789180;
  border-radius: 4px;
}
.runfast-view .word-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 40%;
  max-width: 470px;
}
.word-center .word-text {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  color: #fffbe8;
  overflow-wrap: anywhere;
  margin: 3px 0;
  max-height: 112px;
  overflow-y: auto;
  max-width: 100%;
}
.word-center .play-owner,
.word-center .play-state {
  text-align: center;
  margin: 2px 0;
}
.word-center .word-expand {
  color: var(--scene-text);
  background: transparent;
  border: 1px solid #789180;
  padding: 3px 8px;
  font-size: 11px;
}
.viewport-narrow .runfast-view .word-center {
  width: 44%;
  max-width: 44%;
}
.viewport-compact .runfast-view .word-center {
  max-width: 38%;
}
.viewport-compact .word-center .word-text {
  max-height: 65px;
  font-size: 26px;
}
.viewport-short .runfast-view .word-center {
  width: 30%;
  max-width: 30%;
  top: 53%;
}
.viewport-short .word-center .play-state {
  display: none;
}
.viewport-short .word-center .play-owner {
  font-size: 10px;
}
.viewport-short .word-center .word-text {
  max-height: 38px;
  font-size: 23px;
  margin: 1px 0;
}
.viewport-short .word-center .word-expand {
  display: none; /* The toolbar's 牌河 opens the same complete record. */
}
.word-history article {
  padding: 14px 0;
  border-bottom: 1px solid #cad7ce;
}
.word-history-text {
  font-size: 21px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin: 7px 0;
}
.runfast-view .table-judgement {
  overflow-wrap: anywhere;
}
.runfast-view .composition-content .group {
  overflow-wrap: anywhere;
}
.runfast-view .groups .tile {
  min-width: 32px;
}
