/* ============================================================
 * style.css — 第五人格 生涯模拟器
 * 暗色电竞风，主色：烛光金 + 深墨蓝黑，UI 放大
 * ============================================================ */

:root {
  --bg: #0c0d13;
  --bg-2: #151724;
  --bg-3: #1e2230;
  --line: #2a2e3e;
  --line-strong: #3a3f52;
  --text: #eceaf4;
  --text-dim: #9895ac;
  --gold: #e8c05a;
  --gold-dim: #b8983c;
  --red: #e56464;
  --green: #5cc48a;
  --purple: #9a86e8;
  --blue: #5ba8e8;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #131522, #0f1119);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.brand-logo { height: 42px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 3px 8px; }
.brand-text { color: var(--text-dim); font-size: 15px; font-weight: 600; letter-spacing: 1px; }

.corner-btn {
  background: var(--bg-3);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}
.corner-btn:hover { color: #fff; border-color: var(--gold); background: var(--bg-2); }

/* ---------- 主容器 ---------- */
#app { max-width: 1040px; margin: 0 auto; padding: 36px 28px 90px; }

.view { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 60vh;
}
@media (max-width: 780px) { .intro-grid { grid-template-columns: 1fr; } }

.hero-logo { height: 84px; width: auto; display: block; margin-bottom: 8px; background: #fff; border-radius: 12px; padding: 6px 12px; }
.eyebrow { font-size: 16px; color: var(--text-dim); margin-top: 10px; letter-spacing: 2px; }
.hero-title { font-size: 42px; font-weight: 800; margin: 18px 0; line-height: 1.25; }
.hero-art { width: 200px; height: auto; margin-top: 10px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }

.hero-sub { color: var(--text-dim); font-size: 17px; margin-bottom: 26px; line-height: 1.8; }
.hero-credit { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; letter-spacing: 1px; }
.hero-credit .hero-beta { display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.hero-credit .hero-qq { display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--text-dim); border-radius: 999px; color: var(--text-dim); font-size: 12px; letter-spacing: 1px; cursor: pointer; }

.intro-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.intro-facts li {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-dim);
}
.intro-facts b { color: var(--gold); }

.seed-box { margin-bottom: 24px; }
.seed-box label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.seed-box input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
}
.seed-box input:focus { border-color: var(--gold-dim); }

.btn-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: transform .05s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--gold);
  color: #1a1408;
  border-color: var(--gold);
  font-weight: 700;
}
.btn-primary:hover { background: #f0cd6e; }
.btn {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--line);
}
.btn:hover { border-color: var(--gold-dim); }
.btn-back { background: var(--bg-2); color: var(--text-dim); }

/* ---------- 序章 ---------- */
.prologue-card {
  max-width: 640px;
  margin: 30px auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
}
.prologue-icon { font-size: 56px; margin-bottom: 16px; }
.prologue-title { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.prologue-body { color: var(--text-dim); font-size: 17px; margin-bottom: 30px; line-height: 2; }
.prologue-body b { color: var(--gold); }
.prologue-next { max-width: 240px; margin: 0 auto; }

.prologue-choices { display: flex; flex-direction: column; gap: 14px; }
.faction-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px;
}
.faction-btn .faction-icon { font-size: 34px; }
.faction-txt b { font-size: 18px; }
.faction-txt small { color: var(--text-dim); font-weight: 400; font-size: 14px; }

/* ---------- 身份步骤 ---------- */
.step-head { margin-bottom: 28px; }
.step-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.step-sub { font-size: 15px; color: var(--text-dim); }
.progress { height: 8px; background: var(--bg-3); border-radius: 4px; margin: 14px 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .3s; }

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 12px;
}
.option-card:hover { border-color: var(--gold-dim); background: var(--bg-3); }
.option-card.selected { border-color: var(--gold); background: var(--bg-3); }
.option-icon { font-size: 32px; }
.option-info { flex: 1; }
.option-name { font-weight: 700; font-size: 18px; }
.option-desc { font-size: 14px; color: var(--text-dim); }
.option-check { color: var(--gold); font-size: 22px; opacity: 0; }
.option-card.selected .option-check { opacity: 1; }
.pick-hint { color: var(--text-dim); font-size: 14px; text-align: center; margin-top: 12px; }

.id-label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.id-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 17px;
  outline: none;
}
.id-input:focus { border-color: var(--gold-dim); }

/* ---------- 生涯主页（参考体育模拟器布局）---------- */
.career-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .career-layout { grid-template-columns: 1fr; } }

.career-main { display: flex; flex-direction: column; gap: 18px; }

/* 身份卡：OVR 大块 + 玩家信息 + 右侧小数据 */
.id-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px 22px;
}
.ovr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 96px;
}
.ovr-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #6b5a26; }
.ovr-num { font-size: 44px; font-weight: 800; color: #1a1408; line-height: 1; }

/* 能力值分级颜色 */
.ovr-block.tier-iron { background: linear-gradient(145deg, #5d6066, #3a3d42); }
.ovr-block.tier-iron .ovr-label { color: #c9cdd4; }
.ovr-block.tier-iron .ovr-num { color: #e8eaee; }
.ovr-block.tier-bronze { background: linear-gradient(145deg, #c8945a, #9c6b34); }
.ovr-block.tier-bronze .ovr-label { color: #4a2f12; }
.ovr-block.tier-bronze .ovr-num { color: #2c1c08; }
.ovr-block.tier-silver { background: linear-gradient(145deg, #d9dee6, #aab2bd); }
.ovr-block.tier-silver .ovr-label { color: #3d4650; }
.ovr-block.tier-silver .ovr-num { color: #1f2730; }
.ovr-block.tier-gold { background: linear-gradient(145deg, #f5d98a, #d4a85a); }
.ovr-block.tier-gold .ovr-label { color: #6b5a26; }
.ovr-block.tier-gold .ovr-num { color: #1a1408; }
.ovr-block.tier-rainbow {
  background: linear-gradient(145deg, #ff6a6a, #ffb13d, #ffe15e, #5eff8f, #5ebcff, #c05eff, #ff6a6a);
  background-size: 300% 300%;
  animation: rainbowShift 4s linear infinite;
}
.ovr-block.tier-rainbow .ovr-label { color: #1a1408; }
.ovr-block.tier-rainbow .ovr-num { color: #0d0a02; text-shadow: 0 0 12px rgba(255,255,255,.6); }
@keyframes rainbowShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.id-info { flex: 1; min-width: 0; }
.id-tags { display: flex; gap: 8px; margin-bottom: 6px; }
.tag-faction {
  font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 6px;
  background: var(--bg-3); color: var(--text-dim);
  border: 1px solid var(--line);
}
.tag-stage {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.tag-league {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.tag-league img { height: 34px; width: auto; display: block; }
.id-name { font-size: 26px; font-weight: 800; line-height: 1.2; }
.id-sub { font-size: 14px; color: var(--gold); margin-top: 2px; }
.id-sub img { width: 44px; height: 44px; vertical-align: -12px; border-radius: 8px; object-fit: contain; background: #fff; margin-right: 8px; }
.id-slogan { font-size: 13px; color: var(--gold); margin-top: 4px; letter-spacing: .5px; font-style: italic; }
.id-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 64px; }
.id-side-item { display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; width: 100%; }
.id-side-item span { font-size: 13px; color: var(--text-dim); }
.id-side-item b { font-size: 18px; font-weight: 700; color: var(--text); min-width: 30px; text-align: right; }

/* 属性条 */
.attr-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.attr-bar { }
.attr-bar-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.attr-bar-head span { color: var(--text-dim); }
.attr-bar-head b { color: var(--text); font-size: 16px; }
.attr-track { height: 10px; background: #111320; border-radius: 5px; overflow: hidden; }
.attr-fill { height: 100%; border-radius: 5px; transition: width .5s ease; }
.attr-fill.bg-purple { background: linear-gradient(90deg, #6f5ac2, var(--purple)); }
.attr-fill.health-good { background: linear-gradient(90deg, #3a7a5a, var(--green)); }
.attr-fill.health-mid { background: linear-gradient(90deg, #a8832e, var(--gold)); }
.attr-fill.health-low { background: linear-gradient(90deg, #b07830, #e09a4a); }
.attr-fill.health-crit { background: linear-gradient(90deg, #b04a4a, var(--red)); }
.attr-fill.bg-green { background: linear-gradient(90deg, #3a7a5a, var(--green)); }
.attr-fill.bg-gold { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.attr-fill.bg-team { background: linear-gradient(90deg, #2b6f5f, #4dc2a8); }
.attr-fill.bg-fame { background: linear-gradient(90deg, #3a6cc2, #5aa2ff); }
.attr-fill.bg-relation { background: linear-gradient(90deg, #b0557a, #e08ab0); }
.attr-tip { font-size: 13px; color: var(--gold); margin-top: 5px; font-weight: 600; }

.finance-row {
  display: flex;
  gap: 14px;
  margin-top: 2px;
}
.finance-item {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.finance-item span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.finance-item b { font-size: 19px; font-weight: 700; color: var(--gold); }

/* 事件卡（当前剧情，只显示最新一条） */
.event-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  min-height: 120px;
}
.event-card-inner { border-left: 4px solid var(--line); padding-left: 16px; }
.event-card-inner.good { border-left-color: var(--green); }
.event-card-inner.bad { border-left-color: var(--red); }
.event-card-inner.award { border-left-color: var(--gold); }
.event-card-inner.story { border-left-color: var(--purple); }
.event-card-inner.quiz { border-left-color: var(--blue); }
.event-time { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.event-text { font-size: 17px; line-height: 1.8; }
.event-feedback { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.event-empty { color: var(--text-dim); font-size: 16px; text-align: center; padding: 30px 0; }

.continue-btn { margin-top: 4px; }

/* 右侧时间线 */
.timeline {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 78px;
}
.timeline-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.timeline-list { display: flex; flex-direction: column; gap: 12px; }
.timeline-item { display: flex; gap: 10px; align-items: flex-start; }
.timeline-dot { flex-shrink: 0; font-size: 15px; line-height: 1.5; }
.timeline-txt { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.timeline-empty { color: var(--text-dim); font-size: 14px; }

/* stage 标签配色（复用） */
.stage-entry { color: var(--blue); border-color: #2b5b77; background: rgba(91,168,232,.12); }
.stage-academy { color: var(--purple); border-color: #4a3f86; background: rgba(154,134,232,.12); }
.stage-pro { color: var(--gold); border-color: #6b5a26; background: rgba(232,192,90,.12); }
.stage-retired { color: var(--text-dim); }

/* ---------- 决策弹窗 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,6,10,.78);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
}
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
}
.modal h2 { font-size: 22px; margin-bottom: 12px; }
.modal h3 { font-size: 16px; margin: 18px 0 10px; color: var(--gold); }
.modal p { font-size: 15px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.7; }
.modal ul { padding-left: 22px; font-size: 15px; color: var(--text-dim); }
.modal li { margin-bottom: 8px; }
.modal li strong { color: var(--text); }

.decision-prompt { color: var(--text); font-size: 17px; margin-bottom: 20px; font-weight: 500; }
.decision-choices { display: flex; flex-direction: column; gap: 12px; }
.choice-btn {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s, background .15s, transform .08s;
}
.choice-btn:hover { border-color: var(--gold); background: var(--bg-2); }
.choice-btn:disabled { cursor: default; opacity: .7; }
.choice-label { font-weight: 600; font-size: 16px; }
.choice-fx { font-size: 13px; color: var(--gold); }

/* 随机跳动动画 */
.choice-btn.bouncing {
  border-color: var(--gold);
  background: var(--bg-2);
  animation: bounce .18s ease;
  box-shadow: 0 0 0 2px var(--gold-dim);
}
@keyframes bounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.06) translateY(-3px); }
  70% { transform: scale(.97); }
  100% { transform: scale(1); }
}

/* 签约按钮 */
.sign-btn { flex-direction: row; align-items: center; gap: 14px; }
.sign-btn .crest-lg { flex-shrink: 0; }
.sign-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border-radius: 10px;
  padding: 1px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* 教练问答反馈 */
.quiz-result { text-align: center; padding: 10px 0; }
.quiz-feedback { font-size: 18px; line-height: 1.8; margin-bottom: 16px; }
.quiz-favor { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1408;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 26px;
  font-size: 15px;
  z-index: 200;
  animation: fadeIn .2s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}

/* ---------- 结算 ---------- */
.summary-card {
  background: var(--bg-2);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}
.summary-tier { font-size: 15px; color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.summary-title { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.summary-desc { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }
.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.summary-stat { background: var(--bg-3); border-radius: 12px; padding: 18px; }
.summary-stat .val { font-size: 28px; font-weight: 700; color: var(--gold); }
.summary-stat .lbl { font-size: 13px; color: var(--text-dim); }
.trophy-line { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.seed-line { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.seed-line b { color: var(--gold); }

/* ---------- 图鉴 / 档案 ---------- */
.codex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.codex-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  opacity: .4;
  filter: grayscale(.6);
}
.codex-card.unlocked { opacity: 1; filter: none; border-color: var(--gold-dim); }
.codex-tier { font-size: 13px; color: var(--gold); }
.codex-title { font-size: 19px; font-weight: 700; margin: 8px 0; }
.codex-desc { font-size: 14px; color: var(--text-dim); }

.archive-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.archive-num { font-size: 13px; color: var(--text-dim); }
.archive-title { font-size: 20px; font-weight: 700; margin: 6px 0; }
.archive-sub { font-size: 14px; color: var(--text-dim); }
.archive-meta { font-size: 13px; color: var(--gold); margin-top: 8px; }

/* ---------- 底栏 ---------- */
.actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 14px;
  padding: 16px 28px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.actionbar .btn { max-width: 320px; margin: 0 auto; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- 季后赛（名单 + 对战表）---------- */
.playoffs-box { width: 100%; }
.playoffs-head { text-align: center; font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.playoffs-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.po-team {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.po-team.is-me { border-color: var(--gold); background: rgba(212, 168, 90, .12); }
.po-seed { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.po-crest { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 6px; }
.po-name { font-size: 14px; font-weight: 600; }
.po-name em { color: var(--gold); font-style: normal; font-size: 12px; }
.po-miss { text-align: center; color: var(--red); font-size: 14px; margin-bottom: 14px; }
.po-in { text-align: center; color: var(--green); font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.bracket {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
  overflow-x: auto;
}
.bracket-col { flex: 1; min-width: 130px; }
.bracket-col-title { text-align: center; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 1px; }
.bracket-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.bracket-match .bm { font-size: 13px; text-align: center; }
.bracket-match .bvs { font-size: 11px; color: var(--text-dim); }

/* ---------- 季后赛最终结果（名次 + 冠军银色奖杯）---------- */
.result-box { width: 100%; text-align: center; }
.champion-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 70%), var(--bg-3);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 22px 16px;
  margin-bottom: 16px;
}
.trophy-svg { filter: drop-shadow(0 4px 12px rgba(150,160,180,.45)); }
.champion-label { font-size: 14px; color: var(--gold); letter-spacing: 1px; font-weight: 700; }
.champion-team { display: flex; align-items: center; gap: 10px; }
.champion-crest { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 9px; }
.champion-name { font-size: 24px; font-weight: 800; color: #fff; }
.champion-slogan { font-size: 14px; color: var(--gold); margin-top: 2px; }
.trophy-img {
  width: 150px; height: 150px; object-fit: contain;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(212,168,90,.28), rgba(212,168,90,.06) 60%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(212,168,90,.35), 0 8px 30px rgba(0,0,0,.45), inset 0 0 30px rgba(212,168,90,.12);
  padding: 6px;
}
.result-bonus { font-size: 15px; color: var(--text); margin: 14px 0 6px; }
.result-bonus b { color: var(--gold); font-size: 18px; }
.result-fmvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212,168,90,.18), rgba(255,255,255,.05));
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0 8px;
}
.fmvp-img { width: 110px; height: 110px; object-fit: contain; border-radius: 12px; }
.fmvp-title { font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.fmvp-bonus { font-size: 14px; color: var(--text); }
.result-rank { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.result-rank .rank-num { color: var(--gold); font-size: 20px; font-weight: 800; }
.result-rank.result-miss { color: var(--red); }
.result-six-title { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; letter-spacing: 1px; }

/* ---------- 荣誉栏（生涯主页）---------- */
.trophy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.trophy-empty { color: var(--text-dim); font-size: 13px; }
.trophy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 90, .08);
  border: 1px solid rgba(212, 168, 90, .25);
  border-radius: 9px;
  padding: 8px 12px;
  min-width: 72px;
  max-width: 180px;
}
.trophy-item.is-champ { border-color: var(--gold); background: rgba(212, 168, 90, .15); }
/* 奖杯图标：黑底圆角容器，避免透明 PNG 抠图感 */
.trophy-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #000;
  border-radius: 8px;
}
.trophy-bar-img { width: 40px; height: 40px; object-fit: contain; }
.trophy-item.is-champ .trophy-bar-img { width: 44px; height: 44px; }
.trophy-bar-emoji { font-size: 22px; }
.trophy-name { font-size: 13px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }
.trophy-item.is-champ .trophy-name { color: var(--gold); }

/* ---------- 身份选择（性别）---------- */
.gender-choices { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.gender-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 34px; font-size: 16px; }
.gender-btn .gender-icon { font-size: 40px; }
.gender-btn.selected { border-color: var(--gold); background: rgba(212,168,90,.15); }

/* ---------- 休赛季结算 ---------- */
.price-line { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.price-big { font-size: 42px; font-weight: 900; color: var(--gold); letter-spacing: 1px; margin-bottom: 8px; }

/* ---------- 成就栏 / 恋爱系统（右侧）---------- */
.achievement-bar {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.ach-head { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.ach-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.ach-icon { font-size: 18px; }
.ach-name { font-size: 13px; color: var(--text); font-weight: 600; }
.ach-empty { font-size: 12px; color: var(--text-dim); }

.love-bar {
  background: linear-gradient(135deg, rgba(255,120,160,.12), rgba(255,80,120,.06));
  border: 1px solid rgba(255,120,160,.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.love-head { font-size: 14px; font-weight: 700; color: #ff8fb0; margin-bottom: 4px; }
.love-name { font-size: 17px; font-weight: 800; color: #ffb3c8; margin-bottom: 6px; }
.love-favor-label { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.love-favor-track { height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.love-favor-fill { height: 100%; background: linear-gradient(90deg, #ff8fb0, #ff5c8a); border-radius: 4px; transition: width .3s; }
.love-favor-num { font-size: 11px; color: #ffb3c8; margin-top: 3px; text-align: right; }
.love-flirt { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,120,160,.3); font-size: 12px; color: #ffc8d8; line-height: 1.6; font-style: italic; }

/* ---------- 休赛期结束 ---------- */
.offseason-end-icon { font-size: 44px; margin-bottom: 6px; }
.offseason-end-title { font-size: 22px; font-weight: 800; color: #fff; }
.offseason-end-sub { font-size: 15px; color: var(--gold); margin-top: 4px; }

/* ---------- toast 扩展 ---------- */
.toast-achieve { background: linear-gradient(135deg, #2a2416, #3a2f1a); color: #ffd88a; border: 1px solid var(--gold); text-align: left; }
.toast-achieve-title { font-size: 15px; font-weight: 800; }
.toast-achieve-desc { font-size: 12px; color: #c9b98a; margin-top: 3px; font-weight: 400; }
.toast-love { background: linear-gradient(135deg, #3a1a24, #4a2230); color: #ffb3c8; border: 1px solid #ff8fb0; padding: 14px 16px; }
.toast-love-img { display: block; width: 220px; height: auto; border-radius: 10px; margin-bottom: 10px; border: 1px solid rgba(255,143,176,.4); }
.toast-love-title { font-size: 15px; font-weight: 800; }
.toast-flirt { background: linear-gradient(135deg, #2a1824, #3a2030); color: #ffc8d8; border: 1px solid #ff9bb8; text-align: left; font-weight: 500; font-style: italic; }
.toast-flirt-text { font-size: 14px; line-height: 1.5; }
.toast-flirt .toast-flirt-text::before { content: '💬 '; font-style: normal; }

/* ---------- COA 深渊的呼唤 · 全球总决赛 ---------- */
.coa-logo-big {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,180,.25), transparent 70%), var(--bg-3);
  border: 1px solid var(--gold-dim); border-radius: 18px;
  padding: 28px 16px; margin-bottom: 14px;
}
.coa-logo-img { width: 170px; height: 170px; object-fit: contain; background: #fff; border-radius: 18px; padding: 6px; filter: drop-shadow(0 8px 24px rgba(80,140,220,.5)); }
.coa-logo-text { font-size: 44px; font-weight: 900; letter-spacing: 3px; color: #fff;
  text-shadow: 0 0 22px rgba(120,170,255,.55), 0 2px 0 rgba(0,0,0,.5); }
.coa-logo-sub { font-size: 15px; color: var(--gold); letter-spacing: 1px; }
.coa-host { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }

.coa-qualified-head { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 12px; letter-spacing: 1px; }
.coa-bracket-title { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; letter-spacing: 1px; }
.coa-bracket-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.coa-bracket-pair {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-3); border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 8px 12px;
}
.coa-bracket-pair.is-me { border-color: var(--gold); background: rgba(212,168,90,.10); }
.coa-bt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); flex: 1; }
.coa-bt b { font-weight: 700; }
.coa-bt small { color: var(--text-dim); font-size: 11px; }
.coa-vs { color: var(--text-dim); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.coa-my-match { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.coa-my-match b { color: var(--gold); font-size: 18px; }

.coa-result-icon { font-size: 56px; margin-bottom: 8px; }
.coa-round-head { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 1px; margin-bottom: 10px; }
.coa-vs-big { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.coa-vs-big span { color: var(--gold); margin: 0 8px; }
.coa-round-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }

.coa-promo { margin-bottom: 12px; }
.coa-promo-label { font-size: 13px; color: var(--text-dim); text-align: left; margin-bottom: 4px; }
.coa-promo-label b { color: var(--gold); font-size: 16px; }
.coa-promo-bar { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.coa-promo-fill { height: 100%; background: linear-gradient(90deg, #e8c05a, #ffd88a); border-radius: 999px; transition: width .3s ease; }

.coa-feedback { text-align: left; margin-bottom: 12px; }
.coa-fb-yours { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.coa-fb-team { font-size: 14px; color: var(--gold); margin-bottom: 8px; }
.coa-fb-total { font-size: 14px; color: #fff; font-weight: 600; }
.coa-fb-total b { color: var(--gold); font-size: 18px; }
.coa-fb-ach { margin-top: 8px; font-size: 14px; color: var(--gold); font-weight: 700; }
.coa-opp-bar { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.coa-opp-bar img { flex: 0 0 auto; }
.coa-opp-label { color: var(--text-dim); }
.coa-opp-name { color: #fff; font-weight: 700; }
.coa-promo-line { color: var(--text-dim); font-weight: 400; margin-left: 6px; }
.coa-champion-art { text-align: center; margin-bottom: 10px; }
.coa-champion-art img { width: 180px; height: auto; max-height: 200px; object-fit: contain; border-radius: 12px; }
.coa-fmvp-art { text-align: center; margin: 8px 0; }
.coa-fmvp-art img { width: 150px; height: auto; max-height: 160px; object-fit: contain; border-radius: 10px; }
.coa-desk-art { text-align: center; margin-bottom: 12px; }
.coa-desk-art img { width: 100%; max-width: 340px; height: auto; border-radius: 12px; }
.coa-desk-vs { text-align: center; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.coa-desk-vs span { color: var(--gold); margin: 0 8px; }
.test-ended-modal { text-align: center; padding: 24px; }
.test-ended-qq { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--gold); }

