@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f3f6f3;
  --white: #ffffff;
  --ink: #202d29;
  --muted: #606d65;
  --green: #174e43;
  --wash: #e6ede5;
  --line: #d7d9cf;
  --red: #a83930;
  --amber: #785319;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 9px 17px;
  font-weight: 600;
  transition:
    background 0.16s,
    border-color 0.16s;
}
button:hover:not(:disabled) {
  background: var(--wash);
  border-color: var(--green);
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover:not(:disabled) {
  background: #0b392f;
}
button.danger {
  color: var(--red);
}
button.small {
  padding: 4px 10px;
  font-size: 13px;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 650;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
}
h3 {
  font-size: 17px;
}
p {
  max-width: 70ch;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9c3b9;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 5px;
  min-width: 0;
  caret-color: var(--green);
}
input[type="checkbox"] {
  display: inline;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 8px 0 0;
  accent-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 72px;
}
::selection {
  background: #cee0cc;
  color: #123a30;
}
:focus-visible {
  outline: 3px solid #2e7c69;
  outline-offset: 3px;
}
::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #a4b4a4;
  border-radius: 8px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.primary-text {
  color: var(--green);
}
.badge {
  font-size: 12px;
  background: var(--wash);
  color: var(--green);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.alert {
  background: #f4e9d2;
  color: #674511;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.error {
  color: var(--red);
}
.bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 4vw;
  gap: 20px;
}
.brand {
  font-weight: 750;
  font-size: 21px;
  letter-spacing: 0.1em;
}
.brand small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 14px;
  color: var(--muted);
}
.entry {
  max-width: 1280px;
  margin: auto;
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 9vw;
  padding: 70px 5vw;
}
.intro > p {
  margin: 25px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.hero-tiles {
  display: flex;
  gap: 12px;
  margin: 45px 0 25px;
}
.tile {
  font-family: "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  font-size: 30px;
  line-height: 1;
  min-width: 49px;
  height: 64px;
  padding: 12px 8px;
  border: 1px solid #b8c8b7;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex: none;
}
.hero-tiles .tile {
  width: 65px;
  height: 84px;
  font-size: 42px;
  cursor: default;
}
.tile.used {
  opacity: 0.35;
}
.tile.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.tile.fresh:after {
  content: "新";
  font: 10px sans-serif;
  position: absolute;
  top: 3px;
  right: 3px;
  color: var(--green);
}
.tile.selected.fresh:after {
  color: white;
}
.entry-form {
  padding: 32px 0;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.entry-form h2 {
  margin-bottom: 8px;
}
.entry-form form {
  display: grid;
  gap: 18px;
  margin-top: 27px;
}
.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: end;
}
.join-row button {
  height: 46px;
}
.entry-rule {
  font-size: 13px;
  padding-top: 23px;
}
.page {
  max-width: 1440px;
  margin: auto;
  padding: 28px 4vw 40px;
}
.lobby {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-top: 30px;
}
.seats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.seat {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 130px;
}
.seat.empty {
  border-style: dashed;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.seat .avatar {
  margin-bottom: 12px;
}
.settings {
  padding: 0 0 0 27px;
  border-left: 1px solid var(--line);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.settings form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.summary {
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.table-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.roster {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.player {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.player.current .avatar {
  background: var(--green);
  color: white;
}
.player .name {
  overflow-wrap: anywhere;
}
.table-main {
  min-width: 0;
}
.table-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}
.clock {
  font-variant-numeric: tabular-nums;
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
}
.arena {
  background: var(--wash);
  border-radius: 12px;
  min-height: 220px;
  padding: 25px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
}
.arena h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.last-tile {
  text-align: center;
}
.last-tile .tile {
  width: 70px;
  height: 90px;
  font-size: 45px;
  cursor: default;
  margin-bottom: 5px;
}
.river {
  margin: 18px 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  min-height: 37px;
  align-items: center;
}
.river span {
  border-bottom: 2px solid #b9c8ba;
  min-width: 26px;
  text-align: center;
  font:
    21px SimSun,
    serif;
  color: #435348;
}
.river span.claimed {
  opacity: 0.35;
  text-decoration: line-through;
}
.hand-panel {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hand {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}
.compose {
  padding: 20px 0;
}
.groups {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.group {
  border: 1px dashed #a2b5a0;
  border-radius: 6px;
  padding: 10px;
  min-width: 100px;
  background: var(--white);
}
.group.active {
  border-style: solid;
  border-color: var(--green);
}
.group .tile {
  min-width: 33px;
  height: 42px;
  font-size: 23px;
  margin: 3px 2px;
}
.group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 4px;
}
.group-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.compose-tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.compose-tools button {
  font-size: 13px;
  padding: 5px 11px;
}
.composer-bottom {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 22px;
  align-items: end;
}
.preview {
  font-family: SimSun, serif;
  font-size: 20px;
  color: var(--green);
  margin: 12px 0;
  min-height: 30px;
  overflow-wrap: anywhere;
}
.claim {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.claim-text {
  font-family: SimSun, serif;
  font-size: 24px;
  margin: 12px 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.voters {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.meaning {
  font-size: 14px;
  margin: 6px 0;
  color: var(--muted);
}
.messages {
  margin: 18px 0;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.messages button {
  font-size: 13px;
  padding: 5px 10px;
}
.scoretable {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
  font-size: 14px;
}
.scoretable td,
.scoretable th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  overflow-wrap: anywhere;
}
.scoretable th {
  font-weight: 500;
  color: var(--muted);
}
.scoretable .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.history {
  margin-top: 25px;
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details > div {
  padding: 14px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 8px;
  z-index: 100;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
.admin-page {
  max-width: 1080px;
}
.admin-login {
  max-width: 400px;
  margin: 12vh auto;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.admin-grid section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.admin-grid h2 {
  margin-bottom: 18px;
}
.admin-grid form {
  display: grid;
  gap: 14px;
}
.full {
  grid-column: 1/-1;
}
.admin-page pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: var(--wash);
  padding: 15px;
  max-height: 300px;
  overflow: auto;
}
.case {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.reconnect {
  background: #efe4cd;
  color: #674511;
  padding: 8px 4vw;
}
.spectator-hand {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.spectator-hand .tile {
  min-width: 30px;
  height: 40px;
  font-size: 21px;
}
.pending {
  opacity: 0.7;
}
@media (min-width: 1500px) {
  .entry {
    gap: 120px;
  }
  .page {
    padding-top: 35px;
  }
  .arena {
    min-height: 260px;
  }
  .hand .tile {
    min-width: 57px;
    height: 72px;
    font-size: 35px;
  }
}
@media (max-width: 1000px) {
  .lobby {
    grid-template-columns: 1fr 300px;
    gap: 22px;
  }
  .seats {
    grid-template-columns: repeat(2, 1fr);
  }
  .table-layout {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 18px;
  }
  .roster {
    padding-right: 15px;
  }
  .page {
    padding: 20px;
  }
  .bar {
    height: 64px;
    padding: 0 20px;
  }
  .composer-bottom {
    grid-template-columns: 1fr 200px;
  }
  .tile {
    min-width: 43px;
    height: 57px;
    font-size: 28px;
  }
  .entry {
    gap: 45px;
    padding: 45px 30px;
  }
  .hero-tiles {
    gap: 7px;
  }
  .hero-tiles .tile {
    width: 55px;
    height: 74px;
    font-size: 36px;
  }
}
@media (max-width: 650px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 35px 24px;
  }
  .intro h1 {
    font-size: 40px;
  }
  .intro > p {
    font-size: 15px;
    margin: 18px 0;
  }
  .hero-tiles {
    margin: 25px 0 15px;
  }
  .entry-form {
    padding: 25px 0;
  }
  .bar .brand small {
    display: none;
  }
  .page {
    padding: 18px 14px;
  }
  .lobby {
    grid-template-columns: 1fr;
  }
  .settings {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }
  .seat {
    padding: 16px;
    min-height: 110px;
  }
  .table-layout {
    grid-template-columns: 1fr;
  }
  .roster {
    border-right: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
  }
  .player {
    min-width: 125px;
    border-bottom: 0;
    padding: 8px 0;
  }
  .arena {
    padding: 20px;
    min-height: 180px;
    gap: 12px;
  }
  .arena h2 {
    font-size: 22px;
  }
  .hand {
    gap: 5px;
  }
  .tile {
    min-width: 39px;
    height: 53px;
    font-size: 26px;
  }
  .composer-bottom {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .clock {
    font-size: 18px;
  }
  .group {
    padding: 7px;
  }
}
@media (max-height: 550px) and (min-width: 651px) {
  .bar {
    height: 49px;
  }
  .page {
    padding: 14px 20px;
  }
  .table-layout {
    grid-template-columns: 140px 1fr;
    gap: 15px;
  }
  .arena {
    min-height: 145px;
    padding: 14px 20px;
  }
  .last-tile .tile {
    width: 49px;
    height: 65px;
    font-size: 32px;
  }
  .hand-panel {
    margin-top: 15px;
    padding-top: 13px;
  }
  .hand {
    margin: 10px 0;
  }
  .hand .tile {
    height: 50px;
    min-width: 39px;
    font-size: 26px;
  }
  .player {
    padding: 9px 0;
  }
  .table-top {
    margin-bottom: 9px;
  }
  .river {
    margin: 10px 0;
  }
  .roster {
    position: sticky;
    top: 15px;
    align-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Immersive table: public play stays at the centre; private tiles stay at the bottom. */
.game-view {
  --scene-bg: #0d2928;
  --scene-felt: #20594e;
  --scene-deep: #103c35;
  --scene-text: #f1f5e9;
  --scene-muted: #bfcec1;
  --scene-gold: #f2cd7a;
  --scene-gold-ink: #34280c;
  background: var(--scene-bg);
  color: var(--scene-text);
  overflow: hidden;
}
.game-view #app.pending {
  opacity: 1;
}
.game-view ::selection {
  background: #edcf86;
  color: #1d3129;
}
.game-view :focus-visible {
  outline-color: var(--scene-gold);
}
.game-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px;
  background: #0b2423;
  border-bottom: 1px solid #33504a;
}
.game-brand {
  font-size: 23px;
  letter-spacing: 0.08em;
  font-weight: 750;
  white-space: nowrap;
  color: #f2ead3;
}
.game-brand span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #c8d2c2;
  margin-left: 14px;
}
.game-room {
  font-size: 13px;
  color: #c4d1c6;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.game-room strong {
  color: #f5ead1;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
.connection-state {
  font-size: 11px;
  color: #bcd9c4;
  border: 1px solid #48675b;
  padding: 1px 5px;
  border-radius: 4px;
}
.connection-state.offline {
  color: #ffdcaa;
  border-color: #ae8651;
}
.game-header nav {
  display: flex;
  gap: 7px;
}
.game-view .game-tool {
  color: #d8e4d7;
  background: transparent;
  border: 1px solid #49635a;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 500;
}
.game-view .game-tool:hover:not(:disabled) {
  background: #244a40;
  border-color: #d2c08a;
}
.game-shell {
  height: calc(100dvh - 60px);
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto;
  position: relative;
  isolation: isolate;
}
.table-scene {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: radial-gradient(
    ellipse at 50% 48%,
    #2a6557 0%,
    #17493f 66%,
    #123b35 100%
  );
  overflow: hidden;
}
.felt-table {
  position: absolute;
  inset: 9% 9% 6%;
  border: 1px solid #668775;
  border-radius: 48%;
  background: radial-gradient(ellipse at 50% 46%, #316c5b40, #123d3520);
  pointer-events: none;
}
.felt-table:after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #78918040;
  border-radius: inherit;
}
.felt-table > span {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  font-family: SimSun, serif;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 0.45em;
  color: #b3c39d25;
  white-space: nowrap;
}
.table-round {
  position: absolute;
  top: 15px;
  left: 28px;
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #d7dfcf;
}
.table-round span {
  color: #bbd0c1;
}
.table-round strong {
  color: #ffe0a0;
  font-variant-numeric: tabular-nums;
}
.scene-turn {
  position: absolute;
  left: 50%;
  top: 27%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ecedd7;
  z-index: 2;
  white-space: nowrap;
}
.scene-turn strong {
  font-size: 17px;
  font-weight: 500;
}
.game-view .scene-turn .clock {
  font-size: 19px;
  color: #ffe0a0;
  min-width: 46px;
}
.table-seat {
  position: absolute;
  width: 180px;
  z-index: 3;
  color: #f1f4e8;
  --avatar-color: #e3d4b3;
}
.seat-person {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.game-avatar {
  height: 57px;
  width: 57px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4dcc2;
  color: #224c42;
  font-family: SimSun, serif;
  font-size: 29px;
  font-weight: 600;
  border: 3px solid #eee3bd;
  outline: 1px solid #f3f0d930;
  outline-offset: 3px;
}
.avatar-tone-1 {
  background: #c0d7ce;
  color: #244f56;
  border-color: #e0eadd;
}
.avatar-tone-2 {
  background: #d6cbe1;
  color: #514560;
  border-color: #eee4f1;
}
.avatar-tone-3 {
  background: #c6d3de;
  color: #344f69;
  border-color: #e3e9ee;
}
.avatar-tone-4 {
  background: #d9c4b5;
  color: #684735;
  border-color: #f1dfcf;
}
.seat-info {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.seat-info strong {
  font-size: 16px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.seat-state {
  color: #d5dfce;
  font-size: 12px;
}
.seat-score {
  color: #b8cbbd;
  font-size: 11px;
}
.seat-acting .game-avatar {
  border-color: #ffdb8b;
  outline: 2px solid #dfbd6b;
  outline-offset: 4px;
}
.seat-acting .seat-state {
  color: #ffdf98;
}
.seat-acting .seat-info strong:after {
  content: " · 行动";
  color: #ffdf98;
  font-size: 11px;
}
.seat-offline .game-avatar {
  filter: grayscale(0.7);
}
.seat-offline .seat-state {
  color: #f2c8a4;
}
.opponent-cards {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0 4px;
  color: #d1dece;
  font-size: 11px;
}
.card-backs {
  display: flex;
  padding: 0 3px;
}
.card-backs i {
  display: block;
  width: 12px;
  height: 22px;
  background: #b2c9af;
  border: 1px solid #e7e4c8;
  border-radius: 2px;
  margin-left: -3px;
}
.card-backs i:nth-child(even) {
  background: #9fbca0;
}
.mini-button {
  font-size: 10px;
  padding: 1px 4px;
  background: #d7e4d0;
  color: #23473c;
  border: 0;
}
.public-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff9e8;
  color: #203b32;
  border: 1px solid #ead5a1;
  border-radius: 6px;
  font-family: SimSun, "Songti SC", serif;
  font-weight: 600;
  line-height: 1;
  width: 44px;
  height: 58px;
  font-size: 31px;
}
.seat-discard {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 5px;
  top: 3px;
  left: calc(100% + 14px);
}
.seat-discard small {
  font-size: 10px;
  color: #ced9c5;
  white-space: nowrap;
}
.seat-discard.taken .public-tile {
  background: #d7e1cd;
  color: #5e7161;
  border-style: dashed;
}
.seat-discard.taken small {
  color: #c6d2bd;
}
.seat-no-play {
  position: absolute;
  top: 26px;
  left: calc(100% + 10px);
  font-size: 11px;
  color: #afc8b8;
  white-space: nowrap;
}
.seat-last-play .seat-discard small {
  color: #ffe1a2;
}
.seat-last-play .public-tile {
  border-color: #f8d183;
}
.pos-north {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
}
.pos-north .seat-discard {
  left: auto;
  right: -55px;
}
.pos-north .seat-no-play {
  display: none;
}
.pos-west {
  left: 5%;
  top: 43%;
  transform: translateY(-50%);
}
.pos-east {
  right: 5%;
  top: 43%;
  transform: translateY(-50%);
}
.pos-west-high {
  left: 7%;
  top: 13%;
}
.pos-west-low {
  left: 4%;
  top: 61%;
}
.pos-east-high {
  right: 7%;
  top: 13%;
}
.pos-east-low {
  right: 4%;
  top: 61%;
}
.pos-east .seat-person,
.pos-east-high .seat-person,
.pos-east-low .seat-person {
  flex-direction: row-reverse;
  text-align: right;
}
.pos-east .opponent-cards,
.pos-east-high .opponent-cards,
.pos-east-low .opponent-cards {
  justify-content: flex-end;
  margin-right: 4px;
}
.pos-east .seat-discard,
.pos-east-high .seat-discard,
.pos-east-low .seat-discard {
  left: auto;
  right: calc(100% + 14px);
}
.pos-east .seat-no-play,
.pos-east-high .seat-no-play,
.pos-east-low .seat-no-play {
  left: auto;
  right: calc(100% + 10px);
}
.center-play {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  max-width: 38%;
}
.play-owner {
  font-size: 13px;
  color: #d2dfca;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-owner strong {
  color: #fff1cb;
  font-size: 17px;
  font-weight: 600;
}
.latest-tile {
  width: 84px;
  height: 108px;
  font-size: 60px;
  box-shadow: 0 7px 16px #09251c45;
}
.play-state {
  color: #d2ddc9;
  font-size: 12px;
  margin-top: 13px;
  white-space: nowrap;
}
.empty-table-mark {
  font:
    64px SimSun,
    serif;
  color: #f2e8c8bb;
  line-height: 1.2;
}
.just-played .latest-tile {
  animation: tile-land 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tile-land {
  from {
    transform: translateY(-30px) rotate(-8deg) scale(0.86);
    box-shadow: 0 18px 26px #09251c15;
  }
  to {
    transform: translateY(0) rotate(0) scale(1);
    box-shadow: 0 7px 16px #09251c45;
  }
}
.your-turn-mark {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  color: #ffe1a3;
  font-size: 14px;
  letter-spacing: 0.12em;
}
.table-footnote {
  position: absolute;
  bottom: 12px;
  right: 25px;
  color: #bad1bf;
  font-size: 11px;
}
.seat-bubble,
.self-bubble {
  background: #fff6db;
  color: #25493b;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 14px;
  box-shadow: 0 5px 14px #0a2d2320;
  z-index: 8;
  white-space: nowrap;
}
.seat-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 13px);
}
.seat-bubble:after {
  content: "";
  position: absolute;
  left: 20px;
  top: 100%;
  border: 5px solid transparent;
  border-top-color: #fff6db;
}
.self-bubble {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
}
.pause-notice {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff0ca;
  color: #493816;
  border-radius: 7px;
  padding: 9px 15px;
  z-index: 5;
  max-width: 80%;
  font-size: 13px;
}
.pause-notice span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pause-notice strong {
  white-space: nowrap;
}
.pause-notice button {
  white-space: nowrap;
}
.hand-dock {
  background: #102f2b;
  padding: 11px 30px 15px;
  border-top: 1px solid #547363;
  position: relative;
  z-index: 6;
  color: #edf0df;
}
.dock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: auto;
}
.self-player {
  display: flex;
  align-items: center;
  gap: 11px;
}
.self-player .game-avatar {
  width: 34px;
  height: 34px;
  font-size: 20px;
  border-width: 2px;
  outline: 0;
}
.self-player > strong {
  font-size: 14px;
  font-weight: 600;
}
.self-player > strong > span {
  font-size: 11px;
  font-weight: 400;
  color: #c1d3bf;
  margin-left: 12px;
}
.self-last {
  font-size: 11px;
  color: #c0d0b9;
  margin-left: 20px;
}
.self-last b {
  font-family: SimSun, serif;
  font-size: 18px;
  font-weight: 500;
  color: #e8e5cc;
  margin-left: 5px;
}
.dock-status {
  display: flex;
  gap: 9px;
}
.compose-toggle {
  font-size: 12px;
  padding: 5px 14px;
  background: #cfe0c7;
  color: #163d30;
  border: 0;
}
.game-view .hand {
  max-width: 1240px;
  margin: 6px auto 7px;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 15px 5px 5px;
  overflow-x: auto;
  overflow-y: visible;
}
.game-view .hand .tile {
  flex: 0 0 clamp(36px, 4.4vw, 58px);
  width: clamp(36px, 4.4vw, 58px);
  min-width: 0;
  height: clamp(51px, 5.7vw, 76px);
  padding: 0;
  font-size: clamp(29px, 3vw, 39px);
  color: #233c32;
  background: #fff9e8;
  border: 1px solid #e2d1a3;
  border-radius: 5px;
  box-shadow: 0 3px 4px #041b1930;
  transition:
    transform 0.15s ease-out,
    background 0.15s ease-out;
  opacity: 1;
}
.game-view .hand .tile:hover:not(:disabled) {
  background: #fff0c4;
  border-color: #f6d38a;
}
.game-view .hand .tile.selected {
  transform: translateY(-12px);
  background: #ffe6a8;
  color: #203d31;
  border: 2px solid #ffc765;
}
.game-view .hand .tile.used {
  background: #d1ddc4;
  color: #50664f;
}
.game-view .hand .tile.used:before {
  content: "已用";
  font: 9px sans-serif;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  color: #435d43;
}
.game-view .hand .tile.fresh:after {
  content: "新";
  color: #64501d;
  font: 10px sans-serif;
  top: 4px;
  right: 3px;
}
.game-view .hand .tile.borrowed:after {
  content: "接";
  color: #64501d;
  font: 10px sans-serif;
  top: 4px;
  right: 3px;
}
.dock-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: auto;
  gap: 22px;
}
.hand-hint {
  color: #c8d8c1;
  font-size: 12px;
  line-height: 1.5;
  max-width: 54ch;
}
.action-bar {
  display: flex;
  gap: 9px;
  flex: none;
}
.game-view .action-bar button {
  border-radius: 6px;
  min-width: 86px;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 650;
  background: #dbe6ce;
  color: #183f31;
  border: 0;
}
.game-view .action-bar button.primary {
  background: #f3ce7a;
  color: #332a13;
  min-width: 130px;
}
.game-view .action-bar button.hu-button {
  background: #386d59;
  color: #fff0bc;
  min-width: 72px;
  border: 1px solid #a7b686;
}
.game-view .action-bar button:disabled {
  opacity: 1;
  background: #29483c;
  color: #a8b8a6;
  border: 1px solid #436251;
  padding: 8px 17px;
}
.game-view .action-bar button:hover:not(:disabled) {
  background: #ffe5a9;
}
.game-view .action-bar button.hu-button:hover:not(:disabled) {
  color: #173d30;
}
.quick-messages {
  position: absolute;
  bottom: calc(100% + 9px);
  right: 28px;
  display: flex;
  gap: 7px;
  padding: 12px;
  background: #f4f5e8;
  border-radius: 9px;
  box-shadow: 0 6px 20px #06211950;
  z-index: 20;
}
.quick-messages button {
  padding: 7px 12px;
  font-size: 13px;
}
.scene-panel {
  position: absolute;
  z-index: 12;
  top: 20px;
  bottom: 20px;
  right: 24px;
  width: min(540px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  background: #f4f7ef;
  color: #203c30;
  border-radius: 12px;
  box-shadow: 0 15px 55px #041e1a55;
  overflow: hidden;
  border: 1px solid #bacbb8;
}
.scene-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #cfdbc9;
  flex: none;
}
.scene-panel-heading h2 {
  font-size: 21px;
}
.scene-panel-body {
  padding: 20px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}
.scene-panel .muted {
  color: #52664f;
}
.scene-panel .summary {
  color: #52664f;
}
.compose-panel {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  top: 18px;
  bottom: 210px;
  width: min(850px, calc(100vw - 70px));
}
.composition-content .groups {
  margin: 16px 0;
}
.composition-content .group {
  min-width: 110px;
  background: #fffdf4;
}
.composition-content textarea {
  min-height: 58px;
  max-height: 110px;
}
.composition-content .preview {
  margin: 16px 0;
  font-size: 22px;
}
.composition-content .alert {
  margin: 14px 0 0;
}
.composition-content .compose-tools {
  margin-bottom: 15px;
}
.public-river {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 8px;
  margin-top: 22px;
}
.river-play {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}
.river-play .public-tile {
  width: 53px;
  height: 69px;
  font-size: 37px;
}
.river-play strong {
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.river-play small {
  font-size: 10px;
  color: #5f7159;
}
.river-latest .public-tile {
  border: 2px solid #a26e20;
  background: #ffedbf;
}
.authorized-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.manage-player {
  padding: 18px 0;
  border-bottom: 1px solid #c4d1be;
}
.manage-player .row {
  margin-top: 10px;
}
.table-judgement {
  position: absolute;
  z-index: 7;
  left: 50%;
  transform: translateX(-50%);
  top: 110px;
  bottom: 18px;
  width: min(720px, calc(100% - 430px));
  overflow: auto;
  overscroll-behavior: contain;
  background: #f6f7ed;
  color: #203a2d;
  border-radius: 12px;
  padding: 15px 24px;
  box-shadow: 0 8px 30px #09281e40;
  border: 1px solid #afc1aa;
}
.judgement-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  gap: 12px;
}
.table-judgement .claim {
  padding: 15px 0;
}
.table-judgement .claim-text {
  font-size: 25px;
}
.table-judgement .muted,
.table-judgement .voters,
.table-judgement .meaning {
  color: #52664f;
}
.table-judgement .badge {
  background: #dce7d2;
}
.table-judgement .clock {
  font-size: 19px;
}
.table-judgement .claim:last-child {
  border-bottom: 0;
}
@media (min-width: 1600px) {
  .game-header {
    padding: 0 4vw;
  }
  .table-seat {
    width: 210px;
  }
  .game-avatar {
    width: 67px;
    height: 67px;
    font-size: 34px;
  }
  .seat-info strong {
    font-size: 19px;
  }
  .seat-state {
    font-size: 14px;
  }
  .seat-score {
    font-size: 12px;
  }
  .seat-discard .public-tile {
    width: 52px;
    height: 68px;
    font-size: 36px;
  }
  .latest-tile {
    width: 97px;
    height: 128px;
    font-size: 70px;
  }
  .hand-dock {
    padding-bottom: 22px;
  }
  .game-view .hand .tile {
    flex-basis: 65px;
    width: 65px;
    height: 86px;
    font-size: 45px;
  }
  .compose-panel {
    bottom: 235px;
  }
}
@media (max-width: 1050px) {
  .game-header {
    padding: 0 17px;
    gap: 14px;
  }
  .game-brand {
    font-size: 19px;
  }
  .game-brand span {
    display: none;
  }
  .game-header nav {
    gap: 5px;
  }
  .game-view .game-tool {
    padding: 5px 8px;
    font-size: 11px;
  }
  .game-room {
    gap: 5px;
    font-size: 11px;
  }
  .connection-state {
    display: none;
  }
  .table-seat {
    width: 126px;
  }
  .game-avatar {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
  .seat-person {
    gap: 9px;
  }
  .seat-info strong {
    font-size: 14px;
    max-width: 77px;
  }
  .seat-state {
    font-size: 11px;
  }
  .seat-score {
    font-size: 10px;
  }
  .seat-discard {
    left: calc(100% + 5px);
  }
  .seat-discard .public-tile {
    width: 36px;
    height: 49px;
    font-size: 27px;
  }
  .pos-east .seat-discard,
  .pos-east-high .seat-discard,
  .pos-east-low .seat-discard {
    right: calc(100% + 5px);
  }
  .pos-north {
    width: 145px;
  }
  .pos-west-high {
    left: 5%;
  }
  .pos-east-high {
    right: 5%;
  }
  .scene-turn strong {
    font-size: 15px;
  }
  .game-view .scene-turn .clock {
    font-size: 17px;
  }
  .scene-turn {
    gap: 9px;
  }
  .hand-dock {
    padding: 9px 20px 12px;
  }
  .game-view .hand {
    gap: 5px;
  }
  .hand-hint {
    font-size: 11px;
  }
  .action-bar {
    gap: 7px;
  }
  .game-view .action-bar button {
    min-width: 66px;
    padding: 8px 14px;
    font-size: 14px;
  }
  .game-view .action-bar button:disabled {
    padding: 7px 13px;
  }
  .game-view .action-bar button.primary {
    min-width: 105px;
  }
  .game-view .action-bar button.hu-button {
    min-width: 60px;
  }
  .table-judgement {
    width: calc(100% - 310px);
    padding: 14px 18px;
  }
  .compose-panel {
    bottom: 180px;
    top: 12px;
  }
  .latest-tile {
    width: 70px;
    height: 91px;
    font-size: 49px;
  }
  .play-owner {
    margin-bottom: 9px;
  }
  .play-state {
    margin-top: 10px;
    font-size: 11px;
  }
  .table-footnote {
    font-size: 10px;
  }
  .self-last {
    margin-left: 8px;
  }
}
@media (max-height: 560px) and (min-width: 651px) {
  .game-header {
    height: 43px;
    padding: 0 15px;
  }
  .game-brand {
    font-size: 17px;
  }
  .game-room strong {
    font-size: 14px;
  }
  .game-header nav {
    gap: 4px;
  }
  .game-header nav .game-tool {
    font-size: 10px;
    padding: 4px 7px;
  }
  .game-shell {
    height: calc(100dvh - 43px);
    grid-template-rows: minmax(160px, 1fr) auto;
  }
  .table-round {
    left: 15px;
    top: 8px;
    font-size: 10px;
    gap: 12px;
  }
  .table-seat {
    width: 106px;
  }
  .game-avatar {
    width: 33px;
    height: 33px;
    font-size: 20px;
    border-width: 2px;
    outline-offset: 2px;
  }
  .seat-person {
    gap: 7px;
  }
  .seat-info strong {
    font-size: 12px;
    max-width: 67px;
  }
  .seat-state {
    font-size: 10px;
  }
  .seat-score {
    font-size: 9px;
  }
  .opponent-cards {
    margin-top: 5px;
    font-size: 9px;
    gap: 4px;
  }
  .card-backs i {
    width: 9px;
    height: 14px;
  }
  .seat-discard .public-tile {
    width: 29px;
    height: 38px;
    font-size: 22px;
  }
  .seat-discard {
    top: 0;
    gap: 2px;
    left: calc(100% + 3px);
  }
  .seat-discard small {
    font-size: 8px;
  }
  .pos-east .seat-discard,
  .pos-east-high .seat-discard,
  .pos-east-low .seat-discard {
    right: calc(100% + 3px);
  }
  .pos-north {
    top: 3%;
    width: 116px;
  }
  .pos-north .seat-discard {
    right: -35px;
  }
  .pos-west-high,
  .pos-east-high {
    top: 12%;
  }
  .pos-west-low,
  .pos-east-low {
    top: 64%;
  }
  .scene-turn {
    top: 28%;
    gap: 8px;
  }
  .scene-turn strong {
    font-size: 12px;
  }
  .game-view .scene-turn .clock {
    font-size: 13px;
    min-width: 30px;
  }
  .center-play {
    top: 59%;
  }
  .latest-tile {
    width: 46px;
    height: 61px;
    font-size: 36px;
  }
  .play-owner {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .play-owner strong {
    font-size: 12px;
  }
  .play-state {
    font-size: 9px;
    margin-top: 5px;
  }
  .empty-table-mark {
    font-size: 42px;
  }
  .your-turn-mark {
    bottom: 8%;
    font-size: 10px;
  }
  .table-footnote {
    bottom: 5px;
    right: 12px;
    font-size: 8px;
  }
  .felt-table > span {
    font-size: 24px;
    bottom: 12%;
  }
  .hand-dock {
    padding: 5px 15px 8px;
  }
  .dock-heading {
    gap: 8px;
  }
  .self-player .game-avatar {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .self-player {
    gap: 7px;
  }
  .self-player > strong {
    font-size: 11px;
  }
  .self-player > strong > span {
    font-size: 9px;
    margin-left: 7px;
  }
  .self-last {
    font-size: 9px;
    margin-left: 6px;
  }
  .self-last b {
    font-size: 14px;
  }
  .dock-status {
    gap: 7px;
  }
  .compose-toggle,
  .game-view .dock-status .game-tool {
    font-size: 10px;
    padding: 4px 8px;
  }
  .game-view .hand {
    gap: 4px;
    padding: 11px 4px 2px;
    margin: 1px auto 4px;
  }
  .game-view .hand .tile {
    height: 49px;
    flex-basis: clamp(32px, 4.4vw, 45px);
    width: clamp(32px, 4.4vw, 45px);
    font-size: 28px;
  }
  .game-view .hand .tile.selected {
    transform: translateY(-9px);
  }
  .dock-bottom {
    gap: 12px;
  }
  .hand-hint {
    font-size: 10px;
    max-width: 42ch;
  }
  .game-view .action-bar button {
    font-size: 12px;
    padding: 6px 14px;
    min-width: 56px;
  }
  .game-view .action-bar button:disabled {
    padding: 5px 13px;
  }
  .game-view .action-bar button.primary {
    min-width: 95px;
  }
  .game-view .action-bar button.hu-button {
    min-width: 50px;
  }
  .action-bar {
    gap: 6px;
  }
  .compose-panel {
    top: 8px;
    bottom: 136px;
    width: min(760px, calc(100vw - 44px));
  }
  .scene-panel-heading {
    padding: 10px 16px;
  }
  .scene-panel-heading h2 {
    font-size: 17px;
  }
  .scene-panel-body {
    padding: 12px 16px;
  }
  .composition-content .groups {
    margin: 9px 0;
  }
  .composition-content textarea {
    min-height: 48px;
  }
  .table-judgement {
    top: 60px;
    bottom: 7px;
    width: calc(100% - 300px);
    padding: 10px 15px;
  }
  .table-judgement .claim-text {
    font-size: 21px;
    margin: 8px 0;
  }
  .table-judgement .claim {
    padding: 9px 0;
  }
  .judgement-heading {
    font-size: 15px;
  }
  .table-judgement .claim h3 {
    font-size: 14px;
  }
  .table-judgement .voters {
    font-size: 11px;
  }
  .table-judgement button {
    padding: 6px 12px;
    font-size: 12px;
  }
  .pause-notice {
    bottom: 10px;
    font-size: 10px;
    padding: 6px 10px;
    gap: 7px;
  }
  .pause-notice button {
    font-size: 10px;
    padding: 3px 7px;
  }
  .quick-messages {
    padding: 8px;
    gap: 5px;
  }
  .quick-messages button {
    font-size: 11px;
    padding: 5px 9px;
  }
}
@media (max-width: 650px) {
  .game-header {
    height: 51px;
    padding: 0 10px;
    gap: 8px;
    flex-wrap: wrap;
    align-content: center;
  }
  .game-brand {
    font-size: 17px;
  }
  .game-room {
    margin-left: auto;
  }
  .game-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 3px;
  }
  .game-header nav .game-tool {
    font-size: 9px;
    padding: 2px 7px;
    border: 0;
  }
  .game-shell {
    height: calc(100dvh - 51px);
    grid-template-rows: minmax(300px, 1fr) auto;
  }
  .table-round {
    font-size: 10px;
    left: 12px;
    top: 9px;
    gap: 9px;
  }
  .table-seat {
    width: 84px;
  }
  .seat-person {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
  .pos-east .seat-person,
  .pos-east-high .seat-person,
  .pos-east-low .seat-person {
    flex-direction: column;
    text-align: center;
  }
  .game-avatar {
    width: 37px;
    height: 37px;
    font-size: 21px;
    border-width: 2px;
  }
  .seat-info {
    gap: 0;
    justify-items: center;
  }
  .seat-info strong {
    font-size: 12px;
    max-width: 78px;
  }
  .seat-state {
    font-size: 9px;
  }
  .seat-score {
    font-size: 9px;
  }
  .opponent-cards {
    justify-content: center;
    gap: 4px;
    margin: 5px 0 0;
    font-size: 9px;
  }
  .pos-east .opponent-cards,
  .pos-east-high .opponent-cards,
  .pos-east-low .opponent-cards {
    justify-content: center;
    margin-right: 0;
  }
  .card-backs i {
    width: 8px;
    height: 14px;
  }
  .seat-discard {
    top: 25px;
    left: calc(100% - 2px);
    gap: 3px;
  }
  .seat-discard .public-tile {
    width: 27px;
    height: 37px;
    font-size: 21px;
  }
  .seat-discard small {
    font-size: 8px;
  }
  .pos-east .seat-discard,
  .pos-east-high .seat-discard,
  .pos-east-low .seat-discard {
    right: calc(100% - 2px);
  }
  .pos-north {
    width: 110px;
    top: 3%;
  }
  .pos-north .seat-person {
    flex-direction: row;
    gap: 8px;
    text-align: left;
  }
  .pos-north .seat-info {
    justify-items: start;
  }
  .pos-north .seat-discard {
    top: 0;
    right: -26px;
  }
  .pos-north .opponent-cards {
    margin-top: 5px;
  }
  .pos-west {
    left: 1%;
    top: 48%;
  }
  .pos-east {
    right: 1%;
    top: 48%;
  }
  .pos-west-high {
    left: 1%;
    top: 13%;
  }
  .pos-east-high {
    right: 1%;
    top: 13%;
  }
  .pos-west-low {
    left: 1%;
    top: 65%;
  }
  .pos-east-low {
    right: 1%;
    top: 65%;
  }
  .seat-no-play {
    display: none;
  }
  .scene-turn {
    top: 30%;
    gap: 5px;
  }
  .scene-turn strong {
    font-size: 12px;
  }
  .game-view .scene-turn .clock {
    font-size: 13px;
    min-width: 30px;
  }
  .center-play {
    top: 53%;
    max-width: 42%;
  }
  .latest-tile {
    width: 54px;
    height: 74px;
    font-size: 40px;
  }
  .play-owner {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .play-owner strong {
    font-size: 12px;
  }
  .play-state {
    font-size: 9px;
    white-space: normal;
    max-width: 155px;
    margin-top: 7px;
  }
  .your-turn-mark {
    font-size: 10px;
    bottom: 14%;
  }
  .table-footnote {
    font-size: 8px;
    right: 9px;
    bottom: 8px;
  }
  .felt-table {
    inset: 11% 4% 9%;
    border-radius: 43%;
  }
  .felt-table > span {
    font-size: 19px;
    letter-spacing: 0.22em;
    bottom: 18%;
  }
  .hand-dock {
    padding: 8px 10px 12px;
  }
  .dock-heading {
    gap: 6px;
  }
  .self-player {
    gap: 6px;
  }
  .self-player .game-avatar {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }
  .self-player > strong {
    font-size: 11px;
  }
  .self-player > strong > span {
    font-size: 9px;
    margin-left: 6px;
  }
  .self-last {
    display: none;
  }
  .dock-status {
    gap: 6px;
  }
  .compose-toggle,
  .game-view .dock-status .game-tool {
    font-size: 10px;
    padding: 5px 8px;
  }
  .game-view .hand {
    justify-content: flex-start;
    gap: 4px;
    padding: 13px 3px 5px;
    margin: 3px 0 5px;
  }
  .game-view .hand .tile {
    height: 54px;
    flex-basis: 37px;
    width: 37px;
    font-size: 29px;
  }
  .dock-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .hand-hint {
    font-size: 10px;
    max-width: none;
    min-height: 28px;
  }
  .action-bar {
    justify-content: space-between;
    gap: 7px;
  }
  .game-view .action-bar button {
    padding: 9px 12px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
  }
  .game-view .action-bar button.primary {
    min-width: 110px;
    flex: 1.5;
  }
  .game-view .action-bar button.hu-button {
    min-width: 53px;
    flex: 0.7;
  }
  .game-view .action-bar button:disabled {
    padding: 8px 11px;
  }
  .scene-panel {
    left: 10px;
    right: 10px;
    top: 12px;
    bottom: 14px;
    width: auto;
    transform: none;
  }
  .compose-panel {
    bottom: 225px;
  }
  .scene-panel-heading {
    padding: 12px 15px;
  }
  .scene-panel-heading h2 {
    font-size: 17px;
  }
  .scene-panel-body {
    padding: 14px 15px;
  }
  .public-river {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .table-judgement {
    top: 104px;
    bottom: 35px;
    width: calc(100% - 60px);
    padding: 12px 15px;
  }
  .table-judgement .claim-text {
    font-size: 22px;
  }
  .table-judgement .voters {
    font-size: 11px;
  }
  .table-judgement .claim h3 {
    font-size: 14px;
  }
  .table-judgement .badge {
    font-size: 10px;
  }
  .pause-notice {
    max-width: 94%;
    font-size: 10px;
    bottom: 30px;
    gap: 7px;
    padding: 7px 10px;
  }
  .pause-notice button {
    font-size: 10px;
    padding: 4px 8px;
  }
  .quick-messages {
    left: 8px;
    right: 8px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
  }
  .quick-messages button {
    padding: 6px 9px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .just-played .latest-tile {
    animation: none;
  }
  .game-view .hand .tile {
    transition: none;
  }
}
.pos-north .seat-bubble {
  left: auto;
  right: calc(100% + 14px);
  top: 0;
  bottom: auto;
}
.pos-north .seat-bubble:after {
  left: auto;
  right: -10px;
  top: 14px;
  border-color: transparent;
  border-left-color: #fff6db;
}
.compact-count {
  display: none;
}
@media (min-width: 1600px) {
  .felt-table {
    left: max(9%, calc(50% - 870px));
    right: max(9%, calc(50% - 870px));
  }
  .pos-west-high {
    left: max(7%, calc(50% - 640px));
  }
  .pos-east-high {
    right: max(7%, calc(50% - 640px));
  }
  .pos-west-low,
  .pos-west {
    left: max(4%, calc(50% - 760px));
  }
  .pos-east-low,
  .pos-east {
    right: max(4%, calc(50% - 760px));
  }
}
@media (max-height: 560px) and (min-width: 651px) {
  .pos-north .opponent-cards,
  .pos-north .seat-score,
  .table-footnote {
    display: none;
  }
  .pos-north .compact-count {
    display: inline;
    font-size: 9px;
  }
  .pos-north .seat-state {
    white-space: nowrap;
  }
  .pos-north .seat-bubble {
    right: calc(100% + 9px);
  }
}
@media (max-height: 560px) and (min-width: 651px) {
  .scene-turn {
    top: auto;
    bottom: 7px;
  }
  .center-play {
    top: 54%;
  }
}
