/* 所有按钮：点按不要出现系统蓝色选区/高亮方块（触摸端尤其明显） */
button,
.btn,
.icon-btn,
.pill,
.quick-chip,
.voice-hold,
.add-seat-btn,
.k-choice {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
button:focus,
.btn:focus,
.icon-btn:focus,
.pill:focus {
  outline: none;
}
button:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid rgba(226, 202, 148, .55);
  outline-offset: 2px;
}
/* =========================================================
   鎵撳ぇ鐚?路 瑙嗚绯荤粺
   娣辩豢姣℃ / 绫崇焊 / 閹忛噾 / 鏈辩爞
   ========================================================= */
:root {
  --felt-0: #061b10;
  --felt-1: #0a2f1d;
  --felt-2: #10482b;
  --felt-3: #155c36;
  --cream: #f5eedf;
  --cream-2: #e9dfc9;
  --paper: #fbf7ee;
  --ink: #242116;
  --ink-soft: #5f5a49;
  --gold: #c8a45c;
  --gold-2: #e6ca8c;
  --gold-deep: #8f6828;
  --red: #a72d28;
  --red-2: #d24a3e;
  --green-ok: #2c8054;
  --muted: #93ac9d;
  --line: rgba(232, 218, 186, .18);
  --line-dark: rgba(62, 48, 22, .16);
  --shadow: 0 22px 60px rgba(0, 0, 0, .38);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --card-w: clamp(94px, 10.4vw, 150px);
  --card-h: calc(var(--card-w) * 1.44);
  --hand-step: clamp(34px, 5.9vw, 84px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--felt-0);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--gold-2); }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--gold); color: #1d1a10; }

.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }
.red { color: var(--red-2); }
.hidden { display: none !important; }

/* ---------- 鎸夐挳涓庤〃鍗?---------- */
.btn {
  --btn-bg: rgba(255, 255, 255, .07);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(230, 202, 140, .55); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.btn-gold {
  --btn-bg: linear-gradient(135deg, #e7cb8d, #c49a4b);
  border-color: #efdba9;
  color: #292314;
  box-shadow: 0 8px 24px rgba(201, 165, 92, .24);
}
.btn-gold:hover:not(:disabled) { background: linear-gradient(135deg, #f3dda8, #d0a557); }
.btn-red {
  --btn-bg: linear-gradient(135deg, #c3493f, #94241f);
  border-color: #dc7568;
  color: #fff7ee;
  box-shadow: 0 8px 24px rgba(167, 45, 40, .3);
}
.btn-ghost { --btn-bg: transparent; }
.btn-paper { --btn-bg: #fbf7ee; color: var(--ink); border-color: #d8c9a9; }
.btn-large { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.btn-small { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); transform: rotate(4deg); }
/* 瀹炴椂璇煶寮€楹︽椂楂樹寒锛堢传锛?*/
.icon-btn.mic.on {
  border-color: rgba(214, 196, 255, .9);
  background: linear-gradient(135deg, #8f6fe0, #5a3fb0);
  color: #f6f1ff;
  box-shadow: 0 0 14px rgba(150, 110, 240, .5);
}
/* 澶村儚瑙掍笂鐨勩€岄害銆嶏細琛ㄧず杩欎釜浜烘寮€鐫€瀹炴椂璇煶 */
.voice-on-mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 6;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(214, 196, 255, .9);
  background: linear-gradient(135deg, #8f6fe0, #5a3fb0);
  color: #f6f1ff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(150, 110, 240, .6);
  pointer-events: none;
}
.text-btn {
  padding: 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-btn:hover { color: var(--gold-2); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field-label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(232, 218, 186, .28);
  border-radius: 10px;
  background: rgba(5, 22, 13, .55);
  color: var(--cream);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder { color: rgba(245, 238, 223, .36); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 92, .14); }
.input-code {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.input-code.invite-glow {
  border-color: rgba(226, 202, 148, .65);
  box-shadow: 0 0 0 4px rgba(200, 164, 92, .12);
  animation: invite-pulse 2.2s ease-in-out 2;
}
@keyframes invite-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200, 164, 92, .1); }
  50% { box-shadow: 0 0 0 9px rgba(200, 164, 92, .02); }
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 20, 12, .4);
}
.segmented button {
  min-width: 48px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.segmented button[aria-pressed="true"], .segmented button.active {
  background: var(--gold);
  color: #251f12;
  font-weight: 700;
}

/* ---------- 棣栭〉 ---------- */
.home {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(39, 123, 76, .5), transparent 62%),
    radial-gradient(900px 700px at 8% 92%, rgba(14, 74, 44, .55), transparent 60%),
    linear-gradient(145deg, #061c11 0%, #0a2f1d 48%, #05180e 100%);
}
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(47deg, transparent 0 27px, rgba(255, 255, 255, .014) 27px 28px),
    radial-gradient(ellipse at center, transparent 44%, rgba(0, 0, 0, .35) 100%);
}
.home::after {
  content: "鐚?;
  position: absolute;
  right: -3vw;
  bottom: -16vh;
  font-family: var(--serif);
  font-size: min(56vw, 660px);
  line-height: 1;
  color: rgba(226, 197, 132, .028);
  pointer-events: none;
  user-select: none;
}
.home-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
}
.home-music-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(226, 202, 148, .3);
  border-radius: 999px;
  background: rgba(4, 24, 14, .52);
  color: #ead9b7;
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.home-music-btn:hover {
  border-color: rgba(226, 202, 148, .7);
  background: rgba(200, 164, 92, .14);
  color: #fff0cd;
}
.home-music-btn .music-icon {
  color: var(--gold-2);
  font-size: 15px;
  line-height: 1;
}
.home-music-btn.playing {
  border-color: rgba(226, 202, 148, .48);
  box-shadow: 0 0 14px rgba(224, 187, 114, .1);
}
.lobby-music-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lobby-music-btn .music-icon {
  color: var(--gold-2);
  font-size: 13px;
  line-height: 1;
}
@media (max-width: 640px) {
  .home-music-btn { padding: 7px 11px; font-size: 11px; gap: 6px; }
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--red);
  color: #f9e9cb;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 240, 210, .25), 0 7px 20px rgba(0, 0, 0, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--serif); font-size: 23px; letter-spacing: .12em; }
.brand-text small { margin-top: 5px; color: var(--gold); font-size: 9px; letter-spacing: .34em; }
.home-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* 钉在首页最底部（fixed 相对可视区，不受上方内容/容器高度影响） */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  pointer-events: none;
  color: rgba(245, 238, 223, .62);
  font-size: 16px;
  letter-spacing: .14em;
}
.home-credit img { pointer-events: auto; }
.home-credit-dot { color: var(--gold); opacity: .7; }

/* 触摸版在电脑上窗口较矮时，再压缩一点首页，确保底部署名完整露出 */
@media (max-height: 860px) {
  .home-nav { height: 56px; }
  .home-main { padding: 2px 0 8px; }
  .home-title { margin: 8px 0 4px; font-size: clamp(48px, 7.2vw, 96px); }
  .home-entry { margin-top: 10px; padding: 16px; }
  .home-credit { bottom: 6px; }
}
.home-main {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  gap: 0;
  align-items: center;
  min-height: calc(100dvh - 172px);
  padding: 6px 0 10px;
}
.hero-copy { max-width: 640px; width: 100%; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.home-title {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: clamp(64px, 8.6vw, 118px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: .055em;
  color: #f7f0df;
  text-shadow: 0 16px 50px rgba(0, 0, 0, .34);
  white-space: nowrap;
}
.home-title span { color: var(--gold-2); }
.home-title .dot { color: var(--red-2); }
.home-tagline {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .14em;
  color: #eadbbd;
}
.home-desc {
  max-width: 540px;
  color: #b8cabf;
  font-size: 15px;
  line-height: 1.9;
}
.home-desc b { color: #f0dfbc; font-weight: 600; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.feature-chip {
  padding: 6px 12px;
  border: 1px solid rgba(232, 218, 186, .2);
  border-radius: 999px;
  color: #c7d4cb;
  font-size: 12px;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .025);
}
.feature-chip b { color: var(--gold-2); }
.home-entry {
  width: 100%;
  max-width: 520px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgba(232, 218, 186, .2);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(14, 58, 35, .82), rgba(4, 24, 14, .72));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
  backdrop-filter: blur(8px);
}
.entry-name-row { display: flex; gap: 12px; align-items: flex-end; }
.entry-name-row .field { flex: 1; }
.quick-row { display: flex; gap: 8px; align-items: center; }
.entry-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.home-entry .segmented { margin-top: 6px; }
.entry-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 14px;
  color: rgba(245, 238, 223, .42);
  font-size: 11px;
  letter-spacing: .2em;
}
.entry-divider::before, .entry-divider::after { content: ""; height: 1px; flex: 1; background: rgba(232, 218, 186, .14); }
.entry-join { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.entry-help { margin-top: 12px; color: rgba(245, 238, 223, .4); font-size: 11px; line-height: 1.6; }
.rejoin-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(230, 198, 129, .5);
  border-radius: 12px;
  background: rgba(200, 164, 92, .1);
}
.rejoin-copy { display: flex; align-items: center; gap: 8px; }
.rejoin-label { color: #d3bf94; font-size: 12px; letter-spacing: .1em; }
.rejoin-copy b { color: #ffe3a8; font-family: var(--serif); font-size: 18px; letter-spacing: .18em; }
.rejoin-banner .btn { width: 100%; }
/* 「不回了」：透明底 + 一圈细边框，不要下划线 */
.rejoin-forget {
  align-self: center;
  margin-top: 2px;
  padding: 8px 24px;
  border: 1px solid rgba(230, 198, 129, .5);
  border-radius: 999px;
  background: transparent;
  color: #e3ece0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
}
.rejoin-forget:active { color: #ffffff; border-color: rgba(230, 198, 129, .8); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-orbit {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(226, 202, 148, .26);
  background:
    radial-gradient(circle at 50% 46%, rgba(31, 100, 62, .8), rgba(8, 43, 26, .92) 58%, rgba(4, 24, 14, .96) 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .4), 0 30px 80px rgba(0, 0, 0, .38);
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit::before { inset: 9%; border: 1px dashed rgba(226, 202, 148, .2); }
.hero-orbit::after {
  inset: 22%;
  border: 1px solid rgba(226, 202, 148, .13);
  box-shadow: 0 0 50px rgba(200, 164, 92, .06);
}
.orbit-core {
  position: absolute;
  inset: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(226, 202, 148, .22);
  background: radial-gradient(circle, rgba(20, 76, 46, .92), rgba(6, 31, 19, .86));
  text-align: center;
}
.orbit-core b { font-family: var(--serif); font-size: 38px; color: var(--gold-2); letter-spacing: .12em; }
.orbit-core small { margin-top: 5px; color: #9fb8a6; font-size: 10px; letter-spacing: .22em; }
.ghost-seat {
  position: absolute;
  width: 78px;
  padding: 8px 5px;
  text-align: center;
  border-radius: 12px;
  background: rgba(5, 27, 16, .72);
  border: 1px solid rgba(232, 218, 186, .15);
  color: #c8d6cc;
  font-size: 11px;
}
.ghost-seat .glyph {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2e6a49, #153d29);
  border: 1px solid rgba(232, 218, 186, .24);
  font-family: var(--serif);
  font-size: 16px;
  color: #eadbbd;
}
.ghost-seat.cat .glyph { background: linear-gradient(145deg, #b48b46, #6f4e1c); color: #241b0a; }
.ghost-seat.partner .glyph { box-shadow: 0 0 0 2px rgba(210, 74, 62, .55); }
.gs-1 { left: 50%; top: 2%; transform: translateX(-50%); }
.gs-2 { right: 1%; top: 34%; }
.gs-3 { right: 15%; bottom: 7%; }
.gs-4 { left: 15%; bottom: 7%; }
.gs-5 { left: 1%; top: 34%; }
.hero-fan {
  position: absolute;
  left: 50%;
  bottom: 19%;
  display: flex;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .35));
}
.hero-fan .display-card {
  width: 63px;
  height: 90px;
  margin-left: -20px;
  transform-origin: 50% 120%;
}
.hero-fan .display-card:first-child { margin-left: 0; transform: rotate(-17deg); }
.hero-fan .display-card:nth-child(2) { transform: rotate(-8deg) translateY(-4px); }
.hero-fan .display-card:nth-child(3) { transform: rotate(0deg) translateY(-9px); }
.hero-fan .display-card:nth-child(4) { transform: rotate(8deg) translateY(-4px); }
.hero-fan .display-card:nth-child(5) { transform: rotate(17deg); }

/* ---------- 灞曠ず鐢ㄦ墤鍏?---------- */
.display-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  width: 64px;
  height: 92px;
  border-radius: 7px;
  background: linear-gradient(150deg, #fffdf8, #eee5d1);
  border: 1px solid #c9bda4;
  color: #1e211c;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .24);
}
.display-card.red { color: var(--red); }
.display-card .dc-rank { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1; }
.display-card .dc-suit { font-size: 18px; line-height: 1; }
.display-card .dc-big { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 25px; opacity: .14; }
.display-card.joker { background: linear-gradient(150deg, #fffdf8, #efe2c7); border-color: #c89c4b; }
.display-card.joker .dc-rank { writing-mode: vertical-rl; font-size: 15px; letter-spacing: .1em; color: var(--gold-deep); }

/* ---------- 椤舵爮 ---------- */
.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(232, 218, 186, .12);
  background: rgba(5, 25, 15, .72);
  backdrop-filter: blur(12px);
}
.topbar .brand { flex-shrink: 0; }
.topbar .brand-seal { width: 32px; height: 32px; font-size: 19px; border-radius: 6px; }
.topbar .brand-text b { font-size: 18px; }
.topbar .brand-text small { font-size: 7px; margin-top: 3px; }
.topbar-center { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.game-screen .topbar {
  position: fixed;
  left: auto;
  right: 10px;
  bottom: 10px;
  top: auto;
  /* 楂樹簬鑱婂ぉ鎶藉眽(90)锛屾娊灞夋墦寮€鏃跺彸涓嬭銆岄煶/璇?鑱?绂汇€嶄粛鍙偣鍑伙紝
     鍐嶇偣鍚屼竴涓寜閽嵆鍙叧闂紝涓嶄細鍥犱负琚娊灞夌洊浣忚€岀偣涓嶅埌銆?*/
  z-index: 95;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.game-screen .topbar > *:not(.topbar-right) { display: none !important; }
.game-screen .topbar .topbar-right { display: flex; gap: 6px; padding: 0; }
.game-screen .called-k-strip {
  position: fixed;
  top: 8px;
  right: 10px;
  left: auto;
  width: auto;
  max-width: 62vw;
  z-index: 95;
}
.called-k-strip {
  position: relative;
  z-index: 18;
  flex-shrink: 0;
  min-height: 0;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 18px rgba(0, 0, 0, .5);
  color: #e8d8b6;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.called-k-strip-cat {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #f1d695;
  background: linear-gradient(145deg, #e0bb72, #7b521a);
  color: #241b0b;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(224, 187, 114, .3);
}
.called-k-strip-title { color: #e1c585; font-size: 14px; }
.called-k-strip-name { color: #ffe7b0; font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.called-k-strip-label { color: #a9946b; font-size: 13px; }
.called-k-strip-card {
  width: 36px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8a45c;
  border-radius: 3px;
  background: linear-gradient(155deg, #fffdf8, #eee1c5);
  color: #232018;
  line-height: 1;
  transform: rotate(3deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}
.called-k-strip-card b { font-family: var(--serif); font-size: 21px; }
.called-k-strip-card span { font-size: 14px; margin-top: 1px; }
.called-k-strip-card.red { border-color: #c77b70; color: var(--red); }
.called-k-strip-suit { color: #f0d89f; font-weight: 600; font-size: 17px; }
.called-k-strip-divider { width: 1px; height: 24px; margin: 0 4px; background: rgba(226, 202, 148, .24); }
.oldk-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(123, 201, 189, .35);
  border-radius: 999px;
  background: rgba(39, 111, 101, .2);
  color: #bce8df;
  font-size: 14px;
}
.oldk-strip-badge {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #a5ddd3;
  background: #276f65;
  color: #effffb;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}
.oldk-strip.unknown {
  border-color: rgba(226, 202, 148, .16);
  background: rgba(8, 28, 19, .32);
  color: #8fa499;
  font-size: 13px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(232, 218, 186, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #c8d5cc;
  font-size: 12px;
  white-space: nowrap;
}
.pill b { color: var(--gold-2); font-weight: 700; }
.pill.room-code { font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: var(--gold-2); }
.pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54c98a;
  box-shadow: 0 0 0 4px rgba(84, 201, 138, .13);
}
.pill.live.offline::before { background: #d66a55; box-shadow: 0 0 0 4px rgba(214, 106, 85, .13); }
.pill.auto { color: #e4b98a; }

/* ---------- 澶у巺 ---------- */
.lobby-screen {
  min-height: 100dvh;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(31, 108, 65, .48), transparent 68%),
    linear-gradient(155deg, #071f13, #0b3522 55%, #061b10);
}
.lobby-shell { max-width: 1120px; margin: 0 auto; padding: 28px 22px 46px; }
.lobby-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
}
.lobby-kicker { color: var(--gold); font-size: 11px; letter-spacing: .3em; }
.lobby-title { margin-top: 8px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--cream); letter-spacing: .06em; }
.lobby-sub { margin-top: 6px; color: #9fb5a6; font-size: 13px; }
.room-ticket {
  min-width: 230px;
  padding: 14px 18px;
  border: 1px solid rgba(226, 202, 148, .3);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(201, 165, 92, .12), rgba(0, 0, 0, .15));
  text-align: center;
}
.room-ticket small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .25em; }
.room-ticket strong { display: block; margin: 4px 0 8px; font-family: var(--serif); font-size: 34px; letter-spacing: .28em; color: var(--gold-2); }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.panel {
  border: 1px solid rgba(232, 218, 186, .16);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(15, 58, 36, .72), rgba(4, 24, 14, .62));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
}
.lobby-table-panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.panel-note { color: var(--muted); font-size: 12px; }
.seats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.lobby-seat {
  position: relative;
  min-height: 166px;
  padding: 16px 9px 12px;
  border: 1px solid rgba(232, 218, 186, .15);
  border-radius: 12px;
  background: rgba(4, 25, 14, .38);
  text-align: center;
  transition: border-color .18s ease, background .18s ease;
}
.lobby-seat.filled { background: linear-gradient(165deg, rgba(25, 78, 49, .56), rgba(5, 28, 17, .44)); }
.lobby-seat.you { border-color: rgba(226, 202, 148, .5); box-shadow: inset 0 0 0 1px rgba(226, 202, 148, .16); }
.lobby-seat.empty { border-style: dashed; }
.lobby-seat .mini-avatar {
  position: relative;
  /* 楹﹀厠椋庤鏍囪闇插湪鍦嗗ご鍍忓闈紝鐓х墖鏈韩鏈?border-radius锛屼笉鐢ㄨ鍒?*/
  overflow: visible;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(232, 218, 186, .3);
  background: linear-gradient(145deg, #2e714f, #143a26);
  color: #f1e2c4;
  font-family: var(--serif);
  font-size: 23px;
}
.lobby-seat.bot .mini-avatar { background: linear-gradient(145deg, #6d5a39, #362b1b); }
.lobby-seat.empty .mini-avatar { border-style: dashed; color: rgba(232, 218, 186, .32); background: transparent; font-size: 30px; }
.lobby-seat .seat-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.lobby-seat .seat-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.lobby-seat .seat-badge-line { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.lobby-seat .remove-bot {
  margin-top: 9px;
  padding: 2px 6px;
  border: 0;
  background: none;
  color: #c88c76;
  font-size: 10px;
  cursor: pointer;
}
/* 房主踢人：座位右上角的小红标，比“移除机器人”显眼 */
.lobby-seat .kick-player {
  position: absolute;
  top: 5px;
  right: 5px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(210, 74, 62, .55);
  border-radius: 999px;
  background: rgba(167, 45, 40, .3);
  color: #f6b3a7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  z-index: 2;
}
.lobby-seat .add-seat-btn {
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--gold-2);
  font-size: 11px;
  cursor: pointer;
}
.lobby-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 218, 186, .12);
  flex-wrap: wrap;
}
.lobby-actions .hint-line { color: var(--muted); font-size: 12px; }
.lobby-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 18px; }
.side-card h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 9px; color: #eadbbd; }
.side-card p { color: #9fb5a6; font-size: 12px; line-height: 1.8; }
.side-card .kv { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(232, 218, 186, .1); font-size: 12px; color: #a9bcb0; }
.side-card .kv:last-child { border-bottom: 0; }
.side-card .kv b { color: var(--cream); font-weight: 600; }
.share-box { display: grid; gap: 8px; margin-top: 10px; }
.share-row { display: flex; gap: 7px; }
.share-row .input { min-height: 38px; padding: 8px 11px; font-size: 11px; }
.share-tip { color: #d9b978; font-size: 10px; line-height: 1.6; }
.rule-mini { display: grid; gap: 9px; margin-top: 10px; }
.rule-mini span { font-size: 11px; color: #a9bcb0; line-height: 1.65; }
.rule-mini b { color: var(--gold-2); }
.lobby-flow { margin-top: 18px; padding: 18px 22px 20px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 3px; }
.flow-step {
  position: relative;
  padding: 12px 12px 12px 42px;
  border: 1px solid rgba(232, 218, 186, .11);
  border-radius: 9px;
  background: rgba(4, 25, 14, .25);
}
.flow-no {
  position: absolute;
  left: 11px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 92, .45);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 9px;
}
.flow-step b { display: block; color: #e8d9ba; font-family: var(--serif); font-size: 14px; font-weight: 600; }
.flow-step p { margin-top: 3px; color: #91a799; font-size: 10px; line-height: 1.6; }

/* ---------- 鐗屾 ---------- */
.game-screen {
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #051a0f;
}
.game-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.felt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 66% at 50% 46%, #17613b 0%, #0f4b2d 38%, #0a321f 68%, #061e12 100%);
}
.felt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 193, 140, .11), transparent 38%),
    repeating-linear-gradient(38deg, transparent 0 36px, rgba(255, 255, 255, .012) 36px 37px);
  pointer-events: none;
}
.felt::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 130px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.table-ring {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(82vw, 980px);
  height: min(65vh, 620px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(226, 202, 148, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(226, 202, 148, .025), inset 0 0 60px rgba(0, 0, 0, .12);
  pointer-events: none;
}
.table-ring::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(226, 202, 148, .11);
}
.table-mark {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  color: rgba(226, 202, 148, .055);
  font-family: var(--serif);
  font-size: clamp(100px, 17vw, 220px);
  letter-spacing: .12em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 搴т綅 */
.seat {
  position: absolute;
  z-index: 6;
  width: 148px;
  transform: translate(-50%, -50%);
  text-align: center;
  transition: opacity .2s ease, filter .2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.seat.pos-1 { left: 8%; top: 47%; }
.seat.pos-2 { left: 25%; top: 16%; }
.seat.pos-3 { left: 75%; top: 16%; }
.seat.pos-4 { left: 92%; top: 47%; }
.seat.is-offline { opacity: .58; filter: saturate(.6); }
.avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  /* 双击头像是「拍一拍」，别让浏览器把它当成选文本/选图片 */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* 点自己头像弹出的设置面板 */
.self-avatar-btn { cursor: pointer; }
.self-panel {
  position: fixed;
  z-index: 141;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(226, 202, 148, .35);
  background: rgba(8, 32, 20, .97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  animation: self-panel-in .16s ease;
}
@keyframes self-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.self-panel-title {
  padding: 2px 6px 8px;
  color: rgba(240, 226, 200, .72);
  font-size: 12px;
  letter-spacing: .08em;
}
.self-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 202, 148, .28);
  background: rgba(226, 202, 148, .1);
  color: #f3e7cd;
  font-size: 15px;
}
.self-panel-row .self-panel-value {
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(120, 220, 160, .22);
  color: #b9f0cd;
  text-align: center;
  font-weight: 700;
}
.self-panel-row.off { opacity: .82; }
.self-panel-row.off .self-panel-value {
  background: rgba(240, 120, 110, .22);
  color: #ffc4bb;
}
.self-panel-hint {
  margin: 4px 6px 2px;
  color: rgba(240, 226, 200, .6);
  font-size: 13px;
}

/* 房主关掉扔东西时，「道具」按钮变暗 */
.icon-btn.props-toggle.off {
  color: rgba(255, 235, 200, .5);
  border-color: rgba(226, 202, 148, .18);
}
.avatar-wrap img,
.avatar-wrap .avatar {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-2) calc(var(--p, 1) * 1turn), rgba(255, 255, 255, .09) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0;
  transition: opacity .2s ease;
}
.seat.is-turn .avatar-wrap::before { opacity: 1; }
.avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 218, 186, .3);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .16), transparent 40%),
    linear-gradient(145deg, #347553, #123b27);
  color: #f1e2c5;
  font-family: var(--serif);
  font-size: 54px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .28);
}
.avatar.bot { background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .12), transparent 40%), linear-gradient(145deg, #735e39, #352a1b); }
.avatar.bigcat {
  background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .28), transparent 40%), linear-gradient(145deg, #e0bb72, #7b521a);
  color: #241b0b;
  border-color: #f1d695;
  box-shadow: 0 0 0 3px rgba(240, 211, 143, .42), 0 0 26px rgba(224, 187, 114, .4), 0 8px 24px rgba(0, 0, 0, .3);
  animation: bigcat-glow 2.4s ease-in-out infinite;
}
.avatar.bigcat::before,
.avatar.bigcat::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 20px solid #c8a45c;
  filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, .3));
  z-index: 3;
}
.avatar.bigcat::before { left: 13px; transform: rotate(-15deg); }
.avatar.bigcat::after { right: 13px; transform: rotate(15deg); }
.avatar.bigcat .avatar-initial { font-size: 1.12em; font-weight: 700; transform: translateY(2px); }
.avatar-crown {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  z-index: 8;
  color: #f7dfa5;
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .55), 0 0 10px rgba(247, 223, 165, .35);
  pointer-events: none;
}
.avatar.exploder { background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .16), transparent 40%), linear-gradient(145deg, #c14b3f, #6b1b18); }
.avatar.oldk { background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(145deg, #2e6963, #123631); }
.oldk-k-mark {
  position: absolute;
  /* 统一放头像右下角、向外突出（左上角会顶出屏幕上沿） */
  left: auto;
  top: auto;
  right: -9px;
  bottom: -9px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #a5ddd3;
  background: #276f65;
  color: #effffb;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  z-index: 8;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .35);
}
.seat.is-turn .avatar { box-shadow: 0 0 0 3px rgba(226, 202, 148, .18), 0 0 28px rgba(226, 202, 148, .24); }
.seat.finished .avatar { filter: grayscale(.45); }
.avatar-initial { transform: translateY(1px); position: relative; z-index: 2; }
.avatar-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}
.count-badge {
  position: absolute;
  right: -5px;
  bottom: -3px;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(226, 202, 148, .42);
  background: #082418;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
}
.called-k-card {
  position: absolute;
  right: -27px;
  top: -12px;
  left: auto;
  bottom: auto;
  z-index: 9;
  width: 35px;
  height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 2px;
  border: 1px solid #c8a45c;
  border-radius: 5px;
  background: linear-gradient(155deg, #fffdf8, #eee1c5);
  color: #232018;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .38);
  transform: rotate(7deg);
  pointer-events: auto;
}
.called-k-card.red { border-color: #c77b70; color: var(--red); }
.called-k-caption {
  position: absolute;
  left: -1px;
  top: -7px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--gold);
  color: #251d0b;
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .06em;
}
.called-k-rank { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1; }
.called-k-suit { margin-top: 1px; font-size: 13px; line-height: 1; }
.called-k-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border: 1px solid rgba(240, 211, 143, .6);
  border-radius: 999px;
  background: rgba(200, 164, 92, .24);
  color: #ffe6ae;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(200, 164, 92, .06);
}
.called-k-inline small { color: #c5a66b; font-size: 10px; }
.called-k-inline b { font-weight: 800; }
.called-k-inline.red { border-color: rgba(226, 153, 139, .65); background: rgba(167, 45, 40, .26); color: #ffc4b8; }
.seat-name-line { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; min-width: 0; flex-wrap: wrap; row-gap: 3px; }
.seat-name-row { flex-wrap: nowrap; }
.seat-name-row .seat-name { min-width: 0; }
/* 娌℃湁韬唤鐗屾椂涔熷崰浣忚韩浠界墝閭ｄ竴琛岋紝鍥涘搴т綅楂樺害涓€鑷达紝鍑虹墝鍖烘墠涓嶄細涓婁笅閿欎綅 */
.seat .seat-badge-line:empty { margin-top: 8px; min-height: 26px; }
.seat-score {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border: 1px solid rgba(255, 228, 160, .5);
  border-radius: 999px;
  background: rgba(255, 228, 160, .24);
  color: #ffe9bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.seat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: #f1e6d1; }
.seat.has-bigcat .seat-name { color: #ffe7b0; text-shadow: 0 0 12px rgba(240, 197, 96, .35); }
.seat.has-oldk .seat-name { color: #b8e7df; }
.you-mark { padding: 1px 5px; border-radius: 4px; background: rgba(226, 202, 148, .16); color: var(--gold-2); font-size: 9px; }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 218, 186, .16);
  color: #a9bcb0;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.role-badge.bigcat { border-color: rgba(226, 202, 148, .55); background: rgba(200, 164, 92, .18); color: #f2d795; }
.seat-count-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 2px 9px;
  border: 1px solid rgba(226, 202, 148, .28);
  border-radius: 999px;
  background: rgba(8, 34, 23, .58);
  color: #e5d5b2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.seat-count-line.revealed {
  border-color: rgba(255, 225, 153, .9);
  background: linear-gradient(135deg, rgba(200, 164, 92, .95), rgba(160, 118, 47, .95));
  color: #241a08;
  box-shadow: 0 0 14px rgba(240, 197, 96, .45);
}
.role-badge.oldk { border-color: rgba(96, 175, 166, .5); background: rgba(45, 123, 115, .18); color: #9fded4; }
/* 鍏堟墜鐗屾敼鎴愩€岀孩妗?銆嶏紝鍋氬緱鍍忚€並鐗屼竴鏍烽啋鐩紙绾㈡鑹诧級 */
.role-badge.first {
  padding: 4px 13px;
  border-width: 2px;
  border-color: rgba(255, 160, 146, .8);
  background: linear-gradient(135deg, #c8433a, #7c1f1a);
  color: #fff1ec;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 14px rgba(226, 92, 78, .38);
}
.role-badge.exploder { border-color: rgba(210, 74, 62, .5); background: rgba(167, 45, 40, .22); color: #f2a69a; }
.role-badge.auto-badge { border-color: rgba(226, 202, 148, .48); background: rgba(200, 164, 92, .16); color: #f2d795; }
.role-badge.farmer, .role-badge.challenger { color: #b7c9bd; }
.seat-meta { margin-top: 3px; color: #8fa99a; font-size: 10px; }
.seat-meta .score-pos { color: #86d3a4; }
.seat-meta .score-neg { color: #e09384; }
.seat-reveal {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: calc(100% + 6px);
  width: max-content;
  max-width: min(62vw, 420px);
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.seat.pos-1 .seat-reveal { transform: translateX(calc(-50% + 100px)); }
.seat.pos-4 .seat-reveal { transform: translateX(calc(-50% - 100px)); }
.seat-reveal-fan { display: flex; align-items: flex-end; justify-content: center; padding-top: 2px; }
/* 剩牌缩小、叠得更紧，整沓控制在座位宽度内 */
.seat-reveal-fan .card {
  width: 62px;
  height: 90px;
  padding: 3px;
  margin-left: -48px;
  border-radius: 6px;
  z-index: var(--i, 0);
}
.seat-reveal-fan .card:first-child { margin-left: 0; }
.seat-reveal-fan .card .corner { left: 4px; top: 3px; }
.seat-reveal-fan .card .corner-rank { font-size: 21px; }
.seat-reveal-fan .card .corner-suit { font-size: 14px; }
.seat-reveal-fan .card .center-suit { font-size: 28px; }
.seat-reveal-fan .card .bottom-rank { right: 4px; bottom: 3px; font-size: 11px; }
.seat-reveal-fan .card .trump-pin { top: 3px; right: 3px; font-size: 7px; }
.seat-bubble {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  min-width: 38px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f7eedb;
  color: #413823;
  font-size: 11px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .25);
}
.seat-bubble.play {
  padding: 7px 15px;
  border: 1px solid #f8e8bd;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8e9bf, #ddbb74);
  color: #2b2210;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3), 0 0 0 3px rgba(200, 164, 92, .1);
}
.seat-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #f7eedb;
}
.seat-bubble.play::after { border-top-color: #e2c27b; }
.seat-bubble.pass { background: #d9cfb7; }
.seat-bubble.finish { background: var(--gold); color: #2a2110; font-weight: 700; }
/* 报单 / 出完牌时说的那句（和音效同步显示） */
.seat-bubble.talk {
  padding: 5px 11px;
  background: linear-gradient(135deg, #fbf3e0, #e7d6ae);
  color: #3a2f18;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.seat-bubble.talk::after { border-top-color: #f0e2c2; }
.seat-chat,
.self-chat {
  position: absolute;
  z-index: 20;
  max-width: 210px;
  max-height: 76px;
  padding: 7px 11px;
  border: 1px solid rgba(240, 211, 143, .7);
  border-radius: 12px;
  background: rgba(250, 242, 224, .98);
  color: #2e2515;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .35), 0 0 0 2px rgba(200, 164, 92, .12);
  pointer-events: none;
}
.seat-chat {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  animation: seat-chat-fade 3s both;
}
.seat.pos-2 .seat-chat,
.seat.pos-3 .seat-chat {
  bottom: auto;
  top: calc(100% + 8px);
}
.seat.pos-2 .seat-chat::after,
.seat.pos-3 .seat-chat::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(250, 242, 224, .98);
}
.self-chat {
  left: 0;
  bottom: calc(100% + 6px);
  max-width: 260px;
  animation: self-chat-fade 3s both;
}
.seat-chat::after,
.self-chat::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(250, 242, 224, .98);
}
@keyframes seat-chat-fade {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.92); }
  8%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -4px) scale(.98); }
}
@keyframes self-chat-fade {
  0% { opacity: 0; transform: translateY(6px) scale(.92); }
  8%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-4px) scale(.98); }
}
.seat-cards {
  position: absolute;
  right: -8px;
  top: 12px;
  width: 30px;
  height: 38px;
  pointer-events: none;
}
.seat-cards i {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(245, 238, 223, .3);
  background: repeating-linear-gradient(45deg, #8c2d2a 0 3px, #6f201e 3px 6px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}
.seat-cards i:nth-child(2) { transform: translate(-3px, 2px); }
.seat-cards i:nth-child(3) { transform: translate(-6px, 4px); }

/* 涓ぎ鍑虹墝鍖?*/
.table-center {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 45%;
  width: min(52vw, 520px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.turn-readout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(4, 24, 14, .56);
  border: 1px solid rgba(226, 202, 148, .14);
  color: #b9cbbf;
  font-size: 11px;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.turn-readout b { color: var(--gold-2); }
.turn-readout.you { border-color: rgba(226, 202, 148, .5); color: #f1e2c5; background: rgba(200, 164, 92, .12); }
.turn-readout .clock { font-variant-numeric: tabular-nums; color: #e7d5b3; }
.last-play-label {
  padding: 4px 11px;
  border: 1px solid rgba(226, 202, 148, .24);
  border-radius: 999px;
  background: rgba(3, 22, 12, .42);
  color: #d8c6a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.last-play-label b { color: var(--gold-2); }
.center-play-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 2px 0 3px;
  padding: 7px 24px 8px;
  border: 1px solid rgba(226, 202, 148, .28);
  border-radius: 10px;
  background: rgba(3, 22, 12, .46);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(3px);
}
.center-play-name { color: #a9bfae; font-size: 10px; letter-spacing: .1em; }
.center-play-combo {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: clamp(23px, 2.7vw, 33px);
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .3);
}
.seat-play {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid rgba(226, 202, 148, .22);
  border-radius: 9px;
  background: rgba(3, 21, 12, .56);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .32);
  backdrop-filter: blur(3px);
  pointer-events: none;
  opacity: .72;
  transition: opacity .18s ease, border-color .18s ease;
}
.seat-play.current {
  opacity: 1;
  border-color: rgba(240, 211, 143, .62);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4), 0 0 0 2px rgba(200, 164, 92, .12);
}
.seat-play .card { width: 78px; height: 112px; margin-left: -11px; border-radius: 6px; box-shadow: 0 7px 16px rgba(0, 0, 0, .3); }
.seat-play .card:first-child { margin-left: 0; }
.seat-play .card .corner { left: 5px; top: 4px; }
.seat-play .card .corner-rank { font-size: 26px; }
.seat-play .card .corner-suit { font-size: 15px; }
.seat-play .card .center-suit { font-size: 35px; padding-top: 6px; }
.seat-play .card .bottom-rank { font-size: 16px; right: 4px; bottom: 4px; }
.seat-play .card .trump-pin { font-size: 8px; padding: 0 2px; }
/* 左右两家的出牌区要整体落在头像外侧：头像 132px（半径 66），
   只偏 40px 时牌会压住头像边缘，这里留 30px 空隙。 */
.seat.pos-1 .seat-play { left: calc(50% + 96px); top: 12%; }
.seat.pos-4 .seat-play { right: calc(50% + 96px); top: 12%; }
.seat.pos-2 .seat-play, .seat.pos-3 .seat-play {
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
}
.self-play {
  position: absolute;
  z-index: 35;
  left: 8px;
  bottom: calc(100% + 5px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(226, 202, 148, .3);
  border-radius: 9px;
  background: rgba(3, 21, 12, .78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: .74;
  transition: opacity .18s ease, border-color .18s ease;
}
.self-play.current {
  opacity: 1;
  border-color: rgba(240, 211, 143, .64);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 0 2px rgba(200, 164, 92, .12);
}
.self-play-label { color: #a9bfae; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.self-play .card { width: 58px; height: 84px; margin-left: -7px; border-radius: 6px; box-shadow: 0 7px 16px rgba(0, 0, 0, .3); }
.self-play .card:first-of-type { margin-left: 0; }
.self-play .card .corner { left: 5px; top: 4px; }
.self-play .card .corner-rank { font-size: 20px; }
.self-play .card .corner-suit { font-size: 12px; }
.self-play .card .center-suit { font-size: 27px; padding-top: 6px; }
.self-play .card .bottom-rank { font-size: 13px; right: 4px; bottom: 4px; }
.self-play .card .trump-pin { font-size: 7px; padding: 0 2px; }
.played-cards {
  min-height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 14px;
}
.played-cards .card { width: 62px; height: 89px; border-radius: 7px; margin-left: -8px; box-shadow: 0 12px 24px rgba(0, 0, 0, .34); }
.played-cards .card:first-child { margin-left: 0; }
.played-cards .card .corner-rank { font-size: 19px; }
.played-cards .card .corner-suit { font-size: 12px; }
.played-cards .card .center-suit { font-size: 27px; }
.played-cards .empty-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(226, 202, 148, .36);
  font-size: 11px;
}
.empty-table .ornament { font-size: 24px; color: rgba(226, 202, 148, .25); }
.table-status {
  min-height: 17px;
  color: #91aa9b;
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.table-status b { color: var(--gold-2); }
.pass-row { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.pass-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(232, 218, 186, .1);
  color: #8fa699;
  font-size: 9px;
}

/* 鎵嬬墝 Dock */
.hand-dock {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 18px max(58px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(3, 17, 9, .94) 0%, rgba(5, 26, 15, .84) 58%, rgba(5, 26, 15, 0) 100%);
}
.dock-inner { position: relative; max-width: 980px; margin: 0 auto; }
.dock-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-bottom: 4px;
}
.self-cluster { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.self-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 218, 186, .3);
  background: linear-gradient(145deg, #347553, #123b27);
  color: #f1e2c5;
  font-family: var(--serif);
  font-size: 28px;
  /* 点自己头像是打开设置，别让浏览器把它当成选图片/选文本 */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.self-avatar img,
.self-avatar .avatar-face {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
  flex-shrink: 0;
}
.self-avatar.is-auto {
  border-color: #e6c681;
  box-shadow: 0 0 0 2px rgba(230, 198, 129, .3), 0 0 14px rgba(214, 177, 98, .24);
}
.avatar-wrap .auto-avatar-mark,
.self-avatar .auto-avatar-mark {
  position: absolute;
  left: -2px;
  bottom: 4px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 205, .82);
  background: linear-gradient(180deg, #e0bb72, #8d6327);
  color: #241b0b;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.self-avatar .auto-avatar-mark {
  left: -3px;
  bottom: 2px;
  padding: 1px 6px;
  font-size: 10px;
}
.self-avatar.bigcat {
  background: linear-gradient(145deg, #e0bb72, #7b521a);
  color: #241b0b;
  border-color: #f1d695;
  box-shadow: 0 0 0 2px rgba(240, 211, 143, .36), 0 0 16px rgba(224, 187, 114, .4);
}
.self-avatar.bigcat .avatar-crown { top: -30px; font-size: 22px; }
.self-avatar.bigcat::before,
.self-avatar.bigcat::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #c8a45c;
  z-index: 0;
}
.self-avatar.bigcat::before { left: 7px; transform: rotate(-15deg); }
.self-avatar.bigcat::after { right: 7px; transform: rotate(15deg); }
.self-avatar.oldk {
  background: linear-gradient(145deg, #2e6963, #123631);
  border-color: #8ad1c5;
  box-shadow: 0 0 0 2px rgba(94, 181, 168, .3);
}
.self-avatar .oldk-k-mark { left: auto; top: auto; right: -7px; bottom: -7px; width: 24px; height: 24px; font-size: 12px; }
.self-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.self-bigcat-name .self-name { color: #ffe7b0; }
.self-oldk-name .self-name { color: #b8e7df; }
.self-score { color: #9fb3a5; font-size: 10px; }
.self-cluster .seat-score { margin-left: 6px; }
.selection-chip {
  flex: 1;
  min-width: 0;
  color: #a7bbad;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-chip b { color: var(--gold-2); }
.selection-chip.invalid { color: #e09b8e; }
.selection-chip:empty { display: none; }
.dock-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mini-tool {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #9fb3a5;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.mini-tool:hover { color: var(--gold-2); border-color: rgba(226, 202, 148, .18); }
.hand {
  position: relative;
  height: var(--card-h);
  margin: 0 auto;
  width: calc(var(--card-w) + (var(--n, 1) - 1) * var(--hand-step));
  max-width: 94vw;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.hand .card { touch-action: none; }
.hand-countdown {
  position: absolute;
  z-index: 45;
  top: auto;
  right: 0;
  bottom: calc(var(--card-h) + 12px);
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 11px 5px;
  border: 1px solid rgba(255, 228, 160, .75);
  border-radius: 13px;
  background: rgba(5, 26, 15, .9);
  color: #ffe6a8;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .42), 0 0 18px rgba(240, 197, 96, .22);
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.hand-countdown .countdown-label {
  align-self: center;
  color: #bda880;
  font-size: 9px;
  letter-spacing: .12em;
}
.hand-countdown b {
  font-family: var(--serif);
  font-size: 34px;
  line-height: .9;
  font-variant-numeric: tabular-nums;
  color: #ffe6a8;
  text-shadow: 0 0 14px rgba(240, 197, 96, .35);
}
.hand-countdown .countdown-unit {
  margin-bottom: 1px;
  color: #c7af82;
  font-size: 12px;
}
.hand > .empty-table {
  position: absolute;
  inset: 0;
  justify-content: center;
  color: #b5a888;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .08em;
}
.hand.empty { width: 280px; max-width: 80vw; }
.card {
  position: relative;
  flex-shrink: 0;
  width: var(--card-w);
  height: var(--card-h);
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #d0c5ae;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 35%),
    linear-gradient(155deg, #fffdf8 0%, #f2e9d7 100%);
  color: #1e211c;
  box-shadow: 0 6px 13px rgba(0, 0, 0, .26);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button.card { cursor: pointer; font: inherit; text-align: left; }
.hand .card { position: absolute; left: calc(var(--i, 0) * var(--hand-step)); top: 0; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.first-leader-card .first-leader-tag {
  position: absolute;
  left: 5px;
  bottom: 6px;
  z-index: 8;
  padding: 2px 6px;
  border-radius: 4px;
  border: 0;
  background: linear-gradient(180deg, #f2d99e, #c79a4a);
  color: #241b0b;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: none;
  animation: first-leader-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes first-leader-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: .82; filter: brightness(1.08); }
}
.hand .card:hover { transform: none; z-index: var(--i, 0); }
/* 选中反馈：松手后牌上移（按下时不动，与微乐一致） */
.hand .card.selected { transform: translateY(-16px); box-shadow: 0 10px 18px rgba(0, 0, 0, .34); z-index: 40 !important; }
.hand .card.selected:hover { transform: translateY(-16px); }
.hand .card.disabled { filter: saturate(.75) brightness(.9); }
.hand .card.disabled.selected { filter: none; }
.card.red { color: var(--red); }
.card.joker { border-color: #c59645; background: linear-gradient(155deg, #fffdf8, #f0e1bf); }
.card.joker-photo,
.display-card.joker-photo {
  padding: 0;
  overflow: hidden;
  background: #f8f3e8;
}
.card.joker-photo .joker-photo-img,
.display-card.joker-photo .joker-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
}
.card.joker-photo .card-glow { border-radius: inherit; }
.card.trump:not(.joker) { border-color: #c3a15c; background: linear-gradient(155deg, #fffdf8 58%, #f1e5c8 100%); }
.card.trump:not(.joker)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 7px 0 0 7px;
  background: linear-gradient(to bottom, #e2c782, #987028);
  z-index: 4;
}
.card.trump.joker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 7px 0 0 7px;
  background: linear-gradient(to bottom, #e2c782, #987028);
  z-index: 4;
}
.card.dim { opacity: .55; }
.card.partner-card {
  border-color: #79c9bc;
  box-shadow: inset 3px 0 0 #4fa99b, 0 0 0 2px rgba(121, 201, 188, .5), 0 8px 20px rgba(0, 0, 0, .3);
}
.partner-pin {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 7;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(201, 245, 237, .7);
  background: #276f65;
  color: #effffb;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.card .corner {
  position: absolute;
  left: 5px;
  top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .92;
  z-index: 2;
}
.card .corner-rank { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.04em; }
.card .corner-suit { margin-top: 2px; font-size: clamp(14px, 1.55vw, 19px); line-height: 1; }
.card .center-suit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 10px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 62px);
  opacity: .2;
  pointer-events: none;
}
.card .bottom-rank {
  position: absolute;
  right: 7px;
  bottom: 6px;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 700;
  opacity: .6;
}
.card .trump-pin {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(143, 104, 40, .13);
  color: var(--gold-deep);
  font-size: 7px;
  letter-spacing: .06em;
  z-index: 3;
}
.card.joker .corner-rank { writing-mode: vertical-rl; font-size: clamp(17px, 2vw, 24px); letter-spacing: .12em; color: var(--gold-deep); }
.card.joker .corner-suit { color: var(--gold-deep); font-size: 11px; }
.card.joker .center-suit { font-family: var(--serif); writing-mode: vertical-rl; font-size: clamp(24px, 3vw, 38px); letter-spacing: .12em; opacity: .18; }
.card .card-glow {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 18px rgba(200, 164, 92, .12);
  pointer-events: none;
}

/* 鎿嶄綔鏍?*/
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  margin-top: 7px;
}
.hand-dock .action-row { margin: 2px 0 26px; }
.action-row .btn { min-width: 94px; }
.action-row .btn-play { min-width: 122px; }
.action-turn-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #a2b7a9;
  font-size: 11px;
  text-align: center;
}
.action-turn-note b { color: var(--gold-2); }
.action-turn-note.auto-turn-note { color: #f2d795; }
.action-turn-note.auto-turn-note .status-time { color: #cdb887; font-size: 10px; }
.action-turn-note .status-time { font-variant-numeric: tabular-nums; color: #e4cfa7; font-size: 15px; font-family: var(--serif); }
.icon-btn.auto-toggle {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(180deg, #e7ca8c, #aa7b33);
  color: #1b241a;
  border-color: #f3d99f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.icon-btn.auto-toggle:hover {
  background: linear-gradient(180deg, #f0d79d, #b8893b);
  border-color: #fff0c4;
}
.icon-btn.auto-toggle.on {
  background: linear-gradient(180deg, #a83345, #681525);
  color: #ffe9bc;
  border-color: #f0d89f;
  box-shadow: 0 0 0 2px rgba(230, 198, 129, .25), 0 0 14px rgba(168, 51, 69, .4);
}

/* 鐖嗕簡 / 鍙獽 闈㈡澘 */
.decision-panel {
  position: absolute;
  z-index: 60;
  left: 50%;
  top: 43%;
  width: min(92vw, 480px);
  transform: translate(-50%, -50%);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(226, 202, 148, .42);
  background:
    linear-gradient(160deg, rgba(250, 244, 230, .98), rgba(234, 222, 198, .98));
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .48);
  text-align: center;
  animation: panel-in .25s cubic-bezier(.2, .8, .2, 1);
}
.decision-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(115, 85, 35, .18);
  border-radius: 11px;
  pointer-events: none;
}
.decision-kicker { color: var(--gold-deep); font-size: 10px; font-weight: 700; letter-spacing: .28em; }
.decision-title { margin: 5px 0 6px; font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); color: #143d29; }
.decision-text { color: #665d49; font-size: 13px; line-height: 1.55; }
.decision-taunt {
  margin: 8px 0 2px;
  color: #b62f27;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .14em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 0 18px rgba(167, 45, 40, .18);
}
.decision-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 3px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.decision-countdown small { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; color: #8c7d61; }
.decision-actions { display: flex; justify-content: center; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.decision-actions .btn { min-width: 116px; }
.decision-foot { margin-top: 10px; color: #8e8067; font-size: 10px; }

/* 「你已做出选择，等待其他玩家」：从面板底部的小字改成标题下方的醒目标记 */
.decision-wait {
  margin: 8px auto 2px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(167, 45, 40, .32);
  background: rgba(167, 45, 40, .1);
  color: #7e211d;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.decision-panel.risk { border-color: rgba(167, 45, 40, .45); }
.decision-panel.risk .decision-title { color: #7e211d; }
/* 爆了窗口：标题「要不要 1 打 4？」和口号「牛逼 你就爆」各比通用字号小 1px */
.decision-panel.risk .decision-title { font-size: calc(clamp(24px, 4vw, 34px) - 1px); }
.decision-panel.risk .decision-taunt { font-size: calc(clamp(26px, 3.4vw, 36px) - 1px); }
.explode-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(167, 45, 40, .1);
  color: #8a2c26;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 7px; margin-top: 14px; }
.k-choice {
  position: relative;
  min-height: 98px;
  padding: 9px 4px;
  border: 1px solid #d3c4a6;
  border-radius: 9px;
  background: #fffdf8;
  color: #1e211c;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.k-choice:hover { transform: translateY(-3px); border-color: var(--gold-deep); box-shadow: 0 8px 18px rgba(80, 60, 25, .13); }
.k-choice.red { color: var(--red); }
.k-choice .k-suit { display: block; font-size: 25px; line-height: 1; }
.k-choice .k-rank { display: block; margin-top: 2px; font-family: var(--serif); font-size: 25px; font-weight: 700; }
.k-choice .k-label { display: block; margin-top: 5px; color: #72664f; font-size: 9px; }
.k-choice .k-own {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  color: #a23a31;
  font-size: 8px;
  white-space: nowrap;
}
.k-choice.own { border-color: rgba(167, 45, 40, .42); background: #fff7f1; }
.waiting-call {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid rgba(226, 202, 148, .24);
  border-radius: 999px;
  background: rgba(4, 24, 14, .56);
  color: #c7d5cb;
  font-size: 12px;
  backdrop-filter: blur(4px);
}
.waiting-call .cats {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d1a85e, #76501e);
  color: #241b0b;
  font-family: var(--serif);
}
.waiting-call b { color: var(--gold-2); }

/* 韬唤鎻愮ず */
.role-strip {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: calc(14% + 82px);
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: min(90vw, 700px);
  pointer-events: none;
}
.role-note {
  padding: 4px 10px;
  border: 1px solid rgba(232, 218, 186, .14);
  border-radius: 999px;
  background: rgba(3, 21, 12, .36);
  color: #aabfb0;
  font-size: 10px;
  backdrop-filter: blur(3px);
}
.role-note b { color: var(--gold-2); }
.role-note.oldk { border-color: rgba(96, 175, 166, .34); color: #a8d6ce; }
.role-note.bigcat { border-color: rgba(226, 202, 148, .34); color: #eed9a9; }

/* 缁撶畻 */
.result-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 13, 7, .78);
  backdrop-filter: blur(7px);
  animation: fade-in .25s ease;
}
.result-card {
  width: min(94vw, 780px);
  max-height: 92dvh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(226, 202, 148, .42);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .55);
  animation: result-in .32s cubic-bezier(.2, .8, .2, 1);
}
.result-head {
  position: relative;
  padding: 24px 26px 20px;
  background:
    radial-gradient(500px 180px at 20% 0%, rgba(49, 137, 89, .28), transparent 70%),
    linear-gradient(150deg, #0d3d26, #082a19);
  color: var(--cream);
}
.result-head::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(226, 202, 148, .42), transparent);
}
.result-kicker { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .3em; }
.result-title { margin-top: 6px; font-family: var(--serif); font-size: clamp(25px, 3.6vw, 36px); letter-spacing: .04em; }
.result-sub { margin-top: 5px; color: #a9bfae; font-size: 11px; }
.result-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(232, 218, 186, .2);
  background: transparent;
  color: #c9d6cd;
  font-size: 21px;
  cursor: pointer;
}
.result-body { padding: 18px 24px 22px; }
.pause-overlay {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 16, 9, .7);
  backdrop-filter: blur(3px);
}
.pause-card {
  width: min(90vw, 420px);
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(230, 198, 129, .45);
  background: linear-gradient(160deg, rgba(10, 49, 30, .98), rgba(4, 28, 16, .98));
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.pause-card .pause-kicker { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .28em; }
.pause-card h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: 28px; color: #ffe2a6; }
.pause-card p { color: #d6e2d7; font-size: 14px; line-height: 1.6; }
.pause-card small { display: block; margin-top: 9px; color: #93a99a; font-size: 10px; }
.result-top-actions {
  display: flex;
  justify-content: center;
  padding: 12px 24px 0;
  background: #f8efdc;
}
.result-top-actions .result-rematch {
  min-width: 170px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
}
.result-scoreboard { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.result-remaining { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.remaining-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(151, 133, 102, .15);
  border-radius: 7px;
  background: rgba(255, 253, 247, .44);
}
.remaining-line:nth-child(odd) { background: rgba(28, 68, 45, .045); }
.remaining-line.you { background: rgba(200, 164, 92, .13); box-shadow: inset 2px 0 0 var(--gold); }
.remaining-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.remaining-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.remaining-count { color: #8d7d62; font-size: 9px; }
.remaining-cards { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.remaining-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  padding: 3px 6px;
  border: 1px solid #d6c9b1;
  border-radius: 5px;
  background: #fffdf7;
  color: #25231d;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}
.remaining-card.red { color: var(--red); }
.remaining-card.joker { border-color: #c8a45c; background: #f5e8c9; color: #75501a; }
.remaining-empty { color: #9a8c73; font-size: 10px; }
.score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  gap: 14px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 13px;
}
.score-line:nth-child(odd) { background: rgba(28, 68, 45, .055); }
.score-line.you { background: rgba(200, 164, 92, .15); box-shadow: inset 2px 0 0 var(--gold); }
.result-card .role-badge {
  border-color: #d9cdb5;
  background: #f3ead9;
  color: #5e6458;
}
.result-card .role-badge.bigcat,
.result-card .role-badge.bigcat_oldk {
  border-color: #c8a45c;
  background: #f3e2ba;
  color: #75501a;
}
.result-card .role-badge.oldk {
  border-color: #9fc4bd;
  background: #e0efeb;
  color: #235c55;
}
.result-card .role-badge.exploder {
  border-color: #d8a69c;
  background: #f5e1db;
  color: #8f2b24;
}
.result-card .you-mark {
  background: #e7d8b8;
  color: #6f5221;
}
.score-who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.score-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-delta { font-family: var(--serif); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 50px; text-align: right; }
.score-delta.plus { color: var(--green-ok); }
.score-delta.minus { color: var(--red); }
.score-total { min-width: 62px; text-align: right; color: #7a6e58; font-size: 11px; font-variant-numeric: tabular-nums; }
.result-order {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}
.order-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #dfd3bc;
  border-radius: 999px;
  background: #fffdf7;
  font-size: 10px;
  color: #655b49;
}
.order-pill b { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #173f2a; color: #f4e9d3; font-size: 9px; }
.order-pill.not-out { border-style: dashed; color: #9a8e78; }
.result-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.result-note { margin-top: 11px; text-align: center; color: #8c7e65; font-size: 10px; line-height: 1.7; }
.result-section-label { margin-top: 14px; color: #8b7d64; font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

/* 瀹屾垚/绛夊緟妯箙 */
.table-banner {
  position: absolute;
  z-index: 40;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  border: 1px solid rgba(226, 202, 148, .4);
  border-radius: 999px;
  background: rgba(4, 24, 14, .9);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .1em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

/* ---------- 鑱婂ぉ鎶藉眽 ---------- */
.chat-scrim {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(2px);
}
.chat-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  border-left: 1px solid rgba(226, 202, 148, .25);
  background:
    radial-gradient(400px 300px at 100% 0%, rgba(31, 108, 65, .3), transparent 65%),
    linear-gradient(160deg, #0b3220, #04190f);
  box-shadow: -25px 0 70px rgba(0, 0, 0, .42);
}
.chat-drawer.open { transform: translateX(0); }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid rgba(232, 218, 186, .12); }
.chat-kicker { color: var(--gold); font-size: 8px; letter-spacing: .28em; }
.chat-head h2 { margin-top: 2px; font-family: var(--serif); font-size: 21px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: thin; }
.chat-msg { max-width: 92%; align-self: flex-start; font-size: 12px; line-height: 1.65; }
.chat-msg .chat-name { display: block; margin-bottom: 2px; color: #8fa99a; font-size: 9px; }
.chat-msg .chat-bubble { display: inline-block; padding: 7px 10px; border-radius: 3px 10px 10px 10px; background: rgba(255, 255, 255, .07); color: #e8dcC6; word-break: break-word; }
.chat-msg.me { align-self: flex-end; }
.chat-msg.me .chat-name { text-align: right; color: var(--gold); }
.chat-msg.me .chat-bubble { border-radius: 10px 3px 10px 10px; background: rgba(200, 164, 92, .2); color: #f4e8cf; }
.chat-msg.system { align-self: center; max-width: 100%; text-align: center; color: #7f978a; font-size: 10px; }
.chat-msg.system .chat-bubble { background: transparent; padding: 2px 4px; color: inherit; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 14px; border-top: 1px solid rgba(232, 218, 186, .1); }
.quick-chip {
  padding: 4px 9px;
  border: 1px solid rgba(232, 218, 186, .18);
  border-radius: 999px;
  background: transparent;
  color: #acbeb2;
  font-size: 10px;
  cursor: pointer;
}
.quick-chip:hover { border-color: var(--gold); color: var(--gold-2); }
.quick-chip.voice-toggle {
  border-color: rgba(226, 202, 148, .55);
  color: var(--gold-2);
  font-weight: 700;
}
.quick-chip.voice-toggle.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #241c0d;
}
.chat-voice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px 14px;
  border-top: 1px solid rgba(232, 218, 186, .1);
  background: rgba(0, 0, 0, .1);
  scrollbar-width: thin;
}
.chat-voice[hidden] { display: none; }
.voice-phrase {
  padding: 8px 10px;
  border: 1px solid rgba(232, 218, 186, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #ddceb2;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.voice-phrase:hover,
.voice-phrase:focus-visible {
  border-color: rgba(226, 202, 148, .7);
  background: rgba(200, 164, 92, .14);
  color: #fff1cf;
}
.voice-phrase.special {
  border-color: rgba(226, 202, 148, .55);
  background: rgba(200, 164, 92, .12);
  color: #f3dca6;
  font-weight: 700;
}
.chat-form { display: flex; gap: 7px; padding: 11px 14px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(232, 218, 186, .12); }
.chat-form .input { min-height: 40px; padding: 8px 12px; font-size: 12px; }

/* 鎸変綇璇磋瘽 */
.voice-hold-row { padding: 8px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.voice-hold {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(226, 202, 148, .35);
  background: rgba(200, 164, 92, .14);
  color: #f1e2c5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.voice-hold:active,
.voice-hold.recording {
  border-color: rgba(255, 160, 146, .85);
  background: linear-gradient(135deg, #c8433a, #7c1f1a);
  color: #fff3ef;
  box-shadow: 0 0 18px rgba(226, 92, 78, .45);
}
.chat-voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.chat-voice-bubble b { color: #ffe6a8; font-weight: 700; }

/* 鐐广€岃銆嶆椂鍚屼竴涓娊灞夊彧鏄剧ず蹇嵎璇煶锛涚偣銆岃亰銆嶄粛鏄剧ず瀹屾暣鑱婂ぉ */
.chat-drawer.voice-only .chat-messages,
.chat-drawer.voice-only .chat-quick,
.chat-drawer.voice-only .chat-form {
  display: none !important;
}
.chat-drawer.voice-only .chat-voice {
  flex: 1;
  max-height: none;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 0;
  align-content: start;
}

/* ---------- 寮圭獥 / 瑙勫垯 ---------- */
.modal-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 13, 7, .72);
  backdrop-filter: blur(5px);
}
.rules-modal {
  width: min(94vw, 780px);
  max-height: 90dvh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #d6c5a4;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.rules-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(160deg, #0c3a24, #072716);
  color: var(--cream);
}
.rules-head h2 { font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.rules-head p { color: var(--gold); font-size: 9px; letter-spacing: .22em; margin-top: 2px; }
.rules-body { padding: 18px 22px 24px; }
.rules-lead { color: #6d634f; font-size: 12px; line-height: 1.8; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rule-block { padding: 12px 13px; border: 1px solid #dfd3bc; border-radius: 8px; background: #fffdf7; }
.rule-block h3 { color: #17462d; font-family: var(--serif); font-size: 15px; margin-bottom: 4px; }
.rule-block p { color: #6d634f; font-size: 11px; line-height: 1.7; }
.rule-table { width: 100%; border-collapse: collapse; margin-top: 13px; font-size: 11px; }
.rule-table th, .rule-table td { padding: 7px 9px; border-bottom: 1px solid #e5dac5; text-align: left; }
.rule-table th { color: #17462d; background: #f0e8d7; }
.rank-line { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.rank-line span { padding: 2px 5px; border: 1px solid #ddd0b8; border-radius: 3px; background: #fffdf7; font-family: var(--serif); font-size: 11px; }
.rank-line span.trump { background: #17462d; color: #f3e9d4; border-color: #17462d; }
.rules-warn { margin-top: 13px; padding: 9px 11px; border-left: 3px solid var(--gold); background: #f2e9d7; color: #6d634f; font-size: 10px; line-height: 1.7; }

/* ---------- Toast / 鍔犺浇 ---------- */
.toast-root {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
body.in-game .toast-root { top: 50%; bottom: auto; }
.toast {
  max-width: min(90vw, 440px);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(226, 202, 148, .28);
  background: rgba(8, 38, 23, .95);
  color: #f1e4ca;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
  animation: toast-in .2s ease;
}
.toast.error { border-color: rgba(210, 74, 62, .45); color: #f4c5bb; }
.toast.good { border-color: rgba(84, 201, 138, .4); color: #c5f0d7; }
.permission-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 12, 7, .62);
  backdrop-filter: blur(3px);
  animation: permission-fade .2s ease;
  transition: opacity .2s ease;
}
.permission-overlay.out { opacity: 0; }
.permission-toast {
  width: min(86vw, 430px);
  padding: 30px 36px 28px;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 2px solid rgba(240, 211, 143, .78);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 164, 92, .22), transparent 62%),
    linear-gradient(150deg, #123c27, #071c11);
  color: #fff0cf;
  text-align: center;
  box-shadow:
    0 0 0 5px rgba(200, 164, 92, .08),
    0 26px 70px rgba(0, 0, 0, .6),
    0 0 42px rgba(224, 187, 114, .22);
  animation: permission-pop .28s cubic-bezier(.2, .9, .25, 1.15);
}
.permission-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1d695, #c89c4b);
  color: #2c1e08;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 22px rgba(240, 211, 143, .35);
}
/* 被房主踢出：红色警示版，字更大 */
.permission-overlay.kicked { background: rgba(18, 4, 4, .82); }
.permission-overlay.kicked .permission-toast {
  width: min(90vw, 520px);
  padding: 36px 34px 32px;
  border-color: rgba(242, 130, 118, .85);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6), 0 0 34px rgba(214, 70, 58, .28);
}
.permission-overlay.kicked .permission-icon {
  width: 62px;
  height: 62px;
  font-size: 40px;
  background: linear-gradient(145deg, #f0705f, #a32a20);
  color: #fff3ef;
  box-shadow: 0 0 28px rgba(226, 92, 78, .5);
}
.permission-overlay.kicked .permission-title {
  font-size: 38px;
  color: #ffd9d2;
  letter-spacing: .1em;
}
.permission-overlay.kicked .permission-text {
  font-size: 20px;
  color: #f2c2b9;
}
.permission-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  color: #ffe6ad;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.permission-text {
  font-size: 18px;
  letter-spacing: .12em;
  color: #e6cfa0;
}
@keyframes permission-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes permission-pop {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .permission-toast { width: min(88vw, 360px); padding: 25px 22px 23px; }
  .permission-icon { width: 42px; height: 42px; font-size: 26px; }
  .permission-title { font-size: 24px; }
  .permission-text { font-size: 16px; }
}
.loading-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #0f4b2d, #051a0f 70%);
}
.loading-box { text-align: center; color: #a9bfae; font-size: 12px; letter-spacing: .12em; }
.loading-cat { margin: 0 auto 16px; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(226, 202, 148, .4); background: rgba(200, 164, 92, .12); color: var(--gold-2); font-family: var(--serif); font-size: 28px; animation: breathe 1.5s ease-in-out infinite; }

/* ---------- 鍔ㄧ敾 ---------- */
@keyframes panel-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes result-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 92, .08); } 50% { box-shadow: 0 0 0 14px rgba(200, 164, 92, 0); } }
@keyframes pulse-turn { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes bigcat-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(240, 211, 143, .36), 0 0 20px rgba(224, 187, 114, .32), 0 8px 24px rgba(0, 0, 0, .3); }
  50% { box-shadow: 0 0 0 4px rgba(248, 223, 164, .55), 0 0 34px rgba(240, 197, 96, .5), 0 8px 24px rgba(0, 0, 0, .3); }
}
.is-turn .turn-readout .live-dot { animation: pulse-turn 1.4s ease-in-out infinite; }

/* ---------- 鍝嶅簲寮?---------- */
@media (max-width: 1080px) {
  .home-main { grid-template-columns: minmax(0, 640px); gap: 0; }
  .hero-visual { min-height: 450px; }
  .hero-orbit { width: min(100%, 420px); }
  .seats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lobby-grid { grid-template-columns: 1fr; }
  .lobby-side { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .home-shell { padding: 0 18px; }
  .home-nav { height: 68px; }
  .brand-text b { font-size: 19px; }
  .home-main { grid-template-columns: 1fr; min-height: auto; padding: 34px 0 30px; gap: 28px; }
  .hero-copy { max-width: none; }
  .home-title { font-size: clamp(64px, 17vw, 100px); }
  .home-desc { max-width: none; }
  .hero-visual { min-height: 410px; order: 2; }
  .hero-orbit { width: min(88vw, 420px); }
  .home-entry { max-width: none; }
  .topbar { gap: 8px; padding: 7px 12px; }
  .topbar .brand-text small { display: none; }
  .topbar-center { gap: 5px; }
  .pill { font-size: 10px; padding: 4px 8px; }
  .lobby-shell { padding: 16px 14px 36px; }
  .lobby-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .room-ticket { min-width: 0; }
  .lobby-side { grid-template-columns: 1fr; }
  .table-ring { width: 96vw; height: 54vh; }
  .seat { width: 120px; }
  .seat.pos-1 { left: 8%; top: 31%; }
  .seat.pos-2 { left: 26%; top: 12%; }
  .seat.pos-3 { left: 74%; top: 12%; }
  .seat.pos-4 { left: 92%; top: 31%; }
  .avatar-wrap { width: 112px; height: 112px; }
  .avatar { font-size: 46px; }
  .seat.pos-1 .seat-play { left: calc(50% + 86px); }
  .seat.pos-4 .seat-play { right: calc(50% + 86px); }
  .table-center { top: 47%; width: min(72vw, 480px); }
  .role-strip { top: 30%; }
}

@media (max-width: 640px) {
  .home-title { font-size: clamp(60px, 19vw, 84px); }
  .home-tagline { font-size: 18px; letter-spacing: .08em; }
  .feature-chips { margin: 18px 0 22px; }
  .hero-visual { min-height: 360px; }
  .hero-orbit { width: min(82vw, 340px); }
  .orbit-core b { font-size: 30px; }
  .ghost-seat { width: 64px; font-size: 9px; padding: 6px 3px; }
  .ghost-seat .glyph { width: 28px; height: 28px; font-size: 13px; }
  .hero-fan .display-card { width: 49px; height: 71px; margin-left: -17px; }
  .entry-actions { grid-template-columns: 1fr; }
  .entry-name-row { flex-direction: column; align-items: stretch; }
  .seats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-seat { min-height: 148px; }
  .game-screen { min-height: 560px; }
  .topbar .brand-text { display: none; }
  .topbar .brand-seal { width: 30px; height: 30px; font-size: 18px; }
  .topbar { min-height: 50px; padding: 5px 8px; gap: 5px; }
  .topbar-center { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .topbar-center::-webkit-scrollbar { display: none; }
  .topbar-right { gap: 4px; }
  .topbar-right .icon-btn { width: 30px; height: 30px; font-size: 17px; }
  .score-pill { display: none; }
  .pill { min-height: 26px; }
  .called-k-strip { min-height: 48px; padding: 5px 9px; gap: 7px; font-size: 13px; }
  .called-k-strip-cat { width: 28px; height: 28px; font-size: 16px; }
  .called-k-strip-title { display: none; }
  .called-k-strip-name { max-width: 70px; }
  .called-k-strip-label { font-size: 12px; }
  .called-k-strip-card { width: 30px; height: 39px; }
  .called-k-strip-card b { font-size: 18px; }
  .called-k-strip-card span { font-size: 13px; }
  .called-k-strip-suit { font-size: 15px; }
  .called-k-strip-divider { height: 20px; margin: 0 1px; }
  .oldk-strip { padding-right: 7px; font-size: 12px; }
  .oldk-strip-badge { width: 23px; height: 23px; font-size: 13px; }
  .pill.round-pill, .pill.host-pill { display: none; }
  .seat { width: 92px; }
  .seat.pos-1 { left: 11.5%; top: 50%; }
  .seat.pos-2 { left: 24%; top: 11%; }
  .seat.pos-3 { left: 76%; top: 11%; }
  .seat.pos-4 { left: 88.5%; top: 50%; }
  .avatar-wrap { width: 92px; height: 92px; }
  .avatar { font-size: 38px; }
  .count-badge { min-width: 20px; height: 19px; font-size: 9px; right: -3px; }
  .called-k-card { right: -18px; top: -9px; width: 30px; height: 39px; }
  .called-k-caption { top: -6px; font-size: 6px; }
  .called-k-rank { font-size: 16px; }
  .called-k-suit { font-size: 11px; }
  .called-k-inline { font-size: 12px; padding: 4px 9px; }
  .seat-name { font-size: 11px; max-width: 72px; }
  .seat-meta { font-size: 9px; }
  .role-badge { font-size: 11px; padding: 2px 7px; }
  .seat-count-line { margin-top: 3px; padding: 1px 7px; font-size: 10px; }
  .role-badge.unknown { display: none; }
  .seat-cards { display: none; }
  .seat-bubble { font-size: 9px; padding: 3px 7px; }
  .seat-bubble.play { font-size: 12px; padding: 5px 10px; }
  .table-ring { height: 46vh; top: 44%; }
  .table-mark { font-size: 90px; }
  .table-center { top: 50%; width: 64vw; gap: 5px; }
  .turn-readout { font-size: 9px; padding: 3px 8px; }
  .last-play-label { font-size: 10px; padding: 3px 8px; }
  .center-play-summary { padding: 6px 16px 7px; }
  .center-play-name { font-size: 8px; }
  .center-play-combo { font-size: 23px; }
  .seat-play { padding: 6px 8px; border-radius: 7px; }
  .seat-play .card { width: 58px; height: 82px; margin-left: -10px; border-radius: 5px; }
  .seat-play .card .corner-rank { font-size: 21px; }
  .seat-play .card .corner-suit { font-size: 12px; }
  .seat-play .card .center-suit { font-size: 26px; }
  .seat-play .card .bottom-rank { font-size: 12px; }
  .seat-play .card .trump-pin { display: none; }
  .seat.pos-1 .seat-play { left: calc(50% + 76px); top: 12%; }
  .seat.pos-4 .seat-play { right: calc(50% + 76px); top: 12%; }
  .seat.pos-2 .seat-play { top: calc(100% + 5px); transform: translateX(-38%); }
  .seat.pos-3 .seat-play { top: calc(100% + 5px); transform: translateX(-62%); }
  .self-play { left: 8px; gap: 5px; padding: 5px 7px; }
  .self-play-label { font-size: 8px; }
  .self-play .card { width: 44px; height: 64px; margin-left: -6px; border-radius: 5px; }
  .self-play .card .corner-rank { font-size: 15px; }
  .self-play .card .corner-suit { font-size: 9px; }
  .self-play .card .center-suit { font-size: 20px; }
  .self-play .card .bottom-rank { font-size: 10px; }
  .self-play .card .trump-pin { display: none; }
  .played-cards { min-height: 73px; padding: 2px 4px; }
  .played-cards .card { width: 48px; height: 69px; margin-left: -8px; border-radius: 5px; }
  .played-cards .card .corner-rank { font-size: 15px; }
  .played-cards .card .corner-suit { font-size: 9px; }
  .played-cards .card .center-suit { font-size: 20px; }
  .played-cards .card .trump-pin { display: none; }
  .table-status { font-size: 9px; }
  .role-strip { top: 29%; width: 94vw; gap: 4px; }
  .role-note { font-size: 8px; padding: 3px 7px; }
  .hand-dock { padding: 5px 7px max(46px, env(safe-area-inset-bottom)); }
  .dock-toolbar { min-height: 27px; margin-bottom: 1px; }
  .self-avatar { width: 50px; height: 50px; font-size: 24px; }
  .self-name { font-size: 10px; max-width: 78px; }
  .self-score { font-size: 9px; }
  .selection-chip { font-size: 9px; }
  .mini-tool { font-size: 9px; padding: 4px 5px; }
  .hand { --card-w: 64px; --card-h: 92px; --hand-step: 29px; height: 92px; }
  .hand-countdown { top: auto; right: 0; bottom: 104px; padding: 5px 8px 4px; gap: 3px; }
  .hand-countdown b { font-size: 30px; }
  .hand .card.selected { transform: translateY(-16px); }
  .hand .card:hover { transform: none; }
  .hand .card.selected:hover { transform: translateY(-16px); }
  .card .corner { left: 4px; top: 3px; }
  .card .corner-rank { font-size: 21px; }
  .card .corner-suit { font-size: 12px; }
  .card .center-suit { font-size: 30px; padding-top: 6px; }
  .card .bottom-rank { font-size: 13px; right: 3px; bottom: 3px; }
  .card .trump-pin { font-size: 6px; padding: 0 2px; top: 3px; right: 3px; }
  .card.joker .corner-rank { font-size: 14px; }
  .partner-pin { left: 3px; bottom: 3px; padding: 0 2px; font-size: 6px; }
  .action-row { gap: 6px; min-height: 44px; margin-top: 4px; }
  .hand-dock .action-row { margin-bottom: 18px; }
  .action-row .btn { min-height: 40px; min-width: 70px; padding: 8px 14px; font-size: 13px; }
  .action-row .btn-play { min-width: 92px; }
  body.in-game .toast-root { top: 50%; bottom: auto; }
  .decision-panel { top: 45%; padding: 17px 14px; width: min(94vw, 430px); }
  .decision-actions .btn { min-width: 96px; min-height: 40px; padding: 8px 15px; font-size: 13px; }
  .k-choice { min-height: 86px; }
  .k-choice .k-suit { font-size: 21px; }
  .k-choice .k-rank { font-size: 21px; }
  .waiting-call { font-size: 10px; padding: 8px 12px; }
  .result-card { max-height: 94dvh; }
  .result-head { padding: 19px 18px 16px; }
  .result-body { padding: 14px 15px 18px; }
  .result-actions .btn { min-height: 42px; padding: 8px 18px; font-size: 13px; }
  .score-line { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 8px; }
  .score-delta { font-size: 16px; min-width: 42px; }
  .score-total { min-width: 52px; }
  .remaining-line { grid-template-columns: 80px minmax(0, 1fr); gap: 6px; padding: 6px; }
  .remaining-who strong { font-size: 11px; }
  .remaining-card { min-width: 24px; padding: 2px 4px; font-size: 11px; }
  .chat-drawer { top: auto; width: 100%; height: 74dvh; transform: translateY(102%); border-left: 0; border-top: 1px solid rgba(226, 202, 148, .25); border-radius: 14px 14px 0 0; }
  .chat-drawer.open { transform: translateY(0); }
  .rules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .home-title { font-size: 60px; }
  .seat { width: 96px; }
  .seat.pos-1 { left: 12.5%; }
  .seat.pos-4 { left: 87.5%; }
  .table-center { width: 66vw; }
  .self-name { max-width: 58px; }
  .dock-tools .mini-tool:first-child { display: none; }
  .action-row .btn { min-width: 62px; padding: 7px 10px; }
}

@media (max-width: 370px) {
  .hand { --card-w: 60px; --card-h: 86px; --hand-step: 27px; height: 86px; }
  .hand-countdown { bottom: 98px; }
}

@media (max-width: 340px) {
  .hand { --card-w: 50px; --card-h: 72px; --hand-step: 22px; height: 72px; }
  .hand-countdown { bottom: 84px; }
  .self-play .card { width: 34px; height: 49px; }
}

.game-screen .seat-name { font-size: 15px; }
.game-screen .role-badge { font-size: 13px; padding: 3px 11px; }
.game-screen .seat-count-line { font-size: 14px; }
.game-screen .seat-meta { font-size: 11px; }
.game-screen .seat-bubble.pass,
.game-screen .seat-bubble.finish { font-size: 12px; }
.game-screen .turn-readout { font-size: 14px; }
.game-screen .table-status { font-size: 12px; }
.game-screen .center-play-name { font-size: 12px; }
.game-screen .self-name { font-size: 14px; }
.game-screen .self-score { font-size: 11px; }
.game-screen .selection-chip { font-size: 12px; }
.game-screen .action-row .btn { font-size: 15px; }
.game-screen .action-turn-note { font-size: 13px; }
.game-screen .mini-tool { font-size: 11px; }

@media (max-width: 640px) {
  .game-screen .seat-name { font-size: 12px; }
  .game-screen .role-badge { font-size: 12px; padding: 2px 8px; }
  .game-screen .seat-count-line { font-size: 12px; }
  .game-screen .seat-meta { font-size: 10px; }
  .game-screen .seat-bubble.pass,
  .game-screen .seat-bubble.finish { font-size: 11px; }
  .game-screen .turn-readout { font-size: 12px; }
  .game-screen .table-status { font-size: 10px; }
  .game-screen .center-play-name { font-size: 10px; }
  .game-screen .self-name { font-size: 11px; }
  .game-screen .self-score { font-size: 10px; }
  .game-screen .selection-chip { font-size: 10px; }
  .game-screen .action-row .btn { font-size: 14px; }
  .game-screen .action-turn-note { font-size: 11px; }
  .seat-chat { max-width: 160px; padding: 6px 8px; bottom: 5px; font-size: 12px; }
  .self-chat { max-width: 220px; padding: 6px 9px; font-size: 12px; }
}

/* 澶х尗 / 鑰並 韬唤寮哄寲 */
.avatar.bigcat {
  border-width: 2px;
  animation: bigcat-flash .95s ease-in-out infinite;
}
.avatar.bigcat .avatar-crown { top: -3px; font-size: 34px; }
.avatar.bigcat::before,
.avatar.bigcat::after {
  top: -5px;
  border-left-width: 18px;
  border-right-width: 18px;
  border-bottom-width: 26px;
}
.avatar.bigcat::before { left: 10px; }
.avatar.bigcat::after { right: 10px; }
.seat.has-bigcat .role-badge.bigcat,
.self-cluster .role-badge.bigcat {
  padding: 4px 13px;
  border-width: 2px;
  border-color: rgba(255, 225, 153, .8);
  background: linear-gradient(135deg, #f5d792, #c99b48);
  color: #2b1e08;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 16px rgba(240, 197, 96, .38);
}
.self-avatar.bigcat {
  border-width: 2px;
  animation: self-bigcat-flash .95s ease-in-out infinite;
}
.self-avatar.bigcat .avatar-crown { top: -28px; font-size: 30px; }

.avatar.oldk {
  border-width: 2px;
  border-color: #9ce9dd;
  animation: oldk-flash .95s ease-in-out infinite;
}
.oldk-k-mark {
  left: auto;
  top: auto;
  right: -12px;
  bottom: -12px;
  width: 42px;
  height: 42px;
  border-width: 2px;
  border-color: #ccfff8;
  background: radial-gradient(circle at 32% 28%, #5fc7b8, #1b625a 70%);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 0 0 3px rgba(91, 202, 184, .3), 0 0 20px rgba(94, 225, 205, .55), 0 4px 12px rgba(0, 0, 0, .38);
}
.self-avatar .oldk-k-mark {
  left: -9px;
  top: -9px;
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.seat.has-oldk .role-badge.oldk,
.self-cluster .role-badge.oldk {
  padding: 4px 13px;
  border-width: 2px;
  border-color: rgba(156, 233, 221, .8);
  background: linear-gradient(135deg, #3b9a8e, #1b5d56);
  color: #f1fffc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 16px rgba(91, 202, 184, .4);
}
.self-avatar.oldk.revealed { animation: oldk-flash .95s ease-in-out infinite; }

.avatar.exploder {
  border-width: 2px;
  border-color: #ff6f61;
  animation: exploder-flash .95s ease-in-out infinite;
}
.self-avatar.exploder {
  border-width: 2px;
  border-color: #ff6f61;
  animation: self-exploder-flash .95s ease-in-out infinite;
}

@keyframes exploder-flash {
  0%, 100% {
    opacity: 1;
    border-color: #c94539;
    box-shadow: 0 0 0 3px rgba(201, 69, 57, .42), 0 0 22px rgba(255, 91, 73, .45), 0 8px 24px rgba(0, 0, 0, .3);
    filter: brightness(1);
  }
  50% {
    opacity: .8;
    border-color: #ff7163;
    box-shadow: 0 0 0 8px rgba(255, 104, 86, .9), 0 0 52px rgba(255, 70, 52, .95), 0 8px 24px rgba(0, 0, 0, .3);
    filter: brightness(1.28) saturate(1.2);
  }
}
@keyframes self-exploder-flash {
  0%, 100% {
    opacity: 1;
    border-color: #c94539;
    box-shadow: 0 0 0 3px rgba(201, 69, 57, .45), 0 0 18px rgba(255, 91, 73, .45);
    filter: brightness(1);
  }
  50% {
    opacity: .78;
    border-color: #ff7163;
    box-shadow: 0 0 0 6px rgba(255, 104, 86, .88), 0 0 34px rgba(255, 70, 52, .9);
    filter: brightness(1.3) saturate(1.2);
  }
}

@keyframes bigcat-flash {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(240, 211, 143, .45), 0 0 22px rgba(224, 187, 114, .45), 0 8px 24px rgba(0, 0, 0, .3);
    filter: brightness(1);
  }
  50% {
    opacity: .78;
    box-shadow: 0 0 0 8px rgba(255, 236, 174, .95), 0 0 54px rgba(255, 211, 107, .95), 0 8px 24px rgba(0, 0, 0, .3);
    filter: brightness(1.28) saturate(1.15);
  }
}
@keyframes self-bigcat-flash {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(240, 211, 143, .45), 0 0 18px rgba(224, 187, 114, .42);
    filter: brightness(1);
  }
  50% {
    opacity: .76;
    box-shadow: 0 0 0 6px rgba(255, 236, 174, .9), 0 0 36px rgba(255, 211, 107, .9);
    filter: brightness(1.3) saturate(1.15);
  }
}
@keyframes oldk-flash {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(91, 202, 184, .32), 0 0 22px rgba(94, 225, 205, .4), 0 8px 24px rgba(0, 0, 0, .28);
    filter: brightness(1);
  }
  50% {
    opacity: .78;
    box-shadow: 0 0 0 8px rgba(180, 255, 243, .9), 0 0 50px rgba(94, 225, 205, .95), 0 8px 24px rgba(0, 0, 0, .28);
    filter: brightness(1.28) saturate(1.15);
  }
}

@media (max-width: 640px) {
  .avatar.bigcat .avatar-crown { font-size: 26px; }
  .avatar.bigcat::before,
  .avatar.bigcat::after {
    border-left-width: 14px;
    border-right-width: 14px;
    border-bottom-width: 21px;
  }
  .avatar.bigcat::before { left: 8px; }
  .avatar.bigcat::after { right: 8px; }
  .seat.has-bigcat .role-badge.bigcat,
  .self-cluster .role-badge.bigcat,
  .seat .role-badge.first { padding: 3px 11px; font-size: 14px; }
  .oldk-k-mark { left: -9px; top: -9px; width: 34px; height: 34px; font-size: 18px; }
  .seat.has-oldk .role-badge.oldk,
  .self-cluster .role-badge.oldk { padding: 3px 11px; font-size: 14px; }
  .self-avatar .oldk-k-mark { width: 26px; height: 26px; font-size: 12px; }
  .self-avatar.bigcat .avatar-crown { font-size: 26px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .game-screen {
    height: 100dvh;
    min-height: 0;
  }
  .game-body { min-height: 0; }
  .decision-panel {
    top: 50%;
    width: min(92vw, 640px);
    max-height: calc(100% - 10px);
    padding: 12px 18px;
    overflow-y: auto;
  }
  .decision-title { margin: 2px 0 3px; font-size: 24px; }
  .decision-text { font-size: 11px; line-height: 1.5; }
  .decision-taunt { margin: 4px 0 1px; font-size: clamp(24px, 4vw, 34px); }
  .decision-countdown { margin: 4px 0 2px; font-size: 26px; }
  .decision-foot { font-size: 9px; }
  .decision-actions { margin-top: 6px; gap: 8px; }
  .decision-actions .btn { min-height: 38px; padding: 7px 18px; font-size: 13px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .game-screen { height: 100dvh; min-height: 0; }
  .topbar { min-height: 44px; padding: 4px 10px; gap: 8px; }
  .brand-seal { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .topbar .pill { font-size: 9px; padding: 3px 7px; }
  .topbar-right .icon-btn { width: 34px; height: 34px; font-size: 16px; }
  .called-k-strip { min-height: 42px; padding: 4px 12px; gap: 8px; }
  .called-k-strip-title, .called-k-strip-label { font-size: 11px; }
  .called-k-strip-name { max-width: 110px; font-size: 12px; }
  .called-k-strip-card { width: 30px; height: 38px; }
  .called-k-strip-card b { font-size: 17px; }
  .called-k-strip-card span { font-size: 11px; }
  .oldk-strip { font-size: 10px; padding: 3px 8px 3px 3px; }

  .game-body { min-height: 0; }
  .seat { width: 92px; }
  .seat.pos-1 { top: 62px; left: 12%; }
  .seat.pos-2 { top: 62px; left: 37%; }
  .seat.pos-3 { top: 62px; left: 63%; }
  .seat.pos-4 { top: 62px; left: 88%; }
  .seat-play, .self-play { display: none !important; }
  .avatar-wrap { width: 60px; height: 60px; }
  .avatar { font-size: 23px; }
  .avatar.bigcat .avatar-crown { top: -1px; font-size: 21px; }
  .avatar.bigcat::before, .avatar.bigcat::after {
    top: -3px; border-left-width: 9px; border-right-width: 9px; border-bottom-width: 14px;
  }
  .avatar.bigcat::before { left: 5px; }
  .avatar.bigcat::after { right: 5px; }
  .oldk-k-mark { width: 26px; height: 26px; left: -7px; top: -7px; font-size: 13px; border-width: 1px; }
  .seat-name-line { margin-top: 3px; gap: 3px; }
  .seat-name { font-size: 11px; }
  .seat .role-badge { padding: 1px 6px; font-size: 9px; border-width: 1px; }
  .seat.has-bigcat .role-badge.bigcat, .seat.has-oldk .role-badge.oldk, .seat .role-badge.first { padding: 2px 7px; font-size: 10px; }
  .seat-count-line { margin-top: 2px; padding: 1px 5px; font-size: 9px; }
  .seat-meta { display: none; }
  .seat-bubble.thinking, .seat-bubble.pass { font-size: 18px; padding: 5px 10px; min-width: 68px; border-radius: 12px; }
  .seat-bubble.thinking::after, .seat-bubble.pass::after { border-width: 6px; }
  .seat.pos-2 .seat-bubble.thinking, .seat.pos-2 .seat-bubble.pass, .seat.pos-2 .seat-bubble.finish,
  .seat.pos-3 .seat-bubble.thinking, .seat.pos-3 .seat-bubble.pass, .seat.pos-3 .seat-bubble.finish { top: 64px; bottom: auto; }

  .table-center { width: 48vw; top: 42%; }
  .turn-readout { font-size: 10px; padding: 4px 9px; }
  .center-play-combo { font-size: 24px; }
  .center-play-name { font-size: 9px; }
  .table-status { font-size: 9px; }

  .hand-dock { padding: 3px 8px max(8px, env(safe-area-inset-bottom)); }
  .dock-toolbar { min-height: 22px; margin-bottom: 0; }
  .self-avatar { width: 38px; height: 38px; font-size: 16px; }
  .self-name { font-size: 10px; }
  .self-score { font-size: 9px; }
  .self-avatar.bigcat .avatar-crown { top: -17px; font-size: 17px; }
  .selection-chip { font-size: 9px; }
  .mini-tool { display: none; }
  .hand-dock .action-row { margin: 0 0 5px; }
  .action-row .btn { min-width: 64px; min-height: 31px; padding: 5px 12px; font-size: 12px; }
  .action-row .btn-play { min-width: 84px; }
  .hand { --card-w: 72px; --card-h: 104px; --hand-step: 29px; height: 104px; }
  .hand-countdown { top: auto; right: 0; bottom: 116px; padding: 4px 8px 3px; }
  .hand-countdown b { font-size: 24px; }
  .hand-countdown .countdown-label { font-size: 8px; }
  .hand-countdown .countdown-unit { font-size: 10px; }

  .decision-panel {
    top: 0; transform: translateX(-50%); width: min(92vw, 620px);
    max-height: calc(100% - 112px); padding: 10px 16px; overflow-y: auto;
  }
  .decision-title { margin: 1px 0 2px; font-size: 23px; }
  .decision-text { font-size: 10px; line-height: 1.45; }
  .decision-taunt { margin: 3px 0 0; font-size: clamp(23px, 4vw, 32px); }
  /* 爆了窗口在矮屏同样各小 1px（原 23px / clamp(23,4vw,32)） */
  .decision-panel.risk .decision-title { font-size: 22px; }
  .decision-panel.risk .decision-taunt { font-size: calc(clamp(23px, 4vw, 32px) - 1px); }
  .decision-countdown { margin: 3px 0 1px; font-size: 22px; }
  .decision-foot { font-size: 8px; }
  .decision-actions { margin-top: 4px; gap: 8px; }
  .decision-actions .btn { min-height: 34px; padding: 6px 15px; font-size: 12px; }
}

@media (max-height: 700px) {
  .home-nav { height: 58px; }
  .brand-seal { width: 34px; height: 34px; font-size: 19px; }
  .brand-text b { font-size: 19px; }
  .brand-text small { margin-top: 3px; font-size: 8px; }
  .home-main {
    min-height: calc(100dvh - 100px);
    padding: 8px 0 12px;
  }
  .home-title {
    margin: 6px 0 2px;
    font-size: clamp(44px, 11vh, 86px);
  }
  .home-entry {
    max-width: 480px;
    margin-top: 12px;
  }
  .entry-help { display: none; }
  .home-credit { bottom: 4px; font-size: 11px; }
  .home-music-btn { padding: 6px 10px; font-size: 10px; }
}

@media (max-height: 700px) {
  .lobby-shell { padding: 8px 16px 14px; }
  .lobby-head { align-items: center; gap: 12px; }
  .lobby-kicker { font-size: 9px; }
  .lobby-title { margin-top: 2px; font-size: 30px; }
  .lobby-sub { margin-top: 2px; font-size: 10px; }
  .room-ticket { min-width: 190px; padding: 8px 12px; }
  .room-ticket small { font-size: 8px; }
  .room-ticket strong { margin: 2px 0 5px; font-size: 24px; }
  .room-ticket .quick-row { gap: 5px; }
  .room-ticket .btn { min-height: 26px; padding: 3px 8px; font-size: 10px; }
  .lobby-grid { gap: 10px; }
  .lobby-table-panel { padding: 12px; }
  .panel-head { margin-bottom: 8px; }
  .panel-title { font-size: 17px; }
  .panel-note { font-size: 10px; }
  .seats-grid { gap: 6px; }
  .lobby-seat { min-height: 122px; padding: 8px 6px 7px; }
  .lobby-seat .mini-avatar { width: 68px; height: 68px; margin-bottom: 6px; font-size: 16px; }
  .lobby-seat.empty .mini-avatar { font-size: 22px; }
  .lobby-seat .seat-name { font-size: 12px; }
  .lobby-seat .seat-meta { margin-top: 2px; font-size: 9px; }
  .lobby-seat .seat-badge-line { margin-top: 4px; }
  .lobby-seat .remove-bot { margin-top: 4px; font-size: 9px; }
  .lobby-seat .add-seat-btn { margin-top: 3px; font-size: 10px; }
  .lobby-actions { margin-top: 8px; gap: 8px; }
  .lobby-actions .hint-line { font-size: 10px; }
  .lobby-actions .btn { min-height: 32px; padding: 5px 10px; font-size: 11px; }
  .lobby-side { gap: 8px; }
  .side-card { padding: 11px 12px; }
  .side-card h3 { margin-bottom: 4px; font-size: 14px; }
  .side-card p { font-size: 10px; line-height: 1.45; }
  .side-card .kv { padding: 4px 0; font-size: 10px; }
  .lobby-flow { display: none; }
  .invite-links { margin-top: 5px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* 澶х尗/鑰並鐨勮韩浠介棯鐑佹槸鐗屽眬鎻愮ず锛屼笉闅忕郴缁熷噺灏戝姩鎬佹晥鏋滃叧闂€?*/
  .avatar.bigcat { animation: bigcat-flash .95s ease-in-out infinite !important; }
  .self-avatar.bigcat { animation: self-bigcat-flash .95s ease-in-out infinite !important; }
  .avatar.oldk { animation: oldk-flash .95s ease-in-out infinite !important; }
  .self-avatar.oldk.revealed { animation: oldk-flash .95s ease-in-out infinite !important; }
  .avatar.exploder { animation: exploder-flash .95s ease-in-out infinite !important; }
  .self-avatar.exploder { animation: self-exploder-flash .95s ease-in-out infinite !important; }
  /* 爆了/抢爆 的身份牌也跟着闪，和头像同步 */
  .seat .role-badge.exploder, .self-tags .role-badge.exploder { animation: exploder-blink .95s ease-in-out infinite !important; }
  /* 鑱婂ぉ姘旀场闈犲姩鐢绘帶鍒舵樉闅愶紱鍑忓皯鍔ㄦ€佹晥鏋滄椂鐩存帴甯镐寒锛屽惁鍒欎細鐬棿鍋滃湪閫忔槑甯с€?*/
  .seat-chat, .self-chat { animation: none !important; opacity: 1 !important; }
  .seat-chat { transform: translateX(-50%); }
}

/* 鎬濊€冧腑 / 涓嶅嚭锛氬ご鍍忎笂鏂瑰ぇ瀛楃姸鎬?*/
.game-screen .seat-bubble.thinking,
.game-screen .seat-bubble.pass {
  z-index: 16;
  min-width: 108px;
  padding: 11px 22px;
  border: 2px solid rgba(226, 202, 148, .55);
  border-radius: 20px;
  font-size: 33px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}
.game-screen .seat-bubble.pass {
  border-color: rgba(226, 202, 148, .4);
  background: #e3d8c0;
}
.game-screen .seat-bubble.thinking::after,
.game-screen .seat-bubble.pass::after {
  border-width: 10px;
}

/* 报单 / 出完牌的气泡：和「思考中」一样大的尺寸 */
.game-screen .seat-bubble.talk {
  z-index: 16;
  min-width: 108px;
  padding: 11px 20px;
  border: 2px solid rgba(226, 202, 148, .6);
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf6e6, #eddcb6);
  color: #33280f;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}
.game-screen .seat-bubble.talk::after { border-width: 10px; border-top-color: #f2e4c6; }
/* 聊天 / 快捷语音气泡：和「思考中 / 报单」一样大 */
.game-screen .seat-chat,
.game-screen .self-chat {
  width: max-content;
  max-width: 460px;
  max-height: 190px;
  min-width: 108px;
  padding: 11px 20px;
  border: 2px solid rgba(226, 202, 148, .6);
  border-radius: 20px;
  background: rgba(250, 242, 224, .98);
  color: #33280f;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .03em;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}
.game-screen .seat-chat.voice-chat,
.game-screen .self-chat.voice-chat { white-space: nowrap; }
.game-screen .seat.pos-1 .seat-chat { left: 0; transform: none; }
.game-screen .seat.pos-4 .seat-chat { left: auto; right: 0; transform: none; }
/* 左右两边的座位气泡很宽，贴着屏幕边对齐，避免被裁掉 */
.game-screen .seat.pos-1 .seat-bubble.talk { left: 0; transform: none; }
.game-screen .seat.pos-1 .seat-bubble.talk::after { left: 96px; }
.game-screen .seat.pos-4 .seat-bubble.talk { left: auto; right: 0; transform: none; }
.game-screen .seat.pos-4 .seat-bubble.talk::after { left: auto; right: 96px; }
/* 上面两家的聊天 / 快捷语音气泡：位置和「思考中」一致（贴着头像侧面） */
.game-screen .seat.pos-2 .seat-chat,
.game-screen .seat.pos-3 .seat-chat {
  top: 38px;
  bottom: auto;
  transform: none;
  animation: side-chat-fade 3s both;
}
.game-screen .seat.pos-2 .seat-chat { left: auto; right: calc(100% + 8px); }
.game-screen .seat.pos-3 .seat-chat { left: calc(100% + 8px); right: auto; }
.game-screen .seat.pos-2 .seat-chat::after {
  left: 100%;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(250, 242, 224, .98);
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.game-screen .seat.pos-3 .seat-chat::after {
  left: auto;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: rgba(250, 242, 224, .98);
  border-top-color: transparent;
  border-bottom-color: transparent;
}
@keyframes side-chat-fade {
  0% { opacity: 0; }
  8%, 78% { opacity: 1; }
  100% { opacity: 0; }
}
/* 上面两家：报单 / 出完牌的气泡也和「思考中」一样贴着头像侧面 */
.game-screen .seat.pos-2 .seat-bubble.talk {
  top: 38px;
  bottom: auto;
  left: auto;
  right: calc(100% + 8px);
  transform: none;
}
.game-screen .seat.pos-3 .seat-bubble.talk {
  top: 38px;
  bottom: auto;
  left: calc(100% + 8px);
  right: auto;
  transform: none;
}
.game-screen .seat.pos-2 .seat-bubble.talk::after {
  left: 100%;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: #f2e4c6;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.game-screen .seat.pos-3 .seat-bubble.talk::after {
  left: auto;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: #f2e4c6;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.game-screen .seat.pos-1 .seat-bubble.thinking,
.game-screen .seat.pos-1 .seat-bubble.pass {
  left: 0;
  transform: none;
}
.game-screen .seat.pos-4 .seat-bubble.thinking,
.game-screen .seat.pos-4 .seat-bubble.pass {
  left: auto;
  right: 0;
  transform: none;
}
.game-screen .seat.pos-2,
.game-screen .seat.pos-3 {
  top: 21%;
  z-index: 25;
}
@media (max-width: 820px) {
  .game-screen .seat.pos-2,
  .game-screen .seat.pos-3 { top: 20%; }
}
@media (max-width: 640px) {
  .game-screen .seat.pos-2,
  .game-screen .seat.pos-3 { top: 20%; }
}

/* 身份牌统一尺寸：大猫 / 红桃4 / 老K / 抢爆·爆了 做成一样大 */
.seat .role-badge.bigcat,
.seat .role-badge.first,
.seat .role-badge.oldk,
.seat .role-badge.exploder {
  padding: 3px 11px;
  border-width: 2px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .05em;
}
/* 抢爆 / 爆了：深红宝石色 + 光圈光晕，和红桃4的亮红区分开 */
.seat .role-badge.exploder,
.self-tags .role-badge.exploder {
  border-color: rgba(255, 138, 118, .82);
  background: linear-gradient(135deg, #741913, #2a0605);
  color: #ffe6df;
  font-weight: 900;
  letter-spacing: .06em;
  animation: exploder-blink .95s ease-in-out infinite;
}
@keyframes exploder-blink {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 122, 104, .95),
      0 0 18px rgba(240, 80, 60, .95),
      0 0 34px rgba(200, 40, 26, .65);
    filter: brightness(1.18);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(255, 150, 130, .3),
      0 0 8px rgba(200, 50, 36, .35),
      0 0 16px rgba(160, 24, 16, .22);
    filter: brightness(.88);
  }
}
/* 爆了 / 抢爆 的牌子尺寸和大猫、老K 保持一致（沿用地上的统一尺寸规则） */
.seat .seat-badge-line .role-badge.exploder {
  padding: 3px 11px;
  border-width: 2px;
  font-size: 13px;
  line-height: 1.4;
}
.self-cluster .self-tags .role-badge.exploder {
  padding: 3px 10px;
  border-width: 2px;
  font-size: 12px;
  line-height: 1.35;
}

/* 大字提示（比如没填称呼） */
.toast.is-big {
  max-width: min(94vw, 720px);
  padding: 18px 30px;
  border-width: 2px;
  border-color: rgba(226, 202, 148, .5);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.35;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.toast.is-big.error {
  background: rgba(74, 20, 16, .96);
  border-color: rgba(240, 138, 124, .75);
  color: #ffe3da;
}

/* 谁在说话：头像亮紫色脉动光环 + 「麦」变亮（刻意和「老K」的青绿描边区分开） */
.mini-avatar.is-speaking,
.avatar-wrap.is-speaking .avatar,
.self-avatar.is-speaking {
  box-shadow: 0 0 0 6px rgba(176, 148, 255, .95), 0 0 26px rgba(150, 110, 255, .7);
  animation: speaking-pulse 1s ease-in-out infinite;
}
.avatar-wrap.is-speaking .voice-on-mark,
.mini-avatar.is-speaking .voice-on-mark,
.self-avatar.is-speaking .voice-on-mark {
  background: linear-gradient(180deg, #c3b0ff, #6d4ad6);
  color: #fff;
}
@keyframes speaking-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(176, 148, 255, .95), 0 0 18px rgba(150, 110, 255, .55); }
  50% { box-shadow: 0 0 0 10px rgba(176, 148, 255, .55), 0 0 34px rgba(150, 110, 255, .85); }
}

/* 爆了 / 抢爆 身份牌前的炸弹图标 */
.role-badge.exploder .badge-bomb {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  line-height: 1;
}
.role-badge.exploder .badge-bomb-svg {
  width: 1.05em;
  height: 1.05em;
  display: block;
  filter: drop-shadow(0 0 5px rgba(255, 130, 100, .85));
}
.role-badge.exploder .badge-text { vertical-align: middle; }

/* 左上那家的叫 K 小牌挂到头像左边；右上那家保持在头像右边 */
.game-screen .seat.pos-2 .avatar-wrap .called-k-card {
  right: auto;
  left: -36px;
}
.game-screen .seat.pos-3 .avatar-wrap .called-k-card {
  left: auto;
  right: -36px;
}
/* 上面两家贴顶，叫K小牌往下挪一点，别被屏幕顶端裁掉 */
.game-screen .seat.pos-2 .avatar-wrap .called-k-card,
.game-screen .seat.pos-3 .avatar-wrap .called-k-card {
  top: 8px;
}
.game-screen .seat.pos-2 .avatar-wrap .called-k-card .called-k-caption {
  left: auto;
  right: -1px;
}

/* 结算时亮出来的剩牌：标清楚是谁的、还剩几张 */
.seat-reveal-caption {
  margin: 0 auto 4px;
  width: max-content;
  max-width: 100%;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 202, 148, .45);
  background: rgba(6, 28, 18, .9);
  color: #f0dca8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

/* 分数正负分色：正分绿、负分红 */
.seat-score.score-pos, .self-score.score-pos { color: #9fe3b6 !important; }
.seat-score.score-neg, .self-score.score-neg { color: #f2a99b !important; }

/* 结算时「本局结束」放在中央「剩余牌」面板上方 */
/* 结算提示放进「剩余牌」面板顶部，见 .remain-result */
/* 结算操作按钮（再来一局 / 查看结算）往下靠一点 */
/* 结算时操作按钮往下靠一点（不脱离文档流，避免跑位） */



/* 窄屏（缩放版）叫人横幅收窄：隐藏「老K 未现身」，避免盖住右上角玩家 */
@media (max-width: 900px) {
  .game-screen .called-k-strip .oldk-strip { display: none; }
}

/* 结算：右下角「剩余牌」面板 */
.remain-panel {
  position: absolute;
  z-index: 34;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(52vw, 420px);
  max-height: 40vh;
  overflow-y: auto;
  padding: 8px 10px 9px;
  border: 1px solid rgba(226, 202, 148, .32);
  border-radius: 12px;
  background: rgba(6, 26, 16, .82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
  backdrop-filter: blur(3px);
  scrollbar-width: thin;
}
.remain-panel-title {
  margin-bottom: 5px;
  color: #e8cf9a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
.remain-row { display: grid; gap: 3px; padding: 4px 0; border-top: 1px solid rgba(226, 202, 148, .1); }
.remain-row:first-of-type { border-top: 0; }
.remain-who { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.remain-who strong { color: #f0e6d0; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remain-who small { color: #a9bcab; font-size: 10px; flex: none; }
.remain-cards { display: flex; flex-wrap: wrap; gap: 3px; }
.remain-card {
  min-width: 22px;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid #d6c9b1;
  background: #fffdf7;
  color: #23211c;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.remain-card.red { color: #b8352c; }
.remain-card.joker { border-color: #c8a45c; background: #f5e8c9; color: #75501a; }
.remain-panel-empty { display: none; }

/* 剩余牌面板里的身份小标 */
.remain-who-left { display: flex; align-items: center; gap: 5px; min-width: 0; }
.remain-who-left strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remain-role {
  flex: none;
  padding: 0 5px;
  border: 1px solid rgba(226, 202, 148, .45);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
}
.remain-role.bigcat, .remain-role.bigcat_oldk { border-color: rgba(240, 211, 143, .7); background: rgba(200, 164, 92, .22); color: #f2d795; }
.remain-role.oldk { border-color: rgba(96, 175, 166, .6); background: rgba(45, 123, 115, .25); color: #9fded4; }
.remain-role.exploder { border-color: rgba(210, 74, 62, .6); background: rgba(167, 45, 40, .3); color: #f2a69a; }

/* 接风提示：轮到接风的人自由领出 */
.last-play-label.jiefeng {
  color: #ffd98a;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(240, 197, 96, .45);
}

/* 「本局结束」标签放在剩余牌面板最上面 */
.remain-result {
  margin: 0 auto 6px;
  width: max-content;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 211, 143, .55);
  background: rgba(8, 36, 24, .9);
  color: #f6dfa8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}


/* 爆了窗口：顶栏放横幅+倒计时，去掉大字口号，信息更紧凑 */
.explode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.explode-head .explode-banner { margin-bottom: 0; }
/* 爆了窗口：横幅「爆了窗口 · 抢爆/爆了」固定在框内左上角（倒计时仍在右上） */
.decision-panel.risk .explode-banner {
  position: absolute;
  top: 10px;
  left: 12px;
  margin: 0;
}
/* 横幅脱离文档流后，顶栏只剩倒计时，把它推回右上角 */
.decision-panel.risk .explode-head { justify-content: flex-end; }
/* 倒计时 +「已决定」也贴到框内右上角（相对面板定位） */
.decision-panel.risk .explode-head { min-height: 44px; }
.decision-panel.risk .explode-clock {
  position: absolute;
  top: 8px;
  right: 14px;
  align-items: flex-end;
}
/* 正文（标题→按钮）整体往上提一点：用位移而不是加大 padding，
   否则面板总高超过 max-height（缩放版 291px / 矮屏档）就会冒出面板内滚动条。 */
.decision-panel.risk > *:not(.explode-head) { transform: translateY(-10px); }
/* 面板内不显示滚动条：窗口偏矮时内容略高也不该冒出灰条（触摸板仍可滚动） */
.decision-panel.risk {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.decision-panel.risk::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* 再压一点行距，尽量让矮窗口也一屏放得下（不影响其它决策窗口） */
.decision-panel.risk .decision-wait { margin: 6px auto 2px; }
.decision-panel.risk .decision-taunt { margin: 4px 0 0; }
.decision-panel.risk .decision-actions { margin-top: 10px; }
.decision-countdown.compact {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}
.decision-countdown.compact small { font-size: 10px; }
/* 顶栏右侧：倒计时 + 下面一行「已决定 N/5」 */
.explode-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: none;
}
.explode-decided {
  color: #6b6046;
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.explode-stats {
  margin: 8px 0 0;
  color: #6b6046;
  font-size: 12px;
  letter-spacing: .02em;
}
.explode-stats b { color: #b62f27; font-weight: 800; }

.decision-taunt { margin: 6px 0 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }

/* 爆了窗口 / 叫K窗口：统一尺寸与位置 */
.decision-panel {
  width: min(92vw, 480px);
  min-height: 260px;
  padding: 16px 18px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 内容比面板高时，居中会把顶栏顶到边框外、按钮压到边框上：
     用 safe center 让溢出时从顶部开始排，顶栏和按钮都留在框内。 */
  justify-content: safe center;
}
/* 顶栏（爆了窗口 · 抢爆 + 倒计时）和按钮行不参与压缩 */
.decision-panel > .explode-head,
.decision-panel > .decision-actions { flex: none; }
.explode-banner.call {
  background: rgba(45, 123, 115, .12);
  color: #1f6b62;
}
.decision-panel .k-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.decision-panel .k-choice {
  flex: 1 1 0;
  max-width: 108px;
  min-width: 76px;
}
.decision-panel .k-choice { min-height: 50px; padding: 3px 2px; }
.decision-panel .k-choice .k-suit { font-size: 22px; }
.decision-panel .k-choice .k-rank { font-size: 15px; }

/* 首页署名前的头像标记 */
.home-credit-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(226, 202, 148, .38);
}

/* 邀请链接进来的提示卡 */
.invite-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 8px;
  padding: 12px 16px;
  border: 1px solid rgba(230, 198, 129, .45);
  border-radius: 12px;
  background: rgba(200, 164, 92, .1);
}
.invite-card-kicker { color: #d3bf94; font-size: 11px; letter-spacing: .16em; }
.invite-card-code {
  color: #ffe3a8;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .28em;
  line-height: 1.15;
}
.invite-card-tip { margin: 2px 0 0; color: rgba(245, 238, 223, .72); font-size: 12px; }

/* 暂停面板：房主操作区 */
.pause-host {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 202, 148, .18);
  text-align: left;
}
.pause-host-title {
  margin: 0 0 2px;
  color: #c9b68c;
  font-size: 11px;
  letter-spacing: .14em;
}
.pause-host-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}
.pause-host-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.pause-auto-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 202, 148, .4);
  background: rgba(200, 164, 92, .14);
  color: #f2d795;
  font-size: 11px;
  font-weight: 700;
}
.pause-host-name { font-size: 13px; color: #ece3d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pause-host .btn { min-height: 32px; }
.pause-host > .btn { margin-top: 4px; }

/* 大小王图片：先铺一层底色，图片没到时也不会是一片空白 */
.card.joker-photo,
.display-card.joker-photo {
  background: linear-gradient(150deg, #fdf6e6 0%, #f3e6c8 55%, #e8d7ae 100%);
}

/* 大猫头像只隐藏皇冠，保留两侧尖角装饰 */
.avatar-crown {
  display: none !important;
}



/* 老K 圆标：统一放在头像右下角向外突出（覆盖前面各处写死的 left/top） */
.oldk-k-mark {
  left: auto !important;
  top: auto !important;
  right: -12px !important;
  bottom: -9px !important;    /* 共上移 3px */
}
.self-avatar .oldk-k-mark {
  left: auto !important;
  top: auto !important;
  right: -7px !important;
  bottom: -4px !important;    /* 共上移 3px */
}


/* 「叫 X K」铭牌统一金色（红桃/方块也不再是粉红） */
.called-k-inline,
.called-k-inline.red {
  border-color: rgba(240, 211, 143, .6) !important;
  background: rgba(200, 164, 92, .24) !important;
  color: #ffe6ae !important;
}
.called-k-inline small {
  color: #c5a66b !important;
}

/* 「叫 X K」铭牌和「大猫」徽章统一尺寸（原来 14px/5px13px 比徽章大一圈） */
.seat-badge-line > .called-k-inline,
.self-tags > .called-k-inline {
  padding: 3px 11px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  border-width: 2px !important;
  box-sizing: border-box !important;
}
.seat-badge-line > .called-k-inline small,
.self-tags > .called-k-inline small {
  font-size: 11px !important;
}

/* 座位徽章行（老K / 红桃4 / 叫 X K）往下让 2px，别和上面「0 分」的边框贴在一起 */
.seat .seat-badge-line {
  position: relative !important;
  top: 2px !important;
}

/* 自己的头像被叫成老K 时也要闪边框（原来依赖 .revealed，身份没公开前不闪） */
.self-avatar.oldk {
  animation: oldk-flash .95s ease-in-out infinite !important;
}

/* 自己的身份牌/叫K铭牌浮在头像下方，不占布局宽度：
   否则一局多出几块铭牌会把 self-cluster 撑宽，左下角头像就不再跟着手牌移动了 */
.self-cluster .self-tags {
  position: absolute !important;
  left: 0;
  top: calc(100% + 6px);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 44;
  pointer-events: none;
}


/* 手牌区容器固定宽度：手牌数量变化时，左下角「自己」那一格不再跟着移动（位置保持不变） */
.hand-dock .dock-inner {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* 「自己」那一格固定在初始位置（手牌区容器左边缘），不再随牌数移动 */
.hand-dock .self-cluster {
  left: 0 !important;
  right: auto !important;
}
/* 手牌出完时仍然贴左边（原来那套逻辑） */
.hand-dock:has(.hand.empty) .self-cluster {
  left: 8px !important;
  right: auto !important;
}

/* 牌桌右下角常驻聊天：最近 3 条，显示在六个按钮上方 */
.table-chat-feed {
  position: fixed;
  right: 22px;
  bottom: 76px;
  z-index: 86;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: min(42vw, 340px);
  pointer-events: none;
}
.table-chat-feed[hidden] { display: none; }
.table-chat-row {
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 10px;
  border: 1px solid rgba(226, 202, 148, .22);
  background: rgba(3, 19, 12, .74);
  color: #f3e8d0;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.table-chat-name { color: #e6c681; font-weight: 700; }
.table-chat-text { color: #f3e8d0; }

/* 叫K提示条下面的全屏按钮 */
.game-screen .fullscreen-toggle {
  position: fixed;
  top: 62px;
  right: 12px;
  z-index: 96;
  min-width: 88px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(226, 202, 148, .38);
  background: rgba(5, 26, 15, .82);
  color: #ffe7b0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .4);
}
.game-screen .fullscreen-toggle:active { transform: scale(.96); }
/* 没有「大猫叫K」提示条的局（爆了 / 抢爆、结算等）：按钮直接贴到最右上角 */
.game-screen:not(.has-call-strip) .fullscreen-toggle {
  top: 8px;
  right: 8px;
}

/* 拖牌到牌桌中间：中央那句提示直接变成「出牌」两个字，表示松手就能出 */
.table-center.drop-play-hint {
  transform: none;
}
.turn-readout.drop-play-label {
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 140, .9);
  background: linear-gradient(135deg, #ffe8ad, #e0ba6a);
  color: #2a1b06;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .18em;
  box-shadow: 0 0 0 3px rgba(255, 214, 140, .35), 0 12px 28px rgba(0, 0, 0, .35);
}

/* 语音光圈优先于身份闪烁：自己是老K / 大猫 / 爆了时，说话也要能看到紫色光圈 */
.self-avatar.is-speaking,
.self-avatar.oldk.is-speaking,
.self-avatar.oldk.revealed.is-speaking,
.self-avatar.bigcat.is-speaking,
.self-avatar.exploder.is-speaking {
  animation: speaking-pulse 1s ease-in-out infinite !important;
  box-shadow: 0 0 0 6px rgba(176, 148, 255, .95), 0 0 26px rgba(150, 110, 255, .7) !important;
}

/* ---------- 扔东西（彩蛋） ---------- */
.avatar-wrap.can-throw { cursor: pointer; }
.avatar-wrap.can-throw:active { transform: scale(.97); }

.prop-picker {
  position: fixed;
  z-index: 120;
  transform: translateX(-50%);
  padding: 8px 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(226, 202, 148, .36);
  background: rgba(6, 32, 20, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .5);
  animation: prop-picker-in .16s ease;
}
.prop-picker-title {
  margin-bottom: 6px;
  color: #e7d5b3;
  font-size: 11px;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
}
.prop-picker-grid { display: flex; gap: 6px; }
.prop-item {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(226, 202, 148, .24);
  background: rgba(255, 255, 255, .05);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.prop-item:hover { transform: translateY(-2px) scale(1.06); background: rgba(200, 164, 92, .22); }
.prop-item.nice { border-color: rgba(200, 164, 92, .38); }
@keyframes prop-picker-in {
  from { opacity: 0; transform: translate(-50%, -4px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.prop-fly {
  position: fixed;
  z-index: 130;
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  will-change: transform;
  transition: transform .85s cubic-bezier(.3, .6, .3, 1);
  transform: translate(0, 0) rotate(0deg);
}
.prop-bit {
  position: fixed;
  z-index: 129;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: prop-bit-fly .9s ease-out forwards;
}
@keyframes prop-bit-fly {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -140%) scale(1.15); }
}
.avatar-wrap.prop-hit { animation: prop-hit .5s ease; }
@keyframes prop-hit {
  0%, 100% { transform: translateX(0) rotate(0deg) scale(1); }
  20% { transform: translateX(-8px) rotate(-5deg) scale(1.05); }
  45% { transform: translateX(8px) rotate(5deg) scale(1.05); }
  70% { transform: translateX(-5px) rotate(-3deg) scale(1.02); }
}
.prop-bubble {
  position: fixed;
  z-index: 131;
  transform: translate(-50%, -100%);
  /* 和「不出 / 思考中」同款，但整体小一档 */
  min-width: 82px;
  padding: 7px 15px;
  border: 2px solid rgba(226, 202, 148, .55);
  border-radius: 15px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: prop-bubble-in .22s ease;
}
.prop-bubble.hit { background: rgba(167, 45, 40, .94); color: #ffe9e4; }
.prop-bubble.poke { background: rgba(255, 244, 214, .97); color: #33230a; }
.prop-bubble.nice { background: rgba(200, 164, 92, .94); color: #2a1c06; }
@keyframes prop-bubble-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 命中后「糊一脸」：番茄汁 / 蛋液 / 便便糊在头像上，2.6 秒后淡出 */
.prop-splat {
  position: fixed;
  z-index: 128;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  animation: splat-in .32s cubic-bezier(.2, 1.5, .4, 1);
  transition: opacity .7s ease;
}
.prop-splat.is-fading { opacity: 0; }
.prop-splat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 32%, var(--splat, rgba(196, 38, 30, .8)) 0 24%, transparent 25%),
    radial-gradient(circle at 66% 40%, var(--splat, rgba(196, 38, 30, .8)) 0 17%, transparent 18%),
    radial-gradient(circle at 46% 66%, var(--splat, rgba(196, 38, 30, .8)) 0 21%, transparent 22%),
    radial-gradient(circle at 76% 70%, var(--splat, rgba(196, 38, 30, .8)) 0 13%, transparent 14%),
    radial-gradient(circle at 20% 62%, var(--splat, rgba(196, 38, 30, .8)) 0 15%, transparent 16%);
  mix-blend-mode: multiply;
  opacity: .9;
}
/* 鲜花 / 掌声不是糊脸，是金色光晕 */
.prop-splat.prop-flower::before,
.prop-splat.prop-clap::before {
  background: radial-gradient(circle at 50% 48%, rgba(255, 228, 156, .8), rgba(255, 210, 120, .28) 55%, transparent 68%);
  mix-blend-mode: screen;
}
.prop-splat-emoji {
  position: absolute;
  left: 46%;
  top: 57%;
  transform: translate(-50%, -50%) rotate(-14deg);
  line-height: 1;
  opacity: .96;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .4));
}
/* 鲜花 / 掌声：金色光圈 + 内描边，更像「打赏」而不是糊脸 */
.prop-splat.prop-flower { box-shadow: inset 0 0 0 3px rgba(255, 226, 150, .5); }
.prop-splat.prop-clap { box-shadow: inset 0 0 0 3px rgba(255, 236, 180, .45); }
@keyframes splat-in {
  0% { opacity: 0; transform: scale(.5); }
  65% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* 拖牌扔人：落点高亮 */
.avatar-wrap.prop-drop-target {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 214, 140, .9), 0 0 24px rgba(255, 196, 96, .6);
  transform: scale(1.05);
  transition: transform .12s ease, box-shadow .12s ease;
}

/* 飞出去的牌（真实牌面节点） */
.prop-card {
  position: fixed;
  z-index: 134;
  width: 86px;
  height: 122px;
  margin: 0;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}
.prop-card .corner-rank { font-size: 20px; }
.prop-card .center-suit { font-size: 30px; }
.prop-card .bottom-rank { font-size: 15px; }

/* 拖出牌堆时跟手的那一沓牌：只动 transform，阴影用 box-shadow（filter 每帧重绘很卡） */
.drag-ghost-stack {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 137;
  width: 86px;
  height: 122px;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity .18s ease;
}
.drag-ghost-stack .prop-card.drag-ghost-card {
  position: absolute;
  width: 86px;
  height: 122px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
  opacity: .97;
}

/* 连击晕眩：😵 盖在头像上 3 秒 */
.prop-dizzy {
  position: fixed;
  z-index: 127;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;          /* 让放大的 😵 正好裁成一个圆形盖住整张头像 */
  background: rgba(6, 26, 16, .28);
  pointer-events: none;
  animation: dizzy-in .16s ease-out;
  transition: opacity .4s ease;
}
.prop-dizzy.is-fading { opacity: 0; }
@keyframes dizzy-in {
  from { opacity: 0; transform: scale(.82) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* 宣布爆了 / 抢爆：全屏红闪 + 头像炸开光圈 */
.explode-flash {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 86, 60, .62), rgba(186, 18, 14, .34) 58%, rgba(90, 6, 6, .12) 80%, transparent 92%);
  box-shadow: inset 0 0 120px 40px rgba(180, 20, 16, .55);
  opacity: 0;
}
.explode-ring {
  position: fixed;
  z-index: 125;
  border-radius: 50%;
  border: 3px solid rgba(255, 96, 70, .92);
  box-shadow: 0 0 32px rgba(255, 70, 50, .7), inset 0 0 26px rgba(255, 70, 50, .55);
  pointer-events: none;
}

/* ===========================================================================
   手牌间距自适应 + 按下预高亮（选牌手感补丁 · 2026-11-13）
   ---------------------------------------------------------------------------
   原实现把 --hand-step 写死成 29px（牌宽 64），意味着每张牌只有 29px 是
   「看得见、点得到」的条带。手指按压定位误差普遍在 ±10~15px，条带只有
   29px 时必然点到邻牌 —— 这才是「误触旁边那张」的真正来源（与区间算法无关）。

   这里改成按张数铺开：牌少时把间距拉到接近不重叠（最多露 82% 牌宽），
   牌多时按可用宽度等分。11 张牌在 430px 屏上从 29px → 约 34px；
   10 张 → 约 38px；5 张 → 52px（几乎不重叠）。
   =========================================================================== */

/* 按下时立刻标出「这一次会选中哪张」：点偏了一眼就能看见，可以马上改手 */

/* 拖选过程中：待选中的牌子只压一层淡遮罩，位置上不动；松手才提交成「上移」。 */
.hand .card.pending::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(82, 126, 176, .30);
  pointer-events: none;
}
