:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --text: #eef2fb;
  --dim: #8f9abb;
  --faint: #5d6788;
  --gold: #f7c948;
  --orange: #ff7a2f;
  --teal: #2fd6b5;
  --blue: #5b8dff;
  --red: #ff5b6e;
  --green: #4ade80;
  --r: 16px;
  --num: "DIN Alternate", "Bahnschrift", "DIN Condensed", "Roboto Condensed", "Arial Narrow", system-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(900px 520px at 50% -12%, rgba(64, 98, 210, .38), transparent 62%),
    radial-gradient(600px 400px at 110% 30%, rgba(255, 122, 47, .10), transparent 60%),
    linear-gradient(180deg, #0b1122 0%, #070a14 100%);
  background-attachment: fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
input { font: inherit; }

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
}

.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.red { color: var(--red); }
.green { color: var(--green); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 卡片 & 标题 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.card + .card { margin-top: 12px; }
.sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--dim); margin: 20px 2px 10px;
}
.sec-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(var(--orange), var(--gold)); }
.page-head { margin: 6px 2px 14px; }
.page-head .eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--orange); font-weight: 700; }
.page-head h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: .02em; }
.page-head p { margin: 4px 0 0; color: var(--dim); }

/* ---------- 按钮 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 10px 16px;
  border: 0; border-radius: 14px; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
  background: linear-gradient(135deg, #ff8a3d, #f7c948);
  color: #1b1206;
  box-shadow: 0 8px 24px rgba(255, 138, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s ease, filter .12s ease, opacity .12s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost {
  background: var(--card2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.teal { background: linear-gradient(135deg, #2fd6b5, #5b8dff); color: #04121c; box-shadow: 0 8px 24px rgba(47, 214, 181, .22); }
.btn.danger { background: rgba(255, 91, 110, .14); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 91, 110, .35); }
.btn.sm { min-height: 38px; font-size: 13px; border-radius: 11px; padding: 6px 12px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-col { display: grid; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--dim); text-decoration: underline; cursor: pointer; padding: 6px; }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 34px 6px 18px; }
.hero .logo-mark {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px;
  display: grid; place-items: center; font-size: 42px;
  background: radial-gradient(circle at 30% 25%, #ffb36b, #ff6a1f 55%, #b8360a);
  box-shadow: 0 16px 40px rgba(255, 106, 31, .38), inset 0 -6px 0 rgba(0, 0, 0, .18);
  animation: floaty 4s ease-in-out infinite;
}
.hero .en { font-size: 12px; letter-spacing: .5em; color: var(--orange); font-weight: 800; padding-left: .5em; }
.hero h1 {
  margin: 6px 0 8px; font-size: 34px; letter-spacing: .06em; font-weight: 900;
  background: linear-gradient(180deg, #fff 30%, #c9d4f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--dim); margin: 0 auto; max-width: 300px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 12px; text-align: left; cursor: pointer;
}
.tile b { display: block; font-size: 15px; margin-top: 4px; }
.tile span { font-size: 22px; }
.tile small { color: var(--dim); }
.continue-card { display: flex; align-items: center; gap: 12px; }
.disclaimer { text-align: center; color: var(--faint); font-size: 11px; margin-top: 26px; line-height: 1.7; }

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }

/* ---------- 球队徽标 ---------- */
.tb {
  --c1: #444; --c2: #999;
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--num); font-weight: 800; font-size: 11px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(145deg, var(--c1) 55%, var(--c2));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 2px 8px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.tb.lg { width: 52px; height: 52px; font-size: 15px; }
.tb.xs { width: 22px; height: 22px; font-size: 8px; }

/* ---------- 位置选择 ---------- */
.pos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pos-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 4px; text-align: center; cursor: pointer; transition: all .15s;
}
.pos-card b { display: block; font-family: var(--num); font-size: 22px; }
.pos-card small { color: var(--dim); font-size: 11px; }
.pos-card.sel { border-color: var(--orange); background: rgba(255, 122, 47, .12); box-shadow: 0 0 0 1px var(--orange), 0 8px 22px rgba(255, 122, 47, .2); }
.pos-card.sel b { color: var(--gold); }
.pos-hint { margin-top: 10px; min-height: 40px; color: var(--dim); font-size: 12px; }
.pos-hint b { color: var(--text); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--dim); }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); outline: none;
}
.field input:focus { border-color: var(--orange); }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

/* ---------- 建模 ---------- */
.build-top {
  position: sticky; top: 0; z-index: 5;
  margin: -16px -16px 12px; padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(10, 15, 30, .97), rgba(10, 15, 30, .9));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ovr-badge { text-align: center; min-width: 64px; }
.ovr-badge .v { font-family: var(--num); font-size: 38px; font-weight: 800; line-height: 1; }
.ovr-badge .k { font-size: 10px; letter-spacing: .3em; color: var(--dim); padding-left: .3em; }
.progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--gold)); transition: width .4s ease; }

.attr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot {
  position: relative; border-radius: 11px; padding: 7px 8px 6px;
  background: rgba(255, 255, 255, .035); border: 1px dashed rgba(255, 255, 255, .14);
  min-height: 52px;
}
.slot .n { font-size: 11px; color: var(--dim); display: flex; justify-content: space-between; }
.slot .n .key { color: var(--gold); font-size: 10px; }
.slot .v { font-family: var(--num); font-size: 20px; font-weight: 800; line-height: 1.1; }
.slot .s { font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.filled { border-style: solid; background: rgba(255, 255, 255, .06); }
.slot.flash { animation: slotFlash .9s ease; }
@keyframes slotFlash { 0% { transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(247, 201, 72, .6); } 100% { transform: scale(1); box-shadow: none; } }

.reel-wrap { position: relative; }
.reel {
  position: relative; height: 72px; overflow: hidden; border-radius: 14px;
  background: linear-gradient(180deg, #060912, #111a33 50%, #060912);
  border: 1px solid rgba(247, 201, 72, .35);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .6), 0 0 0 4px rgba(247, 201, 72, .06);
}
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#060912, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #060912); }
.reel-strip { will-change: transform; }
.reel-item { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.reel-item .t { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.reel-item .q { font-size: 30px; color: var(--faint); font-family: var(--num); width: 100%; text-align: center; letter-spacing: .4em; }
.reel-pointer { position: absolute; right: -2px; top: 50%; transform: translateY(-50%); z-index: 3; color: var(--gold); font-size: 18px; }

.reels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; scroll-margin-top: 110px; }
.reels .reel-item { padding: 0 12px; gap: 10px; }
.reels .reel-item .t { font-size: 17px; }
.reel-item.attr { justify-content: center; }
.reel-item.attr .t { color: var(--gold); font-size: 22px; letter-spacing: .12em; }
.deal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.deal-card {
  border-radius: 14px; padding: 12px 8px 10px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); transition: transform .12s, border-color .12s;
  animation: fadeUp .35s ease both; min-width: 0;
}
.deal-card:nth-child(2) { animation-delay: .08s; }
.deal-card:nth-child(3) { animation-delay: .16s; }
.deal-card:active { transform: scale(.96); border-color: var(--teal); }
.deal-card .v { font-family: var(--num); font-size: 34px; font-weight: 900; line-height: 1.05; }
.deal-card .nm { font-weight: 700; font-size: 13px; margin-top: 4px; }
.deal-card .meta { font-size: 11px; color: var(--dim); }
.slot.target { border-style: solid; border-color: var(--gold); background: rgba(247, 201, 72, .1); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(247, 201, 72, .35); } 50% { box-shadow: 0 0 0 4px rgba(247, 201, 72, .12); } }
.roster { display: grid; gap: 6px; margin-top: 10px; }
.pl {
  border-radius: 12px; background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
.pl-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.pl-head .nm { font-weight: 700; }
.pl-head .meta { font-size: 11px; color: var(--dim); }
.pl.used { opacity: .38; }
.pl.used .pl-head { cursor: default; }
.pl.open { border-color: rgba(247, 201, 72, .45); background: rgba(247, 201, 72, .05); }
.ovr-pill {
  font-family: var(--num); font-weight: 800; font-size: 16px; min-width: 40px; text-align: center;
  padding: 3px 6px; border-radius: 8px; background: rgba(255, 255, 255, .06);
}
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 12px 12px; }
.chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; text-align: center;
  background: rgba(255, 255, 255, .04); cursor: pointer;
}
.chip .n { font-size: 11px; color: var(--dim); }
.chip .v { font-family: var(--num); font-size: 18px; font-weight: 800; line-height: 1.1; }
.chip.take { border-color: rgba(47, 214, 181, .5); background: rgba(47, 214, 181, .08); }
.chip.take:active { transform: scale(.96); }
.chip.locked { opacity: .3; cursor: default; }

.o-elite { color: var(--gold); }
.o-high { color: var(--teal); }
.o-mid { color: #8fb0ff; }
.o-low { color: var(--dim); }
i.o-elite { background: linear-gradient(90deg, #f7a948, var(--gold)); }
i.o-high { background: linear-gradient(90deg, #22b39a, var(--teal)); }
i.o-mid { background: linear-gradient(90deg, #4a6fd6, #8fb0ff); }
i.o-low { background: #56607d; }

/* ---------- 能力条 ---------- */
.abars { display: grid; gap: 7px; }
.ab { display: grid; grid-template-columns: 46px 1fr 30px; align-items: center; gap: 8px; }
.ab-n { font-size: 12px; color: var(--dim); }
.ab-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: 4px; }
.ab b { font-family: var(--num); text-align: right; }
.ab-src { grid-column: 2 / 4; font-size: 10px; color: var(--faint); margin-top: -5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

/* ---------- 球员卡 ---------- */
.pcard {
  position: relative; overflow: hidden; border-radius: 22px; padding: 20px 18px 18px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(247, 201, 72, .22), transparent 60%),
    linear-gradient(150deg, #1d2a57, #0d1430 60%, #0a0f22);
  border: 1px solid rgba(247, 201, 72, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pcard.reveal { animation: cardIn .9s cubic-bezier(.2, .9, .25, 1.1) both; }
@keyframes cardIn { 0% { transform: perspective(800px) rotateY(80deg) scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pcard .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); transform: translateX(-100%); animation: shine 2.8s ease 1s infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard .big-ovr { font-family: var(--num); font-size: 64px; font-weight: 900; line-height: .9; }
.pcard .nm { font-size: 24px; font-weight: 900; letter-spacing: .03em; }
.pcard .sub { color: var(--dim); font-size: 13px; }
.arch-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgba(247, 201, 72, .14); color: var(--gold); font-weight: 700; font-size: 13px;
}

/* ---------- 统计 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
.stat {
  background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 10px 6px; text-align: center;
}
.stat .v { font-family: var(--num); font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat .k { font-size: 11px; color: var(--dim); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
table.t { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
table.t th { color: var(--dim); font-weight: 600; text-align: right; padding: 6px 6px; border-bottom: 1px solid var(--line); }
table.t td { text-align: right; padding: 7px 6px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-family: var(--num); }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t tr.me td { color: var(--gold); background: rgba(247, 201, 72, .06); }
table.t tr.cut td { border-bottom: 1px dashed rgba(255, 255, 255, .25); }

/* ---------- 赛季模拟 ---------- */
.scoreboard {
  text-align: center; padding: 18px 14px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 122, 47, .14), rgba(91, 141, 255, .08));
  border: 1px solid var(--line);
}
.scoreboard .rec { font-family: var(--num); font-size: 56px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.scoreboard .rec span { color: var(--faint); margin: 0 6px; }
.feed { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.feed-item {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); font-size: 13px; animation: fadeUp .35s ease both;
}
.feed-item.gold { background: rgba(247, 201, 72, .1); color: #ffe7a6; }
.feed-item.bad { background: rgba(255, 91, 110, .1); color: #ffc0c8; }
.feed-item .g { color: var(--faint); font-family: var(--num); font-size: 11px; min-width: 32px; padding-top: 1px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 奖项 ---------- */
.award {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); animation: fadeUp .45s ease both;
}
.award + .award { margin-top: 8px; }
.award .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .06); flex-shrink: 0; }
.award .tt { font-size: 12px; color: var(--dim); }
.award .who { font-weight: 800; font-size: 15px; }
.award .line { font-size: 11px; color: var(--dim); }
.award.mine { border-color: rgba(247, 201, 72, .6); background: linear-gradient(120deg, rgba(247, 201, 72, .16), rgba(255, 122, 47, .06)); }
.award.mine .ic { background: rgba(247, 201, 72, .2); }
.me-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: #241a00; font-size: 10px; font-weight: 800; vertical-align: 2px; }
.name-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.name-list span { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.name-list span.me { background: var(--gold); color: #241a00; font-weight: 800; }

/* ---------- 季后赛 ---------- */
.series {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); font-size: 13px;
}
.series + .series { margin-top: 6px; }
.series.mine { background: rgba(247, 201, 72, .1); box-shadow: inset 0 0 0 1px rgba(247, 201, 72, .35); }
.series .sc { font-family: var(--num); font-weight: 800; margin-left: auto; }
.series .lose { opacity: .45; }
.game-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 13px; animation: fadeUp .3s ease both; }
.game-row + .game-row { margin-top: 6px; }
.game-row .r { font-family: var(--num); font-weight: 800; }
.wl { display: inline-block; width: 20px; height: 20px; border-radius: 6px; text-align: center; line-height: 20px; font-size: 11px; font-weight: 800; }
.wl.w { background: rgba(74, 222, 128, .18); color: var(--green); }
.wl.l { background: rgba(255, 91, 110, .16); color: var(--red); }
.banner {
  text-align: center; padding: 18px; border-radius: 18px; margin-top: 12px;
  background: linear-gradient(135deg, rgba(247, 201, 72, .22), rgba(255, 122, 47, .12));
  border: 1px solid rgba(247, 201, 72, .5); animation: pop .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
.banner.sad { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.banner .big { font-size: 26px; font-weight: 900; letter-spacing: .04em; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 赛季卡 ---------- */
.season-card {
  --c1: #333; --c2: #777;
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 55%, #0a0f1e), #0b1022 70%);
  border: 1px solid rgba(255, 255, 255, .12);
}
.season-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c2) 45%, transparent), transparent 70%);
}
.award-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.award-chips span { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(247, 201, 72, .16); color: var(--gold); }

/* ---------- 休赛期 ---------- */
.delta-list { display: flex; flex-wrap: wrap; gap: 6px; }
.delta-list span { font-size: 12px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.delta-list span.up { color: var(--green); background: rgba(74, 222, 128, .1); }
.delta-list span.down { color: var(--red); background: rgba(255, 91, 110, .1); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt {
  border-radius: 14px; padding: 12px 8px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); transition: all .15s;
}
.opt .ic { font-size: 26px; }
.opt b { display: block; font-size: 13px; margin: 2px 0 4px; }
.opt small { display: block; color: var(--teal); font-size: 11px; line-height: 1.5; }
.opt.sel { border-color: var(--teal); background: rgba(47, 214, 181, .1); }
.opt.dim { opacity: .35; pointer-events: none; }
.offer {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
}
.offer + .offer { margin-top: 8px; }
.offer:active { transform: scale(.99); }
.offer .pay { text-align: right; font-family: var(--num); }
.news { display: grid; gap: 6px; font-size: 13px; }
.news div { padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); }

/* ---------- 生涯终章 ---------- */
.legacy-rank { text-align: center; padding: 20px 10px; }
.legacy-rank .n { font-family: var(--num); font-size: 72px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #ffe9a8, #f7a948); -webkit-background-clip: text; background-clip: text; color: transparent; }
.honor-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.honor {
  text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.honor .v { font-family: var(--num); font-size: 28px; font-weight: 900; line-height: 1; }
.honor .k { font-size: 11px; color: var(--dim); margin-top: 4px; }
.honor.on { border-color: rgba(247, 201, 72, .45); background: rgba(247, 201, 72, .08); }
.honor.on .v { color: var(--gold); }
.honor .yrs { font-size: 10px; color: var(--faint); margin-top: 3px; line-height: 1.4; }
.rank-list { display: grid; gap: 4px; }
.rank-list div { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 6px 10px; border-radius: 9px; font-size: 13px; }
.rank-list div:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.rank-list div.me { background: rgba(247, 201, 72, .16); color: var(--gold); font-weight: 800; }
.rank-list b { font-family: var(--num); }

/* ---------- 弹窗 & 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 6, 14, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal {
  width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; -webkit-overflow-scrolling: touch;
  background: #10172e; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp .28s cubic-bezier(.2, .9, .3, 1) both;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: sticky; top: -16px; background: #10172e; padding: 4px 0 8px; z-index: 2; }
.modal-head h3 { margin: 0; font-size: 18px; }
.x-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card2); cursor: pointer; font-size: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.team-pick { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 12px; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .05); margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 9px; cursor: pointer; color: var(--dim); font-weight: 700; }
.seg button.on { background: var(--card2); color: var(--text); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, #ffe08a, #f7a948); color: #241a00; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: pop .35s ease both; max-width: calc(100vw - 32px); text-align: center;
}
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); opacity: .45; }
.ach.on { opacity: 1; border-color: rgba(247, 201, 72, .45); background: rgba(247, 201, 72, .08); }
.ach b { display: block; font-size: 13px; }
.ach small { color: var(--dim); font-size: 11px; }
.help h4 { margin: 14px 0 4px; color: var(--gold); }
.help p, .help li { color: #c7cfe6; font-size: 13px; }
.help ul { padding-left: 18px; margin: 4px 0; }
.poster-img { width: 100%; border-radius: 14px; display: block; }
.empty { text-align: center; color: var(--dim); padding: 30px 10px; }

@media (max-width: 360px) {
  .pos-grid { grid-template-columns: repeat(3, 1fr); }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .opt-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
