/* 页面主题独立于游戏 iframe，深色延续现有颜色。 */
:root { --text:var(--ink); --surface:var(--panel2); }
:root[data-theme="light"] {
  color-scheme:light;
  --bg:#f5f6f8;
  --panel:#ffffff;
  --panel2:#eaeef2;
  --line:#d7dee5;
  --ink:#202832;
  --muted:#5e6b78;
  --accent:#467314;
  --red:#b32d3c;
  --blue:#2266ad;
}
/* 显式铺满单列，避免旧 flex 的 space-between 令网格按文案宽度收缩。 */
footer { display:grid; grid-template-columns:minmax(0,1fr); justify-content:stretch; gap:0; padding:0 max(4vw, calc((100% - 1480px) / 2 + 4vw)); }
.footer-copy { min-width:0; }
.footer-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; min-width:0; gap:12px 20px; }
.footer-copy strong { display:block; font-size:14px; font-weight:700; }
.footer-copy p { margin:8px 0 0; line-height:1.7; }
.theme-switcher { display:inline-flex; align-items:center; gap:4px; padding:4px; border-radius:11px; background:var(--panel2); flex-shrink:0; margin-left:auto; }
.theme-switcher button { display:grid; place-items:center; width:44px; height:44px; padding:9px; border:0; border-radius:9px; color:var(--muted); background:transparent; }
.theme-switcher button:hover { color:var(--ink); background:var(--panel); }
.theme-switcher button[aria-pressed="true"] { color:var(--bg); background:var(--ink); }
.theme-switcher svg { width:22px; height:22px; stroke-width:1.7; }
@media(max-width:650px) { footer { padding:0 4vw; } }

/* 固定深色的业务表面在浅色主题中使用同一套语义颜色。 */
[data-theme="light"] th { background:var(--panel2); }
[data-theme="light"] pre { background:var(--panel2); color:var(--ink); }
[data-theme="light"] .primary,
[data-theme="light"] .notice { color:#fff; }
[data-theme="light"] .primary:hover { background:#365c0e; }
[data-theme="light"] .notice.bad { background:#fce9ec; color:var(--red); }
[data-theme="light"] footer { color:var(--muted); }
[data-theme="light"] .platform-dialog { border-color:var(--line); }
[data-theme="light"] .profile-summary,
[data-theme="light"] .wallet-overview { background:linear-gradient(110deg,#eef5e6,var(--panel) 75%); }
[data-theme="light"] .profile-identity>img { border-color:var(--line); }
[data-theme="light"] .game-sort { background:var(--panel2); }
[data-theme="light"] .game-sort button[aria-pressed="true"] { background:var(--ink); color:#fff; }
[data-theme="light"] .center-logout { color:var(--red); }
[data-theme="light"] .nickname-form p,
[data-theme="light"] .country-option small,
[data-theme="light"] .currency-explanation,
[data-theme="light"] .currency-option small,
[data-theme="light"] .currency-example,
[data-theme="light"] .withdrawal-rules p { color:var(--muted); }
[data-theme="light"] .withdrawal-security-warning { color:#80550b; background:#fff5db; border-color:#d5ae5e; }
[data-theme="light"] #game-loading { background:#fffffff2; }
[data-theme="light"] * { scrollbar-color:#a8b3bf transparent; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background:#a8b3bf; }
[data-theme="light"] .room-jackpot { color:#88600e; }
@media(max-width:650px) {
}

/* 页脚提示保持低对比度，认证图片遵循所属机构的展示规范。 */
.footer-responsible { display:inline-flex; align-items:center; gap:10px; padding:0; min-height:44px; text-align:left; color:var(--muted); }
.footer-responsible:hover { background:transparent; color:var(--ink); }
.age-mark { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border:2px solid currentColor; border-radius:50%; font-size:12px; font-weight:750; }
.footer-trust { display:flex; flex-wrap:wrap; align-items:center; gap:20px 28px; }

.footer-trust button { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0; color:var(--muted); font-size:12px; }
.footer-trust button:hover { background:transparent; color:var(--ink); }
.footer-trust svg { width:17px; height:17px; }
.footer-certification { display:inline-flex; align-items:center; min-height:44px; }
/* 认证素材按页面主题切换，保持统一比例。 */
.footer-certification img { display:block; width:auto; height:52px; max-width:180px; object-fit:contain; }

/* 图标区和声明区分层；窄屏居中换行，宽屏认证与币种分列。 */
.footer-brand-row { background:#10151c; border-radius:12px; margin-top:20px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:28px 40px; padding:24px; }
.footer-payment-icons { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-left:auto; }
.footer-payment-icons img { display:block; width:36px; height:36px; }
.footer-statement { padding:26px 0 20px; }
.footer-statement .footer-tools { margin-top:18px; }
#encrypted-connection { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; }
#encrypted-connection svg { width:17px; height:17px; }
@media(max-width:1100px) {
  .footer-brand-row { justify-content:center; }
  .footer-trust { justify-content:center; }
  .footer-payment-icons { margin-left:0; }
}
@media(max-width:650px) {
  .footer-brand-row { padding:20px 12px; gap:20px; }
  .footer-trust { gap:16px 20px; }
  .footer-certification img { height:40px; max-width:140px; }
  .footer-payment-icons { gap:8px; }
  .footer-payment-icons img { width:30px; height:30px; }
  .footer-statement { padding:20px 0 18px; }
}

.footer-certification .certification-light { display:none; }
[data-theme="light"] .footer-brand-row { background:var(--panel); }
[data-theme="light"] .footer-certification .certification-dark { display:none; }
[data-theme="light"] .footer-certification .certification-light { display:block; }
/* Raster brand artwork stays intact; tone down its white lettering on light surfaces. */
[data-theme="light"] .footer-certification .certification-filter-light { filter:brightness(.42) saturate(.9); }

.gamecheck-certification { position:relative; }
.footer-certification .gamecheck-light-lettering { display:none; }
[data-theme="light"] .footer-certification .gamecheck-light-lettering {
  display:block;
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  clip-path:inset(38% 6% 38% 33%);
  filter:brightness(0);
  pointer-events:none;
}
