/* ============================================================
   金库斗地主 · VAULT LANDLORD
   ============================================================ */
:root {
  --bg: #060907;
  --bg-2: #0a0f0c;
  --panel: #0d1511;
  --panel-2: #111c16;
  --gold: #e9b949;
  --gold-2: #f7dfa4;
  --gold-3: #b9872a;
  --jade: #3ddc97;
  --red: #f0605a;
  --blue: #6fa8ff;
  --text: #eef4ee;
  --muted: #8b9b90;
  --muted-2: #5f7065;
  --line: rgba(233, 185, 73, 0.14);
  --line-soft: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 78% -12%, rgba(233, 185, 73, 0.07), transparent 62%),
    radial-gradient(900px 700px at -5% 38%, rgba(61, 220, 151, 0.05), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(233, 185, 73, 0.28); color: #fff; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 20%, transparent 80%);
}
.bg-glow { position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.bg-glow-a { width: 520px; height: 520px; top: -220px; right: 8%; background: rgba(233, 185, 73, 0.10); }
.bg-glow-b { width: 420px; height: 420px; bottom: 10%; left: -180px; background: rgba(61, 220, 151, 0.06); }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }

.gold { color: var(--gold); }
.jade { color: var(--jade); }
.red { color: var(--red); }
.up { color: var(--jade); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 9, 7, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.topbar-inner { display: flex; align-items: center; gap: 34px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--gold); font-size: 22px; line-height: 1;
  background: linear-gradient(160deg, #1c2720, #0a100c);
  border: 1px solid rgba(233, 185, 73, 0.42);
  box-shadow: inset 0 0 18px rgba(233, 185, 73, 0.12), 0 0 26px -8px rgba(233, 185, 73, 0.55);
}
.brand-mark.sm { width: 30px; height: 30px; font-size: 17px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-text b { font-size: 13px; letter-spacing: 0.15em; font-weight: 800; }
.brand-text i { font-style: normal; font-size: 10px; letter-spacing: 0.34em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; padding: 9px 13px; border-radius: 9px; color: var(--muted);
  font-size: 13px; transition: color 0.18s, background 0.18s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-link.is-active { color: var(--gold-2); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chain-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.025);
  font-size: 11px; color: var(--muted); letter-spacing: 0.04em;
}
.chain-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); }

/* ---------------- Buttons / tags ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-gold {
  color: #251a05;
  background: linear-gradient(180deg, #f6d68b 0%, #e9b949 52%, #d9a333 100%);
  box-shadow: 0 10px 26px -12px rgba(233, 185, 73, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  color: var(--gold-2); background: rgba(255, 255, 255, 0.02);
  border-color: rgba(233, 185, 73, 0.30);
}
.btn-ghost:hover { background: rgba(233, 185, 73, 0.08); border-color: rgba(233, 185, 73, 0.5); }
.btn-lg { height: 50px; padding: 0 24px; border-radius: 13px; font-size: 14px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; display: flex; }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; filter: grayscale(0.3); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 6px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03);
  font-size: 9px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase;
}
.tag-gold { color: var(--gold); border-color: rgba(233, 185, 73, 0.3); background: rgba(233, 185, 73, 0.08); }
.tag-red { color: var(--red); border-color: rgba(240, 96, 90, 0.28); background: rgba(240, 96, 90, 0.07); }
.tag-live { color: var(--jade); border-color: rgba(61, 220, 151, 0.25); background: rgba(61, 220, 151, 0.06); }
.tag-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 6px var(--jade); animation: blink 1.8s infinite; }
.tag-gold { letter-spacing: 0.08em; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------------- Layout blocks ---------------- */
.view { display: none; position: relative; z-index: 1; }
.view.is-active { display: block; animation: viewIn 0.35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase;
}
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(233, 185, 73, 0.5); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 185, 73, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(233, 185, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 185, 73, 0); }
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin: 56px 0 22px;
}
.section-head h2 { font-size: 25px; letter-spacing: -0.01em; margin-top: 8px; font-weight: 800; }
.section-note { font-size: 12px; color: var(--muted); max-width: 340px; line-height: 1.7; }

.panel {
  position: relative; border-radius: var(--radius); padding: 22px;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.72), rgba(9, 14, 11, 0.9));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px -50px #000;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.panel-note { margin-top: 14px; font-size: 12px; line-height: 1.75; color: var(--muted); }

/* ---------------- Hero ---------------- */
.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center;
  padding: 70px 0 40px;
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 70px); line-height: 1.06; letter-spacing: -0.035em;
  font-weight: 900; margin: 16px 0 20px;
}
.grad {
  background: linear-gradient(100deg, #fff3d0 0%, #f0c96b 38%, #e9b949 62%, #b9872a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 26px rgba(233, 185, 73, 0.16));
}
.lede { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 480px; }
.lede b { font-weight: 700; }
.hero-cta { display: flex; gap: 18px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.hero-link {
  padding: 0 2px 4px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid rgba(233, 185, 73, 0.35);
  transition: color 0.16s, border-color 0.16s;
}
.hero-link span { margin-left: 4px; color: var(--gold-3); }
.hero-link:hover { color: var(--gold-2); border-color: var(--gold); }
.hero-hint { margin-top: 14px; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.hero-stats { display: flex; gap: 38px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.hero-stats div { display: flex; flex-direction: column; gap: 6px; }
.hero-stats b { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.hero-visual { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; }
.vault-ring {
  position: absolute; width: 470px; height: 470px; border-radius: 50%;
  border: 1px dashed rgba(233, 185, 73, 0.20);
  box-shadow: inset 0 0 90px -50px rgba(233, 185, 73, 0.5), 0 0 90px -50px rgba(233, 185, 73, 0.4);
  animation: spin 90s linear infinite;
}
.vault-ring::before { content: ""; position: absolute; inset: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.04); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; z-index: 3; right: 26px; top: 50%; margin-top: -59px; width: 84px; height: 118px;
  border-radius: 10px; padding: 9px 10px;
  background: linear-gradient(160deg, #fdf9ee, #eee4cf); color: #17130d;
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  transform: rotate(9deg);
  display: flex; flex-direction: column; align-items: flex-start;
  animation: floaty 7s ease-in-out infinite;
}
.float-card span { font-size: 20px; font-weight: 800; line-height: 1; }
.float-card em { font-style: normal; font-size: 35px; align-self: center; margin: 2px 0 4px; }
.float-card i { font-style: normal; font-size: 6.5px; letter-spacing: 0.18em; color: #8a6a2a; align-self: center; margin-top: auto; }
@keyframes floaty { 0%, 100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(11deg) translateY(-9px); } }

.vault-card {
  position: relative; z-index: 2; width: 100%; max-width: 396px; padding: 26px 26px 22px;
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 90% -10%, rgba(233, 185, 73, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(24, 35, 28, 0.97), rgba(8, 13, 10, 0.99));
  border: 1px solid rgba(233, 185, 73, 0.28);
  box-shadow: 0 50px 90px -50px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 70px -30px rgba(233, 185, 73, 0.35);
}
.vc-glow {
  position: absolute; top: -90px; right: -60px; width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(233, 185, 73, 0.24), transparent);
  pointer-events: none;
}
.vc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.vc-id { font-size: 10px; letter-spacing: 0.24em; color: var(--muted); }
.vc-label { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.vc-balance { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 8px; font-variant-numeric: tabular-nums; }
.vc-balance span { font-size: 15px; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.vc-sub { font-size: 11px; color: var(--muted); }
.vc-chart { display: flex; align-items: flex-end; gap: 4px; height: 74px; margin: 22px 0 18px; }
.vc-chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(233, 185, 73, 0.85), rgba(233, 185, 73, 0.10)); min-height: 4px; }
.vc-chart i:nth-last-child(-n+4) { background: linear-gradient(180deg, #f7dfa4, rgba(233, 185, 73, 0.25)); }
.vc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.vc-foot div { display: flex; flex-direction: column; gap: 4px; }
.vc-foot span { font-size: 10px; color: var(--muted); }
.vc-foot b { font-size: 13px; font-variant-numeric: tabular-nums; }
.vc-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(233, 185, 73, 0.06), transparent);
  height: 40%; animation: scan 6s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-120%); } 100% { transform: translateY(320%); } }

/* ---------------- KPI ---------------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.kpi {
  padding: 20px; border-radius: 16px; border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(19, 29, 23, 0.55), rgba(8, 13, 10, 0.75));
  transition: transform 0.2s, border-color 0.2s;
}
.kpi:hover { transform: translateY(-3px); border-color: var(--line); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 14px; }
.kpi-num { display: block; font-size: 29px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-num .unit { font-size: 14px; color: var(--muted); margin-left: 2px; }
.kpi-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 10px; color: var(--muted-2); }
.kpi-foot span:first-child { font-weight: 600; }

/* ---------------- Flow ---------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.flow-step {
  position: relative; padding: 22px 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 29, 23, 0.6), rgba(8, 13, 10, 0.7));
  border: 1px solid var(--line-soft);
}
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%);
  color: var(--gold-3); font-size: 15px;
}
.flow-step-burn { border-color: rgba(240, 96, 90, 0.22); background: linear-gradient(180deg, rgba(40, 20, 18, 0.35), rgba(10, 12, 10, 0.75)); }
.flow-num { font-size: 10px; letter-spacing: 0.22em; color: var(--gold-3); }
.flow-step-burn .flow-num { color: var(--red); }
.flow-step h4 { font-size: 15px; margin: 10px 0 8px; font-weight: 700; }
.flow-step p { font-size: 12px; line-height: 1.75; color: var(--muted); min-height: 63px; }
.flow-meta { display: inline-block; margin-top: 12px; font-size: 11px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------------- Overview grid ---------------- */
.overview-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 18px; align-items: start; }
.table-scroll { overflow-x: auto; }
.vtable { width: 100%; border-collapse: collapse; }
.vtable th {
  text-align: left; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 8px 10px 12px; border-bottom: 1px solid var(--line-soft);
}
.vtable td { padding: 13px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 12.5px; vertical-align: middle; }
.vtable tr:last-child td { border-bottom: 0; }
.vtable tbody tr { transition: background 0.15s; }
.vtable tbody tr:hover { background: rgba(233, 185, 73, 0.035); }
.token-cell { display: flex; align-items: center; gap: 10px; }
.token-logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 12px; font-weight: 800; color: var(--gold);
  background: linear-gradient(150deg, #22301f, #0d1510); border: 1px solid rgba(233, 185, 73, 0.28);
}
.token-logo.v2 { color: var(--jade); border-color: rgba(61, 220, 151, 0.25); background: linear-gradient(150deg, #14291f, #0a1410); }
.token-logo.v3 { color: var(--blue); border-color: rgba(111, 168, 255, 0.25); background: linear-gradient(150deg, #162233, #0a111a); }
.token-cell b { font-size: 12.5px; display: block; }
.token-cell span { font-size: 10px; color: var(--muted-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 6px var(--jade); }
.status.warn { color: var(--gold); }
.status.warn i { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.status.off { color: var(--muted-2); }
.status.off i { background: var(--muted-2); box-shadow: none; }

.feed { display: flex; flex-direction: column; max-height: 372px; overflow: hidden; mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }
.feed-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.feed-item:last-child { border-bottom: 0; }
.fi-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 13px; background: rgba(233, 185, 73, 0.07); border: 1px solid rgba(233, 185, 73, 0.16);
}
.fi-icon.burn { background: rgba(240, 96, 90, 0.07); border-color: rgba(240, 96, 90, 0.18); }
.fi-icon.win { background: rgba(61, 220, 151, 0.06); border-color: rgba(61, 220, 151, 0.18); }
.fi-body { min-width: 0; }
.fi-title { display: block; font-size: 12px; line-height: 1.5; }
.fi-title b { font-weight: 700; }
.fi-meta { display: block; font-size: 10px; color: var(--muted-2); margin-top: 3px; font-family: var(--mono); }
.fi-time { margin-left: auto; font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.feed-item.is-new { animation: feedIn 0.5s ease both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- Page head ---------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 56px 0 34px;
}
.page-head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.03em; margin: 10px 0 12px; font-weight: 800; }
.page-head p { font-size: 13.5px; line-height: 1.8; color: var(--muted); max-width: 620px; }
.page-head-badge {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 2px 12px;
  padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 42, 33, 0.6), rgba(9, 14, 11, 0.8)); flex-shrink: 0;
}
.page-head-badge span { grid-column: 1 / -1; font-size: 9px; letter-spacing: 0.2em; color: var(--gold); }
.page-head-badge b { font-size: 34px; line-height: 1; font-weight: 800; }
.page-head-badge i { font-style: normal; font-size: 10px; color: var(--muted); align-self: end; padding-bottom: 3px; }

/* ---------------- Forge ---------------- */
.forge-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 18px; align-items: start; }
.forge-form { padding: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > span { font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field > span i { font-style: normal; font-size: 9px; color: var(--muted-2); }
.field input {
  height: 43px; padding: 0 13px; border-radius: 10px;
  background: rgba(5, 9, 7, 0.7); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; font-family: var(--mono); color: var(--text);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus { outline: none; border-color: rgba(233, 185, 73, 0.55); box-shadow: 0 0 0 3px rgba(233, 185, 73, 0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-box { margin: 8px 0 16px; padding: 15px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.018); }
.split-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; }
.split-bar i { display: block; height: 100%; }
.split-bar .s1 { background: linear-gradient(90deg, #d9a333, #f6d68b); }
.split-bar .s2 { background: #c0453f; }
.split-bar .s3 { background: #2e8f6a; }
.split-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.dot-gold { background: var(--gold); }
.dot-red { background: var(--red); }
.dot-jade { background: var(--jade); }
.forge-estimate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.forge-estimate div { padding: 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 5px; }
.forge-estimate span { font-size: 9.5px; color: var(--muted-2); }
.forge-estimate b { font-size: 12px; font-variant-numeric: tabular-nums; }
.fineprint { margin-top: 12px; font-size: 10px; line-height: 1.6; color: var(--muted-2); text-align: center; }
.forge-side { display: flex; flex-direction: column; gap: 18px; }
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.factory-grid div { padding: 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.022); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 5px; }
.factory-grid span { font-size: 10px; color: var(--muted); }
.factory-grid b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mini-flow {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  padding: 11px; border-radius: 10px; border: 1px dashed rgba(233, 185, 73, 0.22);
  font-size: 10px; color: var(--muted);
}
.mini-flow i { font-style: normal; color: var(--gold-3); }
.mini-flow .gold { color: var(--gold); }
.forge-list { display: flex; flex-direction: column; gap: 8px; }
.vault-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.16s, background 0.16s;
}
.vault-item:hover { border-color: var(--line); background: rgba(233, 185, 73, 0.03); }
.vault-item .token-logo { width: 34px; height: 34px; border-radius: 10px; }
.vi-main { flex: 1; min-width: 0; }
.vi-main b { display: block; font-size: 12px; }
.vi-main span { font-size: 10px; color: var(--muted-2); }
.vi-right { text-align: right; }
.vi-right b { display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
.vi-right span { font-size: 9.5px; color: var(--muted-2); }
.vault-item.is-new { animation: feedIn 0.45s ease both; border-color: rgba(233, 185, 73, 0.4); }

/* ---------------- Lobby ---------------- */
.lobby-stats { display: flex; gap: 26px; flex-shrink: 0; }
.lobby-stats div { display: flex; flex-direction: column; gap: 5px; }
.lobby-stats b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.lobby-stats span { font-size: 10px; color: var(--muted); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.room-card {
  position: relative; padding: 24px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, rgba(24, 36, 28, 0.7), rgba(8, 13, 10, 0.92));
  border: 1px solid var(--line-soft);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.room-card:hover { transform: translateY(-3px); border-color: rgba(233, 185, 73, 0.26); }
.room-card.is-featured {
  border-color: rgba(233, 185, 73, 0.42);
  background:
    radial-gradient(120% 90% at 80% -20%, rgba(233, 185, 73, 0.12), transparent 55%),
    linear-gradient(170deg, rgba(32, 40, 28, 0.85), rgba(10, 15, 11, 0.95));
  box-shadow: 0 24px 60px -40px rgba(233, 185, 73, 0.45);
}
.room-ribbon {
  position: absolute; top: 18px; right: -34px; transform: rotate(38deg);
  width: 130px; text-align: center; padding: 4px 0; font-size: 9px; letter-spacing: 0.12em;
  background: linear-gradient(90deg, #f6d68b, #e9b949); color: #241a05; font-weight: 800;
}
.room-hot {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 7px;
  border-radius: 4px; font-style: normal; font-size: 8.5px; letter-spacing: 0.08em; font-weight: 800;
  color: #2a1e05; background: linear-gradient(90deg, #f6d68b, #e9b949); vertical-align: 3px;
}
.room-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.room-tier { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.room-online { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.room-online i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 6px var(--jade); }
.room-stake { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.room-stake b { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.room-stake span { font-size: 11px; color: var(--muted); }
.room-desc { font-size: 11.5px; line-height: 1.7; color: var(--muted); min-height: 58px; margin-bottom: 16px; }
.room-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 11px; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, 0.045); }
.room-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.solvency { margin: 14px 0 16px; }
.solvency-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.solvency-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2e8f6a, var(--jade)); box-shadow: 0 0 10px rgba(61, 220, 151, 0.4); }
.solvency span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 5px; letter-spacing: 0.06em; }

.lobby-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.my-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.my-stats div { padding: 13px; border-radius: 11px; background: rgba(255, 255, 255, 0.022); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 5px; }
.my-stats b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.my-stats span { font-size: 9.5px; color: var(--muted-2); }
.recent-games { display: flex; flex-direction: column; }
.game-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.045); font-size: 11px; color: var(--muted); }
.game-row .res { width: 34px; font-weight: 700; font-size: 10px; }
.game-row .res.win { color: var(--jade); }
.game-row .res.lose { color: var(--red); }
.game-row .amt { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------------- Table ---------------- */
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0 18px; flex-wrap: wrap; }
.table-head-left { display: flex; align-items: center; gap: 13px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02); color: var(--muted);
  font-size: 16px; transition: 0.16s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--line); }
.table-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.table-sub { font-size: 11px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.table-pills { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 10.5px; border: 1px solid var(--line-soft); color: var(--muted); }
.pill-burn { color: #ff9c97; border-color: rgba(240, 96, 90, 0.24); background: rgba(240, 96, 90, 0.06); }
.pill-gold { color: var(--gold); border-color: rgba(233, 185, 73, 0.26); background: rgba(233, 185, 73, 0.06); }

.arena { display: grid; grid-template-columns: 1fr 296px; gap: 16px; align-items: start; padding-bottom: 60px; }
.board {
  position: relative; min-height: 660px; padding: 22px 24px 18px; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 28%, #173a2c 0%, #0d241b 42%, #081410 72%, #060e0b 100%);
  border: 1px solid rgba(233, 185, 73, 0.22);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -60px #000;
  display: flex; flex-direction: column;
}
.board::before {
  content: "♠"; position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  font-size: 460px; line-height: 1; color: rgba(255, 255, 255, 0.018); pointer-events: none;
}
.board::after {
  content: ""; position: absolute; inset: 12px; border-radius: 20px;
  border: 1px dashed rgba(233, 185, 73, 0.10); pointer-events: none;
}
.board-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.opp { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.opp-right { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.opp-right .opp-meta { align-items: flex-end; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 13px; font-weight: 800; color: var(--gold-2);
  background: linear-gradient(160deg, #23342a, #0c1611);
  border: 1px solid rgba(233, 185, 73, 0.3);
  box-shadow: 0 0 0 4px rgba(6, 12, 9, 0.6);
  position: relative;
}
.avatar-me { color: #1b2409; background: linear-gradient(160deg, #f2d284, #c99732); border-color: #f6dfa4; }
.opp.is-turn .avatar { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 185, 73, 0.14), 0 0 22px rgba(233, 185, 73, 0.4); }
.opp-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.opp-name { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.opp-sub { font-size: 9.5px; color: var(--muted-2); font-family: var(--mono); }
.landlord-badge {
  display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 4px;
  background: linear-gradient(90deg, #f2cb72, #d9a333); color: #2a1e05; font-size: 8.5px; font-weight: 800;
  letter-spacing: 0.06em;
}
.card-stack { display: flex; margin-top: 3px; }
.card-back {
  width: 17px; height: 25px; border-radius: 3px; margin-left: -9px;
  background: repeating-linear-gradient(45deg, #223a2c 0 3px, #14261d 3px 6px);
  border: 1px solid rgba(233, 185, 73, 0.22);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.card-back:first-child { margin-left: 0; }
.opp-count { font-size: 10px; color: var(--muted); }
.board-center { text-align: center; min-width: 170px; }
.bottom-label { font-size: 9px; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 7px; }
.bottom-label span { color: var(--gold-3); margin-left: 4px; letter-spacing: 0.04em; }
.bottom-cards { display: flex; justify-content: center; gap: 5px; min-height: 62px; }
.table-status {
  margin-top: 10px; font-size: 11px; color: var(--gold-2); min-height: 16px;
  letter-spacing: 0.02em;
}
.board-mid {
  position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; align-items: center; min-height: 190px; padding: 10px 0;
}
.play-slot { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; min-height: 90px; }
.play-slot-me { align-items: flex-end; }
.pass-bubble {
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25); font-size: 11px; color: var(--muted); letter-spacing: 0.1em;
}
.combo-label { font-size: 9px; color: var(--muted-2); margin-top: 4px; width: 100%; text-align: center; letter-spacing: 0.08em; }
.board-foot { position: relative; z-index: 2; margin-top: auto; }
.me-row { display: flex; align-items: center; gap: 11px; padding: 6px 2px 0; }
.me-meta { display: flex; flex-direction: column; gap: 3px; }
.me-meta b { font-size: 11.5px; font-family: var(--mono); }
.me-meta span { font-size: 9.5px; color: var(--muted-2); }
.role-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 5px;
  font-size: 9px; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line-soft);
}
.role-tag.is-landlord { color: #2a1e05; background: linear-gradient(90deg, #f2cb72, #d9a333); border-color: transparent; font-weight: 800; }
.role-tag.is-farmer { color: var(--jade); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.06); }
.selected-info { margin-left: auto; font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.hand { display: flex; justify-content: center; align-items: flex-end; min-height: 132px; padding: 20px 6px 4px; }
.hand-row { display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.hand.two-row { flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 156px; padding-top: 12px; }
.hand.two-row .hand-row + .hand-row { margin-top: 2px; }
.actions { display: flex; justify-content: center; gap: 10px; padding-bottom: 2px; }
.actions .btn { min-width: 96px; }

/* 卡牌 */
.card {
  position: relative; width: 62px; height: 88px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(165deg, #fdfaf1, #efe6d3);
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 #fff;
  color: #16130e; margin-left: -26px; padding: 6px 7px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
  cursor: pointer; user-select: none;
}
.card:first-child { margin-left: 0; }
.card:hover { transform: translateY(-7px); z-index: 20; }
.card .c-rank { font-size: 15px; font-weight: 800; line-height: 1; }
.card .c-suit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 27px; line-height: 1; opacity: 0.92; }
.card .c-rank-b { align-self: flex-end; font-size: 11px; font-weight: 700; transform: rotate(180deg); opacity: 0.7; }
.card.red { color: #c0392b; }
.card.black { color: #17140f; }
.card.is-selected { transform: translateY(-18px); box-shadow: 0 0 0 2px var(--gold), 0 16px 26px -12px rgba(233, 185, 73, 0.5); z-index: 15; }
.card.is-dim { filter: brightness(0.72) saturate(0.7); }
.card.is-hint { box-shadow: 0 0 0 2px rgba(61, 220, 151, 0.75); }
.card.joker { background: linear-gradient(165deg, #232a24, #0e1511); border-color: rgba(233, 185, 73, 0.4); color: var(--gold); justify-content: flex-start; }
.card.joker .c-joker { writing-mode: vertical-rl; letter-spacing: 0.02em; font-size: 12px; line-height: 1.1; font-weight: 800; align-self: flex-start; margin: 0; }
.card.joker::after { content: "★"; position: absolute; left: 10px; bottom: 10px; font-size: 12px; opacity: 0.8; }
.card.joker.joker-big { color: #ff8a72; }
.card.mini { width: 38px; height: 54px; border-radius: 5px; padding: 3px 4px; margin-left: -14px; box-shadow: 0 6px 10px -6px #000; cursor: default; }
.card.mini:first-child { margin-left: 0; }
.card.mini .c-rank { font-size: 10px; }
.card.mini .c-suit { font-size: 17px; }
.card.mini .c-rank-b { display: none; }
.card.mini .c-joker { font-size: 8px; margin-top: 6px; }
.card.mini:hover { transform: none; }
.card.deal { animation: dealIn 0.35s ease both; }
@keyframes dealIn { from { opacity: 0; transform: translateY(26px) rotate(4deg); } to { opacity: 1; transform: none; } }

/* 叫地主 */
.bid-overlay {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px;
  background: rgba(4, 8, 6, 0.62); backdrop-filter: blur(5px);
  transition: opacity 0.25s, visibility 0.25s;
}
.bid-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.bid-card {
  width: min(430px, 100%); padding: 28px; border-radius: 20px; text-align: center;
  background: linear-gradient(175deg, #18241c, #0a110d);
  border: 1px solid rgba(233, 185, 73, 0.32);
  box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: pop 0.28s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.bid-eyebrow { font-size: 9px; letter-spacing: 0.22em; color: var(--gold); }
.bid-card h3 { font-size: 24px; margin: 12px 0 10px; letter-spacing: -0.02em; }
.bid-card p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.bid-actions { display: flex; gap: 10px; margin-top: 22px; }
.bid-actions .btn { flex: 1; }

/* 侧栏 */
.arena-side { display: flex; flex-direction: column; gap: 14px; }
.stat-list { display: flex; flex-direction: column; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 11px; color: var(--muted); }
.stat-row:last-child { border-bottom: 0; }
.stat-row b { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hint-line { margin-top: 10px; font-size: 9.5px; color: var(--muted-2); line-height: 1.6; }
.log { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; font-size: 10.5px; scrollbar-width: thin; }
.log-empty { color: var(--muted-2); font-size: 11px; padding: 8px 0; }
.log-item { display: flex; gap: 7px; padding: 4px 0; color: var(--muted); line-height: 1.5; }
.log-item .who { color: var(--gold); flex-shrink: 0; }
.log-item .who.me { color: var(--gold-2); }
.log-item .what { color: var(--text); }
.log-item .cards { color: var(--muted-2); font-family: var(--mono); }
.log-item.is-pass .what { color: var(--muted-2); }

/* ---------------- Tokenomics ---------------- */
.tokenomics-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; }
.donut-wrap { display: flex; align-items: center; gap: 28px; padding: 8px 0 4px; }
.donut {
  width: 186px; height: 186px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: conic-gradient(var(--gold) 0 60%, #c0453f 60% 80%, #2e8f6a 80% 100%);
  box-shadow: 0 0 50px -18px rgba(233, 185, 73, 0.45);
}
.donut::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(233, 185, 73, 0.16); }
.donut-hole {
  position: absolute; inset: 26px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #131e17, #0a110d);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.donut-hole b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.donut-hole span { font-size: 9px; color: var(--muted); letter-spacing: 0.1em; }
.donut-legend { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.donut-legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger td { padding: 9px 0; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.ledger td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.ledger tr:first-child td { padding-top: 0; }
.ledger-total td { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 13px; font-weight: 700; color: var(--text); }
.ledger-total td:last-child { font-size: 13px; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contract-card {
  padding: 20px; border-radius: 16px; border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(20, 31, 24, 0.6), rgba(8, 13, 10, 0.85));
}
.contract-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.contract-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; color: var(--gold); background: linear-gradient(160deg, #1e2b22, #0b120e);
  border: 1px solid rgba(233, 185, 73, 0.22);
}
.contract-card:nth-child(2) .contract-icon { color: var(--gold-2); }
.contract-card:nth-child(3) .contract-icon { color: var(--red); }
.contract-card h4 { font-size: 14px; margin-bottom: 8px; }
.contract-card p { font-size: 11.5px; line-height: 1.7; color: var(--muted); min-height: 58px; }
.contract-card code { display: block; margin-top: 12px; padding: 7px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.3); font-family: var(--mono); font-size: 10px; color: var(--gold-3); }
.params { width: 100%; border-collapse: collapse; }
.params td { padding: 9px 0; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.params td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.params tr:last-child td { border-bottom: 0; }
.risk-list { display: flex; flex-direction: column; gap: 11px; }
.risk-list li { position: relative; padding-left: 14px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.risk-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: 0.7; }
.risk-list b { color: var(--text); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tokenomics-bottom { margin-top: 18px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.055); margin-top: 70px; padding: 26px 0 90px; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand div { display: flex; flex-direction: column; gap: 3px; }
.footer-brand b { font-size: 11px; letter-spacing: 0.14em; }
.footer-brand span { font-size: 10px; color: var(--muted-2); }
.footer-note { font-size: 10px; color: var(--muted-2); }
.footer-links { margin-left: auto; display: flex; gap: 18px; font-size: 11px; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* ---------------- Mobile tabbar ---------------- */
.tabbar { display: none; }

/* ---------------- Modal / toast ---------------- */
#modal-root { position: relative; z-index: 120; }
.modal-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 6, 4, 0.74); backdrop-filter: blur(7px);
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(470px, 100%); max-height: 90vh; overflow-y: auto;
  padding: 26px; border-radius: 22px;
  background: linear-gradient(175deg, #16211a, #090f0c);
  border: 1px solid rgba(233, 185, 73, 0.26);
  box-shadow: 0 50px 100px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: pop 0.25s ease both;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.modal-sub { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.modal-close { color: var(--muted); font-size: 18px; line-height: 1; padding: 3px 6px; border-radius: 6px; }
.modal-close:hover { color: var(--gold); background: rgba(255, 255, 255, 0.04); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
  display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02); transition: 0.16s;
}
.wallet-item:hover { border-color: var(--line); background: rgba(233, 185, 73, 0.05); }
.wallet-item .wlogo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: rgba(233, 185, 73, 0.08); border: 1px solid var(--line); }
.wallet-item b { font-size: 12.5px; display: block; }
.wallet-item span { font-size: 10px; color: var(--muted-2); }
.wallet-item .wmock { margin-left: auto; font-size: 9px; color: var(--muted-2); letter-spacing: 0.08em; }

.tx-steps { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; }
.tx-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.tx-step:not(:last-child)::after {
  content: ""; position: absolute; left: 11px; top: 34px; width: 1px; height: 18px; background: rgba(255, 255, 255, 0.09);
}
.step-dot {
  width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12); background: #0b120e; font-size: 10px; color: var(--muted-2);
}
.tx-step.is-active .step-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 185, 73, 0.1); }
.tx-step.is-done .step-dot { border-color: var(--jade); background: rgba(61, 220, 151, 0.12); color: var(--jade); }
.tx-step.is-done:not(:last-child)::after { background: rgba(61, 220, 151, 0.4); }
.step-label { font-size: 12px; color: var(--muted); }
.tx-step.is-active .step-label, .tx-step.is-done .step-label { color: var(--text); }
.step-hint { margin-left: auto; font-size: 9px; color: var(--muted-2); font-family: var(--mono); }

.tx-hash {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft); font-family: var(--mono); font-size: 10px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.tx-hash b { color: var(--gold-3); font-weight: 500; word-break: break-all; }

.settle-hero { text-align: center; padding: 6px 0 16px; }
.settle-icon {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; border: 1px solid rgba(233, 185, 73, 0.4); background: radial-gradient(circle at 50% 35%, rgba(233, 185, 73, 0.2), rgba(233, 185, 73, 0.03));
  color: var(--gold); box-shadow: 0 0 40px -8px rgba(233, 185, 73, 0.45);
}
.settle-hero.lose .settle-icon { color: var(--muted); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); box-shadow: none; }
.settle-title { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.settle-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.settle-rows { margin: 18px 0 0; border-top: 1px solid var(--line-soft); }
.settle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 11.5px; color: var(--muted); }
.settle-row b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.settle-row.total { border-bottom: 0; padding-top: 13px; font-size: 12.5px; }
.settle-row.total b { font-size: 17px; }
.settle-foot { margin-top: 10px; font-size: 10px; color: var(--muted-2); line-height: 1.6; }

#toast-root { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 11px;
  background: rgba(18, 28, 22, 0.96); border: 1px solid rgba(233, 185, 73, 0.3);
  box-shadow: 0 20px 40px -20px #000; font-size: 12px; color: var(--text);
  animation: toastIn 0.25s ease both; backdrop-filter: blur(10px);
}
.toast.err { border-color: rgba(240, 96, 90, 0.45); color: #ffb3ae; }
.toast.ok { border-color: rgba(61, 220, 151, 0.4); }
.toast .ti { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 截图/静态预览模式：关闭所有动画，保证一帧内呈现最终状态 */
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }
.no-anim .tabbar { display: none !important; }
.no-anim #toast-root { display: none !important; }
.no-anim body { padding-bottom: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
  .hero-visual { min-height: 430px; justify-content: center; }
  .vault-card { max-width: 420px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .forge-grid, .lobby-grid, .tokenomics-grid, .two-col { grid-template-columns: 1fr; }
  .arena { grid-template-columns: 1fr; }
  .arena-side { flex-direction: row; flex-wrap: wrap; }
  .arena-side .panel { flex: 1 1 280px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .room-grid { grid-template-columns: 1fr; }
  .contract-grid { grid-template-columns: 1fr; }
  .nav-link { padding: 9px 10px; }
  .topbar-inner { gap: 18px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 36px; }
  .page-head-badge { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(7, 11, 8, 0.94); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: var(--muted-2); padding: 4px 0; border-radius: 8px; }
  .tab span { font-size: 15px; }
  .tab.is-active { color: var(--gold); }
  .footer { padding-bottom: 100px; }
  body { padding-bottom: 56px; }
  .board { min-height: 620px; padding: 18px 14px 14px; }
  .board-top { grid-template-columns: 1fr 1fr; }
  .board-center { grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
  .board-mid { min-height: 150px; }
  .hand { min-height: 104px; padding-inline: 4px; }
  .card { width: 44px; height: 64px; margin-left: -29px; padding: 4px 5px; border-radius: 6px; }
  .hand-row .card { margin-left: -18px; }
  .hand-row .card:first-child { margin-left: 0; }
  .card .c-rank { font-size: 12px; }
  .card .c-suit { font-size: 20px; }
  .card .c-rank-b { font-size: 8px; }
  .card.joker .c-joker { font-size: 10px; margin-top: 8px; }
  .card.is-selected { transform: translateY(-13px); }
  .actions .btn { min-width: 78px; }
  .lobby-stats { gap: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .vc-balance { font-size: 32px; }
  .vault-ring { width: 340px; height: 340px; }
  .float-card { right: -6px; top: 50%; width: 64px; height: 90px; padding: 6px 8px; margin-top: -45px; }
  .float-card span { font-size: 15px; }
  .float-card em { font-size: 26px; }
  .float-card i { font-size: 5px; }
  .table-head { flex-direction: column; align-items: flex-start; }
  .table-pills { width: 100%; }
}

@media (max-width: 640px) {
  .chain-chip { display: none; }
  .brand-text b { font-size: 12px; letter-spacing: 0.12em; }
  .brand-text i { font-size: 9px; letter-spacing: 0.26em; }
  .topbar-inner { gap: 10px; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-step p { min-height: 0; }
  .section-head h2 { font-size: 21px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .kpi-num { font-size: 25px; }
  .kpi-foot { flex-wrap: wrap; gap: 4px 8px; }
  .kpi-foot span { font-size: 9.5px; }
  .vault-table th:nth-child(2), .vault-table td:nth-child(2),
  .vault-table th:nth-child(4), .vault-table td:nth-child(4),
  .vault-table th:nth-child(5), .vault-table td:nth-child(5) { display: none; }
  .vault-table td { padding: 12px 8px; font-size: 11.5px; }
  .vault-table .token-cell b { font-size: 11.5px; }
  .float-card { display: none; }
  .table-status { font-size: 10px; }
  .board { min-height: 560px; }
  .vc-chart { height: 54px; }
  .room-stake b { font-size: 34px; }
  .lobby-stats { gap: 16px; }
  .lobby-stats b { font-size: 18px; }
}
