:root {
  /* ---------- 设计 token v1.0（详见 design-system.md） ---------- */
  /* 半透明薄层/描边的「墨色」：深色主题下是白，米白主题下是深墨。
     全站 rgba(255,255,255,...) 已统一改成 rgba(var(--ink-rgb),...)，
     这样描边、按压反馈、进度槽底一类的薄层能跟着皮肤自动翻转，不用写第二套。 */
  --ink-rgb: 255, 255, 255;
  /* 固定栏（顶栏 / 底部导航）底色。文字会跟 --text 翻转，所以栏底也必须跟着翻，
     否则米白皮肤下就是「深墨字压在深蓝玻璃上」（r165 对比度体检抓出来 1.12:1）。 */
  --bar-rgb: 10, 14, 42;
  /* 中性 · 夜空（层级靠亮度差，不靠阴影） */
  --night-950: #0A0E2A;  --night-800: #141939;  --night-700: #1B2148;
  --night-600: #232B5C;  --night-500: #2E376F;  --night-400: #4A548F;
  --night-300: #6B76A8;  --night-200: #8A94C7;  --night-100: #9BA4D4;
  --night-0:   #EEF1FF;

  /* 主色 · 星球青 */
  --cyan-50:  #E8F9FF;  --cyan-100: #C7EFFF;  --cyan-200: #96E2FF;
  --cyan-300: #63D3FF;  --cyan-400: #3EC6FF;  --cyan-500: #1FA9E6;
  --cyan-600: #1487BC;  --cyan-700: #0E6A94;  --cyan-900: #06344A;

  /* 辅色 · 紫（500 仅装饰，文字用 300） */
  --violet-200: #C3B6FF;  --violet-300: #9C88FF;
  --violet-500: #7C5AF5;  --violet-700: #4E2FAF;

  /* 语义色（危险色拆图形 / 文字两支） */
  --success: #35D49A;  --warning: #FFD166;
  --danger: #FF4E8E;   --danger-text: #FF7BA3;

  /* 徽章收集难度 token（与 SHARE_CSS 内一份保持一致；底色仅 10–15% 薄层） */
  --bdg-d1-bg: rgba(148,163,184,.10); --bdg-d1-bd: rgba(148,163,184,.32); --bdg-d1-fg: #CBD5E1; --bdg-d1-st: #94A3B8;
  --bdg-d2-bg: rgba(62,198,255,.12);  --bdg-d2-bd: rgba(62,198,255,.42);  --bdg-d2-fg: #BFE8FF; --bdg-d2-st: #3EC6FF;
  --bdg-d3-bg: rgba(52,211,153,.12);  --bdg-d3-bd: rgba(52,211,153,.42);  --bdg-d3-fg: #A7F3D0; --bdg-d3-st: #34D399;
  --bdg-d4-bg: rgba(240,180,41,.14);  --bdg-d4-bd: rgba(240,180,41,.52);  --bdg-d4-fg: #FFD77A; --bdg-d4-st: #F0B429;
  --bdg-d5-bg: rgba(192,132,252,.15); --bdg-d5-bd: rgba(192,132,252,.58); --bdg-d5-fg: #E9D5FF; --bdg-d5-st: #C084FC;

  /* 字体刻度 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
               "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --fs-caption: 11px;  --fs-meta: 12px;     --fs-small: 13px;
  --fs-body: 15px;     --fs-title-sm: 17px; --fs-title: 20px;
  --fs-h2: 24px;       --fs-h1: 30px;       --fs-num: 38px;

  /* 间距（4px 基数 / 8px 节奏） */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* 圆角 */
  --radius-sm: 8px;  --radius-md: 12px;  --radius-lg: 16px;
  --radius-xl: 20px; --radius-pill: 999px;

  /* ---------- 旧变量名别名（存量代码平滑迁移，勿新增引用） ---------- */
  --bg: var(--night-950);         /* 欧冠夜空蓝 */
  --surface: var(--night-800);
  --surface-2: var(--night-700);
  --surface-3: var(--night-600);
  --line: rgba(var(--ink-rgb), 0.08);
  --line-2: rgba(var(--ink-rgb), 0.16);
  --line-focus: var(--cyan-300);
  --text: var(--night-0);
  --muted: var(--night-100);
  --dim: var(--night-200);        /* 修正：原 #737DAE 在 surface-3 上仅 3.36:1 */
  --gold: var(--cyan-400);        /* 主色：星球青（名字是历史遗留，实为青） */
  --green: var(--success);
  --red: var(--danger);           /* 欧冠粉 */
  --blue: #7C8CFF;
  --purple: var(--violet-500);
  --radius: var(--radius-lg);
}

/* ================= 皮肤 · 米白（cream） =================
   只重定义 token，组件样式一行不动：--surface/--text/--muted/--dim/--line
   全是 --night-* 的别名，所以翻 --night-* 整站自动跟着变。
   换肤入口在「我的」页，靠 <html data-theme="cream"> 生效，localStorage 记住。
   三条铁律：
   1) 主色 --gold 名字是历史遗留（实为星球青）。#3EC6FF 在米白上只有 2.2:1，
      当文字用直接糊成一片，所以浅底换深青 #0A7EA4（4.8:1）。
   2) 薄层/描边统一走 --ink-rgb（白↔深墨），见文件顶部说明。
   3) 品牌渐变（青→紫）与按钮上的白字保持原样：那是品牌资产，不是主题色。 */
html[data-theme="cream"] {
  --ink-rgb: 38, 30, 20;
  --bar-rgb: 250, 246, 238;   /* 顶栏/底栏：暖白玻璃，透出后面的米白 */

  /* 中性 · 米白（暖调，不是纯白 —— 纯白在手机上刺眼，也压不住彩色光晕） */
  --night-950: #F5F0E6;   /* 页面底 */
  --night-800: #FFFCF5;   /* 卡片 */
  --night-700: #F2ECDF;
  --night-600: #E6DECC;
  --night-500: #D8CEB8;
  --night-400: #B9AC92;
  --night-300: #8E8168;
  --night-200: #6E634E;   /* --dim：次要信息 5.1:1 */
  --night-100: #574D3D;   /* --muted：7.5:1 */
  --night-0:   #221C14;   /* --text：正文 15.8:1 */

  /* 语义色在浅底上整体压深一档，保证 AA */
  --gold: #086484;        /* 主色：深青（在 --surface-2/3 的薄层上也能过 4.5:1） */
  --success: #0F7A55;
  --warning: #9A6B05;
  --danger: #C22A57;
  --danger-text: #A81F48;
  --green: #0F7A55;
  --red: #C22A57;
  --blue: #4553C9;
  --purple: #6A3FC8;

  /* 徽章五档：浅底上 fg 必须压深，bg 仍走 12% 薄层 */
  --bdg-d1-bg: rgba(100,116,139,.14); --bdg-d1-bd: rgba(100,116,139,.38); --bdg-d1-fg: #44506A; --bdg-d1-st: #64748B;
  --bdg-d2-bg: rgba(10,126,164,.12);  --bdg-d2-bd: rgba(10,126,164,.42);  --bdg-d2-fg: #0A6480; --bdg-d2-st: #0A7EA4;
  --bdg-d3-bg: rgba(15,122,85,.12);   --bdg-d3-bd: rgba(15,122,85,.42);   --bdg-d3-fg: #0B6949; --bdg-d3-st: #0F7A55;
  --bdg-d4-bg: rgba(176,118,9,.14);   --bdg-d4-bd: rgba(176,118,9,.48);   --bdg-d4-fg: #7A5205; --bdg-d4-st: #B07609;
  --bdg-d5-bg: rgba(124,58,237,.12);  --bdg-d5-bd: rgba(124,58,237,.42);  --bdg-d5-fg: #5B2BA8; --bdg-d5-st: #7C3AED;
}

/* 浅底上光晕要压淡，否则米白被染成灰蓝 */
html[data-theme="cream"] body {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(10, 126, 164, 0.07), transparent 60%),
    radial-gradient(900px 480px at -12% 18%, rgba(106, 63, 200, 0.06), transparent 55%),
    radial-gradient(700px 420px at 50% 110%, rgba(194, 42, 87, 0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* 少数写死颜色、且是为深底挑的 —— 浅底必须单点覆盖（都在下方注释标了原因） */
html[data-theme="cream"] .rank.top1 { color: #8F6208; }   /* 原 #FFD166 在米白上 1.4:1 */
html[data-theme="cream"] .rank.top2 { color: #5A6885; }   /* 原 #C0C8E8 */
html[data-theme="cream"] .rank.top3 { color: #9C5527; }   /* 原 #E0956B */
html[data-theme="cream"] .ntc-note { color: #6B4A05; }    /* 公告正文：原 #F2DFA8 */
html[data-theme="cream"] .divider.po.cut { color: #B3313F; }
html[data-theme="cream"] .kbm-p.slot-pick .kbm-nm { color: #6A3FC8; }
html[data-theme="cream"] .fav-ovr.b-bronze { color: #8A5A22; }
html[data-theme="cream"] .fav-ovr.b-silver { color: #55617A; }
html[data-theme="cream"] .fav-ovr.b-gold   { color: #8A6208; }
html[data-theme="cream"] .fav-ovr.b-black  { color: #5B2BA8; }

html[data-theme="cream"] .legacy-link { color: var(--gold); }
html[data-theme="cream"] .tiger-portal-new,
html[data-theme="cream"] .tiger-portal-arrow { color: var(--gold); }
html[data-theme="cream"] .skin-sw::after { background: #086484; }

/* ---------- 皮肤选择卡（我的页） ---------- */
.skin-card { margin-top: 14px; }
.skin-row { display: flex; gap: 10px; margin-top: 12px; }
.skin-opt {
  flex: 1 1 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.skin-opt.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.skin-sw { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.skin-sw.dark  { background: linear-gradient(150deg, #1B2148, #0A0E2A 70%); }
.skin-sw.cream { background: linear-gradient(150deg, #FFFCF5, #EFE7D6 70%); }
.skin-sw::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 3px; border-radius: 2px; }
.skin-sw.dark::after  { background: #3EC6FF; }
.skin-sw.cream::after { background: #0A7EA4; }
.skin-opt .tick { margin-left: auto; color: var(--gold); font-weight: 700; }

/* r169 每日签到卡：7 格本轮进度 + 今日按钮。
   只用皮肤变量（--surface-2 / --line / --gold），深色与米白两套自动跟随，
   不再硬编码青色薄层 —— 硬编码的 rgba(62,198,255) 在米白底上几乎看不见。
   390px 宽下每格约 42px，放两位数（最高 40）够用。 */
.si-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.si-stat { min-width: 0; }
.si-stat b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.si-stat span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.si-tag { flex: none; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.08); color: var(--muted); }
.si-progress { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 2px 0 10px; }
.si-progress i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .25s ease; }
.si-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.si-cell { border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; text-align: center; background: var(--surface-2); min-width: 0; }
.si-cell i { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.si-cell em { display: block; font-style: normal; font-size: 9.5px; color: var(--dim); margin-top: 1px; white-space: nowrap; }
.si-cell.done { border-color: var(--line-2); }
.si-cell.done i, .si-cell.done em { color: var(--gold); }
.si-cell.today { border-color: var(--gold); }
.si-cell.today i { color: var(--gold); }
.si-btn { width: 100%; margin-top: 12px; }
.si-foot { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin-top: 10px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* hidden 属性必须压过作者样式的 display（否则 .ht-item{display:flex} 会盖掉 UA 的 [hidden]{display:none}，
   JS 里 el.hidden = true 生效了却「看着没变」——r132 选主队搜索就踩过这个坑） */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(62, 198, 255, 0.10), transparent 60%),
    radial-gradient(900px 480px at -12% 18%, rgba(124, 90, 245, 0.14), transparent 55%),
    radial-gradient(700px 420px at 50% 110%, rgba(255, 78, 142, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button {
  cursor: pointer; border: none; background: none;
  touch-action: manipulation;          /* 去掉移动端 300ms 点击延迟与双击缩放误判 */
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button:active { opacity: .78; }        /* 触摸时的即时反馈 */
input, select {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  /* 必须 ≥16px：iOS Safari 对字号小于 16px 的输入框会在聚焦时自动放大整页，
     关掉键盘后版面回不去，这是手机端最常被吐槽的一处。padding 相应收回 1px 保持原高度。 */
  font-size: 16px; line-height: 1.35;
  padding: 11px 12px;
  width: 100%; outline: none; appearance: none;
}
input:focus, select:focus { border-color: var(--gold); }
select option { background: var(--surface-2); }
/* r139：上面那条 appearance:none 是给文本框/下拉用的，却连带把原生勾选框外观也抹掉了
   —— 于是 `accent-color` 完全失效，勾选后小方框里**永远是个空格子**（本命球星「点了没反应」的真正主因）。
   这里统一补自定义外观：勾选=填入 --chk 色 + 深色对勾。上下文换色只改 --chk 即可
   （.clr-row 有自己的金色版本，选择器更具体，不受影响）。 */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; margin: 0; padding: 0; flex: none;
  border: 1.5px solid var(--line-2); border-radius: 5px;
  background: var(--surface-2) no-repeat center / 11px 11px;
  transition: background-color .15s, border-color .15s;
}
input[type="checkbox"]:checked {
  background-color: var(--chk, var(--cyan-400));
  border-color: var(--chk, var(--cyan-400));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23071530' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:disabled { opacity: .45; }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* 横屏刘海机：左右让出传感器/圆角区（竖屏与桌面 env 均为 0，无副作用） */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 12px;
  /* 灵动岛/刘海：顶部让出状态栏高度（env 不支持时本条无效，回落到上一行 14px） */
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(var(--bar-rgb), 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* 电竞风：顶栏底部金蓝能量线 */
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, rgba(62, 198, 255, 0.85), rgba(62, 198, 255, 0.15) 38%, rgba(124, 90, 245, 0.15) 62%, rgba(124, 90, 245, 0.75));
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: linear-gradient(140deg, #3EC6FF, #7C5AF5);
  color: #FFFFFF; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.brand-txt { min-width: 0; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .6px; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 1px; letter-spacing: .3px; }
/* 顶栏 LOGO：上传图片后铺深色底磁贴——上传图多为圆形图案且四角透明，
   填底后整体呈现圆角方形（类似 App 图标），不再显示为圆形 */
.logo.has-img, .brand-logo.has-img { background: #2A1B45; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.08); }
.logo.has-img img, .brand-logo.has-img img { border-radius: inherit; }
.idchip {
  flex: 0 0 auto; font-size: 12px; padding: 10px 13px; border-radius: 20px;
  min-height: 40px; display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); color: var(--muted);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.idchip.has { color: var(--gold); border-color: rgba(62, 198, 255, 0.45); box-shadow: 0 0 10px rgba(62, 198, 255, 0.15); }

/* ---------- 主体 ---------- */
.view { padding: 14px 16px 8px; }

.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 44px; padding: 11px 4px; border-radius: 9px; font-size: 13px; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s; }
.seg button.on { background: var(--surface-3); color: var(--gold); font-weight: 600; box-shadow: inset 0 -2px 0 rgba(62, 198, 255, 0.75); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; font-size: 12px; padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.chip.on { background: rgba(62, 198, 255, 0.14); border-color: rgba(62, 198, 255, 0.5); color: var(--gold); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; font-size: 13px; color: var(--muted); }
.section-title b { color: var(--text); font-size: 15px; font-weight: 700; position: relative; padding-left: 11px; letter-spacing: .4px; }
/* 电竞风：标题左侧金色斜切能量条 */
.section-title b::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) skewX(-12deg);
  width: 4px; height: 13px; border-radius: 1.5px;
  background: linear-gradient(180deg, var(--gold), #7C5AF5);
  box-shadow: 0 0 8px rgba(62, 198, 255, 0.4);
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
/* overflow:hidden 会成为 sticky 的滚动容器，导致积分榜表头吸不住顶。
   只对含表头的卡片放开裁剪，其余卡片保持原样（表头自己带了上圆角）。 */
.card:has(> .stand-head) { overflow: visible; }
.card.pad { padding: 16px; }
.card.tight { padding: 14px; }

.hint { font-size: 12px; color: var(--dim); line-height: 1.7; margin: 10px 2px 0; }

.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(62, 198, 255, 0.1); border: 1px solid rgba(62, 198, 255, 0.3);
  color: var(--gold); font-size: 12px; padding: 9px 12px; border-radius: 10px; margin-bottom: 12px;
}
.notice button { color: var(--gold); font-size: 12px; text-decoration: underline; flex: 0 0 auto; }

/* ---------- 小节 ---------- */
.mini-me { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mini-lab { font-size: 12px; color: var(--dim); }
.mini-val { font-size: 17px; font-weight: 600; margin-top: 2px; }
.mini-sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.mini-right { text-align: right; }

/* ---------- 积分榜 ---------- */
.stand-head { display: flex; align-items: center; padding: 10px 14px; font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--line); letter-spacing: .3px; }
.col-rank { width: 30px; flex: 0 0 30px; }
.col-who { flex: 1; min-width: 0; }
.col-mid { width: 50px; flex: 0 0 50px; text-align: center; }
/* 表头列不折行：窄屏下「本赛季」「累计 GP」被拆成两行比横向滚动更难看 */
.stand-head > div { white-space: nowrap; }
.col-tot { width: 62px; flex: 0 0 62px; text-align: right; }

/* ---------- 积分榜 7 列紧凑：选手/球队、场、胜平负、进/失、净、完赛率、积分 ---------- */
.stand-head.stand { padding: 10px 8px; font-size: 11px; letter-spacing: 0; }
/* 表头的名次列/积分列与行内同宽，否则整排数字列会左右错开 */
.stand-head.stand .col-rank { width: 24px; flex: 0 0 24px; }
.stand-head.stand .col-tot { width: 44px; flex: 0 0 44px; }
.col-team { display: none; }
.stand-row { padding: 10px 8px; }
.stand-row .rank { width: 24px; flex: 0 0 24px; font-size: 12px; }
.stand-row .who .name { font-size: 13px; }
/* 一阶段积分榜：队徽与头像同为 22px，队名字号与昵称同为 13px，视觉等大；
   队名整行用 flex 垂直居中，保证队徽与队名高度一致（不再靠 vertical-align 微调） */
.stand-row .who .title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; margin-top: 2px; min-width: 0; line-height: 22px;
}
.stand-row .who .title .tname { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stand-row .who .title .tlogo {
  flex: 0 0 auto; width: 22px; height: 22px; font-size: 12px; border-radius: 7px;
  margin-right: 0; vertical-align: middle;
}
/* 数字列：表头与行共用同一套宽度，逐列对齐（手机端再按折行重定义） */
.stand-head .nums, .stand-row .nums { display: flex; align-items: center; flex: 0 0 auto; }
.stand-head .nums .n, .stand-row .nums .n {
  width: 34px; flex: 0 0 34px; text-align: center;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stand-head .nums .n-wdl, .stand-row .nums .n-wdl { width: 58px; flex-basis: 58px; }
.stand-head .nums .n-gls, .stand-row .nums .n-gls { width: 50px; flex-basis: 50px; }
.stand-row .nums .n { font-size: 12px; }
.stand-row .nums .n-wdl, .stand-row .nums .n-gls { font-size: 12px; }
.stand-row .tot { width: 44px; flex: 0 0 44px; text-align: right; }
.stand-row .tot .v { font-size: 15px; }

/* ---------- 手机端积分榜（≤560px）：两行式，名字与球队各占一行，数字折到右侧两行 ----------
   原来 7 列横排时「选手/球队」只剩 64px，昵称和队名都被截断；
   现在：第一行 头像 + 昵称 + 积分，第二行 队徽 + 队名 + 5 个数字（右侧两行折行，右对齐）。
   数字用固定宽度 + tabular-nums，跨行上下对齐。 */
@media (max-width: 560px) {
  /* 数字块加宽到 130px：胜平负（40/20/16）与进失（166/112）内容比旧的固定列宽长，
     固定 width 会溢出重叠；改用 min-width 让内容完整显示，表头与行逐列同宽对齐 */
  .stand-head.stand {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) 130px 40px;
    grid-template-rows: auto auto; align-items: center;
    column-gap: 4px; row-gap: 2px; padding: 7px 8px; font-size: 11px;
    /* 长榜单（40+ 人）滚两屏后表头必须还在，否则「0/0/0、0%」没人知道是哪一列。
       67px = 顶部品牌栏高度，表头吸在它下面。 */
    position: sticky; top: 67px; top: calc(67px + env(safe-area-inset-top)); z-index: 16;
    /* 背景必须不透明且不留圆角：圆角外侧是透明的，下面滚动的内容会从缺口里透出来 */
    background: var(--surface);
    border-radius: 0;
  }
  .stand-head.stand .col-rank { grid-column: 1; grid-row: 1 / 3; width: auto; flex: none; }
  .stand-head.stand .col-who { grid-column: 2 / 4; grid-row: 1; }
  /* 表头第二行：球队 + 5 个数字列的抬头，与下方数字列同宽同折行，逐列对齐 */
  .stand-head.stand .col-team { display: block; grid-column: 2; grid-row: 2; }
  /* 表头数字块：两行三列网格 —— 第一行 场/胜平负/进失，第二行 完赛居「胜平负」正下方、
     净居「进失」正下方（原来是 flex 折行右对齐，完赛和净被推到最右，与上方列错位） */
  .stand-head.stand .nums-head {
    grid-column: 3; grid-row: 2; width: auto;
    display: grid; grid-template-columns: 18px 52px 47px;
    column-gap: 4px; row-gap: 1px; justify-content: end; line-height: 1.35;
  }
  .stand-head.stand .nums-head .n { width: auto; flex: none; font-size: 11px; text-align: center; }
  .stand-head.stand .nums-head .n-g { grid-column: 1; grid-row: 1; }
  .stand-head.stand .nums-head .n-wdl { grid-column: 2; grid-row: 1; }
  .stand-head.stand .nums-head .n-gls { grid-column: 3; grid-row: 1; }
  .stand-head.stand .nums-head .n-pct { grid-column: 2; grid-row: 2; }
  .stand-head.stand .nums-head .n-gd { grid-column: 3; grid-row: 2; }
  .stand-head.stand .col-tot { grid-column: 4; grid-row: 1 / 3; width: auto; flex: none; }

  .row.stand-row {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) 130px 40px;
    grid-template-rows: auto auto; align-items: center;
    column-gap: 4px; row-gap: 0; padding: 6px 8px;
  }
  .stand-row .rank { grid-column: 1; grid-row: 1 / 3; align-self: center; width: auto; flex: none; }
  .stand-row .who { display: contents; }
  .stand-row .who-top { grid-column: 2 / 4; grid-row: 1; min-width: 0; }
  .stand-row .who .name { font-size: 13px; }
  .stand-row .who .title { grid-column: 2; grid-row: 2; min-width: 0; font-size: 13px; margin-top: 0; gap: 5px; line-height: 22px; }
  /* 历史赛季行多出来的徽章 / 赛季 GP 小字：固定放到第三行，不打乱上面的网格 */
  .row.stand-row .who .hist-stages, .row.stand-row .who .hist-gp, .row.stand-row .who .hist-rank { grid-column: 2 / 4; grid-row: 3; margin-top: 0; }
  /* 队徽 22px 与头像等大，队名 13px 与昵称同字号，整行 flex 垂直居中 → 队徽与队名同高 */
  .stand-row .who .title .tlogo { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
  .stand-row .tot { grid-column: 4; grid-row: 1 / 3; align-self: center; justify-self: end; width: auto; flex: none; }
  .stand-row .tot .v { font-size: 16px; }
  .stand-row .nums {
    grid-column: 3; grid-row: 2; width: auto;
    display: grid; grid-template-columns: 18px 52px 47px;
    column-gap: 4px; row-gap: 1px; justify-content: end; line-height: 1.35;
  }
  .stand-row .nums .n { width: auto; flex: none; font-size: 12px; text-align: center; }
  .stand-row .nums .n-g { grid-column: 1; grid-row: 1; }
  .stand-row .nums .n-wdl { grid-column: 2; grid-row: 1; }
  .stand-row .nums .n-gls { grid-column: 3; grid-row: 1; }
  .stand-row .nums .n-pct { grid-column: 2; grid-row: 2; }
  .stand-row .nums .n-gd { grid-column: 3; grid-row: 2; }
}

/* 更窄的机器（≤360px）：数字块再收一档，保证队名仍有约 7 个字的宽度 */
@media (max-width: 360px) {
  .stand-head.stand, .row.stand-row { grid-template-columns: 20px minmax(0, 1fr) 110px 36px; }
  .stand-head.stand .nums-head, .row.stand-row .nums { width: 110px; grid-template-columns: 16px 46px 42px; }
}

/* 超窄屏（≤340px，如 320px 老机型）：数字块再让 8px 给文字，昵称与队名同步降到 12px
   （两者始终同字号，图标仍 22px 等大），保证 8 字昵称 + 6 字队名不被截断 */
@media (max-width: 340px) {
  .stand-head.stand, .row.stand-row { grid-template-columns: 18px minmax(0, 1fr) 84px 34px; }
  .row.stand-row { padding: 8px 6px; }
  .stand-head.stand { padding: 7px 6px; }
  .stand-head.stand .nums-head, .row.stand-row .nums { width: 84px; grid-template-columns: 14px 34px 28px; }
  .stand-row .who-top .name, .stand-row .who .title { font-size: 12px; }
  .stand-row .who .title { line-height: 22px; }
  .stand-head.stand .nums-head .n { font-size: 11px; }
  .stand-row .tot .v { font-size: 15px; }
}

.row { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: background .12s; }
/* GP 榜：不再显示球队，只有头像 + 昵称一行，行高按单行收紧 */
.gp-row { padding: 8px 14px; min-height: 48px; }
.gp-row .who-top { gap: 9px; }
.row:last-child { border-bottom: none; }
.row:active { background: var(--surface-2); }
.row.open { background: var(--surface-2); }
.row.qualified { box-shadow: inset 3px 0 0 rgba(62, 198, 255, 0.55); }
/* 附加赛区：直接晋级线以下、附加赛截止线以上，用金色左边条区分 */
.row.po-zone { box-shadow: inset 3px 0 0 rgba(255, 209, 102, 0.42); background: rgba(255, 209, 102, 0.035); }

.rank { width: 30px; flex: 0 0 30px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--dim); }
.rank.top1 { color: #FFD166; font-weight: 700; }
.rank.top2 { color: #C0C8E8; font-weight: 700; }
.rank.top3 { color: #E0956B; font-weight: 700; }

.who { flex: 1; min-width: 0; }
.who .name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .title { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mid { width: 46px; flex: 0 0 46px; text-align: center; }
.mid .v { font-size: 14px; font-variant-numeric: tabular-nums; }
.mid .l { font-size: 11px; color: var(--dim); margin-top: 1px; }

.tot { width: 62px; flex: 0 0 62px; text-align: right; }
.tot .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); letter-spacing: .3px; }
.tot .l { font-size: 11px; color: var(--dim); margin-top: 1px; }

.divider {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px; font-size: 11px; color: var(--gold);
  background: rgba(62, 198, 255, 0.06); border-bottom: 1px solid var(--line);
}
.divider::after { content: ''; flex: 1; height: 1px; background: rgba(62, 198, 255, 0.28); }
/* 附加赛起止线：起线金色、截止线偏红，一眼看出晋级区间 */
.divider.po span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider.po { color: var(--gold); background: rgba(255, 209, 102, 0.07); }
.divider.po::after { background: rgba(255, 209, 102, 0.35); }
.divider.po.cut { color: #FF8A8A; background: rgba(255, 90, 90, 0.07); }
.divider.po.cut::after { background: rgba(255, 90, 90, 0.35); }

.detail { padding: 0 14px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 4px; }
.dg { background: var(--surface); border-radius: 10px; padding: 9px 8px; text-align: center; }
.dg .v { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dg .l { font-size: 11px; color: var(--muted); margin-top: 3px; }
.detail-note { font-size: 12px; color: var(--dim); margin-top: 10px; line-height: 1.6; }

/* ---------- 段位徽章 ---------- */
.tier {
  display: inline-block; font-size: 12px; line-height: 1;
  padding: 3px 8px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap;
}
.tier.sm { font-size: 11px; padding: 2px 7px; }
/* 样本不足：虚线框 + 点线下划线，和实线正式档位一眼可分 */
.tier.is-short { border-style: dashed; text-decoration: underline dotted; text-underline-offset: 3px; }

/* ---------- 对阵图 ---------- */
.bo3-head { font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.bo3 { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface-2); }
.bo3:last-child { margin-bottom: 0; }
.bo3-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.bo3-line .nm { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo3-line .sc { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dim); flex: 0 0 auto; }
.bo3-line.win .nm { color: var(--text); font-weight: 600; }
.bo3-line.win .sc { color: var(--gold); }
.bo3-line.lose { opacity: .55; }
.bo3-line .kb-crown { font-size: 12px; margin-left: -3px; flex: 0 0 auto; }

/* ---------- 全量对阵图（镜像淘汰赛树） ---------- */
.kb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kb-head b { font-size: 15px; }
.kb-head span { font-size: 12px; color: var(--dim); }
.kb-roundline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kb-roundline i { font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; }
.kb-roundline em { width: 14px; height: 2px; background: var(--line-2); border-radius: 1px; }
.kb-scroll { overflow-x: auto; padding: 4px 2px 10px; }
.kb { display: flex; flex-direction: column; align-items: center; width: max-content; min-width: 100%; margin: 0 auto; }
.kb-node { display: flex; flex-direction: column; align-items: center; }
.kb-kids { position: relative; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 26px; }
.kb-kids > .kb-node { flex: 1 1 0; min-width: 0; }
/* 连接线：子对局底部 → 圆角括号 → 父对局顶部 */
.kb-kids::before {
  content: ''; position: absolute; left: 25%; right: 25%; bottom: 13px; height: 13px;
  border-left: 2px solid var(--line-2); border-right: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2);
  border-radius: 0 0 10px 10px;
}
.kb-kids::after { content: ''; position: absolute; left: calc(50% - 1px); bottom: 0; width: 2px; height: 13px; background: var(--line-2); }
/* 下半区镜像：父对局在上，子树在下，括号开口朝下 */
.kb-node.flip { flex-direction: column-reverse; }
.kb-node.flip .kb-kids { align-items: flex-start; padding: 26px 0 0; }
.kb-node.flip .kb-kids::before {
  top: 13px; bottom: auto; height: 13px;
  border: 0; border-left: 2px solid var(--line-2); border-right: 2px solid var(--line-2); border-top: 2px solid var(--line-2);
  border-radius: 10px 10px 0 0;
}
.kb-node.flip .kb-kids::after { top: 0; bottom: auto; }

/* 树里的对局卡 */
.kb .bo3.kb-card { margin: 0; width: 218px; max-width: none; }
/* 二阶段合并图：十六强卡上方挂「附加赛」来源卡（下半区镜像后自动落到下方） */
.kb-node.kb-r0 { gap: 4px; }
.kb-feed { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.kb-feed > i { font-style: normal; font-size: 11px; letter-spacing: .3px; color: var(--dim); }
.kb-feed .kb-mini {
  width: 104px; padding: 7px 5px 6px;
  background: rgba(62, 198, 255, 0.05); border-color: rgba(62, 198, 255, 0.22);
}
.kb-feed .kbm-tm { display: none; }           /* 附加赛卡只留人名，避免和正赛卡混淆 */
.kb-feed .kbm-nm { font-size: 11px; }
.kb-feed::after { content: ''; width: 2px; height: 4px; background: var(--line-2); }
/* 附加赛卡更轻：比分一行、判定按钮收紧，别抢正赛的视觉焦点 */
.kb-feed .kbm-sc { margin-top: 4px; padding-top: 4px; font-size: 12px; }
.kb-feed .kb-mini .bo-admin { margin-top: 4px; padding-top: 5px; gap: 3px; }
.kb-feed .kb-mini .bo-admin .bo-admin-t { font-size: 10px; }
.kb-feed .kb-mini .bo-admin .btn.sm { padding: 3px 4px; font-size: 10px; border-radius: 6px; }
.kb-feed .kb-mini .fo-badge { font-size: 9px; line-height: 13px; }
/* 首轮紧凑竖卡 */
.kb-mini { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 9px 6px 8px; width: 104px; }
.kb-mini.forced { border-color: rgba(255, 78, 142, .32); }
.kbm-cols { display: flex; align-items: flex-start; }
.kbm-p { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.kbm-p .ava { margin: 0; }
.kbm-nm { font-size: 12px; font-weight: 600; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbm-p.lose { opacity: .5; }
.kbm-p.lose .kbm-nm { color: var(--muted); font-weight: 500; }
.kbm-p.win .kbm-nm { color: var(--gold); }
.kbm-p.ph .kbm-nm { color: var(--dim); font-weight: 500; }
/* 签位手动选人（赛务 / 比分管理员）：空位虚线框「+选人」，已填位可点击替换 */
.kbm-p.slot-pick { cursor: pointer; border: 1px dashed rgba(124, 90, 245, .55); border-radius: 10px; padding: 3px 6px; margin: 0 4px; }
.kbm-p.slot-pick .kbm-nm { color: #a99bff; }
.kbm-p.slot-has { cursor: pointer; border-radius: 10px; }
.kbm-tm { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; white-space: nowrap; }
.kbm-tm .tlogo { width: 14px; height: 14px; margin: 0; flex: 0 0 auto; }
.kbm-sc { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line); text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--dim); }
.kb-mini.done .kbm-sc { color: var(--text); }
.kb-mini.pending .kbm-sc { color: var(--dim); font-size: 12px; letter-spacing: 2px; }
.kb-mini .bo-admin { flex-direction: column; align-items: stretch; }
.kb-mini .bo-admin .btn.sm { width: 100%; text-align: center; }

/* 决赛 / 季军赛 */
.kb-finalwrap, .kb-thirdwrap { display: flex; flex-direction: column; align-items: center; }
.kb-finalwrap { margin: 4px 0; }
.kb-thirdwrap { margin: 10px 0 4px; }
.kb-third-hint { margin-left: 6px; font-style: normal; font-size: 11px; color: var(--dim); opacity: .9; }
.kb-final-t { font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(62, 198, 255, .12); border: 1px solid rgba(62, 198, 255, .35); border-radius: 999px; padding: 3px 14px; margin-bottom: 8px; }
.kb-final-t.dim { color: var(--muted); background: var(--surface-2); border-color: var(--line-2); }
.kb .bo3.kb-final {
  width: 248px; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(62, 198, 255, .16), rgba(124, 92, 245, .12));
  border-color: rgba(62, 198, 255, .45);
  box-shadow: 0 6px 22px rgba(62, 198, 255, .12);
}
.kb .bo3.kb-final .bo3-line .nm { font-size: 15px; }
.kb .bo3.kb-final .bo3-line .sc { font-size: 17px; }
/* 决赛卡片奖杯：二阶段金杯（双耳）/ 足总杯大力神杯 */
.kb-trophy { display: flex; justify-content: center; padding: 0 0 4px; }
.kb-trophy-svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35)); }
/* 一阶段榜前三名金银铜牌 */
.stand-row .rank.top1, .stand-row .rank.top2, .stand-row .rank.top3 { font-size: 17px; }
/* 单轮签表（附加赛）：首轮卡片平铺 */
.kb-solo { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kb-solo .kb-mini { flex: 0 0 auto; }

@media (max-width: 420px) {
  .kb-cardbox.pad { padding: 12px; }
  .kb .bo3.kb-card { width: 156px; }
  .kb .bo3.kb-final { width: 204px; }
  .kb-mini { width: 76px; padding: 8px 3px 7px; }
  .kb-feed .kb-mini { width: 76px; padding: 6px 3px 5px; }
  .kb-feed .kbm-nm { font-size: 11px; }
  .kb-feed > i { font-size: 11px; }
  .kbm-nm { font-size: 11px; }
  .kbm-tm { font-size: 11px; }
  .kb-kids { gap: 6px; padding-bottom: 24px; }
  .kb-node.flip .kb-kids { padding: 24px 0 0; }
  .kb .bo3.kb-card .bo3-line { gap: 6px; }
  .kb .bo3.kb-card .bo3-line .nm { font-size: 12px; }
  .kb .bo3.kb-card .bo3-line .tm { font-size: 11px; }
}
@media (max-width: 360px) {
  .kb .bo3.kb-card { width: 144px; }
  .kb .bo3.kb-final { width: 190px; }
  .kb-mini { width: 70px; }
  .kb-roundline i { font-size: 11px; padding: 2px 8px; }
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; min-width: 0; }

.score-inputs { display: flex; align-items: center; gap: 10px; }
.score-inputs .vs { font-size: 12px; color: var(--dim); flex: 0 0 auto; }

/* ---------- 上报比分：下拉与主客场两回合 ---------- */
/* 全局 appearance:none 去掉了原生箭头，这里补一个细箭头，避免看起来不像下拉 */
.sel-wrap { position: relative; }
.sel-wrap::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  margin-top: -5px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.sheet select { font-size: 13.5px; line-height: 1.35; padding: 11px 34px 11px 12px; text-overflow: ellipsis; }
.sheet .field label em { font-style: normal; font-size: 12px; color: var(--dim); margin-left: 7px; }

.leg-list { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 0; }
.leg-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.leg-item.done { background: rgba(var(--ink-rgb), 0.02); opacity: .72; }
.leg-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.leg-tag {
  flex: 0 0 auto; font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: rgba(62, 198, 255, 0.14); color: var(--gold); letter-spacing: .3px;
}
.leg-vs { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg-badge { flex: 0 0 auto; font-size: 12px; color: var(--dim); }
.leg-sc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.leg-sc input { text-align: center; font-size: 18px; font-weight: 700; padding: 9px 6px; letter-spacing: 1px; }
.leg-sc input::placeholder { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.leg-colon { color: var(--dim); font-size: 14px; }
.leg-done { text-align: center; font-size: 18px; font-weight: 700; color: var(--muted); letter-spacing: 1px; padding: 4px 0; }
@media (max-width: 360px) {
  .leg-sc input { font-size: 16px; }
  .sheet select { font-size: 12.5px; }
}

.btn { width: 100%; padding: 13px; border-radius: 12px; background: linear-gradient(135deg, #3EC6FF, #7C5AF5); color: #FFFFFF; font-weight: 700; font-size: 15px; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(62, 198, 255, 0.3); transition: opacity .15s, box-shadow .15s; }
.btn:active { opacity: .8; box-shadow: 0 2px 8px rgba(62, 198, 255, 0.15); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
.btn.danger { background: transparent; border: 1px solid rgba(255, 78, 142, 0.4); color: var(--red); font-weight: 500; }
.btn.sm { padding: 9px 14px; font-size: 13px; width: auto; border-radius: 9px; }

/* 线上数据被误覆盖时的本机缓存恢复提示条 */
.rescue-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(255, 78, 142, .12); border: 1px solid rgba(255, 78, 142, .38);
}
.rescue-bar .rb-t { flex: 1 1 190px; font-size: 12px; line-height: 1.6; color: var(--text); }
.rescue-bar .rb-a { flex: 0 0 auto; }

/* ---------- 列表 ---------- */
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item-main { flex: 1; min-width: 0; }
.item-t1 { font-size: 14px; }
.item-t2 { font-size: 12px; color: var(--muted); margin-top: 3px; }
.item-act { display: flex; gap: 8px; flex: 0 0 auto; }

/* 未赛对手：头像 / 选手 / 队徽 / 队名 / 上报按钮 五等分一行，图标与字号统一 */
.vs-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center; gap: 4px; width: 100%;
  padding: 9px 10px; border: none; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; text-align: center;
  cursor: pointer; transition: background .12s;
}
.vs-row:last-child { border-bottom: none; }
.vs-row:active { background: var(--surface-2); }
.vs-c {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; font-size: 13px; line-height: 1.2;
}
.vs-nm, .vs-tm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-row .ava, .vs-row .tlogo {
  width: 22px; height: 22px; font-size: 11px; border-radius: 7px;
}
.vs-row .badge { margin: 0; font-size: 13px; padding: 1px 8px; border-radius: 7px; }

.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.badge.pending { background: rgba(62, 198, 255, 0.14); color: var(--gold); }
.badge.confirmed { background: rgba(58, 203, 146, 0.14); color: var(--green); }
.badge.disputed { background: rgba(255, 78, 142, 0.14); color: var(--red); }

.score-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
.score-line:last-of-type { border-bottom: none; }
.score-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.score-line b.up { color: var(--green); }
.score-line b.down { color: var(--red); }
/* r167：球队传承的「球队单季出勤王」比原来的四字标签长，label 不许被压变形，
   让右侧数值区自己换行（它本来就带「赛季 · 选手 · N 场 · 第 X 名」四段） */
.score-line .sl-k { flex: none; }
.score-line .sl-k + b { min-width: 0; text-align: right; }

/* ---------- GP 明细 ---------- */
.gp-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.gp-line:last-of-type { border-bottom: none; }
.gp-line b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.gp-line.best { color: var(--gold); }
.gp-line.best b { color: var(--gold); }

.goal-box { margin-top: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.goal-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); padding: 4px 0; }
.goal-line b { color: var(--text); font-weight: 600; }
.goal-line b.up { color: var(--green); }
.goal-line b.down { color: var(--red); }

/* ---------- 段位榜 · 战力值构成 ---------- */
.pw-cap {
  display: flex; align-items: baseline; gap: 8px;
  margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--text);
}
.pw-cap:first-child { margin-top: 6px; }
.pw-cap b { font-size: 16px; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.pw-cap span { font-size: 11px; font-weight: 400; color: var(--dim); }
.pw-sub { border-bottom: none; }
.pw-sub span { color: var(--gold); font-weight: 500; }
.pw-sub b { color: var(--gold); }
.pw-total {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(62, 198, 255, 0.14), rgba(124, 90, 245, 0.08));
  border: 1px solid rgba(62, 198, 255, 0.35);
  font-size: 13px; color: var(--text); font-weight: 600;
}
.pw-total b { font-size: 18px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- 规则编辑 ---------- */
.gp-edit { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.gp-edit-head, .gp-edit-row { display: grid; grid-template-columns: 1fr 84px 84px; align-items: center; gap: 8px; padding: 7px 10px; }
.gp-edit-head { font-size: 12px; color: var(--dim); background: var(--surface-2); }
.gp-edit-head span:nth-child(2), .gp-edit-head span:nth-child(3) { text-align: center; }
.gp-edit-row { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gp-edit-row input { width: 100%; padding: 6px 4px; text-align: center; font-size: 13px; }
.gp-edit-row .na { text-align: center; font-size: 12px; color: var(--dim); }

/* 赛务 · 规则：二阶段目标每个段位一行（段位/战力/目标/达成/未达成） */
.tier-flat-head, .tier-flat {
  display: grid; grid-template-columns: auto 54px minmax(74px, 1fr) 56px 60px;
  gap: 6px; align-items: center;
}
.tier-flat-head { padding: 9px 12px 4px; font-size: 11px; color: var(--dim); letter-spacing: .3px; white-space: nowrap; }
.tier-flat-head span:nth-child(4), .tier-flat-head span:nth-child(5) { text-align: center; }
.tier-flat { padding: 6px 12px; border-bottom: 1px solid var(--line); }
.tier-flat:last-child { border-bottom: none; }
.tier-flat input, .tier-flat select { width: 100%; min-width: 0; padding: 6px 4px; font-size: 12px; border-radius: 8px; text-align: center; }
.tier-flat select { text-align: left; padding: 6px 6px; }
.tier-flat .tier { white-space: nowrap; }
.tier-flat .tf-mult { display: flex; align-items: center; gap: 2px; }
.tier-flat .tf-mult i { font-style: normal; font-size: 11px; color: var(--dim); flex: 0 0 auto; }

.mini-field { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dim); }
.mini-field input { width: 58px; padding: 5px 6px; text-align: center; font-size: 12px; }
.mini-select { padding: 6px 8px; font-size: 12px; border-radius: 8px; }
.tier-edit .item-main { padding: 2px 0; }

.empty { padding: 36px 20px; text-align: center; color: var(--dim); font-size: 13px; line-height: 1.8; }

/* ---------- 参赛名单 ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.entry {
  padding: 9px 6px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--line-2); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entry.on { background: rgba(62, 198, 255, 0.16); border-color: rgba(62, 198, 255, 0.55); color: var(--gold); font-weight: 500; }

/* ---------- r124 足总杯团队赛：队伍行 / 固定排阵 ---------- */
.cup-team-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  padding: 10px; margin-bottom: 8px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2);
}
.cup-team-row.on { border-color: rgba(62, 198, 255, .5); background: rgba(62, 198, 255, .07); }
.ct-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(var(--ink-rgb),.08); }
.ct-main { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-main b { font-size: 13px; font-weight: 600; color: var(--text); }
.ct-main span { font-size: 11px; color: var(--dim); line-height: 1.5; }
.lineup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.lineup-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lineup-side > span { font-size: 12px; color: var(--dim); font-weight: 600; }
.lineup-side select { width: 100%; min-width: 0; }
.leg-lineup { display: block; margin-top: 5px; font-size: 11px; color: var(--dim); line-height: 1.5; }
.gsm-lu { display: block; font-style: normal; font-size: 11px; color: var(--dim); line-height: 1.5; }
@media (max-width: 520px) {
  .lineup-grid { grid-template-columns: 1fr; }
  .cup-team-row .btn.sm { padding: 5px 7px; font-size: 11px; }
}

/* ---------- 球队 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.team-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 12px; overflow: hidden; }
/* 竞拍进行中可出价的卡片：点一下就走原来的出价弹层 */
.team-card.clickable { cursor: pointer; transition: border-color .12s, transform .12s; }
.team-card.clickable:active { transform: scale(.985); border-color: rgba(62, 198, 255, .55); }
.team-card.clickable::after {
  content: ''; position: absolute; right: 8px; bottom: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .55;
}
.team-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
/* 色条图例：还没出价的球队按底价档位着色 */
.bar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; margin: -4px 0 10px; font-size: 11px; color: var(--dim); line-height: 1.6; }
.bar-legend .lg-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bar-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex: 0 0 14px; }
.bar-legend i.lg-grad { width: 34px; flex: 0 0 34px; }
.team-card.banned { opacity: .55; filter: grayscale(.6); }
/* 禁拍球队组：默认只露第一行，下方渐变提示还有更多（高度由脚本按卡片实际高度裁） */
.team-grid.banned-grid { margin-top: 2px; }
.team-grid.banned-grid.one-row { position: relative; overflow: hidden; border-radius: 0 0 14px 14px; }
.team-grid.banned-grid.one-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: linear-gradient(to bottom, rgba(var(--bar-rgb), 0), var(--bg));
  pointer-events: none;
}
/* 队名与价格改两行：原来队名和「900 起」挤一行，两列布局下队名只剩 ~65px，
   「皇家马德里」「巴黎圣日耳曼」全被截成「皇家…」「巴黎…」，两支曼彻斯特更分不清。 */
.team-top { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 3px; margin-top: 2px; }
.team-top .tlogo { grid-column: 1; grid-row: 1 / 3; }
.team-top .badge { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 0; flex: none; }
.team-name { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 600; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-owner { font-size: 12px; color: var(--muted); margin-top: 3px; }
.team-tier { margin-top: 9px; }
.team-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 10px; }

.avatar {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
  color: #14100A; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 底栏 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(var(--bar-rgb), 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; color: var(--dim); font-size: 12px; letter-spacing: 0; transition: color .15s; touch-action: manipulation; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--gold); font-weight: 600; }
.tab.on svg { filter: none; }

/* 图标和文字不参与命中，保证点击目标始终是带 data-act 的按钮本身 */
button svg, .tab span, .item svg { pointer-events: none; }

/* iOS Safari 只给「看起来可点」的元素派发 click：
   div 必须显式 cursor:pointer，否则点了毫无反应（这是手机端失灵的主因） */
[data-act] { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
[data-act]:active { opacity: .82; }
.sheet-mask[data-act]:active { opacity: 1; }   /* 遮罩按下时不要闪 */

/* 弹层打开时的锁定靠 app.js 拦截 touchmove/wheel 实现。
   不要在这里给 html/body 加 overflow:hidden —— 实测会让页面里的 fixed 弹层
   改按文档高度定位（直接跑到屏幕外），是比滚动穿透严重得多的问题。 */

/* ---------- 弹层 ---------- */
.sheet-mask { position: fixed; inset: 0; background: rgba(4, 6, 20, 0.62); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line-2);
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  /* 关闭态必须彻底退出命中测试，否则这条透明条会压住底部导航的点击 */
  visibility: hidden; pointer-events: none;
  transition: transform .26s cubic-bezier(.32, .72, 0, 1), visibility .26s;
  max-height: 84vh; overflow-y: auto;
  /* 弹层自己滚到底后不要把滚动传给背后的页面（iOS 上的“滚动穿透”） */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sheet.on { transform: translateY(0); visibility: visible; pointer-events: auto; }
.sheet h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
/* 弹层标题行：标题居左、关闭叉在右上角；内容超过一屏滚动时标题行吸顶，叉始终可点 */
.sh-hd {
  position: sticky; top: -18px; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin: -18px 0 4px; padding: 18px 0 6px;
  background: var(--surface);
}
.sh-hd h3 { flex: 1 1 auto; min-width: 0; margin: 0; }
.sh-hd .gsm-x { flex: none; margin-top: -4px; }
/* r113：分享卡内的 .sh-hd 已在 SHARE_CSS 里逐项重置；弹层抬头独立用这个类，互不干扰 */
.shd-sheet-hd { position: sticky; top: -18px; z-index: 3; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px; margin: -18px 0 4px; padding: 18px 0 6px; background: var(--surface); }
.shd-sheet-hd h3 { flex: 1 1 auto; min-width: 0; margin: 0; }
.shd-sheet-hd .gsm-x { flex: none; margin-top: -4px; }
.sheet .sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
/* r158 本命球星：总评吸顶条（手动分配能力值时始终可见） */
.fs-ovr-bar { position: sticky; top: 52px; z-index: 2; display: flex; flex-direction: column; gap: 3px;
  margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
  background: var(--surface-2, #f6f7fb); border: 1px solid var(--line-2); }
.fs-ovr-main { display: flex; align-items: baseline; gap: 8px; }
.fs-ovr-main span { font-size: 12px; color: var(--muted); }
.fs-ovr-main b { font-size: 26px; font-weight: 700; line-height: 1; color: var(--gold, #f0b429); }
.fs-ovr-main i { font-style: normal; font-size: 12px; color: var(--muted); }
.fs-ovr-note { font-size: 11.5px; color: var(--muted); }
.fs-ovr-warn { font-size: 11.5px; color: var(--ok, #158d6b); }
.fs-ovr-warn.bad { color: var(--danger-text, #d9424e); }
.fs-pos-cost { margin-top: 7px; font-size: 12px; color: var(--muted); }
.fs-pos-cost b { color: var(--ink, inherit); }
.fs-pos-cost.over { color: var(--danger-text, #d9424e); }

.toast {
  position: fixed; left: 50%; bottom: 96px; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  background: rgba(20, 25, 57, 0.97); border: 1px solid var(--line-2); color: var(--text);
  font-size: 13px; padding: 11px 18px; border-radius: 22px; z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 80vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }


/* ---------- 竞拍内嵌 ---------- */
.frame-wrap { width: 100%; }
.frame { width: 100%; height: calc(100vh - 148px); min-height: 460px; border: 0; border-radius: 16px; background: var(--surface); display: block; }

/* ---------- 赛程时间 ---------- */
.win-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.win-row:last-of-type { border-bottom: none; }
.win-name { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.win-inputs { display: flex; align-items: center; gap: 8px; }
.win-inputs input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 12px; }
.win-inputs span { font-size: 12px; color: var(--muted); }
.win-state { margin-top: 7px; font-size: 12px; }
.win-state.ok { color: var(--green, #35D49A); }
.win-state.off { color: var(--red, #FF4E8E); }

.win-banner { font-size: 12px; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.win-banner.ok { background: rgba(53, 212, 154, .12); color: var(--green, #35D49A); }
.win-banner.off { background: rgba(255, 78, 142, .12); color: var(--red, #FF4E8E); }

/* 足总杯单独计入，不用金色高亮，避免和「联赛最高」混淆 */
.gp-line.counted { color: var(--text); }
.gp-line.counted b { color: var(--text); }

/* ---------- 头像 / 队徽 ---------- */
.ava, .tlogo {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; overflow: hidden; color: #14100A; font-weight: 700;
  vertical-align: middle; background: var(--surface-3);
}
.ava img, .tlogo img, .brand-logo img, .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.xs  { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
.ava.xxs { width: 18px; height: 18px; font-size: 10px;  border-radius: 6px; }
.ava.md  { width: 38px; height: 38px; font-size: 15px; border-radius: 11px; }
.ava.lg  { width: 52px; height: 52px; font-size: 20px; border-radius: 14px; }
.ava.xl  { width: 72px; height: 72px; font-size: 28px; border-radius: 18px; }
.tlogo.xxs { width: 16px; height: 16px; font-size: 10px;  border-radius: 5px; }
.tlogo.md  { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.tlogo.lg  { width: 52px; height: 52px; font-size: 20px; border-radius: 14px; }

/* r120 手动选人候选：一行 3 个选手，头像固定 22px，名称/球队各自单行截断 */
.sl-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sl-pick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 78px; padding: 9px 4px; box-sizing: border-box;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2);
  color: var(--text); cursor: pointer; }
.sl-pick-card.on { border-color: var(--gold); background: rgba(240,180,41,.10); }
.sl-pick-card .ava { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
.sp-name, .sp-team { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-name { font-size: 12px; font-weight: 600; }
.sp-team { font-size: 10px; color: var(--dim); }
@media (max-width: 360px) {
  .sl-pick-grid { gap: 5px; }
  .sl-pick-card { padding: 8px 2px; }
}
.tlogo.xl  { width: 72px; height: 72px; font-size: 28px; border-radius: 18px; }

.who-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* 分组联赛的组别小徽标：跟在积分榜选手名后面 */
.grp-tag {
  flex: none; font-size: 11px; line-height: 1; padding: 3px 6px;
  border-radius: 8px; background: rgba(62, 198, 255, .12);
  color: #3EC6FF; border: 1px solid rgba(62, 198, 255, .35);
  white-space: nowrap;
}
/* 升降级后台：组内选手行（头像+名 左、组别下拉 右） */
.grp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid var(--line-2);
}
.grp-row:last-child { border-bottom: none; }
.grp-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.grp-row select { flex: none; max-width: 170px; width: 46%; }
.who .title .tlogo { margin-right: 5px; vertical-align: -3px; }
.bo3-line .ava { margin-right: 7px; }
/* 对阵图一行里的球队 LOGO + 队名 */
.bo3-line .tm {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto;
}
.bo3-line .tm .tlogo { margin: 0; }
/* 赛务 · 选手页：账号 / 密码行 */
.acct-line {
  margin-top: 7px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.acct-line b { color: var(--text); font-weight: 600; }
.acct-line .btn { margin-top: 0; }

/* r126 赛务「赛季」页分组线：联赛一阶段/二阶段 与 足总杯 是两套独立赛制，
   参数挨在一起容易看串，用一根带标签的横线把它们分开。
   标签 + 右侧留白线（同 .yb-tier 的做法），不做第二条信息编码，靠文字本身说明分组。 */
.adm-split { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; }
.adm-split > span { flex: none; display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted); white-space: nowrap; }
.adm-split > span::before { content: ''; width: 3px; height: 12px; border-radius: 2px;
  background: var(--gold); box-shadow: 0 0 6px rgba(62, 198, 255, .35); }
.adm-split::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line-2); }
/* 足总杯用紫色小条，和联赛的青色区分；文字仍是主编码，颜色只是辅助 */
.adm-split.cup > span::before { background: var(--violet-300); box-shadow: 0 0 6px rgba(156, 136, 255, .35); }
/* 无标签版：只有一根线。用在下一条内容自己就写着「足总杯」的地方，避免同名标题重复。
   这里不能跟 .win-row 的虚线一个强度，否则看着像「又一条普通分隔」——加粗到 2px 并用紫色渐变，
   一眼能看出「上面是联赛、下面是杯赛」。 */
.adm-split.bare { margin: 16px 0 12px; }
.adm-split.bare > span { display: none; }
.adm-split.bare::after { height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(156, 136, 255, .62), rgba(156, 136, 255, .10)); }
/* 同一排按钮里分组用的竖线（生成附加赛/二阶段 | 生成足总杯） */
.field-row > .adm-vsplit { flex: 0 0 1px; align-self: stretch; min-width: 1px;
  margin: 3px 6px; background: var(--line-2); }
/* 生成对阵卡里「联赛两个按钮 → 紫线 → 足总杯独占一行」，这排不再需要挤字号。
   未启用附加赛时按钮里跟一行小字。**必须用 inline-block 而不是 block**：block 会让
   innerText 在这句中间插入换行，`.test/verify-r76-noplayoff.js` 的
   「生成附加赛对阵（本季未启用）」整串断言就会失败（2026-11-26 实际踩到过）。
   inline-block 是行内级盒子，靠宽度自然挤到第二行，innerText 仍是连续一串。 */
.gen-off { display: inline-block; margin-left: 1px; font-size: 10px; font-weight: 500;
  line-height: 1.2; letter-spacing: .3px; color: var(--dim); }

/* 赛务 · 选手管理：两行紧凑布局（手机上昵称、账号各占一行，不再挤） */
.p-item { padding: 12px 14px; }
/* 选手行：昵称 / 登录 ID / 登录密码 / 管理按钮 同排显示 */
.p-flat-head, .p-item-flat { display: grid; grid-template-columns: 1.05fr 1.2fr 0.95fr auto; gap: 6px; align-items: center; }
.p-flat-head { padding: 9px 12px 4px; font-size: 11px; color: var(--dim); letter-spacing: .3px; }
.p-flat-head span:last-child { text-align: center; }
.p-item-flat { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.p-item-flat:last-child { border-bottom: none; }

/* 超管·选手卡：自适应网格（手机约 2 列，宽屏自动加列），点卡片开弹窗维护昵称/登录ID/密码 */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; }
.p-card { flex-direction: column; align-items: center; gap: 7px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.p-card:active { background: rgba(var(--ink-rgb), 0.04); }
.p-card .item-main { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; }
.p-card .item-t1 { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card .item-t2 { margin-top: 0; font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card .badge { margin-left: 4px; }
.p-card-group { grid-column: 1 / -1; padding: 2px 2px 0; font-size: 11px; color: var(--dim); letter-spacing: .3px; }
@media (min-width: 768px) {
  .p-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; padding: 14px; }
  .p-card { padding: 14px 10px 12px; }
  .p-card .item-t1 { font-size: 14px; }
}
.p-item-flat input { width: 100%; min-width: 0; padding: 7px 8px; font-size: 12px; border-radius: 8px; }
.p-item-flat .p-name-in { font-weight: 600; }
.p-item-flat .p-acct-in { color: var(--gold); }
.p-item-flat .p-acct-in.on { border-color: rgba(62, 198, 255, 0.45); }
.p-item-flat .p-pwd-in { color: var(--muted); }
.p-item-flat .p-pwd-in:focus, .p-item-flat .p-name-in:focus, .p-item-flat .p-acct-in:focus { color: var(--text); }
.p-item-flat .p-btns { display: flex; gap: 6px; justify-content: flex-end; }
.p-item-flat .p-btns .btn { padding: 6px 7px; font-size: 12px; white-space: nowrap; }
/* 赛务账号列表：单元格是纯文本（不是输入框），对齐选手表格的观感 */
.p-item-flat .st-name { font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-item-flat .st-acct { font-size: 12px; color: var(--gold); font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* 赛务 · 形象：历史图片库网格 */
.bk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin-top: 10px;
  /* 图多时在框内滚动（页面不被撑太长），滚轮步长在 app.js 里压到 45%，滑块走得更短更细 */
  max-height: min(56vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 4px 2px 2px; border-radius: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.bk-grid::-webkit-scrollbar { width: 8px; }
.bk-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.bk-grid::-webkit-scrollbar-track { background: transparent; }
.bk-filter {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.bk-chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.bk-chk input { width: 15px; height: 15px; margin: 0; --chk: var(--gold); }
/* r142：登录弹层的「记住账号和密码」——第一行勾选框+文案，第二行小字说明（缩进对齐文案） */
.lg-rm {
  display: grid; grid-template-columns: 15px 1fr; column-gap: 8px; row-gap: 3px;
  align-items: center; margin: 2px 0 8px; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lg-rm input { grid-row: 1; width: 15px; height: 15px; margin: 0; --chk: var(--cyan-400); }
.lg-rm span { grid-row: 1; font-size: 13px; color: var(--text); }
.lg-rm em { grid-row: 2; grid-column: 2; font-style: normal; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.bk-scope { font-variant-numeric: tabular-nums; }
.bk-cell {
  padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: pointer; aspect-ratio: 1; display: block;
}
.bk-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bk-cell:active { transform: scale(.96); }
@media (min-width: 768px) { .bk-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } }

/* 赛务后台：未保存提示条 + 保存按钮（吸顶，改动以界面为准） */
.dirty-bar {
  position: sticky; top: 6px; top: calc(6px + env(safe-area-inset-top)); z-index: 8;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding: 8px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.dirty-bar.on { border-color: rgba(255, 209, 102, 0.5); background: rgba(255, 209, 102, 0.09); color: var(--gold); }
.dirty-bar .db-act { display: flex; gap: 8px; flex: 0 0 auto; }
.dirty-bar .btn[disabled] { opacity: .45; }
.dirty-bar .btn.sm { padding: 6px 12px; font-size: 12px; }
@media (max-width: 380px) {
  .p-flat-head { display: none; }
  .p-item-flat { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; row-gap: 6px; }
  .p-item-flat .p-btns { grid-column: 1 / -1; }
}
.p-row { display: flex; align-items: center; gap: 8px; }
/* 赛务·竞拍球队管理：球队名 / 底价 / 状态 / 管理 同排显示 */
.t-flat-head, .t-item-flat { display: grid; grid-template-columns: 1.5fr 0.8fr 1.05fr auto; gap: 8px; align-items: center; }
.t-flat-head { padding: 9px 12px 4px; font-size: 11px; color: var(--dim); letter-spacing: .3px; }
.t-flat-head span:last-child { text-align: center; }
.t-item-flat { padding: 6px 12px; border-bottom: 1px solid var(--line); }
.t-item-flat:last-child { border-bottom: none; }
.t-item-flat input { width: 100%; min-width: 0; padding: 6px 8px; font-size: 12px; border-radius: 8px; }
.t-item-flat .t-name-in { font-weight: 600; }
.t-item-flat .t-base-in { color: var(--gold); text-align: center; }
.t-state { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-state b {
  align-self: flex-start; font-size: 12px; line-height: 1.1; font-weight: 500;
  padding: 3px 7px; border-radius: 999px; background: var(--surface-3); color: var(--dim); white-space: nowrap;
}
.t-state.on b { color: var(--gold); background: rgba(62, 198, 255, 0.14); }
.t-state.off b { color: #9CA3AF; background: rgba(107, 114, 128, 0.22); }
.t-state i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-item-flat .t-btns { display: flex; gap: 6px; justify-content: flex-end; }
.t-item-flat .t-btns .btn { padding: 6px 7px; font-size: 12px; white-space: nowrap; }
@media (max-width: 420px) {
  .t-flat-head { display: none; }
  .t-item-flat { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .t-item-flat .t-btns { grid-column: 2 / 3; }
}
/* 赛务后台·搜索框（竞拍「球队」/「选手 GP 额度」） */
.srch-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.srch-in {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px; font-size: 13px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); -webkit-appearance: none; appearance: none;
}
.srch-in::placeholder { color: var(--dim); }
.srch-in:focus { border-color: var(--gold); }
.srch-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.srch-n { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.srch-bar .srch-clear { flex: 0 0 auto; padding: 7px 10px; font-size: 12px; margin-top: 0; }
.srch-empty { padding: 20px 14px; text-align: center; font-size: 12px; color: var(--muted); }
/* 竞拍「球队」区：联赛名单 / 竞拍名单 对比 + 从联赛加入面板 */
.au-sync-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.au-sync-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.au-sync-line .warn { color: var(--gold); }
.au-sync-line .warn b { color: var(--gold); }
.au-pick-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.au-pick-tools .hint { margin: 0; }
.au-pick-list {
  margin-top: 10px; max-height: 42vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.au-pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--line); }
.au-pick-item:last-child { border-bottom: none; }
/* 选择器要写成 input.xxx：全局 input[type="checkbox"]（0,1,1）会压过 .au-pick-chk（0,1,0）的尺寸 */
input.au-pick-chk { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; --chk: var(--gold); }
.au-pick-nm { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-pick-base { width: 78px; flex: 0 0 auto; padding: 6px 8px; font-size: 13px; text-align: right; color: var(--gold); }
@media (max-width: 420px) {
  .au-pick-list { max-height: 38vh; }
  .au-pick-nm { font-size: 13px; }
  .au-pick-base { width: 68px; }
}
.p-row + .p-row { margin-top: 8px; }
.p-row input { flex: 1; min-width: 0; padding: 9px 10px; font-size: 14px; }
.p-row-2 input { font-size: 13px; }
.p-name-in { font-weight: 600; }
.p-acct-in { color: var(--gold); }
.acct-state {
  flex: 0 0 auto; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--dim); white-space: nowrap;
}
.acct-state.on { color: var(--gold); background: rgba(62, 198, 255, 0.14); }
/* 密码状态徽标 */
.p-pwd {
  flex: 0 0 auto; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--dim); white-space: nowrap;
}
.p-pwd.on { color: var(--green); background: rgba(53, 212, 154, 0.14); }
/* 队徽底色选择 */
.bg-sel {
  width: auto; flex: 0 0 auto; padding: 6px 8px; font-size: 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
}
@media (min-width: 768px) {
  .p-row { gap: 10px; }
  .p-row input { padding: 8px 12px; max-width: 640px; }
}
/* 规则页：一阶段名次 GP 输入网格 */
.gp-rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gp-rank-field { flex-direction: column; align-items: stretch; gap: 4px; }
.gp-rank-field input { width: 100%; }
.gp-edit-two { grid-template-columns: 1fr 84px; }

/* 站点 LOGO（顶栏 / 赛务上传预览） */
.brand-logo {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: linear-gradient(140deg, #3EC6FF, #7C5AF5);
  color: #14100A; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.brand-logo.big { width: 52px; height: 52px; flex: 0 0 52px; font-size: 16px; border-radius: 14px; }

/* 赛务 · 形象 */
.media-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.media-row:last-child { border-bottom: 0; }
.media-txt { flex: 1; min-width: 0; }
.media-t1 { font-size: 14px; font-weight: 600; }
.media-t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.media-row .btn { margin-top: 0; flex: 0 0 auto; padding: 6px 10px; font-size: 12px; }
.act-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.act-row .btn { margin-top: 0; }
.ta {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 12px; color: var(--text);
  font-size: 14px; font-family: inherit; margin: 10px 0 14px; resize: vertical;
}

/* ---------- 站内竞拍 ---------- */
.au-status-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.au-timer { font-size: 16px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .2px; white-space: nowrap; }
.au-timer.hot { color: var(--red); }
.au-status-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 10px; }
/* 竞拍规则 · 当前执行规则展示块 */
.au-rules-now { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 2px; margin-bottom: 14px; }
.au-rules-now .rn-head { font-size: 12px; font-weight: 700; color: var(--gold); padding-bottom: 6px; }
/* r171 竞拍资格：达标绿、未达标金，均与两套皮肤变量同源 */
.au-gate-note { margin-bottom: 10px; }
.au-gate { margin-bottom: 10px; border-left: 3px solid var(--green); }
.au-gate.no { border-left-color: var(--gold); }
.ag-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--dim); }
.ag-head b { color: var(--text); font-size: 13px; }
.ag-head span { color: var(--green); font-weight: 600; }
.au-gate.no .ag-head span { color: var(--gold); }
.ag-num { font-size: 22px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.au-gate.no .ag-num { color: var(--gold); }
.ag-num em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--dim); }
.ag-txt { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.au-wallet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.au-wallet .dg .v { font-size: 16px; }
.au-guest { text-align: center; font-size: 13px; color: var(--muted); }
/* 竞价过程（出价弹层内的历史列表） */
.au-bids { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.au-bids-t { font-size: 12px; color: var(--dim); padding-bottom: 2px; }
.au-bid-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.au-bid-row + .au-bid-row { border-top: 1px dashed var(--line); }
.au-bid-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.au-bid-at { flex: 0 0 auto; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.au-bid-p { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.au-bid-row.top .au-bid-p { color: var(--gold); font-size: 13px; }
.au-bid-row.top .au-bid-nm { font-weight: 600; }
.au-team.mine { box-shadow: inset 2px 0 0 rgba(62, 198, 255, .75); }
.au-guess { padding: 10px 0; border-bottom: 1px solid var(--line); }
.au-guess:last-child { border-bottom: 0; }
.au-guess-t { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.au-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.au-pool { margin-left: 6px; color: var(--dim); font-size: 11px; }
.au-ann { padding: 8px 0; border-bottom: 1px solid var(--line); }
.au-ann:last-child { border-bottom: 0; }
.au-ann-t { font-size: 13px; font-weight: 600; }
.au-ann-c { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.au-gp { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* 对阵图里姓名紧贴头像，不要让 space-between 把名字挤到中间 */
.bo3-line .nm { flex: 1 1 auto; }

/* ---------- 规则保存栏 ---------- */
.save-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 8px; padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 14px;
}
.save-bar-txt { flex: 1 1 auto; font-size: 12px; color: var(--gold); white-space: nowrap; }
.save-bar .btn { margin-top: 0; flex: 0 0 auto; width: auto; padding-left: 22px; padding-right: 22px; }

/* ---------- 电脑端适配（≥768px） ---------- */
@media (min-width: 768px) {
  .app { max-width: 1080px; padding-bottom: 104px; }
  .view { padding: 22px 36px 12px; }
  .topbar { padding: 16px 36px 14px; padding-top: calc(16px + env(safe-area-inset-top)); }
  .topbar::after { height: 2px; }
  body { font-size: 16px; }

  /* 榜单与卡片：更大留白与字号 */
  .row { padding: 13px 22px; }
  .stand-head { padding: 11px 22px; }
  .who .name { font-size: 16px; }
  .who .title { font-size: 12px; }
  .tot { width: 78px; flex: 0 0 78px; }
  .tot .v { font-size: 18px; }
  .detail { padding: 0 22px 18px; }
  .card { border-radius: 18px; }
  .card.pad, .card.tight { padding: 20px; }
  .section-title { margin: 28px 2px 12px; }
  .section-title b { font-size: 16px; }
  .dg { padding: 12px 10px; }
  .dg .v { font-size: 16px; }

  /* 网格扩列 */
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .entry-grid { grid-template-columns: repeat(6, 1fr); }
  .detail-grid { gap: 10px; }
  .gp-rank-grid { grid-template-columns: repeat(8, 1fr); }

  /* 底栏改为悬浮圆角坞 */
  .tabbar {
    max-width: 780px;
    bottom: 12px; left: 16px; right: 16px; margin: 0 auto; width: auto;
    border-radius: 18px; border: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    padding-bottom: 0;
  }
  .tab { padding: 10px 0 9px; font-size: 11px; }
  .tab svg { width: 20px; height: 20px; }

  /* 弹层与提示 */
  .sheet { max-width: 720px; border-radius: 22px 22px 0 0; }
  .toast { bottom: 112px; bottom: calc(112px + env(safe-area-inset-bottom)); }

  /* 表单与赛务页在宽屏下两列排布更紧凑 */
  .field-row { gap: 14px; }
  .save-bar { padding: 14px 20px; }
  .btn { font-size: 15px; }
  .btn.sm { padding: 9px 16px; }

  /* 对阵图对局卡片在宽屏下加大 */
  .bo3 { padding: 12px 16px; }
  .bo3-line .nm { font-size: 15px; }
  .bo3-line .sc { font-size: 16px; }

  /* 战力值合计卡更醒目 */
  .pw-total b { font-size: 20px; }
}

/* 年度冠军奖杯图标（1 分 = 1 座，0.5 分 = 半座） */
.troph { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.troph-row { display: inline-flex; align-items: center; vertical-align: -2px; margin-left: 6px; }
.tier-badge + .troph-row { margin-left: 8px; }

/* 历史赛季：年份 → 月份两级浏览（一个月一个赛季） */
.season-browser { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.season-years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.season-years .chip-n { margin-left: 5px; font-size: 11px; opacity: .6; font-variant-numeric: tabular-nums; }
/* 年度冠军行：参赛场次小字（积分相同时按它排序，所以直接显示出来） */
.an-play { color: var(--dim); font-variant-numeric: tabular-nums; }
/* 历史赛季行：赛季 GP 小字（主列已改为积分榜口径） */
.hist-gp { color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-rank { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }

/* 历史赛季页：超管「补录历史冠军」工具条 */
.hist-champ-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hcb-txt { flex: 1 1 150px; min-width: 0; }
.hcb-t1 { font-size: 13px; font-weight: 600; color: var(--text); }
.hcb-t2 { margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--dim); }
.hist-champ-bar .btn { flex: 0 0 auto; }

/* 年度折叠块：标题行（年度 + 赛季数 + 箭头），展开后是月度赛季格 */
.year-block {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
  overflow: hidden; transition: border-color .15s ease, background .15s ease;
}
.year-block.open { border-color: rgba(62, 198, 255, .34); background: var(--surface-3); }
.year-head {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px 12px; border: 0; background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.year-head b { font-size: 13.5px; font-weight: 700; letter-spacing: .3px; }
.year-block.open .year-head b { color: var(--gold); }
.year-head .yh-n {
  margin-left: auto; font-size: 12px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%;
}
.year-head .yh-arrow {
  flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--muted);
  transition: transform .18s ease;
}
.year-block.open .year-head .yh-arrow { transform: rotate(180deg); color: var(--gold); }
.year-body { display: none; padding: 0 10px 10px; }
.year-block.open .year-body { display: block; }
.season-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.season-cell {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 12px; font: inherit;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.season-cell b { font-size: 14px; font-weight: 700; color: var(--text); }
.season-cell span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-cell i { font-style: normal; font-size: 11px; color: var(--dim); }
.season-cell.on { border-color: var(--gold); background: linear-gradient(160deg, rgba(62, 198, 255, .16), rgba(124, 90, 245, .14)); }
.season-cell.on b { color: var(--gold); }

/* 年度冠军：使用球队 + 次数 */
.team-uses { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 4px; min-width: 0; }
.team-uses .tu {
  display: inline-flex; align-items: center; gap: 4px; line-height: 1.5;
  font-size: 12px; color: var(--muted); background: var(--surface-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px 2px 4px;
  min-width: 0; max-width: 100%; flex: 0 1 auto;
}
.team-uses .tu b { color: var(--gold); font-weight: 700; font-size: 12px; }
.team-uses .tu .tlogo { width: 14px; height: 14px; font-size: 10px; }
.team-uses .tu.muted { padding-left: 9px; color: var(--dim); }
/* r127：球队多的时候会把一条榜单记录撑成三四层，手机上一条就占半屏。
   折叠态只留用次数最多的那支（teamUsageOf 已按次数降序），其余收进「+N 支」，
   点开才铺满（.open 走上面的自动换行）。长队名省略号，绝不换行。 */
.team-uses .tu > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-uses.collapsed { flex-wrap: nowrap; overflow: hidden; }
.team-uses .tu-more {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 23px; padding: 0 9px;
  font: inherit; font-size: 11px; font-weight: 700; line-height: 1;
  color: var(--gold); background: transparent; border: 1px dashed var(--line-2);
  border-radius: 999px; cursor: pointer;
}
.team-uses .tu-more:active { opacity: .65; }
@media (hover: hover) { .team-uses .tu-more:hover { background: var(--surface-3); border-style: solid; } }

/* 晋级图：赛务判定晋级 / 弃赛标记 */
.bo3.forced { border-color: rgba(255, 78, 142, .32); }
.bo-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.bo-admin-t { font-size: 11px; color: var(--dim); margin-right: auto; }
.bo-admin .btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.fo-badge {
  flex: 0 0 auto; font-size: 11px; line-height: 16px; padding: 0 5px;
  color: var(--red); border: 1px solid rgba(255, 78, 142, .4);
  background: rgba(255, 78, 142, .12); border-radius: 6px;
}

/* 宽屏下积分榜 7 列仍保持紧凑（覆盖通用 .row 的加大留白） */
@media (min-width: 768px) {
  .stand-head.stand { padding: 10px 10px; }
  .stand-row { padding: 10px 10px; }
  .gp-row { padding: 9px 22px; }
}

/* ---------- 我的比赛：展开/收起 ---------- */
.mym-more {
  display: block; width: 100%; padding: 12px 14px; margin-top: 2px;
  background: transparent; border: 0; border-top: 1px solid var(--line);
  color: var(--cyan, #3EC6FF); font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
}
.mym-more:active { opacity: .7; }

/* ---------- r145：PES 自动上报 · 待确认比分 ---------- */
.pes-card { padding-top: 12px; }
.pes-item { padding: 11px 0; border-top: 1px solid var(--line); }
.pes-item:first-of-type { border-top: 0; padding-top: 2px; }
.pes-line { display: flex; align-items: center; gap: 8px; }
.pes-side {
  flex: 1; min-width: 0; font-size: var(--fs-small); color: var(--night-100);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pes-side.me { color: var(--night-0); font-weight: 600; }
.pes-line .pes-side:first-child { text-align: right; }
.pes-line .pes-side:last-child { text-align: left; }
.pes-score {
  flex: 0 0 auto; font-size: 16px; font-variant-numeric: tabular-nums;
  color: var(--cyan-300); letter-spacing: .5px;
}
.pes-meta { margin-top: 4px; text-align: center; font-size: var(--fs-caption); color: var(--muted); }
.pes-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 5px; }
.pes-tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: rgba(62,198,255,.12); border: 1px solid rgba(62,198,255,.38); color: var(--cyan-200);
}
.pes-tag.warn { background: rgba(255,209,102,.13); border-color: rgba(255,209,102,.45); color: var(--warning); }
.pes-tag.ghost { background: transparent; border-color: rgba(148,163,184,.34); color: var(--night-200); }
.pes-cf {
  display: flex; gap: 14px; justify-content: center; margin-top: 7px;
  font-size: var(--fs-caption); color: var(--muted);
}
.pes-cf .on { color: var(--success); }
.pes-btns { display: flex; gap: 8px; justify-content: center; margin-top: 9px; }
.pes-btns .btn { min-width: 0; }
.pes-done { font-size: var(--fs-caption); color: var(--muted); }

/* ---------- r146：历史赛季 · 逐场比分 ---------- */
.hist-matches { padding: 4px 12px 8px; }
.hist-day { border-top: 1px solid var(--line); }
.hist-day:first-of-type { border-top: 0; }
.hist-day > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 2px; cursor: pointer; list-style: none;
  font-size: var(--fs-caption); color: var(--muted);
}
.hist-day > summary::-webkit-details-marker { display: none; }
.hist-day > summary b { font-size: var(--fs-small); color: var(--night-100); letter-spacing: .3px; }
.hist-day[open] > summary { color: var(--cyan-300); }
.hist-m { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: var(--fs-small); }
.hist-m .hm-h, .hist-m .hm-a {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--night-100);
}
.hist-m .hm-h { text-align: right; }
.hist-m .hm-s {
  flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--cyan-300); font-size: 13.5px; letter-spacing: .5px;
}
.hist-m .hm-t { flex: 0 0 38px; text-align: right; font-size: 10.5px; color: var(--dim); }
.hist-m .hm-tags { flex: 0 0 auto; display: flex; gap: 3px; }
.hm-tag {
  font-size: 9.5px; padding: 1px 5px; border-radius: 999px;
  background: rgba(62,198,255,.12); border: 1px solid rgba(62,198,255,.35); color: var(--cyan-200);
}
.hm-tag.warn { background: rgba(255,209,102,.13); border-color: rgba(255,209,102,.45); color: var(--warning); }
.hm-tag.ghost { background: transparent; border-color: rgba(148,163,184,.34); color: var(--night-200); }

/* ---------- 淘汰赛：局分 → 场次比分弹窗卡片 ---------- */
/* 居中模态：PC 与手机表现一致，不再是底部抽屉 */
.sheet.modal {
  left: 50%; right: auto; bottom: auto; top: 50%;
  width: min(408px, calc(100vw - 32px));
  max-width: 408px; margin: 0;
  padding: 16px 16px 14px;
  border-radius: 20px; border: 1px solid var(--line-2);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .6);
  max-height: 84vh;
  transform: translate(-50%, -46%) scale(.96);
  opacity: 0;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1), opacity .18s ease, visibility .22s;
}
.sheet.modal.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.gsm-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gsm-tag { font-size: 12px; color: var(--muted); letter-spacing: .6px; }
.gsm-x {
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-size: 17px; line-height: 1;
}
.gsm-x:active { opacity: .6; }
.gsm-vs {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 10px 14px; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 16px;
}
.gsm-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gsm-nm {
  font-size: 13px; font-weight: 600; text-align: center; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gsm-nm.dim { color: var(--muted); }
.gsm-tm { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); max-width: 100%; }
.gsm-tm .tlogo { flex: 0 0 auto; }
.gsm-crown { margin-left: 3px; font-size: 12px; }
.gsm-side.win .gsm-nm { color: var(--gold); }
.gsm-mid { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gsm-sc { font-size: 25px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; color: var(--text); }
.gsm-lab { font-size: 11px; color: var(--dim); letter-spacing: 1.5px; }
.gsm-games { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gsm-g { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.gsm-g:last-child { border-bottom: 0; }
.gsm-gi { font-size: 12px; color: var(--muted); }
.gsm-gs { font-size: 15px; color: var(--text); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.gsm-gs i { font-style: normal; color: var(--dim); margin: 0 5px; font-size: 12px; }
.gsm-gs.wl b:first-child, .gsm-gs.lr b:last-child { color: var(--gold); }
.gsm-empty { padding: 16px 12px; font-size: 12px; color: var(--muted); text-align: center; }
.gsm-ft { margin-top: 10px; font-size: 12px; line-height: 1.65; color: var(--dim); }

/* ---------- 赛程倒计时（电子表 · 紧凑三栏） ---------- */
.cd-card { padding: 9px 12px 9px; margin-bottom: 10px; }
.cd-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.cd-hd b { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted); }
.cd-hd .btn { width: auto; flex: 0 0 auto; }
.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 7px 2px 6px; border-radius: 10px; min-width: 0;
  background: rgba(var(--ink-rgb), .03); border: 1px solid var(--line);
}
.cd-cell.live { background: rgba(62, 198, 255, .06); border-color: rgba(62, 198, 255, .30); }
.cd-k { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.cd-cell.live .cd-k { color: var(--text); }
.cd-live { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(53, 212, 154, .16); display: inline-block; }
.cd-v { display: flex; align-items: center; min-height: 20px; }
.cd-time { display: inline-flex; align-items: center; gap: 2px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-time b {
  min-width: 17px; padding: 2px 3px; text-align: center;
  font-size: 12px; font-weight: 800; color: var(--gold);
  background: rgba(62, 198, 255, .10); border: 1px solid rgba(62, 198, 255, .24); border-radius: 5px;
}
.cd-time b.cd-d { min-width: 0; padding: 2px 1px 2px 3px; background: none; border-color: transparent; color: var(--gold); }
.cd-time i { font-style: normal; font-size: 11px; color: var(--dim); }
.cd-time b.cd-d i { font-size: 11px; margin-left: 1px; }
.cd-over {
  font-size: 12px; font-weight: 700; color: var(--red); white-space: nowrap;
  padding: 2px 8px; border-radius: 5px; background: rgba(255, 78, 142, .10); border: 1px solid rgba(255, 78, 142, .28);
}
.cd-na { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* 三个截止时间都没设置时，用一行轻量提示替代空格子 */
.cd-tip { padding: 8px 2px 2px; font-size: 12px; color: var(--dim); }
@media (max-width: 359px) {
  .cd-grid { grid-template-columns: 1fr; gap: 5px; }
  .cd-cell { flex-direction: row; justify-content: space-between; padding: 6px 10px; }
}

/* ---------- 赛季公告弹窗 ---------- */
.ntc-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ntc-t1 { font-size: 16.5px; font-weight: 700; letter-spacing: .3px; }
.ntc-t2 { margin-top: 4px; font-size: 12px; color: var(--muted); }
.ntc-note {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(240, 180, 41, .07); border: 1px solid rgba(240, 180, 41, .22);
  font-size: 12.5px; line-height: 1.7; color: #F2DFA8;
}
.ntc-sec { margin-top: 14px; }
.ntc-t { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.ntc-sec p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.75; color: var(--text); }
.ntc-sec p b { color: var(--gold); font-weight: 700; }
.ntc-w { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ntc-wn { flex: 0 0 52px; font-size: 12.5px; font-weight: 600; }
.ntc-wt { flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ntc-wt em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: var(--dim); }
.ntc-tag {
  flex: 0 0 auto; font-style: normal; font-size: 11px; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
.ntc-tag.live { color: var(--green); border-color: rgba(53, 212, 154, .35); background: rgba(53, 212, 154, .10); }
.ntc-tag.soon { color: var(--gold); border-color: rgba(62, 198, 255, .35); background: rgba(62, 198, 255, .10); }
.ntc-tag.off, .ntc-tag.na { color: var(--dim); }
.ntc-ft { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); text-align: center; }

/* 旧版（底部抽屉）场内比分样式保留给历史调用 */
.gs-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px;
}
.gs-nm { flex: 1 1 0; font-size: 13px; font-weight: 600; word-break: break-all; }
.gs-nm.right { text-align: right; }
.gs-score { flex: 0 0 auto; font-size: 22px; font-weight: 800; color: var(--gold); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.gs-list { padding: 2px 0; }
.gs-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.gs-row:last-child { border-bottom: 0; }
.gs-row b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }

/* 有结果的对阵卡可以点开看场次比分 */
.kb-tap { cursor: pointer; }
.kb-tap:active { opacity: .92; }
.kb-tap .kbm-sc, .kb-tap .bo3-line .sc { text-decoration: underline dotted rgba(var(--ink-rgb), .35); text-underline-offset: 3px; }

/* 「第 3 场 可留空」小标 */
.leg-opt { margin-left: 6px; font-style: normal; font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 5px; }

/* ---------- 分享按钮行 ---------- */
.kb-actions { display: flex; justify-content: flex-end; gap: 8px; margin: -2px 0 10px; }
.kb-actions .btn.sm { width: auto; }

/* ---------- 历史赛季：二阶段 / 足总杯名次徽章 ---------- */
.hist-stages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.hs-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--muted);
  padding: 1px 7px; border-radius: 999px; background: rgba(var(--ink-rgb),.05); border: 1px solid var(--line);
}
/* 二阶段成绩专属色（紫），与足总杯（灰）区分；冠军金（gold）优先级更高 */
.hs-badge.l2 { color: var(--purple); background: rgba(124,90,245,.12); border-color: rgba(124,90,245,.42); }
.hs-badge.gold { color: var(--gold); background: rgba(240,180,41,.10); border-color: rgba(240,180,41,.35); }

/* ---------- 清空数据：范围勾选面板 ---------- */
.clr-list { margin: 2px 0 10px; }
.clr-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(var(--ink-rgb),.02); cursor: pointer;
}
.clr-row:last-child { margin-bottom: 0; }
.clr-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface-2);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.clr-row input[type="checkbox"]:checked {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23071530' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--gold);
}
.clr-row .clr-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clr-row .clr-txt b { font-size: 13.5px; font-weight: 500; }
.clr-row .clr-txt i { font-style: normal; font-size: 12px; color: var(--dim); line-height: 1.5; }
.clr-row.on { border-color: rgba(62,198,255,.45); background: rgba(62,198,255,.07); }
.clr-row.dead { opacity: .45; cursor: default; }
.clr-row.dead input { cursor: default; }
.clr-note {
  font-size: 12px; line-height: 1.7; color: var(--muted);
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,78,142,.08); border: 1px solid rgba(255,78,142,.22);
}
.clr-note b { color: var(--text); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ==========================================================================
   设计系统收口 v1.0（详见 design-system.md）
   1) 焦点可见  2) 触摸目标  3) 数字等宽  4) 桌面端导航形态
   ========================================================================== */

/* 1. 焦点可见（WCAG 2.4.7）：键盘用户必须看得见焦点在哪。
      鼠标点击不显示，只有键盘 Tab / 读屏聚焦时才出现，避免视觉噪音。 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--line-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:where(a, button, [tabindex]):focus:not(:focus-visible) { outline: none; }

/* 焦点不被吸顶栏遮住（WCAG 2.4.11 Focus Not Obscured） */
:where(input, select, textarea, [tabindex], .card, .row, .field) { scroll-margin-top: 84px; }

/* 2. 触摸目标（WCAG 2.5.8）：筛选 chip 原高约 30px，补到 36px */
.chip { min-height: 36px; display: inline-flex; align-items: center; }

/* 3. 数字等宽：刷新 / 切换赛季时列宽不跳动 */
.stand-row .nums, .stand-head .nums, .tot .v, .score, .leg-sc,
.cd-time, .gp-n, .srch-n, .bk-scope { font-variant-numeric: tabular-nums; }

/* 4. 底栏宽度跟随内容区（原固定 560，桌面端底栏只有中间一小截） */
@media (min-width: 768px) {
  .tabbar { max-width: 1080px; }
}

/* 5. 桌面端导航形态（≥992px）：底部 tabbar → 左侧悬浮 rail。
      零 DOM 改动：沿用现有 .tabbar / .tab[data-act=tab]，选中态由 app.js 现有逻辑驱动。
      left 用 max() 兜底，保证 992~1100 窄桌面不与内容重叠。 */
@media (min-width: 992px) {
  .app { max-width: 880px; padding-bottom: 28px; }
  .tabbar {
    top: 50%; bottom: auto; right: auto;
    left: max(12px, calc(50% - 540px));
    transform: translateY(-50%);
    width: 76px; max-width: none; margin: 0;
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr;
    gap: 2px; padding: 8px;
    border: 1px solid var(--line); border-top: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(20, 25, 57, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  .tab {
    min-height: 56px; padding: 8px 0; gap: 4px;
    border-radius: var(--radius-md); font-size: 11px;
  }
  .tab svg { width: 19px; height: 19px; }
  .tab.on { background: rgba(62, 198, 255, 0.12); font-weight: 500; }
}

/* 动效克制：只动 transform / opacity，并尊重系统「减弱动效」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 后台页签：10 个页签用普通 .seg 会被五等分压成竖排文字，
   改为按内容宽自动换行（每行放得下几个是几个） */
.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { flex: 0 1 auto; padding: 10px 14px; white-space: nowrap; min-height: 40px; }

/* 比分页 / 上报弹窗的搜索框：计数换到下一行，窄屏不挤压输入框 */
.srch-bar.tight { flex-wrap: wrap; }
.srch-bar.tight .srch-n { flex: 1 1 100%; text-align: right; margin-top: -6px; }

/* 装到桌面的步骤引导（iOS「分享 → 添加到主屏幕」/ 安卓菜单「安装应用」/ 微信转浏览器） */
.ins-steps { margin: 16px 0 8px; }
.ins-step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); line-height: 1.5; }
.ins-step:last-child { border-bottom: 0; }
.ins-step i { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(62, 198, 255, 0.14); color: var(--gold); font-size: 12px; font-style: normal; font-weight: 500; display: flex; align-items: center; justify-content: center; }

/* 历季冠军墙（排行 → 年度冠军页顶部）：每季一张身份卡。
   金色用 --warning（--gold 是历史遗留名，实为青色），不接天梯字段。 */
.wall-wrap { margin-bottom: 18px; }
.wall-hd { margin: 2px 2px 10px; }
.wall-t { font-size: var(--fs-small); font-weight: 600; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wall-t span { font-size: var(--fs-caption); font-weight: 400; color: var(--cyan-300); }
.wall-sub { font-size: var(--fs-caption); color: var(--dim); line-height: 1.6; margin-top: 3px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wall-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 13px; overflow: hidden; }
.wall-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--warning), rgba(255, 209, 102, 0.18)); }
.wall-season { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wall-season b { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.wall-season span { font-size: var(--fs-caption); color: var(--dim); white-space: nowrap; }
.wall-body { padding-top: 9px; }
.wall-line { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 7px; }
.wall-tag { flex: none; font-size: var(--fs-caption); line-height: 1.5; padding: 2px 7px; border-radius: var(--radius-sm); background: rgba(255, 209, 102, 0.12); color: var(--warning); white-space: nowrap; }
.wall-tag.violet { background: rgba(156, 136, 255, 0.14); color: var(--violet-300); }
.wall-names { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.wall-champ { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 7px; }
.wall-champ b, .wall-champ .pname { font-weight: 600; }
.wall-champ small { font-size: var(--fs-caption); color: var(--dim); }
.wall-l1 { font-size: var(--fs-caption); color: var(--dim); line-height: 1.6; margin-top: 2px; }
.wall-l1 b, .wall-l1 .pname { color: var(--muted); font-weight: 500; }
.wall-none { font-size: var(--fs-caption); color: var(--dim); padding: 4px 0; }
.wall-dup { font-size: var(--fs-caption); color: var(--danger-text); line-height: 1.5; margin-top: 4px; }
.wall-more { width: 100%; margin-top: 10px; }
@media (max-width: 420px) {
  .wall-grid { grid-template-columns: 1fr; }
}

/* ================= 荣耀 / 归属 / 新鲜 四元素（2026-11-24） ================= */
/* r135：我的页顶头栏只留身份（头像 / 昵称 / 球队 / 段位），9 宫格数据并入下方模块 */
.me-identity { padding-top: 14px; padding-bottom: 14px; }

/* 生涯档案馆 */
.career-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.career-stats .cs { text-align: center; padding: 8px 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; }
.career-stats .cs .v { font-size: var(--fs-body); font-weight: 600; color: var(--warning); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.career-stats .cs .l { font-size: var(--fs-caption); color: var(--dim); margin-top: 3px; line-height: 1.3; }

/* 新版本提示条：SW 接管后通知旧页面弹条，一键刷新到最新 JS */
#updBar {
  position: fixed; left: 12px; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--gold, #F5B942); color: #0C1222;
  font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
#updBar .ub-go {
  background: #0C1222; color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; flex: 0 0 auto;
}

/* 天梯 ELO 分（后台内部参考视图）：只读表格，数字统一等宽对齐 */
.elo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .elo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.elo-cell { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 6px; text-align: center; min-width: 0; }
.elo-cell b { display: block; font-size: var(--fs-body); font-weight: 600; color: var(--warning); font-variant-numeric: tabular-nums; }
.elo-cell span { display: block; margin-top: 3px; font-size: var(--fs-caption); color: var(--dim); line-height: 1.3; }
.elo-row { display: flex; align-items: center; gap: 10px; }
.elo-row .item-main { flex: 1; min-width: 0; }
.elo-rank { flex: none; width: 24px; text-align: center; font-size: var(--fs-caption); color: var(--dim); font-variant-numeric: tabular-nums; }
.elo-score { flex: none; font-size: var(--fs-body); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.elo-score.hi { color: var(--success); }
.elo-score.lo { color: var(--danger-text); }
/* r119：站内徽章墙与分享图同款「固定宽 chip + 星级/文字两行」。
   旧三列网格会被长短不一的标签撑得参差；固定 72px 的 flex 换行更像一枚枚可收集的徽章。 */
.ms-grid { display: flex; flex-wrap: wrap; margin-top: 8px; }
.ms-badge { display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; min-height: 46px; box-sizing: border-box;
  padding: 5px 4px; margin: 0 6px 6px 0;
  border: 1px dashed var(--line-2); border-radius: 8px;
  background: rgba(var(--ink-rgb), 0.02); opacity: 0.55; }
.ms-badge.got { opacity: 1; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.04); }
.ms-ico { font-size: 19px; line-height: 1; color: var(--dim); }
.ms-badge.got .ms-ico { color: var(--text); }
.ms-lb { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center;
  line-height: 1.2; white-space: nowrap; }
.ms-badge.got .ms-lb { color: var(--text); }
/* r113：星级是主编码，颜色是次编码。星号真实文本节点，字号必须覆盖 .ms-ico 的 19px */
.ms-stars { display: block; font-size: 11px; line-height: 1; letter-spacing: 1px; margin-bottom: 4px;
  white-space: nowrap; font-variant-emoji: text; }
/* 难度色胜出：类别已由 .yb-tier 分组标题表达，旧的 t-* 未解锁描边规则已删除 */
.ms-badge.d1.got { background: var(--bdg-d1-bg); border: 1px solid var(--bdg-d1-bd); }
.ms-badge.d2.got { background: var(--bdg-d2-bg); border: 1px solid var(--bdg-d2-bd); }
.ms-badge.d3.got { background: var(--bdg-d3-bg); border: 1px solid var(--bdg-d3-bd); }
.ms-badge.d4.got { background: var(--bdg-d4-bg); border: 1px solid var(--bdg-d4-bd); }
.ms-badge.d5.got { background: var(--bdg-d5-bg); border: 1px solid var(--bdg-d5-bd); }
.ms-badge.d1.got .ms-stars { color: var(--bdg-d1-st); }
.ms-badge.d2.got .ms-stars { color: var(--bdg-d2-st); }
.ms-badge.d3.got .ms-stars { color: var(--bdg-d3-st); }
.ms-badge.d4.got .ms-stars { color: var(--bdg-d4-st); }
.ms-badge.d5.got .ms-stars { color: var(--bdg-d5-st); }
.ms-badge.d1.got .ms-lb { color: var(--bdg-d1-fg); }
.ms-badge.d2.got .ms-lb { color: var(--bdg-d2-fg); }
.ms-badge.d3.got .ms-lb { color: var(--bdg-d3-fg); }
.ms-badge.d4.got .ms-lb { color: var(--bdg-d4-fg); }
.ms-badge.d5.got .ms-lb { color: var(--bdg-d5-fg); }
/* r117：点亮/未点亮靠「形状」区分，不靠颜色——1★ 已点亮本身就是灰系，
   若未点亮还带档位色，两种灰几乎无法分辨。未点亮统一灰阶 + 空心☆ + 虚线；
   已点亮保留档位彩 + 实心★ + 实线。已解锁的星数仍由实心数量表达难度。 */
.ms-badge:not(.got) { border: 1px dashed var(--line-2); background: rgba(var(--ink-rgb),.02); opacity: .55; }
.ms-badge:not(.got) .ms-stars,
.ms-badge:not(.got) .ms-lb { color: var(--muted); }
/* r125：徽章从 <div> 改成 <button>，点开看「获得条件 + 还差多少」。
   这里抹掉按钮默认外观，视觉与旧 chip 完全一致，只多一个可按下的反馈。 */
button.ms-badge { font: inherit; color: inherit; -webkit-appearance: none; appearance: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .15s ease, background .15s ease, opacity .15s ease; }
button.ms-badge:active { transform: scale(.94); }
button.ms-badge:focus-visible { outline: 2px solid var(--warning); outline-offset: 2px; }
@media (hover: hover) {
  button.ms-badge:hover { opacity: .85; border-color: var(--muted); }
  button.ms-badge.got:hover { opacity: 1; }
}
/* 徽章详情弹层 */
.bdg-hero { display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 16px 12px; margin: 14px 0 2px; border-radius: var(--radius-md);
  border: 1px dashed var(--line-2); background: var(--surface-2); }
.bdg-hero.got { border-style: solid; }
.bdg-stars { font-size: 20px; line-height: 1; letter-spacing: 2px; color: var(--muted); font-variant-emoji: text; }
.bdg-hero-lb { font-size: 15px; font-weight: 800; color: var(--text); }
.bdg-hero-tag { font-size: var(--fs-caption); color: var(--dim); }
.bdg-hero.d1.got { background: var(--bdg-d1-bg); border-color: var(--bdg-d1-bd); }
.bdg-hero.d2.got { background: var(--bdg-d2-bg); border-color: var(--bdg-d2-bd); }
.bdg-hero.d3.got { background: var(--bdg-d3-bg); border-color: var(--bdg-d3-bd); }
.bdg-hero.d4.got { background: var(--bdg-d4-bg); border-color: var(--bdg-d4-bd); }
.bdg-hero.d5.got { background: var(--bdg-d5-bg); border-color: var(--bdg-d5-bd); }
.bdg-hero.d1.got .bdg-stars { color: var(--bdg-d1-st); }
.bdg-hero.d2.got .bdg-stars { color: var(--bdg-d2-st); }
.bdg-hero.d3.got .bdg-stars { color: var(--bdg-d3-st); }
.bdg-hero.d4.got .bdg-stars { color: var(--bdg-d4-st); }
.bdg-hero.d5.got .bdg-stars { color: var(--bdg-d5-st); }
.bdg-hero.d1.got .bdg-hero-lb { color: var(--bdg-d1-fg); }
.bdg-hero.d2.got .bdg-hero-lb { color: var(--bdg-d2-fg); }
.bdg-hero.d3.got .bdg-hero-lb { color: var(--bdg-d3-fg); }
.bdg-hero.d4.got .bdg-hero-lb { color: var(--bdg-d4-fg); }
.bdg-hero.d5.got .bdg-hero-lb { color: var(--bdg-d5-fg); }
.bdg-hero.not .bdg-stars, .bdg-hero.not .bdg-hero-lb { color: var(--muted); }
.bdg-sec { margin-top: 15px; }
.bdg-k { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px;
  font-size: var(--fs-caption); font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }
.bdg-k span { font-weight: 500; color: var(--dim); font-size: 10px; letter-spacing: 0; }
.bdg-v { font-size: var(--fs-small); color: var(--text); line-height: 1.7; }
.bdg-bar { height: 8px; border-radius: var(--radius-pill); background: rgba(var(--ink-rgb),.08); overflow: hidden; }
.bdg-bar i { display: block; height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cyan-400), var(--warning)); transition: width .3s ease; }
.bdg-cur { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 7px; font-size: 11px; color: var(--dim); }
.bdg-cur b { color: var(--text); font-variant-numeric: tabular-nums; }
.bdg-gap { margin-top: 9px; font-size: var(--fs-small); font-weight: 600; color: var(--warning); line-height: 1.6; }
.bdg-gap.ok { color: var(--success); }
.bdg-na { font-size: var(--fs-small); color: var(--dim); line-height: 1.7;
  padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
/* 年度徽章：年份切换条 + 分档标题 */
.yb-wrap { margin-top: 12px; }
.yb-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.yb-bar::-webkit-scrollbar { display: none; }
.yb-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 12px; min-height: 36px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.yb-chip i { font-style: normal; font-size: 10px; font-weight: 500; color: var(--dim); }
.yb-chip.on { border-color: var(--warning); color: var(--warning); background: rgba(255, 209, 102, 0.10); }
.yb-chip.on i { color: var(--warning); }
.yb-sum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.yb-sum b { font-size: var(--fs-small); color: var(--text); }
.yb-sum span { font-size: var(--fs-caption); color: var(--dim); }
.yb-legend { font-size: var(--fs-caption); color: var(--muted); margin-top: 4px; }
.yb-tier { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.yb-tier span { font-size: var(--fs-caption); font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }
.yb-tier i { font-style: normal; font-size: 10px; color: var(--dim); }
.yb-tier::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.yb-total { margin-top: 12px; font-size: var(--fs-caption); color: var(--dim); text-align: center; line-height: 1.5; }
.yb-total b { color: var(--warning); font-size: var(--fs-small); }
.yb-empty { margin-top: 12px; padding: 12px; text-align: center; font-size: var(--fs-caption);
  color: var(--dim); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
/* 新解锁横幅：本机一次性，不打扰 */
.ms-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px;
  background: rgba(255, 209, 102, 0.12); border: 1px solid var(--warning); border-radius: var(--radius-md); }
.msb-star { font-size: 24px; color: var(--warning); line-height: 1; flex: none; }
.msb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msb-text b { font-size: var(--fs-small); color: var(--warning); }
.msb-text span { font-size: var(--fs-caption); color: var(--dim); }
.msb-x { flex: none; background: none; border: 0; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; min-width: 36px; min-height: 36px; }
/* 球队传承弹层 */
.legacy-link { display: inline-block; margin-top: 6px; padding: 2px 0; background: none; border: 0;
  color: var(--cyan-300, var(--gold)); font-size: var(--fs-caption); cursor: pointer; }
.legacy-link:hover { text-decoration: underline; }
.lg-sec { font-size: var(--fs-small); font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.lg-list { max-height: 34vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lg-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.lg-row:last-child { border-bottom: 0; }
.lg-pos { width: 20px; flex: none; color: var(--dim); text-align: center; }
.lg-row b { flex: 1; min-width: 0; color: var(--text); }
.lg-meta { color: var(--dim); font-size: var(--fs-caption); text-align: right; }
/* 历史赛季表的回顾卡按钮 */
.recap-link { display: inline-block; margin-top: 6px; padding: 2px 0; background: none; border: 0;
  color: var(--cyan-300, var(--gold)); font-size: var(--fs-caption); cursor: pointer; }
.recap-link:hover { text-decoration: underline; }
@media (max-width: 420px) {
  .career-stats { grid-template-columns: repeat(2, 1fr); }
  .ms-badge { margin-right: 5px; padding: 5px 3px; }
  .yb-chip { padding: 6px 10px; }
}

/* 选手名可点击 → 生涯档案 */
.pname { cursor: pointer; text-decoration: underline dotted rgba(156,136,255,.55); text-underline-offset: 3px; transition: color .15s; }
.pname:hover, .pname:active { color: var(--violet-300, var(--gold)); }
.pname:focus-visible { outline: 2px solid var(--violet-300, var(--gold)); outline-offset: 2px; border-radius: 3px; }

/* ── r118 比赛预测 / GP 来源明细 ── */
.pred-card { margin-bottom: 10px; }
.pred-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pred-head b { font-size: 15px; }
.pred-head .hint { margin-top: 3px; }
.pred-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.pred-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 4px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
  cursor: pointer; line-height: 1.2; }
.pred-opt:disabled { cursor: default; opacity: .72; }
.pred-opt.on { border-color: var(--gold); background: rgba(240,180,41,.10); }
.pred-opt.win { border-color: var(--success); background: rgba(63,185,109,.12); }
.po-n { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.po-o { font-size: 15px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.po-p { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pred-admin-row { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.pred-cand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pred-cand:last-child { border-bottom: 0; }
.gp-season { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface-2); }
.gp-season summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.gp-season summary::-webkit-details-marker { display: none; }
.gp-season summary span { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.gp-ledger-list { border-top: 1px solid var(--line); padding: 4px 12px 8px; }
.gp-ledger-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.gp-ledger-row:last-child { border-bottom: 0; }
.gl-kind { color: var(--muted); white-space: nowrap; }
.gl-reason { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.gl-reason i { display: block; font-size: 10px; color: var(--dim); font-style: normal; }
.gp-ledger-row b { font-variant-numeric: tabular-nums; }
.gp-ledger-row b.up { color: var(--success); }
.gp-ledger-row b.down { color: var(--danger-text); }
@media (max-width: 420px) {
  .pred-opts { gap: 5px; }
  .pred-opt { padding: 8px 2px; }
  .po-n { font-size: 12px; }
  .po-o { font-size: 14px; }
  .gp-ledger-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 5px; }
}

/* ================= 启动画面（r125） =================
   只在「桌面图标 / 安装到主屏后启动」时播放（index.html 首帧前判断并挂 .splash-on）：
   LOGO 缓慢放大到 1.5 倍 → 站名流光变色 → 标语淡入，整体约 2.3s，点一下可跳过。
   减弱动态效果（prefers-reduced-motion）时整层根本不出现。 */
.splash { position: fixed; inset: 0; z-index: 200; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 78% at 50% 32%, #17214E 0%, #0C1231 55%, #080B22 100%);
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  opacity: 1; transition: opacity .45s ease;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.splash-on .splash { display: flex; }
html.splash-on body { overflow: hidden; }
.splash.out { opacity: 0; }
/* 光晕：和 LOGO 一起扩散，缩放才有体量感，而不是干拉一张图 */
.splash-glow { position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,198,255,.34) 0%, rgba(62,198,255,0) 68%);
  transform: scale(.6); opacity: 0;
  animation: splashGlow 1.9s cubic-bezier(.3,.7,.3,1) .1s forwards; pointer-events: none; }
@keyframes splashGlow {
  0% { transform: scale(.6); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1.95); opacity: 0; }
}
.splash-logo { position: relative; width: 96px; height: 96px; border-radius: 24px;
  overflow: hidden; background: #0F1436;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--ink-rgb),.08);
  /* 2s 才放大到 1.5 倍，且用对称 ease-in-out：起步慢、中段匀，肉眼能看清「在长大」 */
  animation: splashZoom 2s cubic-bezier(.42,0,.58,1) .06s forwards; }
@keyframes splashZoom { from { transform: scale(1); } to { transform: scale(1.5); } }
.splash-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.splash-fb { display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  font: 800 34px/1 var(--font-sans); letter-spacing: 1px; color: var(--cyan-300); }
.splash-name { position: relative; margin-top: 54px; font-size: 22px; font-weight: 800;
  letter-spacing: 3px; color: var(--night-0); white-space: nowrap;
  opacity: 0; animation: splashIn .6s ease 1.15s forwards; }
/* 彩色流光：站名整体做渐变位移，读起来是「颜色在闪」，不是逐字跳色 */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .splash-name {
    background: linear-gradient(100deg, #EEF1FF 0%, #63D3FF 20%, #FFD166 42%, #C3B6FF 64%, #EEF1FF 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: splashIn .6s ease 1.15s forwards, splashShine 2.6s linear 1.15s infinite;
  }
}
@keyframes splashShine { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }
.splash-tag { margin-top: 14px; font-size: 13px; letter-spacing: 1.5px; color: var(--muted);
  text-align: center; line-height: 1.6;
  opacity: 0; animation: splashIn .7s ease 1.5s forwards; }
@keyframes splashIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) {
  .splash-name { font-size: 19px; letter-spacing: 2px; }
  .splash-tag { font-size: 12px; letter-spacing: 1px; }
}

/* ===== r130 我的主队 / 徽章限时 GP ===== */
.home-row { display: flex; align-items: center; gap: 12px; }
.home-main { flex: 1; min-width: 0; }
.home-name { font-size: 15px; font-weight: 700; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-row .tlogo { margin: 0; flex: 0 0 auto; }
.ht-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px;
  max-height: 52vh; overflow: auto; }
.ht-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ht-item .tlogo { margin: 0; flex: 0 0 auto; }
.ht-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-item:active { opacity: .7; }
@media (hover: hover) { .ht-item:hover { border-color: var(--gold); } }
.gp-exp-note { color: var(--gold); }

/* ===== r131 徽章组门槛（进攻 / 统治 / 荣耀：参赛 ≥6 赛季 + 平均完赛率 ≥50%） ===== */
.yb-gate { margin: 4px 0 8px; padding: 6px 9px; font-size: var(--fs-caption); line-height: 1.55;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.yb-gate b { color: var(--text); font-weight: 700; }
.yb-gate.no { border-color: rgba(255, 176, 32, .38); background: rgba(255, 176, 32, .08); color: var(--warning); }
.yb-gate.no b { color: var(--warning); }
.yb-gate.ok { border-color: rgba(62, 198, 255, .3); }
.bdg-gate-flag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  font-style: normal; vertical-align: 1px; }
.bdg-gate-flag.ok { color: var(--cyan-300); background: rgba(62, 198, 255, .14); }
.bdg-gate-flag.no { color: var(--warning); background: rgba(255, 176, 32, .14); }
.bdg-gap.no { color: var(--warning); }

/* ===== r132 我的页重排 / GP 钱包合并 / 主队内联 / 球队卡主队人数 ===== */
/* 我的页：模块间靠标题分层，卡片之间不再叠双倍留白 */
.career-card .home-inline { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); }
.home-row .btn.sm { flex: none; }
/* r133 本命球星：与主队同一张卡的第二行，不新增模块 */
.career-card .fav-inline { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); }
.fav-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fav-top b { font-size: var(--fs-small); font-weight: 700; }
.fav-top span { font-size: var(--fs-caption); color: var(--muted); }
.fav-ovr { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px;
  font-size: 11px; font-weight: 800; vertical-align: middle; }
.fav-ovr.b-bronze { color: #D8A06A; background: rgba(216,160,106,.14); }
.fav-ovr.b-silver { color: #B8C4D9; background: rgba(184,196,217,.14); }
.fav-ovr.b-gold   { color: var(--gold); background: rgba(240,180,41,.14); }
.fav-ovr.b-black  { color: var(--violet-200); background: rgba(192,132,252,.16); }
/* r134 本命球星扩展表单 */
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s; }
.fs-chip input { margin: 0; width: 15px; height: 15px; --chk: var(--cyan-400); flex: none; pointer-events: none; }
/* r139 选中态：整个 chip 高亮——此前只有 14px 小方框打勾，手机端几乎看不出「点了有没有生效」。
   :has 让现代浏览器（iOS 15.4+/Chrome 105+）即时生效；.on 由 JS 兜底老浏览器。 */
.fs-chip.on,
.fs-chip:has(input:checked) { border-color: var(--cyan-400); background: rgba(34,211,238,.16); color: var(--text); }
.fs-chip:active { transform: scale(.96); }
.fs-stats { margin-top: 8px; }
.fs-stat { display: grid; grid-template-columns: 64px 26px 1fr 26px 26px; align-items: center; gap: 6px;
  padding: 4px 0; font-size: 12px; }
.fs-stat > span { color: var(--muted); }
.fs-stat > b { text-align: center; font-variant-numeric: tabular-nums; color: var(--gold); }
.fs-stat input[type=range] { width: 100%; accent-color: var(--cyan-400); }
.btn.xs { padding: 3px 6px; font-size: 12px; line-height: 1.2; }
.fs-skills { margin-top: 12px; }
.fs-skills > b { display: block; margin-bottom: 8px; font-size: 12px; }
.fs-skill-grp { margin-bottom: 8px; }
.fs-skill-grp > b { display: block; margin-bottom: 5px; font-size: 11px; color: var(--cyan-300); font-weight: 500; }

/* GP 钱包抬头：一个主数字（竞拍可用）+ 限时/永久拆分 */
.gw-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 6px; }
.gw-main { min-width: 0; }
.gw-v { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.gw-l { font-size: var(--fs-caption); color: var(--muted); margin-top: 3px; }
.gw-side { display: flex; gap: 14px; text-align: right; }
.gw-side > div { display: flex; flex-direction: column; align-items: flex-end; }
.gw-side b { font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.gw-side b.gold { color: var(--gold); }
.gw-side span { font-size: 10px; color: var(--dim); margin-top: 1px; }

/* 卡内小节标题：比 section-title 轻一档，用来分隔同一张卡里的两件事 */
.wsub { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 16px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.wsub > span { font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.wsub > i { font-style: normal; font-size: 10px; color: var(--dim); }

/* 折叠块：details > summary 做成一行按钮，展开后内容正常排版 */
.me-fold { margin-top: 12px; }
.me-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px;
  padding: 10px 12px; font-size: var(--fs-small); font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.me-fold > summary::-webkit-details-marker { display: none; }
.me-fold > summary::after { content: '展开'; margin-left: auto; flex: none; font-size: 10px; font-weight: 600;
  color: var(--cyan-300, var(--gold)); }
.me-fold[open] > summary::after { content: '收起'; }
.me-fold > summary b { font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.me-fold > summary span { font-size: var(--fs-caption); color: var(--dim); font-weight: 500; }
.me-fold[open] > summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.me-fold > summary + * { margin-top: 10px; }
details.card.me-fold { padding: 0; background: transparent; border: 0; }
details.card.me-fold > .me-fold-body { padding: 0 2px; }
.me-fold .wsub:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }

/* 竞拍球队卡：主队人数 + 传承同一行，左信息右入口 */
.team-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.team-home { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  color: var(--gold); background: rgba(240, 180, 41, .14); border: 1px solid rgba(240, 180, 41, .34); }
.team-home.zero { color: var(--dim); background: transparent; border-color: var(--line); font-weight: 600; }
/* r155：有人的主队数可以点开看名单，给一点「可点」的视觉暗示（0 人不给，免得点开空列表） */
.team-home.clickable { cursor: pointer; }
.team-home.clickable::after { content: '›'; margin-left: 3px; opacity: .55; font-weight: 700; }
.team-home.clickable:hover, .team-home.clickable:focus-visible { background: rgba(240, 180, 41, .26); border-color: rgba(240, 180, 41, .6); }
.team-home.clickable:active { transform: translateY(1px); }
.team-meta .legacy-link { margin-top: 0; }

/* 选主队弹层的搜索框 */
.ht-search { width: 100%; margin-top: 12px; padding: 10px 12px; font: inherit; font-size: var(--fs-small);
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ht-search:focus { outline: none; border-color: var(--line-focus); }
.ht-search::-webkit-search-cancel-button { filter: invert(.6); }
/* 安装提示：从「一个模块」降级为「更多」下面的一行细提示 */
.install-tip { margin-top: 10px; }
.install-tip .item { padding: 10px 12px; }

/* r160：比分页顶部「老虎PES大厅」传送门（外链，新窗口） */
.tiger-portal { display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 12px; text-decoration: none; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--cyan-400); border-radius: var(--radius-md); }
.tiger-portal:active { opacity: .75; }
.tiger-portal-logo { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; object-fit: cover;
  background: #fff; border: 1px solid var(--cyan-400); }
.tiger-portal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tiger-portal-txt b { font-size: var(--fs-small); font-weight: 600; }
.tiger-portal-txt i { font-style: normal; font-size: var(--fs-caption); color: var(--muted); }
.tiger-portal-txt .tiger-portal-new { color: var(--cyan-400); }
.tiger-portal-arrow { color: var(--cyan-400); font-size: 18px; }

/* r181：在线人多时引导去备用站（只读镜像）。贴在底部导航上方，不挡操作区 */
#pressureBar {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: var(--fs-caption); line-height: 1.45;
  background: rgba(58, 46, 18, .96); color: #FFE2A8;
  border-top: 1px solid rgba(224, 167, 58, .45);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#pressureBar span { flex: 1; min-width: 0; }
#pressureBar .pb-go {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: #E0A73A; color: #231A05; font-weight: 600; white-space: nowrap;
}
#pressureBar .pb-go:active { opacity: .82; }
#pressureBar .pb-close {
  flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #C9A567; font-size: 20px; line-height: 26px; cursor: pointer;
}
#pressureBar .pb-close:active { opacity: .7; }
html[data-theme="cream"] #pressureBar {
  background: rgba(255, 250, 240, .98); color: #5A3B00;
  border-top-color: rgba(180, 120, 0, .28);
  box-shadow: 0 -6px 18px rgba(90, 59, 0, .1);
}
html[data-theme="cream"] #pressureBar .pb-go { background: #C98A00; color: #fff; }
html[data-theme="cream"] #pressureBar .pb-close { color: #8A6400; }

/* ================= r192 实时对战室（比分页顶部） =================
   全部走 token，深色 / 米白两套皮肤自动适配；只有「进行中」的强调色
   需要单独压一下，否则米白底上那圈绿几乎看不见。 */
.lv-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-4);
}
.lv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lv-head > span { font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.lv-head > i { font-style: normal; font-size: var(--fs-caption); color: var(--dim); }
.lv-list { display: flex; flex-direction: column; gap: 8px; }
.lv-room {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.lv-room.on { border-color: rgba(53, 212, 154, .34); }
.lv-line { display: flex; align-items: center; gap: 8px; }
.lv-side { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.lv-side.a { flex-direction: row-reverse; }
.lv-side b {
  font-size: var(--fs-small); font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.lv-ava-t {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--muted);
  font-size: var(--fs-caption); font-weight: 600;
}
.lv-tag {
  font-style: normal; font-size: 10px; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  padding: 0 5px; flex: none;
}
.lv-score {
  flex: none; font-size: var(--fs-title-sm); font-weight: 800;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.lv-score span { color: var(--dim); font-weight: 500; margin: 0 2px; }
.lv-meta {
  margin-top: 6px; font-size: var(--fs-caption); color: var(--dim);
  display: flex; align-items: center; gap: 5px;
}
.lv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); display: inline-block;
  animation: lvPulse 1.6s ease-in-out infinite;
}
@keyframes lvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.lv-foot { margin: 8px 0 0; text-align: right; }
html[data-theme="cream"] .lv-room.on { border-color: rgba(16, 122, 82, .30); }
