/* 手机端 H5 大厅：配色与版式取自试玩站门户（金色顶栏、浅灰底纹、圆角卡片、金色名称条、底部导航）。 */
:root {
  --gold: #e2a614;
  --gold-deep: #c98a06;
  --gold-soft: #f7c74a;
  --gold-text: #d9960a;
  --bg: #f2f2f2;
  --card: #fff;
  --text: #333;
  --muted: #999;
  --line: #e7e7e7;
  --red: #e5484d;
  --tabbar-h: 58px;
  --top-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #e6e6e6; }
body {
  margin: 0;
  color: var(--text);
  font: 14px/1.45 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #e6e6e6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { fill: currentColor; }

/* 手机宽度单栏；电脑上居中，和试玩站一样。 */
.shell {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(0, 0, 0, .025) 0 14px, transparent 15px),
    radial-gradient(circle at 60px 60px, rgba(0, 0, 0, .02) 0 10px, transparent 11px);
  background-size: 80px 80px;
  overflow-x: hidden;
}

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #e8ac1c, var(--gold) 60%, #d89c0d);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; min-width: 0; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: #1aa34a;
  font: 900 18px/1 "Arial Black", Arial, sans-serif;
  letter-spacing: -1px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 19px; letter-spacing: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.brand-text small { font-size: 10px; letter-spacing: 3px; opacity: .85; }
.guest { display: flex; gap: 8px; }
.guest button {
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
.btn-login { background: #fff; color: var(--gold-text); border: 0; font-weight: 600; }
.btn-register { background: transparent; color: #fff; border: 1.5px solid #fff; }
.account { display: flex; align-items: center; gap: 8px; }
.wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 4px 0 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  color: #fff;
}
.wallet strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.coin {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe68a, #f2b51c 60%, #c98a06);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  cursor: pointer;
}
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold-text);
  font-weight: 800;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, .7);
}

.page { display: block; padding: 10px 12px 18px; }

/* 快捷入口：彩色图标加胶囊标签 */
.quick { display: flex; justify-content: space-between; gap: 6px; padding: 6px 2px 10px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.q i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .15), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.q svg { width: 26px; height: 26px; }
.q span {
  padding: 1px 7px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.q1 i, .q1 span { background: linear-gradient(#ff7a59, #e8452c); }
.q2 i, .q2 span { background: linear-gradient(#ffcb3d, #f0a400); }
.q3 i, .q3 span { background: linear-gradient(#c36bff, #9140e6); }
.q4 i, .q4 span { background: linear-gradient(#56b6ff, #1f7fe0); }
.q5 i, .q5 span { background: linear-gradient(#4fd38a, #18a957); }

/* 轮播 */
.banner { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.slides { display: flex; transition: transform .45s ease; }
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 150px;
  padding: 16px 16px 0;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  text-align: left;
}
/* 文案层在游戏图之上。游戏图在右下角，375 宽时从 x≈200、y≈80 开始：标题在顶部与图纵向不重叠，
   不限宽（限宽会把"五档房间"的"间"挤到第二行）；只有下方的说明文字收窄到图的左边。 */
.slide h3 { position: relative; z-index: 1; margin: 0; font-size: 22px; line-height: 1.2; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.slide p { position: relative; z-index: 1; margin: 6px 0 0; font-size: 13px; opacity: .95; max-width: 52%; }
.slide .art { position: absolute; right: -6px; bottom: -8px; display: flex; }
.slide .art img {
  width: 64px;
  height: 64px;
  margin-left: -18px;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .85);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  background: #fff;
}
.slide .art img:nth-child(2) { transform: translateY(-14px); }
.s1 { background: linear-gradient(120deg, #2b5cd6, #6a3de8 60%, #b03fd9); }
.s2 { background: linear-gradient(120deg, #e8452c, #f08a1c 60%, #f5b324); }
.s3 { background: linear-gradient(120deg, #0d8f7a, #1fb5a0 55%, #3cc8e8); }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .3s; }
.dots i.on { width: 16px; background: #fff; }

/* 大奖滚动 */
.jackpot {
  margin-top: 12px;
  padding: 8px 0 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
}
.jackpot-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #b8500c;
  letter-spacing: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 199, 74, .35), transparent);
}
.flame {
  display: inline-block;
  width: 16px;
  height: 20px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #ffd34a, #ff7a1a 55%, #e5381b);
  transform: rotate(-8deg);
}
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: ticker 40s linear infinite; padding: 0 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .slides { transition: none; } }
.win { width: 72px; flex: 0 0 72px; text-align: center; border: 0; background: none; padding: 0; cursor: pointer; }
.win img { width: 72px; height: 96px; border-radius: 12px; object-fit: cover; display: block; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); background: #ddd; }
.win .who { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.win .who em { font-style: normal; color: var(--red); }
.win .amt { display: flex; align-items: center; justify-content: center; gap: 3px; font-weight: 800; font-size: 15px; color: var(--gold-text); }
.win .amt .coin { width: 15px; height: 15px; font-size: 9px; }

/* 公告 */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 10px;
  padding: 0 4px 0 6px;
}
.speaker { width: 22px; height: 22px; color: #8a6a1a; flex: none; }
.notice-text { flex: 1; overflow: hidden; white-space: nowrap; color: #555; font-size: 15px; }
.notice-text span { display: inline-block; padding-left: 100%; animation: notice 22s linear infinite; }
@keyframes notice { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .notice-text span { animation: none; padding-left: 0; } }
.mail { flex: none; width: 36px; height: 30px; border: 0; border-radius: 6px; background: linear-gradient(#ffd25a, #f0a400); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mail svg { width: 22px; height: 22px; }

/* 分类 */
.tabs {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 6px 0 4px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #8a8a8a;
  font-size: 16px;
  letter-spacing: 3px;
  cursor: pointer;
}
.tabs button.active { color: var(--gold-text); font-weight: 700; }
.tabs svg { width: 36px; height: 36px; display: block; }
.tabs button:not(.active) svg { filter: saturate(.8); }

.section-head { display: flex; align-items: center; gap: 8px; margin: 12px 2px 10px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 21px; font-weight: 700; color: #333; }
.section-head .muted { color: var(--muted); font-size: 12px; }
.more { margin-left: auto; color: var(--muted); font-size: 16px; }

/* 游戏卡：图标加金色名称条 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.grid.small { gap: 10px 8px; }
.tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4e4b0, #d9b866);
  box-shadow: 0 2px 6px rgba(120, 90, 20, .25);
  cursor: pointer;
  text-align: center;
  outline: none;
}
.tile:focus-visible { box-shadow: 0 0 0 3px #1f6fd6; }
.tile .icon { position: relative; aspect-ratio: 3 / 4; background: #e9e1c9; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile .name {
  padding: 5px 4px 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #e0b24a, #b8862a);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.tile .wg {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tile .fav {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  line-height: 26px;
  padding: 0;
  cursor: pointer;
}
.tile .fav.on { background: rgba(255, 255, 255, .9); color: #f0a400; }
.tile.pending .icon::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .55); }
.tile .badge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.tile.pending .name { background: linear-gradient(180deg, #b5b5b5, #8d8d8d); }

/* 全部游戏页 */
.subbar {
  position: sticky;
  top: var(--top-h);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin: -10px -12px 10px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}
.subbar h1 { margin: 0; font-size: 19px; font-weight: 600; }
.back { position: absolute; left: 6px; top: 0; width: 44px; height: 46px; }
.back::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 11px;
  height: 11px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
}
.search { position: relative; display: block; margin-bottom: 10px; }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 16px;
  border: 1.5px solid #d6d6d6;
  border-radius: 20px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.search input:focus { border-color: var(--gold); }
.search svg { position: absolute; right: 12px; top: 9px; width: 22px; height: 22px; color: var(--gold-text); }
.browser { display: flex; gap: 10px; align-items: flex-start; }
.side { display: flex; flex-direction: column; gap: 10px; width: 76px; flex: none; position: sticky; top: calc(var(--top-h) + 56px); }
.side button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0 8px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #999;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  cursor: pointer;
}
.side button svg { width: 28px; height: 28px; display: block; }
.side button.active { background: linear-gradient(180deg, #edb52c, #d69a0c); color: #fff; font-weight: 700; }
.browse-main { flex: 1; min-width: 0; }
.seg { display: flex; gap: 8px; margin-bottom: 10px; }
.seg button {
  flex: 1;
  height: 34px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #f4f4f4;
  color: #777;
  font-size: 15px;
  cursor: pointer;
}
.seg button.active { background: linear-gradient(180deg, #edb52c, #d69a0c); border-color: transparent; color: #fff; }
.grid.small .tile .name { font-size: 12px; padding: 4px 2px 5px; }
.empty { margin: 40px 0; text-align: center; color: var(--muted); }

/* 记录：筛选、区间汇总、按天分组的卡片列表、展开详情 */
.win-pos { color: var(--red); }
.win-neg { color: #1a9a4a; }
.rec-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rec-range { display: flex; padding: 3px; border-radius: 10px; background: #e9e9e9; }
.rec-range button {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.rec-range button.active { background: #fff; color: var(--gold-text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rec-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rec-cats::-webkit-scrollbar { display: none; }
.rec-cats button {
  flex: none;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
}
.rec-cats button.active { border-color: transparent; background: linear-gradient(180deg, #edb52c, #d69a0c); color: #fff; }
.rec-summary {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr;
  margin-bottom: 4px;
  padding: 12px 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e6, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  text-align: center;
}
.rec-summary div + div { border-left: 1px solid #f0e2bd; }
.rec-summary span { display: block; color: var(--muted); font-size: 12px; }
.rec-summary b { display: block; margin-top: 2px; font-size: 16px; font-variant-numeric: tabular-nums; color: #333; }
.rec-summary .sum-net b { font-size: 19px; }
.rec-summary .sum-net b.win-pos { color: var(--red); }
.rec-summary .sum-net b.win-neg { color: #1a9a4a; }
.records { display: flex; flex-direction: column; gap: 8px; }
/* 日期组头贴在副标题栏下方，滚动长列表时始终知道看的是哪一天。 */
.rec-day {
  position: sticky;
  top: calc(var(--top-h) + 46px);
  z-index: 5;
  margin: 8px -12px 0;
  padding: 6px 14px;
  background: rgba(242, 242, 242, .96);
  color: #888;
  font-size: 13px;
  font-weight: 600;
}
.rec-card { border-radius: 12px; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .06); overflow: hidden; }
.rec-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.rec-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #eee; }
.rec-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rec-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-room { flex: none; padding: 0 6px; border-radius: 4px; background: #fdf1d3; color: #b07a08; font-size: 11px; line-height: 18px; }
.rec-meta { margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rec-net { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #555; }
.rec-net.win-pos { color: var(--red); }
.rec-net.win-neg { color: #1a9a4a; }
.rec-chev { width: 8px; height: 8px; border-right: 2px solid #bbb; border-bottom: 2px solid #bbb; transform: rotate(45deg); transition: transform .2s; }
.rec-card.open .rec-chev { transform: rotate(-135deg); }
.rec-detail { margin: 0 12px; padding: 10px 0 12px; border-top: 1px dashed #e6e6e6; font-size: 13px; }
.rd-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.rd-label { flex: none; color: var(--muted); }
.rd-value { text-align: right; font-variant-numeric: tabular-nums; }
.rd-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 3px 0 6px; }
.rd-id code { font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; color: #555; word-break: break-all; user-select: all; }
.rd-copy { height: 24px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 12px; background: #fff; color: var(--gold-text); font-size: 12px; cursor: pointer; }
.rd-areas { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fafafa; }
.rd-sub { margin-bottom: 4px; color: #888; font-size: 12px; }
.rd-area { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.rec-state { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 36px 0; color: var(--muted); text-align: center; }
.rec-state svg { width: 72px; height: 72px; }
.rec-state p { margin: 0; font-size: 14px; }
.rec-action {
  height: 34px;
  padding: 0 22px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, #e8ac1c, #d99a0b);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.rec-more {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  color: #777;
  font-size: 14px;
  cursor: pointer;
}
.rec-more:disabled { cursor: default; opacity: .7; }
.rec-end { margin: 14px 0 4px; text-align: center; color: #bbb; font-size: 12px; }
/* 加载骨架：首屏数据回来前占位，避免空白闪一下再出列表。 */
.rec-card.skeleton {
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  grid-template-rows: 18px 14px;
  gap: 6px 10px;
  padding: 11px 12px;
}
.skeleton i {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skeleton .sk-icon { grid-row: 1 / 3; height: 44px; border-radius: 10px; }
.skeleton .sk-line.short { width: 60%; }
.skeleton .sk-amount { grid-column: 3; grid-row: 1 / 3; align-self: center; height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } .rec-chev { transition: none; } }

/* 「即将上线」分隔：跨满整行，把未开放的游戏与可玩游戏分开 */
.soon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 -2px;
  color: #a0a0a0;
  font-size: 13px;
  letter-spacing: 1px;
}
.soon::before, .soon::after { content: ""; flex: 1; height: 1px; background: #dcdcdc; }

/* 我的 */
#pageMine { padding: 0 0 18px; }
.mine-head {
  padding: 22px 16px 54px;
  color: #fff;
  background: linear-gradient(160deg, #eeb128, var(--gold) 50%, #d9960a);
}
.mine-user { display: flex; align-items: center; gap: 14px; }
.mine-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold-text);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.welcome { margin: 0; font-size: 15px; }
.mine-name { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.mine-name a { color: #fff7d6; text-decoration: underline; }
.mine-wallet { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 24px; }
.mine-wallet strong { font-variant-numeric: tabular-nums; }
.card-list {
  position: relative;
  margin: -36px 12px 12px;
  padding: 4px 0;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.card-list + .card-list { margin-top: 0; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  background: none;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.row + .row { border-top: 1px solid #f0f0f0; }
.row em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--gold-text); }
.row::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #aaa;
  border-top: 2px solid #aaa;
  transform: rotate(45deg);
}
.row:has(em)::after { margin-left: 8px; }
.row i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.row i svg { width: 18px; height: 18px; fill: #fff; }
/* 今日战绩：金色头部里的半透明卡，点击进入游戏记录 */
.mine-today {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  text-align: center;
}
.mine-today div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.mine-today span { display: block; font-size: 12px; opacity: .9; }
.mine-today b { display: block; margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
/* 金色底上红绿对比不足，改成白字，盈亏只靠正负号区分 */
.mine-today b.win-pos, .mine-today b.win-neg { color: #fff; }
.r1 { background: linear-gradient(#56d48a, #18a957); }
.r2 { background: linear-gradient(#ffcb3d, #f0a400); }
.r3 { background: linear-gradient(#c36bff, #9140e6); }
.r4 { background: linear-gradient(#56b6ff, #1f7fe0); }
.r5 { background: linear-gradient(#ff8a7a, #e5484d); }

/* 底部导航 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, .08);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #999; font-size: 13px; }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tabbar a.active { color: var(--gold-text); }

/* 登录注册弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}
.sheet { width: 100%; max-width: 380px; border-radius: 14px; overflow: hidden; background: #f4f4f4; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  color: #fff;
  font-size: 20px;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #e8ac1c, #d99a0b);
}
.sheet-head .brand-mark { width: 34px; height: 34px; font-size: 15px; }
.sheet-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 14px 0;
  padding: 14px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(120deg, #2b5cd6, #6a3de8 60%, #b03fd9);
}
.sheet-banner strong { font-size: 18px; }
.sheet-banner span { font-size: 12px; opacity: .92; }
.auth-tabs { display: flex; margin: 8px 14px 0; border-bottom: 1px solid #ddd; }
.auth-tabs button {
  flex: 1;
  height: 46px;
  border: 0;
  background: none;
  font-size: 17px;
  letter-spacing: 3px;
  color: #444;
  cursor: pointer;
  position: relative;
}
.auth-tabs button.active { color: var(--gold-text); }
.auth-tabs button.active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 3px; border-radius: 2px; background: var(--gold); }
.auth-form { padding: 6px 14px 16px; }
.hint { margin: 8px 0; font-size: 14px; color: #444; }
.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 12px;
  border: 1.5px solid #d6d6d6;
  border-radius: 9px;
  background: #f7f7f7;
}
.field:focus-within { border-color: var(--gold); background: #fff; }
.field i { width: 18px; height: 18px; margin: 0 6px 0 12px; flex: none; background: #888; }
.f-user { border-radius: 50% 50% 4px 4px; clip-path: polygon(30% 0, 70% 0, 70% 40%, 100% 60%, 100% 100%, 0 100%, 0 60%, 30% 40%); }
.f-lock { border-radius: 3px; clip-path: polygon(25% 40%, 25% 15%, 35% 0, 65% 0, 75% 15%, 75% 40%, 100% 40%, 100% 100%, 0 100%, 0 40%, 32% 40%, 32% 18%, 68% 18%, 68% 40%); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 15px; outline: none; }
.field input::placeholder { color: #aaa; }
.eye {
  position: relative;
  width: 40px;
  height: 100%;
  flex: none;
  cursor: pointer;
}
.eye::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 20px;
  height: 13px;
  border: 2px solid #bbb;
  border-radius: 50% / 60%;
}
.eye::after { content: ""; position: absolute; left: 7px; top: 21px; width: 26px; height: 2px; background: #bbb; transform: rotate(-35deg); }
.eye.show::after { display: none; }
.strength { display: flex; align-items: center; gap: 6px; margin: -2px 0 12px; font-size: 13px; color: #444; }
.strength span { margin-right: 6px; }
.strength i { flex: 1; height: 6px; border-radius: 3px; background: #ddd; }
.strength[data-level="1"] i:nth-child(-n+2) { background: var(--red); }
.strength[data-level="2"] i:nth-child(-n+3) { background: #f0a400; }
.strength[data-level="3"] i:nth-child(-n+4) { background: #18a957; }
.strength[data-level="4"] i { background: #18a957; }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 14px; color: #444; }
.check input { width: 20px; height: 20px; accent-color: #18a957; margin: 0; }
.check a { color: var(--gold-text); }
.form-error { min-height: 20px; margin: 0 0 6px; color: var(--red); font-size: 13px; }
.submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #e8ac1c, #d99a0b);
  color: #fff;
  font-size: 18px;
  letter-spacing: 4px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(217, 154, 11, .35);
}
.submit:disabled { opacity: .6; cursor: default; }
.switch { margin: 12px 0 0; text-align: center; color: #888; font-size: 14px; }
.switch a { color: var(--gold-text); }
.close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.close::before, .close::after { content: ""; position: absolute; left: 10px; top: 19px; width: 20px; height: 2.5px; background: #fff; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.info-body { padding: 14px 16px 18px; font-size: 14px; color: #444; max-height: 60vh; overflow-y: auto; }
.info-body h4 { margin: 12px 0 4px; font-size: 15px; color: #333; }
.info-body p { margin: 0 0 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(420px, 86vw);
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 14px;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  white-space: pre-line;
}
.toast.show { opacity: 1; }
.muted { color: var(--muted); }
