/* 《竞花》界面样式
   布局基准 1366×768：顶栏 56 + 牌桌自适应 + 贴底手牌 184。
   排版只使用四级字号与一套间距/圆角/阴影令牌。 */

:root {
  /* 色彩 */
  --bg: #040b08;
  --felt: #0c3128;
  --felt-2: #15473a;
  --felt-deep: #061a14;
  --gold: #e6c06a;
  --gold-2: #c9a24b;
  --gold-3: #8f6c2b;
  --cream: #f7edd8;
  --text: #e9f1ec;
  --muted: #93a89c;
  --red: #cf5f63;
  --green: #5cc79a;
  --blue: #6a9ad8;
  --line: rgba(230, 192, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  /* 四级字号 */
  --fs-1: 20px;
  --fs-2: 15px;
  --fs-3: 13px;
  --fs-4: 11px;

  /* 间距栅格 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* 圆角 / 阴影 */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 18px;
  --r-pill: 999px;
  --shadow-1: 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-2: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 24px 56px rgba(0, 0, 0, 0.55);

  /* 控件尺寸 */
  --btn-h: 38px;
  --btn-h-sm: 30px;
  --topbar-h: 56px;
  --dock-h: 184px;

  --display: "Palatino Linotype", "Songti SC", "SimSun", Georgia, serif;
  --body: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(70, 140, 110, 0.26) 0%, transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(230, 192, 106, 0.07) 0%, transparent 60%),
    url("/assets/felt_green.png") repeat,
    var(--bg);
  background-blend-mode: normal, normal, soft-light, normal;
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-3);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.hint { color: var(--muted); font-size: var(--fs-3); line-height: 1.6; margin: var(--sp-1) 0; }
.ok, .good { color: var(--green); }
.pending { color: var(--gold); font-variant-numeric: tabular-nums; }
.bad { color: #ffb3b5; }

/* ------------------------------------------------------------ 顶栏：房号 / 轮次 / 积分 */
#topbar {
  position: relative;
  z-index: 30;
  flex: 0 0 var(--topbar-h);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 30, 24, 0.96), rgba(6, 17, 13, 0.94));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 192, 106, 0.45), transparent);
}

.brand { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(230, 192, 106, 0.25));
}
.brand-name {
  font-family: var(--display);
  font-size: var(--fs-1);
  letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(230, 192, 106, 0.28);
}

.status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-3);
  color: var(--muted);
  white-space: nowrap;
}
.pill b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.pill.gold { border-color: rgba(230, 192, 106, 0.4); }
.pill.gold b { color: var(--gold); }

.userbox {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 3px 4px 3px 3px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.25);
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-3);
  font-weight: 700;
  color: #241a08;
  background: linear-gradient(160deg, #f2d692, #bd9341);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.user-email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-4);
  color: var(--muted);
}

/* ------------------------------------------------------------ 通用控件 */
#app {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  padding: var(--sp-3) var(--sp-4);
}
.screen { flex: 1 1 auto; min-height: 0; display: flex; }

.card-panel {
  position: relative;
  border: 16px solid transparent;
  border-image: url("/assets/panel_dark.png") 48 fill stretch;
  padding: var(--sp-4);
  box-shadow: var(--shadow-2);
}
.card-panel h1 {
  margin: 0 0 var(--sp-2);
  font-family: var(--display);
  font-size: var(--fs-1);
  letter-spacing: 4px;
  color: var(--gold);
}
.card-panel h2, .card-panel h3 {
  margin: var(--sp-3) 0 var(--sp-2);
  font-size: var(--fs-3);
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}

button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  min-height: var(--btn-h);
  padding: 0 var(--sp-2);
  border: 10px solid transparent;
  border-image: url("/assets/btn_gold.png") 18 24 fill stretch;
  border-radius: var(--r-1);
  background: transparent;
  color: #241a08;
  font-family: var(--body);
  font-size: var(--fs-3);
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.08s ease;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { filter: grayscale(0.5) brightness(0.72); cursor: not-allowed; opacity: 0.75; }

button.ghost, button.secondary {
  border-image: url("/assets/btn_dark.png") 18 24 fill stretch;
  color: var(--text);
}
button.warn {
  border-image: url("/assets/btn_dark.png") 18 24 fill stretch;
  color: #ffb3b5;
}
button.warn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 85, 90, 0.5);
  border-radius: var(--r-1);
  pointer-events: none;
}
button.small {
  min-height: var(--btn-h-sm);
  border-width: 7px 12px;
  padding: 0 var(--sp-1);
  font-size: var(--fs-4);
  letter-spacing: 0.5px;
}
button[data-icon]::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0.9;
}
button.small[data-icon]::before { width: 12px; height: 12px; }
button[data-icon="plus"]::before { -webkit-mask-image: url("/assets/icon_plus.png"); mask-image: url("/assets/icon_plus.png"); }
button[data-icon="play"]::before { -webkit-mask-image: url("/assets/icon_play.png"); mask-image: url("/assets/icon_play.png"); }
button[data-icon="check"]::before { -webkit-mask-image: url("/assets/icon_check.png"); mask-image: url("/assets/icon_check.png"); }
button[data-icon="refresh"]::before { -webkit-mask-image: url("/assets/icon_refresh.png"); mask-image: url("/assets/icon_refresh.png"); }
button[data-icon="exit"]::before { -webkit-mask-image: url("/assets/icon_exit.png"); mask-image: url("/assets/icon_exit.png"); }
button[data-icon="cards"]::before { -webkit-mask-image: url("/assets/icon_cards.png"); mask-image: url("/assets/icon_cards.png"); }
button[data-icon="rooms"]::before { -webkit-mask-image: url("/assets/icon_rooms.png"); mask-image: url("/assets/icon_rooms.png"); }
button[data-icon="user"]::before { -webkit-mask-image: url("/assets/icon_user.png"); mask-image: url("/assets/icon_user.png"); }
button[data-icon="swap"]::before { -webkit-mask-image: url("/assets/icon_swap.png"); mask-image: url("/assets/icon_swap.png"); }
button[data-icon="trophy"]::before { -webkit-mask-image: url("/assets/icon_trophy.png"); mask-image: url("/assets/icon_trophy.png"); }

input, select {
  width: 100%;
  padding: 9px var(--sp-3);
  border-radius: var(--r-1);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-3);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: rgba(147, 168, 156, 0.55); }
input:focus, select:focus {
  border-color: rgba(230, 192, 106, 0.65);
  box-shadow: 0 0 0 3px rgba(230, 192, 106, 0.12);
}
select {
  appearance: none;
  padding-right: var(--sp-6);
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.row { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.row > button { flex: 0 0 auto; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-3); text-align: left; }
.field-label { font-size: var(--fs-4); letter-spacing: 1px; color: var(--muted); }
.field.inline {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  font-size: var(--fs-4);
  color: var(--muted);
  white-space: nowrap;
}
.field.inline select { width: auto; min-width: 96px; padding: 5px 30px 5px 10px; }

/* ------------------------------------------------------------ 登录 / 注册 */
#auth { align-items: center; justify-content: center; overflow: auto; }
.auth-mobile-brand { display: none; }
.auth-scene {
  width: min(920px, 94vw);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
}
.auth-art { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-2); }
.auth-logo { width: min(390px, 100%); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5)); }
.auth-tagline {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-2);
  letter-spacing: 2px;
  color: var(--cream);
}
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.auth-points li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-left: 2px solid rgba(230, 192, 106, 0.5);
  background: linear-gradient(90deg, rgba(230, 192, 106, 0.07), transparent);
  font-size: var(--fs-3);
  color: var(--muted);
}
.auth-points b { color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.auth-chips { display: flex; gap: var(--sp-2); margin-top: var(--sp-1); }
.auth-chips img { width: 42px; height: 42px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.auth-chips img:nth-child(2) { transform: translateY(6px) rotate(-8deg); }
.auth-chips img:nth-child(3) { transform: translateY(-4px) rotate(6deg); }
.auth-chips img:nth-child(4) { transform: translateY(5px) rotate(-4deg); }

.auth-panel { width: min(390px, 100%); justify-self: end; }
.auth-panel h1 { letter-spacing: 6px; }
.tabs {
  display: flex;
  gap: 4px;
  margin: var(--sp-3) 0 var(--sp-1);
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.28);
}
.tab {
  flex: 1;
  min-height: 32px;
  border: 0 !important;
  border-image: none !important;
  border-radius: var(--r-pill);
  background: transparent !important;
  color: var(--muted);
  font-size: var(--fs-3);
  font-weight: 600;
  letter-spacing: 2px;
}
.tab.active {
  color: #241a08;
  background: linear-gradient(160deg, #f2d692, #c59a45) !important;
  box-shadow: 0 4px 14px rgba(230, 192, 106, 0.28);
}
.auth-form { display: flex; flex-direction: column; }
.auth-form button[type="submit"] { margin-top: var(--sp-3); }
.auth-error { min-height: 16px; margin: var(--sp-2) 0 0; font-size: var(--fs-4); color: #ffb3b5; }

.connecting-panel { width: min(400px, 92vw); margin: auto; text-align: center; }
.connecting-mark {
  width: 80px;
  height: 80px;
  animation: breathe 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(230, 192, 106, 0.35));
}
.connecting-panel h1 { font-size: var(--fs-1); letter-spacing: 3px; margin-top: var(--sp-3); }

/* ------------------------------------------------------------ 大厅 */
#lobby { display: block; overflow: auto; padding: var(--sp-2) 0 var(--sp-5); }
.lobby-wrap,
.lobby-head,
.lobby-grid { width: min(1080px, 96vw); margin-left: auto; margin-right: auto; }
.lobby-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-1) var(--sp-3);
  flex-wrap: wrap;
}
.lobby-title { display: flex; flex-direction: column; gap: 2px; }
.lobby-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-1);
  letter-spacing: 6px;
  color: var(--gold);
}
.lobby-title p { margin: 0; font-size: var(--fs-4); letter-spacing: 1px; color: var(--muted); }
.lobby-user { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-4); color: var(--muted); }
.lobby-user .chip-mini { width: 24px; height: 24px; }

.lobby-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--sp-3); align-items: start; }
.lobby-side { display: flex; flex-direction: column; gap: var(--sp-3); }
.lobby-side .card-panel { padding: var(--sp-3); }
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-4);
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.section-label img { width: 14px; height: 14px; opacity: 0.85; }

.code-input {
  text-transform: uppercase;
  letter-spacing: 6px;
  text-align: center;
  font-size: var(--fs-2);
  font-weight: 700;
}

.lobby-room-code {
  font-family: var(--display);
  font-size: var(--fs-1);
  letter-spacing: 12px;
  text-align: center;
  color: var(--gold);
  margin: var(--sp-1) 0;
  text-shadow: 0 4px 22px rgba(230, 192, 106, 0.3);
}
.lobby-note { text-align: center; font-size: var(--fs-4); color: var(--muted); margin: 0 0 var(--sp-2); }

.lobby-seats { display: flex; flex-direction: column; gap: var(--sp-1); margin: var(--sp-2) 0 var(--sp-3); }
.lobby-seat {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: rgba(0, 0, 0, 0.2);
  font-size: var(--fs-3);
}
.lobby-seat.empty { border-style: dashed; color: var(--muted); justify-content: center; font-size: var(--fs-4); }
.lobby-seat .seat-main { flex: 1; min-width: 0; }
.lobby-seat .seat-sub { font-size: var(--fs-4); color: var(--muted); margin-top: 2px; }
.lobby-seat .ready-tag {
  font-size: var(--fs-4);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(88, 194, 149, 0.45);
  color: var(--green);
  white-space: nowrap;
}
.lobby-seat .ready-tag.pending { border-color: rgba(230, 192, 106, 0.35); color: var(--gold); font-variant-numeric: tabular-nums; }
.lobby-seat .host-tag { color: var(--gold); font-size: var(--fs-4); }

.lobby-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-2); }
.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: linear-gradient(160deg, rgba(30, 58, 47, 0.72), rgba(8, 24, 19, 0.85));
  box-shadow: var(--shadow-1);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 192, 106, 0.4);
  box-shadow: var(--shadow-2);
}
.room-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.room-no { font-family: var(--display); font-size: var(--fs-1); letter-spacing: 4px; color: var(--cream); }
.room-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-4); color: var(--muted); }
.room-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(88, 194, 149, 0.7);
}
.room-status.playing::before { background: var(--gold); box-shadow: 0 0 8px rgba(230, 192, 106, 0.7); }
.room-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.room-players { font-size: var(--fs-4); color: var(--muted); font-variant-numeric: tabular-nums; }
.room-players b { color: var(--gold); font-size: var(--fs-2); }
.room-empty {
  color: var(--muted);
  font-size: var(--fs-3);
  padding: var(--sp-5) var(--sp-2);
  text-align: center;
  border: 1px dashed var(--line-soft);
  border-radius: var(--r-2);
}

.lobby-chips { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-3); opacity: 0.85; }
.lobby-chips img { width: 38px; height: 38px; }
.lobby-chips img:nth-child(2) { transform: rotate(12deg) translateY(4px); }
.lobby-chips img:nth-child(3) { transform: rotate(-10deg) translateY(-3px); }

/* ------------------------------------------------------------ 牌桌骨架 */
#board { padding: 0; }
.table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--sp-2);
}
.table-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-2);
  box-shadow: var(--shadow-3);
}
.table-rail {
  position: absolute;
  inset: 0;
  border: 22px solid transparent;
  border-image: url("/assets/frame_wood.png") 64 fill stretch;
}
.table-felt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-2);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(46, 122, 94, 0.4) 0%, transparent 62%),
    radial-gradient(ellipse at 50% 92%, rgba(3, 16, 12, 0.72) 0%, transparent 58%),
    url("/assets/felt_green.png") repeat;
  box-shadow:
    inset 0 0 0 1px rgba(230, 192, 106, 0.14),
    inset 0 0 70px rgba(0, 0, 0, 0.62);
}

.felt-emblem {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(280px, 30vw);
  height: min(280px, 30vw);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: url("/assets/glow_gold.png") center / 92% no-repeat;
  opacity: 0.6;
  pointer-events: none;
}
.felt-emblem img { width: 100%; height: 100%; object-fit: contain; opacity: 0.12; }

.felt-chips {
  position: absolute;
  left: 24px;
  bottom: 16px;
  display: flex;
  gap: 2px;
  opacity: 0.2;
  pointer-events: none;
}
.felt-chips img { width: 34px; height: 34px; }
.felt-chips img:nth-child(2) { transform: translateY(-5px); }
.felt-chips img:nth-child(3) { transform: translateY(3px) rotate(14deg); }
.felt-chips img:nth-child(4) { transform: translateY(-2px) rotate(-9deg); }

/* 桌面 HUD：阶段倒计时 */
.table-hud {
  position: absolute;
  top: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  pointer-events: none;
}
.timer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 14px 4px 6px;
  border: 1px solid rgba(230, 192, 106, 0.28);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: var(--shadow-1);
  font-variant-numeric: tabular-nums;
}
.timer-ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.timer-ring .ring-bg { stroke: rgba(255, 255, 255, 0.1); }
.timer-ring .ring-fg {
  stroke: var(--gold);
  stroke-dasharray: 113.1;
  stroke-dashoffset: var(--offset, 0);
  transition: stroke-dashoffset 0.2s linear, stroke 0.2s ease;
}
.timer-meta { display: flex; align-items: baseline; gap: 6px; }
.timer-text { font-size: var(--fs-2); font-weight: 700; color: var(--gold); line-height: 1; }
.timer-label { font-size: var(--fs-4); color: var(--muted); line-height: 1; }
.timer.urgent {
  border-color: rgba(196, 85, 90, 0.7);
  background: rgba(80, 20, 22, 0.4);
  animation: urgentPulse 1s ease-in-out infinite;
}
.timer.urgent .ring-fg { stroke: var(--red); }
.timer.urgent .timer-text { color: #ffb3b5; }

/* 按需面板入口（弃牌堆） */
.table-tools {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 16;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
}
.tool-btn {
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  border: 8px solid transparent;
  border-image: url("/assets/btn_dark.png") 18 24 fill stretch;
  border-radius: 50%;
  color: var(--text);
}
.tool-btn[data-icon]::before { width: 17px; height: 17px; }
.sound-btn { display: flex; align-items: center; justify-content: center; }
.sound-icon { width: 18px; height: 18px; fill: currentColor; }
.sound-icon .wave { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sound-btn[aria-pressed="false"] { color: var(--muted); opacity: 0.7; }
.tool-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #241a08;
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ------------------------------------------------------------ 座位 */
.seats { position: absolute; inset: 0; pointer-events: none; }
.seat {
  position: absolute;
  width: 202px;
  padding: var(--sp-2) 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: linear-gradient(165deg, rgba(18, 44, 35, 0.94), rgba(5, 18, 14, 0.95));
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.seat.pos-0 { left: 50%; bottom: var(--sp-3); transform: translateX(-50%); }
.seat.pos-1 { left: 2.5%; top: 8%; }
.seat.pos-2 { right: 2.5%; top: 8%; }
.seat.me {
  border-color: rgba(230, 192, 106, 0.5);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(230, 192, 106, 0.2), 0 0 26px rgba(230, 192, 106, 0.12);
}
.seat.active-turn {
  border-color: rgba(230, 192, 106, 0.75);
  box-shadow: 0 0 0 1px rgba(230, 192, 106, 0.4), 0 0 28px rgba(230, 192, 106, 0.2);
}
.seat.offline { opacity: 0.62; }
.seat.empty { color: var(--muted); font-size: var(--fs-4); border-style: dashed; text-align: center; padding: var(--sp-4) var(--sp-3); }

.avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--cream);
  background: center / contain no-repeat url("/assets/avatar_ring_gold.png");
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.avatar.ring-green { background-image: url("/assets/avatar_ring_green.png"); }
.avatar.ring-red { background-image: url("/assets/avatar_ring_red.png"); }
.avatar.smaller { width: 30px; height: 30px; font-size: var(--fs-3); }

.seat-top { display: flex; align-items: center; gap: var(--sp-2); }
.seat-main { flex: 1; min-width: 0; }
.seat-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-name .crown { width: 13px; height: 13px; opacity: 0.9; filter: invert(80%) sepia(40%) saturate(500%) hue-rotate(2deg); }
.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: var(--fs-4);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.score img { width: 13px; height: 13px; opacity: 0.85; }

.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; min-height: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-4);
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.gold { color: var(--gold); border-color: rgba(230, 192, 106, 0.45); background: rgba(230, 192, 106, 0.08); }
.badge.red, .badge.warn { color: #ffb3b5; border-color: rgba(196, 85, 90, 0.5); background: rgba(196, 85, 90, 0.1); }
.badge.blue { color: #a9c7f2; border-color: rgba(93, 143, 208, 0.5); background: rgba(93, 143, 208, 0.1); }
.badge.green { color: var(--green); border-color: rgba(88, 194, 149, 0.45); background: rgba(88, 194, 149, 0.08); }
.timeout-pips { display: inline-flex; gap: 2px; margin-left: 2px; }
.timeout-pips i { width: 4px; height: 4px; border-radius: 50%; background: rgba(196, 85, 90, 0.35); }
.timeout-pips i.on { background: var(--red); box-shadow: 0 0 6px rgba(196, 85, 90, 0.8); }

.mini-hand { display: flex; align-items: center; gap: 1px; margin-top: 4px; min-height: 15px; }
.mini-back {
  width: 10px;
  height: 15px;
  border-radius: 2px;
  background: url("/assets/card_back.png") center / cover no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-left: -4px;
}
.mini-back:first-child { margin-left: 0; }
.mini-count { font-size: var(--fs-4); color: var(--muted); margin-left: 4px; }

/* ------------------------------------------------------------ 桌面中央 */
.center {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translate(-50%, -50%);
  width: clamp(480px, 42vw, 720px);
  max-height: 64%;
  overflow: auto;
  padding: var(--sp-3) var(--sp-4);
  border: 12px solid transparent;
  border-image: url("/assets/panel_dark.png") 48 fill stretch;
  text-align: center;
  scrollbar-width: thin;
  z-index: 10;
}
.center::-webkit-scrollbar { width: 6px; }
.center::-webkit-scrollbar-thumb { background: rgba(230, 192, 106, 0.25); border-radius: 3px; }

.stage { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.stage-head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stage-eyebrow { font-size: var(--fs-4); letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.stage-title {
  font-family: var(--display);
  font-size: var(--fs-1);
  letter-spacing: 2px;
  color: var(--gold);
  line-height: 1.25;
}
.stage-title small { font-family: var(--body); font-size: var(--fs-4); letter-spacing: 1px; color: var(--muted); }
.stage-body { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.stage-foot { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; }
.stage .hint { margin: 0; font-size: var(--fs-3); }
.divider { width: 100%; height: 16px; background: url("/assets/divider_gold.png") center / contain no-repeat; opacity: 0.65; }

.auction-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: var(--sp-1) 0; }
.auction-card .pedestal {
  position: absolute;
  bottom: -7px;
  width: 130px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230, 192, 106, 0.3), transparent 70%);
  filter: blur(2px);
}
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: var(--sp-2); width: 100%; }
.offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  background: rgba(0, 0, 0, 0.28);
}
.offer-card.OFFER { border-color: rgba(93, 143, 208, 0.5); box-shadow: 0 0 18px rgba(93, 143, 208, 0.1); }
.offer-card.me { border-color: rgba(230, 192, 106, 0.5); }
.offer-name { font-size: var(--fs-4); color: var(--muted); }
.bid-meta { font-size: var(--fs-3); color: var(--muted); }
.bid-meta b { color: var(--gold); font-variant-numeric: tabular-nums; }
.result-line { font-size: var(--fs-3); color: var(--muted); line-height: 1.5; }
.result-line.good { color: var(--green); font-weight: 600; }
.result-line.bad { color: #ffb3b5; }

.progress-row { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin: 2px 0; }
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  min-width: 84px;
  font-size: var(--fs-4);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
}
.progress-step.done { border-color: rgba(88, 194, 149, 0.45); color: var(--green); }
.progress-step.you { border-color: rgba(230, 192, 106, 0.45); color: var(--gold); }
.progress-step .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }

.groups { display: flex; gap: var(--sp-2); justify-content: center; margin-top: 2px; width: 100%; }
.group {
  flex: 1 1 0;
  max-width: 200px;
  min-height: 98px;
  padding: 6px;
  border: 1px dashed rgba(230, 192, 106, 0.3);
  border-radius: var(--r-1);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.group:hover { border-color: rgba(230, 192, 106, 0.7); background: rgba(230, 192, 106, 0.05); }
.group.active {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(230, 192, 106, 0.1);
  box-shadow: 0 0 0 1px rgba(230, 192, 106, 0.35) inset;
}
.group.done { border-style: solid; border-color: rgba(122, 190, 140, 0.55); }
.group-head { display: flex; justify-content: space-between; font-size: var(--fs-4); color: var(--muted); margin-bottom: 5px; }
.group-head b { color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.group-cards { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; min-height: 64px; align-items: center; }
.group-cards .hint { font-size: var(--fs-4); }

.result-table { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.result-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  background: rgba(0, 0, 0, 0.2);
}
.result-who { width: 76px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; text-align: left; min-width: 0; }
.result-who .name { font-size: var(--fs-4); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-who .name.you { color: var(--gold); }
.result-who .delta { font-size: var(--fs-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.result-who .delta i { font-style: normal; font-size: var(--fs-4); font-weight: 400; color: var(--muted); margin-left: 4px; }
.result-row .showdown-groups { flex: 1; justify-content: flex-end; }
.result-row .card.small { width: 34px; height: 44px; border-radius: 5px; }
.result-row .card.small .corner { font-size: 9px; top: 2px; left: 3px; }
.result-row .card.small .corner .suit { width: 7px; height: 7px; }
.result-row .card.small .corner.bottom { bottom: 2px; right: 3px; }
.result-row .card.small .pip .suit { width: 20px; height: 20px; }
.result-who .delta.pop { animation: scorePop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }

.showdown-groups { display: flex; gap: 3px; }
.showdown-group {
  position: relative;
  display: flex;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}
.showdown-group.won {
  border-color: rgba(88, 194, 149, 0.7);
  box-shadow: 0 0 0 1px rgba(88, 194, 149, 0.25), 0 0 16px rgba(88, 194, 149, 0.15);
}
.showdown-group .win-tag {
  position: absolute;
  top: -6px;
  right: -4px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #062017;
  font-size: 9px;
  font-weight: 700;
}

/* ------------------------------------------------------------ 拍卖侧栏 */
.side-drawer {
  position: absolute;
  right: var(--sp-2);
  top: 34%;
  bottom: var(--sp-2);
  z-index: 18;
  width: min(298px, 28%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 12px solid transparent;
  border-image: url("/assets/panel_dark.png") 48 fill stretch;
  box-shadow: var(--shadow-3);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.24s ease;
}
.side-drawer.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-3);
  letter-spacing: 2px;
  color: var(--gold);
}
.drawer-title img { width: 14px; height: 14px; opacity: 0.85; }
.drawer-round { font-size: var(--fs-4); color: var(--muted); font-variant-numeric: tabular-nums; }
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-right: 2px;
  scrollbar-width: thin;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(230, 192, 106, 0.22); border-radius: 2px; }
.drawer-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-4); }
.drawer-row .k { color: var(--muted); }
.drawer-row .v { color: var(--text); font-weight: 600; }
.drawer-body .offers-grid { grid-template-columns: 1fr 1fr; }
.drawer-body .hint { margin: 0; font-size: var(--fs-4); line-height: 1.5; }
.drawer-body .result-line { font-size: var(--fs-4); }
.drawer-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ------------------------------------------------------------ 贴底手牌 */
.hand-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-height: var(--dock-h);
  padding: var(--sp-2) var(--sp-4) 10px;
  border: 10px solid transparent;
  border-image: url("/assets/panel_dark.png") 48 fill stretch;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.35);
}
.hand-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 14px; }
.hand-title { font-size: var(--fs-4); letter-spacing: 2px; color: var(--muted); }
.hand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 108px;
  padding: 2px var(--sp-2) 0;
  overflow: visible;
}
.hand .hint { align-self: center; }
.actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-2);
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.actions::-webkit-scrollbar { display: none; }
.actions .hint { margin: 0; white-space: nowrap; }

/* ------------------------------------------------------------ 扑克牌（矢量牌面） */
.card {
  position: relative;
  width: 78px;
  height: 110px;
  flex: 0 0 auto;
  border-radius: var(--r-1);
  background: linear-gradient(158deg, #fffdf6 0%, #f6efdd 55%, #e9dfc7 100%);
  color: #1c221f;
  border: 1px solid rgba(120, 100, 60, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  display: block;
  user-select: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, outline-color 0.14s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  border: 1px solid rgba(120, 100, 60, 0.16);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, transparent 28%);
  pointer-events: none;
}
.card.red { color: #b23c45; }
.card.black { color: #1d2420; }
.card .corner {
  position: absolute;
  top: 5px;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: Georgia, "Times New Roman", var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.card .corner.bottom { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.card .corner .suit { width: 13px; height: 13px; }
.card .pip { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.14; pointer-events: none; }
.card .pip .suit { width: 52px; height: 52px; }
.card .suit { display: block; fill: currentColor; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-8px); box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42); }
.card.selected {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  transform: translateY(-12px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(230, 192, 106, 0.35);
  z-index: 40;
}
.card.small { width: 44px; height: 62px; border-radius: 6px; }
.card.small .corner { font-size: 11px; top: 3px; left: 4px; }
.card.small .corner .suit { width: 8px; height: 8px; }
.card.small .corner.bottom { bottom: 3px; right: 4px; }
.card.small .pip .suit { width: 28px; height: 28px; }
.card.big { width: 88px; height: 124px; border-radius: var(--r-1); }
.card.big .corner { font-size: 21px; }
.card.big .corner .suit { width: 16px; height: 16px; }
.card.big .pip .suit { width: 62px; height: 62px; }

/* 手牌扇形：--i / --n 由 JS 写入 */
#hand .card {
  --mid: calc((var(--n, 1) - 1) / 2);
  --rot: calc((var(--i, 0) - var(--mid)) * 2.1deg);
  --lift: calc(var(--i, 0) * 0.7px);
  margin-left: -18px;
  transform: translateY(var(--lift)) rotate(var(--rot));
  transform-origin: 50% 132%;
  z-index: calc(var(--i, 0) + 1);
}
#hand .card:first-child { margin-left: 0; }
#hand .card.clickable:hover { transform: translateY(-16px) rotate(0deg); z-index: 80; }
#hand .card.selected { transform: translateY(-14px) rotate(0deg); z-index: 70; }

.card.deal { animation: dealIn 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards; animation-delay: calc(var(--i, 0) * 26ms); }
.card.flip { animation: flipIn 0.42s cubic-bezier(0.25, 0.9, 0.3, 1.1) both; }
.card.reveal { animation: fadeUp 0.3s ease both; }

/* ------------------------------------------------------------ 公告 */
.notice {
  position: absolute;
  top: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border: 1px solid rgba(196, 85, 90, 0.55);
  border-radius: var(--r-pill);
  background: rgba(46, 14, 16, 0.94);
  color: #ffd7d8;
  font-size: var(--fs-3);
  box-shadow: var(--shadow-2);
  animation: noticeIn 0.28s ease both;
}
.notice::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("/assets/icon_clock.png") center / contain no-repeat;
  mask: url("/assets/icon_clock.png") center / contain no-repeat;
}

/* ------------------------------------------------------------ 弃牌堆弹窗 */
.pile-dialog {
  width: min(800px, 92vw);
  max-height: 84vh;
  padding: var(--sp-3) var(--sp-4);
  border: 16px solid transparent;
  border-image: url("/assets/panel_dark.png") 48 fill stretch;
  background: transparent;
  color: var(--text);
  box-shadow: var(--shadow-3);
}
.pile-dialog::backdrop { background: rgba(2, 10, 7, 0.7); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.dialog-title { display: flex; align-items: center; gap: var(--sp-2); }
.dialog-title img { width: 18px; height: 18px; opacity: 0.85; }
.dialog-title h2 { margin: 0; font-family: var(--display); font-size: var(--fs-1); letter-spacing: 2px; color: var(--gold); }
.filters { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-3) 0 var(--sp-2); flex-wrap: wrap; }
.pile-cards { display: flex; flex-wrap: wrap; gap: var(--sp-2); overflow: auto; max-height: 56vh; padding: 2px; }

/* ------------------------------------------------------------ 玩法说明 */
.help-dialog {
  width: min(720px, 92vw);
  max-height: 86vh;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border: 16px solid transparent;
  border-image: url("/assets/panel_dark.png") 48 fill stretch;
  background: transparent;
  color: var(--text);
  box-shadow: var(--shadow-3);
}
.help-dialog[open] { display: flex; flex-direction: column; }
.help-dialog::backdrop { background: rgba(2, 10, 7, 0.72); backdrop-filter: blur(4px); }
.help-head { flex: 0 0 auto; }
.help-body { overflow: auto; max-height: 68vh; padding-right: 4px; }
.help-lead { margin: var(--sp-3) 0 var(--sp-2); color: var(--cream); font-size: var(--fs-3); line-height: 1.7; }
.help-sec { padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.help-sec h3 {
  margin: 0 0 var(--sp-2);
  font-family: var(--display);
  font-size: var(--fs-2);
  letter-spacing: 1px;
  color: var(--gold);
}
.help-sec p { margin: 0; color: var(--muted); font-size: var(--fs-3); line-height: 1.7; }
.help-sec ul {
  display: grid;
  gap: 4px;
  margin: var(--sp-2) 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: var(--fs-3);
  line-height: 1.7;
}
.help-sec b { color: var(--cream); font-weight: 600; }
.help-order { color: var(--gold) !important; letter-spacing: 1px; }

/* ------------------------------------------------------------ Toast / 特效层 */
.toast {
  position: fixed;
  top: calc(var(--topbar-h) + var(--sp-3));
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 120;
  max-width: min(460px, 90vw);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(230, 192, 106, 0.4);
  border-radius: var(--r-pill);
  background: rgba(8, 24, 18, 0.95);
  color: var(--cream);
  font-size: var(--fs-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fx-layer { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.fly-card {
  position: fixed;
  width: 60px;
  height: 84px;
  border-radius: 7px;
  background: url("/assets/card_back.png") center / cover no-repeat;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(230, 192, 106, 0.35);
  z-index: 111;
}
.fly-card.face { background: linear-gradient(158deg, #fffdf6, #eadfc6); display: grid; place-items: center; }
.fly-card.face .suit { width: 30px; height: 30px; }
.fly-card.face.red { color: #b23c45; }
.fly-card.face.black { color: #1d2420; }

/* ------------------------------------------------------------ 动效 */
@keyframes dealIn {
  from { opacity: 0; transform: translate3d(0, 42px, 0) scale(0.72) rotate(6deg); }
  to { opacity: 1; }
}
@keyframes flipIn {
  from { opacity: 0.25; transform: rotateY(88deg) scale(0.92); }
  to { opacity: 1; transform: rotateY(0deg) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scorePop {
  0% { opacity: 0; transform: translateY(10px) scale(0.94); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(196, 85, 90, 0); }
  50% { box-shadow: 0 0 18px rgba(196, 85, 90, 0.3); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes noticeIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ------------------------------------------------------------ 断线 / 底部面板 / 过窄提示 */
.net-banner {
  position: fixed;
  left: 50%;
  top: calc(var(--topbar-h) + var(--sp-3));
  transform: translateX(-50%);
  z-index: 130;
  max-width: min(460px, 92vw);
  padding: 7px 16px;
  border: 1px solid rgba(196, 85, 90, 0.6);
  border-radius: var(--r-pill);
  background: rgba(58, 16, 18, 0.96);
  color: #ffd7d8;
  font-size: var(--fs-3);
  text-align: center;
  box-shadow: var(--shadow-2);
  white-space: nowrap;
}

.sheet-grab { display: none; }
.sheet-close { display: none; }
#auctionBtn { display: none; }
.sheet-scrim { display: none; }

.rotate-hint {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  background: rgba(2, 8, 6, 0.94);
  text-align: center;
}
.rotate-card {
  max-width: 320px;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: rgba(12, 34, 27, 0.92);
  box-shadow: var(--shadow-2);
}
.rotate-card strong { display: block; font-family: var(--display); font-size: var(--fs-1); letter-spacing: 2px; color: var(--gold); }
.rotate-card p { margin: var(--sp-2) 0 0; font-size: var(--fs-3); line-height: 1.7; color: var(--muted); }

/* ------------------------------------------------------------ 自适应 */
/* 1100–1366：紧凑 */
@media (max-width: 1100px) {
  :root { --dock-h: 174px; }
  .seat { width: 184px; }
  .card { width: 72px; height: 102px; }
  .card .corner { font-size: 16px; }
  .card .pip .suit { width: 46px; height: 46px; }
  .hand { height: 100px; }
  #hand .card { margin-left: -22px; }
  .center { width: min(480px, 44%); }
  .side-drawer { width: min(266px, 30%); }
}

/* 短屏笔记本：压缩纵向 */
@media (max-height: 760px) {
  :root { --dock-h: 168px; --topbar-h: 52px; }
  .card { width: 72px; height: 100px; }
  .hand { height: 98px; }
  .card .pip .suit { width: 46px; height: 46px; }
  .seat { padding: 6px 9px; }
  .seat .mini-hand { display: none; }
  .center { top: 38%; max-height: 66%; }
  .card.big { width: 74px; height: 104px; }
  .card.big .pip .suit { width: 50px; height: 50px; }
  .divider { height: 10px; }
  .stage .hint { line-height: 1.45; }
  .auction-card { margin: 0; }
  .card.small { width: 40px; height: 56px; }
}

/* 平板：牌桌改为流式三列（手机横向单独处理，避免与手机布局冲突） */
@media (min-width: 721px) and (max-width: 900px) and (min-height: 521px) {
  body { overflow: auto; }
  #board { overflow: auto; }
  .auth-scene { grid-template-columns: 1fr; justify-items: center; gap: var(--sp-4); }
  .auth-art { align-items: center; text-align: center; }
  .auth-points, .auth-chips { display: none; }
  .auth-panel { justify-self: center; }
  .lobby-grid { grid-template-columns: 1fr; }
  .table-wrap { display: flex; flex-direction: column; }
  .table-scene { min-height: 0; overflow: visible; box-shadow: none; }
  .table-rail { position: static; height: auto; border-width: 14px; }
  .table-felt { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); overflow: visible; }
  .seats { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); order: 1; }
  .seat { position: static !important; width: auto; transform: none !important; }
  .center { position: static; transform: none; width: 100%; max-height: none; order: 2; border-width: 10px; }
  .side-drawer { position: static; width: 100%; transform: none; opacity: 1; border-width: 10px; order: 3; }
  .side-drawer:not(.open) { display: none; }
  .felt-emblem, .felt-chips { display: none; }
  .table-hud { position: static; transform: none; order: 0; }
  .table-tools { position: static; display: flex; justify-content: flex-end; }
  .hand { height: auto; min-height: 96px; }
  .actions { flex-wrap: wrap; }
  .status .pill:nth-child(3) { display: inline-flex; }
}

/* ------------------------------------------------------------ 手机（独立形态，非桌面缩放） */
@media (max-width: 720px), (orientation: landscape) and (max-height: 520px) {
  :root {
    --topbar-h: 48px;
    --btn-h: 46px;
    --btn-h-sm: 44px;
    --dock-h: auto;
    --fs-1: 18px;
    --fs-2: 14px;
    --fs-3: 12px;
    --fs-4: 10px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  html, body { height: 100%; }
  body {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  body::before { display: none; }

  /* 顶栏一行：房号 / 轮次 / 积分 + 退出 */
  #topbar {
    flex: 0 0 auto;
    height: calc(var(--topbar-h) + var(--safe-top));
    padding: var(--safe-top) var(--sp-3) 0;
    gap: var(--sp-2);
  }
  .brand { display: none; }
  .status { gap: 6px; overflow: hidden; }
  .pill { flex: 0 0 auto; padding: 4px 10px; font-size: var(--fs-3); }
  .userbox { padding: 0; border: 0; background: none; }
  .user-avatar, .user-email { display: none; }
  .userbox button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-image: none;
    background: transparent;
    color: var(--muted);
    font-size: 0;
  }
  .userbox button::before { width: 18px; height: 18px; }

  #app { padding: 0; }
  #board { padding: 0; overflow: hidden; }
  .net-banner { top: calc(var(--topbar-h) + var(--safe-top) + 8px); }
  .table-wrap { display: flex; flex-direction: column; gap: 0; height: 100%; }
  .table-scene {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
  }
  .table-rail { position: absolute; inset: 0; height: auto; border-width: 10px; }
  .table-felt {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
  }
  .felt-emblem { width: 150px; height: 150px; opacity: 0.32; }
  .felt-chips { display: none; }

  /* 座位：左右上角 + 自己贴底 */
  .seats { position: absolute; inset: 0; display: block; }
  .seat {
    position: absolute !important;
    width: 116px;
    padding: 6px 8px;
    transform: none !important;
  }
  .seat.pos-0 {
    left: 50%;
    bottom: 6px;
    width: 146px;
    transform: translateX(-50%) !important;
  }
  .seat.pos-1 { left: 6px; top: 52px; }
  .seat.pos-2 { right: 6px; top: 52px; }
  .seat .avatar { width: 28px; height: 28px; font-size: var(--fs-3); }
  .seat-name { font-size: var(--fs-4); gap: 3px; }
  .seat .seat-name .crown { width: 11px; height: 11px; }
  .seat .score { margin-top: 1px; }
  .seat .badges { margin-top: 3px; gap: 2px; min-height: 0; }
  .seat .badge { padding: 0 5px; font-size: 9px; }
  .seat .mini-hand { display: none; }
  .seat.empty { padding: 8px 6px; }

  /* 中央舞台：主视觉为主，明细收进底部面板 */
  .center {
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: calc(100% - 16px);
    max-height: 42%;
    padding: 6px;
    border-width: 10px;
  }
  .stage { gap: 2px; }
  .stage-title { font-size: var(--fs-2); }
  .stage-eyebrow { letter-spacing: 2px; }
  .stage .hint, .stage-foot { font-size: var(--fs-4); line-height: 1.35; }
  .divider { height: 8px; }
  .groups { gap: 5px; }
  .group { min-height: 76px; padding: 4px; }
  .group-head { font-size: var(--fs-4); margin-bottom: 2px; }
  /* 三组并排时把已提交的三张叠放，避免换行把面板撑高 */
  .group-cards { min-height: 50px; gap: 0; flex-wrap: nowrap; }
  .group-cards .card.small { width: 34px; height: 48px; margin-left: -8px; }
  .group-cards .card.small:first-child { margin-left: 0; }
  .group-cards .card.small .corner { font-size: 9px; top: 2px; left: 2px; }
  .group-cards .card.small .corner .suit { width: 6px; height: 6px; }
  .group-cards .card.small .corner.bottom { display: none; }
  .group-cards .card.small .pip .suit { width: 16px; height: 16px; }
  .card.small { width: 44px; height: 58px; }
  .group-cards .card.small { width: 44px; height: 58px; }
  .card.small .corner { font-size: 10px; top: 2px; left: 3px; }
  .card.small .corner .suit { width: 7px; height: 7px; }
  .card.small .pip .suit { width: 24px; height: 24px; }
  .card.big { width: 66px; height: 94px; }
  .card.big .corner { font-size: 16px; }
  .card.big .pip .suit { width: 44px; height: 44px; }
  .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-who { width: 62px; }
  .result-row .card.small { width: 30px; height: 40px; }
  .result-row .card.small .pip .suit { width: 16px; height: 16px; }
  .progress-step { min-width: 72px; padding: 5px 8px; }

  .table-hud { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); }
  .timer { padding: 2px 10px 2px 4px; gap: 6px; }
  .timer-ring { width: 26px; height: 26px; }

  .table-tools {
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tool-btn { width: 46px; height: 46px; }
  #auctionBtn { display: flex; }
  #auctionBtn.hidden { display: none !important; }

  .notice { top: 6px; padding: 4px 12px; font-size: var(--fs-4); }

  /* 贴底手牌：竖屏一屏显示全部 9-12 张，不横向滚动 */
  .hand-dock {
    flex: 0 0 auto;
    min-height: 0;
    padding: var(--sp-2) 0 calc(var(--sp-2) + var(--safe-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 30, 23, 0.97), rgba(4, 14, 10, 0.99));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  }
  .hand-head { padding: 0 var(--sp-3); min-height: 12px; }
  .hand {
    --hw: 11.5%;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    height: auto;
    padding: 14px 4px 2px;
    overflow: visible;
  }
  /* 12 张按约 31% 叠压，刚好铺满一屏；每张左上角点数与花色始终露出 */
  #hand .card {
    width: var(--hw);
    height: auto;
    aspect-ratio: 3 / 4.2;
    margin-left: calc(var(--hw) * -0.31);
    border-radius: 5px;
    transform: none;
    flex: 0 0 auto;
  }
  #hand .card:first-child { margin-left: 0; }
  #hand .card .corner { font-size: clamp(10px, 3.6vw, 14px); top: 2px; left: 3px; gap: 0; }
  #hand .card .corner .suit { width: 8px; height: 8px; }
  #hand .card .corner.bottom { display: none; }
  #hand .card .pip .suit { width: 18px; height: 18px; }
  #hand .card.clickable:hover { transform: none; }
  #hand .card.selected {
    transform: translateY(-14px);
    z-index: 90;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5), 0 0 18px rgba(230, 192, 106, 0.4);
  }
  .hand .hint { align-self: center; padding-left: var(--sp-2); }

  /* 操作区换行显示，主要按钮不再需要横向滑动才能看到 */
  .actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    padding: 0 var(--sp-2);
    overflow: visible;
  }
  .actions button { flex: 0 0 auto; min-height: 40px; padding: 0 12px; font-size: var(--fs-3); }
  .actions .hint { flex: 1 1 100%; font-size: var(--fs-4); text-align: center; white-space: normal; }
  .tab, .auth-form button, input, select { min-height: 44px; }

  /* 拍卖区：底部弹出面板 */
  .sheet-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(2, 8, 6, 0.6);
  }
  .sheet-scrim.hidden { display: none !important; }

  .side-drawer {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 74dvh;
    z-index: 90;
    padding: var(--sp-2) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: var(--r-3) var(--r-3) 0 0;
    background: linear-gradient(180deg, rgba(14, 38, 30, 0.99), rgba(5, 16, 12, 0.99));
    box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.6);
    transform: translateY(102%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.16s ease;
  }
  .side-drawer.open { transform: translateY(0); pointer-events: auto; }
  .sheet-grab {
    position: relative;
    display: block;
    width: 100%;
    height: 22px;
    margin: -2px 0 var(--sp-1);
    flex: 0 0 auto;
    background: transparent;
    touch-action: none;
  }
  .sheet-grab::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 44px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.28);
  }
  .card, button, .seat, .tool-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .sheet-close { display: inline-flex; min-width: 64px; min-height: 44px; }
  .drawer-head { align-items: center; }
  .drawer-round { margin-left: auto; }
  .drawer-body { gap: var(--sp-2); }
  .drawer-body .offers-grid { grid-template-columns: 1fr 1fr; }

  /* 弃牌堆：底部抽屉 */
  .pile-dialog {
    position: fixed;
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 84dvh;
    padding: var(--sp-2) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: var(--r-3) var(--r-3) 0 0;
    background: linear-gradient(180deg, rgba(14, 38, 30, 0.99), rgba(5, 16, 12, 0.99));
    box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.6);
  }
  .pile-dialog::backdrop { background: rgba(2, 8, 6, 0.62); }
  .dialog-title h2 { font-size: var(--fs-2); letter-spacing: 1px; }
  .filters { gap: var(--sp-2); margin: var(--sp-2) 0; }
  .field.inline select { min-height: 44px; padding: 0 30px 0 10px; }
  .pile-cards { max-height: 52dvh; gap: 6px; }
  .pile-cards .card { width: 40px; height: 56px; }

  /* 玩法说明：全屏底部面板 */
  .help-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(var(--safe-top) + var(--sp-2)) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom));
    border: 0;
    background: linear-gradient(180deg, rgba(14, 38, 30, 0.99), rgba(5, 16, 12, 0.99));
    box-shadow: none;
  }
  .help-dialog::backdrop { background: rgba(2, 8, 6, 0.62); }
  .help-body { flex: 1 1 auto; max-height: none; padding-right: 0; }
  .help-lead { margin-top: var(--sp-2); }
  .help-sec { padding: var(--sp-2) 0; }
  .help-sec h3 { font-size: var(--fs-3); }

  /* 登录 / 大厅 */
  #auth {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: auto;
    padding: var(--sp-2) var(--sp-3) calc(var(--sp-4) + var(--safe-bottom));
  }
  .auth-mobile-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--sp-3);
    width: min(420px, 100%);
    margin: 0 auto var(--sp-2);
    padding: var(--sp-2);
  }
  .auth-mobile-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  }
  .auth-mobile-text { min-width: 0; }
  .auth-mobile-name {
    margin: 0;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 4px;
    color: var(--gold);
  }
  .auth-mobile-line {
    margin: 3px 0 0;
    font-size: var(--fs-3);
    line-height: 1.35;
    color: var(--cream);
  }
  .auth-mobile-note {
    margin: 2px 0 0;
    font-size: var(--fs-4);
    line-height: 1.3;
    color: var(--muted);
  }
  .auth-scene { grid-template-columns: 1fr; justify-items: center; gap: var(--sp-3); width: 100%; }
  .auth-art { display: none; }
  .auth-panel { width: min(420px, 100%); justify-self: center; }
  #lobby { padding: var(--sp-2) var(--sp-3) var(--sp-5); }
  .lobby-wrap, .lobby-head, .lobby-grid { width: 100%; }
  .lobby-grid { grid-template-columns: 1fr; }
  .lobby-head { align-items: center; padding-bottom: var(--sp-2); }
  .lobby-rooms { grid-template-columns: 1fr; gap: var(--sp-2); }
  .lobby-room-code { letter-spacing: 8px; font-size: 28px; }
  .lobby-seats { gap: 4px; }
  .lobby-seat { padding: 6px 8px; }
  .lobby-note { margin: 2px 0 6px; font-size: var(--fs-4); }
  .card-panel { border-width: 12px; padding: var(--sp-3); }

  /* 触屏：去掉粘滞 hover，保留按压反馈 */
  button:hover:not(:disabled) { filter: none; }
  button:active:not(:disabled) { filter: brightness(1.12); transform: translateY(1px); }

  /* 低端机减负：关闭重动画，保留状态色与选中抬起 */
  .card.deal, .card.flip, .card.reveal { animation: none !important; }
  .fly-card { display: none !important; }
  .timer.urgent { animation: none; }
  .connecting-mark { animation: none; }
  .result-who .delta.pop { animation: none; }
  .room-card:hover { transform: none; }
}

/* 手机横屏：牌桌在左、手牌在右，避免纵向硬挤 */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --topbar-h: 44px; }
  .table-wrap { flex-direction: row; align-items: stretch; }
  .table-scene { flex: 1 1 auto; min-width: 0; }
  .hand-dock {
    flex: 0 0 clamp(232px, 36vw, 320px);
    width: clamp(232px, 36vw, 320px);
    height: 100%;
    padding: 6px 0 calc(6px + var(--safe-bottom));
    border-top: 0;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
  }
  .seat { width: 108px; padding: 4px 6px; }
  .seat.pos-0 { left: 8px; bottom: 6px; width: 108px; transform: none !important; }
  .seat.pos-1 { top: 8px; }
  .seat.pos-2 { top: 8px; }
  .seat .avatar { width: 24px; height: 24px; }
  .seat .badges { max-height: 18px; overflow: hidden; }
  .center { top: 52%; width: 52%; max-height: 58%; }
  .stage-title { font-size: var(--fs-3); }
  .hand-head { display: none; }
  .hand { --hw: 11.5%; height: auto; padding: 12px 4px 2px; overflow: visible; }
  #hand .card { width: var(--hw); height: auto; aspect-ratio: 3 / 4.2; margin-left: calc(var(--hw) * -0.31); }
  #hand .card .corner { font-size: 10px; top: 2px; left: 2px; }
  #hand .card .corner .suit { width: 7px; height: 7px; }
  #hand .card .corner.bottom { display: none; }
  #hand .card .pip .suit { width: 14px; height: 14px; }
  .actions { min-height: 46px; padding: 0 var(--sp-2); }

  /* 登录页横屏：品牌在左、表单在右，保证首屏可输入 */
  #auth {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    padding: 0 var(--sp-4);
  }
  .auth-mobile-brand { width: 38%; max-width: 300px; margin: 0; }
  .auth-mobile-note { display: none; }
  .auth-scene { width: 56%; max-width: 420px; gap: var(--sp-2); }
  .auth-panel { padding: var(--sp-2) var(--sp-3); }
  .auth-panel h1 { font-size: var(--fs-2); letter-spacing: 4px; }
  .auth-panel .hint { display: none; }
  .auth-panel .tabs { margin-bottom: var(--sp-1); }
  .auth-form .field { margin-bottom: var(--sp-1); }
  .auth-form button[type="submit"] { margin-top: var(--sp-1); }
}

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