/* ==========================================================================
   DOTA2 群友看板 —— 移动端优先，微信内置浏览器可用
   无外链字体 / 图片，国内网络直开
   ========================================================================== */
:root {
  --bg: #0b0d11;
  --bg-soft: #10131a;
  --panel: #141922;
  --panel-2: #1a202a;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #e9edf3;
  --text-2: #b6c0cf;
  --muted: #7f8b9c;
  --gold: #d8b25a;
  --gold-soft: rgba(216, 178, 90, .14);
  --win: #46c98b;
  --loss: #e15b57;
  --radiant: #6ecf7a;
  --dire: #e0564f;
  --str: #e0524a;
  --agi: #4fc06a;
  --int: #4a9fe0;
  --uni: #d8b25a;
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --tabbar-h: 58px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(216, 178, 90, .13), transparent 62%),
    radial-gradient(80% 40% at 100% 0%, rgba(224, 86, 79, .10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; display: block; flex: none; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 12px;
  background: linear-gradient(180deg, rgba(11, 13, 17, .96) 55%, rgba(11, 13, 17, .72) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand__logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(216, 178, 90, .32);
}
.hero {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 12px;
}
.hero img {
  width: 100%; height: 128px; display: block; object-fit: cover; object-position: center 46%;
}
.hero__fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 13, 17, .82), rgba(11, 13, 17, 0) 58%);
}
.brand-mark {
  width: 9px; height: 22px; flex: none; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), #a8802e);
  box-shadow: 0 0 14px rgba(216, 178, 90, .45);
}
.brand h1 {
  font-size: 19px; font-weight: 700; letter-spacing: .3px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--text-2); cursor: pointer;
  transition: transform .15s ease, color .15s;
}
.icon-btn:active { transform: scale(.93); color: var(--gold); }
.icon-btn.is-busy .ic { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.slogan { margin: 5px 0 10px; color: var(--text-2); font-size: 12.5px; letter-spacing: .2px; }
.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta { color: var(--muted); font-size: 11.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 99px; font-size: 11px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(255, 255, 255, .03);
}
.chip--src { border-color: rgba(216, 178, 90, .35); color: var(--gold); background: var(--gold-soft); }
.chip--warn { border-color: rgba(225, 91, 87, .4); color: var(--loss); background: rgba(225, 91, 87, .1); }

.error-banner {
  margin-top: 10px; padding: 8px 11px; border-radius: var(--r-sm); font-size: 12px;
  background: rgba(225, 91, 87, .1); border: 1px solid rgba(225, 91, 87, .3); color: #f0a9a6;
}
.error-banner.is-notice {
  background: rgba(216, 178, 90, .1); border-color: rgba(216, 178, 90, .32); color: #e3c987;
}

/* ---------- 通用卡片 ---------- */
.view { padding-top: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 16px;
  margin-bottom: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.card__title {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--text-2); text-transform: uppercase;
}
.card__title::before {
  content: ""; display: inline-block; width: 3px; height: 11px; margin-right: 7px;
  border-radius: 2px; background: var(--gold); vertical-align: -1px;
}
.card__link { font-size: 12px; color: var(--gold); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.card__sub { font-size: 12px; color: var(--muted); }

/* ---------- 本周之星 ---------- */
.card--star {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(216, 178, 90, .16), rgba(216, 178, 90, .04) 46%, var(--panel) 82%);
  border-color: rgba(216, 178, 90, .28);
}
.card--star::after {
  content: ""; position: absolute; right: -34px; top: -46px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 178, 90, .28), transparent 68%);
  pointer-events: none;
}
.star-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: 1.6px; color: var(--gold); margin-bottom: 12px; }
.star-label .ic { width: 14px; height: 14px; }
.star-row { display: flex; align-items: center; gap: 12px; }
.star-name { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.star-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.star-right { margin-left: auto; text-align: right; }
.star-right b { display: block; font-size: 25px; line-height: 1; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.star-right span { font-size: 10.5px; color: var(--muted); letter-spacing: 1.4px; }

/* ---------- 头像 ---------- */
.avatar {
  position: relative; overflow: hidden;
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #0c0f14;
  background: var(--c, #888);
  background: linear-gradient(150deg, var(--c, #888), color-mix(in srgb, var(--c, #888) 62%, #000));
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  letter-spacing: -.5px;
}
.avatar > span { position: relative; z-index: 1; }
.avatar > img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  background: #1a202a;
}
.avatar--lg { width: 52px; height: 52px; border-radius: 15px; font-size: 18px; }
.avatar--sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }

/* ---------- 数据格 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 13px; }
.stat {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.stat__label { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.stat__value {
  font-size: 23px; font-weight: 700; margin-top: 5px; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.stat__value small { font-size: 12px; font-weight: 600; color: var(--text-2); margin-left: 3px; }
.stat__hint { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ---------- 活跃度柱状 ---------- */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 78px; margin-top: 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.bar {
  width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(216, 178, 90, .85), rgba(216, 178, 90, .22));
  transition: height .5s cubic-bezier(.22, .8, .3, 1);
}
.bar--peak { background: linear-gradient(180deg, var(--gold), rgba(216, 178, 90, .35)); box-shadow: 0 0 12px rgba(216, 178, 90, .35); }
.bar--zero { background: rgba(255, 255, 255, .09); }
.bar-x { font-size: 9.5px; color: var(--muted); letter-spacing: .2px; height: 12px; }
.bar-col.is-today .bar-x { color: var(--gold); font-weight: 700; }

/* ---------- 战报列表 ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed__main { min-width: 0; flex: 1; }
.feed__top { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.feed__hero { font-weight: 600; }
.feed__name { color: var(--text-2); font-size: 11.5px; }
.feed__sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.feed__meta { text-align: right; flex: none; }
.feed__kda { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feed__ago { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.hero-tag {
  position: relative; overflow: hidden;
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: -.3px;
  background: rgba(255, 255, 255, .07);
  background: color-mix(in srgb, var(--a, #888) 22%, transparent);
  color: var(--a, #ccc); border: 1px solid rgba(255, 255, 255, .12);
  border-color: color-mix(in srgb, var(--a, #888) 40%, transparent);
}
.hero-tag > i { position: relative; z-index: 1; font-style: normal; }
.hero-tag > img {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}

.result {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 800; flex: none;
}
.result--w { color: var(--win); background: rgba(70, 201, 139, .15); }
.result--l { color: var(--loss); background: rgba(225, 91, 87, .14); }

/* ---------- 群之最 ---------- */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.hl {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 11px;
  background: rgba(255, 255, 255, .022); position: relative; overflow: hidden;
}
.hl::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
  border-radius: 2px; background: var(--c, var(--gold)); opacity: .8;
}
.hl__label { font-size: 10.5px; color: var(--muted); letter-spacing: .8px; }
.hl__value { font-size: 16px; font-weight: 700; margin-top: 3px; color: var(--c, var(--text)); }
.hl__sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* ---------- 排行榜 ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: end; margin-bottom: 13px; }
.podium__card {
  position: relative; text-align: center; padding: 14px 8px 12px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.podium__card--1 {
  padding-top: 20px; padding-bottom: 16px;
  border-color: rgba(216, 178, 90, .45);
  background: linear-gradient(180deg, rgba(216, 178, 90, .18), var(--panel) 72%);
  transform: translateY(-6px);
}
.podium__medal { font-size: 15px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.podium__card--1 .podium__medal { color: var(--gold); }
.podium__card .avatar { margin: 7px auto 6px; }
.podium__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium__mmr { font-size: 11px; color: var(--gold); font-variant-numeric: tabular-nums; margin-top: 1px; }
.podium__wr { font-size: 10.5px; color: var(--muted); }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .15s;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:active { background: rgba(255, 255, 255, .035); }
.rank-no {
  width: 20px; flex: none; text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.rank-row__main { min-width: 0; flex: 1; }
.rank-row__name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rank-row__rank { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.rank-row__stats { display: flex; align-items: center; gap: 13px; flex: none; }
.mini { text-align: right; }
.mini b { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 700; }
.mini span { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.mini--good b { color: var(--win); }
.mini--bad b { color: var(--loss); }
.mini--none b { color: var(--muted); }

.streak { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.streak--w { color: var(--win); background: rgba(70, 201, 139, .14); }
.streak--l { color: var(--loss); background: rgba(225, 91, 87, .14); }

/* 对局类型：加速 / 天梯 / 普通 */
.tag {
  display: inline-block; padding: 0 5px; margin-left: 2px; border-radius: 5px;
  font-size: 10px; line-height: 15px; letter-spacing: .3px; vertical-align: 1px;
  border: 1px solid transparent; white-space: nowrap;
}
.tag--turbo { color: #6ab6ec; background: rgba(74, 159, 224, .14); border-color: rgba(74, 159, 224, .32); }
.tag--ranked { color: var(--gold); background: var(--gold-soft); border-color: rgba(216, 178, 90, .34); }
.tag--normal { color: #9aa7b1; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); }
.tag--other { color: #b39ddb; background: rgba(179, 157, 219, .12); border-color: rgba(179, 157, 219, .28); }

.wrbar { width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.wrbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(70, 201, 139, .55), var(--win)); }

/* ---------- 战绩筛选 ---------- */
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 11px; scrollbar-width: none; }
.chips + .chips { padding-top: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text-2);
  transition: all .15s;
}
.chip-btn.is-active { background: var(--gold-soft); border-color: rgba(216, 178, 90, .5); color: var(--gold); font-weight: 600; }

.match-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.match-row:last-child { border-bottom: 0; }
.match-row__hero { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.match-row__title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row__sub { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 1px; }
.match-row__right { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.match-row__kda { font-size: 13px; font-weight: 700; }
.match-row__dur { font-size: 10.5px; color: var(--muted); }

/* ---------- 赛事 ---------- */
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tour-name { font-size: 17px; font-weight: 700; }
.tour-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tour-status {
  font-size: 11px; padding: 3px 9px; border-radius: 99px; flex: none;
  color: var(--win); background: rgba(70, 201, 139, .13); border: 1px solid rgba(70, 201, 139, .3);
}
.tour-status--prep {
  color: var(--gold); background: rgba(216, 178, 90, .12); border-color: rgba(216, 178, 90, .32);
}
.tour-status--done {
  color: var(--muted); background: rgba(255, 255, 255, .05); border-color: var(--line-strong);
}
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 13px 0 5px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #a8802e, var(--gold)); border-radius: 4px; }
.progress-label { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }

.next-match {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(216, 178, 90, .1), transparent 70%);
  border: 1px solid rgba(216, 178, 90, .28); margin-top: 12px;
}
.next-match__side { flex: 1; min-width: 0; }
.next-match__side--b { text-align: right; }
.next-match__team { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-match__time { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.next-match__vs { font-size: 11px; color: var(--gold); letter-spacing: 1.5px; flex: none; font-weight: 700; }

.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings th {
  text-align: right; font-size: 10.5px; color: var(--muted); font-weight: 500;
  padding: 0 0 8px; letter-spacing: .5px;
}
.standings th:first-child, .standings td:first-child { text-align: left; }
.standings td { padding: 9px 0; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.standings tr.is-me td { color: var(--gold); }
.standings .t-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.team-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; background: var(--c); box-shadow: 0 0 8px rgba(216, 178, 90, .2); }
.pts { font-weight: 700; }

.schedule { list-style: none; margin: 0; padding: 0; }
.sch-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.sch-row:last-child { border-bottom: 0; }
.sch-team { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-team--b { text-align: right; }
.sch-score {
  flex: none; min-width: 52px; text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: 13.5px;
}
.sch-score--up { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.sch-time { flex: none; width: 74px; text-align: right; font-size: 10.5px; color: var(--muted); }
.sch-stage { font-size: 10.5px; color: var(--gold); letter-spacing: 1px; margin: 14px 0 2px; }
.sch-note { font-size: 11px; color: var(--muted); padding: 0 0 8px 0; }
.is-win { color: var(--win); }
.is-lose { color: var(--loss); }

.rules { margin: 0; padding-left: 17px; color: var(--text-2); font-size: 12.5px; }
.rules li { margin-bottom: 5px; }
.rules li::marker { color: var(--gold); }

/* ---------- 对局详情 ---------- */
.mscore { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 2px 0 16px; }
.mscore__side { font-size: 12px; color: var(--muted); }
.mscore__side b { font-size: 21px; margin-left: 4px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mscore__side.is-win, .mscore__side.is-win b { color: var(--gold); }
.mscore__vs { color: var(--muted); font-size: 13px; }

.mteam { margin-bottom: 14px; }
.mteam__title {
  font-size: 11px; letter-spacing: 1.4px; color: var(--muted);
  padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.mteam__title.is-win { color: var(--win); }
.mplayer { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.mplayer:last-child { border-bottom: 0; }
.mplayer.is-member { cursor: pointer; }
.mplayer.is-member .mplayer__name { color: var(--gold); }
.mplayer__main { min-width: 0; flex: 1; }
.mplayer__top { display: flex; align-items: center; gap: 6px; }
.mplayer__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mplayer__kda { margin-left: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mplayer__sub { font-size: 11px; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.mplayer__sub > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrank { margin-left: auto; flex: none; font-size: 10px; color: var(--text-2); }
.mplayer__items { display: flex; align-items: center; gap: 2px; margin-top: 5px; flex-wrap: wrap; }
.islot {
  width: 25px; height: 18px; flex: none; border-radius: 4px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: inline-block;
}
.islot--sm { width: 18px; height: 13px; border-radius: 3px; }
.islot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.islot--empty { opacity: .3; }
.islot-sep { width: 5px; flex: none; }
.mbadges { margin-left: auto; display: flex; gap: 3px; flex: none; }
.islot--badge {
  border-color: rgba(216, 178, 90, .45);
  box-shadow: 0 0 0 1px rgba(216, 178, 90, .28), inset 0 0 6px rgba(216, 178, 90, .18);
}
.mbadge {
  font-style: normal; font-size: 9px; line-height: 14px; padding: 0 4px; border-radius: 4px;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(216, 178, 90, .3);
}
.mtag { font-style: normal; font-size: 9.5px; line-height: 15px; padding: 0 4px; border-radius: 4px; color: var(--gold); background: var(--gold-soft); }
.sheet-note { text-align: center; font-size: 11px; color: var(--muted); padding: 12px 0 4px; }
.sheet-back {
  background: none; border: 0; color: var(--gold); font-size: 13px; cursor: pointer;
  padding: 2px 0 12px; display: block;
}

/* ---------- 口令页 ---------- */
.gate { text-align: center; padding: 64px 20px 40px; }
.gate__icon { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 14px; display: block; }
.gate b { display: block; font-size: 17px; margin-bottom: 8px; }
.gate p { font-size: 12.5px; color: var(--muted); margin: 0 0 22px; line-height: 1.6; }
.gate__row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.gate input {
  width: 170px; padding: 11px 14px; border-radius: 11px; font-size: 14px; text-align: center;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text);
  outline: none; transition: border-color .15s;
}
.gate input:focus { border-color: rgba(216, 178, 90, .6); }
.gate button {
  padding: 11px 18px; border-radius: 11px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #e2c06a, var(--gold)); color: #1a1608;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
}
.gate button:active { transform: scale(.97); }
.gate__err { min-height: 18px; margin-top: 12px; font-size: 12px; color: var(--loss); }

/* ---------- 动态：按天分组 ---------- */
.day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; color: var(--text-2); letter-spacing: 1px;
  padding: 2px 4px 8px; font-weight: 600;
}
.day-head span { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

/* ---------- 明细榜单 ---------- */
.hero-board { display: flex; flex-direction: column; }
.hb-row, .bg-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hb-row:last-child, .bg-row:last-child { border-bottom: 0; }
.bg-row { cursor: pointer; }
.hb-no { width: 14px; flex: none; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-name { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-games { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-wr { width: 46px; text-align: right; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bg-main { flex: 1; min-width: 0; }
.bg-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-sub { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bg-kda { font-size: 14px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- 活动 ---------- */
.act__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act__title { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.act__tag {
  font-style: normal; font-size: 9.5px; line-height: 16px; padding: 0 5px; border-radius: 5px;
  color: var(--gold); background: var(--gold-soft); font-weight: 500; letter-spacing: .3px;
}
.act__status {
  flex: none; font-size: 11px; padding: 2px 8px; border-radius: 99px;
  color: var(--win); background: rgba(70, 201, 139, .13); border: 1px solid rgba(70, 201, 139, .3);
}
.act__status--done { color: var(--muted); background: rgba(255, 255, 255, .05); border-color: var(--line-strong); }
.act__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--gold); margin-top: 6px; }
.act__desc { font-size: 12.5px; color: var(--text-2); margin: 10px 0 0; line-height: 1.65; }
.act__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.act__count { font-size: 11.5px; color: var(--muted); }
.act__count b { color: var(--text); font-size: 13px; }
.act__foot .card__link { margin-right: auto; }
.act__names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.name-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2);
}
.btn-gold {
  flex: none; padding: 8px 16px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #e2c06a, var(--gold)); color: #1a1608;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
}
.btn-gold:active { transform: scale(.97); }
.btn-gold.is-disabled { background: rgba(255, 255, 255, .08); color: var(--muted); cursor: default; }
.signup-tip { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.signup-input {
  flex: 1; max-width: 260px; padding: 11px 14px; border-radius: 11px; font-size: 14px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); outline: none;
}
.signup-input:focus { border-color: rgba(216, 178, 90, .6); }

/* ---------- 在线状态 ---------- */
.live-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -3px 0 13px; padding: 9px 12px; border-radius: var(--r-md);
  background: rgba(70, 201, 139, .07); border: 1px solid rgba(70, 201, 139, .22);
  font-size: 12px; color: var(--text-2);
}
.live-bar--off {
  background: rgba(255, 255, 255, .03); border-color: var(--line);
  color: var(--muted); justify-content: flex-start;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--win); box-shadow: 0 0 8px rgba(70, 201, 139, .8);
  animation: pulse 1.8s infinite;
}
.live-dot--off { background: var(--muted); box-shadow: none; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-bar__n { color: var(--win); font-weight: 600; }
.live-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 3px; border-radius: 99px;
  background: rgba(70, 201, 139, .1); border: 1px solid rgba(70, 201, 139, .25);
  font-size: 11px; color: var(--text);
}
.live-chip b { font-weight: 600; }
.live-chip em { font-style: normal; color: var(--gold); font-size: 10.5px; }
.avatar--xs { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }

/* ---------- 本周之最 ---------- */
.awards { display: flex; flex-direction: column; }
.award {
  display: flex; align-items: center; gap: 11px; padding: 9px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.award:last-child { border-bottom: 0; }
.award:active { opacity: .8; }
.award__icon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 9px; color: var(--c, var(--gold));
  background: color-mix(in srgb, var(--c, #d8b25a) 14%, transparent);
  background: rgba(255, 255, 255, .05);
  border: 1px solid color-mix(in srgb, var(--c, #d8b25a) 30%, transparent);
}
.award__icon .ic { width: 16px; height: 16px; }
.award__main { flex: 1; min-width: 0; }
.award__title { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.award__who { font-size: 14.5px; font-weight: 700; margin-top: 1px; color: var(--c, var(--text)); }
.award__val { text-align: right; font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.award__val span { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 1px; }

/* ---------- 赏金榜 ---------- */
.bounty-list { display: flex; flex-direction: column; }
.bounty { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bounty:last-child { border-bottom: 0; }
.bounty__no { width: 14px; flex: none; text-align: center; font-size: 11px; color: var(--muted); }
.bounty__av {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--panel-2); color: var(--muted);
  font-size: 13px; border: 1px solid var(--line);
}
.bounty__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.bounty__main { flex: 1; min-width: 0; }
.bounty__name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bounty__reason { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bounty__stats { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.bounty__stats b { color: var(--loss); font-variant-numeric: tabular-nums; }
.bounty__count { text-align: right; flex: none; }
.bounty__count b { font-size: 16px; color: var(--loss); font-variant-numeric: tabular-nums; }
.bounty__count span { font-size: 10px; color: var(--muted); margin-left: 2px; }
.bounty-form { display: flex; flex-direction: column; gap: 10px; }
.bounty-form .signup-input { max-width: none; width: 100%; }
.bounty-form .btn-gold { width: 100%; padding: 12px; }
.mplayer__report {
  flex: none; padding: 2px 5px; font-size: 9.5px; border-radius: 6px; cursor: pointer;
  background: rgba(225, 91, 87, .1); border: 1px solid rgba(225, 91, 87, .28); color: #e88;
}

.load-more { display: flex; justify-content: center; padding: 4px 0 14px; }
.load-more .chip-btn { padding: 9px 18px; }

.mtag--mvp { color: #1a1408; background: linear-gradient(135deg, #e8c86a, #c9a13a); border-color: transparent; font-weight: 700; }
.mtag--idle { color: #9fb4cc; background: rgba(120, 150, 190, .14); border-color: rgba(120, 150, 190, .35); }
.mtag--blame { color: #e88; background: rgba(225, 91, 87, .14); border-color: rgba(225, 91, 87, .4); }
/* ---------- 云梦双王 ---------- */
.king-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.king {
  display: flex; flex-direction: column; gap: 8px;
  padding: 11px 13px 13px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, rgba(216, 178, 90, .1), rgba(255, 255, 255, .02));
  border: 1px solid rgba(216, 178, 90, .22);
}
.king__body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.king--assist {
  background: linear-gradient(150deg, rgba(90, 150, 220, .1), rgba(255, 255, 255, .02));
  border-color: rgba(90, 150, 220, .22);
}
.king__label { font-size: 10.5px; color: var(--gold); letter-spacing: .5px; opacity: .95; }
.king--assist .king__label { color: #7fb0e8; }
.king__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.king__val { margin-left: auto; flex: none; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.king--assist .king__val { color: #7fb0e8; }
.king__val small { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 1px; }

/* ---------- 加速天梯 ---------- */
.ladder-card { padding-bottom: 14px; }
.ladder-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 2px; border-bottom: 1px solid var(--line);
}
.ladder-row:last-child { border-bottom: 0; }
.ladder-no { width: 16px; flex: none; font-size: 11px; color: var(--muted); text-align: center; }
.lb { position: relative; flex: none; width: 34px; height: 34px; color: var(--c); display: inline-block; }
.lb img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.lb--fb::before {
  content: ''; position: absolute; inset: 2px; border-radius: 50% 50% 45% 45%;
  background: currentColor; opacity: .85;
}
.lb em {
  position: absolute; left: 0; right: 0; bottom: 1px; font-style: normal;
  font-size: 8px; line-height: 1; text-align: center; letter-spacing: -.5px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
}
.lb--big { width: 40px; height: 40px; }
.ladder-name { font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladder-tier { font-size: 11px; flex: none; }
.ladder-score { margin-left: auto; flex: none; font-size: 17px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.ladder-list { display: flex; flex-direction: column; }
.ladder-row--sheet { padding: 10px 4px; }

/* ---------- 无数据提示 ---------- */
.datanote {
  margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 12px; line-height: 1.75;
  color: var(--text-2); background: rgba(225, 91, 87, .08);
  border: 1px solid rgba(225, 91, 87, .25);
}
.datanote b { display: block; margin-bottom: 3px; color: #e88; font-size: 12.5px; }
.datanote--idle { background: rgba(216, 178, 90, .07); border-color: rgba(216, 178, 90, .22); }
.datanote--idle b { color: var(--gold); }

/* ---------- 成就 ---------- */
.ach-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.ach {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 10px; border-radius: 9px; font-size: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.ach__title { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach__count { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.chips__note { align-self: center; font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ---------- 敬请期待 ---------- */
.coming { text-align: center; padding: 96px 24px 60px; }
.coming__icon {
  width: 44px; height: 44px; margin: 0 auto 20px; color: var(--gold); opacity: .8;
  filter: drop-shadow(0 0 14px rgba(216, 178, 90, .35));
}
.coming b { display: block; font-size: 20px; letter-spacing: 4px; margin-bottom: 12px; color: var(--text); }
.coming p { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 0; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); font-size: 13px; }
.empty b { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 6px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 680px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(13, 16, 21, .93);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; color: var(--muted); font-size: 10.5px; cursor: pointer;
  padding: 0; transition: color .15s;
}
.tab .ic { width: 21px; height: 21px; }
.tab.is-active { color: var(--gold); }
.tab.is-active .ic { filter: drop-shadow(0 0 7px rgba(216, 178, 90, .45)); }

/* ---------- 详情面板 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px); animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 51;
  width: 100%; max-width: 680px; max-height: 86vh; overflow-y: auto;
  background: var(--bg-soft);
  border-radius: 22px 22px 0 0; border: 1px solid var(--line-strong); border-bottom: 0;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .6);
  animation: slideUp .26s cubic-bezier(.22, .8, .3, 1);
  -webkit-overflow-scrolling: touch;
}
@keyframes slideUp { from { transform: translate(-50%, 100%); } }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin: 2px auto 14px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-name { font-size: 18px; font-weight: 700; }
.sheet-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sheet-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2); cursor: pointer;
}
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.sheet-cell { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; }
.sheet-cell b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.2px; }
.sheet-cell span { font-size: 10px; color: var(--muted); }
.pool { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.pool-chip {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel); font-size: 12px;
}
.pool-chip em { font-style: normal; color: var(--muted); font-size: 10.5px; }

/* ---------- 骨架 / toast ---------- */
.skeleton-wrap { padding-top: 4px; }
.sk { border-radius: var(--r-lg); background: linear-gradient(90deg, #141922 25%, #1c2330 37%, #141922 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.sk--card { height: 132px; margin-bottom: 13px; }
.sk--sm { height: 74px; }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 13px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 26px); transform: translateX(-50%);
  z-index: 60; padding: 9px 16px; border-radius: 99px; font-size: 12.5px;
  background: rgba(28, 34, 44, .97); border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: var(--shadow); animation: fade .18s ease;
}

@media (min-width: 720px) {
  body { font-size: 15px; }
  .topbar { padding-top: 20px; }
  .brand h1 { font-size: 21px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .highlights { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 底部导航五栏均分 */
.tabbar { display: grid !important; grid-template-columns: repeat(5, 1fr); }
.tabbar .tab { flex: none; min-width: 0; padding-left: 0; padding-right: 0; }
.tabbar .tab span { font-size: 10px; white-space: nowrap; }
