/* TONGZHUO — a paper invitation, then a table with nothing between you and the cards. */
:root {
  --paper: #efece3;
  --ink: #293d32;
  --muted: #8a8f80;
  --forest: #314d3b;
  --gold: #e6c989;
  --line: #293d321b;
  --red: #ad5043;
  --card-w: 68px;
  --card-h: 99px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #ab8550;
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
input {
  user-select: text;
}
.hidden {
  display: none !important;
}
.muted {
  font-size: 13px;
  line-height: 1.9;
  color: #808574;
}
.overline {
  font-size: 9px;
  letter-spacing: 2.3px;
  font-weight: 500;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 47px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.button span {
  font-size: 17px;
}
.forest {
  background: var(--forest);
  color: #f1eee2;
}
.forest:hover:not(:disabled) {
  background: #233e2d;
}
.light {
  background: transparent;
  border-color: #293d3240;
  color: var(--ink);
}
.light:hover:not(:disabled) {
  background: #293d3208;
}
.gold {
  background: var(--gold);
  color: #3c422f;
}
.gold:hover:not(:disabled) {
  background: #f3dca5;
}
.ghost {
  background: transparent;
  color: #b8c5ac;
  border-color: #c7d3ad20;
}
.ghost:hover:not(:disabled) {
  background: #e8e0ad0a;
  color: #ece8ce;
}
.full {
  width: 100%;
}
.plain-button,
.underlined {
  background: none;
  border: 0;
  font-size: 12px;
  padding: 5px 0;
}
.underlined {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.plain-button:hover,
.underlined:hover {
  color: #916d43;
}
kbd {
  font: 10px monospace;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 3px;
  opacity: 0.5;
}
.home-view {
  min-height: 100dvh;
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 70% 30%, #e5e5d4aa, transparent 50%);
}
.home-header {
  height: 106px;
  margin: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  letter-spacing: 4px;
}
.logo {
  font-size: 42px;
  line-height: 1;
}
.wordmark small {
  display: block;
  font: 8px sans-serif;
  letter-spacing: 3.5px;
  margin-top: 5px;
}
.home-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}
.edition {
  font-family: "Songti SC", serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #929482;
}
.home-main {
  flex: 1;
  padding: 0 9%;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 470px;
  gap: 35px;
  padding: 28px 0;
}
.hero-copy .overline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7f8b72;
  font-size: 8px;
  letter-spacing: 2px;
}
.little-line {
  height: 1px;
  width: 23px;
  background: #8d977b;
}
.hero-copy h1 {
  font:
    clamp(34px, 4.3vw, 62px) / 1.45 Georgia,
    "Songti SC",
    "Noto Serif CJK SC",
    serif;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 22px 0;
}
.hero-copy h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 em:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  bottom: -5px;
  background: #81906a77;
  transform: rotate(-3deg);
}
.hero-copy > p {
  font-size: 13px;
  line-height: 2.1;
  color: #8a8b7b;
  letter-spacing: 0.4px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-size: 10px;
  color: #8f947f;
}
.hero-note span {
  font-size: 16px;
  color: #5f7056;
}
.hero-art {
  position: relative;
  height: 390px;
  isolation: isolate;
}
.orbit {
  position: absolute;
  border: 1px solid #85976b26;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 340px;
  height: 340px;
}
.orbit-two {
  width: 420px;
  height: 420px;
  border-style: dashed;
  border-color: #85976b15;
}
.art-caption {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 3px;
  white-space: nowrap;
  color: #8c957c;
}
.art-card {
  position: absolute;
  width: 145px;
  height: 210px;
  left: 50%;
  top: 45%;
  border-radius: 8px;
  box-shadow: 0 18px 35px #34442b22;
  transform-origin: 50% 105%;
}
.card-back {
  background: #3b5540;
  padding: 9px;
  color: #b8c5a1;
  border: 1px solid #2d4635;
  display: grid;
  place-items: center;
}
.card-back:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #a8b28a5c;
  border-radius: 3px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    #c2c99509 4px,
    #c2c99509 5px
  );
}
.card-back span {
  z-index: 1;
  font:
    25px/1.4 "Songti SC",
    serif;
  letter-spacing: 2px;
  border: 1px solid #aab6895c;
  border-radius: 50%;
  width: 70px;
  height: 86px;
  display: grid;
  place-content: center;
  background: #3b5540;
}
.back-one {
  transform: translate(-90%, -44%) rotate(-23deg);
}
.back-two {
  transform: translate(-28%, -43%) rotate(18deg);
  background: #677259;
}
.ace {
  transform: translate(-51%, -39%) rotate(-4deg);
  background: #faf7ed;
  border: 1px solid #d4d4bd;
  display: grid;
  place-items: center;
}
.art-corner {
  position: absolute;
  top: 10px;
  left: 13px;
  font:
    24px/0.95 Georgia,
    serif;
  text-align: center;
}
.art-corner.bottom {
  top: auto;
  left: auto;
  bottom: 10px;
  right: 13px;
  transform: rotate(180deg);
}
.ace-symbol {
  font:
    104px Georgia,
    serif;
  color: #324d39;
}
.secret-stamp {
  position: absolute;
  left: 76%;
  top: 63%;
  border: 1px solid #a16c4f;
  color: #a16c4f;
  font:
    16px/1.3 "Songti SC",
    serif;
  padding: 8px 5px;
  transform: rotate(10deg);
  border-radius: 4px;
}
.art-footnote {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font:
    10px "Songti SC",
    serif;
  letter-spacing: 3px;
  color: #969984;
}
.play-section {
  border-top: 1px solid var(--line);
  padding: 24px 0 26px;
}
.section-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.section-caption h2 {
  font:
    19px "Songti SC",
    serif;
  letter-spacing: 1px;
}
.section-caption > span {
  font-size: 10px;
  color: #969783;
}
.mode-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mode-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 21px 18px;
  background: #ffffff10;
  border: 1px solid #69775a30;
  border-radius: 6px;
}
.mode-option[aria-pressed="true"] {
  border-color: #586c45;
  background: #dce1ce66;
}
.mode-option:hover {
  background: #dce1ce44;
}
.mode-option strong {
  display: block;
  font:
    16px "Songti SC",
    serif;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.mode-option small {
  display: block;
  margin-top: 8px;
  color: #8b927d;
  font-size: 10px;
}
.mode-icon {
  font:
    32px Georgia,
    serif;
  color: #79846a;
}
.mode-check {
  display: none;
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10px;
  color: #65754f;
}
.mode-option[aria-pressed="true"] .mode-check {
  display: block;
}
.start-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}
.mode-description p {
  font-size: 11px;
  color: #92957e;
  line-height: 1.8;
}
.mode-description .underlined {
  font-size: 10px;
  color: #7c876c;
  margin-top: 5px;
}
.start-actions {
  display: flex;
  gap: 10px;
}
.how-it-feels {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0 12px;
  gap: 20px;
}
.how-it-feels > div {
  display: flex;
  gap: 15px;
  align-items: center;
}
.how-it-feels span {
  font:
    22px Georgia,
    serif;
  color: #b2b5a0;
}
.how-it-feels p {
  font-size: 10px;
  line-height: 1.9;
  color: #92967f;
}
.how-it-feels b {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #788567;
  margin-bottom: 2px;
}
.home-footer {
  display: flex;
  justify-content: space-between;
  margin: 28px 6% 0;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1px;
  color: #9b9e8a;
}
.home-footer i {
  font-style: normal;
  opacity: 0.5;
  margin: 0 8px;
}
/* Table: seats and their plays are spatially connected. No dashboard, no sidebar. */
.table-view {
  --ink: #dfe5cb;
  color: var(--ink);
  background: #193c30;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(
    ellipse at 50% 40%,
    #2d5040,
    transparent 70%
  );
}
.table-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid #e4e6c710;
  gap: 25px;
  background: #0e241c55;
}
.table-wordmark {
  border: 0;
  background: none;
  color: #e5dfc8;
  font:
    28px "Songti SC",
    serif;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.table-wordmark span {
  font-size: 20px;
  letter-spacing: 3px;
}
.table-wordmark small {
  font: 12px sans-serif;
  color: #8ca18b;
  margin-left: 5px;
}
.table-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #a1b199;
}
.connection-dot {
  width: 5px;
  height: 5px;
  background: #abc99d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #b6cfa208;
}
.connection-dot.offline {
  background: #d8a66b;
}
.table-location button {
  background: #ffffff08;
  border: 1px solid #a9c19022;
  border-radius: 4px;
  font-size: 9px;
  color: #b2c59e;
  padding: 4px 8px;
  margin-left: 6px;
}
.table-tools {
  display: flex;
  gap: 18px;
  margin-left: auto;
  align-items: center;
}
.table-tools button {
  border: 0;
  background: none;
  color: #aab59b;
  font-size: 11px;
  padding: 5px;
}
.table-tools button:not(:first-child) {
  border: 1px solid #c1c9a329;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
}
.table-tools button[aria-pressed="true"] {
  color: var(--gold);
  border-color: #e6c98966;
}
.table-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 10px 34px;
  gap: 15px;
}
.rules-line {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: #8fa58b;
  white-space: nowrap;
  align-items: center;
}
.rules-line b {
  font-weight: 400;
  color: #ced5ba;
}
.rules-line span + span:before {
  content: "·";
  margin-right: 15px;
  color: #6d896c;
}
.compact-score {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #9aaf8b;
  white-space: nowrap;
}
.compact-score > b {
  font:
    25px Georgia,
    serif;
  color: var(--gold);
  margin-left: 3px;
}
.score-meter {
  width: 85px;
  height: 3px;
  border-radius: 5px;
  background: #dbe2b818;
  margin: 0 3px;
  overflow: hidden;
}
.score-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.5s;
}
#score-provisional {
  font-size: 8px;
  color: #789271;
}
.connection-banner {
  padding: 8px 20px;
  background: #d3ab70;
  color: #35422c;
  font-size: 11px;
  text-align: center;
}
.arena {
  flex: 1;
  min-height: 405px;
  position: relative;
  margin: 0 35px;
  isolation: isolate;
}
.felt-ring {
  pointer-events: none;
  position: absolute;
  inset: 18px 32px 25px;
  border-radius: 42%;
  border: 1px solid #a8bf8618;
}
.felt-ring.inner {
  inset: 26px 40px 33px;
  border-color: #a8bf860c;
}
.felt-lettering {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font:
    95px "Songti SC",
    serif;
  color: #c5d3a906;
  letter-spacing: 18px;
}
.felt-lettering small {
  font: 7px sans-serif;
  letter-spacing: 6px;
  margin-top: 15px;
}
.seats,
.played-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  max-width: 120px;
  z-index: 2;
}
.seat-avatar {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #cdd8b5;
  border: 1px solid #b1c29744;
  border-radius: 50%;
  font:
    21px "Songti SC",
    serif;
  background: #465e45;
  box-shadow: 0 3px 10px #0a1e1544;
}
.seat:nth-child(2n) .seat-avatar {
  background: #59634c;
}
.seat:nth-child(3n) .seat-avatar {
  background: #56615c;
}
.seat:nth-child(4n) .seat-avatar {
  background: #655b47;
}
.seat.active .seat-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px #e6c98913;
}
.seat.winner .seat-avatar {
  border-color: var(--gold);
  background: #746944;
}
.seat.you .seat-avatar:after {
  content: "你";
  position: absolute;
  right: -7px;
  bottom: -2px;
  font: 8px sans-serif;
  border-radius: 3px;
  padding: 2px 4px;
  background: #c9bf91;
  color: #304332;
}
.seat-name {
  font-size: 10px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c8d1b6;
}
.seat-name small {
  font-size: 7px;
  margin-left: 5px;
  color: #7e997b;
}
.seat-badge {
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #92a789;
  white-space: nowrap;
  min-height: 12px;
}
.seat-badge.banker {
  color: #e6c989;
}
.seat-badge.ally {
  color: #b8d4d0;
}
.seat.active .seat-badge {
  color: var(--gold);
}
.seat.top-seat {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  text-align: left;
}
.top-seat .seat-avatar {
  grid-row: 1 / 3;
}
.top-seat .seat-name {
  max-width: 65px;
}
.seat.you {
  flex-direction: row;
  gap: 8px;
}
.seat.you .seat-avatar {
  display: none;
}
.seat.offline .seat-avatar {
  opacity: 0.5;
}
.play-cluster {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  z-index: 3;
  max-width: 180px;
  animation: card-arrive 0.22s ease-out;
}
.play-cluster .mini-hand {
  display: flex;
  padding-left: 4px;
}
.play-cluster .poker-card:not(:last-child) {
  margin-right: -26px;
}
.play-cluster > small {
  font-size: 9px;
  color: #a7bb9a;
  white-space: nowrap;
}
.play-cluster.winner > small {
  color: var(--gold);
}
.play-cluster.winner .poker-card {
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 18px #e6c98933;
}
.center-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(520px, 67%);
  z-index: 4;
}
.center-panel .overline {
  color: #809977;
  font-size: 8px;
  letter-spacing: 2.3px;
}
.center-panel h2 {
  font:
    29px "Songti SC",
    serif;
  font-weight: 400;
  letter-spacing: 3px;
  color: #e3e1c8;
  margin-top: 12px;
}
.center-panel > p {
  font-size: 11px;
  line-height: 1.8;
  color: #91a687;
  margin-top: 12px;
}
.center-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.center-panel .button {
  min-height: 39px;
  font-size: 11px;
}
.center-panel .text-on-felt {
  margin-top: 16px;
}
#lobby-people {
  font-size: 10px;
  color: #c4caa7;
  margin-top: 19px;
}
.bid-options {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 19px 0 0;
  flex-wrap: wrap;
}
.bid-option {
  border: 1px solid #c8d2aa33;
  background: #e9e6c30b;
  border-radius: 5px;
  color: #e7dec1;
  min-width: 64px;
  padding: 10px 12px;
}
.bid-option b {
  display: block;
  font:
    24px Georgia,
    serif;
  font-weight: 400;
}
.bid-option small {
  display: block;
  font-size: 9px;
  color: #acbb96;
  margin-top: 5px;
}
.bid-option:hover {
  background: #d9c89323;
  border-color: var(--gold);
}
.text-on-felt {
  border: 0;
  background: none;
  padding: 5px;
  color: #9ab18a;
  font-size: 10px;
}
.text-on-felt:hover:not(:disabled) {
  color: var(--gold);
}
.center-message {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 230px;
  z-index: 1;
}
.center-message .overline {
  color: #839c77;
  font-size: 8px;
  letter-spacing: 2px;
}
.center-message h2 {
  font:
    25px "Songti SC",
    serif;
  letter-spacing: 2px;
  color: #cfd7b6;
  margin-top: 10px;
  font-weight: 400;
}
.center-message p {
  color: #809975;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 9px;
}
.center-message.playing,
.center-message.review {
  top: 50%;
}
.center-message.playing .overline,
.center-message.playing p,
.center-message.review .overline {
  display: none;
}
.center-message.playing h2,
.center-message.review h2 {
  margin-top: 0;
}
.center-message.review h2 {
  color: var(--gold);
  font-size: 22px;
}
.center-message.review p {
  margin-top: 5px;
  line-height: 1.3;
}
.center-message.review {
  animation: reveal-in 0.3s ease;
}
.call-fields {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}
.call-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: #112d2180;
  border: 1px solid #dbe2b822;
  border-radius: 6px;
}
.call-field legend {
  font-size: 9px;
  color: #c4cba7;
}
.call-selects {
  display: flex;
  gap: 6px;
}
.call-selects select {
  background: #203d2c;
  border: 1px solid #a9c19033;
  color: #d2dabb;
  font-size: 11px;
  padding: 8px 5px;
  border-radius: 4px;
  min-width: 0;
}
.call-field small {
  color: #89a175;
  font-size: 8px;
}
.reveal-note {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid #dfcb8b77;
  background: #41523bee;
  box-shadow: 0 6px 30px #172b2044;
  border-radius: 7px;
  animation: reveal-in 0.3s ease;
}
.reveal-note > span {
  font:
    28px Georgia,
    serif;
  color: var(--gold);
}
.reveal-note small {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  color: #c0b783;
}
.reveal-note strong {
  display: block;
  font:
    15px "Songti SC",
    serif;
  letter-spacing: 1px;
  margin-top: 5px;
  max-width: 290px;
}
.table-under {
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 40px;
  border-top: 1px solid #dce4c011;
}
.secret-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #c4ceac;
  flex: 1;
  min-width: 0;
}
.secret-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #7e9872;
  white-space: nowrap;
}
.secret-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
}
.secret-card b {
  font:
    16px Georgia,
    serif;
  color: #e6dfc0;
}
.secret-card small {
  color: #99ad86;
  font-size: 8px;
}
.secret-card.found b {
  color: var(--gold);
}
/* A hand is the workspace. Burying uses it too; no second hidden hand in a modal. */
.hand-dock {
  background: #10291f88;
  border-top: 1px solid #dbe2b81c;
  padding: 17px 35px 10px;
}
.turn-instruction {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 50px;
}
.instruction-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 12px;
  flex: 1;
  min-width: 0;
}
.step-label {
  border: 1px solid #d8cb9740;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 9px;
  color: #c7c899;
  grid-row: 1/3;
  align-self: center;
}
.instruction-copy h2 {
  font:
    18px "Songti SC",
    serif;
  letter-spacing: 0.8px;
  font-weight: 400;
  color: #e2e3c5;
}
.instruction-copy p {
  font-size: 10px;
  line-height: 1.5;
  color: #819972;
  min-height: 15px;
}
.instruction-copy.invalid p {
  color: #e2ad8d;
}
.hand-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hand-actions .button {
  min-height: 40px;
  padding: 0 17px;
  font-size: 12px;
  gap: 9px;
}
.clock {
  position: relative;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  color: #b5bf94;
  display: grid;
  place-items: center;
  font:
    12px Georgia,
    serif;
}
.clock svg {
  position: absolute;
  inset: 0;
  width: 37px;
  height: 37px;
  transform: rotate(-90deg);
  fill: none;
  stroke: #bdc59616;
  stroke-width: 1.5;
}
#clock-ring {
  stroke: #b1bb84;
  stroke-dasharray: 107;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s linear;
}
.clock.urgent {
  color: #e9b186;
}
.clock.urgent #clock-ring {
  stroke: #e9b186;
}
.hand-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  min-height: 25px;
  gap: 10px;
}
#hand-summary {
  color: #718d65;
  font-size: 9px;
  white-space: nowrap;
}
.hand-tabs {
  display: flex;
  gap: 5px;
}
.hand-tabs button {
  border: 0;
  background: transparent;
  color: #8da27c;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 10px;
}
.hand-tabs button:hover {
  background: #dce4c012;
  color: #e0dfbe;
}
.hand-tabs button:first-child {
  color: #bfcca2;
  padding-left: 0;
}
.hand-tabs small {
  font-size: 8px;
  color: #708a62;
  margin-left: 4px;
}
.hand-scroll {
  overflow: auto hidden;
  scrollbar-width: thin;
  scrollbar-color: #657956 transparent;
  display: flex;
  align-items: flex-end;
  min-height: 130px;
  padding: 22px 2px 7px;
  position: relative;
}
.hand {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 auto;
  flex-shrink: 0;
  min-height: 99px;
}
.hand-group {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.hand-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    15px "Songti SC",
    serif;
  letter-spacing: 4px;
  color: #7c926166;
  pointer-events: none;
}
.hand-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #5e7953;
  gap: 10px;
  margin-top: 5px;
}
.hand-bottom i {
  font-style: normal;
  margin: 0 9px;
}
.poker-card {
  width: var(--card-w);
  height: var(--card-h);
  position: relative;
  flex-shrink: 0;
  border: 1px solid #c5c9b0;
  border-radius: 5px;
  background: linear-gradient(130deg, #faf8e9, #e7ead5);
  color: #2f4332;
  padding: 0;
  box-shadow: -2px 3px 5px #06130d33;
  text-align: left;
  user-select: none;
  vertical-align: bottom;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.poker-card.red {
  color: #ad5142;
}
.card-corner {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font:
    19px/1 Georgia,
    serif;
}
.card-corner span:last-child {
  font-size: 16px;
}
.card-symbol {
  position: absolute;
  right: 10px;
  bottom: 12px;
  font:
    34px Georgia,
    serif;
  opacity: 0.9;
}
.poker-card.trump {
  border-top: 3px solid #c4aa69;
  background: linear-gradient(130deg, #fff8e4, #ebe6c9);
}
.poker-card.trump:after {
  content: "主";
  position: absolute;
  right: 4px;
  top: 5px;
  font: 8px sans-serif;
  color: #a99553;
}
.poker-card.joker .card-corner {
  font:
    12px/1.3 "Songti SC",
    serif;
}
.poker-card.joker .card-symbol {
  font:
    19px "Songti SC",
    serif;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
}
.poker-card.selected {
  transform: translateY(-15px);
  box-shadow:
    0 0 0 2px var(--gold),
    -2px 4px 7px #071a1055;
}
.poker-card.selectable:hover {
  transform: translateY(-6px);
}
.poker-card.selected:hover {
  transform: translateY(-17px);
}
.poker-card.mini {
  --card-w: 43px;
  --card-h: 61px;
  border-radius: 4px;
}
.mini .card-corner {
  font-size: 13px;
  left: 3px;
  top: 4px;
}
.mini .card-corner span:last-child {
  font-size: 11px;
}
.mini .card-symbol {
  font-size: 23px;
  right: 4px;
  bottom: 5px;
}
.mini.trump:after {
  display: none;
}
.mini.joker .card-symbol {
  font-size: 12px;
  letter-spacing: 1px;
}
.mini.joker .card-corner {
  font-size: 9px;
}
.poker-card.just-played {
  animation: card-arrive 0.2s ease;
}
/* Native dialogs supply keyboard focus containment; all forms use real buttons. */
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c2c6af;
  border-radius: 10px;
  padding: 0;
  width: min(94vw, 520px);
  max-height: 89dvh;
  box-shadow: 0 25px 100px #13261966;
  overflow: auto;
}
dialog::backdrop {
  background: #10231acc;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: dialog-in 0.18s ease;
}
.wide-dialog {
  width: min(94vw, 700px);
}
.dialog-head {
  position: relative;
  padding: 29px 29px 23px;
  border-bottom: 1px solid var(--line);
}
.dialog-head .overline {
  color: #9c9f85;
  font-size: 8px;
}
.dialog-head h2 {
  font:
    27px "Songti SC",
    serif;
  margin-top: 12px;
  letter-spacing: 1px;
  font-weight: 400;
}
.dialog-head > button {
  position: absolute;
  right: 20px;
  top: 22px;
  border: 0;
  background: none;
  font-size: 24px;
  color: #8a9578;
  width: 30px;
  height: 30px;
}
.dialog-body {
  padding: 24px 29px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.dialog-body > label {
  font-size: 12px;
  color: #6f7c5e;
  margin-bottom: -7px;
}
.dialog-body h3 {
  font:
    16px "Songti SC",
    serif;
  font-weight: 400;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 29px;
  background: #e6e5d8;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
}
.dialog-foot .button {
  min-height: 42px;
  font-size: 12px;
}
.choice-row {
  display: flex;
  gap: 7px;
}
.choice-row button {
  border: 1px solid #7884633b;
  flex: 1;
  background: transparent;
  padding: 12px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: #7a8669;
}
.choice-row button[aria-pressed="true"] {
  border-color: #6b7e51;
  background: #d8dfc966;
  color: #3f5935;
}
.paper-note {
  background: #e1e3d33d;
  border: 1px solid #8c997940;
  border-radius: 4px;
  padding: 13px 15px;
  font-size: 12px;
  color: #7b8767;
  line-height: 1.9;
}
input,
select {
  border: 1px solid #8c99794d;
  border-radius: 4px;
  background: #f7f5ec;
  color: #394d32;
  padding: 13px;
  min-width: 0;
}
input {
  width: 100%;
  font-size: 13px;
}
input::placeholder {
  color: #a4ab96;
}
label {
  font-size: 12px;
  color: #7a8869;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-row .button {
  min-height: 43px;
}
#room-entry,
#room-ticket {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 10px;
  color: #8f987e;
}
.or-line:before,
.or-line:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
#room-code {
  text-transform: uppercase;
  letter-spacing: 4px;
}
.ticket-code {
  font:
    42px Georgia,
    serif;
  text-align: center;
  letter-spacing: 7px;
  color: #53643e;
  padding: 10px 0;
}
#ticket-link {
  font-size: 11px;
  color: #8b927b;
}
.guide section {
  display: flex;
  gap: 20px;
}
.guide section > b {
  font:
    25px Georgia,
    serif;
  color: #afb899;
}
.guide section h3 {
  margin-bottom: 7px;
}
.guide section p {
  font-size: 12px;
  line-height: 1.9;
  color: #7f8c6c;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history-row > span {
  font-size: 12px;
  min-width: 60px;
}
.history-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.result-score {
  text-align: center;
  padding: 5px 0 12px;
}
.result-score strong {
  font:
    76px Georgia,
    serif;
  color: #536d3e;
}
.result-score small {
  display: block;
  font-size: 11px;
  color: #97a080;
  margin-top: 8px;
}
.result-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.team-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.team-card.win {
  border-color: #9aaa7e;
  background: #dbe2c555;
}
.team-card small {
  font-size: 9px;
  color: #8f9c77;
}
.team-card p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 7px;
}
.story-row {
  display: flex;
  gap: 14px;
  margin: 12px 0;
  align-items: baseline;
  font-size: 12px;
  color: #899776;
  line-height: 1.8;
}
.story-row > b {
  font:
    17px Georgia,
    serif;
  color: #afb998;
}
.result-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
details {
  font-size: 11px;
  color: #8c9879;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
#result-tricks {
  margin-top: 10px;
  max-height: 200px;
  overflow: auto;
}
#result-tricks > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.dialog-error {
  margin: 0 29px 20px;
  padding: 12px;
  border: 1px solid #bf987766;
  border-radius: 4px;
  color: #a76748;
  font-size: 12px;
  line-height: 1.7;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #efe8d2;
  color: #405039;
  border: 1px solid #bdbb9c;
  box-shadow: 0 8px 30px #11251b44;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  max-width: min(90vw, 460px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes card-arrive {
  from {
    opacity: 0;
    margin-top: 8px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}
@keyframes reveal-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 540px;
  }
  .hero-art {
    height: 440px;
  }
  .hero-copy h1 {
    font-size: 65px;
  }
  .art-card {
    width: 163px;
    height: 236px;
  }
  .hero-note {
    margin-top: 40px;
  }
  .arena {
    margin: 0 8%;
    min-height: 440px;
  }
  .hand-dock {
    padding-left: 6%;
    padding-right: 6%;
  }
}
@media (max-width: 1100px) {
  .home-header {
    height: 85px;
  }
  .home-main {
    padding: 0 6%;
  }
  .hero {
    min-height: 420px;
  }
  .hero-art {
    height: 330px;
  }
  .orbit {
    width: 280px;
    height: 280px;
  }
  .orbit-two {
    width: 340px;
    height: 340px;
  }
  .art-card {
    width: 125px;
    height: 182px;
  }
  .ace-symbol {
    font-size: 85px;
  }
  .art-corner {
    font-size: 21px;
  }
  .mode-option {
    padding: 19px 13px;
    gap: 10px;
  }
  .mode-option strong {
    font-size: 15px;
  }
  .mode-icon {
    font-size: 27px;
  }
  .mode-option small {
    font-size: 9px;
  }
  .start-actions .button {
    padding: 0 16px;
    gap: 12px;
  }
  .how-it-feels {
    gap: 10px;
  }
  .arena {
    margin: 0 20px;
  }
  .rules-line {
    gap: 10px;
  }
  .rules-line span + span:before {
    margin-right: 10px;
  }
  .score-meter {
    width: 60px;
  }
  .table-topline {
    padding: 10px 25px;
  }
  .hand-dock {
    padding-left: 25px;
    padding-right: 25px;
  }
  .hand-actions .button {
    padding: 0 12px;
  }
  .turn-instruction {
    gap: 13px;
  }
  .instruction-copy h2 {
    font-size: 17px;
  }
  .center-panel {
    width: min(470px, 65%);
  }
  .center-panel h2 {
    font-size: 26px;
  }
  .center-panel > p {
    font-size: 10px;
  }
  .call-selects select {
    font-size: 10px;
    padding: 8px 4px;
  }
}
@media (max-width: 760px) {
  .edition {
    display: none;
  }
  .home-header {
    margin: 0 6%;
    height: 77px;
  }
  .wordmark {
    font-size: 23px;
  }
  .logo {
    font-size: 35px;
  }
  .hero {
    gap: 15px;
    min-height: 390px;
  }
  .hero-copy h1 {
    font-size: 35px;
    margin: 20px 0;
  }
  .hero-copy > p {
    font-size: 11px;
  }
  .hero-copy .overline {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .hero-note {
    font-size: 8px;
    margin-top: 20px;
  }
  .hero-art {
    height: 310px;
  }
  .orbit {
    width: 210px;
    height: 240px;
  }
  .orbit-two {
    width: 270px;
    height: 300px;
  }
  .art-card {
    width: 110px;
    height: 160px;
  }
  .ace-symbol {
    font-size: 73px;
  }
  .art-corner {
    font-size: 18px;
  }
  .art-caption {
    font-size: 5px;
    letter-spacing: 1.5px;
    top: 8%;
  }
  .art-footnote {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .secret-stamp {
    font-size: 12px;
    padding: 6px 4px;
    left: 81%;
  }
  .card-back span {
    font-size: 19px;
    width: 57px;
    height: 73px;
  }
  .mode-options {
    gap: 8px;
  }
  .mode-option {
    padding: 15px 12px;
    gap: 8px;
  }
  .mode-icon {
    display: none;
  }
  .mode-option strong {
    font-size: 14px;
  }
  .mode-option small {
    font-size: 8px;
  }
  .section-caption h2 {
    font-size: 17px;
  }
  .section-caption > span {
    font-size: 9px;
  }
  .start-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
    gap: 16px;
  }
  .mode-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mode-description p {
    font-size: 10px;
  }
  .mode-description .underlined {
    white-space: nowrap;
    font-size: 9px;
  }
  .start-actions {
    justify-content: flex-end;
  }
  .start-actions .button {
    flex: 1;
  }
  .home-footer {
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .table-header {
    height: 57px;
    padding: 0 20px;
    gap: 15px;
  }
  .table-wordmark {
    font-size: 24px;
  }
  .table-wordmark span {
    font-size: 18px;
  }
  .table-location {
    font-size: 9px;
  }
  .table-tools {
    gap: 12px;
  }
  .table-tools button {
    font-size: 10px;
  }
  .table-tools button:not(:first-child) {
    width: 25px;
    height: 25px;
  }
  .table-topline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 10px 15px;
    min-height: 66px;
  }
  .rules-line {
    font-size: 9px;
    gap: 12px;
  }
  .rules-line span + span:before {
    margin-right: 12px;
  }
  .compact-score {
    gap: 7px;
    font-size: 9px;
  }
  .compact-score > b {
    font-size: 20px;
  }
  .score-meter {
    width: 90px;
  }
  .arena {
    min-height: 370px;
    margin: 0 14px;
  }
  .felt-ring {
    inset: 20px 16px 24px;
  }
  .felt-ring.inner {
    inset: 27px 23px 31px;
  }
  .seat-avatar {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }
  .seat-name {
    font-size: 9px;
  }
  .seat-badge {
    font-size: 7px;
  }
  .seat {
    gap: 4px;
    min-width: 65px;
  }
  .play-cluster .poker-card {
    --card-w: 37px;
    --card-h: 53px;
  }
  .play-cluster .poker-card:not(:last-child) {
    margin-right: -25px;
  }
  .play-cluster .card-symbol {
    font-size: 18px;
  }
  .center-message {
    width: 170px;
  }
  .center-message h2 {
    font-size: 21px;
  }
  .center-message p {
    font-size: 9px;
  }
  .center-panel {
    width: 65%;
  }
  .center-panel h2 {
    font-size: 24px;
  }
  .center-panel .overline {
    font-size: 6px;
    letter-spacing: 1.3px;
  }
  .center-panel > p {
    font-size: 9px;
    line-height: 1.8;
  }
  .bid-options {
    gap: 6px;
    margin-top: 14px;
  }
  .bid-option {
    min-width: 52px;
    padding: 8px;
  }
  .bid-option b {
    font-size: 20px;
  }
  .bid-option small {
    font-size: 8px;
  }
  .call-fields {
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
  }
  .call-field {
    padding: 8px;
    gap: 5px;
  }
  .call-selects {
    justify-content: center;
  }
  .call-selects select {
    flex: 1;
    font-size: 11px;
    padding: 7px 4px;
  }
  .center-panel .button {
    min-height: 35px;
    font-size: 10px;
    padding: 0 12px;
  }
  .table-under {
    padding: 0 20px;
    min-height: 46px;
  }
  .secret-strip {
    font-size: 9px;
    gap: 8px;
  }
  .secret-label {
    font-size: 8px;
  }
  .secret-card {
    margin-right: 7px;
  }
  .secret-card b {
    font-size: 14px;
  }
  .secret-card small {
    font-size: 7px;
  }
  .hand-dock {
    padding: 14px 20px 10px;
  }
  .turn-instruction {
    gap: 11px;
    flex-wrap: wrap;
  }
  .instruction-copy {
    flex-basis: calc(100% - 55px);
    gap: 4px 9px;
  }
  .hand-actions {
    justify-content: flex-end;
    width: 100%;
    margin-top: 2px;
  }
  .hand-actions .button {
    min-height: 34px;
    font-size: 11px;
    padding: 0 13px;
  }
  .hand-actions #hand-confirm {
    min-width: 108px;
  }
  .instruction-copy h2 {
    font-size: 17px;
  }
  .instruction-copy p {
    font-size: 9px;
  }
  .step-label {
    font-size: 8px;
    padding: 4px 6px;
  }
  .clock {
    width: 34px;
    height: 34px;
  }
  .clock svg {
    width: 34px;
    height: 34px;
  }
  .hand-caption {
    margin-top: 10px;
  }
  .hand-tabs {
    gap: 2px;
  }
  .hand-tabs button {
    font-size: 9px;
    padding: 3px 6px;
  }
  .hand-bottom > span:last-child {
    display: none;
  }
  .hand-scroll {
    min-height: 127px;
  }
  .hand {
    gap: 11px;
  }
  .reveal-note {
    top: 0;
    padding: 9px 14px;
  }
  .reveal-note strong {
    font-size: 12px;
  }
  .reveal-note small {
    font-size: 7px;
  }
  .reveal-note > span {
    font-size: 24px;
  }
  .table-view .toast {
    bottom: 260px;
  }
}
@media (max-width: 480px) {
  :root {
    --card-w: 60px;
    --card-h: 89px;
  }
  .home-header {
    height: 69px;
  }
  .wordmark {
    font-size: 22px;
    gap: 9px;
  }
  .wordmark small {
    font-size: 7px;
  }
  .home-nav .plain-button {
    font-size: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    position: relative;
    padding: 38px 0 30px;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    pointer-events: none;
  }
  .hero-copy h1 {
    font-size: 37px;
    line-height: 1.5;
    letter-spacing: 0;
    margin: 18px 0;
  }
  .hero-copy .overline {
    font-size: 5px;
    letter-spacing: 1.6px;
  }
  .hero-copy > p {
    font-size: 11px;
    line-height: 2;
  }
  .hero-note {
    margin-top: 27px;
    font-size: 8px;
  }
  .hero-art {
    position: absolute;
    right: -7%;
    top: 119px;
    width: 42%;
    height: 204px;
    opacity: 0.9;
    z-index: 1;
  }
  .art-card {
    width: 72px;
    height: 105px;
  }
  .ace-symbol {
    font-size: 49px;
  }
  .art-corner {
    font-size: 12px;
    left: 7px;
    top: 6px;
  }
  .art-corner.bottom {
    right: 7px;
    bottom: 6px;
  }
  .card-back {
    padding: 4px;
  }
  .card-back:before {
    inset: 4px;
  }
  .card-back span {
    font-size: 13px;
    width: 37px;
    height: 47px;
  }
  .art-caption,
  .art-footnote {
    display: none;
  }
  .orbit {
    width: 142px;
    height: 160px;
    border-color: #85976b12;
  }
  .orbit-two {
    width: 171px;
    height: 190px;
  }
  .secret-stamp {
    font-size: 10px;
    left: 83%;
    top: 62%;
    padding: 4px 2px;
  }
  .hero-copy > p {
    max-width: 65%;
  }
  .section-caption {
    margin-bottom: 15px;
  }
  .section-caption h2 {
    font-size: 18px;
  }
  .section-caption > span {
    font-size: 8px;
  }
  .play-section {
    padding-top: 23px;
    padding-bottom: 23px;
  }
  .mode-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mode-option {
    padding: 14px 16px;
    gap: 13px;
  }
  .mode-icon {
    display: block;
    font-size: 27px;
    min-width: 24px;
  }
  .mode-option strong {
    font-size: 16px;
  }
  .mode-option small {
    font-size: 9px;
    margin-top: 6px;
  }
  .mode-check {
    top: 27px;
    right: 17px;
  }
  .mode-description {
    align-items: flex-start;
    gap: 5px;
  }
  .mode-description p {
    font-size: 9px;
    max-width: 75%;
  }
  .mode-description .underlined {
    font-size: 8px;
  }
  .start-actions {
    gap: 8px;
  }
  .start-actions .button {
    padding: 0 12px;
    min-height: 44px;
    font-size: 11px;
    gap: 8px;
  }
  .how-it-feels {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 21px;
  }
  .how-it-feels > div {
    gap: 16px;
  }
  .how-it-feels span {
    font-size: 20px;
  }
  .how-it-feels p {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 9px;
  }
  .how-it-feels b {
    font-size: 11px;
    margin: 0;
  }
  .home-footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 23px;
    padding: 18px 0 21px;
    font-size: 8px;
  }
  .table-header {
    height: 53px;
    padding: 0 14px;
    gap: 12px;
  }
  .table-wordmark {
    gap: 7px;
    font-size: 21px;
  }
  .table-wordmark span {
    font-size: 17px;
  }
  .table-wordmark small {
    font-size: 10px;
    margin-left: 0;
  }
  .table-location {
    font-size: 8px;
    gap: 5px;
  }
  .table-location button {
    margin-left: 0;
    padding: 3px 5px;
    font-size: 8px;
  }
  .table-tools {
    gap: 9px;
  }
  .table-tools button:first-child {
    font-size: 0;
    width: 21px;
    height: 21px;
    padding: 0;
  }
  .table-tools button:first-child:after {
    content: "⚙";
    font-size: 15px;
  }
  .table-tools button:not(:first-child) {
    font-size: 13px;
    width: 23px;
    height: 23px;
  }
  .table-topline {
    padding: 7px 10px;
    min-height: 60px;
  }
  .rules-line {
    font-size: 8px;
    gap: 7px;
  }
  .rules-line span + span:before {
    margin-right: 7px;
  }
  .compact-score {
    font-size: 8px;
    gap: 6px;
  }
  .compact-score > b {
    font-size: 18px;
  }
  .score-meter {
    width: 75px;
  }
  .arena {
    margin: 0 8px;
    min-height: 330px;
  }
  .felt-ring {
    inset: 25px 9px 23px;
    border-radius: 40%;
  }
  .felt-ring.inner {
    inset: 31px 15px 29px;
  }
  .seat {
    min-width: 55px;
    gap: 4px;
    max-width: 80px;
  }
  .seat-avatar {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }
  .seat-name {
    font-size: 8px;
    max-width: 72px;
  }
  .seat-name small {
    font-size: 6px;
    margin-left: 3px;
  }
  .seat-badge {
    font-size: 7px;
    letter-spacing: 0;
  }
  .seat.you .seat-avatar:after {
    font-size: 7px;
    right: -7px;
    bottom: -2px;
  }
  .play-cluster {
    gap: 4px;
    max-width: 130px;
  }
  .play-cluster .poker-card {
    --card-w: 31px;
    --card-h: 45px;
  }
  .play-cluster .poker-card:not(:last-child) {
    margin-right: -20px;
  }
  .mini .card-corner {
    font-size: 11px;
    left: 2px;
    top: 3px;
  }
  .mini .card-corner span:last-child {
    font-size: 10px;
  }
  .play-cluster .card-symbol {
    font-size: 17px;
    bottom: 3px;
    right: 3px;
  }
  .play-cluster > small {
    font-size: 7px;
  }
  .mini.joker .card-symbol {
    font-size: 9px;
  }
  .center-message {
    width: 130px;
    top: 47%;
  }
  .center-message .overline {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .center-message h2 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  .center-message p {
    font-size: 8px;
    margin-top: 6px;
  }
  .center-panel {
    width: 66%;
  }
  .center-panel h2 {
    font-size: 22px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  .center-panel > p {
    font-size: 8px;
    margin-top: 9px;
  }
  .center-panel .overline {
    font-size: 5px;
    letter-spacing: 1.1px;
  }
  .center-actions {
    gap: 6px;
    margin-top: 14px;
  }
  .center-panel .button {
    font-size: 9px;
    padding: 0 11px;
    gap: 6px;
    min-height: 33px;
  }
  #lobby-people {
    font-size: 9px;
    margin-top: 14px;
  }
  .bid-option {
    min-width: 44px;
    padding: 7px 8px;
  }
  .bid-option b {
    font-size: 18px;
  }
  .bid-options {
    gap: 5px;
    margin-top: 13px;
  }
  .bid-option small {
    font-size: 7px;
  }
  .center-panel .text-on-felt {
    margin-top: 10px;
    font-size: 9px;
  }
  .call-fields {
    margin: 10px 0;
    gap: 6px;
  }
  .call-field {
    padding: 6px;
    gap: 4px;
  }
  .call-field legend {
    font-size: 8px;
  }
  .call-selects select {
    font-size: 10px;
    padding: 6px 3px;
  }
  .call-field small {
    font-size: 7px;
  }
  .table-under {
    padding: 0 13px;
    gap: 7px;
    min-height: 42px;
  }
  .secret-strip {
    gap: 7px;
  }
  .secret-label {
    font-size: 7px;
  }
  .secret-card {
    margin-right: 5px;
    gap: 3px;
  }
  .secret-card b {
    font-size: 12px;
  }
  .secret-card small {
    font-size: 6px;
  }
  .text-on-felt {
    font-size: 9px;
  }
  .hand-dock {
    padding: 12px 13px max(9px, env(safe-area-inset-bottom));
  }
  .instruction-copy h2 {
    font-size: 16px;
  }
  .instruction-copy p {
    font-size: 9px;
  }
  .hand-actions {
    gap: 6px;
  }
  .hand-actions .button {
    font-size: 10px;
    padding: 0 11px;
    min-height: 33px;
  }
  .hand-actions kbd {
    display: none;
  }
  .hand-tabs button {
    font-size: 9px;
    padding: 3px 5px;
  }
  .hand-tabs small {
    font-size: 7px;
    margin-left: 3px;
  }
  #hand-summary {
    font-size: 8px;
  }
  .hand-scroll {
    min-height: 113px;
    padding: 19px 1px 5px;
  }
  .hand {
    min-height: 89px;
    gap: 10px;
  }
  .hand-bottom {
    font-size: 7px;
  }
  .reveal-note {
    top: 0;
    padding: 8px 12px;
    gap: 8px;
  }
  .reveal-note strong {
    font-size: 11px;
    max-width: 210px;
  }
  .reveal-note small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .reveal-note > span {
    font-size: 21px;
  }
  .felt-lettering {
    font-size: 70px;
  }
  .felt-lettering small {
    font-size: 5px;
    letter-spacing: 3px;
  }
  .dialog-head {
    padding: 23px 22px 19px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  .dialog-body {
    padding: 20px 22px;
    gap: 15px;
  }
  .dialog-foot {
    padding: 15px 22px;
    gap: 8px;
  }
  .dialog-foot .button {
    font-size: 11px;
    padding: 0 13px;
    gap: 10px;
  }
  .muted {
    font-size: 12px;
  }
  .choice-row button {
    font-size: 11px;
    padding: 12px 3px;
  }
  .guide section {
    gap: 15px;
  }
  .guide section p {
    font-size: 11px;
  }
  .paper-note {
    font-size: 11px;
  }
  .ticket-code {
    font-size: 34px;
    letter-spacing: 6px;
  }
  .dialog-error {
    margin: 0 22px 17px;
    font-size: 11px;
  }
  .result-score strong {
    font-size: 61px;
  }
  .team-card {
    padding: 12px;
  }
  .team-card p {
    font-size: 11px;
  }
  .story-row {
    font-size: 11px;
  }
  .result-bottom .poker-card {
    --card-w: 36px;
    --card-h: 52px;
  }
  .toast {
    font-size: 11px;
    padding: 11px 16px;
  }
}
@media (max-height: 780px) and (min-width: 761px) {
  .arena {
    min-height: 310px;
  }
  .table-header {
    height: 53px;
  }
  .table-topline {
    min-height: 43px;
  }
  .hand-dock {
    padding-top: 12px;
  }
  .hand-caption {
    margin-top: 9px;
  }
  .hand-scroll {
    min-height: 124px;
  }
  .table-under {
    min-height: 43px;
  }
  .center-panel h2 {
    font-size: 25px;
  }
  .center-panel > p {
    margin-top: 8px;
  }
  .call-fields {
    margin: 12px 0;
  }
  .reveal-note {
    top: -4px;
  }
  .seat-avatar {
    height: 37px;
    width: 37px;
  }
  .seat {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
