﻿/* 4 屏 UI（大厅/比赛/俱乐部/我的）—— 类名统一 h- 前缀，作用域在各页 .h-phone 下
   由 tools/design_home_b.html + tools/design_pages.html 提取、去全局化后生成 */
/* 由 tools/design_home_b.html + design_pages.html 提取，类名统一加 h- 前缀 */
/* ---------- home_b ---------- */

  .h-phone {
    --gold: #e9b455;
    --gold-hi: #ffd98a;
    --muted: rgba(235, 228, 214, 0.56);
    --line: rgba(233, 180, 85, 0.16);
  }


  .h-phone {
    position: relative; width: 390px; height: 844px; overflow: hidden;
    background:
      radial-gradient(120% 58% at 50% -8%, rgba(96, 22, 18, 0.55), transparent 62%),
      radial-gradient(90% 40% at 50% 108%, rgba(120, 74, 20, 0.22), transparent 60%),
      linear-gradient(180deg, #0d0706 0%, #0a0706 40%, #070505 100%);
  }
  .h-scroll { position: relative; z-index: 1; height: 100%; padding-bottom: 104px; }

  /* ---------------- top bar ---------------- */
  .h-top {
    position: absolute; left: 0; right: 0; top: 0; z-index: 4;
    display: flex; align-items: center; gap: 10px; padding: 14px 18px 0;
  }
  .h-brand { display: flex; align-items: center; gap: 8px; }
  .h-brand .h-pip {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    background: linear-gradient(160deg, #ffd67e, #b87a1e); color: #2a1206; font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  }
  .h-brand b { font-size: 15px; letter-spacing: 1.2px; font-weight: 800; }
  .h-brand b em { font-style: normal; color: var(--gold-hi); }
  .h-wallet2 {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
    padding: 0 8px 0 13px; height: 34px; border-radius: 999px;
    background: rgba(12, 9, 7, .62); border: 1px solid rgba(233, 180, 85, .38);
    backdrop-filter: blur(8px);
  }
  .h-wallet2 b { font-size: 14px; color: #ffe6b3; font-variant-numeric: tabular-nums; }
  .h-wallet2 i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, #ffd06a, #d99a2c); color: #2a1a05; font-size: 15px; font-weight: 900; font-style: normal; }

  /* ---------------- hero ---------------- */
  .h-hero { position: relative; height: 348px; }
  /* 主视觉：扇形皇家同花顺 + 筹码堆（无桌面） */
  .h-glow {
    position: absolute; left: 50%; top: 96px; width: 320px; height: 220px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(214, 142, 38, .30), rgba(214, 142, 38, .06) 62%, transparent 76%);
    filter: blur(6px);
  }
  .h-crest-bg {
    position: absolute; left: 50%; top: 70px; transform: translateX(-50%);
    font-size: 150px; line-height: 1; color: rgba(255, 226, 168, .045);
    text-shadow: 0 0 40px rgba(255, 200, 110, .08); user-select: none;
  }
  .h-fan { position: absolute; left: 50%; top: 132px; width: 0; height: 0; }
  .h-fan i {
    position: absolute; left: 0; top: 0; width: 64px; height: 90px; margin: -45px 0 0 -32px;
    border-radius: 7px; background: linear-gradient(168deg, #fffdf7 0%, #f7efe0 62%, #e9dcc4 100%);
    border: 1px solid rgba(255, 224, 168, .85);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .55), 0 0 0 1px rgba(70, 38, 6, .28), inset 0 1px 0 #fff;
    transform-origin: 50% 130%;
  }
  .h-fan i::before {
    position: absolute; left: 6px; top: 4px; font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
    font-size: 17px; font-weight: 700; color: #16181d; letter-spacing: -.5px;
  }
  .h-fan i::after {
    position: absolute; left: 7px; top: 22px; font-size: 12px; color: #16181d;
  }
  .h-fan i.h-c1 { transform: rotate(-24deg) translate(-6px, 6px); }
  .h-fan i.h-c2 { transform: rotate(-12deg) translate(-3px, 1px); }
  .h-fan i.h-c3 { transform: rotate(0deg); }
  .h-fan i.h-c4 { transform: rotate(12deg) translate(3px, 1px); }
  .h-fan i.h-c5 { transform: rotate(24deg) translate(6px, 6px); }
  .h-fan i.h-c1::before { content: "A"; } .h-fan i.h-c1::after { content: "♠"; }
  .h-fan i.h-c2::before { content: "K"; } .h-fan i.h-c2::after { content: "♠"; }
  .h-fan i.h-c3::before { content: "Q"; } .h-fan i.h-c3::after { content: "♠"; }
  .h-fan i.h-c4::before { content: "J"; } .h-fan i.h-c4::after { content: "♠"; }
  .h-fan i.h-c5::before { content: "10"; } .h-fan i.h-c5::after { content: "♠"; }
  /* 底部的筹码堆 */
  .h-potchips { position: absolute; left: 64%; top: 166px; transform: translateX(-50%) rotate(-5deg); width: 58px; height: 58px; }
  .h-potchips i {
    position: absolute; width: 56px; height: 56px; background: url("../../assets/img/Atlas/Cowboy/chip_table_1.webp") center / contain no-repeat;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .65));
  }
  .h-potchips i:nth-child(1) { left: 8px; top: 16px; background-image: url("../../assets/img/Atlas/Cowboy/chip_table_3.webp"); }
  .h-potchips i:nth-child(2) { left: 1px; top: 8px; }
  .h-potchips i:nth-child(3) { left: 4px; top: 0; background-image: url("../../assets/img/Atlas/Cowboy/chip_g_1.webp"); }

  /* 漂浮光点 */
  .h-spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe6b8;
    box-shadow: 0 0 8px rgba(255, 214, 138, .95); }
  .h-s1 { left: 22%; top: 26%; } .h-s2 { right: 20%; top: 20%; width: 2px; height: 2px; }
  .h-s3 { left: 30%; top: 62%; width: 2px; height: 2px; } .h-s4 { right: 26%; top: 54%; }

  .h-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
    background: linear-gradient(180deg, transparent, rgba(9, 6, 5, .82) 62%, #090605 100%); }

  .h-hero-copy { position: absolute; left: 22px; right: 22px; bottom: 66px; z-index: 2; }
  .h-hero-copy h1 { margin: 0; font-size: 26px; letter-spacing: 1px; text-shadow: 0 6px 18px rgba(0, 0, 0, .85); }
  .h-hero-copy h1 em { font-style: normal; color: var(--gold-hi); }
  .h-hero-copy p { margin: 6px 0 0; font-size: 11.5px; color: rgba(240, 232, 218, .6); letter-spacing: .3px; }

  .h-hero-cta { position: absolute; left: 16px; right: 16px; bottom: 6px; z-index: 3; display: flex; align-items: center; gap: 8px; }
  .h-segs { display: flex; gap: 6px; flex: 1; }
  .h-seg {
    flex: 1; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: rgba(16, 11, 9, .82); border: 1px solid rgba(233, 180, 85, .22);
    font-size: 10px; color: rgba(240, 232, 218, .62); font-variant-numeric: tabular-nums;
    backdrop-filter: blur(6px);
  }
  .h-seg b { display: block; font-size: 12.5px; color: #ffe6b3; }
  .h-seg.h-on { background: linear-gradient(180deg, #ffd67e, #d2932a); border-color: rgba(255, 226, 168, .7); color: #4a2c08; }
  .h-seg.h-on b { color: #2b1a05; }
  .h-play {
    width: 112px; height: 46px; border: 0; border-radius: 13px; cursor: pointer;
    background: linear-gradient(180deg, #ffd67e, #efb347 52%, #c8871f);
    color: #2b1a05; font-size: 15px; font-weight: 900; letter-spacing: .5px;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .45);
  }

  /* ---------------- section ---------------- */
  .h-sec { display: flex; align-items: center; gap: 8px; margin: 20px 20px 10px; }
  .h-sec i { width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #ffd98a, #b87a1e); }
  .h-sec b { font-size: 14px; letter-spacing: .4px; }
  .h-sec span { margin-left: auto; font-size: 11px; color: var(--muted); }

  /* ---------------- room rows ---------------- */
  .h-room {
    display: flex; align-items: center; gap: 11px; margin: 0 16px 9px; padding: 11px 12px;
    border-radius: 16px; border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(24, 18, 15, .92), rgba(12, 9, 8, .94));
    box-shadow: 0 10px 22px rgba(0, 0, 0, .38);
  }
  .h-stack { display: flex; flex: none; }
  .h-stack i {
    width: 25px; height: 25px; border-radius: 50%; margin-left: -8px;
    border: 1.5px solid rgba(12, 9, 8, .95);
    background: #2a1712 url("../../assets/img/Atlas/UITexas/hand_iocn_default_avatar.webp") center/cover no-repeat;
  }
  .h-stack i:first-child { margin-left: 0; }
  .h-stack i.h-empty { background: rgba(255, 255, 255, .04); border: 1.5px dashed rgba(233, 180, 85, .45); }
  .h-room .h-info { flex: 1; min-width: 0; }
  .h-room .h-info b { font-size: 14px; white-space: nowrap; }
  .h-room .h-info b small { font-size: 10px; font-weight: 700; color: #2a1a05; background: linear-gradient(180deg, #ffd67e, #e0a63a);
    border-radius: 5px; padding: 1px 4px; margin-left: 5px; vertical-align: 1px; }
  .h-room .h-info p { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); white-space: nowrap;
    font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
  .h-room .h-info p em { font-style: normal; color: #ffd98a; }
  .h-sit {
    flex: none; height: 33px; padding: 0 14px; border: 0; border-radius: 11px; cursor: pointer;
    background: linear-gradient(180deg, #ffd67e, #efb347 55%, #c8871f); color: #2b1a05;
    font-size: 12.5px; font-weight: 800; box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
  }
  .h-sit.h-ghost { background: rgba(255, 255, 255, .05); color: #ffe6b3; border: 1px solid rgba(233, 180, 85, .34); box-shadow: none; }

  /* ---------------- mtt ---------------- */
  .h-mtt {
    position: relative; margin: 4px 16px 0; border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(233, 180, 85, .26);
    background:
      radial-gradient(80% 140% at 92% 0%, rgba(255, 176, 64, .24), transparent 60%),
      linear-gradient(120deg, #2a1408, #14100b 70%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .42);
  }
  .h-mtt .h-in { display: flex; align-items: center; gap: 10px; padding: 12px 13px; }
  .h-mtt .h-cup { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
    background: rgba(233, 180, 85, .14); border: 1px solid rgba(233, 180, 85, .34); font-size: 17px; }
  .h-mtt .h-txt { flex: 1; min-width: 0; }
  .h-mtt .h-txt b { font-size: 13.5px; display: block; white-space: nowrap; }
  .h-mtt .h-txt p { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .h-mtt .h-txt p em { font-style: normal; color: #ffd98a; }
  .h-mtt .h-cd { flex: none; text-align: right; }
  .h-mtt .h-cd small { display: block; font-size: 9px; color: var(--muted); }
  .h-mtt .h-cd b { font-size: 13.5px; color: #ffd98a; font-variant-numeric: tabular-nums; letter-spacing: .4px; }
  .h-mtt .h-strip { display: flex; align-items: center; gap: 8px; padding: 0 13px 11px; }
  .h-mtt .h-strip span { font-size: 9.5px; color: rgba(240, 232, 218, .55); white-space: nowrap; }
  .h-mtt .h-strip .h-p { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
  .h-mtt .h-strip .h-p i { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, #ffd67e, #e0a63a); }

  /* 今日战绩条 */
  .h-statsbar {
    display: flex; margin: 12px 16px 0; padding: 11px 6px;
    border-radius: 16px; border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 16, 13, .9), rgba(11, 9, 8, .92));
  }
  .h-statsbar > div { flex: 1; text-align: center; position: relative; }
  .h-statsbar > div + div::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255, 255, 255, .06); }
  .h-statsbar span { display: block; font-size: 9.5px; color: var(--muted); }
  .h-statsbar b { display: block; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; color: #ffe6b3; }
  .h-statsbar b.h-up { color: #5fe0c0; }
  /* ---------------- nav ---------------- */
  .h-nav {
    position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 5; height: 62px;
    display: flex; align-items: center; justify-content: space-around; padding: 0 6px;
    border-radius: 22px; border: 1px solid rgba(233, 180, 85, .22);
    background: linear-gradient(180deg, rgba(22, 17, 14, .96), rgba(10, 8, 7, .98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 226, 168, .10);
    backdrop-filter: blur(12px);
  }
  .h-nav .h-it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; color: rgba(235, 228, 214, .42); }
  .h-nav .h-it i { font-size: 16px; font-style: normal; line-height: 1; }
  .h-nav .h-it.h-on { color: #ffe6b3; }
  .h-nav .h-it.h-on i { filter: drop-shadow(0 0 8px rgba(233, 180, 85, .9)); }
  .h-nav .h-it.h-on::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #e9b455; }

/* ---------- pages ---------- */

  .h-phone {
    --gold-1: #fff4d2;
    --gold-2: #ffd98a;
    --gold-3: #e9b455;
    --gold-4: #a8701c;
    --line: rgba(233, 180, 85, .18);
    --muted: rgba(238, 231, 218, .56);
    --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    --num: "Bahnschrift", "DIN Alternate", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
    --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, sans-serif;
  }


  .h-phone {
    position: relative; width: 390px; height: 844px; overflow: hidden;
    background:
      radial-gradient(120% 52% at 50% -8%, rgba(96, 52, 14, .40), transparent 62%),
      radial-gradient(90% 40% at 50% 106%, rgba(110, 70, 20, .18), transparent 60%),
      linear-gradient(180deg, #0b0806 0%, #070504 46%, #050403 100%);
  }
  .h-phone::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(233, 180, 85, .14); pointer-events: none; z-index: 4; }
  .h-screen { position: relative; z-index: 1; height: 100%; padding: 0 16px 92px; overflow: hidden; }

  /* 顶部 */
  .h-bar { display: flex; align-items: center; gap: 10px; padding: 16px 2px 12px; }
  .h-bar h1 { margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: 2.4px; font-weight: 700;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 34%, var(--gold-3) 70%, #8f5c14);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  .h-bar .h-sub { margin-left: 2px; font-size: 10px; letter-spacing: 1px; color: rgba(238, 231, 218, .4); }
  .h-pill {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 7px 0 12px;
    border-radius: 999px; border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(40, 26, 10, .8), rgba(14, 10, 7, .9));
  }
  .h-pill b { font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 13.5px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
  .h-pill i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, #ffe4a6, #d99a2c 60%, #8f5c14); color: #2a1206; font-size: 13px; font-weight: 900; font-style: normal; }

  /* 区块标题 */
  .h-sec { display: flex; align-items: center; gap: 8px; margin: 16px 2px 10px; }
  .h-sec i { width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-2), var(--gold-4)); }
  .h-sec b { font-size: 13.5px; letter-spacing: .8px; }
  .h-sec span { margin-left: auto; font-size: 10.5px; color: rgba(233, 180, 85, .7); }

  /* 通用卡片 */
  .h-card { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(26, 20, 14, .92), rgba(11, 9, 7, .94));
    box-shadow: 0 12px 26px rgba(0, 0, 0, .42); }

  /* 按钮 */
  .h-go { height: 34px; padding: 0 15px; border: 0; cursor: pointer; border-radius: 4px;
    background: linear-gradient(180deg, #fff3d2, #ffd98a 24%, #e2ab4c 62%, #a86f1c);
    color: #2b1a05; font-size: 12.5px; font-weight: 800; letter-spacing: .6px;
    box-shadow: 0 0 0 1px rgba(255, 226, 168, .45), 0 8px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
  .h-go.h-ghost { background: transparent; color: var(--gold-2); border: 1px solid rgba(233, 180, 85, .4); box-shadow: none; clip-path: none; border-radius: 4px; }

  /* 底部导航 */
  .h-nav { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 5; height: 60px;
    display: flex; align-items: center; justify-content: space-around;
    border-radius: 20px; border: 1px solid rgba(233, 180, 85, .28);
    background: linear-gradient(180deg, rgba(26, 19, 13, .97), rgba(8, 6, 5, .99));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 238, 200, .1);
    backdrop-filter: blur(12px); }
  .h-nav .h-it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; letter-spacing: .6px; color: rgba(238, 231, 218, .38); }
  .h-nav .h-it i { font-size: 15px; font-style: normal; line-height: 1; }
  .h-nav .h-it.h-on { color: var(--gold-2); }
  .h-nav .h-it.h-on i { filter: drop-shadow(0 0 8px rgba(233, 180, 85, .9)); }
  .h-nav .h-it.h-on::after { content: ""; width: 11px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }

  /* ================= 比赛 ================= */
  .h-feat { position: relative; overflow: hidden; padding: 14px 14px 12px;
    background:
      radial-gradient(90% 140% at 92% -10%, rgba(255, 176, 64, .28), transparent 60%),
      linear-gradient(120deg, #2c1708, #150f09 72%);
    border: 1px solid rgba(233, 180, 85, .34); border-radius: 18px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 238, 200, .1); }
  .h-feat .h-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; letter-spacing: 1px; color: #3a2208;
    padding: 2px 7px; border-radius: 3px; background: linear-gradient(180deg, #ffe4a6, #d99a2c); }
  .h-feat h2 { margin: 9px 0 0; font-family: var(--serif); font-size: 18px; letter-spacing: 1.4px; }
  .h-feat .h-prize { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
  .h-feat .h-prize b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 29px; letter-spacing: 0; color: var(--gold-2); }
  .h-feat .h-prize span { font-size: 10px; letter-spacing: 1px; color: rgba(255, 226, 168, .6); }
  .h-feat .h-meta { margin-top: 8px; display: flex; gap: 14px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .h-feat .h-meta em { font-style: normal; color: var(--gold-2); }
  .h-feat .h-foot { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
  .h-feat .h-cd { flex: 1; }
  .h-feat .h-cd small { display: block; font-size: 9px; letter-spacing: 1px; color: rgba(255, 226, 168, .55); }
  .h-feat .h-cd b { font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 17px;  color: var(--gold-2); font-variant-numeric: tabular-nums; }

  .h-chips-row { display: flex; gap: 7px; margin: 14px 0 4px; }
  .h-chip { flex: 1; height: 32px; display: grid; place-items: center; font-size: 11px; letter-spacing: .6px;
    color: rgba(238, 231, 218, .6); border: 1px solid var(--line); border-radius: 4px;
    background: linear-gradient(180deg, rgba(24, 18, 13, .9), rgba(10, 8, 6, .92)); }
  .h-chip.h-on { color: #2b1a05; background: linear-gradient(180deg, #fff0c8, #ffd98a 30%, #e2ab4c 70%, #a86f1c);
    border-color: rgba(255, 226, 168, .7); font-weight: 800; }

  .h-mtt { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 15px; margin-bottom: 9px; }
  .h-mtt .h-crest { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px;
    background: rgba(233, 180, 85, .12); border: 1px solid rgba(233, 180, 85, .32); font-size: 17px; }
  .h-mtt .h-info { flex: 1; min-width: 0; }
  .h-mtt .h-info b { font-size: 13.5px; letter-spacing: .3px; display: block; white-space: nowrap; }
  .h-mtt .h-info p { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .h-mtt .h-info p em { font-style: normal; color: var(--gold-2); }
  .h-mtt .h-bar2 { margin-top: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
  .h-mtt .h-bar2 i { display: block; height: 100%; background: linear-gradient(90deg, #a8701c, var(--gold-2)); }
  .h-mtt .h-state { flex: none; text-align: right; }
  .h-mtt .h-state small { display: block; font-size: 9px; letter-spacing: .6px; color: rgba(238, 231, 218, .42); }
  .h-mtt .h-state .h-live { color: #63dcc0; }
  .h-mtt .h-state .h-soon { color: var(--gold-2); }

  /* 排行榜 */
  .h-rank { padding: 6px 13px; }
  .h-rank .h-r { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
  .h-rank .h-r:last-child { border-bottom: 0; }
  .h-rank .h-no { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%;
    font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 10px; color: #2b1a05; background: linear-gradient(180deg, #ffe4a6, #d99a2c); }
  .h-rank .h-no.h-n2 { background: linear-gradient(180deg, #e8e8e8, #a8a8a8); }
  .h-rank .h-no.h-n3 { background: linear-gradient(180deg, #d9b08c, #a8702c); }
  .h-rank b { flex: 1; font-weight: 600; }
  .h-rank em { font-style: normal; font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--gold-2); }
  .h-strip { display: flex; align-items: center; gap: 9px; padding: 12px 13px; font-size: 11px; color: var(--muted); }
  .h-strip b { font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 15px; color: var(--gold-2); }
  /* ================= 俱乐部 ================= */
  .h-club-hero { position: relative; overflow: hidden; padding: 16px 14px 14px; border-radius: 18px;
    border: 1px solid rgba(233, 180, 85, .3);
    background:
      radial-gradient(80% 140% at 88% -10%, rgba(255, 176, 64, .22), transparent 60%),
      linear-gradient(140deg, #241708, #120e09 72%); }
  .h-club-hero .h-row1 { display: flex; align-items: center; gap: 12px; }
  .h-club-crest { width: 54px; height: 54px; flex: none; display: grid; place-items: center; transform: rotate(45deg);
    border: 1px solid rgba(255, 214, 138, .6); border-radius: 6px;
    background: linear-gradient(160deg, rgba(255, 226, 168, .2), rgba(60, 34, 8, .55));
    box-shadow: 0 0 16px rgba(233, 180, 85, .22), inset 0 0 10px rgba(255, 226, 168, .22); }
  .h-club-crest span { transform: rotate(-45deg); font-size: 22px; color: var(--gold-2); }
  .h-club-hero .h-name { flex: 1; min-width: 0; }
  .h-club-hero .h-name b { font-family: var(--serif); font-size: 17px; letter-spacing: 1.6px; }
  .h-club-hero .h-name p { margin: 5px 0 0; font-size: 10px; letter-spacing: .8px; color: rgba(238, 231, 218, .48); }
  .h-club-hero .h-nums { display: flex; gap: 0; margin-top: 14px; }
  .h-club-hero .h-nums div { flex: 1; text-align: center; position: relative; }
  .h-club-hero .h-nums div + div::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(233, 180, 85, .26), transparent); }
  .h-club-hero .h-nums b { display: block; font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 17px; color: var(--gold-2); }
  .h-club-hero .h-nums span { font-size: 9px; letter-spacing: .8px; color: rgba(238, 231, 218, .45); }
  .h-club-hero .h-acts { display: flex; gap: 8px; margin-top: 14px; }
  .h-club-hero .h-acts .h-go { flex: 1; }

  .h-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .h-tile { padding: 12px; border-radius: 14px; border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(24, 18, 13, .9), rgba(11, 9, 7, .92)); }
  .h-tile .h-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
    background: rgba(233, 180, 85, .1); border: 1px solid rgba(233, 180, 85, .26); font-size: 14px; }
  .h-tile b { display: block; margin-top: 9px; font-size: 12.5px; letter-spacing: .4px; }
  .h-tile span { display: block; margin-top: 3px; font-size: 9.5px; color: rgba(238, 231, 218, .42); }

  .h-room { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; margin-bottom: 8px; }
  .h-room .h-dot { width: 8px; height: 8px; border-radius: 50%; background: #63dcc0; box-shadow: 0 0 8px rgba(99, 220, 192, .8); flex: none; }
  .h-room .h-info { flex: 1; min-width: 0; }
  .h-room .h-info b { font-size: 12.5px; }
  .h-room .h-info p { margin: 3px 0 0; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

  /* ================= 我的 ================= */
  .h-me-hero { display: flex; align-items: center; gap: 12px; padding: 6px 2px 4px; }
  .h-me-avatar { position: relative; width: 62px; height: 62px; flex: none; }
  .h-me-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .h-me-avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
    background: url("../../assets/img/Atlas/Common/images_touxiang_kuang.webp") center/contain no-repeat;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .65)); }
  .h-me-hero .h-who { flex: 1; min-width: 0; }
  .h-me-hero .h-who b { font-family: var(--serif); font-size: 18px; letter-spacing: 1.2px; }
  .h-me-hero .h-who .h-tags { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  .h-vip { font-size: 9px; letter-spacing: .6px; color: #3a2208; font-weight: 800; padding: 2px 6px; border-radius: 3px;
    background: linear-gradient(180deg, #ffe4a6, #d99a2c); }
  .h-me-hero .h-who p { margin: 6px 0 0; font-size: 10px; color: rgba(238, 231, 218, .45); letter-spacing: .6px; }

  .h-balance { padding: 14px; border-radius: 16px; border: 1px solid rgba(233, 180, 85, .26);
    background:
      radial-gradient(80% 140% at 90% -10%, rgba(255, 176, 64, .2), transparent 60%),
      linear-gradient(120deg, #241708, #120e09 72%); }
  .h-balance small { font-size: 9.5px; letter-spacing: 1px; color: rgba(255, 226, 168, .55); }
  .h-balance b { display: block; margin-top: 6px; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 27px; letter-spacing: 0; color: var(--gold-2); }
  .h-balance .h-acts { display: flex; gap: 8px; margin-top: 12px; }
  .h-balance .h-acts .h-go { flex: 1; height: 32px; font-size: 12px; }

  .h-stats { display: flex; margin: 12px 0 0; padding: 11px 4px; border-top: 1px solid rgba(233, 180, 85, .14); border-bottom: 1px solid rgba(233, 180, 85, .14); }
  .h-stats div { flex: 1; text-align: center; position: relative; }
  .h-stats div + div::before { content: ""; position: absolute; left: 0; top: 16%; height: 68%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(233, 180, 85, .24), transparent); }
  .h-stats span { display: block; font-size: 9px; letter-spacing: .9px; color: rgba(238, 231, 218, .42); }
  .h-stats b { display: block; margin-top: 4px; font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 15px; color: var(--gold-2); }
  .h-stats b.h-up { color: #63dcc0; }

  .h-menu { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: linear-gradient(180deg, rgba(24, 18, 13, .9), rgba(11, 9, 7, .92)); }
  .h-menu a { display: flex; align-items: center; gap: 11px; padding: 12px 13px; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .h-menu a:last-child { border-bottom: 0; }
  .h-menu .h-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px;
    background: rgba(233, 180, 85, .1); border: 1px solid rgba(233, 180, 85, .22); font-size: 13px; }
  .h-menu .h-t { flex: 1; }
  .h-menu .h-t b { font-size: 12.5px; font-weight: 600; }
  .h-menu .h-t span { display: block; margin-top: 2px; font-size: 9.5px; color: rgba(238, 231, 218, .38); }
  .h-menu .h-chev { color: rgba(233, 180, 85, .5); font-size: 15px; }


/* ---------------------------------------------------------------- 真实页面滚动修复
   设计稿里 .h-phone 是固定的 390x844 画框、内容溢出即裁掉；
   H5 里要让内容能滑动：phone 撑满视口，内容区自己滚。 */
.home-screen, .mtt-screen, .club-screen, .me-screen {
  display: flex;
  height: 100%;
  min-height: 0;
}
.home-screen .h-phone, .mtt-screen .h-phone, .club-screen .h-phone, .me-screen .h-phone {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.home-screen .h-phone > .h-scroll,
.mtt-screen .h-phone > .h-screen,
.club-screen .h-phone > .h-screen,
.me-screen .h-phone > .h-screen {
  flex: 1;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.home-screen .h-phone > .h-scroll::-webkit-scrollbar,
.mtt-screen .h-phone > .h-screen::-webkit-scrollbar,
.club-screen .h-phone > .h-screen::-webkit-scrollbar,
.me-screen .h-phone > .h-screen::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* 自适应缩放：设计稿 390x844，按视口等比缩放（main.js 设置 --fit） */
.home-screen, .mtt-screen, .club-screen, .me-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-screen .h-phone, .mtt-screen .h-phone, .club-screen .h-phone, .me-screen .h-phone {
  flex: none;
  width: 100%;
  height: 100%;
  transform: none;
}
/* 禁掉 iOS 双击放大 / 长按菜单，保留单指滚动 */
html, body, .app, .screen { touch-action: manipulation; }
* { -webkit-touch-callout: none; }

/* 设计稿里原本有 * { box-sizing: border-box }，去全局化时被删掉，
   导致 .h-screen 的左右 padding 撑出 32px、缩放后被裁边 */
.h-phone, .h-phone *, .h-phone *::before, .h-phone *::after {
  box-sizing: border-box;
}

/* flex 子项的 min-width:auto 会让内容把容器撑宽 → 右侧被裁 */
.home-screen, .mtt-screen, .club-screen, .me-screen,
.home-screen .h-phone, .mtt-screen .h-phone, .club-screen .h-phone, .me-screen .h-phone {
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
}
.h-phone .h-top, .h-phone .h-scroll, .h-phone .h-screen, .h-phone .h-nav {
  max-width: 100%;
}

/* ================= 比赛详情（复用大厅 h- 卡片/按钮） ================= */
.mtt-detail-screen .h-screen { padding-bottom: 10px; }
.h-back {
  width: 30px; height: 30px; flex: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--gold-2); font-size: 19px; line-height: 1;
}
.h-detail-card { padding: 10px 14px; margin-bottom: 2px; }
.h-detail-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12px; color: var(--muted);
}
.h-detail-row:last-child { border-bottom: 0; }
.h-detail-row b { color: var(--gold-2); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.h-detail-note { padding: 9px 0; font-size: 11px; color: rgba(238, 231, 218, .45); }
.h-detail-screen .h-tag2 {
  font-size: 10px; letter-spacing: .5px; color: var(--gold-2);
  border: 1px solid rgba(233, 180, 85, .35); border-radius: 999px; padding: 3px 9px;
}
.h-detail-actions {
  flex: none; display: flex; gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 6, 5, .55), rgba(8, 6, 5, .98) 40%);
}
.h-detail-actions .h-go { flex: 1; height: 42px; font-size: 13.5px; }
.h-detail-actions .h-go[disabled] { opacity: .55; filter: grayscale(.35); cursor: default; }

/* MTT result banner on the detail page */
.h-mtt-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 214, 142, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 39, 17, 0.9), rgba(16, 24, 30, 0.95));
}
.h-mtt-result > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.h-mtt-result b { color: #ffe3a8; font-size: 15px; }
.h-mtt-result span { color: #ffd477; font-size: 20px; font-weight: 900; }
.h-mtt-result small { color: #9c9180; font-size: 11px; }

