/* 狙击扑克 · 界面与牌桌 */

:root {
  --bg: #0b0a0d;
  --panel: #17141d;
  --panel-2: #201a29;
  --panel-3: #2a2235;
  --line: rgba(216, 180, 106, 0.18);
  --line-strong: rgba(216, 180, 106, 0.4);
  --gold: #d8b46a;
  --gold-2: #f1d28c;
  --paper: #f1e8d8;
  --muted: rgba(241, 232, 216, 0.58);
  --muted-2: rgba(241, 232, 216, 0.36);
  --purple: #6c3fa0;
  --purple-2: #8d5bc7;
  --purple-deep: #2a133f;
  --blood: #a92f35;
  --green: #8fc49a;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-gothic: "Grenze Gotisch", "UnifrakturMaguntia", "Georgia", serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--paper);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(11, 10, 13, 0.42), rgba(11, 10, 13, 0.86)),
    #0b0a0d url("/assets/img/bg-concrete.jpg") center / cover fixed;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--gold);
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: -4px;
}

.avatar {
  line-height: 0;
}

.avatar-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ───────── 通用控件 ───────── */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
  min-height: 42px;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity 0.2s, transform 0.4s var(--ease);
  pointer-events: none;
}

.btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(40%);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--gold {
  --btn-bg: linear-gradient(150deg, #e7c681, #c59a4e 52%, #9d7134);
  --btn-fg: #1b130b;
  border-color: rgba(255, 232, 178, 0.6);
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--ghost {
  --btn-bg: rgba(20, 17, 26, 0.55);
  --btn-fg: rgba(241, 232, 216, 0.86);
  border-color: rgba(216, 180, 106, 0.25);
}

.btn--danger {
  --btn-bg: rgba(169, 47, 53, 0.16);
  --btn-fg: #f0b5b7;
  border-color: rgba(169, 47, 53, 0.5);
}

.btn--sm {
  padding: 8px 13px;
  min-height: 34px;
  font-size: 12px;
  border-radius: 6px;
}

.btn--lg {
  padding: 14px 26px;
  min-height: 48px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.link {
  border: 0;
  background: none;
  color: var(--gold);
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.field > span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 7px;
  background: rgba(8, 7, 11, 0.55);
  color: var(--paper);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input::placeholder {
  color: rgba(241, 232, 216, 0.3);
}

.input:focus {
  border-color: var(--gold);
  background: rgba(8, 7, 11, 0.75);
  box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.12);
}

.input--code {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
}

.range {
  width: 100%;
  height: 3px;
  appearance: none;
  background: rgba(241, 232, 216, 0.16);
  border-radius: 99px;
  outline: none;
}

.range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #1a151f;
  box-shadow: 0 0 0 2px rgba(216, 180, 106, 0.35);
  cursor: pointer;
}

.panel {
  position: relative;
  background:
    linear-gradient(155deg, rgba(28, 23, 35, 0.96), rgba(13, 11, 17, 0.97));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/grunge.png") center / cover;
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-top {
  padding: 22px 24px 6px;
}

.panel-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(216, 180, 106, 0.62);
  margin-bottom: 7px;
}

.panel-top h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.12em;
}

.panel-top p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
}

.chip-badge svg {
  width: 22px;
  height: 22px;
}

.chip-badge b {
  font-family: var(--font-display);
  font-weight: 500;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ───────── Landing ───────── */

.landing-screen {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.landing-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(120, 66, 175, 0.32), transparent 50%),
    radial-gradient(circle at 18% 88%, rgba(80, 35, 120, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(46, 24, 68, 0.55), rgba(9, 4, 16, 0.9));
  pointer-events: none;
}

.landing-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/grunge.png") center / cover;
  mix-blend-mode: overlay;
  opacity: 0.14;
  pointer-events: none;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/img/bg-concrete.jpg") center / cover;
  filter: brightness(0.72) contrast(1.05);
}

.landing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 50% at 50% 36%, rgba(150, 90, 210, 0.35), transparent 68%),
    linear-gradient(180deg, rgba(50, 25, 70, 0.45), rgba(8, 3, 15, 0.72));
}

.landing-shell {
  position: relative;
  z-index: 3;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 64px) 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.brand-kicker {
  display: block;
  font-size: 8px;
  letter-spacing: 0.42em;
  color: rgba(216, 180, 106, 0.58);
  margin-bottom: 3px;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.2em;
  color: var(--paper);
}

.brand p {
  margin: 2px 0 0;
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  flex: 1;
  padding: 34px 0 26px;
}

.landing-copy {
  max-width: 620px;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.3em;
}

.landing-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.landing-copy h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.05vw, 56px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  max-width: 660px;
}

.landing-copy h2 em {
  font-style: normal;
  color: var(--gold);
}

.landing-desc {
  max-width: 500px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.landing-features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 480px;
}

.landing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(241, 232, 216, 0.72);
  letter-spacing: 0.05em;
}

.landing-features span {
  font-family: var(--font-gothic);
  font-size: 16px;
  color: var(--gold);
  opacity: 0.75;
  min-width: 24px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-panel {
  padding: 6px 0 16px;
}

.landing-panel .field,
.landing-panel .skin-row,
.landing-panel .landing-buttons,
.landing-panel .landing-hint {
  margin-left: 24px;
  margin-right: 24px;
}

.skin-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(216, 180, 106, 0.12);
  border-radius: 8px;
  background: rgba(8, 7, 11, 0.35);
}

.skin-preview {
  width: 54px;
  height: 64px;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(108, 63, 160, 0.35), rgba(11, 10, 13, 0.8));
  border: 1px solid rgba(216, 180, 106, 0.2);
}

.skin-preview svg {
  width: 100%;
  height: 100%;
}

.skin-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.skin-copy span {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.skin-copy b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.landing-buttons {
  display: grid;
  gap: 10px;
}

.join-row {
  display: flex;
  gap: 8px;
}

.join-row .input {
  flex: 1;
}

.landing-hint {
  margin-top: 13px;
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 180, 106, 0.1);
  color: rgba(241, 232, 216, 0.28);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.landing-table {
  position: absolute;
  z-index: 1;
  right: -14vw;
  bottom: -34vh;
  width: 78vw;
  height: 74vh;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(122, 69, 181, 0.38), transparent 62%),
    linear-gradient(180deg, #3a1e5c, #1a0e28 70%);
  border: 2px solid rgba(233, 223, 203, 0.42);
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.55), inset 0 60px 120px rgba(0, 0, 0, 0.38);
  opacity: 0.75;
  transform: rotate(-6deg);
  pointer-events: none;
}

.landing-cards {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 30%;
  display: flex;
  gap: 12px;
  transform: rotate(-8deg);
  pointer-events: none;
  opacity: 0.88;
}

.landing-cards .card {
  width: clamp(48px, 5vw, 76px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.landing-characters {
  position: absolute;
  z-index: 2;
  right: 16%;
  bottom: 12%;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 26px);
  pointer-events: none;
  opacity: 0.9;
}

.landing-characters .avatar {
  width: clamp(84px, 10vw, 158px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.landing-characters .avatar:nth-child(2) {
  transform: translateY(-18px) scale(1.08);
}

@media (max-width: 980px) {
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 20px 0;
  }

  .landing-copy {
    max-width: none;
  }

  .landing-copy h2 {
    font-size: clamp(34px, 7vw, 52px);
  }

  .landing-copy h2 {
    font-size: clamp(30px, 7.4vw, 40px);
    letter-spacing: 0.02em;
  }

  .landing-table,
  .landing-cards,
  .landing-characters {
    display: none;
  }

  .landing-shell {
    padding-top: 22px;
  }
}

@media (max-width: 620px) {
  .landing-actions .btn {
    flex: 1;
    min-width: 130px;
  }

  .landing-features {
    margin-bottom: 20px;
  }

  .landing-footer {
    flex-direction: column;
    gap: 5px;
  }
}

/* ───────── 大厅 ───────── */

.lobby-screen {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 45%, rgba(108, 63, 160, 0.18), transparent 55%),
    rgba(7, 6, 9, 0.65);
}

.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(216, 180, 106, 0.12);
  background: rgba(9, 8, 12, 0.55);
  z-index: 4;
}

.lobby-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.lobby-title b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--gold);
}

.lobby-title button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px;
}

.lobby-head-actions {
  display: flex;
  gap: 8px;
}

.lobby-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  padding: 18px clamp(14px, 3vw, 36px) 26px;
  min-height: 0;
}

.lobby-stage {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(216, 180, 106, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(108, 63, 160, 0.2), transparent 56%),
    rgba(8, 7, 11, 0.5);
}

.lobby-table {
  position: absolute;
  inset: 7% 3% 3%;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(135, 79, 194, 0.36), transparent 64%),
    linear-gradient(180deg, #2f174e, #150b22 72%);
  border: 2px solid rgba(233, 223, 203, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 60px 110px rgba(0, 0, 0, 0.35);
}

.lobby-center {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.lobby-center .lobby-kicker {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: rgba(216, 180, 106, 0.6);
}

.lobby-center h2 {
  margin: 8px 0 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: 0.2em;
}

.lobby-center p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.lobby-code-big {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.36em;
  color: var(--gold);
  border: 1px solid rgba(216, 180, 106, 0.28);
  border-radius: 6px;
  padding: 7px 14px;
  background: rgba(8, 7, 11, 0.45);
}

.lobby-seat {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  text-align: center;
  width: clamp(92px, 10vw, 142px);
}

.lobby-seat[data-seat="1"] { left: 22%; top: 30%; }
.lobby-seat[data-seat="2"] { left: 12%; top: 64%; }
.lobby-seat[data-seat="3"] { left: 50%; top: 82%; }
.lobby-seat[data-seat="4"] { left: 88%; top: 64%; }
.lobby-seat[data-seat="5"] { left: 78%; top: 30%; }

.lobby-seat .avatar {
  width: 100%;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
}

.lobby-seat .lobby-plate {
  margin: -12px auto 0;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  background: rgba(9, 8, 12, 0.82);
  min-width: 92px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.lobby-seat .lobby-plate b {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-seat .lobby-plate span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lobby-seat.is-empty .lobby-avatar {
  height: clamp(108px, 12vw, 160px);
  border: 1px dashed rgba(216, 180, 106, 0.26);
  border-radius: 50% 50% 44% 44%;
  background: rgba(8, 7, 11, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(216, 180, 106, 0.4);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lobby-seat.is-empty .lobby-plate {
  opacity: 0.55;
}

.lobby-seat .seat-crown {
  position: absolute;
  top: 4%;
  right: 8%;
  width: 22px;
  height: 22px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(216, 180, 106, 0.4));
}

.lobby-seat .seat-bot-tag {
  position: absolute;
  top: 10%;
  left: 6%;
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(108, 63, 160, 0.5);
  border: 1px solid rgba(216, 180, 106, 0.2);
  color: var(--paper);
}

.lobby-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.lobby-panel {
  padding: 16px;
}

.lobby-panel h3 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.lobby-panel h3 small {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lobby-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lobby-setting label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.lobby-setting .setting-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lobby-setting input[type="number"] {
  width: 70px;
  min-height: 34px;
  text-align: center;
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 5px;
  background: rgba(8, 7, 11, 0.5);
  padding: 5px 6px;
  font-size: 12px;
  outline: none;
}

.lobby-setting input[type="number"]:focus {
  border-color: var(--gold);
}

.lobby-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.lobby-actions-row {
  display: flex;
  gap: 8px;
}

.lobby-actions-row .btn {
  flex: 1;
}

.lobby-seats-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lobby-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(216, 180, 106, 0.1);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.25);
  font-size: 11px;
}

.lobby-player-row .mini-avatar {
  width: 24px;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(108, 63, 160, 0.15);
  flex: none;
}

.lobby-player-row .mini-avatar svg {
  width: 100%;
  height: 100%;
}

.lobby-player-row .player-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-player-row .player-tag {
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.lobby-player-row .mini-kick {
  border: 0;
  background: none;
  color: rgba(241, 232, 216, 0.32);
  padding: 2px;
  display: inline-flex;
}

.lobby-player-row .mini-kick:hover {
  color: var(--blood);
}

.lobby-empty-hint {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.lobby-chat {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  max-height: 260px;
}

.lobby-chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 3px;
  margin-bottom: 8px;
}

.lobby-chat-line {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.lobby-chat-line b {
  color: var(--gold);
  font-weight: 500;
}

.lobby-chat-form {
  display: flex;
  gap: 6px;
}

.lobby-chat-form input {
  flex: 1;
  min-height: 32px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 5px;
  background: rgba(8, 7, 11, 0.5);
  padding: 5px 8px;
  font-size: 11px;
  outline: none;
}

.lobby-chat-form button {
  border: 1px solid rgba(216, 180, 106, 0.28);
  background: rgba(216, 180, 106, 0.12);
  color: var(--gold);
  border-radius: 5px;
  padding: 0 10px;
}

@media (max-width: 1000px) {
  .lobby-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lobby-stage {
    min-height: 440px;
  }

  .lobby-side {
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .lobby-head {
    padding: 10px 12px;
  }

  .lobby-title b {
    font-size: 16px;
  }

  .lobby-body {
    padding: 10px;
    gap: 10px;
  }

  .lobby-stage {
    min-height: 380px;
  }

  .lobby-center {
    top: 35%;
  }

  .lobby-seat {
    width: 78px;
  }

  .lobby-seat[data-seat="1"] { left: 22%; top: 26%; }
  .lobby-seat[data-seat="2"] { left: 9%; top: 58%; }
  .lobby-seat[data-seat="3"] { left: 50%; top: 82%; }
  .lobby-seat[data-seat="4"] { left: 91%; top: 58%; }
  .lobby-seat[data-seat="5"] { left: 78%; top: 26%; }

  .lobby-code-big {
    font-size: 17px;
  }
}

/* ───────── 游戏桌面 ───────── */

.game-screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(108, 63, 160, 0.18), transparent 55%),
    rgba(6, 5, 8, 0.55);
}

.hud {
  position: relative;
  z-index: 40;
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(12px, 2.2vw, 26px);
  border-bottom: 1px solid rgba(216, 180, 106, 0.14);
  background: linear-gradient(180deg, rgba(13, 11, 17, 0.92), rgba(10, 8, 13, 0.78));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hud-left,
.hud-center,
.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.hud-logo {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.hud-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.hud-title b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.hud-title small {
  font-family: var(--font-gothic);
  font-size: 7px;
  letter-spacing: 0.22em;
  color: rgba(216, 180, 106, 0.55);
}

.room-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(216, 180, 106, 0.16);
  border-radius: 5px;
  background: rgba(8, 7, 11, 0.45);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.room-code b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.room-code .icon {
  width: 12px;
  height: 12px;
}

.hud-center {
  flex: 1;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.hud-hand {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(241, 232, 216, 0.55);
  white-space: nowrap;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 99px;
  background: rgba(216, 180, 106, 0.06);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.phase-pill.is-turn::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 1.2s infinite;
}

.hud-turn {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-right {
  gap: 4px;
}

.hud-icon {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(241, 232, 216, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.hud-icon:hover {
  color: var(--gold);
  background: rgba(216, 180, 106, 0.08);
  border-color: rgba(216, 180, 106, 0.15);
}

.hud-icon.is-muted {
  color: rgba(169, 47, 53, 0.75);
}

.hud-icon--danger:hover {
  color: #e5aeb0;
  background: rgba(169, 47, 53, 0.12);
  border-color: rgba(169, 47, 53, 0.25);
}

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

.table-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.table-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.table-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.dealer {
  position: absolute;
  left: 50%;
  top: 2.4%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.dealer-avatar {
  width: clamp(82px, 8.5vw, 126px);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.6));
}

.dealer-figure {
  width: 100%;
  height: auto;
  display: block;
}

.dealer-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: -6px;
  padding: 3px 9px;
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 99px;
  background: rgba(8, 7, 11, 0.82);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.dealer-info small {
  font-size: 7px;
  letter-spacing: 0.18em;
  opacity: 0.5;
}

.dealer-deck {
  position: absolute;
  left: calc(100% - 4px);
  top: 36%;
  width: 34px;
  height: 48px;
  transform: translateX(0);
}

.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: #efe4cf url("/assets/img/paper.jpg") center / cover;
  border: 1px solid #16131a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.deck-card:nth-child(1) { transform: translate(-3px, 3px) rotate(-4deg); }
.deck-card:nth-child(2) { transform: translate(-2px, 2px) rotate(-2deg); }
.deck-card:nth-child(3) { transform: translate(-1px, 1px) rotate(0deg); }
.deck-card:nth-child(4) { transform: translate(0, 0) rotate(2deg); }
.deck-card:nth-child(5) { transform: translate(1px, -1px) rotate(4deg); }

.deck-glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(216, 180, 106, 0.15), transparent 65%);
  z-index: -1;
}

/* 座位 */
.seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 12;
  text-align: center;
  pointer-events: none;
  width: clamp(96px, 9.6vw, 152px);
}

.seat[data-seat="3"] {
  width: clamp(84px, 8.6vw, 136px);
}

.seat-avatar-wrap {
  position: relative;
  width: 100%;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.seat-avatar {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}

.seat-aura {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 86%;
  height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 63, 160, 0.26), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(10px);
}

.seat.is-active .seat-aura,
.seat.is-winner .seat-aura {
  opacity: 1;
}

.seat.is-active .seat-avatar {
  transform: translateY(-4px);
  transition: transform 0.35s var(--ease);
}

.seat.is-active .seat-avatar-wrap {
  filter: drop-shadow(0 0 18px rgba(216, 180, 106, 0.28));
}

.seat.is-sniper .seat-avatar-wrap {
  filter: drop-shadow(0 0 22px rgba(169, 47, 53, 0.5));
}

.seat.is-folded .seat-avatar-wrap {
  filter: grayscale(1) brightness(0.55);
  opacity: 0.55;
}

.seat.is-out .seat-avatar-wrap {
  filter: grayscale(1) brightness(0.4);
  opacity: 0.38;
}

.seat.is-sniped .seat-avatar-wrap {
  filter: grayscale(0.7) drop-shadow(0 0 22px rgba(169, 47, 53, 0.55));
}

.seat.is-empty .seat-avatar-wrap {
  height: 70px;
  border: 1px dashed rgba(216, 180, 106, 0.16);
  border-radius: 50% 50% 40% 40%;
  background: rgba(7, 6, 10, 0.2);
}

.seat.is-empty .seat-avatar {
  display: none;
}

.seat-dealer-badge {
  position: absolute;
  z-index: 4;
  right: 4%;
  top: 5%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 106, 0.65);
  background: #17111f;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(216, 180, 106, 0.2);
}

.seat-dealer-badge[hidden],
.seat-you-badge[hidden],
[hidden] {
  display: none !important;
}

.seat-you-badge {
  position: absolute;
  z-index: 4;
  left: 2%;
  top: 8%;
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(216, 180, 106, 0.16);
  border: 1px solid rgba(216, 180, 106, 0.3);
  color: var(--gold);
}

.seat-plate {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  min-width: 96px;
  max-width: 150px;
  padding: 5px 10px 4px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.seat-name-row,
.seat-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.4;
}

.seat-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-tag {
  font-size: 7px;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.seat-chips {
  font-family: var(--font-display);
  font-size: 10px;
  color: rgba(241, 232, 216, 0.62);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.seat-status {
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.seat.is-folded .seat-status { color: rgba(241, 232, 216, 0.38); }
.seat.is-out .seat-status { color: rgba(241, 232, 216, 0.3); }
.seat.is-sniped .seat-status { color: #e4a3a5; }
.seat.is-winner .seat-status { color: var(--gold-2); }

.seat-clock-low .seat-plate {
  border-color: rgba(169, 47, 53, 0.55);
  box-shadow: 0 0 18px rgba(169, 47, 53, 0.18);
}

/* 座位手牌 / 下注 */
.seat-hand {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: 16;
  display: flex;
  gap: 3px;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.42));
  transition: opacity 0.25s;
  pointer-events: none;
}

.seat-hand.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.seat-hand.is-folded {
  opacity: 0.4;
}

.seat-hand .card {
  width: clamp(30px, 3.2vw, 46px);
}

.seat-bet {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  transition: opacity 0.2s;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.4));
}

.seat-index {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: -15px;
  width: 19px;
  height: 19px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 180, 106, 0.55);
  border-radius: 50%;
  background: rgba(12, 7, 18, 0.9);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 8px rgba(216, 180, 106, 0.16);
}

.seat-total {
  position: absolute;
  left: 50%;
  top: calc(100% + 66px);
  z-index: 15;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.seat-total[hidden] {
  display: none !important;
}

.seat-total .total-chip {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.seat-total .total-chip svg {
  width: 100%;
  height: 100%;
  display: block;
}

.seat-total b {
  font-weight: 400;
  letter-spacing: 0.03em;
}

.seat-total em {
  font-style: normal;
  font-size: 15px;
  color: var(--gold-2);
}

.seat-bet.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.bet-chips {
  position: relative;
  width: 78px;
  height: 44px;
  perspective: 360px;
  transform-style: preserve-3d;
  animation: bet-float 4.2s ease-in-out infinite;
}

.bet-chips::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(216, 180, 106, 0.3), transparent 70%);
  filter: blur(3px);
}

.bet-chip {
  position: absolute;
  left: 50%;
  bottom: calc(4px + var(--i) * 4px);
  width: 31px;
  height: 31px;
  margin-left: -15.5px;
  transform-style: preserve-3d;
  animation: bet-spin 6.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.55s);
}

.bet-chip svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.bet-amount {
  position: relative;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(8, 7, 11, 0.62);
  border: 1px solid rgba(216, 180, 106, 0.18);
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

@keyframes bet-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(-2deg);
  }
  50% {
    transform: translateY(-6px) rotateZ(2deg);
  }
}

@keyframes bet-spin {
  0%,
  100% {
    transform: rotateX(14deg) rotateY(-28deg) rotateZ(-4deg);
  }
  50% {
    transform: rotateX(4deg) rotateY(28deg) rotateZ(4deg);
  }
}

/* 公共牌 / 底池 */
.community {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
}

.community-label {
  display: none;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(241, 232, 216, 0.4);
  text-transform: uppercase;
}

.community-label span {
  color: rgba(216, 180, 106, 0.5);
  letter-spacing: 0.14em;
}

.community-cards {
  display: flex;
  gap: clamp(6px, 0.9vw, 13px);
  justify-content: center;
}

.community-slot {
  width: clamp(52px, 6vw, 82px);
  aspect-ratio: 100 / 140;
  position: relative;
}

.community-slot .card {
  position: absolute;
  inset: 0;
  width: 100%;
}

.pot {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 99px;
  background: rgba(8, 7, 11, 0.62);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

.pot.is-empty {
  opacity: 0.4;
}

.pot-chips {
  position: relative;
  width: clamp(36px, 3.8vw, 56px);
  height: clamp(20px, 2.2vw, 30px);
}

.pot-chip {
  position: absolute;
  left: calc(var(--i) * 5px);
  top: calc(var(--i) * -2px);
  width: clamp(20px, 2.2vw, 30px);
  height: clamp(20px, 2.2vw, 30px);
  transition: opacity 0.3s;
}

.pot-chip.is-empty {
  opacity: 0;
}

.pot-chip svg {
  width: 100%;
  height: 100%;
}

.pot-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pot-text span {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pot-amount {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.muck {
  position: absolute;
  left: 36%;
  top: 43%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 卡牌 */
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 140;
  perspective: 900px;
  border-radius: 5px;
  transform-style: preserve-3d;
}

.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
  border-radius: 5px;
}

.card[data-face="back"] .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  overflow: hidden;
  backface-visibility: hidden;
  background: #efe4cf url("/assets/img/paper.jpg") center / cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.card-back {
  transform: rotateY(180deg);
  background: #efe4cf;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.card-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1%;
  font-family: "Old English", var(--font-gothic), serif;
  font-weight: 400;
  font-size: var(--num-size, 34px);
  line-height: 1;
  color: #17141b;
  pointer-events: none;
}

.card-num.is-ten {
  font-size: calc(var(--num-size, 34px) * 0.72);
  letter-spacing: -0.06em;
}

.card--seat .card-num { --num-size: clamp(23px, 2.55vw, 37px); }
.card--community .card-num { --num-size: clamp(42px, 4.9vw, 68px); }
.card--hand .card-num { --num-size: clamp(39px, 4.4vw, 60px); }
.fx-card .card-num {
  --num-size: calc(var(--fx-w, 52px) * 0.64);
}

.card.is-empty {
  background: rgba(8, 7, 11, 0.3);
  border: 1px dashed rgba(216, 180, 106, 0.18);
  box-shadow: none;
}

.community-slot .card.is-empty {
  background: rgba(255, 255, 255, 0.012);
  border: 1px dashed rgba(216, 180, 106, 0.3);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.22);
}

.community-slot .card.is-empty::after {
  content: "牌位";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(216, 180, 106, 0.2);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-family: var(--font-display);
}

.card.is-empty .card-inner {
  opacity: 0;
}

.card.is-dim {
  opacity: 0.55;
}

/* 底栏 */
.console {
  position: relative;
  z-index: 30;
  flex: none;
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(220px, 1fr) minmax(330px, 1.45fr);
  gap: 10px;
  padding: 9px clamp(14px, 2.4vw, 28px);
  border-top: 1px solid rgba(216, 180, 106, 0.2);
  background:
    linear-gradient(180deg, rgba(27, 22, 34, 0.96), rgba(9, 8, 12, 0.98)),
    url("/assets/img/grunge.png") center / cover;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
}

.console::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 106, 0.6), transparent);
}

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

.console-avatar {
  width: clamp(54px, 5.8vw, 78px);
  height: clamp(64px, 6.9vw, 92px);
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(108, 63, 160, 0.25), transparent 60%),
    rgba(8, 7, 11, 0.5);
  border: 1px solid rgba(216, 180, 106, 0.16);
}

.console-avatar .avatar-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.console-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.console-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.console-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-tag {
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding: 2px 4px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 3px;
  white-space: nowrap;
}

.console-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chip-mini {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.chip-mini svg {
  width: 100%;
  height: 100%;
}

.console-chips b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.console-hand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hand-cards {
  display: flex;
  gap: 5px;
  flex: none;
}

.hand-card-slot {
  width: clamp(55px, 5.6vw, 78px);
  aspect-ratio: 100 / 140;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.hand-card-slot .card {
  width: 100%;
}

.hand-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hand-kicker {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(216, 180, 106, 0.5);
}

.hand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  min-height: 14px;
}

.console-action {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-hint {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.action-timer {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color 0.2s;
}

.action-timer.is-low {
  color: #e47b7f;
}

.timer-line {
  height: 2px;
  background: rgba(241, 232, 216, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.timer-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(216, 180, 106, 0.45), var(--gold));
  transition: transform 0.2s linear, background 0.2s;
}

.timer-fill.is-low {
  background: linear-gradient(90deg, #7f2328, #e47b7f);
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
}

.action-wait {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border: 1px solid rgba(216, 180, 106, 0.1);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.25);
}

.action-wait .icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.action-wait--spectator {
  color: rgba(216, 180, 106, 0.6);
}

.btn-action {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(216, 180, 106, 0.22);
  background: rgba(8, 7, 11, 0.4);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-action .icon {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.btn-action:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-action:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.btn-fold {
  color: #e2a2a5;
  border-color: rgba(169, 47, 53, 0.32);
  background: rgba(169, 47, 53, 0.09);
}

.btn-call {
  color: var(--paper);
  background: rgba(216, 180, 106, 0.1);
  border-color: rgba(216, 180, 106, 0.35);
}

.btn-raise {
  color: #1c140b;
  background: linear-gradient(150deg, #e7c681, #c59a4e);
  border-color: rgba(255, 232, 178, 0.5);
  font-weight: 600;
}

.btn-raise .icon {
  opacity: 0.9;
}

.raise-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 45;
  width: min(460px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(216, 180, 106, 0.3);
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(31, 25, 39, 0.99), rgba(12, 10, 16, 0.99));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.raise-panel[hidden] {
  display: none;
}

.raise-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.raise-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.raise-quick {
  display: flex;
  gap: 4px;
}

.raise-chip {
  min-width: 38px;
  min-height: 30px;
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: 5px;
  background: rgba(216, 180, 106, 0.08);
  color: var(--gold);
  font-size: 11px;
}

.raise-chip:hover {
  background: rgba(216, 180, 106, 0.18);
}

.raise-input-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.raise-step {
  width: 28px;
  height: 30px;
  border: 0;
  background: rgba(216, 180, 106, 0.06);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.raise-step .icon {
  width: 13px;
  height: 13px;
}

.raise-input {
  width: 46px;
  height: 30px;
  border: 0;
  background: transparent;
  text-align: center;
  outline: none;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--paper);
  appearance: textfield;
}

.raise-input::-webkit-outer-spin-button,
.raise-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.raise-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.raise-preview {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

/* 侧栏 */
.side-drawer {
  position: absolute;
  z-index: 70;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 370px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(216, 180, 106, 0.22);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(26, 21, 33, 0.98), rgba(10, 8, 14, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.45s var(--ease);
  overflow: hidden;
}

.side-drawer[data-open="true"] {
  transform: translateX(0);
}

.side-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid rgba(216, 180, 106, 0.12);
}

.side-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
}

.side-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 7px 4px;
  transition: background 0.2s, color 0.2s;
}

.side-tab .icon {
  width: 13px;
  height: 13px;
}

.side-tab.is-active {
  background: rgba(216, 180, 106, 0.1);
  color: var(--gold);
}

.side-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-close:hover {
  background: rgba(241, 232, 216, 0.06);
  color: var(--paper);
}

.side-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.side-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.side-pane[hidden] {
  display: none;
}

.log-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-item {
  display: flex;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(241, 232, 216, 0.04);
  font-size: 10px;
  line-height: 1.6;
  color: rgba(241, 232, 216, 0.62);
}

.log-dot {
  width: 4px;
  height: 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: rgba(216, 180, 106, 0.3);
  flex: none;
}

.log-item p {
  margin: 0;
}

.log-item--settle,
.log-item--gameover {
  color: var(--gold);
}

.log-item--snipe,
.log-item--sniped,
.log-item--timeout {
  color: #e1a3a5;
}

.log-item--community {
  color: rgba(241, 232, 216, 0.8);
}

.log-item--hand {
  color: var(--gold-2);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chat-msg {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.chat-avatar {
  width: 24px;
  height: 29px;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
  background: rgba(108, 63, 160, 0.12);
}

.chat-avatar svg {
  width: 100%;
  height: 100%;
}

.chat-bubble {
  min-width: 0;
  flex: 1;
  padding: 5px 8px;
  border-radius: 0 6px 6px 6px;
  background: rgba(241, 232, 216, 0.055);
  border: 1px solid rgba(241, 232, 216, 0.05);
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.chat-meta b {
  font-size: 9px;
  font-weight: 500;
  color: var(--gold);
}

.chat-meta em {
  font-size: 7px;
  font-style: normal;
  color: var(--muted-2);
  border: 1px solid rgba(241, 232, 216, 0.12);
  border-radius: 2px;
  padding: 1px 3px;
}

.chat-bubble p {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(241, 232, 216, 0.8);
  word-break: break-word;
}

.chat-msg.is-bot .chat-bubble {
  background: rgba(108, 63, 160, 0.08);
}

.quick-chat {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px 10px;
  border-top: 1px solid rgba(216, 180, 106, 0.07);
}

.quick-chip {
  border: 1px solid rgba(216, 180, 106, 0.15);
  border-radius: 99px;
  background: rgba(216, 180, 106, 0.05);
  color: var(--muted);
  font-size: 9px;
  padding: 4px 7px;
}

.quick-chip:hover {
  color: var(--gold);
  border-color: rgba(216, 180, 106, 0.35);
}

.chat-form {
  display: flex;
  gap: 5px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(216, 180, 106, 0.08);
}

.chat-input {
  flex: 1;
  min-height: 34px;
  border: 1px solid rgba(216, 180, 106, 0.15);
  border-radius: 5px;
  background: rgba(8, 7, 11, 0.4);
  padding: 7px 9px;
  font-size: 10px;
  outline: none;
}

.chat-input:focus {
  border-color: rgba(216, 180, 106, 0.5);
}

.chat-send {
  width: 36px;
  height: 34px;
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: 5px;
  background: rgba(216, 180, 106, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stats-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.stats-section {
  margin-bottom: 20px;
}

.stats-section h4 {
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
}

.stats-table {
  border: 1px solid rgba(216, 180, 106, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.stats-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.5fr 0.6fr;
  gap: 6px;
  padding: 6px 8px;
  font-size: 9px;
  color: rgba(241, 232, 216, 0.7);
  border-bottom: 1px solid rgba(241, 232, 216, 0.04);
}

.stats-row:last-child {
  border-bottom: 0;
}

.stats-row em {
  font-style: normal;
  color: var(--muted-2);
  font-size: 7px;
  margin-left: 3px;
}

.stats-row.is-out {
  opacity: 0.38;
}

.stats-head {
  background: rgba(216, 180, 106, 0.06);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.lifetime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lifetime-grid > div {
  padding: 10px 6px;
  text-align: center;
  border: 1px solid rgba(216, 180, 106, 0.1);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.25);
}

.lifetime-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
}

.lifetime-grid span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted);
}

/* ───────── 弹窗 / 狙击 / 商店 / 设置 ───────── */

#modal-root {
  position: relative;
  z-index: 500;
  isolation: isolate;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 2, 5, 0.86);
}

.modal,
.modal-card {
  animation: none;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(216, 180, 106, 0.26);
  border-radius: 13px;
  background-color: #15111c;
  background-image: linear-gradient(160deg, #211b2a, #0c0a10);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.3s var(--ease);
}

.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/grunge.png") center / cover;
  mix-blend-mode: overlay;
  opacity: 0.12;
  pointer-events: none;
}

.modal-card > * {
  position: relative;
  z-index: 1;
}

.modal-card h2,
.modal-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(241, 232, 216, 0.06);
  color: var(--paper);
}

/* 获胜五张牌：轻微放大 + 金边高亮 */
.winning-hand {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 46;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 16px 14px;
  border: 1px solid rgba(216, 180, 106, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(108, 63, 160, 0.3), transparent 70%),
    rgba(8, 6, 12, 0.82);
  box-shadow: 0 0 60px rgba(216, 180, 106, 0.16), 0 24px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  pointer-events: none;
  animation: winning-in 0.35s var(--ease);
}

.winning-hand[hidden] {
  display: none !important;
}

@keyframes winning-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.winning-hand-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.winning-hand-head span {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(216, 180, 106, 0.7);
}

.winning-hand-head b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.06em;
}

.winning-hand-head em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.winning-hand-cards {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.winning-card {
  width: clamp(38px, 11vw, 54px);
  aspect-ratio: 100 / 140;
  transform: scale(1.06);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 12px rgba(216, 180, 106, 0.3));
}

.winning-card .card {
  width: 100%;
  height: 100%;
}

.card--winning {
  border-radius: 5px;
  box-shadow:
    0 0 0 2px #e8ca86,
    0 0 0 4px rgba(78, 49, 17, 0.7),
    0 0 18px rgba(232, 202, 134, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.45) !important;
}

/* 狙击面板：右侧小面板、半透明，公共牌保持可见 */
.snipe-panel {
  position: fixed;
  z-index: 600;
  right: 18px;
  top: 76px;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 14px 15px;
  border: 1px solid rgba(216, 180, 106, 0.24);
  border-radius: 12px;
  background: rgba(12, 9, 17, 0.8);
  backdrop-filter: blur(11px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes snipe-panel-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.snipe-panel .snipe-head h3 {
  font-size: 23px;
  letter-spacing: 0.08em;
}

.snipe-panel .snipe-desc {
  margin-bottom: 9px;
  font-size: 9px;
  line-height: 1.55;
}

.snipe-panel .snipe-self-hand {
  margin-bottom: 9px;
  padding: 5px 8px;
}

.snipe-panel .snipe-types {
  gap: 4px;
}

.snipe-panel .snipe-type {
  min-height: 42px;
  font-size: 12px;
}

.snipe-panel .snipe-numbers {
  gap: 4px;
}

.snipe-panel .snipe-num {
  min-height: 36px;
  font-size: 18px;
}

.snipe-panel .snipe-preview {
  margin-top: 9px;
  padding: 6px 8px;
}

.snipe-panel .snipe-preview-text {
  font-size: 15px;
}

.snipe-panel .snipe-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

/* 公开狙击消息：像聊天一样依次弹出 */
.snipe-feed {
  position: absolute;
  left: 14px;
  top: 74px;
  z-index: 28;
  display: none;
  flex-direction: column;
  gap: 5px;
  width: min(286px, 27%);
  pointer-events: none;
}

.snipe-feed.is-visible {
  display: flex;
}

.snipe-feed-head {
  padding-left: 3px;
  font-size: 7px;
  letter-spacing: 0.24em;
  color: rgba(216, 180, 106, 0.6);
}

.snipe-feed-head span {
  color: rgba(241, 232, 216, 0.28);
  letter-spacing: 0.16em;
}

.snipe-feed-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.snipe-feed-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(216, 180, 106, 0.16);
  border-radius: 8px;
  background: rgba(9, 7, 12, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.snipe-feed-item.is-new {
  animation: snipe-feed-in 0.28s var(--ease);
}

@keyframes snipe-feed-in {
  from {
    transform: translateX(-14px) scale(0.97);
  }
  to {
    transform: translateX(0) scale(1);
  }
}

.snipe-feed-avatar {
  width: 25px;
  height: 28px;
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(108, 63, 160, 0.16);
}

.snipe-feed-avatar svg {
  width: 100%;
  height: 100%;
}

.snipe-feed-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.snipe-feed-text b {
  font-size: 9px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.03em;
}

.snipe-feed-text span {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.snipe-step-caption {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.snipe-step-caption b {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.snipe-step-caption span {
  color: var(--muted-2);
}

.snipe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.snipe-kicker {
  display: block;
  font-size: 8px;
  letter-spacing: 0.32em;
  color: rgba(169, 47, 53, 0.8);
  margin-bottom: 5px;
}

.snipe-head h3 {
  font-size: 28px;
  color: var(--gold);
}

.snipe-timer-box {
  flex: none;
  text-align: right;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 6px;
  padding: 6px 10px;
  background: rgba(8, 7, 11, 0.35);
}

.snipe-timer-box span {
  display: block;
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.snipe-timer {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.2;
}

.snipe-timer.is-low {
  color: #e47b7f;
}

.snipe-desc {
  margin: 0 0 12px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

.snipe-self-hand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(216, 180, 106, 0.12);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.25);
  font-size: 9px;
  color: var(--muted);
}

.snipe-self-hand b {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}

.snipe-self-hand em {
  font-style: normal;
  color: var(--muted);
  font-size: 9px;
}

.snipe-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.snipe-type {
  min-height: 56px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 7px;
  background: rgba(8, 7, 11, 0.35);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.snipe-type:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.08);
}

.snipe-type.is-selected {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.16);
  color: var(--gold);
}

.snipe-numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.snipe-num {
  min-height: 48px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.35);
  color: var(--paper);
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 22px;
  transition: border-color 0.2s, background 0.2s;
}

.snipe-num:hover {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.08);
}

.snipe-num.is-selected {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.17);
  color: var(--gold);
}

.snipe-num.is-used,
.snipe-num:disabled {
  opacity: 0.28;
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: rgba(241, 232, 216, 0.08);
  background: rgba(8, 7, 11, 0.2);
  color: var(--muted-2);
}

.snipe-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 180, 106, 0.14);
  border-radius: 6px;
  background: rgba(8, 7, 11, 0.3);
}

.snipe-preview > span {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.snipe-preview-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.snipe-warning {
  margin-left: auto;
  font-size: 9px;
  font-style: normal;
  color: #e47b7f;
  letter-spacing: 0.03em;
}

.snipe-warning[hidden] {
  display: none;
}

.snipe-actions {
  margin-top: 16px;
}

/* 结束 */
.gameover-modal .modal-card {
  width: min(680px, 100%);
  padding: 28px;
  overflow: hidden;
}

.gameover-rays {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg 14deg, rgba(216, 180, 106, 0.08) 15deg 20deg, transparent 21deg 34deg);
  opacity: 0.7;
  pointer-events: none;
  animation: slow-spin 50s linear infinite;
}

.gameover-kicker {
  font-size: 8px;
  letter-spacing: 0.38em;
  color: rgba(216, 180, 106, 0.65);
  text-align: center;
}

.gameover-card h2 {
  margin: 4px 0 22px;
  text-align: center;
  font-size: 32px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.winner-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 180, 106, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(216, 180, 106, 0.12), transparent 62%),
    rgba(8, 7, 11, 0.35);
}

.winner-avatar {
  width: 92px;
  height: 110px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 106, 0.24);
  background: radial-gradient(circle at 50% 30%, rgba(108, 63, 160, 0.28), transparent 65%);
}

.winner-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.winner-copy span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.winner-copy b {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-copy em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
}

.winner-crown {
  margin-left: auto;
  color: var(--gold);
  opacity: 0.8;
}

.winner-crown .icon {
  width: 34px;
  height: 34px;
}

.ranking {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.ranking-row {
  display: grid;
  grid-template-columns: 22px 30px 1fr 70px 48px;
  gap: 8px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 11px;
  color: rgba(241, 232, 216, 0.72);
}

.ranking-row.is-winner {
  border-color: rgba(216, 180, 106, 0.3);
  background: rgba(216, 180, 106, 0.07);
  color: var(--paper);
}

.rank-no {
  font-family: var(--font-gothic);
  font-size: 17px;
  color: var(--muted-2);
}

.rank-avatar {
  width: 26px;
  height: 31px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(108, 63, 160, 0.12);
}

.rank-avatar svg {
  width: 100%;
  height: 100%;
}

.rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name em {
  font-style: normal;
  color: var(--muted-2);
  font-size: 8px;
  margin-left: 4px;
}

.rank-chips {
  text-align: right;
  font-family: var(--font-display);
  color: var(--gold);
}

.rank-wins {
  text-align: right;
  font-size: 9px;
  color: var(--muted);
}

.gameover-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 180, 106, 0.1);
  font-size: 9px;
  color: var(--muted-2);
}

.gameover-actions {
  justify-content: center;
}

.gameover-actions .btn {
  min-width: 150px;
}

/* 商店 */
.shop-modal .modal-card {
  width: min(940px, 100%);
}

.shop-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 36px;
}

.shop-head h2 {
  font-size: 28px;
  letter-spacing: 0.12em;
}

.shop-head p {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.shop-wallet {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 7px;
  padding: 6px 10px;
  background: rgba(8, 7, 11, 0.4);
}

.shop-wallet svg {
  width: 24px;
  height: 24px;
}

.shop-wallet b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.skin-card {
  position: relative;
  border: 1px solid rgba(216, 180, 106, 0.14);
  border-radius: 8px;
  background: linear-gradient(170deg, rgba(31, 25, 39, 0.8), rgba(9, 8, 12, 0.75));
  overflow: hidden;
  padding: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.skin-card:hover {
  border-color: rgba(216, 180, 106, 0.4);
  transform: translateY(-2px);
}

.skin-card.is-equipped {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(216, 180, 106, 0.2), 0 12px 30px rgba(0, 0, 0, 0.3);
}

.skin-art {
  height: 150px;
  border-radius: 5px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(108, 63, 160, 0.2), transparent 65%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.skin-art .avatar-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skin-card-meta {
  padding: 7px 3px 3px;
}

.skin-card-meta b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.skin-card-meta span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.skin-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.skin-card-actions .price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
}

.skin-card-actions .price svg {
  width: 18px;
  height: 18px;
}

.skin-card-actions .btn {
  margin-left: auto;
  flex: none;
}

.mystery-card {
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 180, 106, 0.12), transparent 58%),
    linear-gradient(170deg, rgba(43, 30, 58, 0.85), rgba(10, 8, 14, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  min-height: 220px;
}

.box-visual {
  width: 88px;
  height: 88px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: box-float 4s ease-in-out infinite;
}

.box-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(216, 180, 106, 0.18), transparent 65%);
}

.box-visual .icon {
  width: 58px;
  height: 58px;
  color: var(--gold);
  opacity: 0.85;
  stroke-width: 1.2;
}

.mystery-card h3 {
  font-size: 16px;
  color: var(--gold);
}

.mystery-card p {
  margin: 0;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

.shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 180, 106, 0.1);
  font-size: 9px;
  color: var(--muted-2);
}

/* 设置 */
.settings-modal .modal-card {
  width: min(480px, 100%);
}

.settings-section {
  margin-bottom: 18px;
}

.settings-section h4 {
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}

.setting-row label {
  width: 74px;
  flex: none;
  font-size: 10px;
  color: var(--muted);
}

.setting-row .range {
  flex: 1;
}

.setting-row .setting-val {
  width: 34px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(241, 232, 216, 0.05);
  font-size: 11px;
  color: rgba(241, 232, 216, 0.72);
}

.toggle {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 99px;
  border: 1px solid rgba(216, 180, 106, 0.2);
  background: rgba(8, 7, 11, 0.5);
  transition: background 0.2s, border-color 0.2s;
}

.toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.toggle.is-on {
  background: rgba(216, 180, 106, 0.2);
  border-color: rgba(216, 180, 106, 0.6);
}

.toggle.is-on::after {
  transform: translateX(17px);
  background: var(--gold);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

/* ───────── 提示 / 动效层 ───────── */

#toast-stack {
  position: fixed;
  z-index: 700;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  width: min(420px, calc(100vw - 28px));
}

.toast {
  padding: 9px 14px;
  border: 1px solid rgba(216, 180, 106, 0.3);
  border-radius: 7px;
  background: rgba(18, 14, 24, 0.96);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.3s var(--ease);
}

.toast--error {
  border-color: rgba(169, 47, 53, 0.55);
  color: #f0b5b7;
}

.toast--success {
  border-color: rgba(143, 196, 154, 0.4);
  color: #c9e6cf;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s;
}

.table-banner {
  position: absolute;
  left: 50%;
  top: 12.5%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 30px 9px;
  border: 1px solid rgba(216, 180, 106, 0.26);
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(10, 8, 14, 0.88) 18%, rgba(10, 8, 14, 0.88) 82%, transparent);
  text-align: center;
  pointer-events: none;
  animation: banner-in 0.35s var(--ease);
}

.table-banner strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.table-banner span {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.table-banner.is-out {
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.3s, transform 0.3s;
}

.banner--snipe {
  border-color: rgba(169, 47, 53, 0.4);
  background: linear-gradient(90deg, transparent, rgba(30, 7, 12, 0.9) 18%, rgba(30, 7, 12, 0.9) 82%, transparent);
}

.banner--snipe strong {
  color: #e8b3b5;
}

.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
}

.fx-card {
  position: absolute;
  z-index: 50;
  will-change: transform, opacity;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}

.fx-card .card-front,
.fx-card .card-back {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.fx-chip {
  position: absolute;
  z-index: 40;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.4));
}

.fx-chip svg {
  width: 100%;
  height: 100%;
}

.fx-float {
  position: absolute;
  z-index: 45;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: float-up 1.25s var(--ease) forwards;
  pointer-events: none;
  white-space: nowrap;
}

.float-text--fold {
  color: rgba(241, 232, 216, 0.55);
  font-size: 13px;
}

.float-text--snipe {
  color: #e47b7f;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.float-text--hand {
  color: rgba(241, 232, 216, 0.78);
  font-size: 12px;
}

.float-text--raise {
  color: var(--gold-2);
}

.float-text--win {
  color: var(--gold-2);
  font-size: 22px;
}

.fx-flash {
  position: absolute;
  inset: 0;
  z-index: 42;
  opacity: 0;
  animation: flash-out 0.26s ease-out forwards;
  pointer-events: none;
}

.fx-muzzle {
  position: absolute;
  z-index: 44;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 243, 190, 0.95) 0 8%, rgba(255, 181, 69, 0.5) 22%, transparent 62%);
  filter: blur(2px);
  animation: muzzle 0.45s ease-out forwards;
  pointer-events: none;
}

.fx-reticle {
  position: absolute;
  z-index: 41;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  color: rgba(169, 47, 53, 0.7);
  animation: reticle-in 1.6s var(--ease) forwards;
  filter: drop-shadow(0 0 10px rgba(169, 47, 53, 0.35));
}

.fx-reticle svg {
  width: 100%;
  height: 100%;
}

.fx-stamp {
  position: absolute;
  z-index: 46;
  width: 150px;
  height: 110px;
  transform: translate(-50%, -50%) rotate(-10deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(169, 47, 53, 0.9);
  animation: stamp-in 0.35s var(--ease), stamp-fade 2.6s 0.3s forwards;
  pointer-events: none;
}

.fx-stamp-ring {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 10px rgba(169, 47, 53, 0.4));
}

.fx-stamp-ring svg {
  width: 100%;
  height: 100%;
}

.fx-stamp-text {
  font-family: var(--font-gothic);
  font-size: 18px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-top: -8px;
}

.fx-spotlight {
  position: absolute;
  z-index: 39;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 106, 0.18), transparent 62%);
  animation: spotlight-in 0.8s var(--ease);
  pointer-events: none;
}

.fx-confetti {
  position: absolute;
  z-index: 48;
  border-radius: 1px;
  will-change: transform, opacity;
  pointer-events: none;
}

.table-stage.is-shaking {
  animation: shake 0.38s linear;
}

.is-sniping .seat-avatar {
  animation: seat-hit 0.35s ease-out;
}

/* ───────── 响应式游戏 ───────── */

@media (max-width: 1180px) {
  .console {
    grid-template-columns: minmax(128px, 0.6fr) minmax(190px, 0.9fr) minmax(280px, 1.4fr);
  }

  .hud-title {
    display: none;
  }

  .hud-center {
    gap: 8px;
  }

  .hud-turn {
    max-width: 120px;
  }
}

@media (max-width: 900px) {
  .hud {
    height: 50px;
    padding: 0 8px;
    gap: 6px;
  }

  .hud-logo {
    width: 28px;
    height: 28px;
  }

  .room-code span {
    display: none;
  }

  .hud-icon {
    width: 30px;
    height: 30px;
  }

  .hud-icon .icon {
    width: 15px;
    height: 15px;
  }

  .console {
    min-height: 130px;
    grid-template-columns: minmax(90px, 0.5fr) minmax(180px, 1fr) minmax(250px, 1.6fr);
    padding: 8px 10px;
    gap: 6px;
  }

  .console-avatar {
    width: 48px;
    height: 58px;
  }

  .console-name {
    font-size: 12px;
  }

  .console-chips b {
    font-size: 14px;
  }

  .hand-card-slot {
    width: clamp(44px, 5.4vw, 64px);
  }

  .hand-name {
    font-size: 14px;
  }

  .action-wait {
    font-size: 9px;
  }

  .btn-action {
    font-size: 10px;
    min-height: 36px;
  }

  .seat {
    width: clamp(66px, 8vw, 108px);
  }

  .seat-plate {
    min-width: 82px;
    padding: 4px 6px 3px;
  }

  .seat-name {
    font-size: 9px;
  }

  .seat-chips {
    font-size: 9px;
  }

  .seat-status {
    font-size: 7px;
  }

  .side-drawer {
    width: min(340px, calc(100vw - 20px));
  }
}

@media (max-width: 720px) {
  .hud-center .hud-hand {
    display: none;
  }

  .hud-turn {
    display: none;
  }

  .phase-pill {
    font-size: 9px;
    padding: 4px 8px;
  }

  .room-code b {
    font-size: 10px;
  }

  .console {
    min-height: 116px;
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .console-avatar {
    width: 40px;
    height: 50px;
  }

  .console-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .console-tag {
    display: none;
  }

  .console-hand {
    gap: 7px;
  }

  .hand-cards {
    gap: 3px;
  }

  .hand-card-slot {
    width: 40px;
  }

  .hand-kicker {
    font-size: 7px;
  }

  .hand-name {
    font-size: 12px;
  }

  .hand-sub {
    font-size: 8px;
  }

  .action-head {
    gap: 4px;
  }

  .action-hint {
    font-size: 8px;
  }

  .action-bar {
    gap: 4px;
  }

  .btn-action {
    min-height: 32px;
    padding: 0 4px;
    font-size: 9px;
    gap: 3px;
  }

  .btn-action .icon {
    width: 12px;
    height: 12px;
  }

  .action-wait {
    padding: 5px 7px;
    font-size: 8px;
  }

  .raise-panel {
    bottom: calc(100% + 6px);
  }

  .community {
    top: 27%;
  }

  .community-slot {
    width: clamp(42px, 7.4vw, 68px);
  }

  .pot {
    top: 42%;
    gap: 4px;
    padding: 3px 8px 3px 4px;
  }

  .pot-text span {
    display: none;
  }

  .seat-hand .card {
    width: clamp(25px, 4.6vw, 40px);
  }

  .seat {
    width: clamp(54px, 8.4vw, 88px);
  }

  .seat-plate {
    min-width: 68px;
    bottom: -11px;
    padding: 3px 5px;
  }

  .seat-name {
    font-size: 8px;
  }

  .seat-chips {
    font-size: 8px;
  }

  .seat-tag,
  .seat-status {
    font-size: 6px;
  }

  .seat-dealer-badge {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .seat-you-badge {
    font-size: 6px;
    padding: 1px 3px;
  }

  .dealer-avatar {
    width: 64px;
  }

  .dealer-info {
    font-size: 7px;
    padding: 2px 6px;
  }

  .dealer-deck {
    width: 24px;
    height: 34px;
  }

  .side-drawer {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

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

  .skin-art {
    height: 118px;
  }

  .snipe-types {
    grid-template-columns: repeat(3, 1fr);
  }

  .snipe-numbers {
    grid-template-columns: repeat(5, 1fr);
  }

  .snipe-head h3 {
    font-size: 23px;
  }

  .modal-card {
    padding: 18px;
  }

  .gameover-card h2 {
    font-size: 26px;
  }

  .ranking-row {
    grid-template-columns: 20px 26px 1fr 56px 40px;
    font-size: 10px;
  }

  .winner-avatar {
    width: 70px;
    height: 84px;
  }

  .winner-copy b {
    font-size: 21px;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  .game-screen::after {
    content: "请旋转设备\A 横屏游玩体验更佳";
    white-space: pre-line;
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
      radial-gradient(circle at 50% 42%, rgba(108, 63, 160, 0.2), transparent 55%),
      rgba(6, 5, 8, 0.96);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 2;
    letter-spacing: 0.16em;
    text-align: center;
    pointer-events: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hud {
    height: 42px;
  }

  .hud-center {
    display: none;
  }

  .console {
    min-height: 58px;
    grid-template-columns: 1fr;
    padding: 4px 8px;
    gap: 0;
  }

  .console-self,
  .console-hand {
    display: none;
  }

  .console-action {
    width: 100%;
  }

  .action-head {
    margin-bottom: 1px;
  }

  .action-hint {
    font-size: 9px;
  }

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

  .timer-line {
    margin-bottom: 3px;
  }

  .action-bar {
    gap: 4px;
  }

  .btn-action {
    min-height: 32px;
    font-size: 10px;
  }

  .raise-panel {
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }

  .seat {
    width: clamp(48px, 7vw, 80px);
  }

  .community {
    top: 26%;
  }

  .pot {
    top: 41%;
  }

  .seat-hand .card {
    width: clamp(22px, 3.4vw, 34px);
  }

  .seat-avatar .avatar-svg {
    max-height: 100px;
  }

  .snipe-panel {
    right: 8px;
    left: 8px;
    top: auto;
    bottom: 4px;
    width: auto;
    max-height: calc(100dvh - 156px);
    padding: 8px 10px;
  }

  .snipe-panel .snipe-head {
    align-items: center;
    margin-bottom: 4px;
  }

  .snipe-panel .snipe-head h3 {
    font-size: 16px;
  }

  .snipe-panel .snipe-kicker {
    display: none;
  }

  .snipe-panel .snipe-timer {
    font-size: 15px;
  }

  .snipe-panel .snipe-timer-box {
    padding: 3px 6px;
  }

  .snipe-panel .snipe-desc {
    display: none;
  }

  .snipe-panel .snipe-self-hand {
    margin-bottom: 4px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .snipe-panel .snipe-self-hand b {
    font-size: 11px;
  }

  .snipe-panel .snipe-types {
    gap: 3px;
  }

  .snipe-panel .snipe-type {
    min-height: 30px;
    font-size: 10px;
  }

  .snipe-panel .snipe-numbers {
    gap: 3px;
  }

  .snipe-panel .snipe-num {
    min-height: 26px;
    font-size: 14px;
  }

  .snipe-panel .snipe-preview {
    margin-top: 4px;
    padding: 3px 6px;
  }

  .snipe-panel .snipe-preview-text {
    font-size: 13px;
  }

  .snipe-panel .snipe-actions {
    margin-top: 5px;
  }

  .snipe-feed {
    left: 8px;
    top: 50px;
    width: 178px;
  }

  .snipe-feed-head {
    font-size: 6px;
  }

  .snipe-feed-item {
    padding: 3px 5px 3px 3px;
    gap: 5px;
  }

  .snipe-feed-avatar {
    width: 20px;
    height: 22px;
  }

  .snipe-feed-text b {
    font-size: 8px;
  }

  .snipe-feed-text span {
    font-size: 9px;
  }
}

/* ───────── 动画关键帧 ───────── */

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes banner-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.85); }
  18% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -155%) scale(0.95); }
}

@keyframes flash-out {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes muzzle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes reticle-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35) rotate(-12deg); }
  22% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.95) rotate(0deg); }
  75% { opacity: 0.5; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08) rotate(4deg); }
}

@keyframes stamp-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6) rotate(-16deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(0.95) rotate(-10deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-10deg); }
}

@keyframes stamp-fade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes spotlight-in {
  from { opacity: 0; transform: translate(-50%, -55%) scale(0.7); }
  to { opacity: 1; transform: translate(-50%, -55%) scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-5px, 2px); }
  30% { transform: translate(6px, -3px); }
  45% { transform: translate(-4px, -2px); }
  60% { transform: translate(4px, 3px); }
  75% { transform: translate(-2px, 1px); }
}

@keyframes seat-hit {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-4px, 2px); }
  60% { transform: translate(3px, -2px); }
}

@keyframes slow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes box-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 6, 10, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 106, 0.18);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(216, 180, 106, 0.32);
}

/* 浮层必须稳定不透明：部分无头浏览器会把开场动画停在低透明度帧 */
.modal,
.modal-card {
  animation: none !important;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   时间竞标风格 · 手机竖屏主布局
   固定 390×520 桌面场景，人物/牌桌尺寸锁定，页面不旋转。
   ══════════════════════════════════════════════════════════════ */

body {
  background:
    radial-gradient(130% 100% at 50% -10%, #5b3a76 0%, #3a2052 34%, #1c0f2e 66%, #09030f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/img/bg-concrete.jpg") center / cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

#app,
#toast-stack,
#modal-root {
  position: relative;
  z-index: 1;
}

.game-screen {
  background:
    radial-gradient(74% 56% at 50% 40%, rgba(150, 90, 210, 0.32), transparent 68%),
    linear-gradient(180deg, rgba(58, 29, 86, 0.38), rgba(8, 3, 15, 0.56));
}

.game-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 38% at 50% 40%, rgba(168, 105, 230, 0.2), transparent 72%),
    url("/assets/img/grunge.png") center / cover;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

.portrait-board {
  display: none;
}

@media (orientation: portrait) and (max-width: 900px) {
  .hud {
    height: 46px;
    padding: 0 8px;
    background: rgba(20, 10, 32, 0.58);
    border-bottom-color: rgba(205, 180, 255, 0.16);
  }

  .hud-logo {
    width: 30px;
    height: 30px;
  }

  .room-code {
    padding: 4px 7px;
  }

  .room-code b {
    font-size: 10px;
  }

  .hud-icon {
    width: 28px;
    height: 28px;
  }

  .portrait-board {
    display: flex;
    flex: none;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid rgba(205, 180, 255, 0.12);
    background: rgba(14, 7, 24, 0.5);
    scrollbar-width: none;
  }

  .portrait-board::-webkit-scrollbar {
    display: none;
  }

  .portrait-player {
    display: flex;
    flex: none;
    align-items: center;
    gap: 3px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid rgba(205, 180, 255, 0.18);
    border-radius: 99px;
    background: rgba(35, 19, 54, 0.72);
    color: var(--paper);
    font-size: 9px;
    white-space: nowrap;
  }

  .portrait-player .pp-num {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--gold);
  }

  .portrait-player .pp-name {
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
  }

  .portrait-player .pp-chips {
    font-family: var(--font-display);
    color: rgba(241, 232, 216, 0.62);
  }

  .portrait-player .pp-status {
    display: none;
  }

  .portrait-player.is-self {
    border-color: rgba(216, 180, 106, 0.55);
    background: rgba(108, 63, 160, 0.35);
  }

  .portrait-player.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(216, 180, 106, 0.24);
    color: var(--gold-2);
  }

  .portrait-player.is-folded,
  .portrait-player.is-out {
    opacity: 0.38;
  }

  .portrait-player.is-winner {
    border-color: var(--gold-2);
    box-shadow: 0 0 16px rgba(243, 226, 181, 0.35);
    color: var(--gold-2);
  }

  .table-wrap {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: transparent;
  }

  .table-stage {
    position: relative;
    inset: auto;
    flex: none;
    width: min(366px, 94vw);
    height: min(68vh, 540px);
    margin: 0 auto;
    overflow: visible;
  }

  .table-svg {
    overflow: visible;
  }

  .dealer {
    top: 1.2%;
    z-index: 5;
  }

  .dealer-avatar {
    width: clamp(62px, 17vw, 78px);
  }

  .dealer-info {
    display: flex;
    margin-top: 1px;
    padding: 2px 7px;
    font-size: 8px;
    background: rgba(14, 7, 24, 0.8);
  }

  .dealer-info small {
    display: none;
  }

  .dealer-deck {
    width: 24px;
    height: 34px;
  }

  .seat {
    width: clamp(50px, 14.2vw, 58px);
    z-index: 12;
  }

  .seat[data-seat="3"] {
    width: clamp(46px, 13vw, 54px);
  }

  .seat-avatar-wrap {
    filter: drop-shadow(0 8px 10px rgba(4, 0, 10, 0.55));
  }

  .seat-plate {
    display: none;
  }

  .seat-bet {
    top: calc(100% + 3px);
  }

  .seat-bet .bet-chips {
    width: 52px;
    height: 34px;
    transform: scale(0.78);
    transform-origin: 50% 100%;
  }

  .seat-bet .bet-amount {
    margin-top: -5px;
    font-size: 8px;
  }

  .seat-index {
    bottom: -10px;
    width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .seat-dealer-badge {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .seat-you-badge {
    font-size: 6px;
    padding: 1px 4px;
  }

  .seat-hand .card {
    width: clamp(26px, 7.8vw, 32px);
  }

  .community {
    top: 28%;
  }

  .community-cards {
    gap: 5px;
  }

  .community-slot {
    width: clamp(36px, 10.2vw, 42px);
  }

  .pot {
    top: 46%;
    padding: 3px 8px 3px 4px;
    gap: 4px;
  }

  .pot-text span {
    display: none;
  }

  .pot-chips {
    width: 28px;
    height: 16px;
  }

  .pot-chip {
    width: clamp(16px, 4.4vw, 19px);
    height: clamp(16px, 4.4vw, 19px);
  }

  .winning-hand {
    top: 47%;
    padding: 8px 10px 10px;
  }

  .winning-card {
    width: clamp(36px, 10.2vw, 42px);
  }

  .winning-hand-head b {
    font-size: 12px;
  }

  .winning-hand-head em {
    font-size: 11px;
  }

  .snipe-panel {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    width: auto;
    max-height: 52dvh;
    padding: 10px 12px;
  }

  .snipe-panel .snipe-head {
    margin-bottom: 5px;
  }

  .snipe-panel .snipe-head h3 {
    font-size: 18px;
  }

  .snipe-panel .snipe-desc {
    display: none;
  }

  .snipe-panel .snipe-types {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }

  .snipe-panel .snipe-type {
    min-height: 32px;
    font-size: 10px;
  }

  .snipe-panel .snipe-numbers {
    gap: 3px;
  }

  .snipe-panel .snipe-num {
    min-height: 28px;
    font-size: 15px;
  }

  .snipe-feed {
    left: 8px;
    top: 54px;
    width: 190px;
  }

  .snipe-feed-head {
    font-size: 6px;
  }

  .snipe-feed-item {
    padding: 3px 5px 3px 3px;
    gap: 5px;
  }

  .snipe-feed-avatar {
    width: 20px;
    height: 22px;
  }

  .snipe-feed-text b {
    font-size: 8px;
  }

  .snipe-feed-text span {
    font-size: 9px;
  }

  .console {
    min-height: 116px;
    background:
      linear-gradient(180deg, rgba(30, 16, 46, 0.96), rgba(9, 4, 16, 0.98)),
      url("/assets/img/grunge.png") center / cover;
    border-top-color: rgba(205, 180, 255, 0.18);
  }

  .console-avatar {
    background:
      radial-gradient(circle at 50% 30%, rgba(160, 95, 240, 0.28), transparent 62%),
      rgba(15, 7, 26, 0.6);
    border-color: rgba(205, 180, 255, 0.18);
  }

  .side-drawer {
    background:
      linear-gradient(180deg, rgba(30, 16, 46, 0.98), rgba(9, 4, 16, 0.99)),
      url("/assets/img/grunge.png") center / cover;
    border-left-color: rgba(205, 180, 255, 0.18);
  }

  /* 不再提示横屏 */
  .game-screen::after {
    content: none !important;
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   竖屏标准半圆桌：半尺寸人物、尖角落桌沿、个人牌在面前
   ══════════════════════════════════════════════════════════════ */

.game-screen.is-portrait .seat {
  width: 28px;
  transform: translate(-50%, -100%);
}

.game-screen.is-portrait .seat[data-seat="3"] {
  width: 26px;
}

.game-screen.is-portrait .seat-avatar {
  transform: rotate(var(--rot, 0deg));
  transform-origin: 50% 100%;
}

.game-screen.is-portrait .seat.is-active .seat-avatar {
  transform: rotate(var(--rot, 0deg));
}

.game-screen.is-portrait .seat-plate {
  display: none;
}

.game-screen.is-portrait .seat-index {
  bottom: -9px;
  width: 14px;
  height: 14px;
  font-size: 7px;
}

.game-screen.is-portrait .seat-bet {
  top: calc(100% + 3px);
}

.game-screen.is-portrait .seat-bet .bet-chips {
  width: 44px;
  height: 28px;
  transform: scale(0.52);
  transform-origin: 50% 100%;
}

.game-screen.is-portrait .seat-bet .bet-amount {
  margin-top: -7px;
  font-size: 7px;
}

.game-screen.is-portrait .seat-total {
  top: calc(100% + 30px);
  gap: 2px;
  font-size: 9px;
}

.game-screen.is-portrait .seat-total .total-chip {
  width: 16px;
  height: 16px;
}

.game-screen.is-portrait .seat-total em {
  font-size: 12px;
}

.game-screen.is-portrait .seat-hand .card {
  width: 16px;
}

.game-screen.is-portrait .card--seat .card-num {
  --num-size: 12px;
}

.game-screen.is-portrait .card--seat .card-num.is-ten {
  font-size: 8px;
}

.game-screen.is-portrait .community {
  top: 26%;
}

.game-screen.is-portrait .community-cards {
  gap: 3px;
}

.game-screen.is-portrait .community-slot {
  width: 22px;
}

.game-screen.is-portrait .card--community .card-num {
  --num-size: 17px;
}

.game-screen.is-portrait .card--community .card-num.is-ten {
  font-size: 12px;
}

.game-screen.is-portrait .pot {
  top: 36%;
  padding: 2px 6px 2px 3px;
  gap: 3px;
}

.game-screen.is-portrait .pot-chips {
  width: 22px;
  height: 13px;
}

.game-screen.is-portrait .pot-chip {
  width: 14px;
  height: 14px;
}

.game-screen.is-portrait .pot-text b {
  font-size: 12px;
}

.game-screen.is-portrait .dealer {
  top: 10%;
}

.game-screen.is-portrait .dealer-avatar {
  width: 40px;
}

.game-screen.is-portrait .dealer-info {
  margin-top: 0;
  padding: 1px 5px;
  font-size: 7px;
}

.game-screen.is-portrait .dealer-info small {
  display: none;
}

.game-screen.is-portrait .dealer-deck {
  width: 17px;
  height: 24px;
}

.game-screen.is-portrait .winning-hand {
  top: 47%;
  padding: 6px 8px 8px;
  gap: 4px;
}

.game-screen.is-portrait .winning-card {
  width: 32px;
}

.game-screen.is-portrait .winning-hand-head b {
  font-size: 10px;
}

.game-screen.is-portrait .winning-hand-head em {
  font-size: 9px;
}

.game-screen.is-portrait .winning-hand-head span {
  font-size: 6px;
}

.game-screen.is-portrait .hand-card-slot {
  width: 34px;
}

/* 狙击叫牌信息放在桌子下方的中间空白区 */
.game-screen.is-portrait .snipe-feed {
  left: 50%;
  top: 64%;
  width: min(320px, 86%);
  transform: translateX(-50%);
  align-items: center;
}

.game-screen.is-portrait .snipe-feed-head {
  text-align: center;
}

.game-screen.is-portrait .snipe-feed-list {
  align-items: center;
}

.game-screen.is-portrait .snipe-feed-item {
  min-width: 180px;
  justify-content: center;
}

.game-screen.is-portrait .snipe-feed-text {
  align-items: center;
}

.game-screen.is-portrait .snipe-feed-text span {
  text-align: center;
}

/* 竖屏：人物翻到桌面外侧，筹码总数沿外法线放到人物脚下；牌放大一点 */
.game-screen.is-portrait .seat-bet {
  left: calc(50% + var(--outx, 0) * 52px);
  top: calc(100% + var(--outy, 1) * 52px);
  transform: translate(-50%, -50%);
}

.game-screen.is-portrait .seat-total {
  left: calc(50% + var(--outx, 0) * 74px);
  top: calc(100% + var(--outy, 1) * 74px);
  transform: translate(-50%, -50%);
}

.game-screen.is-portrait .seat-hand .card {
  width: 20px;
}

.game-screen.is-portrait .card--seat .card-num {
  --num-size: 14px;
}

.game-screen.is-portrait .card--seat .card-num.is-ten {
  font-size: 9px;
}

.game-screen.is-portrait .community-slot {
  width: 28px;
}

.game-screen.is-portrait .card--community .card-num {
  --num-size: 20px;
}

.game-screen.is-portrait .card--community .card-num.is-ten {
  font-size: 14px;
}

.game-screen.is-portrait .winning-card {
  width: 38px;
}

.game-screen.is-portrait .hand-card-slot {
  width: 36px;
}

.game-screen.is-portrait .snipe-feed {
  top: 70%;
}

/* 聊天泡泡：挂在人物头部/身体外侧 */
.seat-bubble {
  position: absolute;
  left: calc(50% + var(--outx, 0) * 60px);
  top: calc(100% + var(--outy, 1) * 60px);
  z-index: 34;
  max-width: 156px;
  padding: 5px 8px;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(216, 180, 106, 0.35);
  border-radius: 8px;
  background: rgba(10, 7, 15, 0.92);
  color: var(--paper);
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: bubble-in 0.18s var(--ease);
}

.seat-bubble b {
  display: block;
  margin-bottom: 1px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 500;
}

.seat-bubble[hidden] {
  display: none !important;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translate(-50%, -94%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

/* 底部聊天框 */
.bottom-chat {
  position: relative;
  z-index: 30;
  flex: none;
  min-height: 42px;
  padding: 4px 8px;
  border-top: 1px solid rgba(205, 180, 255, 0.16);
  background: rgba(10, 5, 18, 0.9);
}

.bottom-chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-chat-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(205, 180, 255, 0.2);
  border-radius: 99px;
  background: rgba(24, 12, 38, 0.8);
  color: var(--paper);
  font-size: 11px;
  outline: none;
}

.bottom-chat-input::placeholder {
  color: rgba(241, 232, 216, 0.32);
}

.bottom-chat-send {
  width: 34px;
  height: 32px;
  flex: none;
  border: 1px solid rgba(216, 180, 106, 0.32);
  border-radius: 50%;
  background: rgba(216, 180, 106, 0.16);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 阶段大字提示 */
.phase-banner {
  position: fixed;
  z-index: 460;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-top: 1px solid rgba(216, 180, 106, 0.55);
  border-bottom: 1px solid rgba(216, 180, 106, 0.55);
  background: linear-gradient(90deg, transparent, rgba(10, 5, 18, 0.82) 18%, rgba(10, 5, 18, 0.82) 82%, transparent);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: clamp(30px, 8.4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-shadow: 0 0 26px rgba(216, 180, 106, 0.36), 0 4px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: none;
}

.phase-banner[hidden] {
  display: none !important;
}

.phase-banner.is-show {
  animation: phase-pop 1.5s var(--ease) forwards;
}

@keyframes phase-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.7); }
  14% { opacity: 1; transform: translateX(-50%) scale(1.04); }
  24% { transform: translateX(-50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.02); }
}

/* 禁止页面双指缩放/长按复制；输入框保留编辑能力 */
html,
body {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* 竖屏定位修正：总筹码固定在小人下方（屏幕坐标），聊天泡泡在头顶，避免左右两侧出屏 */
.game-screen.is-portrait .seat-bet {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
}

.game-screen.is-portrait .seat-total {
  left: 50%;
  top: calc(100% + 62px);
  transform: translateX(-50%);
}

.seat-bubble {
  left: 50%;
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateX(-50%) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* 聊天泡泡贴近头像/桌沿，左右两侧往内收，避免被屏幕裁掉 */
.seat-bubble {
  left: 50%;
  top: calc(100% - 2px);
  bottom: auto;
  transform: translate(-50%, -100%);
}

.seat[data-seat="1"] .seat-bubble {
  left: 165%;
}

.seat[data-seat="5"] .seat-bubble {
  left: -65%;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translate(-50%, -96%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

.seat-bubble {
  width: min(156px, 40vw);
  min-width: 92px;
  max-width: 156px;
  white-space: normal;
  word-break: break-word;
}

.seat[data-seat="1"] .seat-bubble {
  left: 250%;
}

.seat[data-seat="5"] .seat-bubble {
  left: -150%;
}

/* 聊天泡泡层：浮在牌桌/手牌之上，避免被牌遮住 */
.chat-layer {
  position: absolute;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  overflow: visible;
}

.chat-float {
  position: absolute;
  width: max-content;
  max-width: min(170px, 46vw);
  padding: 5px 8px;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(216, 180, 106, 0.4);
  border-radius: 9px;
  background: rgba(9, 6, 14, 0.94);
  color: var(--paper);
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  animation: bubble-in 0.18s var(--ease);
  word-break: break-word;
}

.chat-float b {
  display: block;
  margin-bottom: 1px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 500;
}

/* 阶段提示常驻在页面顶部，直到下一阶段替换 */
.phase-banner {
  position: relative;
  left: auto;
  top: auto;
  z-index: 29;
  flex: none;
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 12px;
  transform: none;
  border-top: 1px solid rgba(216, 180, 106, 0.45);
  border-bottom: 1px solid rgba(216, 180, 106, 0.45);
  background:
    linear-gradient(90deg, transparent, rgba(9, 5, 16, 0.9) 16%, rgba(9, 5, 16, 0.9) 84%, transparent),
    radial-gradient(ellipse at 50% 0%, rgba(216, 180, 106, 0.14), transparent 70%);
  font-size: clamp(24px, 6.8vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-shadow: 0 0 20px rgba(216, 180, 106, 0.3), 0 3px 10px rgba(0, 0, 0, 0.7);
}

.phase-banner.is-show {
  animation: phase-pop 0.72s var(--ease);
}

@keyframes phase-pop {
  0% { opacity: 0.2; transform: scale(0.92); }
  35% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* 牌桌上方四行操作记录，可向下滚动查看更早内容 */
.table-log {
  flex: none;
  height: 58px;
  margin: 0 8px 2px;
  padding: 3px 8px;
  border: 1px solid rgba(205, 180, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 5, 16, 0.72);
  overflow: hidden;
}

.table-log-list {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 180, 106, 0.18) transparent;
}

.table-log-list::-webkit-scrollbar {
  width: 3px;
}

.table-log-list::-webkit-scrollbar-track {
  background: transparent;
}

.table-log-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(216, 180, 106, 0.18);
}

.table-log-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 13px;
  color: rgba(241, 232, 216, 0.58);
  font-size: 10px;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
}

.table-log-line > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-log-line.is-latest {
  color: var(--paper);
}

.table-log-dot {
  width: 3px;
  height: 3px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}

.table-log-line.is-latest .table-log-dot {
  opacity: 1;
  box-shadow: 0 0 6px rgba(216, 180, 106, 0.6);
}

.game-screen.is-portrait .table-stage {
  height: min(60vh, 500px);
}
