@font-face {
  font-family: NightHappy;
  src: url("/assets/ZCOOLKuaiLe-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #14213d;
  --felt: #1f3a5f;
  --gold: #f4c95d;
  --cream: #f4ecd9;
  --muted: #b4bfd1;
  --line: #d3b57735;
  --ink: #15243b;
  --surface: #142139ed;
  --round: NightHappy, "YouYuan", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--round);
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff0a8;
  outline-offset: 4px;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  border-radius: 13px;
}
input,
textarea {
  min-height: 45px;
  border: 1px solid #b6c8e343;
  background: #0d1b30;
  color: var(--cream);
  padding: 11px 14px;
  width: 100%;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #f4c95d16;
}
input::placeholder,
textarea::placeholder {
  color: #91a0b7;
}
textarea {
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.25;
}
h1 {
  font-size: 48px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 22px;
}
.room-scene {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, #14213d05, #14213d1a 60%, #0a1322a0),
    url("/assets/room-background.png") center top/cover no-repeat;
  z-index: -3;
}
.room-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 5%,
    #08132335 72%,
    #050a15a0
  );
  z-index: -2;
  pointer-events: none;
}
.topbar {
  max-width: 1600px;
  min-height: 114px;
  margin: auto;
  padding: 22px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 12px #0008);
}
.brand img {
  width: 54px;
  height: 54px;
}
.brand > span {
  font-size: 29px;
  color: #ffe1a2;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: #c8b895;
  font:
    10px "Microsoft YaHei",
    sans-serif;
  letter-spacing: 2px;
  margin-top: 6px;
}
.game-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #101b30cb;
  border: 1px solid #d0bb8b32;
  border-radius: 30px;
}
.game-tabs button {
  color: #a9b4c6;
  background: none;
  padding: 9px 17px;
  border-radius: 24px;
  white-space: nowrap;
}
.game-tabs button.active {
  color: #26334a;
  background: #f4d786;
  box-shadow: 0 2px 9px #0004;
}
.game-tabs small {
  font-size: 10px;
  display: inline-block;
  opacity: 0.6;
  margin-left: 3px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mini-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #101c30c9;
  padding: 5px 12px 5px 5px;
  border: 1px solid #d0bb8b32;
  color: #f3e6c8;
}
.mini-profile .avatar {
  width: 38px;
  height: 38px;
  border-width: 1px;
}
.top-label {
  font-size: 12px;
  color: #b9c3d2;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ddc18e4d;
  min-height: 43px;
  padding: 10px 20px;
  background: #253b59;
  color: var(--cream);
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: #365075;
  transform: translateY(-1px);
}
.btn.gold {
  color: #352e20;
  background: linear-gradient(#ffe5a2, #e8b84f);
  border: 1px solid #ffe2a5;
  box-shadow:
    0 4px 18px #0003,
    inset 0 1px #fff6;
}
.btn.gold:hover:not(:disabled) {
  background: linear-gradient(#fff0c3, #f1c765);
  box-shadow: 0 3px 24px #f4c95d29;
}
.btn.ghost {
  background: #14213980;
  border-color: #adbbd13b;
  color: #d8e0e9;
}
.btn.danger {
  color: #f0ab9e;
  border-color: #e7a29735;
  background: #512f3e3d;
}
.btn.small {
  font-size: 13px;
  padding: 7px 13px;
  min-height: 35px;
}
.text-button {
  background: none;
  color: #e8cb8b;
  padding: 8px;
  border-radius: 6px;
}
.eyebrow {
  font:
    11px "Microsoft YaHei",
    sans-serif;
  letter-spacing: 2px;
  color: #dcc389;
}
.quiet {
  color: var(--muted);
  font-size: 14px;
}
.loading-state {
  text-align: center;
  padding: 120px 24px;
  color: #e0c48d;
}
.moon-loader {
  display: block;
  font-size: 70px;
  animation: breathe 1.8s ease-in-out infinite;
}
.site-footer {
  max-width: 1520px;
  margin: 14px auto 0;
  padding: 14px 36px 20px;
  display: flex;
  justify-content: space-between;
  color: #aeb7c6;
  font-size: 12px;
  text-shadow: 0 2px 8px #000;
}
.site-footer button {
  background: none;
  color: #d6c5a5;
  font-size: 12px;
}
.lobby {
  max-width: 1200px;
  margin: 15px auto 0;
  padding: 12px 28px 30px;
}
.lobby-hero {
  text-align: center;
  padding: 23px 0 28px;
  text-shadow: 0 3px 16px #000a;
}
.lobby-hero h1 {
  color: #ffdfa1;
  margin: 12px 0;
}
.lobby-hero .quiet {
  color: #e4d9c4;
  font-size: 16px;
}
.hero-line {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #dfc58e;
  font-size: 13px;
}
.hero-line:before,
.hero-line:after {
  content: "";
  width: 38px;
  height: 1px;
  background: #d7ba7b6b;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: linear-gradient(140deg, #182943f2, #102039f0);
  border: 1px solid #d1b77e45;
  border-radius: 24px;
  padding: 27px;
  box-shadow: 0 15px 50px #0004;
  backdrop-filter: blur(9px);
}
.game-card {
  min-height: 295px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 10%, #6e5c2f38, transparent 50%),
    linear-gradient(135deg, #264a6a, #112942);
  padding: 30px;
}
.game-card .eyebrow {
  color: #e8c984;
}
.game-card h2 {
  font-size: 38px;
  margin: 13px 0 10px;
}
.game-card p {
  max-width: 250px;
  margin-bottom: 26px;
}
.game-card .btn {
  min-width: 155px;
}
.lobby-card-art {
  position: absolute;
  right: 35px;
  top: 69px;
  width: 117px;
  height: 152px;
  transform: rotate(16deg);
  background: #f5edda;
  color: #be584e;
  border: 1px solid #fff5;
  border-radius: 11px;
  box-shadow:
    -19px 8px 0 -1px #bac6cb,
    -38px 15px 0 -2px #243e60,
    0 7px 20px #0005;
  font:
    bold 32px Georgia,
    serif;
  padding: 10px;
  pointer-events: none;
}
.lobby-card-art:after {
  content: "♥";
  position: absolute;
  left: 35px;
  top: 51px;
  font-size: 56px;
}
.lobby-card-art small {
  font: 22px Georgia;
  display: block;
  line-height: 1;
}
.future-games {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.future-card {
  padding: 17px;
  border: 1px solid #b2c3dd28;
  border-radius: 15px;
  background: #111c2bcc;
  flex: 1;
  color: #b9c5d6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.future-card .symbol {
  font-size: 30px;
  color: #d8d9d8;
}
.future-card small {
  font-size: 11px;
  color: #98a4b7;
  display: block;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h3 {
  margin: 0;
}
.room-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.room-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #cad3e22b;
  border-radius: 15px;
  background: #0d1a2d7d;
  padding: 15px;
  text-align: left;
  width: 100%;
  color: var(--cream);
}
.room-item:hover {
  border-color: #f4c95d7a;
  background: #1f3554;
}
.room-item .room-icon {
  width: 42px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #f0cc84;
  background: #355070;
}
.room-item .room-info {
  flex: 1;
  min-width: 0;
}
.room-info strong {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 400;
}
.room-info small {
  color: #aab6c7;
  font-size: 12px;
}
.room-item .arrow {
  color: #e0c48b;
  font-size: 23px;
}
.empty-note {
  color: #a2b0c6;
  padding: 22px 5px;
  text-align: center;
  font-size: 14px;
}
.join-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d0c19f28;
  margin-top: 22px;
  padding-top: 17px;
  gap: 8px;
}
.join-strip > span {
  font-size: 14px;
  color: #c2cbd9;
}
.login-panel {
  max-width: 460px;
  margin: 70px auto 90px;
  padding: 32px;
  text-align: center;
}
.login-panel .brand-icon {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto 16px;
}
.login-panel input {
  text-align: left;
}
.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  color: #d5dbe3;
  margin: 12px 0 7px;
}
.form-help {
  font-size: 12px;
  color: #a3b1c7;
  margin: 8px 0 0;
}
.error-inline {
  color: #ffc0a4;
  background: #9f41312b;
  border: 1px solid #e47b602e;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
}
.avatar {
  background-image: url("/assets/avatars.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid #e9ce8d;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 5px 18px #0006;
  background-color: #1e3554;
}
.avatar[data-avatar="dragon"] {
  background-position: 0 0;
}
.avatar[data-avatar="cat"] {
  background-position: 50% 0;
}
.avatar[data-avatar="wolf"] {
  background-position: 100% 0;
}
.avatar[data-avatar="fox"] {
  background-position: 0 100%;
}
.avatar[data-avatar="owl"] {
  background-position: 50% 100%;
}
.avatar[data-avatar="rabbit"] {
  background-position: 100% 100%;
}
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 15px 0 20px;
}
.avatar-choice {
  background: #20344e;
  color: #d9dfeb;
  border: 1px solid #8ca1bd30;
  border-radius: 18px;
  padding: 13px 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.avatar-choice .avatar {
  width: 78px;
  height: 78px;
}
.avatar-choice.selected {
  background: #3e4c56;
  border-color: #f4c95d;
  box-shadow: 0 0 0 2px #f4c95d24;
}
.avatar-choice span:last-child {
  font-size: 14px;
}
.avatar-choice small {
  font-size: 10px;
  color: #c3bc9c;
  display: block;
}
.table-page {
  max-width: 1530px;
  margin: 0 auto;
  padding: 0 26px;
}
.table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 1370px;
  margin: 0 auto 7px;
  padding: 0 12px;
}
.table-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.table-title h2 {
  font-size: 19px;
  margin: 0;
  color: #ecdfbf;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.round-pill {
  font:
    11px "Microsoft YaHei",
    sans-serif;
  color: #d5bf8c;
  background: #101d30b0;
  border: 1px solid #e0c3842d;
  padding: 3px 9px;
  border-radius: 20px;
}
.table-menu {
  display: flex;
  align-items: center;
  gap: 7px;
}
.table-menu .btn {
  font-size: 12px;
  padding: 5px 11px;
  min-height: 31px;
}
.table-stage {
  position: relative;
  min-height: 665px;
  height: min(73vh, 820px);
  isolation: isolate;
}
.felt-table {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 13%;
  bottom: 3%;
  border-radius: 49%/42%;
  background:
    radial-gradient(ellipse at 50% 25%, #3d5b7b66, transparent 60%),
    repeating-linear-gradient(25deg, #ffffff02 0 1px, transparent 1px 3px),
    var(--felt);
  border: 13px solid #4b3426;
  outline: 1px solid #9f7c405e;
  box-shadow:
    0 0 0 5px #2a201e,
    inset 0 0 0 3px #c8ab6e55,
    inset 0 0 65px #0007,
    0 24px 45px #0008;
  z-index: -1;
}
.felt-table:after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #d3b36542;
  border-radius: inherit;
  pointer-events: none;
}
.felt-stamp {
  position: absolute;
  top: 29%;
  left: 50%;
  transform: translateX(-50%);
  width: 155px;
  height: 155px;
  background: url("/assets/night-cat.svg") center/contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.hanging-lamp {
  position: absolute;
  left: 50%;
  top: -103px;
  width: 180px;
  height: 100px;
  transform: translateX(-50%);
  pointer-events: none;
  display: none;
}
.hanging-lamp:before {
  content: "";
  position: absolute;
  left: 49%;
  width: 2px;
  height: 60px;
  background: #a67c3d;
}
.hanging-lamp:after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 160px;
  height: 52px;
  border-radius: 85px 85px 20px 20px;
  background: linear-gradient(#533f23, #b8974a);
  border-bottom: 6px solid #f9d67c;
  box-shadow: 0 26px 80px 35px #f7ca5630;
}
.seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  min-width: 110px;
  text-align: center;
}
.seat.left {
  left: 5%;
  top: 8%;
}
.seat.right {
  right: 5%;
  top: 8%;
}
.seat.self {
  left: 5%;
  bottom: 5%;
  max-width: 125px;
}
.seat-name {
  font-size: 19px;
  margin: 6px 0 2px;
  text-shadow: 0 2px 8px #000;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-badge {
  display: inline-block;
  padding: 1px 12px;
  border-radius: 18px;
  background: #536c8b;
  color: #eef0e8;
  font-size: 12px;
  box-shadow: 0 2px 7px #0002;
}
.role-badge.landlord {
  background: #e9c06a;
  color: #4b371d;
}
.seat-meta {
  font-size: 13px;
  margin: 6px 0;
  color: #e6d9bd;
  display: flex;
  align-items: center;
  gap: 5px;
}
.seat.current .avatar {
  box-shadow:
    0 0 0 4px #f4c95d2b,
    0 0 26px #f4c95d32;
}
.seat.current .seat-name:after {
  content: " ·";
  color: var(--gold);
}
.seat .ready-label {
  color: #a3c9ae;
  font-size: 12px;
}
.seat .auto-label {
  color: #d1b67e;
  font-size: 11px;
}
.seat .small-edit {
  font-size: 11px;
  padding: 1px 5px;
  background: none;
  color: #ddc490;
}
.fish {
  font-size: 16px;
  filter: saturate(0.5) sepia(0.4);
}
.empty-seat {
  width: 96px;
  height: 96px;
  border: 1px dashed #e7c8956b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #182c4399;
  color: #d5bc8c;
  font-size: 36px;
}
.seat .empty-caption {
  color: #c5cdd9;
  font-size: 13px;
  margin-top: 8px;
}
.seat .btn {
  font-size: 11px;
  min-height: 28px;
  padding: 4px 10px;
  margin-top: 6px;
}
.card-back-row {
  position: absolute;
  display: flex;
  top: 25%;
  width: 25%;
  height: 83px;
  pointer-events: none;
}
.card-back-row.left {
  left: 18%;
  transform: rotate(-7deg);
}
.card-back-row.right {
  right: 18%;
  transform: rotate(7deg);
  justify-content: flex-end;
}
.card-back {
  position: relative;
  flex: 0 0 49px;
  height: 73px;
  margin-left: -25px;
  border-radius: 6px;
  border: 1px solid #d7bd80;
  background:
    repeating-linear-gradient(45deg, #8cabb20a 0 1px, transparent 1px 5px),
    #162d4c;
  box-shadow: 0 2px 5px #0006;
}
.card-back:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #c0aa7260;
  border-radius: 3px;
}
.card-back:after {
  content: "";
  position: absolute;
  inset: 14px 4px;
  background: url("/assets/night-cat.svg") center/contain no-repeat;
  opacity: 0.8;
}
.kitty-stamp {
  display: block;
}
.bottom-cards {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.bottom-cards > .caption {
  font-size: 11px;
  color: #ddcaa2;
  margin-bottom: 5px;
}
.small-hand {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.playing-card {
  position: relative;
  background: linear-gradient(130deg, #fff9ed, #e9dfc9);
  border: 1px solid #f9f3db;
  border-radius: 8px;
  color: #202635;
  box-shadow: 0 3px 7px #0004;
  flex-shrink: 0;
  font-family: "Georgia", serif;
}
.playing-card.red {
  color: #bd4c48;
}
.playing-card .corner {
  position: absolute;
  left: 7px;
  top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
}
.playing-card .rank {
  font-size: 27px;
}
.playing-card .suit {
  font-size: 22px;
  line-height: 1.1;
}
.playing-card .pip {
  position: absolute;
  font-size: 45px;
  right: 8px;
  bottom: 6px;
  line-height: 1;
}
.playing-card.joker .rank {
  font-size: 17px;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}
.playing-card.joker .pip {
  font-size: 24px;
}
.small-hand .playing-card {
  width: 43px;
  height: 61px;
  border-radius: 5px;
}
.small-hand .rank {
  font-size: 18px;
}
.small-hand .suit {
  font-size: 14px;
}
.small-hand .pip {
  font-size: 26px;
  right: 4px;
  bottom: 3px;
}
.small-hand .corner {
  left: 4px;
  top: 3px;
}
.small-hand .playing-card.joker .rank {
  font-size: 10px;
}
.small-hand .playing-card.joker .pip {
  font-size: 16px;
}
.back-small {
  width: 43px;
  height: 61px;
  border-radius: 5px;
  background: #193553;
  border: 1px solid #c1a66f;
  display: grid;
  place-items: center;
  color: #c9b07b;
  font-size: 24px;
}
.last-play {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 66%;
}
.last-play > .caption {
  font-size: 12px;
  color: #c1cada;
  margin-bottom: 7px;
}
.played-cards {
  display: flex;
  justify-content: center;
  padding-left: 22px;
  max-width: 100%;
}
.played-cards .playing-card {
  width: 59px;
  height: 85px;
  margin-left: -18px;
}
.played-cards .rank {
  font-size: 23px;
}
.played-cards .suit {
  font-size: 18px;
}
.played-cards .pip {
  font-size: 34px;
}
.played-cards .playing-card:nth-child(n + 9) {
  margin-left: -34px;
}
.table-status {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  color: #f5db94;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 11px;
  font-size: 19px;
  white-space: nowrap;
  text-shadow: 0 0 18px #f4c95d35;
}
.table-status .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e7c071;
  box-shadow: 0 0 10px #f4c95d;
}
.table-status small {
  font-size: 12px;
  color: #bac7d6;
}
.table-center-lobby {
  position: absolute;
  left: 50%;
  top: 37%;
  transform: translate(-50%, -20%);
  text-align: center;
  width: 55%;
}
.table-center-lobby .eyebrow {
  color: #dfc283;
}
.table-center-lobby h2 {
  font-size: 31px;
  margin: 9px 0;
}
.table-center-lobby p {
  font-size: 14px;
  color: #c5cfdb;
  margin: 10px 0 20px;
}
.table-center-lobby .btn {
  min-width: 130px;
}
.lobby-center-icon {
  font-size: 40px;
  color: #f4d385;
  line-height: 1;
}
.center-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.table-note {
  font-size: 12px;
  color: #aab9cf;
  margin-top: 13px;
}
.hand-zone {
  position: absolute;
  left: 19%;
  right: 9%;
  bottom: 17%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 145px;
  padding-top: 20px;
  isolation: isolate;
}
.hand-card {
  width: clamp(56px, 5.2vw, 78px);
  height: 111px;
  margin-left: var(--overlap, -21px);
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
  transform-origin: center bottom;
  box-shadow: 0 3px 7px #0005;
  text-align: left;
}
.hand-card:first-child {
  margin-left: 0;
}
.hand-card:disabled {
  opacity: 1;
  cursor: default;
}
.hand-card:hover:not(:disabled) {
  transform: translateY(-10px);
}
.hand-card.selected {
  transform: translateY(-22px);
  border-color: #ffe29b;
  box-shadow:
    0 0 0 2px #f4c95d,
    0 0 22px #f4c95d35;
}
.hand-card .rank {
  font-size: 31px;
}
.hand-card .suit {
  font-size: 24px;
}
.hand-card .pip {
  font-size: 47px;
}
.hand-card .card-selected {
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: 11px;
  color: #6d5827;
  background: #f5d17b;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  font-family: var(--round);
}
.table-controls {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
}
.table-controls .btn {
  min-width: 115px;
  min-height: 47px;
  border-radius: 25px;
  font-size: 20px;
  box-shadow: 0 3px 10px #0004;
}
.table-controls.bid-controls .btn {
  min-width: 90px;
  font-size: 17px;
}
.selection-note {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #b9c6d8;
  white-space: nowrap;
}
.fish-dish {
  position: absolute;
  right: 7%;
  top: 56%;
  width: 95px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #413b33 5%,
    #8c7d66 45%,
    #bdab8c 50%,
    #5e5146 68%
  );
  border: 1px solid #e4ca9a4a;
  transform: rotate(-9deg);
  box-shadow: 0 4px 9px #0006;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  filter: saturate(0.4);
}
.speech-bubble {
  position: absolute;
  top: -13px;
  left: 104px;
  width: max-content;
  max-width: 180px;
  padding: 10px 15px;
  border-radius: 17px 17px 17px 3px;
  background: #f6edda;
  color: #3c3933;
  font-size: 13px;
  box-shadow: 0 3px 12px #0004;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: left;
  z-index: 9;
}
.seat.right .speech-bubble {
  left: auto;
  right: 104px;
  border-radius: 17px 17px 3px 17px;
}
.seat.self .speech-bubble {
  top: -65px;
  max-width: 210px;
}
.table-bottom-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  max-width: 1350px;
  margin: -3px auto 0;
  padding: 0 16px;
}
.connection-state {
  font:
    11px "Microsoft YaHei",
    sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b8c9cb;
}
.connection-dot {
  width: 5px;
  height: 5px;
  background: #a1c4a1;
  border-radius: 50%;
}
.connection-dot.offline {
  background: #f0bb70;
}
.table-subtle-info {
  font-size: 12px;
  color: #c3cfdf;
  margin-left: 8px;
}
.chat-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 340px;
  max-width: 470px;
  flex: 1;
  justify-content: flex-end;
}
.chat-compose {
  display: flex;
  align-items: center;
  background: #122139e8;
  border: 1px solid #b8c9de4d;
  border-radius: 25px;
  padding: 2px 5px 2px 15px;
  flex: 1;
}
.chat-compose input {
  min-height: 36px;
  border: 0;
  background: transparent;
  padding: 4px 7px;
  box-shadow: none;
  font-size: 13px;
}
.chat-compose button {
  background: none;
  color: #d8cfb3;
  font-size: 21px;
  padding: 0 10px;
}
.chat-compose input:focus {
  box-shadow: none;
}
.chat-log-toggle {
  background: #17283d;
  color: #d1c4a7;
  border: 1px solid #a8b3c53d;
  border-radius: 50%;
  height: 37px;
  width: 37px;
  font-size: 16px;
}
.chat-pane {
  max-height: 330px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 5px;
}
.chat-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-line .avatar {
  width: 36px;
  height: 36px;
  border-width: 1px;
}
.chat-line .message-body {
  flex: 1;
  min-width: 0;
}
.chat-line .message-meta {
  font-size: 11px;
  color: #a9b9ce;
  margin-bottom: 4px;
}
.chat-line p {
  margin: 0;
  padding: 8px 11px;
  border-radius: 0 10px 10px;
  background: #263b56;
  color: #ebe9df;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.chat-line.mine p {
  background: #534d35;
}
.toasts {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
  align-items: center;
  max-width: 90vw;
}
.toast {
  background: #f6edda;
  color: #293347;
  border: 1px solid #cfb16d;
  border-radius: 13px;
  padding: 10px 20px;
  box-shadow: 0 5px 25px #0007;
  font-size: 14px;
  animation: toast-in 0.25s ease-out;
}
.toast.error {
  background: #59333b;
  color: #ffe3c9;
  border-color: #bd7d6a;
}
dialog {
  color: var(--cream);
  border: 1px solid #cdb37e70;
  background: linear-gradient(135deg, #1b2b44, #111f35);
  border-radius: 24px;
  box-shadow: 0 20px 100px #000b;
  padding: 34px;
  width: min(520px, calc(100vw - 30px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #050b16aa;
  backdrop-filter: blur(6px);
}
.modal-close {
  position: absolute;
  right: 13px;
  top: 10px;
  color: #c4c4bb;
  background: none;
  font-size: 28px;
  padding: 0 8px;
}
.modal-head-icon {
  font-size: 39px;
  color: #f4ce7c;
  margin-bottom: 10px;
}
dialog h2 {
  color: #f4d491;
  margin: 0 0 15px;
}
dialog p {
  font-size: 14px;
  line-height: 1.8;
  color: #c8d2de;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.invite-link {
  word-break: break-all;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}
.invite-options {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.invite-options .btn {
  flex: 1;
}
.invite-credentials {
  margin-top: 15px;
  padding: 15px;
  background: #0c192a;
  border-radius: 12px;
  border: 1px solid #abbbce35;
}
.invite-credentials pre {
  max-height: 180px;
  overflow: auto;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c5d2e4;
}
.invite-credentials summary {
  cursor: pointer;
  color: #e0c68c;
  font-size: 13px;
}
.rule-list {
  font-size: 14px;
  color: #d5d9df;
  padding-left: 21px;
}
.rule-list li {
  margin-bottom: 11px;
}
.result-banner {
  text-align: center;
}
.result-banner .big-moon {
  font-size: 49px;
  color: #f2cd77;
}
.result-banner h2 {
  font-size: 31px;
  margin: 5px 0 10px;
}
.result-banner .spring-note {
  color: #e8ca8d;
}
.score-list {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #23364e;
  border: 1px solid #c0cbd522;
  border-radius: 15px;
  padding: 12px;
}
.score-row .avatar {
  width: 45px;
  height: 45px;
  border-width: 1px;
}
.score-row .score-name {
  flex: 1;
}
.score-row strong {
  font-size: 24px;
  font-weight: 400;
  color: #a9c5d7;
}
.score-row strong.positive {
  color: #f4cd79;
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.win-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  overflow: hidden;
}
.win-star {
  position: absolute;
  top: 20%;
  left: 50%;
  color: #f3d48c;
  font-size: 12px;
  opacity: 0;
  animation: star-fall 2.4s ease-out forwards;
  animation-delay: var(--delay);
  --x: 0px;
  --r: 0deg;
}
.lamp-celebrate .room-scene {
  animation: lamp-light 1.2s ease-in-out;
}
.status-paused {
  position: absolute;
  inset: 24% 20% 23%;
  z-index: 9;
  background: #101e34f2;
  border: 1px solid #d3b57770;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 55px #0008;
  text-align: center;
  padding: 25px;
}
.status-paused h2 {
  color: #f2d68d;
  margin: 12px 0;
}
.mobile-hand-note {
  display: none;
}
.muted-divider {
  border: 0;
  border-top: 1px solid #c3b48c30;
  margin: 20px 0;
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-preview .avatar {
  width: 68px;
  height: 68px;
}
.profile-preview p {
  margin: 0;
}
.room-pending {
  opacity: 0.65;
  pointer-events: none;
}
.icon-inline {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
@keyframes breathe {
  50% {
    opacity: 0.35;
    transform: translateY(-4px);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes star-fall {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  20% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), 40vh) rotate(var(--r)) scale(0.7);
  }
}
@keyframes lamp-light {
  0%,
  100% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.12);
  }
  70% {
    filter: brightness(0.96);
  }
}
.card-back:after {
  background-image: url("/assets/card-stamp.svg");
}
.felt-stamp {
  background-image: url("/assets/card-stamp.svg");
}
.table-stage {
  min-height: 460px;
  height: calc(100svh - 230px);
  max-height: 820px;
}
.last-play {
  top: 32%;
}
.table-status {
  top: 54%;
}
body {
  overflow-x: hidden;
}
.room-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/room-background.png") center top/cover no-repeat;
  clip-path: polygon(36% 0, 64% 0, 64% 17%, 36% 17%);
  transform-origin: 50% 0;
  pointer-events: none;
}
.lamp-celebrate .room-scene:after {
  animation: pendant-sway 1.6s ease-in-out;
}
@keyframes pendant-sway {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(0.8deg);
  }
  55% {
    transform: rotate(-0.55deg);
  }
  80% {
    transform: rotate(0.25deg);
  }
}
@media (min-width: 1600px) {
  .table-stage {
    min-height: 700px;
  }
  .hand-card {
    height: 126px;
  }
  .hand-card .rank {
    font-size: 36px;
  }
  .hand-card .pip {
    font-size: 54px;
  }
  .seat .avatar {
    width: 104px;
    height: 104px;
  }
  .speech-bubble {
    left: 116px;
  }
  .seat.right .speech-bubble {
    right: 116px;
  }
}
@media (max-width: 1120px) {
  .topbar {
    padding: 18px 24px;
    gap: 15px;
    min-height: 100px;
  }
  .brand > span {
    font-size: 24px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .game-tabs button {
    padding: 8px 12px;
    font-size: 13px;
  }
  .game-tabs small {
    display: none;
  }
  .top-label {
    display: none;
  }
  .table-page {
    padding: 0 10px;
  }
  .seat .avatar {
    width: 78px;
    height: 78px;
  }
  .seat.left {
    left: 3%;
  }
  .seat.right {
    right: 3%;
  }
  .seat.self {
    left: 3%;
    bottom: 6%;
  }
  .speech-bubble {
    left: 88px;
    max-width: 145px;
    font-size: 12px;
  }
  .seat.right .speech-bubble {
    right: 88px;
  }
  .hand-zone {
    left: 20%;
    right: 5%;
    bottom: 18%;
  }
  .hand-card {
    height: 100px;
    width: 65px;
    --overlap: -23px;
  }
  .hand-card .rank {
    font-size: 28px;
  }
  .hand-card .pip {
    font-size: 40px;
  }
  .table-controls .btn {
    min-width: 100px;
  }
  .felt-table {
    left: 2%;
    right: 2%;
  }
  .table-title h2 {
    max-width: 200px;
  }
  .table-menu .btn {
    font-size: 11px;
  }
  .table-stage {
    min-height: 620px;
    height: 72vh;
  }
  .fish-dish {
    right: 5%;
  }
  .lobby-card-art {
    opacity: 0.65;
    right: 25px;
    width: 100px;
    height: 140px;
  }
  .game-card p {
    max-width: 210px;
  }
  .brand small {
    letter-spacing: 1px;
  }
  .site-footer {
    padding: 14px 24px;
  }
  .top-actions .text-button {
    font-size: 13px;
  }
  .hand-card .corner {
    left: 5px;
  }
  .lobby-layout {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 23px;
  }
}
@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    min-height: 120px;
    padding: 14px 17px 10px;
    gap: 13px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand > span {
    font-size: 23px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .game-tabs {
    order: 3;
    margin: auto;
    font-size: 12px;
  }
  .game-tabs button {
    padding: 6px 20px;
  }
  .top-actions {
    margin-left: auto;
  }
  .mini-profile {
    font-size: 12px;
    padding-right: 8px;
  }
  .mini-profile .avatar {
    width: 31px;
    height: 31px;
  }
  .top-actions .btn {
    padding: 7px 10px;
    font-size: 12px;
    min-height: 34px;
  }
  .lobby {
    margin: 4px auto;
    padding: 4px 17px 20px;
  }
  .lobby-hero {
    padding: 14px 0 24px;
  }
  .lobby-hero h1 {
    font-size: 34px;
    margin: 8px 0;
  }
  .lobby-hero .quiet {
    font-size: 14px;
  }
  .lobby-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .game-card {
    min-height: 250px;
  }
  .lobby-card-art {
    opacity: 0.9;
    top: 42px;
    right: 28px;
  }
  .panel {
    padding: 22px;
    border-radius: 20px;
  }
  .game-card h2 {
    font-size: 34px;
  }
  .game-card p {
    max-width: 190px;
  }
  .game-card .btn {
    min-width: 135px;
  }
  .future-card {
    padding: 12px;
  }
  .lobby-rooms {
    order: 2;
  }
  .login-panel {
    margin: 35px 18px 60px;
    max-width: none;
  }
  .site-footer {
    font-size: 10px;
    padding: 15px 19px;
  }
  .site-footer > span {
    max-width: 70%;
  }
  .table-page {
    padding: 0 5px;
  }
  .table-top {
    padding: 0 12px;
    margin-top: 8px;
    gap: 5px;
  }
  .table-title {
    gap: 6px;
  }
  .table-title h2 {
    font-size: 15px;
    max-width: 145px;
  }
  .round-pill {
    font-size: 9px;
    padding: 2px 6px;
  }
  .table-menu {
    gap: 4px;
  }
  .table-menu .btn {
    font-size: 10px;
    padding: 4px 8px;
    min-height: 28px;
  }
  .table-menu .menu-secondary {
    display: none;
  }
  .table-stage {
    height: calc(100svh - 236px);
    min-height: 540px;
    max-height: 770px;
  }
  .felt-table {
    left: -5%;
    right: -5%;
    top: 20%;
    bottom: 5%;
    border-width: 9px;
    border-radius: 50%/37%;
  }
  .felt-table:after {
    inset: 8px;
  }
  .seat {
    min-width: 75px;
  }
  .seat.left {
    left: 4%;
    top: 6%;
  }
  .seat.right {
    right: 4%;
    top: 6%;
  }
  .seat .avatar {
    width: 64px;
    height: 64px;
  }
  .seat-name {
    font-size: 15px;
    max-width: 100px;
    margin: 3px 0;
  }
  .role-badge {
    font-size: 10px;
    padding: 0 9px;
  }
  .seat-meta {
    font-size: 11px;
    margin: 3px 0;
  }
  .seat .ready-label {
    font-size: 10px;
  }
  .seat .btn {
    font-size: 10px;
    padding: 3px 7px;
  }
  .seat.self {
    left: 4%;
    bottom: 8%;
    max-width: 80px;
    align-items: center;
  }
  .seat.self .avatar {
    width: 54px;
    height: 54px;
  }
  .seat.self .seat-name {
    font-size: 13px;
    max-width: 80px;
  }
  .seat.self .seat-meta {
    font-size: 10px;
  }
  .seat.self .small-edit {
    display: none;
  }
  .card-back-row {
    top: 23%;
    height: 60px;
    width: 24%;
  }
  .card-back-row.left {
    left: 22%;
    transform: rotate(-9deg);
  }
  .card-back-row.right {
    right: 22%;
    transform: rotate(9deg);
  }
  .card-back {
    height: 45px;
    flex-basis: 30px;
    margin-left: -20px;
    border-radius: 4px;
  }
  .card-back:before {
    inset: 2px;
  }
  .card-back:after {
    inset: 8px 1px;
  }
  .bottom-cards {
    top: 8%;
  }
  .bottom-cards > .caption {
    font-size: 9px;
  }
  .small-hand .playing-card,
  .back-small {
    width: 26px;
    height: 38px;
    border-radius: 3px;
  }
  .small-hand .rank {
    font-size: 13px;
  }
  .small-hand .suit {
    font-size: 9px;
  }
  .small-hand .pip {
    font-size: 17px;
  }
  .small-hand .corner {
    left: 2px;
    top: 2px;
  }
  .small-hand {
    gap: 2px;
  }
  .last-play {
    top: 36%;
    max-width: 90%;
  }
  .last-play > .caption {
    font-size: 10px;
  }
  .played-cards {
    padding-left: 22px;
  }
  .played-cards .playing-card {
    width: 43px;
    height: 61px;
    margin-left: -24px;
    border-radius: 5px;
  }
  .played-cards .rank {
    font-size: 18px;
  }
  .played-cards .suit {
    font-size: 13px;
  }
  .played-cards .pip {
    font-size: 24px;
    right: 4px;
  }
  .played-cards .corner {
    left: 4px;
  }
  .played-cards .playing-card:nth-child(n + 9) {
    margin-left: -31px;
  }
  .table-status {
    top: 50%;
    font-size: 16px;
    white-space: normal;
    width: 80%;
    gap: 7px;
  }
  .table-status small {
    font-size: 10px;
  }
  .hand-zone {
    left: 6%;
    right: 6%;
    bottom: 24%;
    height: 95px;
    padding-top: 0;
  }
  .hand-card {
    width: 44px;
    height: 73px;
    --overlap: -19px;
    border-radius: 5px;
  }
  .hand-card .rank {
    font-size: 22px;
  }
  .hand-card .suit {
    font-size: 15px;
  }
  .hand-card .pip {
    font-size: 27px;
    right: 4px;
    bottom: 3px;
  }
  .hand-card .corner {
    left: 4px;
    top: 3px;
  }
  .hand-card.selected {
    transform: translateY(-13px);
  }
  .hand-card:hover:not(:disabled) {
    transform: translateY(-7px);
  }
  .hand-card.joker .rank {
    font-size: 12px;
  }
  .hand-card.joker .pip {
    font-size: 17px;
  }
  .hand-card .card-selected {
    font-size: 8px;
    width: 11px;
    height: 11px;
    line-height: 11px;
    right: 2px;
    top: 2px;
  }
  .hand-zone.long-hand {
    left: 3%;
    right: 3%;
  }
  .hand-zone.long-hand .hand-card {
    width: 39px;
    --overlap: -22px;
  }
  .hand-zone.long-hand .hand-card .rank {
    font-size: 19px;
  }
  .hand-zone.long-hand .hand-card .suit {
    font-size: 14px;
  }
  .hand-zone.long-hand .hand-card .pip {
    font-size: 24px;
  }
  .table-controls {
    bottom: 12%;
    gap: 7px;
    left: 61%;
  }
  .table-controls .btn {
    min-width: 72px;
    min-height: 37px;
    font-size: 15px;
    padding: 7px 13px;
  }
  .table-controls.bid-controls {
    left: 58%;
    gap: 5px;
  }
  .table-controls.bid-controls .btn {
    min-width: 52px;
    font-size: 13px;
    padding: 7px 9px;
  }
  .selection-note {
    bottom: 20%;
    font-size: 10px;
    width: 90%;
    text-align: center;
    white-space: normal;
  }
  .table-bottom-strip {
    padding: 0 12px;
    gap: 7px;
    flex-wrap: wrap;
    margin: 2px 0 0;
  }
  .connection-state {
    font-size: 9px;
  }
  .chat-dock {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: initial;
  }
  .chat-compose {
    padding-left: 10px;
  }
  .chat-compose input {
    font-size: 12px;
  }
  .chat-log-toggle {
    width: 33px;
    height: 33px;
  }
  .table-subtle-info {
    font-size: 10px;
  }
  .fish-dish {
    width: 62px;
    height: 24px;
    right: 5%;
    top: 52%;
    font-size: 15px;
  }
  .speech-bubble {
    top: -22px;
    left: 66px;
    font-size: 10px;
    max-width: 112px;
    padding: 7px 9px;
    border-radius: 12px 12px 12px 2px;
  }
  .seat.right .speech-bubble {
    right: 66px;
    left: auto;
  }
  .seat.self .speech-bubble {
    top: -44px;
    left: 58px;
    max-width: 155px;
  }
  .table-center-lobby {
    width: 65%;
    top: 40%;
  }
  .table-center-lobby h2 {
    font-size: 23px;
  }
  .table-center-lobby p {
    font-size: 12px;
    margin: 8px 0 14px;
  }
  .table-center-lobby .btn {
    min-width: 95px;
    min-height: 37px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .table-note {
    font-size: 10px;
  }
  .lobby-center-icon {
    font-size: 30px;
  }
  .status-paused {
    inset: 28% 9% 23%;
    padding: 20px;
  }
  .status-paused h2 {
    font-size: 25px;
  }
  .status-paused p {
    font-size: 13px;
  }
  .avatar-choice .avatar {
    width: 68px;
    height: 68px;
  }
  .avatar-choice {
    padding: 12px 4px 8px;
  }
  .avatar-choice span:last-child {
    font-size: 12px;
  }
  .avatar-picker {
    gap: 9px;
  }
  .toasts {
    bottom: 20px;
  }
  .toast {
    font-size: 12px;
    padding: 9px 15px;
  }
  .table-stage ~ .site-footer {
    margin-top: 0;
  }
  .felt-stamp {
    width: 100px;
    height: 100px;
    top: 30%;
  }
  dialog {
    padding: 28px 22px;
  }
  .profile-preview .avatar {
    width: 61px;
    height: 61px;
  }
}
@media (max-width: 390px) {
  .brand > span {
    font-size: 20px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .mini-profile > span:last-child {
    max-width: 45px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .game-tabs button {
    padding: 6px 18px;
  }
  .hand-zone.long-hand .hand-card {
    width: 35px;
    --overlap: -21px;
  }
  .hand-card {
    width: 41px;
    --overlap: -20px;
  }
  .table-controls .btn {
    min-width: 65px;
    font-size: 14px;
  }
  .table-title h2 {
    max-width: 115px;
  }
  .table-top {
    padding: 0 7px;
  }
  .table-menu .btn {
    padding: 4px 6px;
  }
  .table-stage {
    min-height: 520px;
  }
  .seat.self {
    bottom: 7%;
  }
}
@media (max-height: 650px) and (min-width: 761px) {
  .topbar {
    min-height: 84px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .table-stage {
    min-height: 490px;
    height: 76vh;
  }
  .seat .avatar {
    width: 65px;
    height: 65px;
  }
  .seat-name {
    font-size: 16px;
  }
  .hand-zone {
    bottom: 17%;
    height: 110px;
  }
  .hand-card {
    height: 88px;
    width: 61px;
  }
  .hand-card .rank {
    font-size: 25px;
  }
  .hand-card .pip {
    font-size: 36px;
  }
  .table-controls .btn {
    min-height: 39px;
    font-size: 17px;
  }
  .site-footer {
    padding-top: 8px;
  }
  .table-controls {
    bottom: 5%;
  }
  .selection-note {
    bottom: 13%;
  }
}
@media (max-width: 760px) {
  .table-stage:has(.long-hand) .last-play {
    top: 28%;
  }
  .table-stage:has(.long-hand) .table-status {
    top: 43%;
  }
  .hand-zone.long-hand {
    left: 6%;
    right: 6%;
    bottom: 22%;
    height: 158px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-content: end;
    gap: 10px 0;
    padding: 0;
  }
  .hand-zone.long-hand .hand-card {
    height: 73px;
    width: calc(100% + 5px);
    max-width: 42px;
    margin-left: 0;
    --overlap: 0;
  }
  .hand-zone.long-hand .hand-card .rank {
    font-size: 20px;
  }
  .hand-zone.long-hand .hand-card .suit {
    font-size: 15px;
  }
  .hand-zone.long-hand .hand-card .pip {
    font-size: 27px;
  }
  .table-stage:has(.long-hand) .seat.self {
    bottom: 0;
    left: 6%;
    height: 32px;
    max-width: 90%;
    flex-direction: row;
    gap: 6px;
  }
  .table-stage:has(.long-hand) .seat.self .avatar {
    width: 31px;
    height: 31px;
  }
  .table-stage:has(.long-hand) .seat.self .seat-name {
    font-size: 12px;
    margin: 0;
  }
  .table-stage:has(.long-hand) .seat.self .role-badge {
    font-size: 9px;
    padding: 0 7px;
  }
  .table-stage:has(.long-hand) .seat.self .seat-meta {
    font-size: 10px;
    white-space: nowrap;
  }
  .table-stage:has(.long-hand) .seat.self > .quiet {
    display: none;
  }
  .table-stage:has(.long-hand) .table-controls {
    left: 50%;
    bottom: 8%;
    gap: 12px;
  }
  .table-stage:has(.long-hand) .table-controls .btn {
    min-width: 82px;
  }
  .table-stage:has(.long-hand) .bid-controls {
    gap: 7px;
  }
  .table-stage:has(.long-hand) .bid-controls .btn {
    min-width: 64px;
  }
  .table-stage:has(.long-hand) .selection-note {
    bottom: 16%;
    font-size: 10px;
  }
  .table-stage:has(.long-hand) .fish-dish {
    top: 44%;
    right: 5%;
    width: 44px;
    height: 20px;
    font-size: 11px;
  }
  .table-stage:has(.long-hand) .seat.self .speech-bubble {
    left: 8px;
    top: -51px;
  }
  .table-stage:has(.long-hand) .felt-table {
    bottom: 1%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
