/* 战队联赛：玩家网页与外店后台共用。深色竞技风，金色点缀，手机优先。 */
:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-2: #0f1219;
  --card: #151924;
  --card-2: #1b2030;
  --card-3: #222839;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f4f7;
  --muted: #a3a9b6;
  --dim: #6d7486;
  --gold: #f0c66b;
  --gold-2: #c08a2c;
  --ok: #3ddc97;
  --warn: #ffb547;
  --danger: #ff6370;
  --radius: 18px;
  --radius-sm: 12px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(240, 198, 107, 0.13), transparent 70%),
    radial-gradient(800px 400px at 110% 10%, rgba(108, 140, 255, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.sheet-lock { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon svg { display: block; }
[hidden] { display: none !important; }

/* ---------- 外框 ---------- */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tab-h) + var(--safe-b) + 28px); min-height: 100vh; }
.app.no-tabs { padding-bottom: calc(var(--safe-b) + 32px); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  margin: 0 -16px; padding: 12px 16px; min-height: 56px;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.92), rgba(9, 11, 16, 0.75));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #1b1406;
  background: linear-gradient(140deg, #ffe39b, var(--gold) 45%, var(--gold-2)); box-shadow: 0 4px 16px rgba(240, 198, 107, 0.35); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-grid; place-items: center; color: var(--text); flex: none; }
.icon-btn:active { transform: scale(0.96); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.88), rgba(12, 14, 20, 0.97));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr); gap: 6px; }
.tabbar button {
  height: 48px; border: 0; border-radius: 14px; background: transparent; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 600; position: relative;
}
.tabbar button.active { color: var(--gold); background: rgba(240, 198, 107, 0.08); }
.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

/* ---------- 通用块 ---------- */
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-head .sub { color: var(--dim); font-size: 12.5px; }
.card { background: linear-gradient(180deg, var(--card), #121620); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.tight { padding: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack > * + * { margin-top: 10px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 12px; white-space: nowrap; }
.chip.gold { color: var(--gold); background: rgba(240, 198, 107, 0.1); }
.chip.ok { color: var(--ok); background: rgba(61, 220, 151, 0.1); }
.chip.warn { color: var(--warn); background: rgba(255, 181, 71, 0.1); }
.chip.danger { color: var(--danger); background: rgba(255, 99, 112, 0.1); }
.role-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; font-weight: 700; letter-spacing: 0.02em; }
.role-tag.captain { color: #1b1406; background: linear-gradient(120deg, #ffe39b, var(--gold)); }
.role-tag.vice { color: var(--gold); background: rgba(240, 198, 107, 0.14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px;
  border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font-weight: 650; font-size: 14.5px;
  transition: transform 0.12s, filter 0.15s, opacity 0.15s; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { border: 0; color: #1d1405; background: linear-gradient(135deg, #ffe39b, var(--gold) 45%, #d99a33); box-shadow: 0 8px 22px -8px rgba(240, 198, 107, 0.6); }
.btn.danger { border-color: rgba(255, 99, 112, 0.35); color: var(--danger); background: rgba(255, 99, 112, 0.08); }
.btn.ghost { background: transparent; }
.btn.ok { border-color: rgba(61, 220, 151, 0.35); color: var(--ok); background: rgba(61, 220, 151, 0.08); }
.btn.small { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #1d1405; animation: spin 0.7s linear infinite; }
.btn:not(.primary).loading::after { border-color: rgba(255, 255, 255, 0.2); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }
.link-btn { border: 0; background: none; color: var(--gold); padding: 0; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 2px; }

.badge { display: inline-block; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.badge svg { display: block; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 750; flex: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }

.tier-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px; color: #1a1205; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }
.tier-pill[data-tier="king"], .tier-pill[data-tier="diamond"] { color: #140b2a; }
.tier-pill.forming { color: var(--muted); background: rgba(255, 255, 255, 0.07); padding: 0 9px; font-weight: 650; }
.tier-gem { display: inline-flex; }

/* ---------- 输入 ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field-hint { font-size: 12px; color: var(--dim); }
input[type="text"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="datetime-local"], input:not([type]), textarea, select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line-2);
  background: #0d1017; color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-size: 16px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { border-color: rgba(240, 198, 107, 0.6); box-shadow: 0 0 0 3px rgba(240, 198, 107, 0.14); }
input::placeholder, textarea::placeholder { color: #5a6072; }
input[type="datetime-local"] { color-scheme: dark; }
.form-error { min-height: 1em; margin: -4px 0 0; color: var(--danger); font-size: 13px; }
.form-error:empty { display: none; }
.search { position: relative; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search input { padding-left: 40px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #0d1017; border: 1px solid var(--line); }
.segmented button { height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 650; font-size: 13.5px; }
.segmented button.active { background: var(--card-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a3042; transition: background 0.2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.picker button { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line); background: #0d1017; display: grid; place-items: center; padding: 6px; position: relative; }
.picker button.active { border-color: var(--gold); background: rgba(240, 198, 107, 0.08); }
.picker button.active::after { content: ""; position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.picker.colors button { aspect-ratio: auto; height: 40px; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }

/* ---------- 顶部周信息 ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 8px; padding: 20px 18px 18px; border-radius: 22px;
  background:
    radial-gradient(420px 220px at 85% -40px, rgba(240, 198, 107, 0.28), transparent 70%),
    radial-gradient(360px 200px at -10% 120%, rgba(108, 140, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #1b1f2d, #10131b);
  border: 1px solid rgba(240, 198, 107, 0.18);
}
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px); pointer-events: none; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.hero h2 { margin: 6px 0 2px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: 0.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 13.5px; }
.hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.hero-meta .chip { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }

.tier-ladder { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; z-index: 1; }
.tier-ladder div { padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); text-align: center; }
.tier-ladder b { display: block; font-size: 12.5px; }
.tier-ladder span { display: block; color: var(--dim); font-size: 11px; }

/* ---------- 榜单 ---------- */
.week-switch { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 0 16px 2px; }
.week-switch::-webkit-scrollbar { display: none; }
.week-switch button { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.week-switch button.active { color: #1d1405; border-color: transparent; background: linear-gradient(135deg, #ffe39b, var(--gold)); }

.tier-block { margin-top: 20px; }
.tier-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tier-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.tier-title .need { color: var(--dim); font-size: 12px; }
.team-list { display: grid; gap: 10px; }
.team-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; width: 100%; text-align: left;
  background: var(--card);
  background: linear-gradient(100deg, color-mix(in srgb, var(--team-a, #888) 12%, var(--card)), var(--card) 55%);
  border: 1px solid var(--line); color: var(--text); position: relative; overflow: hidden;
}
.team-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--team-a, #888), var(--team-b, #555)); }
.team-row:active { transform: scale(0.99); }
.rank-no { width: 26px; text-align: center; font-weight: 800; font-size: 15px; color: var(--dim); flex: none; }
.rank-no.top1 { color: #ffd76a; text-shadow: 0 0 12px rgba(255, 215, 106, 0.6); font-size: 18px; }
.rank-no.top2 { color: #d9e2f2; font-size: 17px; }
.rank-no.top3 { color: #e3a46e; font-size: 16px; }
.team-row .name { font-weight: 750; font-size: 15.5px; }
.team-row .meta { display: flex; gap: 10px; color: var(--dim); font-size: 12px; margin-top: 2px; }
.team-row .meta span { display: inline-flex; align-items: center; gap: 3px; }
.team-row .score { text-align: right; flex: none; }
.team-row .score b { display: block; font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -0.01em; }
.team-row .score small { color: var(--dim); font-size: 11px; }
.store-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #1d1405;
  background: linear-gradient(140deg, #ffe39b, var(--gold) 50%, #b8862b); box-shadow: 0 6px 16px -6px rgba(240, 198, 107, 0.6); }
.store-row .score b { color: var(--gold); }
.seats { display: flex; gap: 6px; }
.seat { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: var(--dim); }
.seat.taken { border-style: solid; border-color: color-mix(in srgb, var(--team-a, var(--gold)) 60%, transparent); color: var(--team-a, var(--gold)); background: rgba(255, 255, 255, 0.04); }
.progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* ---------- 广场 ---------- */
.plaza-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 14px; }
.toggle-chip { height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-2); background: #0d1017; color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.toggle-chip.active { color: var(--ok); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.07); }
.recruit-card { position: relative; overflow: hidden; }
.recruit-card .top { display: flex; gap: 12px; align-items: center; }
.recruit-card .slogan { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.recruit-card .bottom { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.recruit-card .slots { flex: 1; }
.recruit-card .slots small { color: var(--dim); font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 5px; }
.recruit-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--team-a, #888) 30%, transparent), transparent 70%); pointer-events: none; }

/* ---------- 战队页 ---------- */
.team-hero {
  position: relative; overflow: hidden; margin-top: 8px; padding: 22px 18px 18px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, #1b2030, #10131b);
  background:
    radial-gradient(380px 240px at 50% -60px, color-mix(in srgb, var(--team-a, #888) 55%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--team-b, #555) 26%, #141822), #10131b);
  border: 1px solid color-mix(in srgb, var(--team-a, #888) 30%, transparent);
}
.team-hero .badge { filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--team-a, #888) 60%, transparent)); }
.team-hero h2 { margin: 12px 0 4px; font-size: 25px; font-weight: 850; letter-spacing: 0.03em; }
.team-hero .slogan { color: var(--muted); font-size: 13.5px; margin: 0; }
.team-hero .pills { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.team-hero .rank-chip { font-weight: 800; color: var(--text); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.stat { padding: 10px 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.stat b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
.stat span { color: var(--dim); font-size: 11.5px; }
.stat.main b { color: var(--gold); font-size: 22px; }
.breakdown { display: grid; gap: 10px; }
.breakdown-row { display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.breakdown-row .progress i { background: linear-gradient(90deg, var(--team-b, var(--gold-2)), var(--team-a, var(--gold))); }
.breakdown-row b { text-align: right; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.member { padding: 12px 6px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; position: relative; }
.member .avatar { margin: 0 auto 6px; }
.member .nick { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .pts { color: var(--dim); font-size: 11.5px; }
.member .role-tag { position: absolute; top: 8px; right: 8px; }
.contrib-list { display: grid; gap: 4px; padding: 8px 14px; }
.contrib-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contrib-row:last-child { border-bottom: 0; }
.contrib-row .progress i { background: linear-gradient(90deg, var(--team-b, var(--gold-2)), var(--team-a, var(--gold))); }
.contrib-row .score { text-align: right; flex: none; }
.contrib-row .score b { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; }
.contrib-row .score small { color: var(--dim); font-size: 11px; }
.contrib-row.mvp .avatar { box-shadow: 0 0 0 2px #ffd76a, 0 0 14px rgba(255, 215, 106, 0.5); }
.mvp-tag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #1b1406; background: linear-gradient(120deg, #ffe39b, #ffc94d); }
.rally { display: flex; gap: 12px; align-items: flex-start; }
.rally-date { width: 52px; flex: none; text-align: center; padding: 6px 0; border-radius: 12px; background: rgba(240, 198, 107, 0.1); color: var(--gold); }
.rally-date b { display: block; font-size: 17px; line-height: 1.1; }
.rally-date span { font-size: 11px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.history { display: grid; gap: 8px; }
.history-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); z-index: 10; margin-top: 18px; }
.sticky-cta .btn { width: 100%; height: 50px; font-size: 15.5px; border-radius: 16px; }

/* ---------- 我的 ---------- */
.profile { display: flex; align-items: center; gap: 14px; }
.profile .name { font-size: 19px; font-weight: 800; }
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--text); text-align: left; width: 100%; }
.list-item:last-child { border-bottom: 0; }
.list-item .lead { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); color: var(--muted); flex: none; }
.list-item .chev { color: var(--dim); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; background: rgba(240, 198, 107, 0.08); border: 1px solid rgba(240, 198, 107, 0.2); color: #f6dfab; }
.notice.info { background: rgba(108, 160, 255, 0.08); border-color: rgba(108, 160, 255, 0.22); color: #c9dbff; }
.notice.danger { background: rgba(255, 99, 112, 0.08); border-color: rgba(255, 99, 112, 0.25); color: #ffc1c7; }
.notice .icon { margin-top: 1px; }
.auth-hero { text-align: center; padding: 30px 10px 10px; }
.auth-hero .brand-mark { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 12px; }
.auth-hero h2 { margin: 0; font-size: 22px; }
.auth-hero p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.request { display: flex; align-items: center; gap: 12px; }

/* ---------- 空态、骨架、提示 ---------- */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--gold); }
.empty b { display: block; color: var(--text); font-size: 15px; }
.empty p { margin: 6px 0 14px; font-size: 13px; }
.skeleton-wrap { display: grid; gap: 10px; margin-top: 16px; }
.skeleton { height: 66px; border-radius: 16px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); z-index: 100; transform: translate(-50%, 20px);
  max-width: calc(100vw - 48px); padding: 11px 18px; border-radius: 14px; background: rgba(32, 37, 52, 0.96); color: var(--text);
  border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="error"] { border-color: rgba(255, 99, 112, 0.45); }
.toast[data-type="ok"] { border-color: rgba(61, 220, 151, 0.45); }

/* ---------- 底部弹层 ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 61; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  transform: translate(-50%, 100%); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(180deg, #1a1f2c, #131722); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 0 18px calc(20px + var(--safe-b));
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); margin: 10px auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 12px; position: sticky; top: 0; background: #1a1f2c; z-index: 2; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-text { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 720px) {
  .sheet { bottom: auto; top: 50%; transform: translate(-50%, -46%) scale(0.98); opacity: 0; border-radius: 24px; border-bottom: 1px solid var(--line-2); max-width: 480px; transition: transform 0.2s, opacity 0.2s; }
  .sheet.wide { max-width: 620px; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 16px; }
}

/* ---------- 门店后台 ---------- */
.store-head { display: flex; align-items: center; gap: 12px; }
.store-head .title { font-weight: 800; font-size: 17px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.summary .stat { background: var(--card); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 12px; }
.roster button { border: 1.5px solid var(--line); background: #0d1017; border-radius: 14px; padding: 10px 4px 8px; color: var(--text); display: grid; justify-items: center; gap: 4px; position: relative; font-size: 12.5px; }
.roster button .nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.roster button.on { border-color: rgba(61, 220, 151, 0.7); background: rgba(61, 220, 151, 0.08); }
.roster button.on::after { content: "✓"; position: absolute; right: 6px; top: 4px; color: var(--ok); font-weight: 800; font-size: 13px; }
.roster button.rank-1 { border-color: #ffd76a; background: rgba(255, 215, 106, 0.1); }
.roster button.rank-2 { border-color: #cfd8e8; background: rgba(207, 216, 232, 0.08); }
.roster button.rank-3 { border-color: #e3a46e; background: rgba(227, 164, 110, 0.1); }
.rank-mark { position: absolute; left: 6px; top: 4px; font-size: 11px; font-weight: 800; }
.team-fold { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.team-fold + .team-fold { margin-top: 10px; }
.team-fold > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; color: var(--text); text-align: left; }
.team-fold .fold-body { padding: 0 14px 14px; }
.game-card .players { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.voided { opacity: 0.45; }
.voided .strike { text-decoration: line-through; }
.temp-pass { font-size: 30px; font-weight: 800; letter-spacing: 0.18em; text-align: center; padding: 18px; border-radius: 16px; background: #0d1017; border: 1px dashed rgba(240, 198, 107, 0.4); color: var(--gold); margin: 6px 0 14px; }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; gap: 8px; }
.stepper input { text-align: center; font-weight: 750; }
.stepper button { border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 20px; }

@media (max-width: 360px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h2 { font-size: 22px; }
  .tier-ladder { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
