/* ============ 深海捕鱼 H5 壳 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #021127;
  --bg-mid: #05304f;
  --cyan: #35e0c0;
  --gold: #ffd76a;
  --gold-deep: #e8a317;
  --text: #eaf6ff;
  --text-dim: #7fa8c9;
  --card-bg: rgba(9, 34, 61, 0.55);
  --card-border: rgba(120, 200, 255, 0.16);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 60%, #04263f 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ============ 海洋背景 ============ */
.ocean { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.light-beam {
  position: absolute; top: -10%; width: 140px; height: 70%;
  background: linear-gradient(180deg, rgba(140, 220, 255, 0.10), transparent 80%);
  transform: rotate(14deg); filter: blur(6px);
}
.beam-1 { left: 12%; }
.beam-2 { right: 18%; height: 55%; opacity: 0.7; }

.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.04) 60%);
  border: 1px solid rgba(255,255,255,0.10);
  animation: rise linear infinite;
}
.b1 { left: 8%;  width: 14px; height: 14px; animation-duration: 11s; }
.b2 { left: 26%; width: 8px;  height: 8px;  animation-duration: 8s;  animation-delay: 2s; }
.b3 { left: 47%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 1s; }
.b4 { left: 66%; width: 10px; height: 10px; animation-duration: 9s;  animation-delay: 4s; }
.b5 { left: 82%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: 3s; }
.b6 { left: 92%; width: 7px;  height: 7px;  animation-duration: 7s;  animation-delay: 5s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-105vh) translateX(30px); opacity: 0; }
}

/* left 初始 -120px：动画延迟期间鱼藏在屏幕外，避免卡在左侧不动 */
.fish { position: absolute; left: -120px; fill: rgba(140, 200, 240, 0.16); }
.fish .eye { fill: rgba(180, 220, 250, 0.25); }
/* SVG 原始朝向头朝左，swim 向右游 → 统一水平翻转使鱼头朝前 */
.f1 { width: 64px; top: 22%; animation: swim 26s linear infinite; transform: scaleX(-1); }
.f2 { width: 44px; top: 48%; animation: swim 34s linear infinite 6s; transform: scaleX(-1); }
.f3 { width: 88px; top: 70%; animation: swim 42s linear infinite 12s; opacity: 0.7; transform: scaleX(-1); }

@keyframes swim {
  0%   { left: -120px; }
  100% { left: 105vw; }
}

.seaweed {
  position: absolute; bottom: 0; width: 60px; height: 90px;
  background: linear-gradient(180deg, rgba(53, 224, 192, 0.10), transparent);
  border-radius: 50% 50% 0 0;
  transform-origin: bottom center;
  animation: sway 5s ease-in-out infinite alternate;
}
.s1 { left: 6%; }
.s2 { right: 10%; height: 130px; animation-duration: 6s; }

@keyframes sway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}

/* ============ 视图与卡片 ============ */
.view { position: relative; z-index: 1; min-height: 100vh; }
.hidden { display: none !important; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* ============ 登录页 ============ */
#view-login { display: flex; align-items: center; justify-content: center; padding: 24px; }

.login-card {
  width: 100%; max-width: 380px;
  padding: 36px 28px 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.logo-icon { width: 72px; height: 72px; }
.logo-fish { fill: var(--cyan); }
.logo-tail { fill: var(--gold); }

.logo h1 {
  margin-top: 10px;
  font-size: 26px; letter-spacing: 6px;
  background: linear-gradient(90deg, #eaf6ff, var(--cyan) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.subtitle { margin-top: 6px; font-size: 11px; letter-spacing: 3px; color: var(--text-dim); }

.tabs { display: flex; margin: 26px 0 22px; background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 4px; }
.tab {
  flex: 1; padding: 10px 0; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--text-dim); font-size: 15px; font-weight: 600;
  transition: all 0.25s;
}
.tab.active { background: linear-gradient(135deg, rgba(53, 224, 192, 0.22), rgba(53, 224, 192, 0.08)); color: var(--cyan); }

.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(120, 200, 255, 0.18);
  background: rgba(0, 0, 0, 0.28); color: var(--text); font-size: 15px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(127, 168, 201, 0.5); }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 224, 192, 0.15); }

.tips { margin-top: 16px; font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #062018;
  padding: 12px 22px;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn-block { width: 100%; padding: 14px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #1bb598);
  color: #03211a; box-shadow: 0 6px 20px rgba(53, 224, 192, 0.3);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #3a2402; box-shadow: 0 8px 26px rgba(255, 215, 106, 0.35);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 14px; }

.btn-outline {
  background: transparent; border: 1px solid rgba(120, 200, 255, 0.35);
  color: var(--text); font-weight: 600;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-ghost {
  background: transparent; border: 0; color: var(--text-dim); cursor: pointer;
  font-size: 13px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px;
}
.btn-ghost:hover { color: var(--cyan); }

.icon { width: 16px; height: 16px; fill: currentColor; }

/* ============ 主视图 ============ */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(2, 17, 39, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.user { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.user .icon { width: 20px; height: 20px; fill: var(--cyan); }

/* 滚动公告栏 */
.notice-bar {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 12px auto 0; padding: 9px 14px;
  background: linear-gradient(90deg, rgba(255, 206, 92, 0.12), rgba(9, 34, 61, 0.75));
  border: 1px solid rgba(255, 206, 92, 0.3);
  border-radius: 12px;
  font-size: 13px;
}
.notice-icon { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; }
.notice-scroll { flex: 1; overflow: hidden; min-width: 0; }
.notice-track {
  display: inline-flex; white-space: nowrap;
  animation: noticeScroll 16s linear infinite;
}
.notice-track span { padding-right: 80px; color: var(--gold); }
@keyframes noticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.main-wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 14px; }

/* 游戏入口卡片 */
.game-hall { display: grid; gap: 14px; }
.game-card {
  padding: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, rgba(9, 34, 61, 0.75), rgba(10, 45, 66, 0.55)),
              radial-gradient(circle at 85% 20%, rgba(255, 215, 106, 0.18), transparent 55%);
  border-color: rgba(255, 215, 106, 0.25);
  overflow: hidden; position: relative;
}
.game-card::after {
  content: ""; position: absolute; top: -60%; right: -20%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 215, 106, 0.16), transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.game-name { font-size: 20px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.game-icon { width: 26px; height: 26px; flex-shrink: 0; fill: var(--gold); }
.game-meta { margin-top: 6px; font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }

/* 钱包卡片 */
.wallet-card { padding: 20px; }
.wallet-head { display: flex; align-items: center; justify-content: space-between; }
.wallet-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.wallet-label .icon { width: 15px; height: 15px; }

.balance {
  margin: 12px 0 18px; font-size: 28px; font-weight: 800; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.transfer-row { display: flex; gap: 10px; }
.transfer-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(120, 200, 255, 0.18);
  background: rgba(0, 0, 0, 0.28); color: var(--text); font-size: 15px;
  outline: none; font-variant-numeric: tabular-nums;
}
.transfer-row input:focus { border-color: var(--gold); }
.transfer-row input::placeholder { color: rgba(127, 168, 201, 0.5); }

/* 充值按钮行 */
.recharge-row { margin-top: 12px; }
.recharge-row .btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.main-withdraw-row { margin-top: 8px; }

/* 记住密码 */
.remember-row { text-align: left; margin-bottom: 12px; }
.remember-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); cursor: pointer; user-select: none; }
.remember-label input { width: 15px; height: 15px; accent-color: var(--gold); }

/* 充值弹窗：支付方式切换 */
.pay-type-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.pay-tab {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid rgba(120, 200, 255, 0.2);
  background: rgba(0, 0, 0, 0.25); color: var(--text-dim); font-size: 14px; cursor: pointer;
}
.pay-tab.active {
  background: linear-gradient(135deg, #ffce5c, #e0a52e); color: #3a2500;
  font-weight: 700; border-color: transparent;
}

/* 在线客服聊天 */
.pay-tab { position: relative; }
.chat-dot {
  position: absolute; top: 4px; right: 10px; width: 9px; height: 9px;
  border-radius: 50%; background: #ff5c5c; box-shadow: 0 0 4px #ff5c5c;
}
#chat-dot-btn { top: 8px; right: 14px; }
.chat-msgs {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 12px;
}
.chat-msg { margin-bottom: 10px; display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.mine { margin-left: auto; align-items: flex-end; }
.chat-msg.theirs { margin-right: auto; align-items: flex-start; }
.chat-text {
  padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap; text-align: left;
}
.chat-msg.mine .chat-text { background: linear-gradient(135deg, #ffce5c, #e0a52e); color: #3a2500; border-bottom-right-radius: 4px; }
.chat-msg.theirs .chat-text { background: rgba(120, 200, 255, 0.12); color: var(--text); border: 1px solid rgba(120, 200, 255, 0.18); border-bottom-left-radius: 4px; }
.chat-img { max-width: 180px; max-height: 180px; border-radius: 10px; border: 1px solid rgba(120, 200, 255, 0.2); display: block; cursor: zoom-in; }
.chat-time { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.chat-input-row { display: flex; gap: 8px; align-items: center; }
.chat-input-row input[type="text"] {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 10px; font-size: 16px;
  border: 1px solid rgba(120, 200, 255, 0.18); background: rgba(0, 0, 0, 0.28);
  color: var(--text); outline: none;
}
.chat-input-row input[type="text"]:focus { border-color: var(--cyan); }
.chat-img-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(120, 200, 255, 0.2); background: rgba(0, 0, 0, 0.25);
  color: var(--text-dim); display: flex; align-items: center; justify-content: center;
}
.chat-img-btn .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-img-btn:hover { color: var(--gold); border-color: var(--gold); }

/* 在线客服独立聊天页 */
#view-chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
#view-chat .topbar { flex-shrink: 0; }
.chat-page-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-msgs-page { flex: 1; min-height: 0; }
.chat-page-inputbar {
  flex-shrink: 0; display: flex; gap: 8px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 18, 36, 0.9); border-top: 1px solid rgba(120, 200, 255, 0.15);
  backdrop-filter: blur(8px);
}
.chat-page-inputbar input[type="text"] {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 10px; font-size: 16px;
  border: 1px solid rgba(120, 200, 255, 0.18); background: rgba(0, 0, 0, 0.28);
  color: var(--text); outline: none;
}
.chat-page-inputbar input[type="text"]:focus { border-color: var(--cyan); }

/* USDT 充值订单详情 */
.usdt-order-box { text-align: center; }
.usdt-pay-amount { background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(255, 206, 92, 0.5); border-radius: 12px; padding: 9px; margin-bottom: 12px; }
.usdt-pay-amount .lbl { font-size: 12px; color: var(--text-dim); }
.usdt-pay-amount .num { font-size: 21px; font-weight: 800; color: var(--gold); letter-spacing: 1px; margin: 3px 0; }
.usdt-pay-amount .sub { font-size: 12px; color: #ff9a9a; }
.usdt-addr-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.usdt-addr {
  flex: 1; min-width: 0; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; word-break: break-all;
  font-family: Consolas, monospace; color: var(--cyan); text-align: left;
}
.usdt-qr-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.usdt-qr-wrap img, .usdt-qr-wrap canvas { border-radius: 10px; background: #fff; padding: 6px; }
.usdt-countdown { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.usdt-countdown b { color: var(--gold); font-size: 16px; }
.usdt-tips {
  text-align: left; font-size: 12px; color: var(--text-dim); line-height: 1.8;
  background: rgba(0, 0, 0, 0.22); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.usdt-credit-tip { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.usdt-credit-tip b { color: var(--cyan); }

/* ============ 提现中心 ============ */
.field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(120, 200, 255, 0.18);
  background: rgba(0, 0, 0, 0.28); color: var(--text); font-size: 15px;
  outline: none; appearance: none; -webkit-appearance: none;
}
.field select:focus { border-color: var(--cyan); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; cursor: pointer; }

.payout-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid rgba(120, 200, 255, 0.08);
}
.payout-item:last-child { border-bottom: 0; }
.payout-head { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 140px; }
.payout-name { font-size: 14px; font-weight: 600; }
.payout-status { font-size: 12px; color: var(--text-dim); }
.payout-status.bound { color: var(--cyan); }
.payout-body { width: 100%; padding: 10px 0 2px; }
.payout-img { max-width: 150px; max-height: 150px; border-radius: 10px; border: 1px solid rgba(120, 200, 255, 0.18); }
.payout-actions { display: flex; gap: 8px; align-items: center; }
.payout-actions label.btn-sm { display: inline-flex; align-items: center; }

/* 记录卡片 */
.records-card { padding: 18px 20px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--text-dim); margin-bottom: 12px; letter-spacing: 1px; }

.record-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(120, 200, 255, 0.08);
}
.record-item:last-child { border-bottom: 0; }
.record-main { display: flex; flex-direction: column; gap: 3px; }
.record-title { font-size: 14px; font-weight: 600; }
.record-sub { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.record-amount { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.record-amount.in { color: var(--cyan); }
.record-amount.out { color: var(--gold); }
.empty { padding: 26px 0; text-align: center; font-size: 13px; color: var(--text-dim); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(1, 8, 20, 0.72);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}
/* 确认弹窗层级高于充值弹窗（DOM在前，需提升z-index避免被盖住） */
#modal.modal-mask { z-index: 110; }

.modal {
  width: 84%; max-width: 340px; padding: 24px 22px;
  max-height: 86vh;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #0a2a4a, #061d33);
  border: 1px solid var(--card-border); border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: popIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; text-align: center; flex-shrink: 0; }
.modal-body {
  font-size: 14px; color: var(--text-dim); line-height: 1.7; text-align: center; margin-bottom: 22px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; overscroll-behavior: contain;
}
.modal-actions { display: flex; gap: 12px; flex-shrink: 0; }
.modal-actions .btn { flex: 1; padding: 12px; }

/* USDT订单：返回/取消并排 */
.usdt-actions { display: flex; gap: 10px; margin-bottom: 6px; }
.usdt-actions .btn { flex: 1; }

/* USDT订单详情模式：只显示转账信息，隐藏支付方式切换与底部充值按钮 */
#recharge-modal.usdt-order-mode .pay-type-tabs { display: none; }
#recharge-modal.usdt-order-mode .modal-body { text-align: left; }
#recharge-modal.usdt-order-mode .modal-actions #recharge-ok { display: none; }

.modal-body b { color: var(--gold); font-size: 18px; }

/* 飞禽走兽模式选择卡 */
#fqqzs-mode-modal .modal { max-width: 420px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px; border-radius: 14px; cursor: pointer;
  background: rgba(9, 34, 61, 0.65); border: 1.5px solid var(--card-border);
  color: var(--text); transition: border-color .15s, box-shadow .15s, transform .1s;
}
.mode-card:active { transform: scale(0.97); }
.mode-card:hover, .mode-card:focus-visible { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 215, 106, 0.25); }
.mode-icon { width: 40px; height: 40px; fill: var(--gold); }
.mode-title { font-size: 16px; font-weight: 900; color: var(--gold); letter-spacing: 1px; }
.mode-desc { font-size: 12px; line-height: 1.6; color: var(--text-dim); text-align: center; }

/* 飞禽走兽入口：沿用游戏本体的深海、金色边框和动物雪碧素材 */
#fqqzs-mode-modal .modal {
  width: min(92vw, 590px); max-width: 590px; padding: 24px 25px 19px;
  background: radial-gradient(ellipse at 50% -10%, #145078aa, transparent 54%),
    linear-gradient(155deg, rgba(5, 24, 41, .98), rgba(4, 15, 28, .98)),
    url('/game/fqqzs/assets/ocean-bg.webp') center / cover;
  border: 1px solid #a8813f; border-radius: 18px;
  box-shadow: 0 24px 80px #000b, inset 0 1px #fff2, 0 0 32px #1aa5d522;
}
#fqqzs-mode-modal .modal-body { margin: 0 0 16px; overflow: visible; }
#fqqzs-mode-modal .modal-actions .btn { background: #0c2234; border-color: #395469; color: #aebfca; }
.mode-heading { text-align: center; margin-bottom: 20px; }
.mode-kicker { display: inline-block; padding: 5px 12px; border: 1px solid #3a738d; border-radius: 999px; color: #80dff1; background: #083249aa; font-size: 10px; letter-spacing: 2px; }
#fqqzs-mode-modal .modal-title { margin: 10px 0 4px; color: #f3d386; font-size: 23px; letter-spacing: 2px; text-shadow: 0 2px 12px #e2a73b55; }
.mode-subtitle { color: #a7bbc6; font-size: 12px; }
#fqqzs-mode-modal .mode-cards { gap: 14px; }
#fqqzs-mode-modal .mode-card {
  position: relative; min-width: 0; padding: 12px 12px 13px; gap: 7px; overflow: hidden;
  border: 1px solid #496574; border-radius: 13px;
  background: linear-gradient(160deg, #113449e8, #091b2aeF 75%);
  box-shadow: inset 0 1px #ffffff18, 0 8px 22px #0004;
}
#fqqzs-mode-modal .mode-card::before { content: ''; position: absolute; width: 160px; height: 120px; left: 50%; top: -68px; transform: translateX(-50%); border-radius: 50%; background: #38b8d51c; filter: blur(7px); pointer-events: none; }
#fqqzs-mode-modal .mode-card:hover, #fqqzs-mode-modal .mode-card:focus-visible { border-color: #efc86c; box-shadow: 0 0 20px #e8b74233, inset 0 1px #ffffff24; }
.mode-art { position: relative; display: block; width: 100%; height: 112px; overflow: hidden; border: 1px solid #4f7788; border-radius: 9px; background: linear-gradient(#0879a488, #032235b8), url('/game/fqqzs/assets/ocean-bg.webp') center 42% / cover; box-shadow: inset 0 0 26px #00111b99; }
.mode-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, #ffffff0c 48%, transparent 70%); }
.mode-animal { position: absolute; z-index: 1; display: block; width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 5px 7px #000c); }
.mode-eagle { left: 8%; top: 4px; width: 118px; height: 104px; }
.mode-rabbit { right: 8%; top: 10px; width: 90px; height: 96px; }
.mode-lion { left: 8%; top: 7px; width: 102px; height: 100px; }
.mode-peacock { right: 7%; top: 3px; width: 112px; height: 104px; }
.mode-art-glow { position: absolute; z-index: 0; width: 52px; height: 52px; top: 28px; left: calc(50% - 26px); border: 1px solid #ffe7a388; border-radius: 50%; box-shadow: 0 0 22px #42e7ff44, inset 0 0 18px #42e7ff33; }
#fqqzs-mode-modal .mode-title { color: #f0d17e; font-size: 16px; letter-spacing: 1px; }
.mode-chip { padding: 3px 10px; border: 1px solid #95753d88; border-radius: 999px; background: #d7a53c16; color: #d8b76a; font-size: 10px; }
#fqqzs-mode-modal .mode-desc { color: #9ab0bd; font-size: 11px; line-height: 1.65; }
.mode-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 2px; padding: 8px 10px; border-radius: 7px; color: #17212b; background: linear-gradient(135deg, #f3dc9a, #bd8b35); font-size: 12px; font-weight: 800; letter-spacing: .5px; box-shadow: inset 0 1px #fff8, 0 3px 8px #0004; }
.mode-cta b { font-size: 20px; font-weight: 500; line-height: 12px; }
@media (max-width: 480px) {
  #fqqzs-mode-modal .modal { width: min(94vw, 420px); padding: 20px 14px 14px; }
  #fqqzs-mode-modal .mode-cards { gap: 9px; }
  #fqqzs-mode-modal .mode-card { padding: 9px 8px 10px; }
  .mode-art { height: 90px; }
  .mode-animal { width: 76px; height: 76px; }
  .mode-eagle,.mode-lion { top: 10px; }
  .mode-rabbit,.mode-peacock { top: 13px; }
  #fqqzs-mode-modal .mode-title { font-size: 14px; }
  #fqqzs-mode-modal .mode-desc { font-size: 10px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ============ Toast ============ */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-80px);
  z-index: 200; max-width: 86%;
  padding: 12px 20px; border-radius: 12px;
  background: rgba(6, 29, 51, 0.92); color: var(--text);
  border: 1px solid var(--card-border);
  font-size: 14px; line-height: 1.5; text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: rgba(53, 224, 192, 0.5); color: var(--cyan); }
.toast.error { border-color: rgba(255, 110, 110, 0.55); color: #ff9a9a; }

/* ============ 响应式 ============ */
@media (max-width: 420px) {
  .balance { font-size: 25px; }
  .game-card { flex-direction: column; text-align: center; }
  .btn-lg { width: 100%; }
  .transfer-row { flex-wrap: wrap; }
  .transfer-row input { flex-basis: 100%; }
  .transfer-row .btn { flex: 1; }
  /* 充值弹窗输入框防iOS聚焦自动放大 */
  #recharge-amount { font-size: 16px; }
}

/* ============ 推广中心 ============ */
/* 等级徽章（主界面顶栏 & 推广中心） */
.promo-badge {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; white-space: nowrap;
}
.promo-badge.lv0 { background: rgba(127, 168, 201, 0.16); color: #9fc0da; }
.promo-badge.lv1 { background: rgba(235, 238, 245, 0.18); color: #e8ecf2; }
.promo-badge.lv2 { background: rgba(255, 215, 106, 0.16); color: var(--gold); }
.promo-badge.lv3 { background: rgba(53, 224, 192, 0.16); color: var(--cyan); }

/* 按钮并排（提现 + 推广中心） */
.btn-pair-row { display: flex; gap: 10px; }
.btn-pair-row .btn { flex: 1; width: auto; }

/* 等级权益说明 */
.promo-benefit { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-top: 10px; }

/* 升级进度条 */
.promo-progress { margin-top: 12px; }
.promo-progress-title { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.promo-progress-title b { color: var(--gold); }
.promo-progress-bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.32); overflow: hidden; }
.promo-progress-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffce5c, #e0a52e); transition: width 0.35s; }

/* 累计佣金行 */
.promo-total-row { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.promo-total-row b { color: var(--gold); font-size: 14px; }

/* 推广链接框 */
.promo-link-box {
  font-size: 12px; word-break: break-all; line-height: 1.6;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px 12px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.promo-actions-row { display: flex; gap: 8px; margin-top: 10px; }

/* 直购钻石信息 */
.promo-buy-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.promo-buy-info b { color: var(--gold); font-size: 18px; }

/* 团队统计小卡 */
.promo-stats-row { display: flex; gap: 8px; margin-bottom: 12px; }
.promo-stat { flex: 1; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 6px; text-align: center; }
.promo-stat .n { font-size: 18px; font-weight: 800; color: var(--gold); }
.promo-stat .l { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* 团队成员等级标签 */
.level-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.level-tag.lv0 { background: rgba(127, 168, 201, 0.14); color: #9fc0da; }
.level-tag.lv1 { background: rgba(235, 238, 245, 0.16); color: #e8ecf2; }
.level-tag.lv2 { background: rgba(255, 215, 106, 0.14); color: var(--gold); }
.level-tag.lv3 { background: rgba(53, 224, 192, 0.14); color: var(--cyan); }
.valid-tag { font-size: 11px; color: var(--cyan); }
.unvalid-tag { font-size: 11px; color: var(--text-dim); }

/* ============ LJ 游戏大厅 / 本地 UI 改版 ============ */
body.lobby-mode {
  --text: #17304f;
  --text-dim: #6d819c;
  --cyan: #3478f6;
  --gold: #e5aa37;
  --gold-deep: #ca8b1f;
  --card-bg: rgba(255, 255, 255, .94);
  --card-border: rgba(112, 151, 195, .18);
  color: #17304f;
  background:
    radial-gradient(600px 340px at 9% 7%, rgba(175, 215, 255, .42), transparent 70%),
    radial-gradient(620px 420px at 95% 16%, rgba(204, 228, 255, .48), transparent 72%),
    linear-gradient(180deg, #f4f8fd 0%, #edf4fc 56%, #f6f9fd 100%);
}
body.lobby-mode .ocean { opacity: .12; }
body.lobby-mode .ocean .fish,
body.lobby-mode .ocean .seaweed { opacity: .22; }
body.lobby-mode .card {
  background: rgba(255,255,255,.92);
  border-color: rgba(126, 162, 204, .19);
  box-shadow: 0 12px 34px rgba(39, 78, 127, .08);
  color: #17304f;
}
body.lobby-mode .topbar.lobby-topbar {
  position: sticky;
  top: 0;
  width: calc(100% - 80px);
  max-width: 1780px;
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(248, 251, 255, .88);
  border-bottom: 1px solid rgba(117, 154, 196, .16);
  box-shadow: 0 5px 22px rgba(42, 76, 119, .04);
  color: #17304f;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.brand-mark, .sponsor-mark { display: inline-grid; place-items: center; flex: 0 0 auto; }
.brand-mark { width: 46px; height: 46px; }
.brand-mark svg, .sponsor-mark svg { width: 100%; height: 100%; }
.brand-mark circle, .sponsor-mark circle { fill: #08111f; stroke: #fff; stroke-width: 2.4; }
.brand-mark path, .sponsor-mark path { fill: none; stroke: #fff; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-wordmark { display: flex; flex-direction: column; gap: 2px; }
.brand-wordmark strong { color: #17304f; font-size: 14px; letter-spacing: 2.2px; }
.brand-wordmark small { color: #8191a6; font-size: 10px; letter-spacing: 1.5px; }
.lobby-nav { display: flex; align-items: center; gap: 8px; }
.lobby-nav a { padding: 10px 16px; border-radius: 999px; color: #6a7f9a; font-size: 13px; font-weight: 700; text-decoration: none; transition: .18s ease; }
.lobby-nav a:hover, .lobby-nav a.active { background: #e6f0ff; color: #2867d5; }
.admin-preview-link { display: none; }
body.local-preview .admin-preview-link { display: inline-flex; }
.topbar-account { display: flex; align-items: center; gap: 14px; }
body.lobby-mode .topbar-account .user { gap: 9px; color: #34516f; font-size: 13px; }
body.lobby-mode .topbar-account .user .icon { fill: #3478f6; }
body.lobby-mode .topbar-account .btn-ghost { color: #71839a; }
body.lobby-mode .topbar-account #btn-logout { display: none; }
.header-wallet { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-wallet-balance { position: relative; display: flex; align-items: baseline; gap: 5px; min-height: 38px; padding: 8px 34px 8px 12px; border: 1px solid #dce7f5; border-radius: 11px; background: #fff; color: #71859d; font-size: 11px; white-space: nowrap; }
.header-wallet-balance strong { color: #2e64ab; font-size: 15px; font-variant-numeric: tabular-nums; }
.header-wallet-balance small { color: #9aaabd; font-size: 9px; }
.header-wallet-refresh { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #7790ad; cursor: pointer; transform: translateY(-50%); }
.header-wallet-refresh:hover { background: #edf4ff; color: #276bea; }
.header-wallet-refresh .icon { width: 14px; height: 14px; fill: currentColor; }
.header-wallet-action { position: relative; min-height: 36px; padding: 0 12px; border: 1px solid #dce7f5; border-radius: 10px; background: #fff; color: #496989; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; white-space: nowrap; transition: .18s ease; }
.header-wallet-action:hover { border-color: #a8c6f4; background: #f5f9ff; color: #276bea; transform: translateY(-1px); }
.header-wallet-action.is-primary { border-color: #2871e8; background: linear-gradient(135deg,#347cf1,#2463da); box-shadow: 0 5px 12px rgba(42,105,221,.16); color: #fff; }
.header-wallet-action.is-primary:hover { background: linear-gradient(135deg,#4388f6,#2d6de3); color: #fff; }
.header-wallet-action .chat-dot { top: -4px; right: -4px; }

#view-main .main-wrap.lobby-wrap {
  width: calc(100% - 80px);
  max-width: 1780px;
  margin: 0 auto;
  padding: 30px 0 154px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#view-main .lobby-intro,
#view-main .lobby-filterbar,
#view-main .game-hall { grid-column: 1 / -1; }
.lobby-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 10px 2px 4px; }
.lobby-eyebrow { margin: 0 0 8px; color: #4380dd; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.lobby-intro h1 { margin: 0; color: #17304f; font-size: clamp(27px, 3vw, 36px); line-height: 1.16; letter-spacing: .02em; }
.lobby-subtitle { margin: 9px 0 0; color: #7487a0; font-size: 13px; line-height: 1.6; }
.lobby-live { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid rgba(114, 155, 204, .2); border-radius: 999px; background: rgba(255,255,255,.72); color: #58718d; font-size: 12px; white-space: nowrap; }
.lobby-live small { margin-left: 5px; padding-left: 12px; border-left: 1px solid #dce7f4; color: #8b9db2; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #36bd8b; box-shadow: 0 0 0 4px rgba(54,189,139,.13); }
.lobby-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 5px; padding: 0 0 12px; border-bottom: 1px solid rgba(112, 151, 195, .18); }
.lobby-filter-tabs { display: flex; align-items: center; gap: 7px; overflow-x: auto; }
.lobby-filter { flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: #73869d; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; transition: .18s ease; }
.lobby-filter:hover { background: #edf4fd; color: #2867d5; }
.lobby-filter.active { background: #276bea; color: #fff; box-shadow: 0 6px 15px rgba(39,107,234,.2); }
.lobby-filter span { margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.23); font-size: 10px; }
.lobby-count { color: #8a9aaf; font-size: 12px; white-space: nowrap; }
.game-hall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
#view-main .game-card.game-tile {
  min-width: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: clamp(160px, 12vw, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  border: 1px solid rgba(113, 155, 205, .2);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(42, 80, 131, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
#view-main .game-card.game-tile::after { display: none; }
#view-main .game-card.game-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(42, 80, 131, .14); }
.game-art { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 12px; isolation: isolate; }
.game-art::before, .game-art::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.game-art::before { width: 190px; height: 190px; right: -48px; top: -106px; background: rgba(255,255,255,.36); }
.game-art::after { width: 130px; height: 130px; left: -50px; bottom: -85px; background: rgba(255,255,255,.22); }
.art-fishing { color: #fff; background: linear-gradient(115deg,rgba(10,49,104,.2),rgba(32,116,222,.08)),url("/assets/fishing-ocean-arcade.png") center 48% / cover no-repeat; }
.art-beasts { color: #fff; background: linear-gradient(135deg, #87c8ff 0%, #568af0 58%, #735dd8 100%); }
.art-canada { color: #fff; background: linear-gradient(135deg, #8fd2ff 0%, #4b99ef 54%, #376dde 100%); }
.art-lottery { color: #fff; background: radial-gradient(ellipse at 50% 120%,rgba(39,195,227,.34),transparent 55%),linear-gradient(135deg,#102e70 0%,#2457af 48%,#405cce 100%); }
.art-fantan { color:#eef6ff; background:radial-gradient(ellipse at 50% 115%,rgba(35,189,224,.24),transparent 52%),linear-gradient(145deg,#1e3c5b,#142844 60%,#2a4b69); }
.fantan-lines { position:relative; width:138px; height:86px; border:1px solid rgba(223,239,255,.8); border-radius:12px; background:linear-gradient(90deg,transparent 33%,rgba(223,239,255,.45) 33.5%,transparent 34.5%,transparent 66%,rgba(223,239,255,.45) 66.5%,transparent 67.5%),linear-gradient(0deg,transparent 49%,rgba(223,239,255,.45) 50%,transparent 51%); box-shadow:0 9px 18px rgba(5,22,48,.2),inset 0 0 0 6px rgba(255,255,255,.05); transform:perspective(200px) rotateX(10deg); }
.fantan-token { position:absolute; display:grid; place-items:center; width:34px; height:34px; border:2px solid #fff; border-radius:50%; background:linear-gradient(145deg,#fff,#d8e8fb); color:#2c68d2; font-size:14px; font-weight:900; box-shadow:0 5px 10px #11294b44; }
.token-two { top:29%; left:34%; }.token-three { top:25%; left:49%; color:#ef515d; }.token-one { top:47%; right:28%; color:#19a7ca; }
.lottery-ball { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: linear-gradient(145deg,#fff,#e5efff); color: #3975e8; font-size: 15px; font-weight: 900; box-shadow: 0 8px 18px rgba(6,24,69,.25); }
.lottery-ball-one { top: 34px; left: 25%; }.lottery-ball-two { top: 25px; left: 42%; color: #f04b59; }.lottery-ball-three { top: 34px; right: 24%; color: #27a64e; }.lottery-ball-four { top: 84px; left: 34%; color: #f04b59; }.lottery-ball-five { top: 88px; left: 51%; }.lottery-ball-six { top: 82px; right: 20%; color: #f04b59; }
.art-kicker { position: absolute; top: 13px; left: 14px; color: rgba(255,255,255,.76); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.art-orb { position: absolute; border: 1px solid rgba(255,255,255,.54); border-radius: 50%; }
.orb-one { width: 48px; height: 48px; left: 19%; top: 28%; }
.orb-two { width: 22px; height: 22px; right: 19%; top: 24%; background: rgba(255,255,255,.18); }
.art-fish { position: relative; z-index: 1; width: 114px; height: 70px; fill: rgba(255,255,255,.92); filter: drop-shadow(0 9px 10px rgba(28,67,130,.22)); transform: translateY(4px); }
.art-fish circle { fill: #3273d9; }
.art-caption { position: absolute; left: 15px; bottom: 11px; color: rgba(255,255,255,.92); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.art-coin { position: absolute; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid rgba(255,255,255,.84); border-radius: 50%; background: linear-gradient(145deg,#fff6d8,#efa82b); color: #ae7418; font-size: 12px; font-weight: 900; box-shadow: 0 5px 12px rgba(132,82,9,.16); }
.coin-one { top: 35px; right: 28%; }.coin-two { left: 28%; bottom: 28px; }
.beast-disc { position: absolute; top: 38px; display: grid; place-items: center; width: 68px; height: 68px; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; background: linear-gradient(145deg,rgba(255,255,255,.36),rgba(255,255,255,.08)); box-shadow: 0 10px 20px rgba(37,56,143,.2); font-size: 26px; font-weight: 900; }
.beast-a { left: 29%; transform: rotate(-10deg); }.beast-b { right: 25%; top: 48px; transform: rotate(8deg); color: #ffe8ab; }
.beast-star { position: absolute; top: 28px; right: 19%; color: #fff4c8; font-size: 19px; }
.canada-ball { position: absolute; top: 45px; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid rgba(255,255,255,.86); border-radius: 50%; background: linear-gradient(145deg,#fff,#e3efff); color: #316fdb; font-size: 19px; font-weight: 900; box-shadow: 0 9px 18px rgba(26,63,132,.2); }
.ball-seven { left: 27%; }.ball-three { left: 43%; top: 34px; }.ball-two { right: 24%; }
.game-info { display: grid; align-content: start; padding: 1px 7px 7px; }
.game-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-name { display: flex; align-items: center; gap: 7px; min-width: 0; color: #1c3658; font-size: 17px; font-weight: 850; letter-spacing: .02em; }
.game-icon { flex: 0 0 auto; width: 24px; height: 24px; fill: #397de0; }
.game-icon-fish { filter: drop-shadow(0 2px 2px rgba(37,103,194,.18)); }
.game-icon-beasts { fill: #397de0; }
.game-meta { margin-top: 6px; color: #8393a8; font-size: 11px; letter-spacing: .01em; }
.game-tag { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #edf4ff; color: #3f7ad4; font-size: 10px; font-weight: 800; }
.tag-pc { background: #fff4dd; color: #b17b1c; }
.tag-lottery { background: #eef0ff; color: #5c65cf; }
.canada-mini-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 5px; border-radius: 50%; background: #2d6ce2; color: #fff; font-size: 9px; vertical-align: 2px; }
.lottery-mini-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 2px; border: 2px solid #d8e4ff; border-radius: 50%; background: linear-gradient(145deg,#fff,#edf3ff); color: #456fe2; font-size: 12px; font-weight: 900; }
.fantan-mini-mark { display:inline-grid;place-items:center;width:24px;height:24px;margin-right:2px;border:1px solid #b8d7f0;border-radius:7px;background:linear-gradient(145deg,#eaf5ff,#cee5f5);color:#2672c6;font-size:12px;font-weight:900; }
#view-main .game-enter { width: 100%; margin-top: 13px; padding: 11px 13px; justify-content: space-between; border-radius: 10px; background: linear-gradient(135deg,#347cf1,#2463da); color: #fff; box-shadow: 0 6px 16px rgba(42,105,221,.18); font-size: 13px; }
#view-main .game-enter .icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filter-hidden { display: none !important; }
.lobby-mode .wallet-card, .lobby-mode .records-card { grid-column: span 1; padding: 18px; }
.lobby-mode .wallet-label, .lobby-mode .card-title { color: #71859d; }
.lobby-mode .balance { background: none; -webkit-text-fill-color: #2e64ab; color: #2e64ab; font-size: 28px; }
.lobby-mode .btn-outline { color: #365c88; border-color: rgba(73,124,188,.34); }
.lobby-mode .tips { color: #8193a8; }
.lobby-mode .notice-bar { max-width: 1180px; color: #536f91; background: #fff; border-color: #e1ebf7; }
.lobby-mode .notice-track span { color: #4877b3; }
.lobby-sponsor-bar { position: fixed; z-index: 25; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 14px; width: min(1480px, calc(100% - 80px)); min-height: 78px; padding: 12px 18px; border: 1px solid rgba(170,201,239,.22); border-radius: 18px; background: rgba(16,35,61,.96); box-shadow: 0 18px 45px rgba(20,43,76,.24); color: #fff; transform: translateX(-50%); backdrop-filter: blur(14px); }
.sponsor-mark { width: 45px; height: 45px; }
.sponsor-copy { display: grid; gap: 2px; min-width: 0; }
.sponsor-copy small { color: #8db9f0; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.sponsor-copy strong { color: #fff; font-size: 15px; }
.sponsor-copy span { color: #b5c4d8; font-size: 11px; }
.sponsor-separator { flex: 1; }
.btn-like-sponsor { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: linear-gradient(135deg,#ed5c88,#d83c73); box-shadow: 0 8px 18px rgba(216,60,115,.25); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; transition: .18s ease; }
.btn-like-sponsor:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-like-sponsor .icon { fill: currentColor; }
.btn-like-sponsor.liked { background: linear-gradient(135deg,#347cf1,#2463da); box-shadow: 0 8px 18px rgba(52,124,241,.24); }

/* 本地预览限定入口与纯界面状态 */
.admin-preview-link { display: none !important; }
body.local-preview .admin-preview-link { display: inline-flex !important; }
body.local-preview .topbar-account #btn-logout { display: none; }
body.local-preview .wallet-card,
body.local-preview .records-card { display: none; }
body.local-preview #view-main .main-wrap.lobby-wrap { padding-bottom: 128px; }
body.lobby-mode { color: #23405f; background: #f2f6fb; }
body.lobby-mode .ocean { display: none; }

@media (max-width: 980px) {
  .game-hall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.lobby-mode .topbar.lobby-topbar { flex-wrap: wrap; gap: 10px; padding-inline: 18px; }
  .header-wallet { order: 4; width: 100%; justify-content: flex-end; }
  .topbar-account { order: 3; }
}
@media (min-width: 1601px) {
  .game-hall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #view-main .game-card.game-tile { grid-template-rows: clamp(148px, 8.8vw, 180px) minmax(0, 1fr); }
}
@media (min-width: 981px) and (max-width: 1600px) {
  .game-hall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body.lobby-mode .topbar.lobby-topbar { width: calc(100% - 24px); max-width: none; flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .brand-lockup { min-width: 0; }
  .brand-mark { width: 40px; height: 40px; }
  .lobby-nav { order: 3; width: 100%; overflow-x: auto; }
  .header-wallet { order: 4; width: 100%; justify-content: stretch; gap: 6px; }
  .header-wallet-balance { flex: 1 1 100%; }
  .header-wallet-action { flex: 1 1 auto; padding-inline: 8px; }
  .lobby-nav a { padding: 8px 12px; white-space: nowrap; }
  .topbar-account { order: 2; margin-left: auto; gap: 5px; }
  body.lobby-mode .topbar-account .user { gap: 5px; font-size: 11px; }
  #view-main .main-wrap.lobby-wrap { width: calc(100% - 24px); padding-top: 20px; grid-template-columns: 1fr; gap: 14px; }
  #view-main .lobby-intro, #view-main .lobby-filterbar, #view-main .game-hall { grid-column: 1; }
  .lobby-intro { align-items: flex-start; flex-direction: column; gap: 13px; }
  .lobby-live { padding: 8px 11px; }
  .lobby-filterbar { align-items: flex-start; flex-direction: column; }
  .lobby-filter-tabs { width: 100%; }
  .game-hall { grid-template-columns: 1fr; }
  #view-main .game-card.game-tile { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr; gap: 11px; min-height: 132px; }
  .game-art { min-height: 132px; }
  .art-kicker { top: 8px; left: 9px; font-size: 7px; }
  .art-fish { width: 75px; }
  .art-caption { left: 9px; bottom: 8px; font-size: 8px; }
  .beast-disc { width: 42px; height: 42px; top: 42px; font-size: 17px; }
  .canada-ball { width: 30px; height: 30px; top: 49px; font-size: 13px; border-width: 2px; }
  .ball-seven { left: 18%; }.ball-three { left: 39%; top: 41px; }.ball-two { right: 15%; }
  .lottery-ball { width: 24px; height: 24px; border-width: 1px; font-size: 8px; }
  .lottery-ball-one { top: 27px; left: 12%; }.lottery-ball-two { top: 23px; left: 35%; }.lottery-ball-three { top: 27px; right: 12%; }
  .lottery-ball-four { top: 62px; left: 23%; }.lottery-ball-five { top: 64px; left: 47%; }.lottery-ball-six { top: 61px; right: 9%; }
  .fantan-lines { width:76px;height:58px;border-radius:7px; }
  .fantan-token { width:22px;height:22px;border-width:1px;font-size:9px; }
  .token-two { top:30%;left:26%; }.token-three { top:25%;left:48%; }.token-one { top:48%;right:15%; }
  .game-info { padding: 4px 4px 4px 0; }
  .game-name { font-size: 15px; }
  #view-main .game-enter { margin-top: 9px; padding: 9px 10px; font-size: 12px; }
  .lobby-mode .wallet-card, .lobby-mode .records-card { grid-column: 1; }
  .lobby-sponsor-bar { bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 18px); min-height: 70px; gap: 9px; padding: 9px 10px; border-radius: 14px; }
  .sponsor-mark { width: 35px; height: 35px; }
  .sponsor-copy small { font-size: 7px; }
  .sponsor-copy strong { font-size: 12px; }
  .sponsor-copy span { display: none; }
  .btn-like-sponsor { gap: 5px; padding: 10px 11px; font-size: 11px; }
}

/* 推广中心响应式 */
@media (max-width: 420px) {
  .promo-stats-row { gap: 6px; }
  .promo-stat .n { font-size: 16px; }
}
