/* ============================================================
   VAULT LANDLORD · 视觉升级主题
   黑漆 / 香槟金 / 象牙白 / 牛血红 —— 东方金库牌局
   ============================================================ */

:root {
  --bg: #070605;
  --bg-2: #0b0907;
  --panel: #12100c;
  --panel-2: #17130e;
  --gold: #d8b26a;
  --gold-2: #f6e3b8;
  --gold-3: #9a7436;
  --gold-4: #6f5224;
  --ivory: #f2ead9;
  --text: #f2ead9;
  --muted: #a2937f;
  --muted-2: #6e6355;
  --jade: #3f9f78;
  --red: #c8534d;
  --oxblood: #7a2228;
  --line: rgba(216, 178, 106, 0.18);
  --line-soft: rgba(255, 255, 255, 0.055);
  --radius: 18px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STZhongsong", "SimSun", Georgia, serif;
  --serif-en: Georgia, "Times New Roman", serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

/* ---------------- 基础 ---------------- */
body {
  font-family: var(--font);
  color: var(--text);
  letter-spacing: 0.01em;
  background:
    radial-gradient(1100px 760px at 88% -12%, rgba(122, 34, 40, 0.28), transparent 58%),
    radial-gradient(900px 700px at 2% 28%, rgba(216, 178, 106, 0.07), transparent 62%),
    radial-gradient(700px 500px at 50% 110%, rgba(216, 178, 106, 0.05), transparent 65%),
    #070605;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-grid {
  background-image:
    linear-gradient(rgba(216, 178, 106, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 178, 106, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 8%, #000 15%, transparent 75%);
}
.bg-glow { filter: blur(110px); }
.bg-glow-a { background: rgba(122, 34, 40, 0.26); width: 620px; height: 620px; }
.bg-glow-b { background: rgba(216, 178, 106, 0.075); }

::selection { background: rgba(216, 178, 106, 0.35); color: #fff; }

h1, h2, h3, .vc-balance, .hero-stats b, .kpi-num, .room-stake b,
.settle-title, .page-head h2, .section-head h2, .modal-title {
  font-family: var(--display);
  font-weight: 700;
}

.gold { color: var(--gold); }
.jade { color: var(--jade); }
.red { color: var(--red); }
.up { color: var(--jade); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  background: rgba(7, 6, 5, 0.76);
  border-bottom: 1px solid rgba(216, 178, 106, 0.16);
  backdrop-filter: blur(22px) saturate(130%);
}
.topbar-inner { height: 78px; gap: 38px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--gold); background: radial-gradient(circle at 35% 25%, #2a2318, #0b0906 70%);
  border: 1px solid rgba(216, 178, 106, 0.45);
  box-shadow: inset 0 0 18px rgba(216, 178, 106, 0.16), 0 0 28px -10px rgba(216, 178, 106, 0.7);
}
.brand-mark svg { width: 25px; height: 25px; display: block; }
.brand-mark .bm-frame { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: 0.5; }
.brand-mark .bm-hat { fill: currentColor; }
.brand-mark .bm-band { fill: #0b0a08; }
.brand-mark .bm-spade, .brand-mark .bm-stem { fill: currentColor; }
.brand-mark.sm { width: 32px; height: 32px; }
.brand-mark.sm svg { width: 19px; height: 19px; }
.brand-text b {
  font-family: var(--serif-en);
  font-size: 14px; letter-spacing: 0.2em; font-weight: 700; color: var(--ivory);
}
.brand-text i { font-size: 9px; letter-spacing: 0.42em; color: var(--gold-3); }
.nav-link { font-size: 12.5px; color: var(--muted); padding: 10px 14px; letter-spacing: 0.04em; }
.nav-link:hover { color: var(--ivory); background: transparent; }
.nav-link.is-active { color: var(--gold-2); }
.nav-link.is-active::after {
  left: 14px; right: 14px; bottom: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.chain-chip {
  border-color: rgba(216, 178, 106, 0.2);
  background: rgba(216, 178, 106, 0.035);
  color: var(--muted); font-size: 10px; letter-spacing: 0.12em;
}
.chain-chip .dot { background: var(--jade); box-shadow: 0 0 9px var(--jade); }

/* ---------------- 按钮 ---------------- */
.btn {
  border-radius: 9px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, background 0.18s, border-color 0.18s;
}
.btn-gold {
  color: #2a1b06;
  background:
    linear-gradient(180deg, #fbecc8 0%, #eed49a 32%, #d8b26a 68%, #bc8f45 100%);
  box-shadow:
    0 14px 30px -16px rgba(216, 178, 106, 0.9),
    inset 0 1px 0 rgba(255, 253, 244, 0.9),
    inset 0 -1px 0 rgba(88, 56, 10, 0.35);
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(108deg, transparent 28%, rgba(255, 255, 255, 0.55) 46%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-gold:hover::after { transform: translateX(130%); }
.btn-gold:active { transform: translateY(1px); }
.btn-ghost {
  color: var(--gold-2);
  background: rgba(216, 178, 106, 0.02);
  border-color: rgba(216, 178, 106, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.btn-ghost:hover { background: rgba(216, 178, 106, 0.09); border-color: rgba(216, 178, 106, 0.6); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 14px; }
.btn-sm { height: 34px; border-radius: 8px; }
.btn:disabled { opacity: 0.3; filter: grayscale(0.4); }

.tag {
  height: 21px; padding: 0 8px; border-radius: 4px;
  border-color: rgba(216, 178, 106, 0.22);
  background: rgba(216, 178, 106, 0.04);
  color: var(--gold-3); font-size: 8px; letter-spacing: 0.16em;
}
.tag-gold { color: var(--gold-2); border-color: rgba(216, 178, 106, 0.4); background: rgba(216, 178, 106, 0.08); }
.tag-red { color: #e88b85; border-color: rgba(200, 83, 77, 0.35); background: rgba(200, 83, 77, 0.07); }
.tag-live { color: var(--jade); border-color: rgba(63, 159, 120, 0.32); background: rgba(63, 159, 120, 0.06); }

/* ---------------- Hero ---------------- */
.hero { grid-template-columns: 1.1fr 0.9fr; gap: 54px; padding: 82px 0 46px; }
.eyebrow {
  font-size: 9.5px; letter-spacing: 0.3em; color: var(--gold);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 30px; height: 1px; margin-right: 12px;
  vertical-align: 3px; background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow .pulse { display: none; }
.hero h1 {
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 20px 0 24px;
  color: var(--ivory);
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}
.grad {
  background: linear-gradient(102deg, #fff7e4 0%, #f4dda6 28%, #d8b26a 58%, #a8792f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(216, 178, 106, 0.18));
}
.lede { font-size: 15px; line-height: 2; color: var(--muted); max-width: 560px; }
.lede b { color: var(--gold-2); }
.hero-cta { margin-top: 34px; }
.hero-hint { font-size: 10px; color: var(--muted-2); letter-spacing: 0.06em; }
.hero-stats {
  gap: 0; margin-top: 42px; padding-top: 26px;
  border-top: 1px solid rgba(216, 178, 106, 0.18);
}
.hero-stats div {
  padding: 0 34px; border-right: 1px solid rgba(216, 178, 106, 0.16); gap: 8px;
}
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats b { font-size: 29px; color: var(--ivory); letter-spacing: -0.02em; font-family: var(--serif-en); }
.hero-stats span { font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted-2); }

.hero-visual { min-height: 500px; }
.vault-ring {
  width: 520px; height: 520px;
  border: 1px solid rgba(216, 178, 106, 0.16);
  box-shadow: inset 0 0 120px -60px rgba(216, 178, 106, 0.6), 0 0 100px -60px rgba(216, 178, 106, 0.5);
}
.vault-ring::before { inset: 26px; border-color: rgba(216, 178, 106, 0.1); }
.vault-ring::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px dashed rgba(216, 178, 106, 0.22);
}
.vault-card {
  max-width: 414px; padding: 30px 30px 24px; border-radius: 22px;
  background:
    radial-gradient(120% 80% at 88% -8%, rgba(216, 178, 106, 0.17), transparent 56%),
    linear-gradient(160deg, rgba(30, 24, 17, 0.98), rgba(8, 7, 5, 0.99));
  border: 1px solid rgba(216, 178, 106, 0.38);
  box-shadow:
    0 60px 110px -60px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 90px -40px rgba(216, 178, 106, 0.5);
}
.vault-card::before {
  content: ""; position: absolute; inset: 9px; border-radius: 16px;
  border: 1px solid rgba(216, 178, 106, 0.12); pointer-events: none;
}
.vc-head { margin-bottom: 30px; }
.vc-id { color: var(--gold-3); font-size: 9px; letter-spacing: 0.28em; }
.vc-label { color: var(--muted-2); font-size: 9px; letter-spacing: 0.2em; }
.vc-balance { font-size: 47px; color: var(--ivory); letter-spacing: -0.04em; margin: 10px 0 8px; font-family: var(--serif-en); }
.vc-balance span { font-family: var(--serif-en); font-size: 14px; color: var(--gold); letter-spacing: 0.16em; }
.vc-sub { font-size: 10.5px; color: var(--muted); }
.vc-sub .up { color: var(--jade); }
.vc-chart { height: 96px; margin: 24px 0 20px; display: block; }
.vc-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.live-bars { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.lb-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.lb-row span { font-size: 8.5px; letter-spacing: 0.14em; color: var(--muted-2); }
.lb-row b { font-family: var(--serif-en); font-size: 13px; color: var(--gold-2); }
.lb-row i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lb-row em {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #9a7436, #f4dda6);
  box-shadow: 0 0 8px rgba(216, 178, 106, 0.5);
}
.vc-line { filter: drop-shadow(0 0 6px rgba(216, 178, 106, 0.55)); }
.vc-foot { border-top-color: rgba(216, 178, 106, 0.14); padding-top: 16px; }
.vc-foot span { font-size: 9px; letter-spacing: 0.1em; color: var(--muted-2); }
.vc-foot b { font-family: var(--serif-en); font-size: 14px; letter-spacing: 0.02em; color: var(--ivory); }
.vc-glow { background: radial-gradient(closest-side, rgba(216, 178, 106, 0.28), transparent); }
.vc-scan { background: linear-gradient(180deg, transparent, rgba(216, 178, 106, 0.05), transparent); }
.vc-coin {
  position: absolute; z-index: 1; left: 10px; bottom: 52px;
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 26%, #fff2cd 0%, #e6c886 32%, #b98b3f 70%, #7c5620 100%);
  border: 1px solid rgba(255, 240, 200, 0.8);
  box-shadow:
    0 22px 34px -16px rgba(0, 0, 0, 0.9),
    inset 0 0 0 4px rgba(108, 72, 20, 0.35),
    inset 0 0 0 5px rgba(255, 245, 210, 0.5);
  transform: rotate(-11deg);
}
.vc-coin::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 1px dashed rgba(80, 50, 8, 0.5);
}
.vc-coin span {
  font-family: var(--serif-en); font-size: 19px; font-weight: 700;
  color: #4a3008; letter-spacing: 0.06em;
}
.float-card {
  width: 88px; height: 124px; right: 20px; border-radius: 9px;
  background: linear-gradient(160deg, #fffaf0 0%, #f0e5d1 62%, #dfd0b4 100%);
  border: 1px solid rgba(90, 64, 26, 0.28);
  box-shadow: 0 30px 55px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 #fff;
}
.float-card span { font-family: var(--serif-en); font-size: 22px; }
.float-card em { font-size: 38px; }
.float-card i { font-size: 6px; color: var(--gold-4); letter-spacing: 0.22em; }

/* ---------------- KPI 账条 ---------------- */
.kpi-row {
  counter-reset: kpi;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 30px 0 0;
  border-top: 1px solid rgba(216, 178, 106, 0.18);
  border-bottom: 1px solid rgba(216, 178, 106, 0.18);
}
.kpi {
  border: 0; border-right: 1px solid rgba(216, 178, 106, 0.14);
  border-radius: 0; background: transparent;
  padding: 26px 26px 24px; position: relative;
}
.kpi:last-child { border-right: 0; }
.kpi::before {
  counter-increment: kpi;
  content: "0" counter(kpi);
  position: absolute; top: 26px; right: 24px;
  font-family: var(--serif-en); font-size: 10px; letter-spacing: 0.14em; color: var(--gold-4);
}
.kpi:hover { background: rgba(216, 178, 106, 0.035); transform: none; }
.kpi-top { font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 18px; }
.kpi-top .tag { display: none; }
.kpi-num { font-size: 36px; color: var(--ivory); letter-spacing: -0.03em; font-family: var(--serif-en); }
.kpi-num .unit { font-family: var(--serif-en); font-size: 15px; color: var(--gold); }
.kpi-foot { margin-top: 12px; font-size: 9.5px; color: var(--muted-2); }
.kpi-foot span:first-child { color: var(--gold-3); }
.kpi-foot .up { color: var(--jade); }
.kpi-foot .red { color: var(--red); }
.kpi-foot .jade { color: var(--jade); }

/* ---------------- 标题 / 飞轮 ---------------- */
.section-head { margin: 66px 0 24px; align-items: flex-end; }
.section-head h2 { font-size: 31px; letter-spacing: -0.02em; color: var(--ivory); }
.section-head .eyebrow { margin-bottom: 4px; }
.section-note { color: var(--muted-2); font-size: 11px; letter-spacing: 0.03em; }

.flow {
  gap: 0; border-top: 1px solid rgba(216, 178, 106, 0.18);
  border-bottom: 1px solid rgba(216, 178, 106, 0.18);
}
.flow-step {
  border: 0; border-right: 1px solid rgba(216, 178, 106, 0.13);
  border-radius: 0; background: transparent; padding: 26px 24px 30px;
}
.flow-step:last-child { border-right: 0; }
.flow-step:not(:last-child)::after { display: none; }
.flow-step:hover { background: rgba(216, 178, 106, 0.03); }
.flow-num { font-family: var(--serif-en); font-size: 26px; letter-spacing: 0; color: var(--gold-3); opacity: 0.85; }
.flow-step h4 { font-family: var(--display); font-size: 17px; margin: 14px 0 10px; color: var(--ivory); }
.flow-step p { font-size: 11.5px; line-height: 1.85; color: var(--muted); min-height: 64px; }
.flow-meta { font-family: var(--serif-en); font-size: 11px; color: var(--gold); letter-spacing: 0.02em; }
.flow-step-burn { background: linear-gradient(180deg, rgba(122, 34, 40, 0.12), transparent 70%); }
.flow-step-burn .flow-num { color: #b95750; }
.flow-step-burn h4 { color: #f0c9c3; }

/* ---------------- 面板 ---------------- */
.panel {
  border-radius: 18px; padding: 26px;
  background: linear-gradient(165deg, rgba(27, 22, 16, 0.9), rgba(9, 8, 6, 0.96));
  border: 1px solid rgba(216, 178, 106, 0.14);
  box-shadow: 0 40px 80px -60px #000, inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.panel::before {
  content: ""; position: absolute; top: -1px; left: 24px;
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.8;
}
.panel-head {
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.panel-title { font-family: var(--display); font-size: 15px; letter-spacing: 0.02em; color: var(--ivory); }
.panel-note { font-size: 11.5px; line-height: 1.85; color: var(--muted); }

/* ---------------- 表格 ---------------- */
.vtable th {
  font-size: 9px; letter-spacing: 0.16em; color: var(--gold-3);
  border-bottom-color: rgba(216, 178, 106, 0.16); padding: 6px 10px 12px;
}
.vtable td { padding: 14px 10px; border-bottom-color: rgba(255, 255, 255, 0.045); font-size: 12.5px; }
.vtable tbody tr:hover { background: rgba(216, 178, 106, 0.04); }
.token-logo {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #2b2417, #0d0b07 70%);
  border: 1px solid rgba(216, 178, 106, 0.3);
  color: var(--gold-2); font-family: var(--serif-en); font-size: 13px;
  box-shadow: inset 0 0 14px rgba(216, 178, 106, 0.12);
}
.token-logo.v2 { color: var(--jade); border-color: rgba(63, 159, 120, 0.32); }
.token-logo.v3 { color: #8fb3d8; border-color: rgba(143, 179, 216, 0.3); }
.token-cell b { font-size: 12.5px; color: var(--ivory); }
.token-cell span { font-size: 9.5px; color: var(--muted-2); }
.status { font-size: 10px; letter-spacing: 0.05em; }

/* ---------------- 动态 ---------------- */
.feed { max-height: 384px; mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
.feed-item { padding: 14px 0 14px 18px; position: relative; border-bottom-color: rgba(255, 255, 255, 0.045); }
.feed-item::before {
  content: ""; position: absolute; left: 3px; top: 22px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-3); box-shadow: 0 0 8px rgba(216, 178, 106, 0.6);
}
.fi-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(216, 178, 106, 0.05); border-color: rgba(216, 178, 106, 0.18);
  font-size: 12px;
}
.fi-title { font-size: 12px; color: var(--muted); }
.fi-title b { color: var(--ivory); }
.fi-meta { font-size: 9px; color: var(--muted-2); }
.fi-time { font-size: 9px; color: var(--gold-4); }

/* ---------------- 页头 ---------------- */
.page-head { padding: 62px 0 36px; }
.page-head h2 { font-size: clamp(34px, 3.8vw, 46px); color: var(--ivory); }
.page-head p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.page-head-badge {
  border-color: rgba(216, 178, 106, 0.24);
  background: linear-gradient(160deg, rgba(36, 29, 20, 0.7), rgba(9, 8, 6, 0.9));
}
.page-head-badge span { color: var(--gold-3); letter-spacing: 0.24em; }
.page-head-badge b { font-family: var(--serif-en); font-size: 38px; color: var(--gold-2); }

/* ---------------- 工厂 ---------------- */
.field > span { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }
.field input {
  height: 46px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(216, 178, 106, 0.14);
  color: var(--ivory); font-size: 11.5px;
}
.field input:focus { border-color: rgba(216, 178, 106, 0.65); box-shadow: 0 0 0 3px rgba(216, 178, 106, 0.08); }
.split-box { border-color: rgba(216, 178, 106, 0.12); background: rgba(216, 178, 106, 0.02); }
.split-bar { height: 6px; border-radius: 2px; gap: 1px; }
.split-bar .s1 { background: linear-gradient(90deg, #b98b3f, #f4dda6); }
.split-bar .s2 { background: #8f2f35; }
.split-bar .s3 { background: #2f7d5e; }
.forge-estimate div {
  border: 0; border-top: 1px solid rgba(216, 178, 106, 0.22);
  border-radius: 0; background: transparent; padding: 12px 2px 0;
}
.forge-estimate span { font-size: 9px; color: var(--muted-2); letter-spacing: 0.08em; }
.forge-estimate b { font-family: var(--serif-en); font-size: 14px; color: var(--ivory); }
.fineprint { color: var(--muted-2); }
.factory-grid div {
  border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0; background: transparent; padding: 12px 0 0;
}
.factory-grid span { font-size: 9.5px; letter-spacing: 0.06em; }
.factory-grid b { font-family: var(--serif-en); font-size: 17px; color: var(--ivory); }
.mini-flow { border-color: rgba(216, 178, 106, 0.2); background: rgba(216, 178, 106, 0.02); }
.vault-item {
  border-color: rgba(255, 255, 255, 0.055); background: rgba(255, 255, 255, 0.015);
  border-radius: 10px;
}
.vault-item:hover { border-color: rgba(216, 178, 106, 0.24); background: rgba(216, 178, 106, 0.035); }
.vi-main b { color: var(--ivory); }
.vi-right b { font-family: var(--serif-en); font-size: 13px; color: var(--gold-2); }

/* ---------------- 大厅 ---------------- */
.lobby-stats { gap: 0; }
.lobby-stats div { padding: 0 22px; border-right: 1px solid rgba(216, 178, 106, 0.16); gap: 6px; }
.lobby-stats div:last-child { border-right: 0; padding-right: 0; }
.lobby-stats b { font-family: var(--serif-en); font-size: 24px; color: var(--ivory); }
.lobby-stats span { font-size: 9px; letter-spacing: 0.1em; color: var(--muted-2); }

.room-grid { gap: 18px; }
.room-card {
  padding: 26px; border-radius: 18px;
  background:
    radial-gradient(110% 80% at 84% 0%, rgba(216, 178, 106, 0.07), transparent 55%),
    linear-gradient(170deg, rgba(27, 22, 16, 0.92), rgba(9, 8, 6, 0.97));
  border-color: rgba(216, 178, 106, 0.14);
  overflow: hidden;
}
.room-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, rgba(216, 178, 106, 0.15), rgba(216, 178, 106, 0.7), rgba(216, 178, 106, 0.15));
}
.room-wood::before { background: linear-gradient(90deg, transparent, #8c6a3c, transparent); opacity: 0.7; }
.room-gold::before { background: linear-gradient(90deg, transparent, #f3d99a, transparent); }
.room-obsidian::before { background: linear-gradient(90deg, transparent, #8f3a3f, transparent); }
.room-jade::before { background: linear-gradient(90deg, transparent, #3f9f78, transparent); }
.room-platinum::before { background: linear-gradient(90deg, transparent, #b9c4c9, transparent); }
.room-royal::before { background: linear-gradient(90deg, transparent, #c8534d, transparent); }
.high-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 34px 0 16px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.high-head h3 { font-family: var(--display); font-size: 26px; font-weight: 500; margin: 6px 0 4px; }
.high-head p { margin: 0; font-size: 11px; color: var(--muted); }
.high-note { font-size: 9px; letter-spacing: 0.06em; color: var(--muted-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.lobby-jump { align-self: flex-end; font-size: 10px; letter-spacing: 0.08em; color: var(--gold-3); border-bottom: 1px solid var(--line); padding-bottom: 3px; text-decoration: none; }
.high-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.high-card { padding: 18px; }
.high-card .room-stake b { font-size: 25px; }
.high-card .room-desc { font-size: 10px; line-height: 1.65; min-height: 50px; }
.high-card .room-line { font-size: 9.5px; }
.high-card .room-line b { font-size: 11px; }
.high-card .solvency { margin-top: 10px; }
.room-card:hover { transform: translateY(-4px); border-color: rgba(216, 178, 106, 0.34); box-shadow: 0 40px 70px -50px rgba(216, 178, 106, 0.35); }
.room-card.is-featured {
  border-color: rgba(216, 178, 106, 0.5);
  box-shadow: 0 30px 80px -50px rgba(216, 178, 106, 0.55), inset 0 0 60px -40px rgba(216, 178, 106, 0.4);
}
.room-tier { font-family: var(--display); font-size: 20px; color: var(--ivory); }
.room-en {
  font-family: var(--serif-en); font-style: normal; font-size: 7.5px;
  letter-spacing: 0.2em; color: var(--gold-4); vertical-align: 3px; margin-left: 5px;
}
.room-online { font-size: 9px; letter-spacing: 0.08em; color: var(--muted-2); }
.room-hot {
  height: 17px; font-size: 8px; letter-spacing: 0.1em;
  background: linear-gradient(90deg, #f6e3b8, #d8b26a); color: #2a1b06;
}
.room-stake b { font-size: 54px; color: var(--ivory); font-weight: 700; font-family: var(--serif-en); }
.room-stake span { color: var(--muted-2); font-size: 10px; letter-spacing: 0.08em; }
.room-desc { color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.room-line { border-top-color: rgba(255, 255, 255, 0.06); font-size: 10.5px; color: var(--muted-2); }
.room-line b { color: var(--ivory); font-family: var(--serif-en); font-weight: 600; }
.solvency-bar { height: 4px; background: rgba(255, 255, 255, 0.055); }
.solvency-bar i { background: linear-gradient(90deg, #9a7436, #f4dda6); box-shadow: 0 0 10px rgba(216, 178, 106, 0.5); }
.solvency span { font-size: 8px; letter-spacing: 0.14em; color: var(--muted-2); }
.my-stats div { border: 0; border-top: 1px solid rgba(216, 178, 106, 0.2); border-radius: 0; background: transparent; padding: 12px 0 0; }
.my-stats b { font-family: var(--serif-en); font-size: 22px; color: var(--ivory); }
.my-stats span { color: var(--muted-2); }

/* ---------------- 牌桌 ---------------- */
.table-title { font-family: var(--display); font-size: 20px; color: var(--ivory); }
.table-sub { color: var(--muted-2); font-size: 10px; }
.pill { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); font-size: 10px; }
.pill-burn { color: #e3948e; border-color: rgba(200, 83, 77, 0.3); background: rgba(122, 34, 40, 0.12); }
.pill-gold { color: var(--gold-2); border-color: rgba(216, 178, 106, 0.3); background: rgba(216, 178, 106, 0.06); }
.arena { grid-template-columns: 1fr 300px; gap: 18px; }
.board {
  min-height: 690px; padding: 24px 26px 20px; border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, #235845 0%, #143c2d 38%, #0a1c15 68%, #06100c 100%);
  border: 1px solid rgba(216, 178, 106, 0.34);
  box-shadow:
    inset 0 0 140px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(216, 178, 106, 0.05),
    0 0 0 7px rgba(216, 178, 106, 0.16),
    0 50px 100px -70px #000;
}
.board::before {
  color: rgba(216, 178, 106, 0.018); font-size: 440px;
}
.board::after {
  inset: 13px; border-color: rgba(216, 178, 106, 0.13);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.opp .avatar, .avatar, .avatar-me {
  width: 50px; height: 50px; font-family: var(--serif-en); font-size: 15px;
  background: radial-gradient(circle at 35% 28%, #2b2417, #0c0a07 72%);
  border-color: rgba(216, 178, 106, 0.38);
  box-shadow: 0 0 0 4px rgba(6, 10, 8, 0.7), inset 0 0 18px rgba(216, 178, 106, 0.14);
}
.avatar-me { background: radial-gradient(circle at 35% 25%, #f7e6bd, #c49a51 70%); color: #2a1b06; border-color: #f6e3b8; }
.opp.is-turn .avatar { box-shadow: 0 0 0 4px rgba(216, 178, 106, 0.16), 0 0 26px rgba(216, 178, 106, 0.5); border-color: var(--gold-2); }
.opp-name { font-size: 12.5px; color: var(--ivory); }
.ai-tag {
  display: inline-flex; align-items: center; height: 14px; padding: 0 5px;
  margin-left: 4px; border-radius: 3px;
  border: 1px solid rgba(216, 178, 106, 0.28);
  color: var(--gold-3); font-size: 7px; letter-spacing: 0.1em;
  vertical-align: 1px;
}
.opp-sub { color: var(--muted-2); font-size: 9px; }
.opp-count { font-size: 9px; color: var(--muted-2); letter-spacing: 0.06em; }
.card-back {
  width: 18px; height: 27px; border-radius: 3px;
  background:
    repeating-linear-gradient(45deg, rgba(216, 178, 106, 0.16) 0 2px, transparent 2px 5px),
    #0e2a20;
  border-color: rgba(216, 178, 106, 0.35);
}
.landlord-badge {
  background: linear-gradient(90deg, #f7e6bb, #d8b26a); color: #2a1b06;
  font-size: 8px; letter-spacing: 0.1em;
}
.board-center { min-width: 180px; }
.bottom-label { font-size: 8.5px; letter-spacing: 0.2em; color: var(--gold-3); }
.bottom-label span { color: var(--muted-2); }
.table-status { font-size: 10.5px; color: var(--gold-2); letter-spacing: 0.06em; }
.board-mid { min-height: 210px; position: relative; }
.board-seal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 268px; height: 268px; border-radius: 50%;
  border: 1px solid rgba(216, 178, 106, 0.16);
  box-shadow:
    inset 0 0 0 9px rgba(216, 178, 106, 0.025),
    inset 0 0 0 10px rgba(216, 178, 106, 0.12),
    0 0 70px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: rgba(216, 178, 106, 0.3); pointer-events: none; z-index: 0;
  transition: opacity 0.35s ease;
}
.board.has-plays .board-seal { opacity: 0; }
.board-seal span { font-size: 66px; line-height: 1; opacity: 0.55; }
.board-seal b { font-family: var(--serif-en); font-size: 9px; letter-spacing: 0.34em; font-weight: 600; }
.board-seal i { font-style: normal; font-family: var(--serif-en); font-size: 7.5px; letter-spacing: 0.24em; opacity: 0.75; }
.play-slot { position: relative; z-index: 1; }
.pass-bubble {
  border-color: rgba(216, 178, 106, 0.22); background: rgba(0, 0, 0, 0.3);
  color: var(--muted); font-size: 10px; letter-spacing: 0.16em;
}
.combo-label { color: var(--muted-2); font-size: 8.5px; letter-spacing: 0.14em; }
.card {
  width: 66px; height: 94px; border-radius: 8px;
  background: linear-gradient(165deg, #fffdf7 0%, #f4ecdc 55%, #e8dcc5 100%);
  border-color: rgba(70, 50, 20, 0.24);
  box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 #fff;
}
.card .c-rank { font-family: var(--serif-en); font-size: 17px; }
.card .c-suit { font-size: 30px; }
.card.red { color: #b3352f; }
.card.black { color: #17130e; }
.card.joker { background: linear-gradient(165deg, #2d2517, #100d08); border-color: rgba(216, 178, 106, 0.5); }
.card.mini { width: 40px; height: 57px; border-radius: 5px; }
.card.mini .c-rank { font-size: 11px; }
.card.mini .c-suit { font-size: 18px; }
.hand { min-height: 144px; padding-top: 24px; }
.actions .btn { min-width: 100px; }
.me-meta b { color: var(--ivory); }
.me-meta span { color: var(--muted-2); }
.role-tag { border-color: rgba(216, 178, 106, 0.2); color: var(--muted-2); }
.role-tag.is-landlord { background: linear-gradient(90deg, #f7e6bb, #d8b26a); color: #2a1b06; }
.role-tag.is-farmer { color: var(--jade); border-color: rgba(63, 159, 120, 0.3); }
.selected-info { color: var(--muted-2); }
.arena-side .panel { background: linear-gradient(165deg, rgba(24, 20, 14, 0.94), rgba(8, 7, 5, 0.97)); }
.stat-row { color: var(--muted); border-bottom-color: rgba(255, 255, 255, 0.05); }
.stat-row b { color: var(--ivory); font-family: var(--serif-en); font-size: 13px; font-weight: 600; }
.hint-line { color: var(--muted-2); }
.log { font-size: 10px; }
.log-item .who { color: var(--gold); }
.log-item .who.me { color: var(--gold-2); }
.log-item .what { color: var(--ivory); }
.log-item .cards { color: var(--muted-2); }
.log-empty { color: var(--muted-2); }

/* ---------------- 经济模型 ---------------- */
.donut { width: 200px; height: 200px; background: conic-gradient(#d8b26a 0 60%, #8f2f35 60% 80%, #2f7d5e 80% 100%); }
.donut::after { border-color: rgba(216, 178, 106, 0.2); }
.donut-hole { background: radial-gradient(circle at 50% 38%, #1a1510, #080705); }
.donut-hole b { font-family: var(--serif-en); font-size: 34px; color: var(--ivory); }
.donut-legend div { color: var(--muted); }
.donut-legend b { color: var(--ivory); font-family: var(--serif-en); }
.ledger td { border-bottom-color: rgba(255, 255, 255, 0.05); }
.ledger-total td { border-top-color: rgba(216, 178, 106, 0.3); }
.contract-card { border-color: rgba(216, 178, 106, 0.13); background: linear-gradient(170deg, rgba(26, 21, 15, 0.7), rgba(8, 7, 5, 0.9)); }
.contract-icon { width: 40px; height: 40px; border-color: rgba(216, 178, 106, 0.24); border-radius: 50%; font-family: var(--serif-en); }
.contract-card h4 { font-family: var(--display); font-size: 15px; color: var(--ivory); }
.contract-card code { background: rgba(0, 0, 0, 0.35); color: var(--gold-3); }
.params td { border-bottom-color: rgba(255, 255, 255, 0.05); }
.params td:last-child { color: var(--ivory); }
.risk-list li::before { background: #a8453f; }
.risk-list b { color: var(--ivory); }

/* ---------------- 页脚 ---------------- */
.footer { border-top-color: rgba(216, 178, 106, 0.14); }
.footer-brand b { font-family: var(--serif-en); font-size: 11px; letter-spacing: 0.18em; }
.footer-brand span { color: var(--muted-2); }
.footer-note { color: var(--muted-2); }
.footer-links a:hover { color: var(--gold-2); }

/* ---------------- 弹窗 / toast ---------------- */
.modal {
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(216, 178, 106, 0.12), transparent 55%),
    linear-gradient(175deg, #19140e, #080706);
  border-color: rgba(216, 178, 106, 0.32);
}
.modal-title { font-size: 21px; color: var(--ivory); }
.modal-sub { color: var(--muted); }
.step-dot { border-color: rgba(216, 178, 106, 0.2); color: var(--gold-3); }
.tx-step.is-active .step-dot { color: var(--gold-2); box-shadow: 0 0 0 4px rgba(216, 178, 106, 0.08); }
.tx-step.is-done .step-dot { border-color: var(--jade); color: var(--jade); background: rgba(63, 159, 120, 0.1); }
.tx-hash { border-color: rgba(255, 255, 255, 0.06); color: var(--muted); }
.tx-hash b { color: var(--gold-3); }
.wallet-item { border-color: rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.015); }
.wallet-item:hover { border-color: rgba(216, 178, 106, 0.3); background: rgba(216, 178, 106, 0.04); }
.wallet-item .wlogo { border-color: rgba(216, 178, 106, 0.24); color: var(--gold); border-radius: 50%; }
.settle-title { font-size: 28px; color: var(--ivory); }
.settle-icon { border-color: rgba(216, 178, 106, 0.45); color: var(--gold); }
.settle-row { border-bottom-color: rgba(255, 255, 255, 0.05); }
.settle-row b { color: var(--ivory); font-family: var(--serif-en); font-weight: 600; }
.settle-row.total b { font-size: 19px; }
.toast { background: rgba(23, 18, 12, 0.97); border-color: rgba(216, 178, 106, 0.32); border-radius: 9px; }

/* ---------------- 细节动效 ---------------- */
.vault-card {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.28s ease-out, box-shadow 0.28s ease;
  will-change: transform;
}
.vault-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 18%), rgba(255, 243, 210, 0.16), transparent 62%);
  mix-blend-mode: screen; z-index: 3; opacity: 0.85;
}
.hero-dust { position: absolute; inset: -24px; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, #f7e6bb, rgba(216, 178, 106, 0));
  box-shadow: 0 0 7px rgba(216, 178, 106, 0.55);
  animation: dustFloat 8s ease-in-out infinite;
}
@keyframes dustFloat {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-20px); opacity: 0.75; }
}

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

.topbar { transition: background 0.25s, border-color 0.25s; }
.topbar-inner { transition: height 0.25s; }
.topbar.is-scrolled { background: rgba(7, 6, 5, 0.94); border-bottom-color: rgba(216, 178, 106, 0.3); }
.topbar.is-scrolled .topbar-inner { height: 64px; }

.pot-plaque {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-top: 10px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(216, 178, 106, 0.22); background: rgba(0, 0, 0, 0.28);
}
.pot-plaque span { font-size: 8px; letter-spacing: 0.14em; color: var(--muted-2); }
.pot-plaque b { font-family: var(--serif-en); font-size: 14px; color: var(--gold-2); }
.pot-plaque i { font-style: normal; font-size: 8px; color: var(--gold-3); letter-spacing: 0.08em; }

.room-chips { margin-left: auto; align-self: center; display: flex; align-items: center; padding-left: 10px; }
.room-chips i {
  width: 16px; height: 16px; border-radius: 50%; margin-left: -6px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 7px rgba(0, 0, 0, 0.35);
}
.room-chips i:nth-child(1) { background: linear-gradient(145deg, #f6e3b8, #b98b3f); }
.room-chips i:nth-child(2) { background: linear-gradient(145deg, #c8534d, #6e1f24); }
.room-chips i:nth-child(3) { background: linear-gradient(145deg, #3a332a, #131009); }
.room-chips i:nth-child(4) { background: linear-gradient(145deg, #e8c78a, #9a7436); }
.room-chips i:first-child { margin-left: 0; }

.forge-flow {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; margin: -6px 0 20px;
  border: 1px solid rgba(216, 178, 106, 0.14);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(216, 178, 106, 0.055), rgba(216, 178, 106, 0.01) 55%, transparent);
}
.forge-flow div { display: flex; align-items: baseline; gap: 9px; }
.forge-flow b { font-family: var(--serif-en); font-size: 13px; color: var(--gold); }
.forge-flow span { font-size: 12px; color: var(--ivory); }
.forge-flow > i { font-style: normal; font-size: 14px; color: var(--gold-3); }
.forge-flow-note { margin-left: auto; font-size: 10px; color: var(--muted-2); letter-spacing: 0.04em; }

.num-main { display: block; }
.spark { display: block; width: 58px; height: 16px; margin: 4px 0 0 auto; opacity: 0.85; }
.table-empty { text-align: center !important; color: var(--muted-2) !important; padding: 28px 0 !important; letter-spacing: 0.08em; }
.chain-chip.is-local { color: var(--gold-2); border-color: rgba(216, 178, 106, 0.35); }
.chain-chip.is-local .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
body.is-live .spark { display: none; }
body.is-live .float-card { display: none; }

.play-slot .card { animation: playIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes playIn {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.pass-bubble { animation: fadeIn 0.25s ease both; }

.opp.is-turn .avatar::after, .me-row.is-turn .avatar::after {
  content: "";
  position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold-2);
  border-right-color: rgba(216, 178, 106, 0.4);
  animation: spin 1.5s linear infinite;
}

.settle-hero:not(.lose) .settle-icon { position: relative; }
.settle-hero:not(.lose) .settle-icon::after {
  content: "";
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(216, 178, 106, 0.35);
  animation: halo 2.2s ease-out infinite;
}
@keyframes halo {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #070605; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6f5224, #d8b26a);
  border-radius: 6px; border: 2px solid #070605;
}
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

@media (max-width: 980px) {
  .chain-chip { display: none; }
}

@media (max-width: 860px) {
  .pot-plaque { display: none; }
  .spark { display: none; }
  .hero-dust { display: none; }
  .forge-flow { flex-wrap: wrap; gap: 8px 12px; }
  .forge-flow-note { width: 100%; margin-left: 0; }
}

/* ---------------- 牌桌反馈 ---------------- */
.sound-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(216, 178, 106, 0.28);
  color: var(--gold); background: rgba(216, 178, 106, 0.04);
  display: grid; place-items: center;
  font-family: var(--serif-en); font-size: 15px; line-height: 1;
  transition: 0.16s;
}
.sound-btn:hover { background: rgba(216, 178, 106, 0.1); }
.sound-btn.is-muted { color: var(--muted-2); border-color: rgba(255, 255, 255, 0.08); }

.x-link {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(216, 178, 106, 0.28);
  color: var(--ivory); background: rgba(255, 255, 255, 0.02);
  display: grid; place-items: center;
  transition: 0.16s;
}
.x-link svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.x-link:hover { color: var(--gold); border-color: rgba(216, 178, 106, 0.55); box-shadow: 0 0 18px -6px rgba(216, 178, 106, 0.7); }
.footer-x { color: var(--gold-3) !important; letter-spacing: 0.04em; }

.turn-clock {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(216, 178, 106, 0.22); background: rgba(0, 0, 0, 0.28);
  font-family: var(--serif-en); font-size: 10.5px; letter-spacing: 0.1em; color: var(--gold-2);
}
.turn-clock[hidden] { display: none !important; }
.turn-clock.is-urgent { color: #ff9c97; border-color: rgba(200, 83, 77, 0.5); animation: blink 1s infinite; }

.play-slot.combo-long .card.mini { width: 31px; height: 45px; margin-left: -12px; }
.play-slot.combo-long .card.mini .c-rank { font-size: 9px; }
.play-slot.combo-long .card.mini .c-suit { font-size: 14px; }
.play-slot.combo-bomb .card.mini {
  box-shadow: 0 0 0 1px rgba(216, 178, 106, 0.85), 0 0 20px rgba(216, 178, 106, 0.5);
}

.boom-flash {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(216, 178, 106, 0.35), transparent 58%);
  animation: boomFlash 0.7s ease-out forwards;
}
.boom-flash b {
  font-family: var(--display); font-size: clamp(52px, 7vw, 82px);
  color: var(--gold-2); letter-spacing: 0.06em;
  text-shadow: 0 0 34px rgba(216, 178, 106, 0.85), 0 12px 50px #000;
}
@keyframes boomFlash {
  0% { opacity: 0; transform: scale(1.08); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
.board.is-shaking { animation: tableShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes tableShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.modal { position: relative; }
.coin-burst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.coin-burst i {
  position: absolute; left: 50%; top: 62%;
  width: 15px; height: 15px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3cf, #e3c17c 45%, #a8792f 100%);
  border: 1px solid #f7e6bb;
  box-shadow: 0 0 14px rgba(216, 178, 106, 0.7);
  opacity: 0;
  animation: coinFly 1.25s cubic-bezier(0.15, 0.72, 0.25, 1) forwards;
  animation-delay: var(--d, 0s);
}
.coin-burst i::after {
  content: "$"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif-en); font-size: 8px; font-weight: 700; color: #5a3d0c;
}
@keyframes coinFly {
  0% { transform: translate(0, 0) scale(0.4) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(var(--x, 0), var(--y, -140px)) scale(1) rotate(var(--r, 180deg)); opacity: 0; }
}

@media (max-width: 640px) {
  .sound-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-dust { display: none; }
  .vault-card { transform: none !important; }
  .coin-burst, .boom-flash { display: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
  .hero h1 { font-size: clamp(44px, 7vw, 62px); }
  .hero-visual { min-height: 470px; justify-content: center; }
  .vault-card { max-width: 420px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid rgba(216, 178, 106, 0.14); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(-n+2) { border-bottom: 1px solid rgba(216, 178, 106, 0.13); }
  .room-grid { grid-template-columns: 1fr; }
  .arena { grid-template-columns: 1fr; }
  .board { min-height: 640px; }
  .arena-side { flex-direction: row; flex-wrap: wrap; }
  .arena-side .panel { flex: 1 1 300px; }
  .lobby-stats { gap: 0; }
}
@media (max-width: 860px) {
  .topbar-inner { height: 68px; gap: 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(40px, 11vw, 54px); }
  .hero-stats div { padding: 0 20px; }
  .hero-stats b { font-size: 24px; }
  .vault-card { padding: 24px 24px 20px; }
  .vc-balance { font-size: 38px; }
  .vc-coin { left: -18px; bottom: 20px; width: 66px; height: 66px; }
  .vc-coin span { font-size: 15px; }
  .float-card { right: -2px; width: 70px; height: 100px; }
  .kpi { padding: 20px 18px; }
  .kpi-num { font-size: 28px; }
  .section-head { margin-top: 48px; }
  .section-head h2 { font-size: 24px; }
  .board { min-height: 600px; padding: 18px 14px 14px; }
  .hand { min-height: 120px; }
  .card { width: 50px; height: 70px; margin-left: -30px; }
  .card .c-rank { font-size: 13px; }
  .card .c-suit { font-size: 22px; }
  .arena-side { flex-direction: column; }
  .room-stake b { font-size: 44px; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .section-head h2 { font-size: 22px; line-height: 1.55; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hero-stats div { padding: 0 14px; }
  .hero-stats div:first-child { padding-left: 0; }
  .hero-stats b { font-size: 20px; }
  .hero-stats span { font-size: 8px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-num { font-size: 25px; }
  .kpi::before { top: 20px; right: 16px; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid rgba(216, 178, 106, 0.13); }
  .flow-step:last-child { border-bottom: 0; }
  .vault-card { padding: 20px; }
  .vc-balance { font-size: 33px; }
  .vc-chart { height: 72px; }
  .vc-coin { display: none; }
  .float-card { display: none; }
  .room-stake b { font-size: 40px; }
  .lobby-stats div { padding: 0 12px; }
  .lobby-stats b { font-size: 18px; }
  .page-head h2 { font-size: 30px; }
  .board::before { font-size: 380px; }
}

/* 移动端牌桌压缩：让手牌和一排按钮进入首屏 */
@media (max-width: 860px) {
  .table-head { padding: 16px 0 10px; gap: 8px; }
  .board { min-height: 520px; padding: 14px 12px 12px; }
  .board-mid { min-height: 128px; }
  .board-seal { width: 190px; height: 190px; }
  .board-seal span { font-size: 46px; }
  .board-seal b { font-size: 7px; letter-spacing: 0.26em; }
  .board-seal i { font-size: 6px; letter-spacing: 0.2em; }
  .hand { min-height: 132px; padding-top: 10px; }
  .hand.two-row { min-height: 140px; padding-top: 6px; }
  .card { width: 46px; height: 64px; margin-left: -26px; }
  .card .c-rank { font-size: 11px; }
  .card .c-suit { font-size: 19px; }
  .actions .btn { height: 38px; min-width: 80px; }
  .avatar { width: 44px; height: 44px; }
  .opp .avatar { width: 44px; height: 44px; }
  .board-center { margin-top: 4px; }
  .board-mid { padding: 2px 0; }
}

@media (max-width: 1100px) { .high-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .high-grid { grid-template-columns: 1fr; } .high-head { flex-direction: column; align-items: flex-start; } .high-note { white-space: normal; } }

#view-lobby > .room-grid:not(.high-grid) { display: none; }

.normal-grid { display: none !important; }

/* ---------------- 测试 CA ---------------- */
.testca-panel { padding: 26px; }
.testca-bar { display: flex; gap: 10px; align-items: stretch; }
.testca-bar input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(0, 0, 0, 0.32); color: var(--ivory); padding: 12px 14px;
  font-family: var(--mono); font-size: 12px; outline: none;
}
.testca-bar input:focus { border-color: rgba(216, 178, 106, 0.6); box-shadow: 0 0 0 3px rgba(216, 178, 106, 0.08); }
.testca-result { margin-top: 22px; }
.testca-empty { color: var(--muted); font-size: 12px; padding: 22px 0; text-align: center; }
.testca-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tc-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); min-width: 0; }
.tc-card h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; color: var(--gold); font-weight: 500; }
.tc-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.045); font-size: 10.5px; }
.tc-row:last-child { border-bottom: 0; }
.tc-row span { color: var(--muted); white-space: nowrap; }
.tc-row b { color: var(--ivory); font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 68%; }
.tc-row b.gold { color: var(--gold-2); }
.tc-row b.bad { color: var(--red); }
.tc-row b.ok { color: var(--jade); }
.tc-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tc-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 10px; font-size: 9.5px; color: var(--muted); }
.tc-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.tc-pill.ok { color: #bfe4d4; border-color: rgba(63,159,120,.3); }
.tc-pill.ok i { background: var(--jade); }
.tc-pill b { color: var(--ivory); font-weight: 500; }
.tc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 10px; }
.tc-links a { color: var(--gold-3); border-bottom: 1px solid var(--line); text-decoration: none; padding-bottom: 2px; }
.tc-desc { margin-top: 14px; border-left: 1px solid var(--line); padding-left: 12px; font-size: 10.5px; line-height: 1.75; color: var(--muted); }
@media (max-width: 900px) { .testca-grid { grid-template-columns: 1fr; } .testca-bar { flex-direction: column; } }

/* ---------------- 数据源 ---------------- */
.source-toggle {
  border: 1px solid rgba(216, 178, 106, 0.3); border-radius: 999px;
  background: rgba(216, 178, 106, 0.06); color: var(--gold-2);
  padding: 7px 10px; font-size: 9px; letter-spacing: 0.08em; white-space: nowrap;
}
.source-toggle:hover { border-color: rgba(216, 178, 106, 0.6); }
.source-toggle.local { color: var(--muted); border-color: var(--line-soft); background: rgba(255,255,255,.02); }
.data-banner { background: linear-gradient(90deg, rgba(122,34,40,.28), rgba(122,34,40,.06)); border-bottom: 1px solid rgba(200,83,77,.28); }
.data-banner-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; font-size: 10px; color: #e3b7b2; }
.data-banner-inner b { color: var(--red); letter-spacing: .08em; white-space: nowrap; }
.data-banner-inner a { color: var(--gold-3); text-decoration: none; border-bottom: 1px solid var(--line); margin-left: auto; white-space: nowrap; }
@media (max-width: 640px) { .source-toggle { display: none; } .data-banner-inner a { margin-left: 0; } }

.chain-chip.is-testca { color: var(--gold-2); border-color: rgba(216,178,106,.4); }
.chain-chip.is-testca .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

body.is-testca .float-card { display: none; }

.lobby-empty { padding: 34px 28px; text-align: center; margin-top: 12px; }
.lobby-empty b { display: block; font-family: var(--display); font-size: 24px; color: var(--ivory); font-weight: 500; }
.lobby-empty p { margin: 10px auto 0; max-width: 520px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.lobby-empty a { display: inline-block; margin-top: 16px; color: var(--gold-3); font-size: 11px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
