﻿/* 大厅 v2：金厅主视觉 + 玻璃卡片 + 会员中心（最后加载，覆盖旧样式） */

.player-mode {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(233, 196, 106, .16) 0%, rgba(233, 196, 106, 0) 55%),
    radial-gradient(90% 50% at 8% 8%, rgba(46, 196, 166, .12) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #070c11 0%, #05080c 60%, #030507 100%);
  padding-bottom: 96px;
  min-height: 100dvh;
}
.player-mode .topbar {
  background: rgba(6, 10, 14, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  height: 64px;
  min-height: 64px;
}
.player-mode main { max-width: 1180px; padding: 14px 16px 0; }

/* ---------- 主视觉：金厅 ---------- */
#player-panel .hero-hall.scene-band {
  position: relative;
  height: clamp(300px, 54vw, 420px) !important;
  margin: 0 0 16px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, .26);
  background:
    radial-gradient(80% 70% at 50% 88%, rgba(24, 92, 68, .5), transparent 62%),
    radial-gradient(70% 60% at 50% 4%, rgba(233, 196, 106, .12), transparent 70%),
    linear-gradient(180deg, #0b1219, #04070a);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
}
#player-panel .hero-hall .scene3d-canvas, #player-panel .hero-hall canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(4, 7, 10, .92) 0%, rgba(4, 7, 10, .55) 38%, rgba(4, 7, 10, 0) 66%),
    linear-gradient(0deg, rgba(3, 5, 8, .85) 0%, rgba(3, 5, 8, 0) 45%);
}
#player-panel .hero-hall .scene-caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; top: auto;
  z-index: 2; max-width: 460px;
  padding: 0; border: 0; background: none;
}
#player-panel .hero-hall .spotlight-kicker {
  display: inline-block;
  font-size: 9.5px; letter-spacing: .34em; font-weight: 700;
  color: var(--gold, #e9c46a);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, .3);
  background: rgba(8, 12, 18, .5);
  backdrop-filter: blur(8px);
}
#player-panel .hero-hall h1 {
  margin: 12px 0 6px;
  font-size: clamp(26px, 5.2vw, 42px);
  white-space: nowrap;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff6dc;
  text-shadow: 0 10px 34px rgba(0, 0, 0, .7);
}
#player-panel .hero-hall h1::after {
  content: '';
  display: block; width: 56px; height: 3px; margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffe9b0, rgba(233, 196, 106, 0));
}
#player-panel .hero-hall p { margin: 0 0 16px; font-size: 12.5px; color: #b9c8bd; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .button { min-height: 44px; padding: 0 18px; border-radius: 13px; font-size: 13px; font-weight: 700; }
.hero-actions .button-primary {
  background: linear-gradient(160deg, #ffefc0, #e9c46a 48%, #c1963d);
  color: #201602; border: 0;
  box-shadow: 0 14px 30px rgba(233, 196, 106, .26), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.hero-ghost {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #eaf1ea;
  backdrop-filter: blur(8px);
}
.hero-stats {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: flex; gap: 18px;
}
.hero-stats div { text-align: right; }
.hero-stats b {
  display: block; font-size: 20px; line-height: 1;
  color: var(--gold, #e9c46a);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .6);
}
.hero-stats span { font-size: 9.5px; letter-spacing: .12em; color: #93a79b; }
@media (max-width: 640px) {
  #player-panel .hero-hall.scene-band { height: 320px !important; }
  #player-panel .hero-hall .scene-caption { left: 16px; right: 16px; bottom: 14px; max-width: none; }
  #player-panel .hero-hall h1 { font-size: 28px; }
  .hero-stats { display: none; }
}

/* ---------- 账户条 ---------- */
.card-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  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);
}
.card-row .player-avatar {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: #1c1403;
  background: linear-gradient(150deg, #ffe9b0, #e9c46a 55%, #a9803a);
  box-shadow: 0 8px 20px rgba(233, 196, 106, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.card-row .account-greeting small { font-size: 9.5px; letter-spacing: .16em; color: #6d7d8c; }
.card-row .account-greeting b { font-size: 15px; color: #f2f7f3; }
.card-row .chip-shortcut {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px 0 14px; border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, .32);
  background: linear-gradient(145deg, rgba(233, 196, 106, .16), rgba(233, 196, 106, .04));
  color: #ffe9b5;
}
.card-row .chip-shortcut strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.card-row .chip-shortcut svg { width: 15px; height: 15px; color: #e9c46a; }
.card-row .chip-shortcut svg:last-child { opacity: .6; }

/* ---------- 贵宾厅横幅 ---------- */
.vip-banner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 22px; padding: 18px 18px;
  border-radius: 20px; overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(233, 196, 106, .3);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(233, 196, 106, .22), transparent 55%),
    linear-gradient(120deg, #1a2016, #0d1218 60%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .18s, border-color .2s;
}
.vip-banner:active { transform: scale(.99); }
.vip-banner-glow {
  position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, .30), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}
.vip-banner-copy { display: grid; gap: 3px; position: relative; }
.vip-kicker { font-size: 9.5px; letter-spacing: .26em; color: #e9c46a; font-weight: 700; }
.vip-banner-copy b { font-size: 18px; color: #fdf6e4; letter-spacing: -.01em; }
.vip-banner-copy small { font-size: 11.5px; color: #94a89c; }
.vip-banner-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #201602;
  background: linear-gradient(150deg, #ffefc0, #e9c46a 60%, #c1963d);
  box-shadow: 0 10px 22px rgba(233, 196, 106, .28);
  white-space: nowrap;
}
.vip-banner-cta svg { width: 14px; height: 14px; }

/* ---------- 区块标题 ---------- */
.player-mode .section-heading { margin: 26px 0 14px; align-items: flex-end; }
.heading-copy { display: grid; gap: 4px; }
.heading-copy .eyebrow {
  font-size: 9px; letter-spacing: .3em; color: #6f8090; font-weight: 700;
  margin: 0;
}
.heading-copy h2 {
  margin: 0;
  font-size: 21px; letter-spacing: -.01em; color: #f2f7f3;
}
.player-mode .live-pill {
  font-size: 10px; letter-spacing: .06em;
  color: #9fe3c9; background: rgba(46, 196, 166, .12);
  border: 1px solid rgba(46, 196, 166, .28);
  padding: 6px 10px; border-radius: 999px;
}

/* ---------- 筛选 ---------- */
.player-mode .game-filters { display: flex; gap: 8px; margin-bottom: 14px; }
.player-mode .game-filters button {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
  color: #8b9cb4; font-size: 12px; font-weight: 600;
}
.player-mode .game-filters button[aria-pressed="true"] {
  color: #201602; border-color: transparent;
  background: linear-gradient(150deg, #ffefc0, #e9c46a 60%, #c1963d);
  box-shadow: 0 8px 18px rgba(233, 196, 106, .22);
}

/* ---------- 牌局卡 ---------- */
#player-panel .game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#player-panel .game-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(20, 27, 36, .9), rgba(9, 13, 19, .95));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .18s ease, border-color .2s, box-shadow .2s;
}
#player-panel .game-card:active { transform: translateY(1px) scale(.995); }
#player-panel .game-card::after { display: none; }
#player-panel .game-card[data-game="sicbo"]::after,
#player-panel .game-card[data-game="roulette"]::after {
  content: '3D'; position: absolute; top: 10px; right: 10px; left: auto; bottom: auto;
  display: block; width: max-content; height: max-content;
  padding: 3px 8px; border-radius: 999px;
  font-size: 9px; letter-spacing: .14em; font-weight: 800;
  color: #201602; background: linear-gradient(150deg, #ffefc0, #e9c46a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  z-index: 3;
}
#player-panel .game-art {
  position: relative;
  height: 132px; min-height: 0;
  display: grid; place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: radial-gradient(80% 90% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%), #0b1218;
}
#player-panel .game-art.art-3d { background: linear-gradient(155deg, #14412f, #071b14); }
#player-panel .game-art.art-blue { background: linear-gradient(155deg, #16364a, #08151d); }
#player-panel .game-art.art-cyan { background: linear-gradient(155deg, #123f45, #06181b); }
#player-panel .game-art.art-amber { background: linear-gradient(155deg, #3a2a10, #120d05); }
#player-panel .game-art .game-icon {
  font-size: 46px; font-weight: 800; color: rgba(233, 196, 106, .92);
  text-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}
#player-panel .game-copy { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; }
#player-panel .game-copy .tag {
  font-size: 9px; letter-spacing: .2em; color: #7f8f9e; text-transform: uppercase;
}
#player-panel .game-copy h3 { margin: 0; font-size: 19px; color: #f4f8f4; letter-spacing: -.01em; }
#player-panel .game-copy p { margin: 0; font-size: 11.5px; color: #8b9cb4; }
#player-panel .game-copy .button,
#player-panel .game-copy a.button {
  margin-top: 8px; min-height: 40px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 12.5px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: #f0f4f8;
}
#player-panel .game-card.featured .game-copy a.button {
  color: #201602; border-color: transparent;
  background: linear-gradient(150deg, #ffefc0, #e9c46a 60%, #c1963d);
  box-shadow: 0 10px 22px rgba(233, 196, 106, .22);
}

/* ---------- 会员中心 ---------- */
.lounge-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lounge-shortcuts button {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(18, 24, 34, .78), rgba(10, 14, 20, .82));
  color: #dfe8e2; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .16s, border-color .2s;
}
.lounge-shortcuts button:active { transform: scale(.985); border-color: rgba(233, 196, 106, .3); }
.lounge-shortcuts svg { width: 20px; height: 20px; color: #e9c46a; flex: none; }
.lounge-shortcuts span { display: grid; gap: 2px; min-width: 0; }
.lounge-shortcuts b { font-size: 13.5px; color: #f0f5f0; }
.lounge-shortcuts small { font-size: 10.5px; color: #7f8f9e; }
.lounge-shortcuts svg:last-child { margin-left: auto; width: 15px; height: 15px; color: #57646f; }

.lounge-footnote {
  margin: 22px 0 8px; text-align: center;
  font-size: 10.5px; color: #5a6774; letter-spacing: .02em;
}

/* ---------- 底部导航（沿用全局，做玻璃化） ---------- */
.player-mode #player-navigation,
#player-navigation {
  background: rgba(8, 12, 17, .9);
  border-top: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px);
}
#player-navigation button { color: #75828f; }
#player-navigation button[aria-current="page"] { color: #e9c46a; }
#player-navigation svg { color: inherit; }

/* ---------- 桌面 ---------- */
@media (min-width: 860px) {
  .player-mode main { padding: 20px 22px 0; }
  #player-panel .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  #player-panel .game-art { height: 168px; }
  .lounge-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #player-panel .hero-hall.scene-band { height: 430px !important; }
  #player-panel .hero-hall .scene-caption { left: 34px; bottom: 32px; max-width: 520px; }
  .hero-stats { right: 32px; bottom: 30px; gap: 28px; }
  .hero-stats b { font-size: 26px; }
}

@media (max-width: 400px) {
  #player-panel .game-grid { gap: 10px; }
  #player-panel .game-copy h3 { font-size: 17px; }
  .vip-banner-copy b { font-size: 16px; }
}

/* 经济监控（后台） */
.econ-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.econ-hero > div {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.econ-hero small { display: block; font-size: 10px; letter-spacing: .14em; color: #7f8f9e; margin-bottom: 4px; }
.econ-hero strong { font-size: 20px; color: #f2f7f3; font-variant-numeric: tabular-nums; }
.econ-hero strong.econ-ok { color: #7ef0b8; }
.econ-hero strong.econ-warn { color: #ffd27a; }
.econ-hero strong.econ-alert { color: #ff9a8a; }
.econ-hero strong.econ-sample { color: #9fb0c2; }
.econ-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.econ-status.ok { color: #7ef0b8; background: rgba(67, 224, 160, .14); }
.econ-status.warn { color: #ffd27a; background: rgba(233, 196, 106, .16); }
.econ-status.alert { color: #ff9a8a; background: rgba(255, 122, 107, .16); }
.econ-status.sample { color: #9fb0c2; background: rgba(255, 255, 255, .08); }
.econ-note { margin: 0 0 10px; font-size: 11.5px; color: #9fb0c2; }
.econ-target { color: #6f8090; font-size: 11px; }

/* 经济监控 v2：窗口切换、14 天趋势、在途负债 */
.econ-windows {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.econ-windows button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: #9fb0c2;
  font-size: 12px;
}
.econ-windows button.on {
  color: #201602;
  border-color: transparent;
  background: linear-gradient(150deg, #ffefc0, #e9c46a 60%, #c1963d);
}
.econ-hint { font-size: 11px; color: #6f8090; }
.econ-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .econ-split { grid-template-columns: 1fr; } }
.econ-panel {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.econ-panel h3 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; color: #7f8f9e; text-transform: uppercase; }
.econ-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}
.econ-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.econ-bar .econ-fill { display: block; width: 100%; max-width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; flex: none; }
.econ-bar b { font-size: 9px; font-weight: 500; color: #6f8090; }
.econ-legend { margin: 10px 0 0; font-size: 10px; color: #6f8090; display: flex; align-items: center; gap: 6px; }
.econ-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.chip-gold { background: #e9c46a; }
.chip-jade { background: #2ec4a6; }
.chip-dim { background: #2a3442; }
.econ-liability { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.econ-liability li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9fb0c2;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
}
.econ-liability li:last-child { border-bottom: 0; padding-bottom: 0; }
.econ-liability b { color: #f2f7f3; font-variant-numeric: tabular-nums; }

/* 经济监控 v3：告警条、可点柱子、导出 */
.econ-alerts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.econ-alerts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.econ-alerts li.alert { border-color: rgba(255, 122, 107, .35); background: rgba(255, 122, 107, .08); }
.econ-alerts li.warn { border-color: rgba(233, 196, 106, .35); background: rgba(233, 196, 106, .08); }
.econ-alerts div { flex: 1; display: grid; gap: 2px; }
.econ-alerts b { font-size: 12px; color: #f2f7f3; font-weight: 600; }
.econ-alerts small { font-size: 10.5px; color: #8b9cb4; }
.econ-alerts button {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #dfe8f2;
  font-size: 11px;
}
.econ-ok-note { color: #7ef0b8; }
.econ-export {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, .35);
  background: rgba(233, 196, 106, .12);
  color: #f0d68f;
  font-size: 12px;
}
.econ-bar {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.econ-bar.on { outline: 1px solid rgba(233, 196, 106, .6); outline-offset: 2px; border-radius: 6px; }
.econ-drill { margin: 0 0 14px; }
.econ-drill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.econ-drill-head h3 { margin: 0; }
.econ-drill-head span { font-size: 11px; color: #9fb0c2; }
.econ-drill-head button {
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #dfe8f2;
  font-size: 11px;
}
.nav-count.has-alert, .admin-sidebar button.has-alert { color: #ff9a8a; }

/* 对账 / 告警推送 */
.econ-channel-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.econ-channel-form select,
.econ-channel-form input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #f2f7f3;
  font-size: 12.5px;
}
.econ-channel-form input { flex: 1; min-width: 200px; }
.mono-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #b9c6d4; word-break: break-all; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .button { padding: 4px 10px; font-size: 11px; }
#reconciliation-body h3, #alerts-body h3 { margin: 18px 0 8px; font-size: 11px; letter-spacing: .16em; color: #7f8f9e; text-transform: uppercase; }
