/* ==========================================================================
   赤金德州 · online.css — 联机版补充层
   只新增「登录 / 在线大厅 / 联机牌桌」的布局与状态，不改写 theme/table/polish
   已有的牌面、牌桌、座位与行动区样式。
   颜色沿用 theme.css 的深红丝绒 / 黑皮 / 香槟金变量。
   ========================================================================== */

/* ------------------------------ 0. 屏幕与场景 ------------------------------ */
.online-app {
  background: var(--bg-0);
}

.screen--login,
.screen--online-lobby,
.screen--online-table {
  background: var(--bg-0);
}

.screen--login.is-active,
.screen--online-lobby.is-active,
.screen--online-table.is-active {
  display: flex;
  flex-direction: column;
}

.screen--login,
.screen--online-lobby {
  overflow: hidden;
}

.online-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.online-scene--login {
  background:
    radial-gradient(ellipse 52% 48% at 50% 32%, rgba(126, 40, 44, 0.24) 0%, rgba(20, 8, 10, 0) 68%),
    radial-gradient(ellipse 80% 60% at 18% 88%, rgba(92, 20, 26, 0.24) 0%, rgba(9, 5, 7, 0) 72%),
    url("../assets/lobby-bg.svg") center 42% / cover no-repeat,
    linear-gradient(180deg, #08050a 0%, #100a0f 48%, #0a0608 100%);
}

.online-scene--lobby {
  background:
    radial-gradient(ellipse 46% 44% at 50% 20%, rgba(126, 40, 44, 0.2) 0%, rgba(20, 8, 10, 0) 68%),
    radial-gradient(ellipse 70% 58% at 82% 86%, rgba(96, 22, 30, 0.22) 0%, rgba(9, 5, 7, 0) 70%),
    url("../assets/lobby-bg.svg") center 30% / cover no-repeat,
    linear-gradient(180deg, #08050a 0%, #0d080d 52%, #090507 100%);
}

.online-scene__glow {
  position: absolute;
  left: 50%;
  top: -16%;
  width: 92%;
  height: 66%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 60% at 50% 42%, rgba(255, 206, 148, 0.1) 0%, rgba(255, 206, 148, 0) 68%);
  filter: blur(6px);
}

.online-scene__arch {
  position: absolute;
  left: 50%;
  top: 2%;
  width: min(1100px, 96vw);
  height: 132%;
  transform: translateX(-50%);
  border-radius: 48% 48% 0 0;
  border: 1px solid rgba(232, 196, 125, 0.08);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.4);
}

.online-scene__arch::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: inherit;
  border: 1px solid rgba(232, 196, 125, 0.05);
}

.online-scene__floor {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background:
    linear-gradient(180deg, rgba(6, 4, 7, 0) 0%, rgba(5, 3, 6, 0.66) 58%, rgba(4, 3, 5, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(232, 196, 125, 0.045) 0 1px, rgba(232, 196, 125, 0) 1px 176px);
}

.online-scene__bokeh {
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

.online-scene__bokeh i {
  position: absolute;
  left: var(--x, 20%);
  top: var(--y, 30%);
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe0a8 0%, rgba(255, 224, 168, 0) 70%);
  opacity: var(--o, 0.4);
  box-shadow: 0 0 6px rgba(255, 214, 160, 0.5);
  animation: online-bokeh 7s var(--ease-in-out) var(--d, 0s) infinite alternate;
}

@keyframes online-bokeh {
  from { transform: translate3d(0, -4px, 0); opacity: calc(var(--o, .4) * 0.7); }
  to { transform: translate3d(0, 6px, 0); opacity: var(--o, .4); }
}

/* ------------------------------ 1. 顶栏 / 品牌 ------------------------------ */
.online-topbar {
  position: relative;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 44px);
}

.online-topbar--lobby {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.1);
  background: linear-gradient(180deg, rgba(9, 6, 9, 0.72) 0%, rgba(9, 6, 8, 0.28) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

.online-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  border: 1px solid rgba(255, 246, 216, 0.6);
  background: linear-gradient(180deg, #f7e7bd 0%, #d0a257 58%, #a97a35 100%);
  color: #3a2405;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(232, 196, 125, 0.14);
}

.online-brand__mark .icon {
  width: 22px;
  height: 22px;
}

.online-brand__text {
  min-width: 0;
}

.online-brand__text b {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.online-brand__text small {
  display: block;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.34em;
  line-height: 1.5;
  color: rgba(232, 196, 125, 0.55);
  white-space: nowrap;
}

.online-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color var(--dur);
}

.online-text-link .icon {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.online-text-link:hover {
  color: var(--gold-1);
}

/* 连接状态胶囊 */
.online-conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.18);
  background: rgba(8, 5, 7, 0.42);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.online-conn-pill i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--muted-dim);
}

.online-conn-pill.is-online {
  border-color: rgba(95, 224, 189, 0.26);
  color: var(--green-bright);
}

.online-conn-pill.is-online i {
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(95, 224, 189, 0.7);
  animation: dot-live 2.2s var(--ease-in-out) infinite;
}

.online-conn-pill.is-connecting {
  border-color: rgba(232, 196, 125, 0.24);
  color: var(--gold-1);
}

.online-conn-pill.is-connecting i {
  background: var(--gold-1);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.6);
  animation: dot-live 1.4s var(--ease-in-out) infinite;
}

.online-conn-pill.is-offline {
  border-color: rgba(255, 107, 94, 0.3);
  color: #ffb6ab;
}

.online-conn-pill.is-offline i {
  background: #ff7a6a;
  box-shadow: 0 0 8px rgba(255, 107, 94, 0.7);
}

.online-conn-pill.is-demo {
  border-color: rgba(140, 120, 255, 0.3);
  color: #c4b8ff;
}

.online-conn-pill.is-demo i {
  background: #a593ff;
  box-shadow: 0 0 8px rgba(140, 120, 255, 0.6);
}

/* ------------------------------ 2. 登录页 ------------------------------ */
.screen--login {
  overflow: hidden;
}

.login-main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(14px, 3vh, 36px) clamp(18px, 4vw, 44px) 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.login-brand {
  min-width: 0;
  max-width: 560px;
}

.login-brand__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(232, 196, 125, 0.72);
  text-transform: uppercase;
}

.login-brand__kicker i {
  display: block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 196, 125, 0), rgba(232, 196, 125, 0.7));
}

.login-brand__kicker i:last-child {
  background: linear-gradient(90deg, rgba(232, 196, 125, 0.7), rgba(232, 196, 125, 0));
}

.login-brand__title {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 10px 0 2px;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.05em;
  color: var(--gold-0);
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.6), 0 0 60px rgba(232, 196, 125, 0.16);
}

.login-brand__title em {
  background: linear-gradient(180deg, #fff3d3 6%, #f0d59b 40%, #c99a4e 78%, #e8c47d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(232, 196, 125, 0.18));
}

.login-brand__en {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: rgba(232, 196, 125, 0.5);
}

.login-brand__tagline {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.login-brand__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.login-brand__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.16));
}

.login-brand__ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(232, 196, 125, 0.2);
  background: rgba(232, 196, 125, 0.07);
  color: var(--gold-1);
}

.login-brand__ico .icon {
  width: 16px;
  height: 16px;
}

.login-brand__points b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  line-height: 1.5;
}

.login-brand__points p {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted-dim);
}

/* 登录卡片 */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 424px;
  justify-self: center;
  padding: 26px 28px 22px;
  border-radius: var(--radius-xl);
  border-color: rgba(232, 196, 125, 0.26);
  box-shadow: var(--shadow-2), 0 0 70px rgba(232, 196, 125, 0.07),
    inset 0 1px 0 rgba(255, 236, 200, 0.09);
}

.auth-card::before {
  opacity: 0.7;
}

.auth-card__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.44em;
  color: var(--gold-2);
  text-transform: uppercase;
}

.auth-card__head h2 {
  margin: 6px 0 5px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--gold-0);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.auth-card__head p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 0 16px;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid rgba(232, 196, 125, 0.14);
  background: rgba(0, 0, 0, 0.34);
}

.auth-tab {
  position: relative;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color var(--dur), background var(--dur), box-shadow var(--dur);
}

.auth-tab:hover {
  color: var(--ink-soft);
}

.auth-tab.is-active {
  color: #2a1a08;
  background: linear-gradient(180deg, #f0d79c, #c99a4e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 12px rgba(0, 0, 0, 0.4);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.online-field {
  display: block;
  min-width: 0;
}

.online-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.online-field__box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(232, 196, 125, 0.18);
  background: linear-gradient(180deg, rgba(10, 7, 9, 0.66), rgba(19, 12, 15, 0.72));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.online-field__box .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold-2);
  opacity: 0.72;
}

.online-field__box:focus-within {
  border-color: rgba(232, 196, 125, 0.6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(232, 196, 125, 0.1),
    0 0 24px rgba(232, 196, 125, 0.08);
}

.online-field__box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.online-field__box input::placeholder {
  color: var(--muted-dim);
}

.online-field__hint {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-dim);
}

.online-field__error {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 94, 0.32);
  background: rgba(120, 24, 28, 0.22);
  color: #ffc1b7;
  font-size: 11px;
  line-height: 1.55;
}

.auth-submit {
  height: 48px;
  margin-top: 3px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
}

.auth-card__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.online-status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--muted-dim);
}

.online-status-dot.is-online {
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(95, 224, 189, 0.7);
}

.online-status-dot.is-connecting {
  background: var(--gold-1);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.7);
  animation: dot-live 1.4s var(--ease-in-out) infinite;
}

.online-status-dot.is-offline {
  background: #ff7a6a;
  box-shadow: 0 0 8px rgba(255, 107, 94, 0.7);
}

.auth-card__foot {
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted-dim);
}

.auth-card__foot a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-card__foot a:hover {
  color: var(--gold-0);
}

/* 登录页底部 */
.online-footer {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(16px, 4vw, 44px) 14px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}

.online-footer--login {
  justify-content: center;
  flex-wrap: wrap;
}

.online-footer--lobby {
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(232, 196, 125, 0.08);
  background: linear-gradient(180deg, rgba(8, 5, 8, 0.2), rgba(6, 4, 7, 0.6));
}

.online-footer__brand {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  color: rgba(232, 196, 125, 0.42);
}

.online-footer__sep {
  width: 1px;
  height: 9px;
  flex: none;
  background: rgba(255, 255, 255, 0.12);
}

.online-footer__left,
.online-footer__right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* ------------------------------ 3. 在线大厅 ------------------------------ */
.online-topbar__home {
  flex: none;
}

.online-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.16);
  background: linear-gradient(180deg, rgba(38, 25, 29, 0.6), rgba(10, 7, 9, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.06);
}

.online-user-chip__avatar {
  --avatar-size: 32px;
  flex: none;
}

.online-user-chip__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.online-user-chip__meta b {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-chip__meta small {
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.online-topbar__exit {
  width: 36px;
  height: 36px;
}

.online-lobby__main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(16px, 2.8vh, 30px) clamp(18px, 4vw, 44px) 18px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.lobby-hero {
  min-width: 0;
  margin-bottom: clamp(16px, 2.6vh, 26px);
}

.lobby-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(232, 196, 125, 0.66);
  text-transform: uppercase;
}

.lobby-hero__kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 196, 125, 0), rgba(232, 196, 125, 0.7));
}

.lobby-hero__title {
  margin: 8px 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  color: var(--gold-0);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.lobby-hero__title em {
  background: linear-gradient(180deg, #fff3d3 6%, #f0d59b 40%, #c99a4e 78%, #e8c47d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lobby-hero__lead {
  max-width: 740px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.online-lobby__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.82fr);
  gap: clamp(14px, 1.6vw, 20px);
  align-items: start;
}

/* 牌桌卡 */
.online-table-card {
  padding: 20px 22px 18px;
  border-radius: var(--radius-l);
  border-color: rgba(232, 196, 125, 0.2);
  background:
    radial-gradient(ellipse 58% 42% at 50% 0%, rgba(122, 32, 40, 0.34) 0%, rgba(122, 32, 40, 0) 68%),
    var(--panel-glass);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 236, 200, 0.08);
}

.online-table-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.online-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.34em;
  color: rgba(232, 196, 125, 0.58);
  text-transform: uppercase;
}

.online-table-card__head h2 {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-0);
}

.online-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.24);
  background: rgba(232, 196, 125, 0.07);
  color: var(--gold-1);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.online-live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.8);
  animation: dot-live 2.2s var(--ease-in-out) infinite;
}

.online-live-pill.is-live {
  border-color: rgba(95, 224, 189, 0.28);
  color: var(--green-bright);
}

.online-live-pill.is-live i {
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(95, 224, 189, 0.75);
}

.online-table-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 14px;
}

.online-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.2);
}

.online-meta-item .icon {
  width: 13px;
  height: 13px;
  color: var(--gold-2);
  opacity: 0.78;
}

.online-meta-item span {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.online-meta-item b {
  overflow: hidden;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--gold-1);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-seat-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.online-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 3px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.18);
}

.online-seat__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0.22);
  background: radial-gradient(circle at 40% 30%, #33222a, #0b0708 72%);
}

.online-seat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-seat__avatar .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-dim);
}

.online-seat__name {
  max-width: 100%;
  overflow: hidden;
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-seat.is-human {
  border-color: rgba(232, 196, 125, 0.28);
  background: rgba(232, 196, 125, 0.055);
}

.online-seat.is-human .online-seat__name {
  color: var(--gold-1);
}

.online-seat.is-empty {
  border-style: dashed;
  opacity: 0.72;
}

.online-seat__pos {
  font-family: var(--font-num);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.online-table-card__cta {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.online-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  font-size: 14px;
  letter-spacing: 0.18em;
  border-radius: 12px;
}

.online-join-btn .icon {
  width: 17px;
  height: 17px;
  transition: transform var(--dur-fast);
}

.online-join-btn:hover .icon {
  transform: translateX(3px);
}

.online-join-btn.is-busy {
  pointer-events: none;
  filter: saturate(0.6);
}

.online-join-btn.is-queued {
  border-color: rgba(232, 196, 125, 0.5);
}

.online-table-card__note {
  text-align: center;
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

.online-table-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted-dim);
}

.online-table-card__foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.online-table-card__foot .icon {
  width: 12px;
  height: 12px;
  color: var(--gold-2);
  opacity: 0.8;
}

/* 侧栏 */
.online-lobby__side {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  min-width: 0;
}

.online-account-card {
  padding: 18px 18px 16px;
}

.online-account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.online-account-card__badge {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: rgba(232, 196, 125, 0.42);
}

.online-account-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.online-account-card__avatar {
  --avatar-size: 52px;
  flex: none;
}

.online-account-card__name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.online-account-card__name strong {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-0);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-account-card__name .tag {
  align-self: flex-start;
}

.online-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 15px 0 14px;
}

.online-account-stats > div {
  min-width: 0;
  padding: 10px 6px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.2);
}

.online-account-stats b {
  display: block;
  overflow: hidden;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-1);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-account-stats span {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.online-account-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.online-account-card__actions .btn {
  width: 100%;
  padding-left: 8px;
  padding-right: 8px;
}

/* 联机须知 */
.online-rules {
  padding: 16px 18px 13px;
}

.online-rules .panel__head {
  margin-bottom: 9px;
}

.online-rules__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.online-rules__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.online-rules__list li > span {
  flex: none;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.35;
  color: var(--gold-3);
}

.online-rules__list p {
  font-size: 10px;
  line-height: 1.62;
  color: var(--muted);
}

.online-rules__list b {
  color: var(--gold-1);
  font-weight: 600;
}

.online-rules__foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 8.5px;
  line-height: 1.55;
  color: var(--muted-dim);
}

.online-rules__foot .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
  color: var(--gold-2);
  opacity: 0.8;
}

/* ------------------------------ 4. 联机牌桌补充 ------------------------------ */
.screen--online-table {
  overflow: hidden;
}

.screen--online-table .game__header {
  position: relative;
}

#header-stack {
  font-variant-numeric: tabular-nums;
}

.online-table-id {
  position: absolute;
  left: 22px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.36em;
  color: rgba(232, 196, 125, 0.26);
  pointer-events: none;
  user-select: none;
}

.online-history-sync {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

/* 排队 / 等待入座提示（不阻塞页面） */
.online-wait-layer {
  position: absolute;
  left: 22px;
  top: 14px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 8px 16px 8px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.34);
  background: linear-gradient(180deg, rgba(36, 24, 28, 0.92), rgba(10, 7, 9, 0.94));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 236, 200, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  animation: online-wait-in 0.3s var(--ease-out) both;
}

.online-wait-layer__spin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0.3);
  background: rgba(232, 196, 125, 0.07);
  color: var(--gold-1);
}

.online-wait-layer__spin .icon {
  width: 14px;
  height: 14px;
  animation: online-spin 3.6s linear infinite;
}

.online-wait-layer__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.online-wait-layer__copy strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-0);
  white-space: nowrap;
}

.online-wait-layer__copy span {
  overflow: hidden;
  font-size: 9px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes online-wait-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* 断线重连条 */
.online-reconnect {
  position: absolute;
  left: 50%;
  top: 62px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(560px, calc(100vw - 28px));
  padding: 10px 12px 10px 13px;
  transform: translateX(-50%);
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 94, 0.38);
  background: linear-gradient(180deg, rgba(48, 18, 21, 0.95), rgba(12, 8, 10, 0.96));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6), 0 0 40px rgba(181, 45, 53, 0.18),
    inset 0 1px 0 rgba(255, 190, 178, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: online-reconnect-in 0.3s var(--ease-out) both;
}

.online-reconnect__spin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 130, 115, 0.3);
  background: rgba(181, 45, 53, 0.14);
  color: #ffb3a8;
}

.online-reconnect__spin .icon {
  width: 16px;
  height: 16px;
  animation: online-spin 2.6s linear infinite;
}

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

.online-reconnect__copy strong {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffd2ca;
  white-space: nowrap;
}

.online-reconnect__copy span {
  overflow: hidden;
  font-size: 9.5px;
  color: rgba(255, 200, 192, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-reconnect__retry {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 160, 145, 0.4);
  background: linear-gradient(180deg, rgba(130, 32, 38, 0.55), rgba(58, 14, 18, 0.72));
  color: #ffd9d3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color var(--dur), background var(--dur);
}

.online-reconnect__retry:hover {
  border-color: rgba(255, 190, 178, 0.7);
  background: linear-gradient(180deg, rgba(160, 42, 48, 0.62), rgba(72, 18, 22, 0.78));
}

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

/* 行动区里的错误 / 等待提示 */
#dock-note.is-error {
  border-color: rgba(255, 107, 94, 0.34);
  color: #ffb6ab;
}

#dock-note.is-error b {
  color: #ffd0c8;
}

/* 摊牌托盘：ready 等待态 */
.result-tray__next.is-waiting {
  opacity: 0.62;
  filter: saturate(0.7);
  pointer-events: none;
}

.result-tray__next.is-ready {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(94, 60, 16, 0.5),
    0 10px 26px rgba(0, 0, 0, 0.42), 0 0 40px rgba(232, 196, 125, 0.34);
}

.result-tray__hands .result-tray-hand {
  max-width: 160px;
}

/* 空座位占位（等待入座 / 队列阶段） */
.seat.is-empty {
  opacity: 0.5;
  filter: saturate(0.4);
}

.seat.is-empty .avatar__level,
.seat.is-empty .seat__style {
  display: none;
}

.seat__empty-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: var(--muted-dim);
  background: radial-gradient(circle at 40% 30%, #241a20, #0a0709 74%);
}

.seat__empty-mark .icon {
  width: 40%;
  height: 40%;
  opacity: 0.8;
}

/* 摊牌时高亮牌型的座位手牌 */
.seat.is-revealed .seat__cards .card.is-winning {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(249, 237, 203, 0.9), 0 0 0 1px rgba(232, 196, 125, 0.55),
    0 0 16px rgba(232, 196, 125, 0.5);
}

/* 演示模式角标：只在联机牌桌显示（登录/大厅用状态胶囊与页脚标注） */
.online-demo-badge {
  position: fixed;
  left: 50%;
  bottom: 156px;
  z-index: 95;
  display: none;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 120, 255, 0.4);
  background: linear-gradient(180deg, rgba(38, 30, 62, 0.9), rgba(12, 9, 18, 0.92));
  color: #cfc5ff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 22px rgba(140, 120, 255, 0.16);
  pointer-events: none;
  white-space: nowrap;
}

body.in-game .online-demo-badge {
  display: block;
}

.online-demo-badge__short {
  display: none;
}

/* ------------------------------ 5. 响应式：1440 / 1280 / 390 ------------------------------ */
@media (max-width: 1280px) {
  .login-main {
    gap: clamp(20px, 4vw, 52px);
  }

  .login-brand__title {
    font-size: clamp(44px, 5.2vw, 66px);
  }

  .online-lobby__grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(286px, 0.82fr);
  }

  .online-table-card {
    padding: 18px 20px 16px;
  }
}

@media (max-width: 1080px) {
  .login-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  }

  .login-brand__points li {
    padding: 10px 12px;
  }

  .online-lobby__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(272px, 0.82fr);
  }

  .online-meta-item {
    padding: 9px 10px;
  }

  .online-conn-pill {
    padding: 4px 9px;
  }
}

@media (max-width: 900px) {
  .login-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-content: center;
    justify-items: stretch;
    max-width: 560px;
    padding-top: 10px;
  }

  .login-brand {
    max-width: none;
    text-align: center;
  }

  .login-brand__kicker,
  .login-brand__title {
    justify-content: center;
  }

  .login-brand__title {
    font-size: clamp(40px, 9vw, 54px);
  }

  .login-brand__tagline {
    margin-top: 12px;
    font-size: 12px;
  }

  .login-brand__points {
    display: none;
  }

  .auth-card {
    max-width: 460px;
  }

  .online-lobby__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .online-lobby__side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .online-rules {
    height: 100%;
  }

  .online-table-card__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .online-table-id {
    display: none;
  }

  .online-footer--lobby {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .online-topbar {
    padding: 12px 16px;
    gap: 10px;
  }

  .online-topbar__right {
    gap: 8px;
  }

  .online-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .online-brand__mark .icon {
    width: 19px;
    height: 19px;
  }

  .online-brand__text b {
    font-size: 15px;
  }

  .online-brand__text small {
    font-size: 6px;
    letter-spacing: 0.26em;
  }

  .online-topbar__home {
    display: none;
  }

  .online-user-chip {
    padding-right: 9px;
  }

  .online-user-chip__avatar {
    --avatar-size: 27px;
  }

  .online-user-chip__meta b {
    max-width: 88px;
    font-size: 11px;
  }

  .online-lobby__main {
    padding: 14px 16px 16px;
  }

  .login-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-card {
    padding: 22px 20px 18px;
  }

  .auth-card__head h2 {
    font-size: 23px;
  }

  .online-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .online-reconnect {
    top: 58px;
  }
}

@media (max-width: 600px) {
  .online-conn-pill {
    padding: 4px 7px;
  }

  .screen--online-table .online-conn-pill span {
    display: none;
  }

  .screen--online-table .online-conn-pill i {
    width: 7px;
    height: 7px;
  }

  .online-topbar__exit {
    display: none;
  }

  .online-user-chip {
    padding: 4px 7px 4px 4px;
    gap: 6px;
  }

  .online-user-chip__avatar {
    --avatar-size: 24px;
  }

  .online-user-chip__meta small {
    display: none;
  }

  .online-user-chip__meta b {
    max-width: 74px;
    font-size: 10.5px;
  }

  .online-topbar--login {
    padding: 10px 14px;
  }

  .online-topbar--login .online-brand__text small {
    display: none;
  }

  .online-text-link {
    font-size: 10px;
  }

  .login-main {
    gap: 14px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .login-brand__title {
    font-size: clamp(36px, 11vw, 46px);
  }

  .login-brand__en {
    font-size: 8px;
    letter-spacing: 0.32em;
  }

  .login-brand__tagline {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.7;
  }

  .login-brand__tagline br {
    display: none;
  }

  .auth-card {
    padding: 18px 16px 15px;
    border-radius: var(--radius-l);
  }

  .auth-card__head h2 {
    font-size: 21px;
  }

  .auth-card__head p {
    font-size: 10.5px;
  }

  .auth-tabs {
    margin: 14px 0 13px;
  }

  .auth-form {
    gap: 11px;
  }

  .online-field__box {
    height: 43px;
  }

  .auth-submit {
    height: 44px;
  }

  .online-footer--login {
    padding: 8px 14px 10px;
    font-size: 8px;
    gap: 7px;
  }

  .online-footer__brand {
    letter-spacing: 0.2em;
  }

  .lobby-hero {
    margin-bottom: 13px;
  }

  .lobby-hero__title {
    font-size: 22px;
    letter-spacing: 0.05em;
  }

  .lobby-hero__lead {
    font-size: 10.5px;
    line-height: 1.65;
  }

  .online-table-card {
    padding: 15px 14px 13px;
  }

  .online-table-card__head h2 {
    font-size: 22px;
  }

  .online-live-pill {
    padding: 4px 8px;
    font-size: 8.5px;
  }

  .online-table-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
  }

  .online-meta-item {
    padding: 8px 10px;
  }

  .online-seat-preview {
    gap: 4px;
    margin-bottom: 12px;
  }

  .online-seat {
    padding: 6px 2px 4px;
  }

  .online-seat__avatar {
    width: 25px;
    height: 25px;
  }

  .online-seat__name {
    font-size: 7px;
  }

  .online-seat__pos {
    display: none;
  }

  .online-join-btn {
    height: 46px;
    font-size: 12.5px;
    letter-spacing: 0.14em;
  }

  .online-table-card__note {
    font-size: 8.5px;
  }

  .online-table-card__foot {
    gap: 5px 12px;
    font-size: 8px;
    margin-top: 11px;
    padding-top: 10px;
  }

  .online-lobby__side {
    grid-template-columns: minmax(0, 1fr);
  }

  .online-account-card {
    padding: 15px 14px 13px;
  }

  .online-account-card__avatar {
    --avatar-size: 44px;
  }

  .online-account-card__name strong {
    font-size: 16px;
  }

  .online-account-stats {
    margin: 12px 0;
  }

  .online-rules {
    padding: 14px 14px 12px;
  }

  .online-footer--lobby {
    padding: 9px 14px 11px;
    font-size: 8px;
    gap: 6px 10px;
  }

  .online-footer--lobby .online-footer__right {
    width: 100%;
  }

  /* 牌桌：390 竖屏 */
  .screen--online-table .online-conn-pill {
    padding: 4px 7px;
  }

  .screen--online-table .online-conn-pill span {
    display: none;
  }

  .screen--online-table .online-conn-pill i {
    width: 7px;
    height: 7px;
  }

  .online-wait-layer {
    top: 8px;
    left: 8px;
    max-width: calc(100vw - 16px);
    padding: 6px 12px 6px 7px;
  }

  .online-wait-layer__copy span {
    font-size: 8px;
  }

  .online-reconnect {
    top: 50px;
    gap: 8px;
    padding: 8px 9px;
  }

  .online-reconnect__retry {
    height: 27px;
    padding: 0 9px;
    font-size: 9px;
  }

  .online-reconnect__spin {
    width: 26px;
    height: 26px;
  }

  .online-reconnect__copy strong {
    font-size: 10.5px;
  }

  .online-reconnect__copy span {
    font-size: 8.5px;
  }

  .online-demo-badge {
    bottom: 116px;
    padding: 4px 10px;
    font-size: 8.5px;
  }

  .online-demo-badge__full {
    display: none;
  }

  .online-demo-badge__short {
    display: inline;
  }

  body.in-game .online-demo-badge {
    top: 56px;
    bottom: auto;
    left: 8px;
    transform: none;
  }

  .result-tray__hands .result-tray-hand {
    max-width: 104px;
  }

  .result-tray-hand b {
    max-width: 46px;
  }
}

@media (max-width: 400px) {
  .online-user-chip__meta b {
    max-width: 62px;
    font-size: 10px;
  }

  .online-user-chip {
    padding: 4px 7px 4px 4px;
  }

  .online-brand__text b {
    font-size: 14px;
  }

  .online-account-card__actions {
    grid-template-columns: 1fr;
  }

  .online-account-card__actions .btn {
    width: 100%;
  }

  .online-lobby__main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .online-topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 极矮窗口（如 1280×720 的笔记本）：压缩纵向留白 */
@media (max-height: 760px) and (min-width: 901px) {
  .login-main {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .login-brand__points {
    margin-top: 16px;
    gap: 9px;
  }

  .login-brand__points li {
    padding: 9px 12px;
  }

  .login-brand__tagline {
    margin-top: 12px;
  }

  .auth-card {
    padding: 20px 24px 16px;
  }

  .auth-tabs {
    margin: 14px 0 12px;
  }

  .online-lobby__main {
    padding-top: 12px;
  }
}

/* 降低动态效果 */
@media (prefers-reduced-motion: reduce) {
  .online-scene__bokeh i,
  .online-wait-layer__spin .icon,
  .online-reconnect__spin .icon {
    animation: none !important;
  }

  .online-wait-layer,
  .online-reconnect {
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   联机桌面：在线牌桌 / 档案 / 状态 / 规则窗口内容
   ========================================================================== */

.online-text-link--static {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 7px;
  letter-spacing: 0.14em;
  cursor: default;
}

.desktop-window__body--online {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-online-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.1);
}

.desktop-online-head__copy {
  min-width: 0;
}

.desktop-online-head h2 {
  margin: 2px 0 3px;
  color: var(--gold-0);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.desktop-online-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.desktop-online-head .online-live-pill {
  flex: none;
  margin-top: 3px;
}

.desktop-online-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.desktop-online-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 8px;
  background: rgba(12, 8, 10, 0.3);
}

.desktop-online-stats span {
  color: var(--muted);
  font-size: 7px;
}

.desktop-online-stats b {
  overflow: hidden;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-online-seats-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.desktop-online-seats-label {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.16em;
}

.desktop-online-seats-wrap .online-seat-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.desktop-online-seats-wrap .online-seat {
  min-width: 0;
}

.desktop-online-join {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(232, 196, 125, 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, #f3daa2 0%, #d7ad61 48%, #b5833a 100%);
  color: #2a1907;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 249, 225, 0.6);
  transition: transform var(--dur-fast), filter var(--dur-fast);
}

.desktop-online-join:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.desktop-online-join:active {
  transform: translateY(0) scale(0.995);
}

.desktop-online-join > span:nth-child(2) {
  flex: 1 1 auto;
}

.desktop-online-join > .icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.desktop-online-join__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid rgba(53, 33, 8, 0.22);
  border-radius: 7px;
  background: rgba(58, 36, 7, 0.08);
}

.desktop-online-join__icon .icon {
  width: 14px;
  height: 14px;
}

.desktop-online-note {
  margin: -4px 0 0;
  color: var(--muted-dim);
  font-size: 7px;
  line-height: 1.55;
}

.desktop-online-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.desktop-online-profile-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 8px;
  background: rgba(12, 8, 10, 0.3);
}

.desktop-online-profile-stats strong {
  overflow: hidden;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-online-profile-stats span {
  color: var(--muted);
  font-size: 7px;
}

.desktop-online-profile-note {
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 8px;
  background: rgba(12, 8, 10, 0.28);
}

.desktop-online-profile-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.6;
}

.desktop-server-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(63, 200, 180, 0.2);
  border-radius: 9px;
  background: rgba(16, 62, 54, 0.25);
}

.desktop-server-banner > i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px rgba(95, 224, 189, 0.65);
  animation: online-pulse 2.4s ease-in-out infinite;
}

.desktop-server-banner div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.desktop-server-banner strong {
  color: var(--green-bright);
  font-size: 9px;
  font-weight: 600;
}

.desktop-server-banner span {
  color: var(--muted);
  font-size: 6.5px;
}

.desktop-server-kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(232, 196, 125, 0.07);
}

.desktop-server-kv span {
  color: var(--muted-dim);
  font-size: 7px;
}

.desktop-server-kv b {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-window__body--rules {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.desktop-rule {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 196, 125, 0.07);
}

.desktop-rule > span {
  flex: none;
  width: 23px;
  color: var(--gold-2);
  font-family: var(--font-num);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.desktop-rule div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.desktop-rule b {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.desktop-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.55;
}

.desktop-online-disclaimer {
  padding-top: 9px;
  color: var(--muted-dim);
  font-size: 6.5px;
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .desktop-online-head {
    flex-direction: column;
    gap: 6px;
  }

  .desktop-online-head h2 {
    font-size: 18px;
  }

  .desktop-online-stats {
    grid-template-columns: 1fr;
  }

  .desktop-online-seats-wrap .online-seat-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-online-profile-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   牌桌大厅：固定三区域（常规桌 / 锦标赛 / 好友桌）
   ========================================================================== */
.desktop-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.1);
}

.desktop-hub-head__copy {
  min-width: 0;
}

.desktop-hub-head h2 {
  margin: 2px 0 3px;
  color: var(--gold-0);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.desktop-hub-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

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

.desktop-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(232, 196, 125, 0.15);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(46, 26, 23, 0.55), rgba(14, 9, 10, 0.48));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}

.desktop-mode-card:hover {
  border-color: rgba(232, 196, 125, 0.38);
  transform: translateY(-1px);
}

.desktop-mode-card.is-active {
  border-color: rgba(232, 196, 125, 0.65);
  background: linear-gradient(160deg, rgba(91, 52, 31, 0.62), rgba(22, 13, 12, 0.55));
  box-shadow: inset 0 0 0 1px rgba(232, 196, 125, 0.08), 0 8px 20px rgba(0, 0, 0, 0.16);
}

.desktop-mode-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.desktop-mode-card__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(232, 196, 125, 0.24);
  border-radius: 8px;
  background: rgba(232, 196, 125, 0.08);
  color: var(--gold-1);
}

.desktop-mode-card__icon--red {
  border-color: rgba(194, 93, 74, 0.4);
  background: rgba(116, 37, 32, 0.24);
  color: #e29a7e;
}

.desktop-mode-card__icon--blue {
  border-color: rgba(108, 151, 178, 0.38);
  background: rgba(37, 66, 84, 0.25);
  color: #a8cbdf;
}

.desktop-mode-card__icon .icon {
  width: 15px;
  height: 15px;
}

.desktop-mode-card__tag {
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.desktop-mode-card__tag.is-open {
  border-color: rgba(104, 166, 111, 0.5);
  background: rgba(48, 101, 55, 0.25);
  color: #9bdc9e;
}

.desktop-mode-card b {
  overflow: hidden;
  color: var(--gold-1);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-mode-card small,
.desktop-mode-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-mode-card em {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 7px;
}

.desktop-mode-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

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

.desktop-mode-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.desktop-mode-panel__head h3 {
  margin: 2px 0 0;
  color: var(--gold-0);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.desktop-mode-panel__badge {
  flex: none;
  margin-top: 1px;
  padding: 3px 7px;
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 999px;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.desktop-mode-panel__badge.is-red {
  border-color: rgba(194, 93, 74, 0.42);
  color: #e39c80;
}

.desktop-mode-panel__badge.is-blue {
  border-color: rgba(108, 151, 178, 0.4);
  color: #a8cbdf;
}

.desktop-mode-panel__desc {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.desktop-tournament-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.desktop-tournament-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(232, 196, 125, 0.12);
  border-radius: 8px;
  background: rgba(12, 8, 10, 0.32);
}

.desktop-tournament-stats span {
  color: var(--muted);
  font-size: 7px;
}

.desktop-tournament-stats b {
  overflow: hidden;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-tournament-blinds {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 8px;
  background: rgba(12, 8, 10, 0.22);
}

.desktop-tournament-blinds > span {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.desktop-tournament-blinds > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.desktop-tournament-blinds b {
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 500;
}

.desktop-tournament-blinds i {
  color: var(--muted-dim);
  font-size: 9px;
  font-style: normal;
}

.desktop-friend-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.desktop-friend-form label {
  color: var(--muted);
  font-size: 7px;
}

.desktop-friend-code {
  display: flex;
  gap: 7px;
}

.desktop-friend-code input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(232, 196, 125, 0.22);
  border-radius: 8px;
  outline: none;
  background: rgba(12, 8, 10, 0.4);
  color: var(--gold-0);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.desktop-friend-code input:focus {
  border-color: rgba(232, 196, 125, 0.55);
}

.desktop-friend-code button,
.desktop-friend-actions button {
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(232, 196, 125, 0.3);
  border-radius: 8px;
  background: rgba(232, 196, 125, 0.08);
  color: var(--gold-1);
  font-family: var(--font-serif);
  font-size: 10px;
  cursor: pointer;
}

.desktop-friend-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.desktop-friend-actions button:disabled,
.desktop-friend-code button:disabled,
.desktop-online-join.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.desktop-online-join.is-disabled:hover {
  transform: none;
  filter: grayscale(0.35);
}

@media (max-width: 720px) {
  .desktop-mode-grid {
    grid-template-columns: 1fr;
  }

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

  .desktop-mode-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 9px;
  }

  .desktop-mode-card__top {
    grid-row: 1 / span 2;
    align-self: center;
    flex-direction: column;
  }

  .desktop-mode-card b,
  .desktop-mode-card small,
  .desktop-mode-card em {
    grid-column: 2;
  }
}

/* 好友房等待区 */
.desktop-friend-room {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(108, 151, 178, 0.3);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(25, 49, 64, 0.3), rgba(12, 10, 12, 0.28));
}

.desktop-friend-room__code {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(108, 151, 178, 0.16);
}

.desktop-friend-room__code span {
  color: var(--muted);
  font-size: 7px;
}

.desktop-friend-room__code strong {
  flex: 1 1 auto;
  color: #b8d9ea;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.3em;
}

.desktop-friend-room__code button,
.desktop-friend-room__meta button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(108, 151, 178, 0.32);
  border-radius: 7px;
  background: rgba(108, 151, 178, 0.08);
  color: #a8cbdf;
  font-family: var(--font-serif);
  font-size: 8px;
  cursor: pointer;
}

.desktop-friend-room__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 7px;
}

.desktop-friend-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.desktop-friend-member {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 7px;
  background: rgba(8, 7, 9, 0.24);
}

.desktop-friend-member__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 125, 0.22);
  border-radius: 50%;
  background: rgba(232, 196, 125, 0.08);
}

.desktop-friend-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-friend-member__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.desktop-friend-member__copy b {
  overflow: hidden;
  color: var(--gold-1);
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-friend-member__copy span {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6px;
}

.desktop-friend-error {
  margin: 0;
  color: #e5947c;
  font-size: 8px;
  line-height: 1.45;
}

.desktop-friend-room[hidden],
#friend-room-entry[hidden],
.desktop-friend-error[hidden] {
  display: none;
}

/* ==========================================================================
   摊牌：公共牌上方的内联牌型条（不弹窗）
   ========================================================================== */
.showdown-inline {
  --showdown-accent: #e8c47d;
  --showdown-accent-2: #b5833a;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(680px, 94%);
  margin-top: 2px;
  padding: 8px 13px 7px;
  border: 1px solid color-mix(in srgb, var(--showdown-accent) 48%, transparent);
  border-radius: 11px;
  background:
    linear-gradient(160deg, rgba(47, 29, 20, 0.86), rgba(11, 8, 10, 0.9)),
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--showdown-accent) 16%, transparent), transparent 70%);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 color-mix(in srgb, var(--showdown-accent) 18%, transparent);
  pointer-events: auto;
  animation: showdown-inline-in 0.42s var(--ease-out) both;
}

.showdown-inline[hidden] {
  display: none;
}

.showdown-inline::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.45;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--showdown-accent) 48%, transparent), transparent 38%);
  filter: blur(10px);
  animation: showdown-halo 3.2s linear infinite;
}

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

.showdown-inline__kicker {
  flex: none;
  color: color-mix(in srgb, var(--showdown-accent) 72%, #ffffff 10%);
  font-family: var(--font-num);
  font-size: 6.5px;
  letter-spacing: 0.2em;
}

.showdown-inline__handname {
  overflow: hidden;
  color: var(--showdown-accent);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-shadow: 0 0 16px color-mix(in srgb, var(--showdown-accent) 34%, transparent);
  white-space: nowrap;
}

.showdown-inline__tier {
  flex: none;
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--showdown-accent) 38%, transparent);
  border-radius: 999px;
  color: var(--showdown-accent);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.showdown-inline__cards {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 0.6vw, 7px);
  padding: 1px 0;
}

.showdown-inline__cards .card {
  --card-w: clamp(34px, 3.8vw, 52px);
  border: 1px solid color-mix(in srgb, var(--showdown-accent) 36%, transparent);
  animation: showdown-card-in 0.5s var(--ease-out) both;
  animation-delay: calc(var(--showdown-i, 0) * 0.075s);
}

.showdown-inline__cards .card.is-hole {
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--showdown-accent) 78%, transparent),
    0 0 22px color-mix(in srgb, var(--showdown-accent) 38%, transparent),
    0 8px 18px rgba(0, 0, 0, 0.45);
}

.showdown-inline__cards .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.4) 48%, transparent 62%);
  opacity: 0;
  pointer-events: none;
}

.showdown-inline[data-tier="6"] .card::after,
.showdown-inline[data-tier="7"] .card::after,
.showdown-inline[data-tier="8"] .card::after,
.showdown-inline[data-tier="9"] .card::after {
  animation: showdown-card-shine 2.4s ease-in-out infinite;
}

.showdown-inline__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
}

.showdown-inline__result {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showdown-inline__next {
  flex: none;
  min-width: 76px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--showdown-accent) 55%, transparent);
  border-radius: 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--showdown-accent) 88%, #ffffff 8%), var(--showdown-accent-2));
  color: #291806;
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.showdown-inline__next:disabled {
  opacity: 0.52;
  cursor: default;
}

/* 牌型等级配色：越高越亮，葫芦起发光 */
.showdown-inline[data-tier="0"] { --showdown-accent: #a9a29a; --showdown-accent-2: #6e6760; }
.showdown-inline[data-tier="1"] { --showdown-accent: #c69a73; --showdown-accent-2: #8a5c38; }
.showdown-inline[data-tier="2"] { --showdown-accent: #d49c6f; --showdown-accent-2: #945c34; }
.showdown-inline[data-tier="3"] { --showdown-accent: #a9c7d0; --showdown-accent-2: #587f8c; }
.showdown-inline[data-tier="4"] { --showdown-accent: #9ed49c; --showdown-accent-2: #4c8d55; }
.showdown-inline[data-tier="5"] { --showdown-accent: #8dc8ed; --showdown-accent-2: #3f79af; }
.showdown-inline[data-tier="6"] { --showdown-accent: #c5a9ff; --showdown-accent-2: #6c4bb9; }
.showdown-inline[data-tier="7"] { --showdown-accent: #ffc06e; --showdown-accent-2: #b56b21; }
.showdown-inline[data-tier="8"] { --showdown-accent: #ff9ec4; --showdown-accent-2: #b43868; }
.showdown-inline[data-tier="9"] { --showdown-accent: #ffe08a; --showdown-accent-2: #b87b1d; }

.showdown-inline[data-tier="6"] {
  box-shadow: 0 0 32px rgba(197, 169, 255, 0.22), 0 14px 38px rgba(0, 0, 0, 0.5);
}
.showdown-inline[data-tier="7"] {
  box-shadow: 0 0 36px rgba(255, 192, 110, 0.26), 0 14px 38px rgba(0, 0, 0, 0.5);
}
.showdown-inline[data-tier="8"] {
  box-shadow: 0 0 42px rgba(255, 158, 196, 0.3), 0 14px 38px rgba(0, 0, 0, 0.5);
}
.showdown-inline[data-tier="9"] {
  box-shadow: 0 0 55px rgba(255, 224, 138, 0.42), 0 14px 38px rgba(0, 0, 0, 0.55);
  animation: royal-glow 1.8s ease-in-out infinite alternate;
}
.showdown-inline[data-tier="9"] .showdown-inline__handname {
  background: linear-gradient(90deg, #ffe08a, #ffffff, #ffd166, #fff2c8, #ffe08a);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: royal-text 2.4s linear infinite;
}
.showdown-inline[data-tier="9"] .showdown-inline__tier {
  border-color: rgba(255, 224, 138, 0.72);
  color: #fff1b0;
}

.action-dock.is-showdown-result {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

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

@keyframes showdown-card-in {
  from { opacity: 0; transform: translateY(-16px) rotateY(75deg) scale(0.9); }
  to { opacity: 1; transform: translateY(0) rotateY(0) scale(1); }
}

@keyframes showdown-card-shine {
  0%, 55% { opacity: 0; transform: translateX(-130%); }
  72% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(130%); }
}

@keyframes showdown-halo {
  to { transform: rotate(360deg); }
}

@keyframes royal-text {
  to { background-position: 220% 0; }
}

@keyframes royal-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

@media (max-width: 720px) {
  .showdown-inline {
    width: 96%;
    padding: 7px 9px 6px;
  }
  .showdown-inline__handname {
    font-size: 11px;
  }
  .showdown-inline__cards .card {
    --card-w: clamp(28px, 8vw, 38px);
  }
  .showdown-inline__result {
    max-width: 55%;
  }
}

.showdown-inline__cards .card:nth-child(2) { animation-delay: 0.07s; }
.showdown-inline__cards .card:nth-child(3) { animation-delay: 0.14s; }
.showdown-inline__cards .card:nth-child(4) { animation-delay: 0.21s; }
.showdown-inline__cards .card:nth-child(5) { animation-delay: 0.28s; }

/* ==========================================================================
   登录：邮箱 / 忘记密码 / 重置密码
   ========================================================================== */
.auth-forgot {
  align-self: flex-end;
  margin: -5px 0 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.auth-forgot:hover {
  color: var(--gold-1);
}

.auth-reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 5, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-reset-overlay[hidden] {
  display: none;
}

.auth-reset-card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 24px 22px;
  border: 1px solid rgba(232, 196, 125, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(45, 27, 29, 0.96), rgba(13, 9, 10, 0.98)),
    radial-gradient(ellipse at 50% 0%, rgba(232, 196, 125, 0.1), transparent 65%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 240, 205, 0.08);
}

.auth-reset-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth-reset-close:hover {
  background: rgba(232, 196, 125, 0.08);
  color: var(--gold-1);
}

.auth-reset-card h3 {
  margin: 5px 0 7px;
  color: var(--gold-0);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
}

.auth-reset-lead {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.auth-reset-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.auth-reset-form[hidden] {
  display: none;
}

.auth-reset-error {
  margin: 10px 0 0;
  color: #f0a18a;
  font-size: 9px;
  line-height: 1.5;
}

.auth-reset-success {
  margin: 10px 0 0;
  color: #a8d9a2;
  font-size: 9px;
  line-height: 1.5;
}

.auth-reset-back {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-1);
  font-size: 9px;
  cursor: pointer;
}

.auth-reset-back[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .auth-reset-card {
    padding: 22px 17px 18px;
  }
}
