/* ==========================================================================
   围炉小游 · 视觉系统
   纸质暖米色 + 炉火朱砂 + 深翡翠牌桌，尽量不用外部资源。
   ========================================================================== */

:root {
  --paper: #f4ecdc;
  --paper-soft: #faf5ea;
  --paper-deep: #eadcc4;
  --paper-warm: #f0e3ce;
  --ink: #1c2b27;
  --ink-soft: #52625b;
  --ink-faint: #6f7c74;
  --jade: #16483f;
  --jade-deep: #0d322c;
  --jade-mid: #1c5e51;
  --jade-light: #3d7a6c;
  --felt: #1b554a;
  --felt-deep: #0b332d;
  --red: #cf5638;
  --red-deep: #a83f28;
  --red-soft: #e8b6a4;
  --gold: #c3a05c;
  --gold-light: #e7d2a3;
  --gold-pale: #f0e4c9;
  --cream: #fffaf0;
  --green-ok: #4b8a61;
  --line: rgba(28, 43, 39, 0.13);
  --line-strong: rgba(28, 43, 39, 0.22);
  --line-light: rgba(255, 250, 240, 0.18);
  --shadow-soft: 0 12px 35px rgba(61, 45, 22, 0.09);
  --shadow-card: 0 18px 50px rgba(50, 38, 18, 0.12);
  --shadow-deep: 0 28px 80px rgba(7, 27, 23, 0.28);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  background:
    radial-gradient(1200px 580px at 82% -10%, rgba(205, 174, 117, 0.22), transparent 62%),
    radial-gradient(900px 520px at 8% 16%, rgba(197, 110, 70, 0.08), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(207, 86, 56, 0.22);
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.22;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--jade);
  color: var(--cream);
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   基础控件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.4;
  transform: none;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  color: var(--cream);
  background: linear-gradient(135deg, #d86142 0%, var(--red) 55%, #bd4a30 100%);
  box-shadow: 0 8px 20px rgba(186, 73, 45, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 26px rgba(186, 73, 45, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn-secondary {
  color: var(--cream);
  background: var(--jade);
  border-color: var(--jade);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--jade-mid);
}

.btn-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 250, 240, 0.65);
  border-color: var(--ink);
}

.btn-ghost-ink {
  color: var(--ink);
  background: rgba(28, 43, 39, 0.05);
  border-color: transparent;
}

.btn-ghost-ink:hover:not(:disabled) {
  background: rgba(28, 43, 39, 0.09);
}

.btn-ink {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ink:hover:not(:disabled) {
  background: #2a3b36;
}

.btn-quiet {
  color: var(--ink-soft);
  background: transparent;
}

.btn-quiet:hover:not(:disabled) {
  background: rgba(28, 43, 39, 0.06);
  color: var(--ink);
}

.btn-muted {
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.05);
  border-color: transparent;
}

.btn-small {
  min-height: 34px;
  padding: 8px 14px;
  font-size: 13px;
}

.btn-large {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 15px;
}

.btn-icon-text {
  padding-inline: 12px;
}

.btn-with-icon {
  padding-inline: 16px;
}

.btn.is-busy {
  opacity: 0.85;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}

.icon-button:hover {
  background: rgba(28, 43, 39, 0.06);
  color: var(--ink);
}

.icon-button--soft {
  border-color: var(--line);
  background: rgba(255, 250, 240, 0.6);
}

.icon-button--quiet {
  color: var(--ink-soft);
}

.icon-button.is-spinning .icon {
  animation: spin 0.5s linear;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  color: #f8edda;
  background:
    linear-gradient(145deg, #dc6b4e, var(--red) 58%, #ae3c27);
  border: 1px solid rgba(110, 36, 22, 0.36);
  border-radius: 13px;
  box-shadow: inset 0 0 0 3px rgba(248, 237, 218, 0.34), 0 5px 14px rgba(120, 49, 32, 0.2);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.brand-seal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(248, 237, 218, 0.4);
  border-radius: 7px;
}

.brand-seal--small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
  box-shadow: inset 0 0 0 2px rgba(248, 237, 218, 0.32);
}

.brand-seal--small::after {
  inset: 4px;
  border-radius: 6px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-word strong {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.12em;
}

.brand-word small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--ink-faint);
  border-radius: 50%;
  vertical-align: 1px;
}

.state-dot.is-online {
  background: var(--green-ok);
  box-shadow: 0 0 0 4px rgba(75, 138, 97, 0.12);
}

.server-state {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--red);
}

.section-kicker {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.home-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.home-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.ambient-orb--one {
  top: 72px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(195, 160, 92, 0.18);
  box-shadow: inset 0 0 0 90px rgba(195, 160, 92, 0.035), inset 0 0 0 170px rgba(195, 160, 92, 0.025);
}

.ambient-orb--two {
  top: 480px;
  left: -250px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(207, 86, 56, 0.1);
  box-shadow: inset 0 0 0 70px rgba(207, 86, 56, 0.022);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(91, 70, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 70, 43, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 56px));
  height: var(--header-h);
  margin: 0 auto;
  padding-top: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  padding: 8px 2px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  gap: 36px;
  align-items: center;
  width: min(1200px, calc(100% - 56px));
  min-height: 620px;
  margin: 24px auto 60px;
  padding: 34px 0 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: riseIn 0.75s var(--ease) both;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(50px, 5.3vw, 70px);
  letter-spacing: -0.028em;
  line-height: 1.14;
}

.hero h1 .brush {
  position: relative;
  display: inline-block;
  color: var(--red);
  padding: 0 0.05em;
}

.hero h1 .brush::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -2%;
  bottom: 4px;
  height: 12px;
  background: linear-gradient(90deg, rgba(195, 160, 92, 0.1), rgba(195, 160, 92, 0.52), rgba(195, 160, 92, 0.08));
  border-radius: 50%;
  transform: rotate(-1.4deg);
  z-index: -1;
}

.hero-lead {
  max-width: 510px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.quick-join {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 4px 5px 4px 16px;
  background: rgba(255, 250, 240, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-join:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 160, 92, 0.12);
}

.quick-join-label {
  margin-right: 6px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quick-join input {
  width: 82px;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quick-join input::placeholder {
  color: rgba(28, 43, 39, 0.25);
  letter-spacing: 0.1em;
}

.quick-join .btn {
  min-height: 42px;
  padding-inline: 15px;
}

.quick-join input.is-shaking {
  animation: shake 0.35s;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-notes .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.hero-visual {
  position: relative;
  height: 520px;
  animation: riseIn 0.9s 0.08s var(--ease) both;
}

.hero-lantern {
  position: absolute;
  top: -6px;
  right: 12%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: lanternSway 6s ease-in-out infinite;
}

.lantern-cord {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, transparent, rgba(28, 43, 39, 0.38));
}

.lantern-body {
  position: relative;
  display: block;
  width: 62px;
  height: 82px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 30%, transparent 70%, rgba(71, 20, 12, 0.14)),
    linear-gradient(180deg, #da6a4d, #bd452d);
  border-radius: 38% 38% 42% 42%;
  box-shadow: 0 0 32px rgba(207, 86, 56, 0.28), inset 0 0 0 1px rgba(255, 238, 209, 0.28);
}

.lantern-body::before,
.lantern-body::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 5px;
  background: #d9b66f;
  border-radius: 2px;
}

.lantern-body::before {
  top: 0;
}

.lantern-body::after {
  bottom: 0;
}

.lantern-body i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 26px;
  background: rgba(255, 242, 214, 0.54);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.hero-table {
  position: absolute;
  top: 52px;
  left: 5%;
  width: 96%;
  height: 390px;
  padding: 14px;
  background:
    linear-gradient(140deg, #704a2b, #4d321e 48%, #815a36);
  border-radius: 50% / 44%;
  box-shadow:
    0 38px 65px rgba(56, 38, 19, 0.28),
    0 8px 0 rgba(55, 34, 16, 0.3),
    inset 0 1px 0 rgba(255, 239, 203, 0.35);
  transform: rotate(-3.2deg);
  z-index: 1;
}

.hero-table-rim {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(230, 196, 135, 0.5);
  border-radius: 50% / 44%;
  pointer-events: none;
}

.hero-table-top {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(76, 140, 119, 0.24), transparent 55%),
    repeating-linear-gradient(42deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 11px),
    linear-gradient(145deg, #1d5b4e, #113d35 70%);
  border-radius: 50% / 44%;
  box-shadow: inset 0 0 60px rgba(2, 20, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: var(--cream);
}

.hero-table-top::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(230, 203, 152, 0.12);
  border-radius: 50% / 44%;
}

.hero-table-mark {
  position: absolute;
  top: 33px;
  color: rgba(244, 236, 220, 0.37);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.32em;
}

.hero-card-fan {
  position: relative;
  width: 240px;
  height: 178px;
  margin-top: 8px;
}

.hero-card {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 104px;
  height: 148px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 40%),
    #fbf4e4;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 16px 26px rgba(3, 20, 16, 0.34);
  color: var(--ink);
  transform-origin: 50% 100%;
}

.hero-card span {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.hero-card b {
  position: absolute;
  top: 33px;
  left: 10px;
  font-size: 17px;
  line-height: 1;
}

.hero-card.is-red {
  color: var(--red);
}

.hero-card--left {
  margin-left: -120px;
  transform: rotate(-17deg) translateY(10px);
}

.hero-card--center {
  margin-left: -57px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(207, 86, 56, 0.1), transparent 55%),
    #fbf4e4;
  color: var(--red);
}

.hero-card--center span,
.hero-card--center b {
  position: static;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.hero-card--center b {
  font-size: 21px;
}

.hero-card--right {
  margin-left: 8px;
  transform: rotate(15deg) translateY(12px);
}

.hero-card--center::after {
  content: "地主";
  position: absolute;
  bottom: 12px;
  padding: 2px 9px;
  color: var(--gold);
  border: 1px solid rgba(195, 160, 92, 0.5);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.hero-chip {
  position: absolute;
  right: 17%;
  bottom: 82px;
  padding: 7px 12px;
  color: var(--gold-light);
  background: rgba(7, 33, 27, 0.55);
  border: 1px solid rgba(230, 203, 152, 0.25);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.15em;
  transform: rotate(6deg);
}

.hero-avatar-row {
  position: absolute;
  bottom: 33px;
  display: flex;
  align-items: center;
}

.scene-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: -7px;
  color: var(--cream);
  border: 2px solid #174d42;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(3, 20, 16, 0.3);
}

.scene-avatar:first-child {
  margin-left: 0;
}

.scene-avatar--empty {
  color: rgba(255, 250, 240, 0.6);
  background: rgba(255, 250, 240, 0.08);
  border-style: dashed;
  font-family: var(--sans);
  font-size: 18px;
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  color: var(--ink-soft);
  font-size: 11px;
}

.floating-note b {
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

.floating-note--one {
  top: 118px;
  left: -8px;
  transform: rotate(-4deg);
}

.floating-note--two {
  right: -6px;
  bottom: 38px;
  transform: rotate(3deg);
}

.floating-note--two .icon {
  width: 15px;
  height: 15px;
  color: var(--red);
}

.note-dot {
  width: 6px;
  height: 6px;
  background: var(--green-ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(75, 138, 97, 0.12);
}

.hero-spark {
  position: absolute;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 1;
}

.hero-spark--one {
  top: 28%;
  left: 2%;
  font-size: 22px;
}

.hero-spark--two {
  right: 2%;
  bottom: 18%;
  font-size: 28px;
  color: var(--red-soft);
}

.section {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 62px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.4vw, 42px);
}

.section-note {
  max-width: 330px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-count {
  color: var(--ink-faint);
  font-size: 11px;
}

.rooms-section {
  padding-top: 10px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.38), transparent 40%),
    rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.45) inset;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.room-card:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 160, 92, 0.5);
  box-shadow: var(--shadow-soft);
}

.room-card.is-busy {
  opacity: 0.74;
}

.room-card.is-busy:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.room-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.room-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.room-status.is-open {
  color: var(--green-ok);
}

.room-status.is-open i {
  background: var(--green-ok);
  box-shadow: 0 0 0 3px rgba(75, 138, 97, 0.1);
}

.room-status.is-playing {
  color: var(--gold);
}

.room-status.is-playing i {
  background: var(--gold);
}

.room-seats {
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 11px;
}

.room-name {
  margin-top: 22px;
  font-size: 23px;
  line-height: 1.3;
}

.room-game {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 11px;
}

.room-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.room-players {
  display: flex;
  align-items: center;
  padding-left: 3px;
}

.mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin-left: -4px;
  color: var(--cream);
  border: 2px solid var(--paper-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1;
}

.mini-avatar--empty {
  color: var(--ink-faint);
  background: var(--paper);
  border-style: dashed;
  border-color: var(--line-strong);
  font-family: var(--sans);
  font-size: 12px;
}

.avatar-palette-jade { background: linear-gradient(145deg, #2b7462, #15473d); }
.avatar-palette-amber { background: linear-gradient(145deg, #c49a58, #8d6335); }
.avatar-palette-clay { background: linear-gradient(145deg, #cc6e52, #99422d); }
.avatar-palette-ink { background: linear-gradient(145deg, #566b62, #2a3b36); }
.avatar-palette-plum { background: linear-gradient(145deg, #956479, #603c4e); }
.avatar-palette-moss { background: linear-gradient(145deg, #7b8a58, #4e5d35); }

.room-card--skeleton {
  overflow: hidden;
}

.room-card--skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.6) 46%, transparent 72%);
  animation: shimmer 1.7s infinite;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 16px;
  background: rgba(28, 43, 39, 0.07);
  border-radius: 999px;
}

.skeleton-line--sm { width: 30%; height: 8px; }
.skeleton-line--lg { width: 72%; height: 22px; margin-top: 12px; }
.skeleton-line--md { width: 50%; }
.skeleton-line--footer { width: 100%; margin-top: 22px; }

.room-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 38px;
  background: rgba(255, 250, 240, 0.4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.room-empty h3 {
  margin-top: 22px;
  font-size: 23px;
}

.room-empty p {
  max-width: 430px;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 12px;
}

.room-empty .btn {
  margin-top: 20px;
}

.empty-cards {
  position: relative;
  width: 105px;
  height: 64px;
}

.empty-card {
  position: absolute;
  top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 58px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 6px 12px rgba(55, 39, 17, 0.08);
  font-family: var(--serif);
  font-size: 17px;
}

.empty-card--left {
  left: 19px;
  color: var(--ink);
  transform: rotate(-13deg);
}

.empty-card--right {
  left: 44px;
  color: var(--red);
  transform: rotate(12deg);
}

.empty-card--center {
  left: 30px;
  z-index: 2;
  color: var(--gold);
  background: var(--jade);
  border-color: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.room-empty--offline {
  min-height: 220px;
}

.empty-orbit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.04);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-orbit .icon {
  width: 24px;
  height: 24px;
}

/* 游戏节目单 */

.games-section {
  padding-top: 40px;
}

.game-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(260px, 0.72fr);
  gap: 18px;
}

.feature-game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  min-height: 360px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 83% 28%, rgba(206, 170, 102, 0.18), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(73, 137, 118, 0.4), transparent 48%),
    linear-gradient(135deg, #1b5146, #133b34 58%, #0e2f29);
  border: 1px solid rgba(255, 250, 240, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}

.feature-game::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(234, 210, 164, 0.13);
  border-radius: 18px;
  pointer-events: none;
}

.feature-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 46px 22px 46px 46px;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: rgba(255, 250, 240, 0.64);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.badge--live {
  color: var(--gold-light);
  border-color: rgba(231, 210, 163, 0.32);
}

.badge--live i {
  width: 5px;
  height: 5px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(231, 210, 163, 0.1);
}

.feature-copy h3 {
  margin-top: 22px;
  color: var(--cream);
  font-size: clamp(38px, 4vw, 54px);
  letter-spacing: 0.02em;
}

.feature-copy > p {
  max-width: 430px;
  margin-top: 14px;
  color: rgba(255, 250, 240, 0.58);
  font-size: 13px;
  line-height: 1.9;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 26px;
  color: rgba(255, 250, 240, 0.6);
  font-size: 10px;
}

.feature-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feature-tags .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.feature-copy .btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #eddaae, #d4b674);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.feature-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.feature-art-ring {
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(231, 210, 163, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(231, 210, 163, 0.025), 0 0 0 64px rgba(231, 210, 163, 0.018);
}

.feature-crown {
  position: absolute;
  top: 20%;
  z-index: 4;
  color: var(--gold-light);
  transform: rotate(-6deg);
}

.feature-crown .icon {
  width: 38px;
  height: 38px;
}

.feature-card-stack {
  position: relative;
  width: 220px;
  height: 265px;
}

.feature-card {
  position: absolute;
  top: 48px;
  left: 52px;
  width: 122px;
  height: 176px;
  background: #fbf4e4;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  box-shadow: 0 22px 38px rgba(3, 20, 16, 0.35);
}

.feature-card--back {
  top: 30px;
  left: 28px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 250, 240, 0.09) 0 1px, transparent 1px 7px),
    var(--jade-deep);
  border: 1px solid rgba(231, 210, 163, 0.28);
  transform: rotate(-17deg);
}

.feature-card--middle {
  color: var(--ink);
  transform: rotate(-6deg);
}

.feature-card--front {
  top: 58px;
  left: 80px;
  color: var(--red);
  transform: rotate(8deg);
}

.feature-card span {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.feature-card b {
  position: absolute;
  top: 43px;
  left: 12px;
  font-size: 21px;
  line-height: 1;
}

.feature-card--front::after {
  content: "地主";
  position: absolute;
  right: 11px;
  bottom: 11px;
  padding: 3px 8px;
  color: var(--gold);
  border: 1px solid rgba(195, 160, 92, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.feature-art-caption {
  position: absolute;
  bottom: 44px;
  color: rgba(255, 250, 240, 0.35);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
}

.coming-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(195, 160, 92, 0.15), transparent 34%),
    rgba(255, 250, 240, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.coming-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(195, 160, 92, 0.28);
  border-radius: 50%;
}

.coming-kicker {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.coming-sigil {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 20px 0;
  color: var(--gold);
  border: 1px solid rgba(195, 160, 92, 0.4);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 44px;
  box-shadow: inset 0 0 0 8px rgba(195, 160, 92, 0.06);
  transform: rotate(-8deg);
}

.coming-card h3 {
  font-size: 25px;
  line-height: 1.4;
}

.coming-card p {
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.85;
}

.coming-stamp {
  align-self: flex-end;
  margin-top: 20px;
  padding: 5px 10px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.18em;
  transform: rotate(-4deg);
}

/* 玩法步骤 */

.how-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
  padding-top: 78px;
  padding-bottom: 76px;
  border-top: 1px solid var(--line);
}

.how-copy h2 {
  margin-top: 12px;
  font-size: clamp(32px, 3.6vw, 46px);
}

.how-copy > p {
  max-width: 360px;
  margin: 18px 0 26px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.how-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.how-steps li:first-child {
  padding-top: 0;
}

.how-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.how-steps h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.how-steps p {
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-brand strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-brand span {
  font-size: 8px;
}

.footer-link {
  padding: 0;
  color: var(--ink-faint);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--red);
}

.footer-version {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   房间页顶栏
   -------------------------------------------------------------------------- */

.room-page {
  min-height: 100vh;
  background:
    radial-gradient(1000px 420px at 80% -10%, rgba(195, 160, 92, 0.13), transparent 65%),
    var(--paper);
}

.room-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 0 26px;
  background: rgba(244, 236, 220, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.room-brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.room-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.room-brand-copy > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.room-brand-copy strong {
  max-width: 260px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.room-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 13px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.room-code-pill:hover {
  background: rgba(255, 250, 240, 0.95);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.room-code-pill > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.room-code-pill b {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
}

.room-code-pill .icon {
  width: 13px;
  height: 13px;
  color: var(--ink-faint);
}

.room-topbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.room-topbar-actions .btn {
  min-height: 36px;
  font-size: 12px;
}

.room-topbar-actions .server-state {
  margin-right: 7px;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 20px;
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto;
  padding: 20px 0 28px;
  align-items: start;
}

.room-main {
  position: relative;
  min-height: calc(100vh - 122px);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.4), transparent 44%),
    rgba(255, 250, 240, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   聊天
   -------------------------------------------------------------------------- */

.chat-panel {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 112px);
  min-height: 450px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(28, 43, 39, 0.07);
}

.chat-kicker {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.chat-head h2 {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.chat-close {
  display: none;
}

.chat-messages {
  flex: 1;
  padding: 17px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 43, 39, 0.16) transparent;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--ink-faint);
  text-align: center;
}

.chat-empty span {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
}

.chat-empty small {
  margin-top: 7px;
  font-size: 10px;
}

.chat-system {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.chat-system span {
  max-width: 88%;
  padding: 5px 10px;
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.045);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 0;
}

.chat-message.is-self {
  justify-content: flex-end;
}

.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--cream);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
}

.avatar--chat {
  width: 27px;
  height: 27px;
  margin-top: 18px;
  font-size: 9px;
}

.avatar--mini {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.chat-bubble-wrap {
  max-width: 82%;
}

.chat-message.is-self .chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  padding: 0 3px;
}

.chat-meta strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.chat-meta time {
  color: var(--ink-faint);
  font-size: 9px;
}

.chat-message.is-self .chat-meta {
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 8px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(28, 43, 39, 0.06);
  border-radius: 4px 12px 12px 12px;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.chat-message.is-self .chat-bubble {
  color: var(--cream);
  background: var(--jade);
  border-color: var(--jade);
  border-radius: 12px 4px 12px 12px;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 16px 8px;
}

.chat-quick::-webkit-scrollbar {
  display: none;
}

.chat-quick button {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chat-quick button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--gold);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 14px;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.chat-form input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--gold);
}

.chat-form input::placeholder {
  color: var(--ink-faint);
}

.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--cream);
  background: var(--jade);
  border: 0;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.chat-send:hover {
  background: var(--jade-mid);
  transform: translateY(-1px);
}

.chat-send .icon {
  width: 16px;
  height: 16px;
}

.mobile-chat-button {
  display: none;
  position: relative;
}

.mobile-chat-button .unread-badge,
.mobile-chat-fab .unread-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: var(--cream);
  background: var(--red);
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  line-height: 14px;
  text-align: center;
}

.mobile-chat-fab {
  display: none;
}

.chat-scrim {
  display: none;
}

/* --------------------------------------------------------------------------
   大厅视图
   -------------------------------------------------------------------------- */

.lobby-view {
  padding: 34px clamp(22px, 4vw, 42px) 32px;
}

.lobby-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.lobby-heading h1 {
  margin-top: 13px;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.015em;
}

.lobby-tagline {
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 12px;
}

.lobby-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  color: var(--gold);
  border: 1px solid rgba(195, 160, 92, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(195, 160, 92, 0.06);
  transform: rotate(4deg);
}

.lobby-stamp span {
  color: var(--ink-faint);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.lobby-stamp b {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
}

.lobby-stamp small {
  font-size: 11px;
  font-weight: 400;
}

.lobby-rules-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}

.lobby-rules-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.lobby-rules-row .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 244px;
  padding: 16px 16px 20px;
  background: rgba(255, 250, 240, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.seat-card.is-self {
  border-color: rgba(195, 160, 92, 0.5);
  box-shadow: 0 0 0 3px rgba(195, 160, 92, 0.06);
}

.seat-card.is-ready {
  background: linear-gradient(160deg, rgba(255, 250, 240, 0.8), rgba(230, 239, 225, 0.45));
}

.seat-card.is-offline {
  opacity: 0.7;
}

.seat-card--empty {
  justify-content: center;
  background: rgba(255, 250, 240, 0.24);
  border-style: dashed;
}

.seat-card-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 22px;
}

.host-tag,
.seat-number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.host-tag .icon {
  width: 12px;
  height: 12px;
}

.seat-number {
  color: var(--ink-faint);
}

.seat-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -4px -5px 0 0;
  padding: 0;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.seat-remove:hover {
  color: var(--red);
  background: rgba(207, 86, 56, 0.08);
}

.seat-remove .icon {
  width: 14px;
  height: 14px;
}

.seat-avatar-wrap {
  position: relative;
  margin: 16px 0 12px;
}

.avatar--seat {
  width: 66px;
  height: 66px;
  border: 3px solid var(--paper-soft);
  box-shadow: 0 8px 18px rgba(34, 45, 37, 0.14);
  font-size: 22px;
}

.is-ready .avatar--seat {
  box-shadow: 0 0 0 3px rgba(75, 138, 97, 0.22), 0 8px 18px rgba(34, 45, 37, 0.14);
}

.bot-corner {
  position: absolute;
  right: -4px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--jade);
  background: var(--gold-light);
  border: 2px solid var(--paper-soft);
  border-radius: 50%;
}

.bot-corner .icon {
  width: 11px;
  height: 11px;
}

.seat-ready-mark {
  position: absolute;
  right: -8px;
  top: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: transparent;
  background: rgba(28, 43, 39, 0.08);
  border: 2px solid var(--paper-soft);
  border-radius: 50%;
}

.seat-ready-mark.is-ready {
  color: var(--cream);
  background: var(--green-ok);
}

.seat-ready-mark .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.4;
}

.seat-name {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-name em,
.table-player-copy em,
.self-summary em,
.result-player-name em {
  padding: 2px 5px;
  color: var(--gold);
  background: rgba(195, 160, 92, 0.1);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.seat-sub {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 10.5px;
}

.seat-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
}

.seat-state .icon {
  width: 12px;
  height: 12px;
}

.seat-state.is-ready {
  color: var(--green-ok);
}

.seat-state.is-offline {
  color: var(--red);
}

.empty-seat-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 12px 0 14px;
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.035);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.empty-seat-symbol .icon {
  width: 23px;
  height: 23px;
}

.seat-card--empty .seat-name {
  color: var(--ink-soft);
}

.seat-add-bot {
  margin-top: 14px;
}

.seat-waiting {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 10px;
}

.seat-waiting .icon {
  width: 12px;
  height: 12px;
}

.ready-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 22px 24px;
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 10%, rgba(195, 160, 92, 0.16), transparent 35%),
    linear-gradient(135deg, #194b41, #113830);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.ready-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ready-copy > p:nth-child(2) {
  margin-top: 7px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 12.5px;
}

.ready-progress {
  position: relative;
  display: flex;
  align-items: center;
  width: 210px;
  height: 23px;
  margin-top: 13px;
  overflow: hidden;
  color: rgba(255, 250, 240, 0.7);
  background: rgba(255, 250, 240, 0.08);
  border-radius: 999px;
  font-size: 9px;
}

.ready-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ready, 0%);
  background: linear-gradient(90deg, rgba(195, 160, 92, 0.2), rgba(195, 160, 92, 0.45));
  transition: width 0.4s var(--ease);
}

.ready-progress > span {
  position: relative;
  padding-left: 10px;
}

.ready-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.ready-actions .btn-secondary {
  color: var(--cream);
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(255, 250, 240, 0.22);
}

.ready-actions .btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #f0ddb2, #d3b371);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ready-actions p {
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.45);
  font-size: 9px;
}

.invite-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.38);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.invite-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  color: var(--gold);
  background: rgba(195, 160, 92, 0.08);
  border-radius: 50%;
}

.invite-strip-icon .icon {
  width: 16px;
  height: 16px;
}

.invite-strip-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

.invite-strip-copy strong {
  font-family: var(--serif);
  font-size: 13px;
}

.invite-strip-copy span {
  color: var(--ink-faint);
  font-size: 10px;
}

.invite-strip-copy b {
  color: var(--ink-soft);
  font-family: var(--serif);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   游戏视图：工具栏与牌桌
   -------------------------------------------------------------------------- */

.game-view {
  padding: 16px 18px 22px;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px 12px;
}

.game-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.round-chip {
  padding: 5px 10px;
  color: var(--cream);
  background: var(--jade);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.game-meta-item {
  color: var(--ink-faint);
  font-size: 10.5px;
}

.game-meta-item b {
  margin-left: 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}

.game-meta-item--bomb b {
  color: var(--red);
}

.game-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 600;
}

.phase-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(195, 160, 92, 0.1);
}

.table-scene {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 13px;
  background:
    linear-gradient(135deg, #71502f, #4c3420 44%, #815c35);
  border-radius: 46% / 37%;
  box-shadow:
    0 24px 48px rgba(46, 32, 15, 0.23),
    inset 0 1px 0 rgba(250, 229, 187, 0.34),
    0 4px 0 rgba(47, 30, 14, 0.25);
}

.table-scene::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(234, 203, 144, 0.25);
  border-radius: 46% / 37%;
  pointer-events: none;
}

.table-felt {
  position: relative;
  min-height: 478px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 38%, rgba(68, 137, 114, 0.35), transparent 47%),
    radial-gradient(circle at 50% 110%, rgba(5, 31, 26, 0.52), transparent 55%),
    repeating-linear-gradient(43deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #1b584b, #103b33 70%);
  border-radius: 46% / 37%;
  box-shadow:
    inset 0 0 62px rgba(2, 20, 16, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.table-felt::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(232, 208, 164, 0.11);
  border-radius: 46% / 37%;
  pointer-events: none;
}

.felt-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(255, 250, 240, 0.035);
  font-family: var(--serif);
  font-size: clamp(100px, 15vw, 180px);
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translate(-52%, -48%);
  pointer-events: none;
  user-select: none;
}

.felt-suit {
  position: absolute;
  color: rgba(255, 250, 240, 0.045);
  font-family: var(--serif);
  font-size: 46px;
  pointer-events: none;
}

.felt-suit--one {
  left: 17%;
  bottom: 17%;
  transform: rotate(-17deg);
}

.felt-suit--two {
  right: 16%;
  top: 20%;
  color: rgba(207, 86, 56, 0.1);
  transform: rotate(13deg);
}

.bottom-area {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.bottom-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: rgba(255, 250, 240, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bottom-label i {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.bottom-cards-row {
  display: flex;
  gap: 4px;
  height: 65px;
}

.bottom-cards-row--hidden {
  padding-top: 2px;
}

.table-player {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 188px;
  padding: 9px 11px;
  background: rgba(7, 35, 29, 0.34);
  border: 1px solid rgba(255, 250, 240, 0.09);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.table-player--left {
  left: 3.4%;
  top: 39%;
}

.table-player--right {
  right: 3.4%;
  top: 39%;
}

.table-player--self {
  left: 50%;
  bottom: 2.6%;
  width: 240px;
  transform: translateX(-50%);
}

.table-player.is-current {
  background: rgba(8, 38, 31, 0.64);
  border-color: rgba(231, 210, 163, 0.55);
  box-shadow: 0 0 0 3px rgba(231, 210, 163, 0.06), 0 0 28px rgba(195, 160, 92, 0.12);
}

.table-player.is-offline {
  opacity: 0.6;
}

.table-player-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.avatar--table {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 250, 240, 0.14);
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.table-player.is-current .avatar--table {
  border-color: rgba(231, 210, 163, 0.78);
  box-shadow: 0 0 0 3px rgba(231, 210, 163, 0.1), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.landlord-corner,
.offline-corner {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  color: var(--ink);
  background: var(--gold-light);
  border: 1.5px solid rgba(7, 35, 29, 0.8);
  border-radius: 50%;
}

.landlord-corner .icon,
.offline-corner .icon {
  width: 9px;
  height: 9px;
  stroke-width: 2.2;
}

.offline-corner {
  color: var(--cream);
  background: var(--red);
}

.table-player-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.table-player-copy strong {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-player-copy span {
  color: rgba(255, 250, 240, 0.5);
  font-size: 9.5px;
}

.table-player-copy em {
  color: var(--gold-light);
  background: rgba(231, 210, 163, 0.12);
}

.table-player-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.opponent-hand-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 250, 240, 0.7);
  font-size: 10px;
}

.opponent-hand-count .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.player-bid {
  margin-left: auto;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 10px;
}

.player-bid.is-empty {
  display: none;
}

.turn-timer {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
}

.turn-timer b {
  font-weight: 700;
}

.turn-timer.is-urgent {
  color: #f0a68f;
}

.timer-ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-light) var(--timer-progress, 360deg), rgba(255, 250, 240, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
  mask: radial-gradient(circle, transparent 52%, #000 54%);
  transition: background 0.25s linear;
}

.turn-timer.is-urgent .timer-ring {
  background: conic-gradient(#f0a68f var(--timer-progress, 360deg), rgba(255, 250, 240, 0.12) 0);
}

.table-player.is-current .table-player-bottom .player-bid {
  margin-left: 0;
}

.turn-pointer {
  position: absolute;
  display: none;
  width: 7px;
  height: 7px;
  background: var(--gold-light);
  transform: rotate(45deg);
}

.table-player--left.is-current .turn-pointer {
  display: block;
  right: -5px;
  top: 50%;
}

.table-player--right.is-current .turn-pointer {
  display: block;
  left: -5px;
  top: 50%;
}

.table-player--self.is-current .turn-pointer {
  display: block;
  top: -5px;
  left: 50%;
}

.table-center {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(47%, 480px);
  transform: translate(-50%, -50%);
}

.table-center-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  color: var(--gold-light);
  border: 1px solid rgba(231, 210, 163, 0.34);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  box-shadow: inset 0 0 0 5px rgba(231, 210, 163, 0.04);
}

.center-emblem--out {
  font-size: 17px;
}

.table-center-message h3 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.table-center-message p {
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.48);
  font-size: 10px;
}

.trick-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  animation: trickIn 0.25s var(--ease) both;
}

.trick-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 10px;
  text-align: center;
}

.trick-caption b {
  color: var(--gold-light);
  font-weight: 600;
}

.trick-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--cream);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 7px;
}

.trick-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: none;
}

.trick-cards::-webkit-scrollbar {
  display: none;
}

.turn-callout {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 5px 10px;
  color: rgba(255, 250, 240, 0.65);
  background: rgba(3, 25, 20, 0.22);
  border: 1px solid rgba(255, 250, 240, 0.08);
  border-radius: 999px;
  font-size: 9.5px;
}

.turn-callout.is-mine {
  color: var(--gold-light);
  border-color: rgba(231, 210, 163, 0.24);
}

.turn-clock {
  color: currentColor;
  font-family: var(--serif);
  font-size: 10px;
}

.turn-clock.is-urgent {
  color: #f0a68f;
}

.table-corner-note {
  position: absolute;
  left: 4.5%;
  bottom: 4%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(255, 250, 240, 0.35);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.table-corner-note span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-corner-note .icon {
  width: 10px;
  height: 10px;
  color: rgba(231, 210, 163, 0.55);
}

.table-history-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin: 10px auto 0;
  padding: 0 7px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  white-space: nowrap;
}

.table-history-strip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-history-strip span:last-child {
  color: var(--ink-soft);
}

/* 手牌与操作区 */

.play-dock {
  position: relative;
  max-width: 1000px;
  margin: 13px auto 0;
  padding: 14px 16px 16px;
  background: rgba(255, 250, 240, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hand-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
}

.self-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.self-summary > div:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.self-summary strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.self-summary span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-faint);
  font-size: 9.5px;
}

.self-summary span .icon {
  width: 10px;
  height: 10px;
  color: var(--gold);
}

.selection-readout {
  flex: 1;
  color: var(--ink-faint);
  font-size: 10.5px;
  text-align: center;
}

.hand-count-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 10.5px;
  white-space: nowrap;
}

.hand-count-label .icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.hand-count-label b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
}

.hand-empty {
  color: var(--red);
  font-size: 8px;
}

.hand {
  --hand-w: clamp(50px, 5.2vw, 82px);
  --hand-shift: calc(var(--hand-w) * 0.52);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  justify-content: safe center;
  min-height: 140px;
  padding: 25px 24px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.hand::-webkit-scrollbar {
  display: none;
}

.hand.is-live .playing-card--hand {
  cursor: pointer;
}

.hand.is-live .playing-card--hand:hover {
  transform: translateY(-8px);
}

.hand .playing-card--hand:first-child {
  margin-left: 0;
}

.hand .playing-card--hand {
  width: var(--hand-w);
  margin-left: calc(var(--hand-shift) - var(--hand-w));
  box-shadow:
    -2px 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(50, 38, 18, 0.16);
  transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s;
}

.playing-card--hand.is-selected {
  z-index: 50;
  transform: translateY(-18px);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 14px 22px rgba(50, 38, 18, 0.22);
}

.hand .playing-card--hand.is-selected:hover {
  transform: translateY(-20px);
}

.playing-card--hand:focus-visible {
  z-index: 60;
  outline-offset: 2px;
}

.action-bar {
  min-height: 88px;
  margin-top: 5px;
  padding: 13px 16px;
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 0%, rgba(195, 160, 92, 0.13), transparent 40%),
    linear-gradient(135deg, #17483f, #10352f);
  border-radius: 13px;
}

.action-mine {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(90px, 0.55fr);
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.action-prompt {
  min-width: 0;
}

.action-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.action-prompt p {
  color: rgba(255, 250, 240, 0.74);
  font-size: 11.5px;
  line-height: 1.5;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.action-buttons .btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--cream);
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.12);
}

.action-buttons .btn:hover:not(:disabled) {
  background: rgba(255, 250, 240, 0.14);
}

.action-buttons .btn-play {
  color: var(--ink);
  background: linear-gradient(135deg, #f1ddb1, #d2b36f);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.action-buttons .btn-play:hover:not(:disabled) {
  background: linear-gradient(135deg, #f8e8c4, #dfc182);
}

.action-buttons--bid .btn-secondary {
  min-width: 62px;
  color: rgba(255, 250, 240, 0.65);
  background: transparent;
  border-color: rgba(255, 250, 240, 0.18);
}

.btn-bid {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-height: 52px !important;
  padding: 5px !important;
  color: var(--gold-light) !important;
  background: rgba(255, 250, 240, 0.045) !important;
  border: 1px solid rgba(231, 210, 163, 0.3) !important;
  border-radius: 50% !important;
}

.btn-bid:hover:not(:disabled) {
  color: var(--ink) !important;
  background: linear-gradient(135deg, #f3e2ba, #d2b370) !important;
}

.btn-bid b {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
}

.btn-bid span {
  margin-top: 1px;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.action-footnote {
  justify-self: end;
  color: rgba(255, 250, 240, 0.4);
  font-size: 9px;
  text-align: right;
}

.action-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  text-align: center;
}

.action-waiting p {
  color: rgba(255, 250, 240, 0.72);
  font-size: 12.5px;
}

.action-waiting p b {
  color: var(--gold-light);
  font-weight: 600;
}

.action-waiting > span:last-child {
  margin-top: 3px;
  color: rgba(255, 250, 240, 0.35);
  font-size: 9px;
}

.waiting-dots {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 7px;
}

.waiting-dots i {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 1.2s infinite;
}

.waiting-dots i:nth-child(2) { animation-delay: 0.15s; }
.waiting-dots i:nth-child(3) { animation-delay: 0.3s; }

.action-idle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: rgba(255, 250, 240, 0.48);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   扑克牌
   -------------------------------------------------------------------------- */

.playing-card {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 0.705;
  padding: 0;
  color: #1f2a27;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, #fffdf6, #f5eddb);
  border: 1px solid rgba(43, 50, 39, 0.16);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 8px rgba(28, 32, 24, 0.12);
  font-family: var(--serif);
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.playing-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(28, 43, 39, 0.055);
  border-radius: 3px;
  pointer-events: none;
}

.playing-card.is-red {
  color: #b7432c;
}

.playing-card--md {
  width: 64px;
}

.playing-card--sm {
  width: 40px;
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 7px rgba(4, 20, 16, 0.22);
}

.card-corner {
  position: absolute;
  top: 5px;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.88;
}

.card-corner--bottom {
  top: auto;
  right: 6px;
  bottom: 5px;
  left: auto;
  transform: rotate(180deg);
}

.card-rank {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.playing-card.is-ten .card-rank {
  transform: scaleX(0.8);
  transform-origin: left center;
}

.playing-card.is-ten .card-corner--bottom .card-rank {
  transform-origin: right center;
}

.card-suit {
  margin-top: 2px;
  font-size: 12px;
}

.card-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44%;
  height: 50%;
  color: currentColor;
  opacity: 0.18;
  transform: translate(-50%, -50%);
}

.card-center-suit {
  font-size: 34px;
  line-height: 1;
}

.card-center-rank {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  display: none;
}

.playing-card--sm .card-corner {
  top: 3px;
  left: 4px;
}

.playing-card--sm .card-corner--bottom {
  right: 4px;
  bottom: 3px;
  left: auto;
}

.playing-card--sm .card-rank {
  font-size: 12px;
}

.playing-card--sm .card-suit {
  margin-top: 1px;
  font-size: 9px;
}

.playing-card--sm .card-center-suit {
  font-size: 20px;
}

.playing-card--sm::after {
  inset: 2px;
}

.playing-card--hand .card-rank {
  font-size: 23px;
}

.playing-card--hand .card-suit {
  font-size: 15px;
}

.playing-card--hand .card-center-suit {
  font-size: 40px;
}

.playing-card.is-selected {
  color: var(--ink);
}

.playing-card.is-selected.is-red {
  color: var(--red-deep);
}

.playing-card.is-joker {
  background:
    radial-gradient(circle at 28% 22%, rgba(195, 160, 92, 0.19), transparent 27%),
    linear-gradient(145deg, #fffdf6, #f2e5cf);
  color: var(--ink);
}

.playing-card.is-joker::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(195, 160, 92, 0.24);
  border-radius: 3px;
}

.joker-edge {
  position: absolute;
  left: 50%;
  color: rgba(28, 43, 39, 0.46);
  font-family: var(--sans);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.joker-edge--top {
  top: 5px;
}

.joker-edge--bottom {
  bottom: 5px;
  transform: translateX(-50%) rotate(180deg);
}

.joker-star {
  position: absolute;
  top: 17px;
  left: 50%;
  color: var(--gold);
  font-size: 10px;
  transform: translateX(-50%);
}

.joker-word {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--red);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transform: translate(-50%, -46%);
}

.playing-card--sm .joker-word {
  font-size: 13px;
}

.playing-card--sm .joker-star {
  top: 11px;
  font-size: 7px;
}

.playing-card--sm .joker-edge {
  font-size: 3.5px;
}

.playing-card--hand .joker-word {
  font-size: 27px;
}

.playing-card--hand .joker-star {
  top: 22px;
  font-size: 13px;
}

.playing-card--hand .joker-edge {
  font-size: 6px;
}

.card-back {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255, 250, 240, 0.1) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(255, 250, 240, 0.06) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #1f5e50, #0e3630);
  border: 2px solid #f6ecd9;
  box-shadow: inset 0 0 0 1px rgba(231, 210, 163, 0.32), 0 4px 8px rgba(4, 20, 16, 0.2);
}

.card-back::after {
  inset: 4px;
  border-color: rgba(231, 210, 163, 0.36);
}

.card-back-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55%;
  height: 64%;
  border: 1px solid rgba(231, 210, 163, 0.36);
  border-radius: 3px;
}

.card-back-frame span {
  color: rgba(231, 210, 163, 0.72);
  font-family: var(--serif);
  font-size: 16px;
}

.mini-card-back {
  display: inline-block;
  width: 17px;
  height: 24px;
  background: var(--jade-deep);
  border: 1px solid rgba(255, 250, 240, 0.35);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   开局倒计时 & 结算
   -------------------------------------------------------------------------- */

.starting-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 28, 24, 0.66);
  backdrop-filter: blur(8px);
  animation: veilIn 0.25s ease both;
}

.starting-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 54px;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 10%, rgba(195, 160, 92, 0.16), transparent 45%),
    linear-gradient(145deg, #1b4c42, #102f2a);
  border: 1px solid rgba(231, 210, 163, 0.28);
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
  text-align: center;
}

.starting-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.starting-count {
  margin: 6px 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  animation: countPulse 1s ease infinite;
}

.starting-card p {
  color: rgba(255, 250, 240, 0.5);
  font-size: 10px;
}

.starting-dots {
  display: flex;
  gap: 5px;
  margin-top: 18px;
}

.starting-dots i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 1.2s infinite;
}

.starting-dots i:nth-child(2) { animation-delay: 0.15s; }
.starting-dots i:nth-child(3) { animation-delay: 0.3s; }

.result-veil {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 28px 18px;
  background: rgba(8, 28, 24, 0.68);
  backdrop-filter: blur(9px);
  animation: veilIn 0.25s ease both;
}

.result-card {
  position: relative;
  width: min(690px, 100%);
  padding: 34px 34px 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 160, 92, 0.17), transparent 30%),
    var(--paper-soft);
  border: 1px solid rgba(231, 210, 163, 0.45);
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(4, 20, 16, 0.4);
  animation: resultIn 0.42s var(--ease) both;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(28, 43, 39, 0.08);
  border-radius: 13px;
  pointer-events: none;
}

.result-card.is-win::after,
.result-card.is-loss::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 110px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
  transform: translateX(-50%);
}

.result-card.is-loss::after {
  background: var(--ink-faint);
  opacity: 0.4;
}

.result-top {
  position: relative;
  text-align: center;
}

.result-kicker {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.result-top h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 46px);
}

.result-top p {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 11.5px;
}

.result-top p b {
  color: var(--red);
  font-weight: 600;
}

.result-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin: 17px auto 20px;
  padding: 7px 14px;
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.035);
  border-radius: 999px;
  font-size: 10.5px;
}

.result-formula i {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  font-style: normal;
}

.result-formula b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
}

.result-players {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.result-player {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
}

.result-player.is-winner {
  background: rgba(195, 160, 92, 0.085);
}

.result-player-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.result-player-name strong {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-player-name span {
  color: var(--ink-faint);
  font-size: 9.5px;
}

.result-player .avatar--mini {
  width: 29px;
  height: 29px;
  font-size: 9px;
}

.result-delta {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.result-delta.is-plus {
  color: var(--green-ok);
}

.result-delta.is-minus {
  color: var(--red);
}

.result-total {
  width: 76px;
  color: var(--ink-faint);
  font-size: 9px;
  text-align: right;
}

.result-total b {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.result-actions .btn-secondary {
  opacity: 1;
  color: var(--ink-soft);
  background: rgba(28, 43, 39, 0.06);
  border-color: var(--line);
}

.result-actions p {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 9.5px;
}

/* --------------------------------------------------------------------------
   弹窗
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(9, 27, 23, 0.48);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-visible {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 0%, rgba(195, 160, 92, 0.13), transparent 26%),
    var(--paper-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(6, 25, 21, 0.35);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s var(--ease);
  scrollbar-width: thin;
}

.modal-backdrop.is-visible .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 12px;
  z-index: 5;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 12px 12px 0 0;
  padding: 0;
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.055);
  border: 0;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  color: var(--ink);
  background: rgba(28, 43, 39, 0.1);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.modal-content {
  padding: 26px 30px 28px;
}

.modal--form .modal-content {
  padding: 30px 32px 26px;
}

.modal--form {
  width: min(580px, 100%);
}

.modal--rules {
  width: min(880px, 100%);
}

.modal--rules .modal-content {
  padding: 34px 38px 30px;
}

.modal--narrow {
  width: min(420px, 100%);
}

.modal-heading {
  padding-right: 20px;
}

.modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.modal-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
}

.modal-heading > p {
  max-width: 500px;
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.8;
}

.modal-heading--rules h2 {
  margin-top: 3px;
  font-size: clamp(32px, 4.6vw, 48px);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.modal-actions .btn {
  min-width: 92px;
}

.modal-form .field {
  margin-top: 19px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.field label span {
  color: var(--ink-faint);
  font-weight: 400;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 160, 92, 0.09);
}

.field input::placeholder {
  color: rgba(28, 43, 39, 0.25);
}

.field .code-input {
  height: 60px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
}

.field .code-input::placeholder {
  letter-spacing: 0.22em;
}

.field-hint {
  color: var(--ink-faint);
  font-size: 9px;
}

.visibility-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.visibility-field legend {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.choice-card:has(input:checked) {
  background: rgba(195, 160, 92, 0.07);
  border-color: rgba(195, 160, 92, 0.6);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.choice-card:has(input:checked) .choice-radio {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--paper-soft), inset 0 0 0 8px var(--gold);
}

.choice-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.choice-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.choice-copy small {
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 9px;
}

.choice-icon {
  margin-left: auto;
  color: var(--gold);
}

.choice-icon .icon {
  width: 17px;
  height: 17px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.6;
}

.form-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  color: var(--gold);
}

.join-preview {
  display: flex;
  min-height: 54px;
  margin: 12px 0 0;
  align-items: center;
}

.preview-placeholder {
  color: var(--ink-faint);
  font-size: 8px;
}

.preview-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-faint);
  font-size: 9px;
}

.preview-loading i {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(28, 43, 39, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preview-error {
  color: var(--red);
  font-size: 9px;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.preview-card.is-joinable {
  border-color: rgba(75, 138, 97, 0.3);
  background: rgba(75, 138, 97, 0.045);
}

.preview-card.is-busy {
  opacity: 0.7;
}

.preview-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 7px;
}

.preview-status i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.preview-card.is-joinable .preview-status {
  color: var(--green-ok);
}

.preview-card.is-joinable .preview-status i {
  background: var(--green-ok);
}

.preview-main strong {
  overflow: hidden;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-main p {
  color: var(--ink-faint);
  font-size: 9px;
}

.preview-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 8px;
}

.preview-avatars {
  display: flex;
}

/* 规则弹窗 */

.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  margin-top: 28px;
}

.rule-section {
  display: flex;
  gap: 12px;
}

.rule-number {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
}

.rule-section h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.rule-section p {
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.8;
}

.combo-reference {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.combo-reference h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.combo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
  margin-top: 12px;
}

.combo-grid span {
  position: relative;
  padding-left: 12px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.6;
}

.combo-grid span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.combo-grid b {
  margin-right: 4px;
  color: var(--ink-soft);
  font-weight: 700;
}

.rules-note {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 15px;
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.035);
  border-radius: 9px;
}

.rules-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--red);
}

.rules-note p {
  font-size: 10px;
  line-height: 1.7;
}

.rules-note strong {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Toast / 重连提示 / 恢复页面
   -------------------------------------------------------------------------- */

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 15px;
  color: var(--cream);
  background: rgba(19, 45, 39, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(6, 25, 21, 0.24);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-5px);
}

.toast .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
}

.toast--error {
  background: rgba(127, 47, 30, 0.95);
}

.toast--error .icon {
  color: #f6d0c2;
}

.toast--success {
  background: rgba(34, 86, 59, 0.95);
}

.toast--success .icon {
  color: #cde4c7;
}

.connection-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100% - 28px));
  padding: 10px 12px 10px 16px;
  color: var(--cream);
  background: rgba(21, 48, 41, 0.96);
  border: 1px solid rgba(231, 210, 163, 0.2);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(6, 25, 21, 0.3);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.25s, transform 0.25s;
}

.connection-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.connection-banner[hidden] {
  display: none;
}

.banner-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(255, 250, 240, 0.2);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.banner-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.banner-copy strong {
  font-size: 10px;
  font-weight: 700;
}

.banner-copy span {
  color: rgba(255, 250, 240, 0.5);
  font-size: 8px;
}

.banner-retry {
  padding: 5px 9px;
  color: var(--gold-light);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(231, 210, 163, 0.2);
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
}

.banner-retry:hover {
  background: rgba(255, 250, 240, 0.14);
}

.boot-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 20px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.boot-splash .brand-seal {
  animation: gentlePulse 2s ease-in-out infinite;
}

.resume-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 24px;
}

.resume-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(195, 160, 92, 0.12), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.resume-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(460px, 100%);
  padding: 48px 38px 42px;
  background: rgba(255, 250, 240, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: riseIn 0.55s var(--ease) both;
}

.resume-card .brand-seal {
  margin-bottom: 22px;
}

.resume-card h1 {
  margin-top: 12px;
  font-size: 37px;
}

.resume-card > p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 11px;
}

.resume-card > p b {
  color: var(--ink-soft);
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

.resume-loader {
  display: flex;
  gap: 5px;
  margin: 24px 0 26px;
}

.resume-loader i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 1.2s infinite;
}

.resume-loader i:nth-child(2) { animation-delay: 0.15s; }
.resume-loader i:nth-child(3) { animation-delay: 0.3s; }

.noscript-note {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--cream);
  background: var(--jade);
  font-size: 14px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   动画
   -------------------------------------------------------------------------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes dotPulse {
  0%, 70%, 100% { opacity: 0.28; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes lanternSway {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(1.8deg); }
}

@keyframes veilIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.8; }
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes trickIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .hero {
    gap: 20px;
    width: min(1120px, calc(100% - 48px));
  }

  .hero-visual {
    height: 490px;
  }

  .hero-table {
    top: 67px;
    left: 4%;
    height: 360px;
  }

  .floating-note--one {
    left: -2px;
  }

  .room-layout {
    grid-template-columns: minmax(0, 1fr) 294px;
    width: calc(100% - 32px);
    gap: 16px;
  }

  .playing-card--hand .card-rank {
    font-size: 19px;
  }

  .table-player {
    width: 176px;
  }

  .action-mine {
    grid-template-columns: minmax(130px, 1fr) auto;
  }

  .action-footnote {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    min-height: 570px;
  }

  .hero h1 {
    font-size: clamp(46px, 5.4vw, 64px);
  }

  .hero-visual {
    height: 450px;
  }

  .hero-table {
    top: 70px;
    height: 320px;
  }

  .hero-card-fan {
    transform: scale(0.9);
  }

  .hero-avatar-row {
    bottom: 24px;
  }

  .hero-chip {
    bottom: 72px;
  }

  .floating-note--two {
    right: 0;
    bottom: 20px;
  }

  .game-showcase {
    grid-template-columns: 1.45fr 0.8fr;
  }

  .feature-game {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .feature-copy {
    padding: 36px 18px 36px 34px;
  }

  .feature-art-ring {
    width: 220px;
    height: 220px;
  }

  .feature-card {
    width: 104px;
    height: 150px;
    left: 48px;
  }

  .feature-card--back {
    left: 26px;
  }

  .feature-card--front {
    left: 72px;
  }

  .room-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .table-scene {
    border-radius: 44% / 35%;
  }

  .table-felt {
    min-height: 456px;
  }

  .table-player {
    width: 158px;
    padding: 8px 9px;
  }

  .avatar--table {
    width: 35px;
    height: 35px;
  }

  .table-player-copy strong {
    font-size: 10px;
  }

  .table-center {
    width: min(43%, 380px);
  }

  .lobby-view {
    padding: 28px 28px;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 36px);
  }

  .section {
    width: calc(100% - 36px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 36px);
    min-height: 0;
    margin-top: 3px;
    padding-top: 24px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(46px, 7.6vw, 66px);
  }

  .hero-visual {
    width: min(560px, 100%);
    height: 460px;
    margin: 12px auto 0;
  }

  .hero-table {
    left: 4%;
    top: 57px;
    width: 92%;
    height: 345px;
  }

  .room-section {
    padding-top: 36px;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-showcase {
    grid-template-columns: 1fr;
  }

  .feature-game {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .coming-card {
    min-height: 220px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 22px;
    align-items: center;
  }

  .coming-sigil {
    margin: 0;
  }

  .coming-card h3 {
    font-size: 22px;
  }

  .coming-stamp {
    margin-top: 0;
  }

  .how-section {
    gap: 40px;
  }

  .site-footer {
    width: calc(100% - 36px);
  }

  /* 房间：聊天变成抽屉 */
  .room-topbar {
    padding: 0 16px;
  }

  .room-layout {
    display: block;
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .room-main {
    min-height: calc(100vh - 100px);
  }

  .chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 86;
    width: min(370px, 92vw);
    height: 100dvh;
    min-height: 0;
    background:
      radial-gradient(circle at 92% 0%, rgba(195, 160, 92, 0.1), transparent 28%),
      #faf5ea;
    border-radius: 18px 0 0 18px;
    box-shadow: -24px 0 60px rgba(8, 28, 24, 0.24);
    visibility: hidden;
    transform: translateX(104%);
    transition: transform 0.34s var(--ease), visibility 0.34s;
  }

  .room-page.chat-open .chat-panel {
    visibility: visible;
    transform: translateX(0);
  }

  .mobile-chat-button {
    display: inline-flex;
  }

  .mobile-chat-button.has-unread {
    color: var(--red);
    background: rgba(207, 86, 56, 0.08);
  }

  .chat-close {
    display: inline-flex;
  }

  .chat-head {
    padding-top: 24px;
  }

  .chat-scrim {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: block;
    background: rgba(8, 28, 24, 0.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .room-page.chat-open .chat-scrim {
    opacity: 1;
    visibility: visible;
  }

  .mobile-chat-fab {
    position: fixed;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 16px;
    color: var(--cream);
    background: rgba(21, 72, 63, 0.94);
    border: 1px solid rgba(231, 210, 163, 0.2);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(8, 28, 24, 0.22);
    font-size: 10px;
    backdrop-filter: blur(8px);
  }

  .mobile-chat-fab .icon {
    width: 15px;
    height: 15px;
  }

  .mobile-chat-fab.has-unread {
    color: var(--ink);
    background: var(--gold-light);
  }

  .unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    color: var(--cream);
    background: var(--red);
    border-radius: 999px;
    font-size: 8px;
    font-style: normal;
  }

  .unread-badge[hidden] {
    display: none;
  }

  .hand {
    --hand-w: 74px;
    --hand-shift: 38px;
  }

  .table-scene {
    max-width: 860px;
    border-radius: 42% / 33%;
  }

  .table-felt {
    min-height: 474px;
    border-radius: 42% / 33%;
  }

  .table-player {
    width: 180px;
  }

  .table-player--left {
    left: 4%;
  }

  .table-player--right {
    right: 4%;
  }

  .table-center {
    width: min(46%, 380px);
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 68px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-link {
    display: none;
  }

  .site-nav .server-state {
    display: none;
  }

  .brand-word small {
    display: none;
  }

  .brand-word strong {
    font-size: 18px;
  }

  .brand-seal {
    width: 43px;
    height: 43px;
    font-size: 22px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-visual {
    height: 410px;
  }

  .hero-table {
    top: 50px;
    height: 305px;
  }

  .floating-note {
    display: none;
  }

  .lantern-body {
    width: 50px;
    height: 68px;
  }

  .hero-lantern {
    right: 8%;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-note {
    text-align: left;
  }

  .section-tools {
    align-self: flex-end;
    margin-top: -42px;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 170px;
  }

  .feature-game {
    grid-template-columns: 1fr;
    min-height: 530px;
  }

  .feature-copy {
    padding: 34px 28px 10px;
  }

  .feature-copy > p {
    max-width: none;
  }

  .feature-art {
    min-height: 250px;
  }

  .feature-card-stack {
    transform: scale(0.86);
  }

  .coming-card {
    display: flex;
    min-height: 250px;
  }

  .coming-sigil {
    margin: 8px 0;
  }

  .coming-stamp {
    align-self: flex-end;
  }

  .how-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer-version {
    width: 100%;
  }

  .lobby-heading h1 {
    font-size: 37px;
  }

  .lobby-stamp {
    width: 74px;
    height: 74px;
  }

  .lobby-stamp b {
    font-size: 22px;
  }

  .seat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seat-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    align-items: center;
    min-height: 92px;
    padding: 12px 14px;
    text-align: left;
  }

  .seat-card-ribbon {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 5px;
  }

  .seat-avatar-wrap {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: center;
    margin: 0;
  }

  .avatar--seat {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .seat-name {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    font-size: 15px;
  }

  .seat-sub {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 1px;
  }

  .seat-state {
    grid-column: 3;
    grid-row: 2 / 4;
    align-self: center;
    margin: 0;
    padding: 0;
  }

  .seat-card--empty {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 78px;
    padding-block: 11px;
  }

  .seat-card--empty .seat-card-ribbon {
    grid-row: 1;
    margin-bottom: 6px;
  }

  .seat-card--empty .empty-seat-symbol {
    grid-column: 1;
    grid-row: 2;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .seat-card--empty .seat-name {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .seat-card--empty .seat-sub {
    display: none;
  }

  .seat-card--empty .seat-add-bot,
  .seat-card--empty .seat-waiting {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    margin: 0;
    white-space: nowrap;
  }

  .ready-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }

  .ready-actions {
    align-items: stretch;
  }

  .ready-actions p {
    align-self: center;
  }

  .ready-progress {
    width: 100%;
  }

  .invite-strip {
    flex-wrap: wrap;
  }

  .invite-strip .btn {
    margin-left: 48px;
  }

  .room-brand-copy strong {
    max-width: 150px;
  }

  .room-topbar-center {
    display: none;
  }

  .room-topbar-actions .server-state {
    display: none;
  }

  .room-topbar-actions .btn-quiet {
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .room-topbar-actions .btn-quiet span {
    display: none;
  }

  .game-view {
    padding: 12px 10px 16px;
  }

  .table-scene {
    border-radius: 32px;
    padding: 9px;
  }

  .table-scene::after {
    border-radius: 26px;
    inset: 4px;
  }

  .table-felt {
    min-height: 440px;
    border-radius: 26px;
  }

  .table-felt::before {
    inset: 9px;
    border-radius: 21px;
  }

  .bottom-area {
    top: 11px;
  }

  .bottom-label {
    font-size: 7px;
  }

  .bottom-cards-row {
    height: 55px;
    transform: scale(0.86);
    transform-origin: top center;
  }

  .table-player {
    width: 135px;
    padding: 7px 8px;
    gap: 5px;
    border-radius: 11px;
  }

  .table-player--left {
    left: 2.5%;
    top: 22%;
  }

  .table-player--right {
    right: 2.5%;
    top: 22%;
  }

  .table-player--self {
    display: none;
  }

  .avatar--table {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .table-player-copy strong {
    font-size: 11px;
  }

  .table-player-copy span {
    font-size: 8.5px;
  }

  .table-player-bottom {
    gap: 4px;
  }

  .opponent-hand-count {
    font-size: 9px;
  }

  .turn-timer {
    font-size: 10px;
  }

  .table-center {
    top: 51%;
    width: min(56%, 300px);
  }

  .center-emblem {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .table-center-message h3 {
    font-size: 13px;
  }

  .table-center-message p {
    font-size: 9px;
  }

  .trick-caption {
    font-size: 9px;
  }

  .turn-callout {
    font-size: 8.5px;
    margin-top: 8px;
  }

  .table-corner-note {
    left: 6%;
    bottom: 3%;
  }

  .table-history-strip {
    padding: 0 3px;
    gap: 9px;
    font-size: 8px;
  }

  .play-dock {
    padding: 10px 9px 11px;
  }

  .hand-toolbar {
    gap: 6px;
    padding: 0 3px;
  }

  .selection-readout {
    display: none;
  }

  .hand {
    --hand-w: 64px;
    --hand-shift: 23px;
    min-height: 110px;
    justify-content: center;
    padding: 25px 5px 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hand::-webkit-scrollbar {
    display: none;
  }

  .playing-card--hand .card-rank {
    font-size: 15px;
  }

  .playing-card--hand .card-suit {
    font-size: 10px;
  }

  .playing-card--hand .card-center-suit {
    font-size: 23px;
  }

  .playing-card--hand .joker-word {
    font-size: 16px;
  }

  .playing-card--hand .joker-star {
    top: 17px;
    font-size: 9px;
  }

  .playing-card--hand .joker-edge {
    font-size: 4px;
  }

  .playing-card--hand .card-corner {
    top: 4px;
    left: 4px;
  }

  .playing-card--hand .card-corner--bottom {
    right: 4px;
    bottom: 4px;
    left: auto;
  }

  .action-bar {
    min-height: 80px;
    padding: 10px;
  }

  .action-mine {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: stretch;
  }

  .action-prompt {
    text-align: center;
  }

  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .action-buttons--bid {
    order: 2;
  }

  .action-waiting p {
    font-size: 12px;
  }

  .game-toolbar {
    padding: 0 4px 8px;
  }

  .game-phase {
    display: none;
  }

  .lobby-view {
    padding: 22px 16px;
  }

  .lobby-heading {
    gap: 12px;
  }

  .lobby-heading h1 {
    font-size: 32px;
  }

  .lobby-rules-row {
    margin: 16px 0;
  }

  .lobby-rules-row span:nth-child(4) {
    display: none;
  }

  .starting-card {
    padding: 30px 38px;
  }

  .starting-count {
    font-size: 78px;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .field input,
  .chat-form input {
    font-size: 16px;
  }

  .modal-card {
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .modal-content,
  .modal--form .modal-content,
  .modal--rules .modal-content {
    padding: 24px 20px 22px;
  }

  .modal-close {
    top: 9px;
    margin: 9px 9px 0 0;
  }

  .modal-heading {
    padding-right: 28px;
  }

  .modal-heading h2 {
    font-size: 29px;
  }

  .modal-heading--rules h2 {
    font-size: 32px;
  }

  .rules-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .combo-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 27px 18px 22px;
  }

  .result-top h2 {
    font-size: 34px;
  }

  .result-total {
    width: 62px;
  }

  .result-veil {
    padding: 16px 10px;
  }

  .toast-root {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .seat-card .seat-state {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 26px);
    padding-top: 10px;
  }

  .section {
    width: calc(100% - 26px);
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    font-size: 20px;
    border-radius: 10px;
  }

  .brand-word strong {
    font-size: 16px;
  }

  .brand-word small {
    font-size: 6px;
  }

  .site-nav .btn {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero {
    width: calc(100% - 26px);
    margin-bottom: 24px;
    padding-top: 16px;
  }

  .eyebrow {
    gap: 8px;
    font-size: 9px;
  }

  .eyebrow-line {
    width: 22px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(34px, 10.9vw, 52px);
    line-height: 1.17;
  }

  .hero-lead {
    margin-top: 17px;
    font-size: 12px;
    line-height: 1.8;
  }

  .desktop-only {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-actions > .btn {
    width: 100%;
  }

  .quick-join {
    width: 100%;
    height: 50px;
  }

  .quick-join input {
    flex: 1;
    width: 100%;
  }

  .hero-notes {
    gap: 12px;
    margin-top: 20px;
    font-size: 9px;
  }

  .hero-notes span:last-child {
    display: none;
  }

  .hero-visual {
    height: 330px;
    margin-top: 2px;
  }

  .hero-table {
    top: 36px;
    left: -1%;
    width: 102%;
    height: 244px;
    padding: 9px;
  }

  .hero-lantern {
    right: 6%;
    transform: scale(0.76);
  }

  .lantern-cord {
    height: 38px;
  }

  .hero-card-fan {
    transform: scale(0.73);
  }

  .hero-table-mark {
    top: 24px;
  }

  .hero-avatar-row {
    bottom: 14px;
    transform: scale(0.84);
  }

  .hero-chip {
    right: 8%;
    bottom: 55px;
    font-size: 8px;
  }

  .section {
    padding: 38px 0;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .section-kicker {
    font-size: 8px;
  }

  .section-tools {
    margin-top: -36px;
  }

  .live-count {
    font-size: 9px;
  }

  .room-card {
    padding: 18px;
  }

  .room-name {
    margin-top: 16px;
    font-size: 21px;
  }

  .room-empty {
    padding: 28px 20px;
  }

  .room-empty h3 {
    font-size: 21px;
  }

  .feature-game {
    min-height: 520px;
  }

  .feature-copy {
    padding: 27px 22px 6px;
  }

  .feature-copy h3 {
    font-size: 37px;
  }

  .feature-copy > p {
    font-size: 11px;
  }

  .feature-tags {
    gap: 9px;
    margin: 16px 0 21px;
    font-size: 9px;
  }

  .feature-art {
    min-height: 220px;
  }

  .feature-card-stack {
    transform: scale(0.72);
  }

  .feature-crown {
    top: 12%;
  }

  .feature-art-caption {
    bottom: 28px;
  }

  .coming-card {
    padding: 26px;
  }

  .coming-card h3 {
    font-size: 21px;
  }

  .how-copy h2 {
    font-size: 32px;
  }

  .how-steps li {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .step-number {
    font-size: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-version {
    width: auto;
  }

  .room-topbar {
    height: 62px;
    padding: 0 10px;
    gap: 6px;
  }

  .room-brand-block {
    gap: 7px;
  }

  .room-brand-copy > span {
    font-size: 8px;
  }

  .room-brand-copy strong {
    max-width: 108px;
    font-size: 13px;
  }

  .room-topbar .brand-seal {
    width: 32px;
    height: 32px;
    font-size: 17px;
    border-radius: 8px;
  }

  .room-topbar .brand-seal::after {
    inset: 3px;
  }

  .room-topbar-actions {
    gap: 2px;
  }

  .room-topbar-actions .btn {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .room-topbar-actions .btn span {
    display: none;
  }

  .room-topbar-actions .icon-button {
    width: 34px;
    height: 34px;
  }

  .room-layout {
    width: calc(100% - 12px);
    padding-top: 8px;
  }

  .room-main {
    border-radius: 18px;
    min-height: calc(100vh - 82px);
  }

  .lobby-view {
    padding: 18px 12px;
  }

  .lobby-heading h1 {
    font-size: 27px;
  }

  .lobby-tagline {
    font-size: 10px;
  }

  .lobby-stamp {
    width: 58px;
    height: 58px;
  }

  .lobby-stamp span {
    font-size: 5.5px;
  }

  .lobby-stamp b {
    font-size: 17px;
  }

  .lobby-rules-row {
    gap: 5px;
    margin: 13px 0;
  }

  .lobby-rules-row span {
    padding: 5px 8px;
    font-size: 8px;
  }

  .lobby-rules-row span:nth-child(3) {
    display: none;
  }

  .seat-grid {
    gap: 7px;
  }

  .seat-card {
    grid-template-columns: 47px minmax(0, 1fr) auto;
    min-height: 80px;
    padding: 11px 12px;
  }

  .avatar--seat {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .seat-name {
    font-size: 13px;
  }

  .seat-sub {
    margin-top: 1px;
    font-size: 9px;
  }

  .seat-state {
    font-size: 8px;
  }

  .seat-state .icon {
    width: 10px;
    height: 10px;
  }

  .ready-panel {
    padding: 16px;
    margin-top: 12px;
  }

  .ready-copy > p:nth-child(2) {
    font-size: 10px;
  }

  .ready-progress {
    height: 20px;
  }

  .ready-actions .btn {
    min-height: 46px;
  }

  .invite-strip {
    padding: 12px;
  }

  .invite-strip-copy span {
    line-height: 1.5;
  }

  .invite-strip .btn {
    width: 100%;
    margin-left: 0;
  }

  .game-view {
    padding: 9px 6px 12px;
  }

  .game-toolbar {
    padding: 0 2px 7px;
  }

  .game-meta {
    gap: 5px;
  }

  .round-chip {
    font-size: 8px;
    padding: 4px 8px;
  }

  .game-meta-item {
    font-size: 8px;
  }

  .game-meta-item b {
    font-size: 11px;
  }

  .table-scene {
    padding: 6px;
    border-radius: 25px;
  }

  .table-felt {
    min-height: 392px;
    border-radius: 20px;
  }

  .table-felt::before {
    border-radius: 15px;
    inset: 7px;
  }

  .table-scene::after {
    border-radius: 20px;
  }

  .felt-mark {
    font-size: 92px;
  }

  .bottom-cards-row {
    transform: scale(0.78);
    height: 50px;
  }

  .bottom-label {
    gap: 4px;
    font-size: 6px;
  }

  .table-player {
    width: 118px;
    padding: 6px;
    border-radius: 9px;
  }

  .table-player--left {
    left: 2%;
    top: 20%;
  }

  .table-player--right {
    right: 2%;
    top: 20%;
  }

  .avatar--table {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .table-player-copy strong {
    font-size: 9.5px;
  }

  .table-player-copy span {
    font-size: 8.5px;
  }

  .table-player-bottom {
    gap: 3px;
  }

  .opponent-hand-count {
    font-size: 8px;
  }

  .opponent-hand-count .icon {
    width: 10px;
    height: 10px;
  }

  .player-bid {
    font-size: 8.5px;
  }

  .turn-timer {
    font-size: 9px;
  }

  .timer-ring {
    width: 11px;
    height: 11px;
  }

  .table-center {
    top: 52%;
    width: 57%;
  }

  .table-center-message h3 {
    font-size: 12px;
  }

  .table-center-message p {
    font-size: 8px;
  }

  .trick-caption {
    max-width: 100%;
    font-size: 8px;
  }

  .trick-cards {
    max-height: 118px;
    gap: 2px;
  }

  .trick-cards .playing-card--sm {
    width: 29px;
  }

  .trick-cards .playing-card--sm .card-rank {
    font-size: 9px;
  }

  .trick-cards .playing-card--sm .card-suit {
    font-size: 7px;
  }

  .trick-cards .playing-card--sm .card-center-suit {
    font-size: 14px;
  }

  .trick-cards .playing-card--sm .joker-word {
    font-size: 9px;
  }

  .turn-callout {
    gap: 5px;
    padding: 4px 8px;
    font-size: 7.5px;
  }

  .table-corner-note {
    display: none;
  }

  .table-history-strip {
    margin-top: 7px;
    font-size: 7.5px;
  }

  .play-dock {
    margin-top: 8px;
    padding: 8px 7px 9px;
    border-radius: 12px;
  }

  .hand-toolbar {
    min-height: 28px;
  }

  .self-summary > div:last-child {
    display: none;
  }

  .avatar--mini {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .hand-count-label {
    font-size: 9px;
  }

  .hand {
    --hand-w: 52px;
    --hand-shift: 15px;
    min-height: 91px;
    padding: 20px 4px 3px;
    justify-content: flex-start;
  }

  .playing-card--hand .card-rank {
    font-size: 14px;
  }

  .playing-card--hand .card-suit {
    font-size: 9px;
  }

  .playing-card--hand .joker-word {
    font-size: 14px;
  }

  .playing-card--hand.is-selected {
    transform: translateY(-14px);
  }

  .action-bar {
    padding: 8px;
    min-height: 74px;
  }

  .action-kicker {
    font-size: 8px;
  }

  .action-prompt p {
    font-size: 10.5px;
  }

  .action-buttons .btn {
    min-height: 37px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .btn-bid {
    width: 47px;
    height: 47px;
    min-height: 47px !important;
  }

  .btn-bid b {
    font-size: 16px;
  }

  .start-card {
    padding: 26px 28px;
  }

  .starting-count {
    font-size: 66px;
  }

  .result-veil {
    padding: 10px 6px;
  }

  .result-card {
    padding: 25px 15px 20px;
    border-radius: 16px;
  }

  .result-top h2 {
    font-size: 31px;
  }

  .result-formula {
    gap: 6px;
    padding: 6px 10px;
    font-size: 8px;
  }

  .result-drop {
    display: none;
  }

  .result-player {
    gap: 7px;
    padding: 7px;
  }

  .result-player-name strong {
    font-size: 10px;
  }

  .result-delta {
    font-size: 16px;
  }

  .result-total {
    width: 52px;
    font-size: 7px;
  }

  .result-actions .btn {
    width: 100%;
  }

  .modal--rules .modal-content {
    padding: 24px 17px 20px;
  }

  .modal-heading--rules h2 {
    font-size: 28px;
  }

  .rules-layout {
    gap: 13px;
    margin-top: 20px;
  }

  .rule-section p {
    font-size: 8.5px;
  }

  .combo-reference {
    margin-top: 20px;
    padding-top: 16px;
  }

  .rules-note {
    margin-top: 17px;
    padding: 11px;
  }

  .choice-copy small {
    font-size: 7.5px;
  }

  .modal-actions {
    gap: 7px;
  }

  .modal-actions .btn {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
    font-size: 12px;
  }

  .toast {
    font-size: 10px;
    padding: 9px 13px;
  }

  .connection-banner {
    top: 8px;
    gap: 8px;
    padding: 9px 10px;
  }

  .banner-copy span {
    font-size: 7px;
  }

  .banner-retry {
    font-size: 7px;
  }

  .resume-card {
    padding: 38px 24px 32px;
  }

  .resume-card h1 {
    font-size: 30px;
  }

  .resume-card > p:not(.eyebrow) {
    font-size: 10px;
  }

  .room-page .chat-panel {
    width: 94vw;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-visual {
    height: 300px;
  }

  .hero-table {
    top: 32px;
    height: 222px;
  }

  .table-player {
    width: 108px;
  }

  .hand {
    --hand-w: 48px;
    --hand-shift: 13px;
  }

  .game-meta-item:nth-of-type(3) {
    display: none;
  }

  .seat-card {
    grid-template-columns: 43px minmax(0, 1fr) auto;
  }

  .avatar--seat {
    width: 38px;
    height: 38px;
  }

  .room-brand-copy strong {
    max-width: 88px;
  }

  .room-topbar-actions .btn-quiet {
    display: none;
  }
}

/* ==========================================================================
   牌桌精简版：信息分层为「局面 / 牌桌 / 我的手牌 / 操作」，减少重复标签
   ========================================================================== */

.game-view--compact {
  padding: 12px 18px 18px;
}

.game-view--compact .game-toolbar {
  padding: 0 2px 9px;
  min-height: 34px;
}

.game-meta-sep {
  width: 1px;
  height: 13px;
  margin: 0 2px;
  background: var(--line);
}

.bomb-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: var(--red-deep);
  background: rgba(207, 86, 56, 0.08);
  border: 1px solid rgba(207, 86, 56, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--jade);
  background: rgba(255, 250, 240, 0.6);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.sound-toggle:hover {
  background: var(--cream);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.sound-toggle.is-off {
  color: var(--ink-faint);
  background: rgba(28, 43, 39, 0.045);
}

.sound-toggle .icon {
  width: 16px;
  height: 16px;
}

.game-view--compact .table-felt {
  min-height: 420px;
}

.game-view--compact .table-player {
  width: 196px;
  gap: 0;
  padding: 9px 11px;
  background: rgba(7, 35, 29, 0.62);
  border-radius: 15px;
  backdrop-filter: none;
}

.game-view--compact .table-player--left {
  left: 4%;
  top: 32%;
}

.game-view--compact .table-player--right {
  right: 4%;
  top: 32%;
}

.game-view--compact .table-player-top {
  gap: 9px;
}

.game-view--compact .avatar--table {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.game-view--compact .table-player-copy {
  flex: 1;
  gap: 2px;
}

.game-view--compact .table-player-copy strong {
  font-size: 12px;
}

.game-view--compact .table-player-copy span {
  font-size: 9.5px;
}

.game-view--compact .player-bid {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 7px;
  color: var(--gold-light);
  background: rgba(231, 210, 163, 0.1);
  border: 1px solid rgba(231, 210, 163, 0.18);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.3;
}

.game-view--compact .table-center {
  top: 53%;
  width: min(56%, 520px);
}

.game-view--compact .trick-caption {
  justify-content: center;
  gap: 8px;
  margin-bottom: 9px;
  color: rgba(255, 250, 240, 0.62);
  font-size: 10.5px;
}

.game-view--compact .trick-caption b {
  color: var(--gold-light);
  font-weight: 600;
}

.game-view--compact .trick-caption span {
  padding: 2px 7px;
  color: rgba(255, 250, 240, 0.68);
  background: rgba(3, 25, 20, 0.2);
  border: 1px solid rgba(255, 250, 240, 0.08);
  border-radius: 999px;
  font-size: 9px;
}

.game-view--compact .bottom-area {
  top: 15px;
}

.game-view--compact .bottom-label {
  margin-bottom: 6px;
  color: rgba(255, 250, 240, 0.55);
  font-size: 9px;
}

.game-view--compact .play-dock {
  margin-top: 10px;
  padding: 10px 14px 12px;
}

.game-view--compact .hand-toolbar {
  min-height: 26px;
  padding: 0 3px;
  gap: 10px;
}

.hand-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hand-name {
  max-width: 160px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  color: var(--ink-soft);
  background: rgba(28, 43, 39, 0.05);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.role-chip.is-landlord {
  color: #8d692c;
  background: rgba(195, 160, 92, 0.12);
}

.role-chip .icon {
  width: 11px;
  height: 11px;
}

.hand-score {
  color: var(--ink-faint);
  font-size: 9.5px;
  white-space: nowrap;
}

.game-view--compact .hand-count-label {
  margin-left: auto;
  font-size: 10px;
}

.game-view--compact .hand-count-label b {
  font-size: 13px;
}

.game-view--compact .hand {
  min-height: 136px;
  padding-top: 23px;
}

.game-view--compact .action-bar {
  min-height: 60px;
  margin-top: 7px;
  padding: 9px 13px;
  border-radius: 13px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
}

.game-view--compact .action-row.action-mine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 40px;
}

.action-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.35;
}

.action-status strong {
  overflow: hidden;
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-status strong.is-good {
  color: #d9e8c9;
}

.action-status strong.is-bad {
  color: #f0b6a4;
}

.action-status span {
  margin-top: 1px;
  overflow: hidden;
  color: rgba(255, 250, 240, 0.45);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-view--compact .action-waiting {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.waiting-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(195, 160, 92, 0.08);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.game-view--compact .action-waiting p {
  color: rgba(255, 250, 240, 0.7);
  font-size: 12px;
  white-space: nowrap;
}

.game-view--compact .action-waiting p b {
  color: var(--gold-light);
  font-weight: 600;
}

.action-note {
  flex: 0 0 auto;
  padding: 2px 7px;
  color: rgba(255, 250, 240, 0.5);
  background: rgba(255, 250, 240, 0.06);
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.game-view--compact .action-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 8px;
  color: rgba(255, 250, 240, 0.62);
  background: rgba(3, 25, 20, 0.24);
  border: 1px solid rgba(255, 250, 240, 0.08);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.game-view--compact .action-timer .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.game-view--compact .action-timer .turn-clock {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
}

.game-view--compact .action-timer .turn-clock.is-urgent {
  color: #ffad92;
}

.game-view--compact .action-waiting > .action-timer {
  margin-top: 0;
  color: rgba(255, 250, 240, 0.62);
  font-size: 11px;
}

.game-view--compact .action-buttons {
  gap: 7px;
}

.game-view--compact .action-buttons .btn {
  min-height: 40px;
  padding: 8px 17px;
  font-size: 12.5px;
}

.game-view--compact .action-buttons .btn-play {
  padding-inline: 20px;
}

.game-view--compact .action-buttons .btn .icon {
  width: 15px;
  height: 15px;
}

.game-view--compact .btn-bid {
  width: 47px;
  height: 47px;
  min-height: 47px !important;
}

@media (max-width: 1280px) {
  .game-view--compact .table-felt {
    min-height: 408px;
  }

  .game-view--compact .table-player {
    width: 180px;
  }

  .game-view--compact .table-center {
    width: min(49%, 460px);
  }
}

@media (max-width: 1100px) {
  .game-view--compact {
    padding: 10px 12px 14px;
  }

  .game-view--compact .table-felt {
    min-height: 396px;
  }

  .game-view--compact .table-player {
    width: 158px;
    padding: 8px;
  }

  .game-view--compact .avatar--table {
    width: 34px;
    height: 34px;
  }

  .game-view--compact .table-player-copy strong {
    font-size: 11px;
  }

  .game-view--compact .table-player-copy span {
    font-size: 8.5px;
  }

  .game-view--compact .table-player--left {
    left: 3.5%;
  }

  .game-view--compact .table-player--right {
    right: 3.5%;
  }

  .game-view--compact .table-center {
    width: min(44%, 360px);
  }
}

@media (max-width: 980px) {
  .game-view--compact .table-felt {
    min-height: 412px;
  }

  .game-view--compact .table-player {
    width: 180px;
  }

  .game-view--compact .table-player--left {
    left: 4%;
    top: 30%;
  }

  .game-view--compact .table-player--right {
    right: 4%;
    top: 30%;
  }

  .game-view--compact .table-center {
    width: min(48%, 440px);
  }
}

@media (max-width: 820px) {
  .game-view--compact {
    padding: 10px 8px 12px;
  }

  .game-view--compact .game-toolbar {
    padding: 0 0 7px;
  }

  .game-view--compact .table-scene {
    padding: 8px;
    border-radius: 30px;
  }

  .game-view--compact .table-felt {
    min-height: 358px;
    border-radius: 24px;
  }

  .game-view--compact .table-player {
    width: 136px;
    padding: 7px;
    border-radius: 11px;
  }

  .game-view--compact .table-player--left {
    left: 2.5%;
    top: 21%;
  }

  .game-view--compact .table-player--right {
    right: 2.5%;
    top: 21%;
  }

  .game-view--compact .avatar--table {
    width: 30px;
    height: 30px;
    font-size: 9.5px;
  }

  .game-view--compact .table-player-copy strong {
    font-size: 10px;
  }

  .game-view--compact .table-player-copy span {
    font-size: 8px;
  }

  .game-view--compact .player-bid {
    padding: 2px 5px;
    font-size: 8px;
  }

  .game-view--compact .table-center {
    top: 53%;
    width: 57%;
  }

  .game-view--compact .trick-caption {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .game-view--compact .bottom-area {
    top: 10px;
  }

  .game-view--compact .bottom-label {
    font-size: 8px;
  }

  .game-view--compact .bottom-cards-row {
    height: 55px;
    transform: scale(0.84);
    transform-origin: top center;
  }

  .game-view--compact .play-dock {
    padding: 8px 8px 10px;
  }

  .game-view--compact .hand-toolbar {
    min-height: 23px;
    padding: 0;
  }

  .hand-name {
    max-width: 100px;
    font-size: 11px;
  }

  .hand-score {
    font-size: 8.5px;
  }

  .role-chip {
    padding: 2px 6px;
    font-size: 8px;
  }

  .game-view--compact .hand-count-label {
    font-size: 9px;
  }

  .game-view--compact .hand {
    min-height: 108px;
    padding-top: 21px;
  }

  .game-view--compact .action-bar {
    min-height: 58px;
    margin-top: 6px;
    padding: 8px 9px;
  }

  .game-view--compact .action-row.action-mine {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 7px;
    column-gap: 8px;
    min-height: 0;
  }

  .game-view--compact .action-row.action-mine .action-buttons {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
  }

  .game-view--compact .action-row.action-mine .action-buttons .btn {
    flex: 1;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .game-view--compact .action-row.action-mine .action-buttons--bid {
    justify-content: center;
    gap: 9px;
  }

  .game-view--compact .action-row.action-mine .action-buttons--bid .btn {
    flex: 0 0 auto;
  }

  .game-view--compact .action-row.action-mine .action-timer {
    grid-column: 2;
    grid-row: 1;
  }

  .game-view--compact .action-status strong {
    font-size: 12px;
  }

  .game-view--compact .action-waiting {
    min-height: 36px;
    gap: 8px;
  }

  .game-view--compact .action-waiting p {
    font-size: 11.5px;
  }

  .game-view--compact .action-note {
    font-size: 8px;
  }

  .sound-toggle {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 560px) {
  .game-view--compact .game-meta {
    gap: 6px;
  }

  .game-view--compact .game-meta-item {
    font-size: 9px;
  }

  .game-view--compact .game-meta-item b {
    font-size: 11px;
  }

  .game-view--compact .game-meta-sep {
    display: none;
  }

  .game-view--compact .bomb-chip {
    padding: 2px 6px;
    font-size: 8px;
  }

  .game-view--compact .table-felt {
    min-height: 330px;
    border-radius: 19px;
  }

  .game-view--compact .table-player {
    width: 113px;
    padding: 6px;
  }

  .game-view--compact .table-player-top {
    gap: 6px;
  }

  .game-view--compact .avatar--table {
    width: 26px;
    height: 26px;
    font-size: 8px;
  }

  .game-view--compact .table-player-copy strong {
    font-size: 9px;
  }

  .game-view--compact .table-player-copy span {
    font-size: 7.5px;
  }

  .game-view--compact .player-bid {
    padding: 1px 4px;
    font-size: 7px;
  }

  .landlord-corner,
  .offline-corner {
    width: 14px;
    height: 14px;
    right: -3px;
    bottom: -3px;
  }

  .game-view--compact .table-center {
    width: 59%;
  }

  .game-view--compact .trick-caption {
    gap: 5px;
    margin-bottom: 5px;
    font-size: 8px;
  }

  .game-view--compact .trick-caption span {
    padding: 1px 5px;
    font-size: 7.5px;
  }

  .game-view--compact .bottom-area {
    top: 9px;
  }

  .game-view--compact .bottom-label {
    margin-bottom: 4px;
    font-size: 7px;
  }

  .game-view--compact .bottom-cards-row {
    height: 48px;
    transform: scale(0.76);
  }

  .game-view--compact .table-scene {
    padding: 6px;
    border-radius: 24px;
  }

  .game-view--compact .play-dock {
    padding: 7px 6px 8px;
  }

  .game-view--compact .hand-toolbar {
    gap: 6px;
  }

  .hand-identity {
    gap: 5px;
  }

  .hand-name {
    max-width: 70px;
    font-size: 10px;
  }

  .hand-score {
    display: none;
  }

  .role-chip {
    padding: 2px 5px;
    font-size: 7.5px;
  }

  .game-view--compact .hand-count-label {
    font-size: 8px;
  }

  .game-view--compact .hand-count-label b {
    font-size: 11px;
  }

  .game-view--compact .hand {
    min-height: 92px;
    padding-top: 19px;
    justify-content: safe center;
  }

  .game-view--compact .action-bar {
    min-height: 55px;
    padding: 7px 8px;
  }

  .game-view--compact .action-status strong {
    font-size: 11.5px;
  }

  .game-view--compact .action-status span {
    font-size: 8.5px;
  }

  .game-view--compact .action-waiting {
    gap: 6px;
  }

  .game-view--compact .action-waiting p {
    font-size: 11px;
  }

  .game-view--compact .action-timer {
    padding: 3px 6px;
    font-size: 10px;
  }

  .game-view--compact .action-row.action-mine .action-buttons {
    gap: 6px;
  }

  .game-view--compact .action-row.action-mine .action-buttons .btn {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .game-view--compact .action-row.action-mine .action-buttons--bid {
    gap: 7px;
  }

  .game-view--compact .btn-bid {
    width: 44px;
    height: 44px;
    min-height: 44px !important;
  }

  .sound-toggle {
    width: 30px;
    height: 30px;
  }

  .sound-toggle .icon {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 380px) {
  .game-view--compact .table-felt {
    min-height: 314px;
  }

  .game-view--compact .table-player {
    width: 104px;
  }

  .game-view--compact .table-player-copy span {
    font-size: 7px;
  }

  .game-view--compact .hand-name {
    max-width: 56px;
  }

  .game-view--compact .action-note {
    display: none;
  }
}

/* ==========================================================================
   大富翁 · 环游小镇
   ========================================================================== */

.seat-grid--many {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seat-grid--many .seat-card {
  min-height: 190px;
  padding: 12px 10px 14px;
  gap: 2px;
}

.seat-grid--many .avatar--seat {
  width: 48px;
  height: 48px;
  font-size: 13px;
}

.seat-grid--many .seat-avatar-wrap {
  margin: 6px 0 8px;
}

.seat-grid--many .seat-name {
  font-size: 13px;
}

.seat-grid--many .seat-sub {
  font-size: 9px;
  line-height: 1.5;
}

.seat-grid--many .seat-state {
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 8px;
}

.seat-grid--many .seat-add-bot {
  margin-top: 10px;
  padding: 7px 10px;
  font-size: 10px;
}

.seat-grid--many .empty-seat-symbol {
  width: 44px;
  height: 44px;
  margin: 10px 0 8px;
}

.seat-grid--many .seat-card-ribbon {
  min-height: 18px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.game-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.board-size-field[hidden] {
  display: none;
}

.board-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.board-size-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 10px 33px;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.55);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.board-size-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.board-size-radio {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.board-size-card input:checked + .board-size-radio {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--cream);
}

.board-size-card:has(input:checked) {
  background: rgba(231, 210, 163, 0.13);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(195, 160, 92, 0.08);
}

.board-size-card strong {
  color: var(--ink);
  font-size: 11px;
}

.board-size-card small {
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.5;
}

.game-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.game-pick-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.game-pick-card strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.game-pick-card small {
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.5;
}

.game-pick-card em {
  align-self: flex-start;
  padding: 2px 6px;
  color: var(--jade);
  background: rgba(77, 138, 112, 0.08);
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
}

.game-pick-card:has(input:checked) {
  background: rgba(231, 210, 163, 0.13);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(195, 160, 92, 0.08);
}

.game-pick-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.game-pick-card input:checked + .game-pick-check {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--cream);
}

/* ------------------------------- 棋盘视图 ------------------------------- */

.mono-view {
  padding: 14px 18px 18px;
}

.mono-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 11px;
}

.mono-eyebrow,
.mono-action-kicker,
.mono-panel-head,
.mono-center-kicker {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mono-heading h1 {
  margin: 3px 0 2px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mono-heading p {
  color: var(--ink-faint);
  font-size: 10px;
}

.mono-heading p b {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
}

.mono-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 3px;
}

.mono-live-dot {
  width: 6px;
  height: 6px;
  background: var(--jade);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(77, 138, 112, 0.09);
}

.mono-round-note {
  color: var(--ink-faint);
  font-size: 9px;
  white-space: nowrap;
}

.mono-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.mono-board-wrap {
  padding: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 40%),
    rgba(255, 250, 240, 0.52);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.mono-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 4px;
  aspect-ratio: 1;
  padding: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 138, 112, 0.1), transparent 56%),
    #e9ddc8;
  border-radius: 14px;
}

.mono-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 7px 5px 5px;
  color: #394438;
  background: #fbf5e8;
  border: 1px solid rgba(52, 59, 43, 0.13);
  border-radius: 8px;
  text-align: center;
}

.mono-tile--corner {
  background: #f3e7d3;
  border-color: rgba(157, 123, 67, 0.28);
}

.mono-tile--start {
  background: linear-gradient(150deg, #fff9ea, #f0e2ca);
}

.mono-tile--tax {
  background: #f6e9dd;
}

.mono-tile-band {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
}

.mono-band--jade { background: #4d8a70; }
.mono-band--amber { background: #c2964e; }
.mono-band--clay { background: #b96a4d; }
.mono-band--plum { background: #8a6482; }
.mono-band--corner { background: rgba(157, 123, 67, 0.42); }

.mono-tile-head {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  max-width: 100%;
}

.mono-tile-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #fffaf0;
  background: #3e5040;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1;
}

.mono-tile--jade .mono-tile-emblem { background: #4d8a70; }
.mono-tile--amber .mono-tile-emblem { background: #a77b36; }
.mono-tile--clay .mono-tile-emblem { background: #a0553d; }
.mono-tile--plum .mono-tile-emblem { background: #79556f; }
.mono-tile--corner .mono-tile-emblem { background: #9d7b43; }

.mono-tile-name {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-tile-price {
  margin-top: 2px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 8.5px;
  line-height: 1.2;
}

.mono-tile-desc {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 7px;
  line-height: 1.3;
}

.mono-owner-badge {
  position: absolute;
  top: 8px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #fffdf4;
  border: 1px solid #fbf5e8;
  border-radius: 50%;
  font-size: 6px;
  font-weight: 700;
}

.mono-level {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #a77b36;
  font-size: 7px;
  letter-spacing: 1px;
  line-height: 1;
}

.mono-tokens {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 1px;
  max-width: calc(100% - 22px);
  flex-wrap: wrap;
}

.mono-token,
.mono-player-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffdf4;
  border: 1px solid rgba(255, 250, 240, 0.78);
  border-radius: 50%;
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
}

.mono-token {
  width: 12px;
  height: 12px;
}

.mono-token-more {
  color: var(--ink-faint);
  font-size: 6px;
}

.mono-token--1,
.mono-player-token.mono-token--1 { background: #4d8a70; }
.mono-token--2,
.mono-player-token.mono-token--2 { background: #bd8f43; }
.mono-token--3,
.mono-player-token.mono-token--3 { background: #a95d43; }
.mono-token--4,
.mono-player-token.mono-token--4 { background: #775a73; }
.mono-token--5,
.mono-player-token.mono-token--5 { background: #477c8b; }
.mono-token--6,
.mono-player-token.mono-token--6 { background: #8a7748; }
.mono-token--7,
.mono-player-token.mono-token--7 { background: #6d8551; }
.mono-token--8,
.mono-player-token.mono-token--8 { background: #9a5d70; }

.mono-tile.is-owned {
  box-shadow: inset 0 0 0 1.5px rgba(195, 160, 92, 0.45);
}

.mono-tile.is-current-tile {
  box-shadow: inset 0 0 0 2px rgba(77, 138, 112, 0.55), 0 4px 12px rgba(40, 65, 54, 0.12);
}

.mono-center {
  position: relative;
  grid-column: 2 / 6;
  grid-row: 2 / 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 24%, rgba(231, 210, 163, 0.16), transparent 42%),
    linear-gradient(145deg, #1c5549, #113a32 72%);
  border-radius: 12px;
  text-align: center;
}

.mono-center-art {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.36;
  pointer-events: none;
}

.mono-art-sun { fill: rgba(231, 210, 163, 0.45); }
.mono-art-hill { fill: rgba(5, 34, 28, 0.45); }
.mono-art-town { fill: none; stroke: rgba(231, 210, 163, 0.45); stroke-width: 2; }
.mono-art-road { fill: none; stroke: rgba(231, 210, 163, 0.2); stroke-width: 1.4; }
.mono-art-window { fill: rgba(231, 210, 163, 0.55); }

.mono-center-kicker {
  position: relative;
  color: rgba(255, 250, 240, 0.45);
  font-size: 7px;
}

.mono-center h2 {
  position: relative;
  margin: 2px 0 9px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.mono-dice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mono-dice[data-dice-at] .mono-die {
  animation: monoDiceRoll 0.32s var(--ease) both;
}

@keyframes monoDiceRoll {
  from { opacity: 0.5; transform: translateY(-5px) rotate(-7deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.mono-dice-plus {
  color: rgba(255, 250, 240, 0.4);
  font-family: var(--serif);
  font-size: 13px;
}

.mono-dice-total {
  margin-left: 3px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.mono-die {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 32px;
  height: 32px;
  padding: 5px;
  background: #fbf5e8;
  border: 1px solid rgba(255, 250, 240, 0.6);
  border-radius: 7px;
  box-shadow: 0 4px 8px rgba(3, 20, 16, 0.24);
  gap: 2px;
}

.mono-die i {
  width: 5px;
  height: 5px;
  align-self: center;
  justify-self: center;
  background: rgba(28, 43, 39, 0.14);
  border-radius: 50%;
}

.mono-die i.is-on {
  background: #25362c;
}

.mono-die--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(28, 43, 39, 0.3);
  font-family: var(--serif);
  font-size: 16px;
}

.mono-die--empty i {
  width: auto;
  height: auto;
  background: transparent;
  font-style: normal;
}

.mono-center-turn {
  position: relative;
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.mono-center-clock {
  position: relative;
  margin-top: 4px;
  padding: 2px 8px;
  color: var(--gold-light);
  background: rgba(3, 25, 20, 0.24);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 10px;
}

.mono-center-clock [data-turn-clock].is-urgent {
  color: #ffad92;
}

.mono-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.mono-panel {
  padding: 10px 11px;
  background: rgba(255, 250, 240, 0.56);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.mono-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  padding: 0 2px;
  font-size: 8px;
}

.mono-panel-head b {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mono-player-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mono-player {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 8px;
}

.mono-player.is-current {
  background: rgba(231, 210, 163, 0.13);
  box-shadow: inset 0 0 0 1px rgba(195, 160, 92, 0.2);
}

.mono-player.is-self .mono-player-copy strong {
  color: var(--jade);
}

.mono-player.is-bankrupt {
  opacity: 0.48;
}

.mono-player-token {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.mono-player-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.mono-player-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-player-copy strong em {
  margin-left: 4px;
  padding: 1px 4px;
  color: var(--jade);
  background: rgba(77, 138, 112, 0.08);
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
}

.mono-player-copy span {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-player-money {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  white-space: nowrap;
}

.mono-player-money b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
}

.mono-player-money span {
  color: var(--ink-faint);
  font-size: 7px;
}

.mono-panel--log {
  min-height: 112px;
}

.mono-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 138px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mono-log::-webkit-scrollbar {
  display: none;
}

.mono-log-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 3px 4px;
  border-radius: 5px;
}

.mono-log-item i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-top: 4px;
  background: var(--ink-faint);
  border-radius: 50%;
}

.mono-log-item p {
  color: var(--ink-soft);
  font-size: 8.5px;
  line-height: 1.45;
}

.mono-log--roll i { background: #4d8a70; }
.mono-log--buy i { background: #c2964e; }
.mono-log--rent i { background: #b96a4d; }
.mono-log--upgrade i { background: #8a6482; }
.mono-log--bankrupt i { background: #b34c41; }
.mono-log--win i { background: var(--gold); }

.mono-panel--actions {
  color: var(--cream);
  background:
    radial-gradient(circle at 92% 0, rgba(195, 160, 92, 0.14), transparent 42%),
    linear-gradient(140deg, #1a5347, #123b33);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(17, 48, 41, 0.12);
}

.mono-action-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 9px;
}

.mono-action-kicker {
  color: rgba(255, 250, 240, 0.4);
  font-size: 7px;
}

.mono-action-head strong {
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
}

.mono-action-head span {
  color: rgba(255, 250, 240, 0.5);
  font-size: 8.5px;
  line-height: 1.5;
}

.mono-action-buttons {
  display: flex;
  gap: 7px;
}

.mono-action-buttons .btn {
  flex: 1;
  min-height: 37px;
  padding: 8px 10px;
  font-size: 11px;
}

.btn-mono-roll {
  width: 100%;
  min-height: 42px;
  font-size: 13px;
}

.mono-action-timer {
  display: block;
  margin-top: 7px;
  color: rgba(255, 250, 240, 0.42);
  font-family: var(--serif);
  font-size: 10px;
  text-align: right;
}

.mono-action-timer.is-urgent {
  color: #ffad92;
}

.mono-action-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: rgba(255, 250, 240, 0.6);
  font-size: 10px;
}

.mono-action-wait p {
  flex: 1;
  line-height: 1.5;
}

.mono-action-wait b {
  color: var(--gold-light);
  font-weight: 600;
}

.mono-action-clock {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 10px;
}

.mono-result-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 420px;
  margin: 12px 0 4px;
  overflow-y: auto;
}

.result-card--mono {
  width: min(620px, calc(100vw - 32px));
}

.mono-result-row {
  display: grid;
  grid-template-columns: 20px 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: rgba(255, 250, 240, 0.05);
  border-radius: 9px;
}

.mono-result-row.is-winner {
  background: rgba(231, 210, 163, 0.12);
  box-shadow: inset 0 0 0 1px rgba(231, 210, 163, 0.16);
}

.mono-result-row.is-self {
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.16);
}

.mono-result-rank {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
}

.mono-result-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mono-result-name strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-result-name strong em {
  margin-left: 4px;
  color: var(--gold-light);
  font-size: 8px;
  font-style: normal;
}

.mono-result-name small {
  color: rgba(255, 250, 240, 0.4);
  font-size: 8px;
}

.mono-result-worth {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mono-result-worth b {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}

.mono-result-worth small {
  color: rgba(255, 250, 240, 0.35);
  font-size: 7px;
}

/* ------------------------- 首页多游戏与大富翁小棋盘 ------------------------- */

.game-showcase--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-showcase--two .feature-game {
  min-height: 420px;
}

.game-showcase--two .feature-copy h3 {
  font-size: clamp(27px, 2.35vw, 36px);
  line-height: 1.25;
}

.game-showcase--two .feature-game:not(.feature-game--mono) .feature-copy h3 {
  white-space: nowrap;
}

.feature-game--mono .feature-copy h3 {
  font-size: clamp(24px, 2.05vw, 31px);
  white-space: nowrap;
}

.feature-game--mono {
  background:
    radial-gradient(circle at 82% 20%, rgba(195, 160, 92, 0.2), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(84, 130, 103, 0.32), transparent 50%),
    linear-gradient(135deg, #254c40, #17392f 60%, #112f28);
}

.feature-art--mono {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-town {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: min(230px, 72%);
  aspect-ratio: 1;
  gap: 5px;
  padding: 12px;
  background: rgba(4, 27, 21, 0.28);
  border: 1px solid rgba(231, 210, 163, 0.18);
  border-radius: 18px;
  transform: rotate(-4deg);
}

.town-cell {
  border-radius: 6px;
  opacity: 0.9;
}

.town-cell--jade { background: #4d8a70; }
.town-cell--amber { background: #c2964e; }
.town-cell--clay { background: #b96a4d; }
.town-cell--plum { background: #8a6482; }

.town-center {
  display: flex;
  grid-area: 2 / 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f4ead7;
  border: 1px solid rgba(255, 250, 240, 0.55);
  border-radius: 8px;
}

.town-center b {
  color: #254c40;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.town-center small {
  margin-top: 3px;
  color: rgba(37, 76, 64, 0.55);
  font-size: 6px;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
}

.town-die {
  position: absolute;
  right: 12%;
  bottom: 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 29px;
  height: 29px;
  padding: 5px;
  gap: 2px;
  background: #fbf5e8;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(1, 16, 12, 0.3);
  transform: rotate(8deg);
}

.town-die i {
  width: 4px;
  height: 4px;
  align-self: center;
  justify-self: center;
  background: #254c40;
  border-radius: 50%;
}

.town-die i:nth-child(1) { grid-area: 1 / 1; }
.town-die i:nth-child(2) { grid-area: 1 / 2; }
.town-die i:nth-child(3) { grid-area: 2 / 2; }
.town-die i:nth-child(4) { grid-area: 2 / 3; }
.town-die i:nth-child(5) { grid-area: 3 / 2; }
.town-die i:nth-child(6) { grid-area: 3 / 3; }

@media (max-width: 1280px) {
  .mono-layout {
    grid-template-columns: minmax(0, 1fr) 276px;
  }

  .mono-heading h1 {
    font-size: 21px;
  }
}

@media (max-width: 1100px) {
  .game-showcase--two {
    grid-template-columns: 1fr;
  }

  .game-showcase--two .feature-game {
    min-height: 380px;
  }

  .mono-layout {
    grid-template-columns: 1fr;
  }

  .mono-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .mono-panel--players {
    grid-row: span 2;
  }

  .mono-panel--actions {
    grid-column: 2;
  }

  .mono-panel--log {
    grid-column: 2;
    min-height: 90px;
  }

  .mono-log {
    max-height: 112px;
  }

  .mono-board-wrap {
    max-width: 720px;
    margin: 0 auto;
  }

  .seat-grid--many {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mono-view {
    padding: 9px 8px 12px;
  }

  .mono-top {
    align-items: center;
    padding: 0 0 8px;
  }

  .mono-heading h1 {
    font-size: 17px;
  }

  .mono-heading p {
    font-size: 8.5px;
  }

  .mono-round-note {
    display: none;
  }

  .mono-board-wrap {
    padding: 5px;
    border-radius: 14px;
  }

  .mono-board {
    gap: 3px;
    padding: 5px;
    border-radius: 10px;
  }

  .mono-tile {
    padding: 4px 3px 3px;
    border-radius: 5px;
  }

  .mono-tile-band {
    height: 4px;
  }

  .mono-tile-head {
    gap: 2px;
    margin-top: 1px;
  }

  .mono-tile-emblem {
    width: 14px;
    height: 14px;
    font-size: 7px;
  }

  .mono-tile-name {
    font-size: 7.5px;
  }

  .mono-tile-price {
    font-size: 6.5px;
  }

  .mono-tile-desc {
    display: none;
  }

  .mono-owner-badge {
    top: 6px;
    right: 3px;
    width: 11px;
    height: 11px;
    font-size: 5px;
  }

  .mono-level {
    right: 3px;
    bottom: 3px;
    font-size: 5px;
  }

  .mono-token {
    width: 9px;
    height: 9px;
    font-size: 4.5px;
  }

  .mono-tokens {
    bottom: 3px;
    left: 3px;
  }

  .mono-center {
    padding: 8px;
    border-radius: 7px;
  }

  .mono-center-kicker {
    font-size: 5.5px;
  }

  .mono-center h2 {
    margin: 1px 0 5px;
    font-size: 23px;
  }

  .mono-die {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 5px;
  }

  .mono-die i {
    width: 3px;
    height: 3px;
  }

  .mono-dice-total {
    font-size: 16px;
  }

  .mono-center-turn {
    margin-top: 4px;
    font-size: 9px;
  }

  .mono-center-clock {
    margin-top: 2px;
    font-size: 8px;
  }

  .mono-side {
    display: flex;
    flex-direction: column;
  }

  .mono-panel--actions {
    order: -1;
  }

  .mono-panel {
    padding: 9px 10px;
  }

  .mono-player-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
  }

  .mono-player {
    grid-template-columns: 19px minmax(0, 1fr) auto;
    gap: 5px;
  }

  .mono-player-token {
    width: 19px;
    height: 19px;
    font-size: 7px;
  }

  .mono-player-copy strong {
    font-size: 9px;
  }

  .mono-player-copy span {
    font-size: 7px;
  }

  .mono-player-money b {
    font-size: 9px;
  }

  .mono-player-money span {
    font-size: 6.5px;
  }

  .mono-log {
    max-height: 96px;
  }

  .mono-result-row {
    grid-template-columns: 16px 22px minmax(0, 1fr) auto auto;
    gap: 5px;
    padding: 6px;
  }
}

@media (max-width: 560px) {
  .seat-grid--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .seat-grid--many .seat-card {
    min-height: 175px;
  }

  .feature-town {
    width: 58%;
  }

  .town-die {
    width: 24px;
    height: 24px;
  }

  .mono-player-list {
    grid-template-columns: 1fr;
  }

  .mono-log-item p {
    font-size: 8px;
  }

  .mono-result-name small {
    font-size: 7px;
  }

  .game-pick-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------- 大富翁：归属、等级、棋子高对比增强 ------------------- */

.mono-board {
  background:
    radial-gradient(circle at 50% 50%, rgba(231, 210, 163, 0.13), transparent 56%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 8px),
    #4a3827;
  box-shadow: inset 0 0 0 2px rgba(231, 210, 163, 0.12);
}

.mono-tile {
  color: #25332b;
  background: #fffaf0;
  border: 1px solid rgba(85, 66, 40, 0.38);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 7px rgba(28, 24, 16, 0.22);
}

.mono-tile--corner {
  background: #f5e8d3;
  border-color: rgba(133, 95, 48, 0.52);
}

.mono-tile--start {
  background: linear-gradient(150deg, #fff8e4, #ecd9b9);
}

.mono-tile--tax {
  background: #f7e3d4;
}

.mono-tile--chance {
  background: #eef0dc;
}

.mono-tile--rest {
  background: #eaf2df;
}

.mono-tile.is-owned {
  border: 2px solid var(--token-color, var(--gold));
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--token-color, #c2964e) 15%, #fffaf0), #fffaf0 62%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 3px 8px rgba(28, 24, 16, 0.27);
}

.mono-tile.is-current-tile {
  border-color: #ffe0a1;
  box-shadow:
    inset 0 0 0 2px #ffe0a1,
    0 0 0 3px rgba(231, 210, 163, 0.55),
    0 5px 14px rgba(3, 20, 16, 0.28);
}

.mono-tile.is-owned.is-current-tile {
  border-color: var(--token-color, #ffe0a1);
  box-shadow:
    inset 0 0 0 2px #ffe0a1,
    0 0 0 3px color-mix(in srgb, var(--token-color, #c2964e) 65%, #ffe0a1),
    0 5px 14px rgba(3, 20, 16, 0.28);
}

.mono-token--1 { --token-color: #4d8a70; background: #4d8a70; }
.mono-token--2 { --token-color: #bd8f43; background: #bd8f43; }
.mono-token--3 { --token-color: #a95d43; background: #a95d43; }
.mono-token--4 { --token-color: #775a73; background: #775a73; }
.mono-token--5 { --token-color: #477c8b; background: #477c8b; }
.mono-token--6 { --token-color: #8a7748; background: #8a7748; }
.mono-token--7 { --token-color: #6d8551; background: #6d8551; }
.mono-token--8 { --token-color: #9a5d70; background: #9a5d70; }

.mono-player-token.mono-token--1 { background: #4d8a70; }
.mono-player-token.mono-token--2 { background: #bd8f43; }
.mono-player-token.mono-token--3 { background: #a95d43; }
.mono-player-token.mono-token--4 { background: #775a73; }
.mono-player-token.mono-token--5 { background: #477c8b; }
.mono-player-token.mono-token--6 { background: #8a7748; }
.mono-player-token.mono-token--7 { background: #6d8551; }
.mono-player-token.mono-token--8 { background: #9a5d70; }

.mono-owner-tag {
  position: absolute;
  top: 8px;
  right: 3px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100% - 8px);
  padding: 2px 3px 2px 2px;
  color: #fffdf4;
  background: var(--token-color, #8a7748);
  border: 1px solid rgba(255, 253, 244, 0.72);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(22, 20, 14, 0.28);
  line-height: 1;
  white-space: nowrap;
}

.mono-owner-tag b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: var(--token-color, #8a7748);
  background: #fffdf4;
  border-radius: 50%;
  font-size: 6px;
  font-weight: 700;
}

.mono-owner-tag em {
  color: #fffdf4;
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mono-house-row {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 5;
  display: inline-flex;
  gap: 1px;
  padding: 2px 3px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(103, 79, 44, 0.24);
  border-radius: 4px;
}

.mono-house-row i {
  width: 4px;
  height: 5px;
  background: rgba(99, 82, 55, 0.18);
  border-radius: 1px;
}

.mono-house-row i.is-on {
  background: var(--token-color, #c2964e);
}

.mono-tokens {
  right: 3px;
  bottom: 3px;
  left: 3px;
  z-index: 4;
  justify-content: flex-start;
  max-width: none;
  max-height: calc(100% - 24px);
  overflow: visible;
  gap: 1px;
}

.mono-token {
  width: 18px;
  height: 18px;
  border: 2px solid #fffdf4;
  box-shadow: 0 2px 4px rgba(15, 20, 16, 0.3);
  font-size: 8px;
}

.mono-token.is-current {
  width: 21px;
  height: 21px;
  border-color: #fff1c9;
  box-shadow:
    0 0 0 2px #ffe0a1,
    0 0 10px rgba(255, 224, 161, 0.9),
    0 2px 4px rgba(15, 20, 16, 0.35);
  animation: monoTokenPulse 1.4s ease-in-out infinite;
  z-index: 3;
}

.mono-token.is-self {
  border-color: #ffe0a1;
}

.mono-token-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  height: 12px;
  color: var(--ink);
  background: #fffaf0;
  border-radius: 999px;
}

@keyframes monoTokenPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.mono-center-board {
  position: relative;
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.52);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mono-board-scroll {
  min-width: 0;
}

.mono-board-scroll-hint {
  display: none;
}

.mono-board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
  padding: 0 3px;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.5;
}

.mono-board-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mono-board-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.mono-legend-owner {
  width: 10px;
  height: 10px;
  background: #4d8a70;
  border: 2px solid #fffaf0;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #4d8a70;
}

.mono-legend-token {
  width: 10px;
  height: 10px;
  background: #ffe0a1;
  border: 2px solid #4d8a70;
  border-radius: 50%;
}

.mono-legend-house {
  width: 12px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #c2964e 0 2px, transparent 2px 4px);
}

.mono-board-label {
  color: var(--jade);
  font-size: 10px;
  font-weight: 600;
}

/* 32 格：9×9 外圈，更紧凑但保留归属和棋子的高对比 */
.mono-board--32 {
  gap: 3px;
  padding: 6px;
}

.mono-board--32 .mono-tile {
  padding: 4px 3px 3px;
  border-radius: 5px;
}

.mono-board--32 .mono-tile-band {
  height: 4px;
}

.mono-board--32 .mono-tile-head {
  gap: 2px;
  margin-top: 1px;
}

.mono-board--32 .mono-tile-emblem {
  width: 15px;
  height: 15px;
  font-size: 7px;
}

.mono-board--32 .mono-tile-name {
  font-size: 8px;
}

.mono-board--32 .mono-tile-price {
  margin-top: 1px;
  font-size: 7px;
}

.mono-board--32 .mono-tile-desc {
  font-size: 6px;
}

.mono-board--32 .mono-owner-tag {
  top: 6px;
  right: 2px;
  padding: 1px 2px;
  border-radius: 4px;
}

.mono-board--32 .mono-owner-tag b {
  width: 9px;
  height: 9px;
  font-size: 5px;
}

.mono-board--32 .mono-owner-tag em {
  font-size: 5px;
}

.mono-board--32 .mono-house-row {
  right: 3px;
  bottom: 3px;
  padding: 1px 2px;
}

.mono-board--32 .mono-house-row i {
  width: 3px;
  height: 4px;
}

.mono-board--32 .mono-token {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
  font-size: 5px;
}

.mono-board--32 .mono-token.is-current {
  width: 15px;
  height: 15px;
}

.mono-board--32 .mono-tokens {
  right: 2px;
  bottom: 2px;
  left: 2px;
}

.mono-board--32 .mono-center h2 {
  font-size: clamp(22px, 2.8vw, 42px);
}

.mono-board--32 .mono-center-board {
  font-size: 9px;
}

@media (max-width: 820px) {
  .mono-owner-tag {
    top: 5px;
    right: 2px;
    padding: 1px 2px;
  }

  .mono-owner-tag b {
    width: 9px;
    height: 9px;
    font-size: 5px;
  }

  .mono-owner-tag em {
    font-size: 5px;
  }

  .mono-house-row {
    right: 2px;
    bottom: 2px;
    padding: 1px 2px;
  }

  .mono-house-row i {
    width: 3px;
    height: 4px;
  }

  .mono-token {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
    font-size: 5px;
  }

  .mono-token.is-current {
    width: 15px;
    height: 15px;
  }

  .mono-tokens {
    right: 2px;
    bottom: 2px;
    left: 2px;
  }

  .mono-board-legend {
    font-size: 7px;
    gap: 4px 9px;
  }

  .mono-board--32 .mono-tile-name {
    font-size: 6.5px;
  }

  .mono-board--32 .mono-tile-price {
    display: none;
  }

  .mono-board--32 .mono-tile-emblem {
    width: 12px;
    height: 12px;
    font-size: 6px;
  }

  .mono-board--32 .mono-owner-tag {
    max-width: calc(100% - 4px);
  }

  .mono-board--32 .mono-token {
    width: 9px;
    height: 9px;
    border-width: 1px;
    font-size: 4px;
  }

  .mono-board--32 .mono-token.is-current {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 560px) {
  .mono-view[data-board-size="32"] .mono-board-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .mono-view[data-board-size="32"] .mono-board--32 {
    min-width: 560px;
  }

  .mono-view[data-board-size="32"] .mono-board-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 1px 6px;
    padding: 4px 6px;
    color: #6b5a43;
    background: rgba(231, 210, 163, 0.18);
    border: 1px dashed rgba(126, 98, 60, 0.32);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
  }


  .mono-board--32 {
    gap: 2px;
    padding: 4px;
  }

  .mono-board--32 .mono-tile {
    padding: 3px 2px 2px;
    border-radius: 3px;
  }

  .mono-board--32 .mono-tile-head {
    gap: 1px;
  }

  .mono-board--32 .mono-tile-name {
    font-size: 5.5px;
  }

  .mono-board--32 .mono-owner-tag em {
    display: none;
  }

  .mono-board--32 .mono-owner-tag {
    padding: 1px;
    border-radius: 3px;
  }

  .mono-board--32 .mono-house-row {
    display: none;
  }

  .mono-board--32 .mono-token {
    width: 8px;
    height: 8px;
    font-size: 3.5px;
  }

  .mono-board--32 .mono-token.is-current {
    width: 10px;
    height: 10px;
  }

  .mono-board-legend {
    display: none;
  }
}

/* 归属信息不再绝对定位，避免遮挡地块名称；棋子与等级各占一条清晰区域。 */
.mono-tile {
  padding-bottom: 22px;
}

.mono-owned-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  margin-top: 3px;
  z-index: 5;
}

.mono-owner-tag {
  position: static;
  top: auto;
  right: auto;
  max-width: calc(100% - 16px);
  padding: 2px 4px 2px 2px;
}

.mono-house-row {
  position: static;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  padding: 2px 3px;
}

.mono-board--32 .mono-owned-row {
  gap: 2px;
  margin-top: 2px;
}

.mono-board--32 .mono-owner-tag {
  padding: 1px 2px 1px 1px;
}

.mono-board--32 .mono-house-row {
  padding: 1px 2px;
}

.mono-board--32 .mono-token {
  width: 14px;
  height: 14px;
  font-size: 6px;
}

.mono-board--32 .mono-token.is-current {
  width: 17px;
  height: 17px;
}

.mono-tile.is-owned .mono-tile-name {
  color: #17251e;
}

@media (max-width: 820px) {
  .mono-tile {
    padding-bottom: 17px;
  }

  .mono-owned-row {
    margin-top: 2px;
    gap: 2px;
  }
}

@media (max-width: 560px) {
  .mono-board--32 .mono-owner-tag em {
    display: inline;
    font-size: 4.5px;
  }

  .mono-board--32 .mono-house-row {
    display: none;
  }

  .mono-board--32 .mono-tile {
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
