/* ============ 币严 H5 暗色主题 ============ */
:root {
  --bg: #141e2c;
  --bg-deep: #0f1725;
  --panel: #1b2637;
  --panel-2: #212e42;
  --line: #26344a;
  --text: #cfd6e4;
  --text-2: #8d99ad;
  --text-3: #5c6b80;
  --accent: #f7931a;
  --up: #16b981;
  --down: #f6465d;
  --header-h: 46px;
  --tabbar-h: 50px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, button { font-family: inherit; outline: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; }

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ---- 顶部栏 ---- */
.app-header {
  height: var(--header-h);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  flex: none;
  position: relative;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 12px; }
.header-logo { font-size: 18px; font-weight: 700; color: var(--text); display: flex; align-items: center; }
.logo-dot { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #ffb74d); margin-right: 7px; display: inline-block; }
.header-logo .logo-img { height: 24px; display: block; border-radius: 4px; }
.header-right { display: flex; align-items: center; }
.header-right a { color: var(--text-2); margin-left: 18px; }
.header-right svg { width: 22px; height: 22px; display: block; }
/* ---- 语言切换 ---- */
.lang-wrap { position: relative; margin-left: 18px; }
.lang-wrap a { margin-left: 0; }
.header-lang { display: flex; align-items: center; color: var(--text-2); font-size: 13px; cursor: pointer; }
.header-lang svg { width: 16px; height: 16px; margin-right: 3px; }
.header-lang #langLabel { max-width: 60px; white-space: nowrap; overflow: hidden; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: none; z-index: 30; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.lang-wrap.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 14px; font-size: 13px; color: var(--text); border-radius: 6px; white-space: nowrap; }
.lang-menu a:hover { background: var(--panel); }
.lang-menu a.active { color: var(--accent); }

/* ---- 内容区 ---- */
.app-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: var(--tabbar-h); }

/* ---- 底部标签栏 ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  display: flex; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); }
.tab-item.active { color: var(--accent); }
.tab-icon { width: 22px; height: 22px; margin-bottom: 2px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.tab-text { font-size: 11px; }
.ic-home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 8-1.5 1.5L12 6 4.5 12.5 3 11zM5 11v9h5v-5h4v5h5v-9' fill='currentColor'/%3E%3C/svg%3E"); }
.ic-market { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h4v10zm6 0V4h4v16zm6 0V8h4v12z' fill='currentColor'/%3E%3C/svg%3E"); }
.ic-trade { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h13l-3-3 3-3H7a3 3 0 0 0-3 3v13l-3 3 3 3v1a3 3 0 0 0 3 3h10l-3-3 3-3H7z' fill='currentColor'/%3E%3C/svg%3E"); }
.ic-assets { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm2 4v4h4v-4H6z' fill='currentColor'/%3E%3C/svg%3E"); }
.ic-mine { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2a9 9 0 0 0-8 4.5A7 7 0 0 0 12 22a7 7 0 0 0 8-3.5A9 9 0 0 0 12 14z' fill='currentColor'/%3E%3C/svg%3E"); }
.tab-item.active .ic-home,
.tab-item.active .ic-market,
.tab-item.active .ic-trade,
.tab-item.active .ic-assets,
.tab-item.active .ic-mine { filter: invert(45%) sepia(90%) saturate(3000%) hue-rotate(5deg); }

/* ---- 通用组件 ---- */
.card { background: var(--panel); border-radius: 8px; margin: 10px 12px; overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0; font-size: 14px; font-weight: 600; }
.card-title .more { font-size: 12px; color: var(--text-2); font-weight: 400; }
.section-title { padding: 14px 14px 6px; font-size: 15px; font-weight: 700; }

.row { display: flex; align-items: center; }
.spread { justify-content: space-between; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.dim { color: var(--text-2); }
.dimmer { color: var(--text-3); }

.btn { display: block; width: 100%; border: none; border-radius: 6px; padding: 11px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-buy { background: var(--up); color: #fff; }
.btn-sell { background: var(--down); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--panel-2); color: var(--text); }
.btn:disabled { opacity: .5; }

.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.send-btn { flex: 0 0 auto; border: none; border-radius: 6px; padding: 0 14px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; }
.send-btn:disabled { background: #999; }

.input { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; color: var(--text); font-size: 14px; }

/* ---- 首页 ---- */
.banner { position: relative; height: 130px; margin: 10px 12px; border-radius: 8px; overflow: hidden; }
.banner-track { display: flex; height: 100%; transition: transform .4s ease; }
.banner-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #23324a, #14233a 60%, #0e1a2c); }
.banner-slide.banner-img { background: #0e1a2c; }
.banner-slide.banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-slide .banner-text { text-align: center; }
.banner-slide .banner-title { font-size: 19px; font-weight: 700; color: #fff; }
.banner-slide .banner-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 0 3px; transition: width .3s, background .3s; }
.banner-dots i.on { width: 16px; background: var(--accent); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 12px 8px 14px; }
.quick-item { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.quick-item .qi-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 5px; }
.quick-item .qi-text { font-size: 12px; color: var(--text-2); }

.stat-row { display: flex; padding: 12px 14px; }
.stat-cell { flex: 1; text-align: center; }
.stat-cell .stat-num { font-size: 17px; font-weight: 700; }
.stat-cell .stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* 币种行 */
.coin-row { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.coin-row:last-child { border-bottom: none; }
.coin-main { flex: 1; min-width: 0; }
.coin-symbol { font-weight: 600; font-size: 14px; }
.coin-full { font-size: 11px; color: var(--text-3); margin-left: 6px; }
.coin-price { text-align: right; }
.coin-price .p { font-weight: 600; font-size: 14px; }
.coin-price .vol { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.coin-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.coin-side .p { font-weight: 600; font-size: 15px; color: #cfd6e4; line-height: 1.4; }
.coin-side .chg-badge { background: none; min-width: 0; padding: 0; margin-top: 2px; }
.coin-side .chg-badge.up { color: var(--up); }
.coin-side .chg-badge.down { color: var(--down); }
.coin-chg { width: 76px; text-align: center; }
.chg-badge { display: inline-block; min-width: 60px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.chg-badge.up { background: rgba(22,185,129,.15); }
.chg-badge.down { background: rgba(246,70,93,.15); }
.spark { width: 48px; height: 24px; }

/* 公告 */
.notice-list { padding: 4px 0; }
.notice-item { display: flex; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.notice-item:last-child { border-bottom: none; }
.notice-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; flex: none; }
.notice-item .nt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-item .nd { font-size: 11px; color: var(--text-3); margin-left: 8px; flex: none; }

/* ---- 行情页 ---- */
.market-tabs { position: sticky; top: var(--header-h); background: var(--bg-deep); z-index: 9; display: flex; padding: 8px 12px 0; }
.market-tabs .mt { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; }
.market-tabs .mt.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.search-box { padding: 8px 12px; background: var(--bg-deep); }
.coin-row .coin-chg { width: 72px; }

/* ---- 交易页 ---- */
.trade-head { padding: 10px 12px 0; }
.pair-bar { display: flex; align-items: center; }
.pair-name { font-size: 17px; font-weight: 700; }
.pair-tag { font-size: 11px; color: var(--text-3); margin-left: 8px; }
.price-panel { padding: 8px 12px; }
.price-big { font-size: 26px; font-weight: 700; }
.price-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.price-sub .sp { margin-right: 14px; }
.chart-panel { margin: 8px 12px; background: var(--panel); border-radius: 8px; padding: 10px; }
.chart-time { display: flex; gap: 6px; margin-bottom: 8px; }
.chart-time span { font-size: 12px; padding: 3px 10px; border-radius: 4px; background: var(--panel-2); color: var(--text-2); }
.chart-time span.active { background: var(--accent); color: #fff; }
/* Lightweight Charts 容器（币币/合约页，支持捏合缩放与拖动） */
.chart-wrap { position: relative; }
.chart-canvas { height: 260px; }
.chart-status { position: absolute; left: 0; right: 0; top: 45%; text-align: center; color: var(--text-3); font-size: 12px; z-index: 5; pointer-events: none; }
.sub-tabs { display: flex; margin: 8px 12px 0; }
.sub-tabs span { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: var(--text-2); border-bottom: 2px solid var(--line); }
.sub-tabs span.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.sub-panel { padding: 0 12px 8px; }
.depth-col { flex: 1; font-size: 12px; }
.depth-row { display: flex; padding: 4px 2px; }
.depth-row .dc-price { flex: 1; }
.depth-row .dc-amt { flex: 1; text-align: center; color: var(--text-2); }
.depth-row .dc-total { flex: 1; text-align: right; color: var(--text-2); }
.trade-list-row { display: flex; padding: 5px 2px; font-size: 12px; }
.trade-list-row .tc-time { flex: 1; color: var(--text-3); }
.trade-list-row .tc-price { flex: 1; text-align: center; }
.trade-list-row .tc-amt { flex: 1; text-align: right; color: var(--text-2); }

.order-form { padding: 8px 12px 16px; }
.order-tabs { display: flex; background: var(--panel-2); border-radius: 6px; padding: 3px; margin-bottom: 12px; }
.order-tabs span { flex: 1; text-align: center; padding: 8px 0; border-radius: 4px; font-size: 14px; color: var(--text-2); }
.order-tabs span.active { background: var(--panel); color: var(--text); font-weight: 600; }
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; }
.form-row .input-row { display: flex; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
.form-row .input-row input { flex: 1; background: transparent; border: none; padding: 9px 10px; color: var(--text); font-size: 14px; }
.form-row .input-row .unit { padding-right: 10px; color: var(--text-3); font-size: 12px; }
.form-row .avail { font-size: 11px; color: var(--text-3); text-align: right; margin-top: 3px; }

/* ---- 资产/我的 ---- */
.asset-top { background: var(--panel); margin: 10px 12px; border-radius: 8px; padding: 16px; text-align: center; }
.asset-top .total-label { font-size: 12px; color: var(--text-2); }
.asset-top .total-num { font-size: 28px; font-weight: 700; margin-top: 4px; }
.asset-top .total-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.menu-list { padding: 0; }
.menu-item { display: flex; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-icon { width: 26px; text-align: center; margin-right: 12px; font-size: 17px; }
.menu-item .mi-text { flex: 1; }
.menu-item .mi-arrow { color: var(--text-3); }

.user-head { display: flex; align-items: center; padding: 18px 14px; }
.user-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-right: 12px; }
.user-name { font-size: 16px; font-weight: 600; }
.user-id { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* 登录表单 */
.login-panel { padding: 16px; }
.login-panel h3 { text-align: center; font-size: 17px; margin-bottom: 4px; }
.login-panel .tip { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.login-panel .input { margin-bottom: 12px; }
.login-panel .error { color: var(--down); font-size: 12px; text-align: center; margin-bottom: 10px; min-height: 16px; }

.toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 13px; z-index: 100; max-width: 80%; text-align: center; display: none; }
.loading { position: fixed; inset: 0; background: rgba(15,23,37,.6); z-index: 99; display: none; align-items: center; justify-content: center; }
.loading .ld { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 交易对选择浮层 */
.pair-picker { position: fixed; inset: 0; background: rgba(10,15,25,.72); z-index: 60; display: none; align-items: center; justify-content: center; }
.pair-picker .pp-box { width: 92%; max-width: 420px; max-height: 76vh; background: var(--panel); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pair-picker .pp-head { padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.pair-picker .pp-title { font-size: 15px; font-weight: 600; }
.pair-picker .pp-close { font-size: 18px; color: var(--text-3); padding: 0 4px; cursor: pointer; }
.pair-picker .pp-search { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pair-picker .pp-search .input { background: var(--panel-2); }
.pair-picker .pp-list { overflow-y: auto; flex: 1; padding: 4px 0; }
.pair-picker .pp-list .coin-row { cursor: pointer; }
.pair-picker .pp-empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 13px; }
.pair-name .pair-arrow { font-size: 10px; color: var(--text-3); margin-left: 2px; }

/* ---- 合约交易页 ---- */
.contract-acc { display: flex; justify-content: space-between; padding: 6px 12px 2px; font-size: 12px; color: var(--text-2); }
.contract-acc b { color: var(--text); }
.ct-tabs { display: flex; background: var(--panel-2); border-radius: 6px; padding: 3px; margin-bottom: 12px; }
.ct-tabs span { flex: 1; text-align: center; padding: 8px 0; border-radius: 4px; font-size: 14px; color: var(--text-2); }
.ct-tabs span.active { background: var(--panel); color: var(--text); font-weight: 600; }
.ct-lever { display: flex; gap: 8px; }
.ct-lever span { flex: 1; text-align: center; padding: 7px 0; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.ct-lever span.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.ct-tabs2 { display: flex; margin: 4px 12px 0; border-bottom: 1px solid var(--line); }
.ct-tabs2 span { flex: 1; text-align: center; padding: 9px 0; font-size: 13px; color: var(--text-2); border-bottom: 2px solid transparent; }
.ct-tabs2 span.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.ct-panel { padding: 2px 12px 12px; }
.ct-row { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; align-items: center; }
.ct-row:last-child { border-bottom: none; }
.ct-row .cc { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-close { border: none; border-radius: 4px; padding: 4px 8px; font-size: 12px; background: rgba(246,70,93,.15); color: var(--down); cursor: pointer; }
.ct-row.ct-clickable { cursor: pointer; }
.ct-row.ct-clickable:active { background: rgba(255,255,255,.04); }

/* ---- 合约持仓/委托/成交详情弹窗（居中卡片） ---- */
.ct-detail { position: fixed; inset: 0; background: rgba(6,11,20,.78); z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px 16px; }
.ct-detail .ctd-box { width: 100%; max-width: 340px; max-height: 86vh; background: linear-gradient(180deg,#202c40 0%,#1a2434 100%); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: ctdPop .18s ease-out; }
@keyframes ctdPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.ct-detail .ctd-head { padding: 14px 16px 0; display: flex; justify-content: space-between; align-items: center; }
.ct-detail .ctd-title { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: .5px; }
.ct-detail .ctd-close { font-size: 15px; color: var(--text-3); padding: 2px 6px; cursor: pointer; border-radius: 6px; }
.ct-detail .ctd-close:active { background: rgba(255,255,255,.08); }
.ct-detail .ctd-hero { padding: 8px 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.ct-detail .ctd-hero-sub { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.ct-detail .ctd-hero-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.ct-detail .ctd-hero-value { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ct-detail .ctd-hero-value.up { color: var(--up); }
.ct-detail .ctd-hero-value.down { color: var(--down); }
.ct-detail .ctd-body { overflow-y: auto; padding: 4px 16px 16px; }
.ct-detail .ctd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ct-detail .ctd-row:last-child { border-bottom: none; }
.ct-detail .ctd-label { color: var(--text-3); flex: 0 0 auto; }
.ct-detail .ctd-value { text-align: right; font-weight: 500; word-break: break-all; }

/* ---- 交易页类型切换栏（币币交易 / 合约交易） ---- */
.trade-type-tabs { display: flex; padding: 8px 12px 0; gap: 6px; }
.trade-type-tabs span { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; }
.trade-type-tabs span.tt-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ---- 期权页：黄金/原油 品种切换 + TradingView 图表 ---- */
.option-heads { display: flex; gap: 8px; padding: 10px 12px 0; }
.option-head-card { flex: 1 1 0; min-width: 0; background: var(--panel); border-radius: 8px; padding: 8px; border: 1px solid transparent; cursor: pointer; }
.option-head-card.active { border-color: var(--accent); }
.option-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.option-name { font-size: 13px; font-weight: 600; }
.option-price { font-size: 15px; font-weight: 700; margin-left: auto; }
.option-chg { font-size: 12px; }
.option-sub { display: flex; gap: 8px; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.tv-box { margin-top: 8px; border-radius: 6px; overflow: hidden; background: #0d1621; display: flex; align-items: center; justify-content: center; }
.tv-box-main { height: 320px; margin: 8px 12px 0; }
.tv-box .tradingview-widget-container { width: 100%; height: 100%; }
.tv-fail { font-size: 12px; color: var(--text-3); text-align: center; padding: 0 10px; line-height: 1.5; }

/* ---- Lightweight Charts（期权/币币/合约共用） ---- */
.opt-chart { display: block; padding: 0; height: 330px; }
.opt-chart .chart-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid rgba(138,155,176,.15); }
.opt-chart .chart-tabs { display: flex; gap: 2px; background: rgba(138,155,176,.12); border-radius: 4px; padding: 2px; }
.opt-chart .ct-btn { padding: 3px 8px; font-size: 11px; color: var(--text-2); border-radius: 3px; cursor: pointer; white-space: nowrap; }
.opt-chart .ct-btn.active { background: var(--accent); color: #fff; }
.opt-chart .chart-intervals { display: flex; flex: 1; gap: 2px; justify-content: flex-end; flex-wrap: wrap; }
.opt-chart .ci-btn { padding: 3px 5px; font-size: 10px; color: var(--text-2); border-radius: 3px; cursor: pointer; white-space: nowrap; }
.opt-chart .ci-btn.active { color: var(--accent); background: rgba(255,255,255,.08); font-weight: 600; }
.opt-chart .chart-wrap { position: relative; }
.opt-chart .chart-canvas { height: 270px; }
.opt-chart .chart-status { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-size: 12px; color: var(--text-3); z-index: 5; pointer-events: none; }

/* ---- 我的子页面 ---- */
.page-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 2px; }
.page-head .ph-back { font-size: 14px; color: var(--text-2); padding: 4px 8px; margin-left: -8px; }
.page-head .ph-title { font-size: 16px; font-weight: 700; }
.sec-card { background: var(--panel); border-radius: 8px; margin: 10px 12px; padding: 14px; }
.sec-card .sec-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.form-error { color: var(--down); font-size: 12px; margin-top: 8px; min-height: 14px; }
.status-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-badge.ok { background: rgba(22, 185, 129, .15); color: var(--up); }
.status-badge.pending { background: rgba(247, 147, 26, .15); color: var(--accent); }
.status-badge.fail { background: rgba(246, 70, 93, .15); color: var(--down); }
.id-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.id-tab { flex: 1; text-align: center; padding: 9px 0; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.id-tab.active { background: rgba(247, 147, 26, .12); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.img-upload { position: relative; border: 1px dashed var(--line); border-radius: 6px; background: var(--panel-2); padding: 12px 10px; text-align: center; color: var(--text-3); font-size: 12px; overflow: hidden; }
.img-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-upload img { display: block; width: 100%; max-height: 130px; object-fit: contain; border-radius: 4px; margin-bottom: 6px; }
.announce-item { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.announce-item:last-child { border-bottom: none; }
.announce-item .ann-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; flex: none; }
.announce-item .at { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-item .ad { font-size: 11px; color: var(--text-3); margin-left: 10px; flex: none; }
.help-cat { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 12px 14px 4px; }
.help-item { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.help-item:last-child { border-bottom: none; }
.help-item .hi-arrow { margin-left: auto; color: var(--text-3); }
.detail-body { padding: 14px; font-size: 14px; line-height: 1.8; word-break: break-word; }
.detail-body h1, .detail-body h2, .detail-body h3 { margin: 12px 0 6px; }
.detail-body p { margin: 6px 0; }
.detail-body img { max-width: 100%; }
.about-txt { font-size: 13px; color: var(--text-2); line-height: 1.7; word-break: break-word; white-space: pre-line; }

/* ---- 充币 / 提币 ---- */
.coin-action-mask { position: fixed; inset: 0; background: rgba(10,15,25,.72); z-index: 60; display: none; align-items: center; justify-content: center; }
.coin-action-box { width: 82%; max-width: 360px; background: var(--panel); border-radius: 12px; padding: 22px 18px 16px; text-align: center; position: relative; }
.coin-action-close { position: absolute; top: 8px; right: 10px; font-size: 18px; color: var(--text-3); padding: 4px; cursor: pointer; }
.coin-action-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.coin-action-btn { display: block; width: 100%; border: none; border-radius: 8px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.coin-action-btn:first-of-type { background: var(--accent); color: #fff; }
.coin-action-btn:last-of-type { background: var(--panel-2); color: var(--text); }
.coin-page { padding: 4px 0 20px; }
.coin-addr-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-bottom: 10px; font-size: 12px; line-height: 1.6; color: var(--text); word-break: break-all; }
.addr-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; font-size: 12px; word-break: break-all; cursor: pointer; }
.addr-item:active { border-color: var(--accent); }
.addr-item .adr-rm { display: block; color: var(--text-3); margin-top: 2px; }
/* 签到加息活动 */
.sign-hero { padding: 18px 16px 16px; text-align: center; }
.pet-stage { position: relative; padding: 8px 0 14px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.pet-emoji.big { font-size: 64px; line-height: 1.15; }
.pet-name { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.reg-pet { padding: 16px 0 2px; text-align: center; border-bottom: 1px dashed var(--line); cursor: pointer; -webkit-user-select: none; user-select: none; }
.sign-hero .btn { width: 100%; margin-top: 4px; }
.btn-disabled { background: #555 !important; cursor: not-allowed; }
.sign-rules { text-align: left; margin-top: 14px; }
.rule-item { font-size: 12px; color: var(--text-2); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.rule-quota { font-size: 12px; color: var(--accent); padding: 8px 0 0; }
.sign-tier { padding: 8px 14px; }
.tier-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); margin-bottom: 5px; }
.tier-label { flex: 1; padding-right: 8px; }
.tier-val { color: var(--accent); font-weight: 600; flex: none; }
.tier-bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.tier-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #ffb74d); transition: width .3s; }
.tier-fill.done { background: var(--up); }
.coupon-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.coupon-item:last-of-type { border-bottom: none; }
.coupon-rate { font-size: 18px; font-weight: 800; color: var(--accent); flex: none; }
.coupon-info { flex: 1; min-width: 0; }
.coupon-name { font-size: 13px; color: var(--text); }
.coupon-date { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.coupon-item .status-badge { flex: none; }
.empty-tip { padding: 20px; text-align: center; font-size: 12px; color: var(--text-3); }
.float-heart { position: absolute; z-index: 5; font-size: 18px; color: #ff5f7a; pointer-events: none; animation: floatUp 1.2s ease-out forwards; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-60px) scale(1.4); } }
/* 研报（密码解锁） */
.research-lock { font-size: 44px; line-height: 1; text-align: center; padding: 6px 0 10px; }
.research-tip { font-size: 12px; color: var(--text-2); text-align: center; line-height: 1.7; margin-bottom: 14px; }
.research-get { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 12px; }
.research-title { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.4; }
.research-date { font-size: 12px; color: var(--text-3); margin: 4px 0 14px; }
.research-body { font-size: 13px; color: var(--text-2); line-height: 1.85; }
.research-body p { margin: 0 0 10px; }
.research-body p:last-child { margin-bottom: 0; }
.research-line { display: flex; align-items: center; gap: 10px; }
.research-line-icon { font-size: 30px; flex: none; }
.research-line-info { flex: 1; min-width: 0; }
.research-line-title { font-size: 12px; color: var(--text-3); }
.research-line-id { font-size: 15px; font-weight: 700; color: var(--accent); word-break: break-all; margin-top: 3px; }
.research-line .status-badge { flex: none; }
/* 好友收益榜单 */
.rank-total-label { font-size: 12px; color: var(--text-2); }
.rank-total { font-size: 26px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.rank-unit { font-size: 13px; font-weight: 400; color: var(--text-3); }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rank-item:last-of-type { border-bottom: none; }
.rank-no { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--panel-2); color: var(--text-2); font-size: 12px; font-weight: 700; text-align: center; line-height: 22px; }
.rank-no.top { background: var(--accent); color: #fff; }
.rank-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { flex: none; font-size: 14px; font-weight: 700; }
.rank-val.up { color: var(--up); }
.rank-val.down { color: var(--down); }

/* ============ 十周年神秘大礼 · 签到活动 ============ */
.anv-hero { text-align: center; padding: 20px 16px 18px; }
.anv-badge { font-size: 44px; line-height: 1; }
.anv-title { font-size: 24px; font-weight: 900; letter-spacing: 1px; margin: 10px 0 6px;
  background: linear-gradient(135deg, #ffd76a, #ff9a3d, #ffd76a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.anv-pkg { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.anv-pkg b { color: var(--accent); font-size: 15px; }
.anv-pkg-bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin: 10px auto 0; max-width: 260px; }
.anv-pkg-bar div { height: 100%; background: linear-gradient(90deg, var(--accent), #ffb74d); border-radius: 4px; }
.anv-slogan { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-top: 10px; padding: 0 6px; }
.anv-sign-stats { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.anv-sign-stats b { color: var(--accent); }
.btn-lg { padding: 12px; font-size: 16px; }
.btn-sm { display: inline-block; width: auto; padding: 7px 14px; font-size: 12px; }
.btn-gold { background: linear-gradient(135deg, #ff9a3d, #ffd76a); color: #3a2500; }
.btn-gold:disabled { opacity: .5; }
/* 七天奖励 */
.day-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.day-row:last-of-type { border-bottom: none; }
.day-row.cur { background: rgba(247, 147, 26, .06); }
.day-row.cur .day-idx { background: var(--accent); color: #fff; }
.day-idx { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--panel-2); color: var(--text-2); font-size: 12px; font-weight: 800; text-align: center; line-height: 30px; }
.day-row.done .day-idx { background: rgba(22, 185, 129, .18); color: var(--up); }
.day-info { flex: 1; min-width: 0; }
.day-name { font-size: 14px; font-weight: 700; color: var(--text); }
.day-row.done .day-name { color: var(--text-2); }
.day-desc { font-size: 11px; color: var(--text-3); line-height: 1.6; margin-top: 3px; }
.day-status { flex: none; font-size: 14px; }
.day-badge { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 20px; font-size: 11px; }
.day-badge.gold { background: rgba(247, 147, 26, .15); color: var(--accent); }
.day-badge.ok { background: rgba(22, 185, 129, .15); color: var(--up); }
.day-actions { display: flex; gap: 8px; margin-top: 8px; }
/* 幸运转盘 */
.wheel-card { text-align: center; padding: 18px 16px; }
.wheel-title { font-size: 17px; font-weight: 800; color: var(--text); }
.wheel-chances { font-size: 12px; color: var(--text-2); margin: 6px 0 12px; }
.wheel-chances b { color: var(--accent); font-size: 16px; }
.wheel-card .btn { width: 100%; }
/* 碎片 */
.frag-progress { display: flex; justify-content: center; gap: 14px; padding: 6px 0; }
.frag-slot { width: 52px; height: 52px; border-radius: 12px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 26px; border: 1px solid var(--line); }
.frag-slot.on { border-color: var(--accent); box-shadow: 0 0 12px rgba(247, 147, 26, .35); animation: fragGlow 1.6s ease-in-out infinite; }
@keyframes fragGlow { 0%,100% { box-shadow: 0 0 8px rgba(247,147,26,.25); } 50% { box-shadow: 0 0 16px rgba(247,147,26,.55); } }
.frag-text { text-align: center; font-size: 12px; color: var(--text-2); padding: 6px 0 4px; }
.frag-text b { color: var(--accent); }
/* 体验金提示 */
.fund-tip { border: 1px solid rgba(247, 147, 26, .35); }
.fund-tip-title { font-size: 13px; font-weight: 700; color: var(--accent); padding: 10px 14px 2px; }
.fund-tip-sub { font-size: 11px; color: var(--text-3); padding: 2px 14px 12px; line-height: 1.6; }
/* 转盘弹层 */
.wheel-mask { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 20, .82); display: flex; align-items: center; justify-content: center; }
.wheel-box { width: 88%; max-width: 360px; text-align: center; }
.wheel-title { font-size: 17px; font-weight: 800; color: #ffd76a; margin-bottom: 10px; }
.draw-rack { display: flex; justify-content: center; gap: 5px; margin: 4px auto 10px; }
.draw-stick { width: 33px; height: 88px; border-radius: 9px 9px 5px 5px; background: linear-gradient(#fff1c9, #ffd76a);
  border: 2px solid #e0a83e; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #8a5a00; box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  transition: transform .3s, opacity .3s; }
.draw-stick i { font-style: normal; font-size: 18px; display: block; }
.draw-stick.shake { animation: stickShake .5s ease-in-out; }
.draw-stick.hit { transform: translateY(-14px) scale(1.14); border-color: #f7931a; background: linear-gradient(#ffe9a8, #f7931a); color: #fff; box-shadow: 0 0 22px rgba(247, 147, 26, .7); }
.draw-stick.dim { opacity: .35; }
@keyframes stickShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wheel-tip { margin-top: 18px; min-height: 52px; font-size: 13px; color: var(--text-2); }
.wheel-result { font-size: 17px; font-weight: 800; color: #ffd76a; letter-spacing: 1px; }
.wheel-reward { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.7; padding: 0 6px; }
.wheel-box .btn { margin-top: 14px; }
/* 满屏金币喝彩 */
.confetti-wrap { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.confetti-p { position: absolute; top: -24px; animation: confettiFall 2.2s linear forwards; opacity: 1; }
@keyframes confettiFall { to { transform: translateY(105vh) rotate(360deg); opacity: .4; } }
/* 活动资格限制 */
.anv-not-eligible { padding: 16px 14px 2px; font-size: 13px; font-weight: 700; color: var(--down); text-align: center; }
.anv-not-tip { padding: 2px 16px 16px; font-size: 12px; color: var(--text-2); text-align: center; line-height: 1.7; }

/* 币种选择页 */
.pick-grid { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 10px; }
.pick-item { display: flex; align-items: center; justify-content: space-between; background: var(--panel-2); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.pick-item:active { opacity: .8; }
.pi-symbol { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.pi-arrow { color: var(--text-3); font-size: 20px; }

/* 在线客服页 */
.service-status { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; font-size: 14px; font-weight: 700; }
.sv-dot { width: 10px; height: 10px; border-radius: 50%; background: #16b981; box-shadow: 0 0 8px rgba(22, 185, 129, .7); animation: svPulse 1.6s ease-in-out infinite; }
@keyframes svPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.chat-box { height: 220px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 80%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; word-break: break-word; }
.chat-msg.bot { align-self: flex-start; background: var(--panel-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input .input { flex: 1 1 0; min-width: 0; }
/* 发送按钮不能沿用 .btn 的 width:100%（flex 行内会占满整行，把输入框挤成 0 宽） */
.chat-input .btn { width: auto; flex: 0 0 auto; padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.sv-qr { width: 140px; height: 140px; display: block; margin: 10px auto; border-radius: 8px; background: #fff; }
.sv-line-id { text-align: center; font-size: 13px; margin: 8px 0 12px; }
.sv-line-id b { color: var(--accent); }

/* ============ 天才交易员（点击小游戏） ============ */
/* 首页入口卡片 */
.game-entry { display: flex; align-items: center; gap: 12px; margin: 10px 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(135deg, #2b3d5c, #1b2637); }
.game-entry .ge-icon { font-size: 22px; }
.game-entry .ge-main { flex: 1; }
.game-entry .ge-title { font-size: 15px; font-weight: 700; color: #f2c037; }
.game-entry .ge-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.game-entry .ge-go { font-size: 18px; color: var(--text-3); }

.rebirth-entry { display: flex; align-items: center; gap: 12px; margin: 10px 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid #3a3320; background: linear-gradient(135deg, #3a3320, #1b2637); }
.rebirth-entry .ge-icon { font-size: 22px; }
.rebirth-entry .ge-main { flex: 1; }
.rebirth-entry .ge-title { font-size: 15px; font-weight: 700; color: #f2c037; }
.rebirth-entry .ge-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.rebirth-entry .ge-go { font-size: 18px; color: var(--text-3); }

/* 游戏区：画布在上、买/卖按钮控制条在下 */
.game-wrap { position: relative; display: flex; flex-direction: column; margin: 4px 12px 0; border-radius: 10px; overflow: hidden; height: calc(100vh - var(--header-h) - var(--tabbar-h) - 56px); height: calc(100dvh - var(--header-h) - var(--tabbar-h) - 56px); min-height: 340px; }
.game-wrap canvas { display: block; flex: 1 1 auto; min-height: 0; width: 100%; touch-action: none; }
.game-hud { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.game-hud .gh-pos { font-size: 12px; padding: 3px 9px; border-radius: 10px; background: rgba(255, 255, 255, .10); color: var(--text-2); }
.game-hud .gh-pos.holding { background: rgba(22, 185, 129, .18); color: var(--up); }
.game-hud .gh-price { font-size: 12px; color: var(--text-2); }
.game-tip { position: absolute; left: 0; right: 0; top: 38px; text-align: center; font-size: 12px; color: var(--text-3); pointer-events: none; }
.game-ctrl { flex: 0 0 auto; padding: 4px 12px 10px; background: #0f1722; }
.game-profit { text-align: center; pointer-events: none; }
.game-profit .gp-label { font-size: 16px; font-weight: 800; letter-spacing: 4px; color: #f2c037; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.game-profit .gp-val { font-size: 30px; font-weight: 800; line-height: 1.15; color: #f2c037; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.game-btns { display: flex; gap: 10px; margin-top: 8px; }
.gbtn { flex: 1; padding: 13px 0; border: 0; border-radius: 8px; font-size: 17px; font-weight: 800; color: #fff; transition: opacity .15s; }
.gbtn-buy { background: #1fbf9c; box-shadow: 0 4px 14px rgba(31, 191, 156, .35); }
.gbtn-sell { background: #f2c037; color: #3a2a00; box-shadow: 0 4px 14px rgba(242, 192, 55, .35); }
.gbtn.disabled { opacity: .28; box-shadow: none; }
.game-over { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(10, 16, 24, .78); }
.game-over.show { display: flex; }
.game-over .go-card { width: 78%; max-width: 320px; padding: 20px 16px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.game-over .go-round { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.game-over .go-label { font-size: 14px; font-weight: 700; color: #f2c037; }
.game-over .go-val { font-size: 32px; font-weight: 800; margin: 4px 0 8px; color: #f2c037; }
.game-over .go-best { font-size: 12px; color: var(--text-2); margin-bottom: 14px; }
.game-over .go-card .btn { width: 100%; }

/* ============ 重生模拟器（站内剧情游戏） ============ */
.rb-wrap { position: relative; padding: 0 12px 20px; }
.rb-head { text-align: center; padding: 6px 0 10px; }
.rb-head-title { font-size: 16px; font-weight: 800; letter-spacing: 2px; color: #f3d67a; }
.rb-head-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.rb-wealth { background: linear-gradient(160deg, #1d2029, #151820); border: 1px solid #38321a; border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.rb-wealth .rb-wl { font-size: 10px; color: var(--text-3); letter-spacing: 1px; }
.rb-wealth .rb-wv { font-size: 22px; font-weight: 800; color: #f3d67a; font-variant-numeric: tabular-nums; margin-top: 2px; }
.rb-wealth .rb-wr { text-align: right; }
.rb-wealth .rb-wr .rb-wv { font-size: 13px; color: #3ddc97; }
.rb-card { background: #171a21; border: 1px solid #2a2f3a; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.rb-card .rb-c-title { font-size: 12px; letter-spacing: 1px; color: #d4af37; margin-bottom: 10px; }
.rb-era-tag { display: inline-block; font-size: 10px; letter-spacing: 2px; color: #d4af37; border: 1px solid #38321a; border-radius: 20px; padding: 3px 10px; margin-bottom: 10px; }
.rb-story p { font-size: 14px; line-height: 2; color: var(--text-2); margin-bottom: 10px; }
.rb-story p:last-child { margin-bottom: 0; }
.rb-hi { color: #f3d67a; font-weight: 700; }
.rb-beat { color: #f3d67a; font-weight: 700; }
.rb-choices { margin-top: 16px; }
.rb-choice { display: block; width: 100%; text-align: left; border: 1px solid #2a2f3a; background: #1e222b; color: var(--text); border-radius: 10px; padding: 13px 14px; font-size: 14px; margin-bottom: 9px; cursor: pointer; }
.rb-choice:active { border-color: #d4af37; background: #242938; }
.rb-choice .rb-cn { font-size: 10px; color: var(--text-3); display: block; margin-bottom: 3px; }
.rb-deltas { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.rb-d { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(61, 220, 151, .13); color: #3ddc97; }
.rb-d.gold { background: rgba(212, 175, 55, .14); color: #f3d67a; }
.rb-cont { margin-top: 16px; display: block; width: 100%; border: 0; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 800; color: #2a1e00; background: linear-gradient(135deg, #f3d67a, #d4af37); cursor: pointer; }
.rb-mini { display: flex; gap: 10px; }
.rb-mini .rb-card { flex: 1; margin-bottom: 12px; padding: 12px; }
.rb-mini .rb-c-title { font-size: 10px; margin-bottom: 8px; }
.rb-mini .rb-mi { font-size: 12px; color: var(--text-3); padding: 3px 0; line-height: 1.6; }
.rb-mini .rb-mi.on { color: #f3d67a; }
.rb-mini .rb-mi.on::before { content: "\2714 "; color: #3ddc97; }
.rb-log .rb-li { font-size: 12px; line-height: 1.7; color: var(--text-3); padding: 2px 0; }
.rb-footnote { font-size: 11px; color: var(--text-3); text-align: center; padding: 6px 16px 18px; line-height: 1.7; }
.rb-screen { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(6, 8, 11, .94); padding: 22px; }
.rb-screen.show { display: flex; }
.rb-screen .rb-s-card { max-width: 460px; width: 100%; max-height: 88vh; overflow-y: auto; background: #171a21; border: 1px solid #2a2f3a; border-radius: 14px; padding: 22px 18px; }
.rb-s-card p { font-size: 14px; line-height: 2; color: var(--text-2); margin-bottom: 10px; }
.rb-s-card .rb-s-btn { margin-top: 16px; display: block; width: 100%; border: 0; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 800; color: #2a1e00; background: linear-gradient(135deg, #f3d67a, #d4af37); cursor: pointer; }
.rb-s-card .rb-end-tier { font-size: 12px; letter-spacing: 2px; color: #d4af37; text-align: center; }
.rb-s-card .rb-end-title { font-size: 22px; font-weight: 900; color: #fff; text-align: center; margin: 8px 0 14px; }
.rb-s-card .rb-end-code { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #2a2f3a; }
