﻿/* 金局 3D 赌桌 · UI v2（玻璃质感 / 金色描边 / 移动优先） */
:root {
  --bg: #05070b;
  --bg-2: #0a0f16;
  --sheet: rgba(17, 24, 34, .82);
  --sheet-2: rgba(11, 16, 24, .9);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(233, 196, 106, .32);
  --text: #eef3fa;
  --muted: #8b9cb4;
  --dim: #5d6c81;
  --gold: #e9c46a;
  --gold-2: #f4d78a;
  --gold-3: #a9803a;
  --jade: #2ec4a6;
  --red: #e4572e;
  --win: #43e0a0;
  --lose: #ff7a6b;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, .6);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(233, 196, 106, .16) 0%, rgba(233, 196, 106, 0) 55%),
    radial-gradient(90% 50% at 100% 8%, rgba(46, 196, 166, .12) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #070b11 0%, #05070b 55%, #030507 100%);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  letter-spacing: .01em;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 700; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.hall {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

/* ---------- 顶栏 ---------- */
.hall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(6, 9, 14, .92), rgba(6, 9, 14, .55));
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 16px; font-weight: 800; color: #1c1403;
  background: linear-gradient(150deg, #ffe9b0, var(--gold) 55%, var(--gold-3));
  box-shadow: 0 6px 18px rgba(233, 196, 106, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.who-meta { display: grid; gap: 2px; min-width: 0; }
.who-meta b { font-size: 14px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-meta small { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--dim); letter-spacing: .06em; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgba(46, 196, 166, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(46, 196, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 196, 166, 0); } }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted); font-size: 15px;
  transition: transform .12s, border-color .2s;
}
.icon-btn:active { transform: scale(.94); }

.wallet {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 8px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(233, 196, 106, .16), rgba(233, 196, 106, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .35);
}
.wallet > span { font-size: 10px; color: var(--gold); letter-spacing: .14em; }
.wallet b { font-size: 17px; font-variant-numeric: tabular-nums; color: #fff3d2; }
.wallet-plus {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 16px; font-weight: 700; line-height: 1;
  color: #1c1403;
  background: linear-gradient(150deg, var(--gold-2), var(--gold-3));
}
.wallet-plus:active { transform: scale(.9); }

/* ---------- 主区 ---------- */
.hall-main {
  display: grid;
  grid-template-rows: minmax(210px, 44dvh) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.stage {
  position: relative;
  margin: 10px 12px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 50% 88%, rgba(24, 92, 68, .42), transparent 62%),
    radial-gradient(70% 60% at 50% 6%, rgba(233, 196, 106, .10), transparent 70%),
    linear-gradient(180deg, #0c141b, #05080d 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-1);
  min-height: 0;
}
.stage::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 84px;
  background: linear-gradient(to top, rgba(4, 6, 10, .92), rgba(4, 6, 10, 0));
  pointer-events: none;
  z-index: 2;
}
.scene-host { position: absolute; inset: 0; }
.scene3d-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }

.scene-fallback {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; gap: 6px; text-align: center;
  padding: 20px; color: var(--muted);
  background: radial-gradient(60% 60% at 50% 40%, #0d151d, #05080c);
}
.scene-fallback b { color: var(--text); }

.stage-top {
  position: absolute; inset: 10px 12px auto 12px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 4; pointer-events: none;
}
.stage-tag {
  padding: 6px 11px; border-radius: 999px;
  font-size: 10px; letter-spacing: .16em; font-weight: 600;
  color: var(--gold-2);
  background: rgba(8, 12, 18, .62);
  border: 1px solid rgba(233, 196, 106, .26);
  backdrop-filter: blur(8px);
}
.stage-live {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  font-size: 9.5px; letter-spacing: .18em; font-weight: 700; color: #ffd9d2;
  background: rgba(228, 87, 46, .16);
  border: 1px solid rgba(228, 87, 46, .35);
  backdrop-filter: blur(8px);
}
.stage-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }

.stage-history {
  position: absolute; inset: auto 10px 8px 10px;
  display: flex; gap: 6px; overflow: hidden;
  z-index: 4;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hist {
  flex: none;
  min-width: 26px; height: 24px; padding: 0 7px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 11px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, .7);
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.hist.red { color: #ffd2cd; border-color: rgba(228, 87, 46, .45); background: rgba(228, 87, 46, .18); }
.hist.black { color: #dfe6ef; }
.hist.green { color: #b9ffe8; border-color: rgba(46, 196, 166, .45); background: rgba(46, 196, 166, .16); }
.hist.gold { color: #ffe9b5; border-color: rgba(233, 196, 106, .4); background: rgba(233, 196, 106, .14); }

.result-card {
  position: absolute; left: 50%; top: 24%; z-index: 6;
  transform: translate(-50%, -50%);
  min-width: 150px; padding: 11px 18px 13px;
  display: grid; gap: 3px; justify-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 24, 34, .94), rgba(9, 12, 18, .96));
  border: 1px solid rgba(233, 196, 106, .35);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: cardIn .42s cubic-bezier(.2, 1.3, .4, 1);
  backdrop-filter: blur(12px);
}
.result-card.win { border-color: rgba(67, 224, 160, .5); }
.result-card.lose { border-color: rgba(255, 122, 107, .42); }
.result-kicker { font-size: 9.5px; letter-spacing: .2em; color: var(--dim); }
.result-card b { font-size: 24px; line-height: 1.1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.result-card.win b { color: var(--win); }
.result-card.lose b { color: var(--lose); }
.result-meta { font-size: 12px; color: var(--muted); }
@keyframes cardIn { from { opacity: 0; transform: translate(-50%, -42%) scale(.9); } }

/* ---------- 投注面板 ---------- */
.panel {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 12px calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel::-webkit-scrollbar { width: 0; }

.section {
  padding: 12px 14px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 34, .78), rgba(10, 14, 20, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.section-head h3 {
  margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
.section-head span { font-size: 11px; color: var(--muted); }
.section-head b { color: var(--gold); font-variant-numeric: tabular-nums; }

/* 筹码 */
.chip-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.chip-rail::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-size: 13px; font-weight: 800; color: #ffe9b5;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .25) 0 34%, transparent 35%),
    conic-gradient(from 0deg, #7a1f1f 0 22deg, #b32424 22deg 45deg, #7a1f1f 45deg 67deg, #b32424 67deg 90deg, #7a1f1f 90deg 112deg, #b32424 112deg 135deg, #7a1f1f 135deg 157deg, #b32424 157deg 180deg, #7a1f1f 180deg 202deg, #b32424 202deg 225deg, #7a1f1f 225deg 247deg, #b32424 247deg 270deg, #7a1f1f 270deg 292deg, #b32424 292deg 315deg, #7a1f1f 315deg 337deg, #b32424 337deg 360deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(0, 0, 0, .18), inset 0 2px 4px rgba(255, 255, 255, .22);
  transition: transform .14s ease, box-shadow .18s;
}
.chip::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18) 70%);
  border: 1px solid rgba(255, 255, 255, .14);
}
.chip span { position: relative; z-index: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.chip.gold {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .22) 0 34%, transparent 35%),
    conic-gradient(from 0deg, #8a6320 0 22deg, #e9c46a 22deg 45deg, #8a6320 45deg 67deg, #e9c46a 67deg 90deg, #8a6320 90deg 112deg, #e9c46a 112deg 135deg, #8a6320 135deg 157deg, #e9c46a 157deg 180deg, #8a6320 180deg 202deg, #e9c46a 202deg 225deg, #8a6320 225deg 247deg, #e9c46a 247deg 270deg, #8a6320 270deg 292deg, #e9c46a 292deg 315deg, #8a6320 315deg 337deg, #e9c46a 337deg 360deg);
  color: #241802;
}
.chip.active {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(233, 196, 106, .38), inset 0 0 0 4px rgba(0, 0, 0, .18), inset 0 2px 4px rgba(255, 255, 255, .3);
}
.chip.active::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: .9;
}

/* 下注格 */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }

.bet-tile {
  position: relative;
  min-height: 58px; padding: 9px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 40, 54, .85), rgba(14, 20, 28, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .12s, border-color .18s, box-shadow .18s;
}
.bet-tile b { font-size: 14px; }
.bet-tile small { font-size: 10px; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bet-tile:active { transform: scale(.96); border-color: var(--line-strong); box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .3); }
.bet-tile.on { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(233, 196, 106, .18), rgba(233, 196, 106, .05)); }
.bet-tile .pin {
  position: absolute; top: 5px; right: 5px;
  min-width: 18px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 5px; font-size: 9px; font-weight: 800;
  color: #1c1403; background: linear-gradient(150deg, var(--gold-2), var(--gold-3));
}

/* 轮盘数字 */
.num-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.num {
  height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a2330, #0d131b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .1s;
}
.num:active { transform: scale(.94); }
.num.red { background: linear-gradient(180deg, #8e2a2a, #4d1414); border-color: rgba(228, 87, 46, .35); color: #ffe0dc; }
.num.black { background: linear-gradient(180deg, #232b36, #0c1016); }
.num.zero { grid-column: 1 / -1; height: 42px; background: linear-gradient(180deg, #127a55, #073a29); border-color: rgba(46, 196, 166, .5); color: #d8fff1; }

/* 注单 */
.slip { display: grid; gap: 6px; }
.slip-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  font-size: 12.5px;
  animation: rowIn .22s ease;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
.slip-row span { color: var(--muted); }
.slip-row b { margin-left: auto; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.slip-row button {
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--lose); border: 1px solid rgba(255, 122, 107, .28);
  background: rgba(255, 122, 107, .08); font-size: 13px;
}
.slip-empty { padding: 14px 0; text-align: center; font-size: 12px; color: var(--dim); }

/* 底部动作条 */
.action-bar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px calc(12px + var(--safe-bottom));
  margin: 0 -12px calc(-20px - var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, .92), rgba(6, 9, 14, .98));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.action-total { display: grid; gap: 2px; min-width: 0; }
.action-total span { font-size: 10px; letter-spacing: .16em; color: var(--dim); }
.action-total b { font-size: 21px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.cta {
  flex: 1; height: 52px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 800; letter-spacing: .04em;
  color: #201602;
  background: linear-gradient(160deg, #ffefc0 0%, var(--gold) 45%, #c1963d 100%);
  box-shadow: 0 14px 30px rgba(233, 196, 106, .26), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(0, 0, 0, .18);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.cta:active:not(:disabled) { transform: translateY(1px) scale(.995); box-shadow: 0 8px 18px rgba(233, 196, 106, .22), inset 0 1px 0 rgba(255, 255, 255, .8); }
.cta:disabled { filter: grayscale(.5) brightness(.8); opacity: .6; box-shadow: none; }
.cta-ghost {
  height: 52px; padding: 0 16px; border-radius: 15px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; background: rgba(255, 255, 255, .03);
}
.cta-ghost:active { transform: scale(.97); }

.payout-row { display: flex; gap: 6px; flex-wrap: wrap; }
.payout-pill {
  padding: 6px 10px; border-radius: 9px;
  font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.payout-pill b { color: var(--gold); }

/* ---------- 底部导航 ---------- */
.dock {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 12px calc(10px + var(--safe-bottom));
  padding: 6px;
  border-radius: 20px;
  background: rgba(12, 17, 24, .86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px);
  z-index: 20;
}
.dock button {
  height: 50px; border-radius: 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--dim); font-size: 11px; font-weight: 600;
  transition: color .18s, background .18s, transform .12s;
}
.dock button:active { transform: scale(.97); }
.dock-ico {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.dock button[aria-pressed="true"] {
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(233, 196, 106, .16), rgba(233, 196, 106, .04));
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .28);
}
.dock button[aria-pressed="true"] .dock-ico {
  color: #241802; background: linear-gradient(150deg, var(--gold-2), var(--gold-3)); border-color: transparent;
}

/* ---------- 提示 / 弹窗 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(172px + var(--safe-bottom));
  transform: translate(-50%, 14px);
  max-width: 86vw; padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--text);
  background: rgba(14, 20, 28, .96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(67, 224, 160, .45); color: #b8ffe0; }
.toast.err { border-color: rgba(255, 122, 107, .45); color: #ffc9c2; }

.rules-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0; border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #101822, #080c12);
  color: var(--text);
  box-shadow: var(--shadow-2);
}
.rules-dialog::backdrop { background: rgba(2, 4, 8, .74); backdrop-filter: blur(6px); }
.rules-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.rules-head h2 { margin: 0; font-size: 16px; letter-spacing: .02em; }
.rules-body { padding: 0 18px 10px; font-size: 12.5px; line-height: 1.9; color: var(--muted); max-height: 56dvh; overflow: auto; }
.rules-body b { color: var(--text); }
.rules-body table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rules-body th, .rules-body td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.rules-body th { color: var(--dim); font-weight: 600; }
.rules-note { margin: 0; padding: 10px 18px 18px; font-size: 11px; color: var(--dim); line-height: 1.7; }

/* ---------- 平板 / 横屏 ---------- */
@media (min-width: 820px) {
  .hall-main {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    padding-right: 12px;
  }
  .stage { margin: 12px 0 12px 12px; height: auto; }
  .stage::after { height: 120px; }
  .panel { padding-bottom: calc(20px + var(--safe-bottom)); }
  .action-bar { margin: 0; border-radius: 18px; }
  .dock { grid-template-columns: repeat(3, minmax(0, 150px)); justify-content: center; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .hall-top { padding-top: calc(6px + var(--safe-top)); padding-bottom: 6px; }
  .who-meta small { display: none; }
  .hall-main { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; }
  .stage { margin: 8px 0 8px 8px; }
  .dock { margin-bottom: calc(6px + var(--safe-bottom)); }
  .dock button { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 轮盘数字上的注额角标 */
.num { position: relative; }
.num .pin {
  position: absolute; top: 2px; right: 3px;
  min-width: 15px; height: 13px; padding: 0 3px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-size: 8px; font-weight: 800; font-style: normal;
  color: #1c1403; background: linear-gradient(150deg, var(--gold-2), var(--gold-3));
}

/* 动作条独立一行，避免遮挡可滚动内容 */
.hall { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.action-slot { padding: 0 12px calc(8px + var(--safe-bottom)); }
.action-slot:empty { display: none; }
.action-bar {
  position: static;
  margin: 0;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 34, .92), rgba(9, 13, 19, .96));
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.panel { padding-bottom: 14px; }

