/* ============================================================
   绿茵人生 · Football Career Simulator
   ============================================================ */

:root {
  --bg: #060a08;
  --bg-2: #08110d;
  --panel: rgba(13, 23, 19, 0.78);
  --panel-solid: #0d1713;
  --panel-2: rgba(19, 33, 27, 0.9);
  --line: rgba(198, 255, 214, 0.09);
  --line-strong: rgba(198, 255, 214, 0.17);
  --text: #eaf4ec;
  --muted: #91a89b;
  --muted-2: #657b6f;
  --lime: #c9f75a;
  --lime-deep: #9ee83e;
  --green: #22e58f;
  --gold: #f6c453;
  --blue: #62a8ff;
  --red: #ff6b6b;
  --violet: #b79cff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: rgba(201, 247, 90, 0.28); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(198, 255, 214, 0.13); border-radius: 99px; border: 2px solid #08100d; }
::-webkit-scrollbar-thumb:hover { background: rgba(198, 255, 214, 0.24); }

/* ---------- Background ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 720px at 12% -12%, rgba(34, 229, 143, 0.13), transparent 58%),
    radial-gradient(900px 680px at 96% 4%, rgba(201, 247, 90, 0.075), transparent 60%),
    linear-gradient(180deg, #060a08 0%, #07100c 46%, #050806 100%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.bg-glow-a { width: 520px; height: 520px; left: -180px; top: 20%; background: rgba(34, 229, 143, 0.16); }
.bg-glow-b { width: 620px; height: 620px; right: -220px; bottom: -10%; background: rgba(201, 247, 90, 0.1); }
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 255, 214, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 214, 0.032) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 20%, transparent 78%);
}
.bg-pitch {
  position: absolute;
  inset: auto -20% -28% -20%;
  height: 66vh;
  border-top: 1px solid rgba(198, 255, 214, 0.07);
  transform: perspective(600px) rotateX(58deg);
  transform-origin: top center;
  opacity: 0.7;
  background:
    repeating-linear-gradient(90deg, rgba(198, 255, 214, 0.025) 0 2px, transparent 2px 120px);
}
.pitch-circle {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(198, 255, 214, 0.09);
  border-radius: 50%;
}
.pitch-halfway {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  height: 1px;
  background: rgba(198, 255, 214, 0.09);
}

/* ---------- Shared ---------- */
#app { position: relative; z-index: 1; }

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.muted { color: var(--muted); }
.mono { font-family: var(--num); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.btn {
  --btn-bg: rgba(255, 255, 255, 0.045);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--btn-line);
  border-radius: 13px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(201, 247, 90, 0.4); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, #d9ff73 0%, #c9f75a 48%, #9ee83e 100%);
  --btn-fg: #0a1206;
  --btn-line: transparent;
  box-shadow: 0 14px 38px rgba(174, 240, 74, 0.17), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5) 46%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover { box-shadow: 0 18px 46px rgba(174, 240, 74, 0.28), 0 1px 0 rgba(255, 255, 255, 0.45) inset; }

.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.025); }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; }
.btn-wide { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: 0.18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-lime { color: var(--lime); border-color: rgba(201, 247, 90, 0.28); background: rgba(201, 247, 90, 0.08); }
.chip-gold { color: var(--gold); border-color: rgba(246, 196, 83, 0.28); background: rgba(246, 196, 83, 0.08); }
.chip-blue { color: var(--blue); border-color: rgba(98, 168, 255, 0.26); background: rgba(98, 168, 255, 0.08); }
.chip-red { color: var(--red); border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.08); }

.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 8, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(145deg, #d9ff73, #7fd52e 70%, #4e9f14);
  box-shadow: 0 8px 24px rgba(158, 232, 62, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #0a1206;
  overflow: hidden;
}
.brand-mark svg { width: 23px; height: 23px; display: block; }
.brand-name { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.1; }
.brand-sub { font-size: 9px; letter-spacing: 0.26em; color: var(--muted-2); font-weight: 700; text-transform: uppercase; }
.topbar-spacer { flex: 1; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Intro ---------- */
.intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 74px 26px 84px;
}
.intro-grid {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}
.intro-eyebrow { margin-bottom: 22px; }
.intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(50px, 7.2vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.intro h1 .accent {
  display: inline-block;
  color: transparent;
  background: linear-gradient(112deg, #e8ffad 0%, #c9f75a 34%, #6ee7a8 72%, #62a8ff 105%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(201, 247, 90, 0.16));
}
.intro-lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: #b3c4b8;
  font-size: 16px;
  line-height: 1.9;
}
.intro-lead strong { color: var(--text); font-weight: 700; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.intro-stat b {
  display: block;
  font-family: var(--num);
  font-size: 25px;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: 0.01em;
}
.intro-stat span { font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; }
.intro-note { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); }

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(201, 247, 90, 0.14);
  border-radius: 50%;
  transform: rotateX(58deg);
}
.orbit-1 { width: 470px; height: 470px; }
.orbit-2 { width: 350px; height: 350px; border-style: dashed; opacity: 0.6; }
.orbit-3 { width: 590px; height: 590px; opacity: 0.35; }
.hero-card {
  position: relative;
  width: min(340px, 84vw);
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(34, 52, 43, 0.96), rgba(8, 15, 12, 0.98) 62%),
    #0c1511;
  border: 1px solid rgba(201, 247, 90, 0.25);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.hero-card:hover { transform: rotateY(-3deg) rotateX(2deg) translateY(-6px); }
.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(201, 247, 90, 0.18), transparent);
  pointer-events: none;
}
.hero-card::after {
  content: "10";
  position: absolute;
  right: -8px;
  bottom: -46px;
  font-family: var(--num);
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.hc-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: 0.2em; color: var(--muted-2); font-weight: 800; }
.hc-badge { padding: 4px 8px; border: 1px solid rgba(201, 247, 90, 0.3); border-radius: 99px; color: var(--lime); letter-spacing: 0.1em; }
.hc-name { margin-top: 22px; font-family: var(--display); font-size: 13px; letter-spacing: 0.28em; color: var(--muted); }
.hc-title { font-family: var(--display); font-size: 42px; font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; margin-top: 4px; }
.hc-title span { color: var(--lime); }
.hc-ovr { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.hc-ovr b { font-family: var(--num); font-size: 58px; line-height: 0.9; font-weight: 900; color: var(--lime); }
.hc-ovr span { font-size: 9px; letter-spacing: 0.2em; color: var(--muted-2); font-weight: 800; }
.hc-bars { display: grid; gap: 7px; margin-top: 20px; }
.hc-bar { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 9px; font-size: 9px; color: var(--muted); }
.hc-bar i { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.hc-bar i::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6ee7a8, var(--lime)); }
.hc-bar b { font-family: var(--num); font-size: 10px; color: var(--text); text-align: right; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.hc-tags span { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-size: 9.5px; color: var(--muted); border: 1px solid var(--line); }
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(11, 20, 16, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  font-weight: 700;
  color: #d7e6db;
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
.float-chip b { color: var(--lime); }
.chip-1 { top: 8%; right: 1%; animation-delay: -1s; }
.chip-2 { bottom: 17%; left: -2%; animation-delay: -3s; }
.chip-3 { bottom: 3%; right: 8%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Create ---------- */
.create-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 26px 90px; }
.create-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.create-head h1 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.create-sub { color: var(--muted); margin: 8px 0 0; font-size: 13.5px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step-dot { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted-2); font-size: 11px; font-weight: 700; }
.step-dot b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); font-size: 10px; color: var(--muted); }
.step-dot.active { color: var(--lime); border-color: rgba(201, 247, 90, 0.35); background: rgba(201, 247, 90, 0.07); }
.step-dot.active b { background: var(--lime); color: #0a1206; }
.step-dot.done { color: var(--green); border-color: rgba(34, 229, 143, 0.22); }
.step-dot.done b { background: rgba(34, 229, 143, 0.16); color: var(--green); }
.step-line { width: 22px; height: 1px; background: var(--line); }

.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.wizard-main { padding: 28px; min-height: 480px; display: flex; flex-direction: column; }
.wizard-main h2 { margin: 0; font-family: var(--display); font-size: 27px; letter-spacing: -0.02em; }
.wizard-main .hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.wizard-body { flex: 1; margin-top: 24px; }
.wizard-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-foot .right { display: flex; gap: 10px; }

.field-label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; margin-bottom: 8px; }
.text-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  outline: none;
  transition: 0.2s ease;
}
.text-input::placeholder { color: var(--muted-2); font-weight: 500; }
.text-input:focus { border-color: rgba(201, 247, 90, 0.55); background: rgba(201, 247, 90, 0.035); box-shadow: 0 0 0 4px rgba(201, 247, 90, 0.08); }

.nation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.nation-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: 0.18s ease;
}
.nation-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); transform: translateY(-1px); }
.nation-card.selected { border-color: rgba(201, 247, 90, 0.5); background: rgba(201, 247, 90, 0.07); box-shadow: 0 0 0 1px rgba(201, 247, 90, 0.1) inset; }
.nation-flag { font-size: 21px; line-height: 1; }
.nation-name { font-size: 13px; font-weight: 700; }
.nation-meta { font-size: 10px; color: var(--muted-2); margin-top: 1px; }
.nation-strength { margin-left: auto; font-family: var(--num); font-size: 12px; color: var(--muted); }

.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.role-group { margin-bottom: 18px; }
.role-group-label { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 9px; }
.role-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.role-card {
  position: relative;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: 0.18s ease;
  overflow: hidden;
}
.role-card:hover { border-color: var(--line-strong); transform: translateY(-2px); background: rgba(255, 255, 255, 0.045); }
.role-card.selected { border-color: rgba(201, 247, 90, 0.55); background: linear-gradient(150deg, rgba(201, 247, 90, 0.1), rgba(34, 229, 143, 0.03)); }
.role-card.selected::after { content: "✓"; position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #0a1206; font-size: 11px; font-weight: 900; }
.role-card.selected .role-pos-badge { opacity: 0; }
.role-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.role-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.055); font-size: 18px; }
.role-pos-badge { font-family: var(--num); font-size: 9px; letter-spacing: 0.1em; color: var(--lime); border: 1px solid rgba(201, 247, 90, 0.25); background: rgba(201, 247, 90, 0.07); border-radius: 5px; padding: 2px 5px; }
.role-name { font-size: 15px; font-weight: 800; }
.role-alt { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.role-pos { font-size: 10px; letter-spacing: 0.16em; color: var(--lime); font-weight: 800; margin-left: 7px; }
.role-tag { color: var(--muted); font-size: 10.5px; margin-top: 7px; line-height: 1.55; min-height: 32px; }
.role-keys { display: flex; gap: 4px; margin-top: 9px; flex-wrap: wrap; }
.role-keys span { font-size: 9px; padding: 3px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }

.dream-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dream-card {
  position: relative;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: 0.18s ease;
  min-height: 124px;
}
.dream-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.dream-card.selected { border-color: rgba(246, 196, 83, 0.5); background: linear-gradient(150deg, rgba(246, 196, 83, 0.09), rgba(255, 255, 255, 0.02)); }
.dream-card.selected::after { content: "✓"; position: absolute; top: 11px; right: 12px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1a1200; font-size: 10px; font-weight: 900; }
.dream-icon { font-size: 22px; line-height: 1; }
.dream-name { font-size: 14.5px; font-weight: 800; margin-top: 8px; }
.dream-tag { font-size: 10px; color: var(--gold); letter-spacing: 0.05em; margin-top: 1px; }
.dream-desc { font-size: 10.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.dream-recommend { margin-top: 7px; font-size: 9px; color: var(--muted-2); }

.alloc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.points-left { display: flex; align-items: baseline; gap: 7px; }
.points-left b { font-family: var(--num); font-size: 34px; line-height: 1; color: var(--lime); }
.points-left span { font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; }
.alloc-list { display: grid; gap: 9px; }
.alloc-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; }
.alloc-name { font-size: 12.5px; font-weight: 700; }
.alloc-name small { display: block; font-size: 8.5px; color: var(--muted-2); letter-spacing: 0.12em; font-weight: 700; }
.alloc-track { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; position: relative; }
.alloc-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38b879, var(--lime)); transition: width 0.25s ease; }
.alloc-val { font-family: var(--num); font-size: 15px; font-weight: 800; min-width: 28px; text-align: right; }
.alloc-ctrl { display: flex; align-items: center; gap: 5px; }
.alloc-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--muted); transition: 0.15s ease; }
.alloc-btn:hover:not(:disabled) { color: var(--text); border-color: var(--lime); }
.alloc-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.alloc-num { width: 22px; text-align: center; font-family: var(--num); font-size: 13px; font-weight: 800; }

.preview-card { position: sticky; top: 84px; padding: 20px; }
.preview-top { display: flex; align-items: center; gap: 10px; }
.preview-flag { font-size: 25px; }
.preview-name { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.preview-role { font-size: 9.5px; color: var(--muted); letter-spacing: 0.1em; margin-top: 2px; }
.preview-ovr { margin-left: auto; text-align: right; }
.preview-ovr b { display: block; font-family: var(--num); font-size: 35px; line-height: 0.9; color: var(--lime); }
.preview-ovr span { font-size: 8px; color: var(--muted-2); letter-spacing: 0.18em; }
.preview-radar { width: 100%; height: 205px; display: block; margin: 8px 0 2px; }
.preview-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 13px; }
.preview-attr { display: grid; grid-template-columns: 42px 1fr 22px; gap: 7px; align-items: center; font-size: 10px; color: var(--muted); }
.preview-attr i { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; display: block; }
.preview-attr i::after { content: ""; display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #38b879, var(--lime)); border-radius: inherit; }
.preview-attr b { font-family: var(--num); color: var(--text); text-align: right; font-size: 10px; }
.preview-ach { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.preview-ach .label { font-size: 8.5px; letter-spacing: 0.16em; color: var(--muted-2); font-weight: 800; }
.preview-ach .val { font-size: 12px; font-weight: 700; margin-top: 3px; }
.preview-ach .desc { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ---------- Career shell ---------- */
.shell { max-width: 1340px; margin: 0 auto; padding: 22px 26px 82px; }
.career-grid { display: grid; grid-template-columns: 342px minmax(0, 1fr); gap: 22px; align-items: start; }
.career-side { position: sticky; top: 82px; display: grid; gap: 14px; }
.career-stage { min-width: 0; display: grid; gap: 16px; }

/* Player card */
.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 247, 90, 0.09), transparent 55%),
    linear-gradient(158deg, rgba(24, 41, 33, 0.98), rgba(8, 15, 12, 0.99) 64%);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.pc-watermark {
  position: absolute;
  right: -10px;
  top: -38px;
  font-family: var(--num);
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.032);
  pointer-events: none;
}
.pc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 19px 19px 0; }
.avatar {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  color: #0a1206;
  background: linear-gradient(145deg, #e5ff9a, #a7e644 62%, #64b21c);
  box-shadow: 0 8px 22px rgba(158, 232, 62, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(201, 247, 90, 0.24); }
.pc-id { min-width: 0; }
.pc-name { font-family: var(--display); font-size: 23px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.pc-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.pc-ovr { margin-left: auto; text-align: right; flex: 0 0 auto; }
.pc-ovr b { display: block; font-family: var(--num); font-size: 43px; font-weight: 900; line-height: 0.86; color: var(--lime); letter-spacing: -0.02em; text-shadow: 0 0 30px rgba(201, 247, 90, 0.2); }
.pc-ovr span { font-size: 8px; color: var(--muted-2); letter-spacing: 0.2em; font-weight: 800; }
.pc-club { display: flex; align-items: center; gap: 9px; padding: 13px 19px 0; }
.club-badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); font-size: 13px; }
.club-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.club-meta { font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.tier-stars { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: var(--tier-color, var(--gold)); white-space: nowrap; }
.pc-radar { width: 100%; height: 205px; display: block; padding: 2px 10px 0; }
.pc-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; padding: 0 19px 4px; }
.pc-attr { display: grid; grid-template-columns: 34px 1fr 22px; gap: 7px; align-items: center; font-size: 10px; color: var(--muted); }
.pc-attr i { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.065); overflow: hidden; display: block; }
.pc-attr i::after { content: ""; display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #2f9c65, var(--lime)); border-radius: inherit; }
.pc-attr b { font-family: var(--num); color: var(--text); text-align: right; font-size: 10.5px; }
.pc-attr.key { color: #cfe3d5; }
.pc-attr.key i::after { background: linear-gradient(90deg, #6ee7a8, #e5ff9a); }
.pc-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 15px 19px 0; }
.status-cell { padding: 8px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.status-cell span { display: block; font-size: 8.5px; color: var(--muted-2); letter-spacing: 0.08em; }
.status-cell b { font-family: var(--num); font-size: 15px; line-height: 1.3; }
.status-cell .meter { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 5px; overflow: hidden; }
.status-cell .meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c, var(--lime)); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 19px 18px; margin-top: 14px; border-top: 1px solid var(--line); }
.pc-wage { font-size: 9px; color: var(--muted-2); letter-spacing: 0.06em; }
.pc-wage b { display: block; font-family: var(--num); font-size: 13px; color: var(--text); letter-spacing: 0; }
.pc-potential { font-size: 9px; color: var(--muted-2); letter-spacing: 0.06em; text-align: right; }
.pc-potential b { display: block; font-size: 12px; color: var(--gold); font-family: var(--num); letter-spacing: 0; }
.pc-potential .stars { display: block; font-size: 9px; letter-spacing: 1px; color: var(--gold); margin-top: 1px; }

/* Side panels */
.side-panel { padding: 17px 18px; }
.side-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.side-title .chip { letter-spacing: 0; text-transform: none; }
.dream-mini { margin-top: 13px; }
.dream-mini-head { display: flex; align-items: center; gap: 9px; }
.dream-mini-icon { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: rgba(246, 196, 83, 0.1); border: 1px solid rgba(246, 196, 83, 0.2); font-size: 17px; }
.dream-mini-name { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.dream-mini-sub { font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.dream-pct { margin-left: auto; font-family: var(--num); font-size: 17px; font-weight: 800; color: var(--gold); }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b98d2e, var(--gold)); box-shadow: 0 0 14px rgba(246, 196, 83, 0.3); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dream-rows { display: grid; gap: 8px; margin-top: 13px; }
.dream-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.dream-row b { font-family: var(--num); color: var(--text); font-size: 10.5px; }
.dream-row .ok { color: var(--green); }

.ach-mini { margin-top: 13px; }
.ach-mini-list { display: grid; gap: 7px; margin-top: 13px; }
.ach-mini-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 10.5px; }
.ach-mini-icon { font-size: 14px; line-height: 1; text-align: center; }
.ach-mini-name { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-mini-val { font-family: var(--num); font-size: 10px; color: var(--muted); }
.ach-mini-done { font-size: 10.5px; color: var(--gold); line-height: 1.6; }
.ach-mini-foot { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 8.5px; letter-spacing: 0.06em; color: var(--muted-2); }

.meta-rows { display: grid; gap: 8px; margin-top: 13px; }
.meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); }
.meta-row b { color: var(--text); font-family: var(--num); font-weight: 700; }

/* ---------- Stage ---------- */
.stage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px 0; }
.stage-kicker { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); font-weight: 800; text-transform: uppercase; }
.stage-kicker .phase-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.stage-title { margin: 4px 0 0; font-family: var(--display); font-size: clamp(25px, 3vw, 33px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.stage-meta { text-align: right; color: var(--muted); font-size: 11px; }
.stage-meta b { display: block; font-family: var(--num); font-size: 17px; color: var(--text); line-height: 1.2; }
.stage-body { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h3 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.panel-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.panel-title { margin: 0 0 16px; font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; }

/* Training */
.training-section { margin-top: 22px; }
.training-section:first-of-type { margin-top: 0; }
.section-label { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; margin-bottom: 10px; }
.section-label .num { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(201, 247, 90, 0.12); color: var(--lime); font-size: 9px; }
.intensity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intensity-card {
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: 0.18s ease;
}
.intensity-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.intensity-card.selected { border-color: rgba(201, 247, 90, 0.5); background: rgba(201, 247, 90, 0.065); }
.intensity-name { font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.intensity-name span { font-size: 9px; color: var(--lime); font-weight: 800; letter-spacing: 0.08em; }
.intensity-desc { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.5; min-height: 30px; }
.intensity-stats { display: flex; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.intensity-stats span { font-size: 9px; color: var(--muted-2); }
.intensity-stats b { color: var(--text); font-family: var(--num); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.focus-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
  color: var(--muted);
  transition: 0.16s ease;
  text-align: left;
}
.focus-chip:hover { border-color: var(--line-strong); color: var(--text); }
.focus-chip.selected { border-color: rgba(201, 247, 90, 0.5); background: rgba(201, 247, 90, 0.08); color: var(--text); }
.focus-chip .fc-key { margin-left: auto; font-family: var(--num); font-size: 10px; color: var(--muted-2); }
.focus-chip .fc-rec { color: var(--gold); font-size: 8px; letter-spacing: 0.06em; }
.focus-chip.selected .fc-key { color: var(--lime); }
.focus-note { margin-top: 10px; font-size: 10.5px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.training-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.training-summary { font-size: 10.5px; color: var(--muted); }
.training-summary b { color: var(--text); }

/* Event */
.event-wrap { position: relative; overflow: hidden; padding: 30px; border-radius: 24px; border: 1px solid var(--line-strong); background:
  radial-gradient(100% 120% at 100% 0%, rgba(98, 168, 255, 0.1), transparent 55%),
  linear-gradient(160deg, rgba(21, 35, 29, 0.97), rgba(9, 16, 13, 0.98));
  box-shadow: var(--shadow);
}
.event-wrap::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, transparent, var(--lime), transparent); opacity: 0.8; }
.event-top { display: flex; align-items: center; gap: 10px; }
.event-tag { padding: 4px 9px; border-radius: 6px; background: rgba(201, 247, 90, 0.1); border: 1px solid rgba(201, 247, 90, 0.2); color: var(--lime); font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; }
.event-count { margin-left: auto; font-family: var(--num); font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; }
.event-title { margin: 16px 0 0; font-family: var(--display); font-size: clamp(26px, 3.4vw, 37px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.event-text { margin: 14px 0 0; max-width: 64ch; color: #bccbbf; font-size: 15px; line-height: 1.95; }
.choices { display: grid; gap: 9px; margin-top: 25px; }
.choice-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.028);
  text-align: left;
  transition: 0.18s ease;
  overflow: hidden;
}
.choice-btn::after { content: "→"; margin-left: auto; color: var(--muted-2); font-size: 17px; transition: 0.18s ease; }
.choice-btn:hover { border-color: rgba(201, 247, 90, 0.45); background: rgba(201, 247, 90, 0.055); transform: translateX(4px); }
.choice-btn:hover::after { color: var(--lime); transform: translateX(3px); }
.choice-idx { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); font-family: var(--num); font-size: 11px; color: var(--muted); }
.choice-main { min-width: 0; }
.choice-label { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.choice-hint { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

.outcome-wrap { padding: 28px; border-radius: 24px; border: 1px solid rgba(34, 229, 143, 0.25); background:
  radial-gradient(100% 120% at 100% 0%, rgba(34, 229, 143, 0.1), transparent 55%),
  linear-gradient(160deg, rgba(20, 36, 29, 0.98), rgba(8, 16, 12, 0.99)); box-shadow: var(--shadow); animation: rise 0.4s ease; }
.outcome-label { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.outcome-title { margin: 12px 0 0; font-family: var(--display); font-size: 27px; letter-spacing: -0.02em; }
.outcome-text { margin: 12px 0 0; color: #c3d4c8; font-size: 14.5px; line-height: 1.95; max-width: 62ch; }
.deltas { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.delta { padding: 5px 9px; border-radius: 7px; background: rgba(34, 229, 143, 0.09); border: 1px solid rgba(34, 229, 143, 0.2); color: #7cf0b6; font-size: 10.5px; font-weight: 700; font-family: var(--num); }
.delta.neg { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.22); color: #ff9b9b; }

/* Ready */
.ready-card { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; border: 1px solid var(--line-strong); background:
  radial-gradient(90% 130% at 80% 0%, rgba(201, 247, 90, 0.12), transparent 55%),
  linear-gradient(150deg, rgba(23, 39, 32, 0.98), rgba(8, 15, 12, 0.99)); box-shadow: var(--shadow); }
.ready-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(201, 247, 90, 0.13); box-shadow: 0 0 0 40px rgba(201, 247, 90, 0.03), 0 0 0 82px rgba(201, 247, 90, 0.02); pointer-events: none; }
.ready-eyebrow { color: var(--lime); font-size: 10px; letter-spacing: 0.2em; font-weight: 800; }
.ready-title { margin: 10px 0 0; font-family: var(--display); font-size: clamp(30px, 4vw, 43px); letter-spacing: -0.03em; line-height: 1.06; }
.ready-text { margin: 12px 0 0; max-width: 52ch; color: #b8c9bd; font-size: 13.5px; line-height: 1.85; }
.ready-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; max-width: 560px; }
.ready-stat { padding: 11px 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ready-stat span { display: block; font-size: 8.5px; color: var(--muted-2); letter-spacing: 0.08em; }
.ready-stat b { font-family: var(--num); font-size: 19px; line-height: 1.25; }
.ready-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; position: relative; z-index: 1; }

.busy-card { padding: 60px 24px; text-align: center; }
.ball-spin { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; background:
  radial-gradient(circle at 35% 30%, #f8ffe9, #d9ff9a 35%, #9ee83e 70%, #4b8e12);
  box-shadow: 0 0 40px rgba(201, 247, 90, 0.3); position: relative; animation: spin 1.2s linear infinite; }
.ball-spin::after { content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(10, 18, 6, 0.4); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-title { font-family: var(--display); font-size: 24px; font-weight: 800; }
.busy-sub { color: var(--muted); font-size: 12px; margin-top: 5px; }

/* Report */
.report-hero { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.rating-ring {
  --pct: 70;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-c, var(--lime)) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.075) 0);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 40px rgba(201, 247, 90, 0.08);
}
.rating-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #0b1511; border: 1px solid var(--line); }
.rating-ring-inner { position: relative; text-align: center; }
.rating-ring-inner b { display: block; font-family: var(--num); font-size: 46px; line-height: 0.9; font-weight: 900; letter-spacing: -0.02em; }
.rating-ring-inner span { font-size: 8.5px; letter-spacing: 0.18em; color: var(--muted-2); font-weight: 800; }
.report-headline { min-width: 0; }
.report-headline .line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-title { margin: 8px 0 0; font-family: var(--display); font-size: clamp(27px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.08; }
.report-sub { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.stat-tile { padding: 12px 13px; border-radius: 11px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.stat-tile span { display: block; font-size: 8.5px; letter-spacing: 0.1em; color: var(--muted-2); }
.stat-tile b { font-family: var(--num); font-size: 23px; line-height: 1.25; font-weight: 800; }
.stat-tile small { font-size: 9px; color: var(--muted-2); margin-left: 2px; }
.honor-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.honor-title { font-size: 9px; letter-spacing: 0.18em; color: var(--muted-2); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.honor-list { display: flex; flex-wrap: wrap; gap: 6px; }
.honor { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: rgba(246, 196, 83, 0.08); border: 1px solid rgba(246, 196, 83, 0.2); color: #f8d88c; font-size: 10.5px; font-weight: 700; }
.honor.minor { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--muted); }
.honor.blue { background: rgba(98, 168, 255, 0.08); border-color: rgba(98, 168, 255, 0.2); color: #a5caff; }
.report-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Offers */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  transition: 0.18s ease;
  overflow: hidden;
}
.offer-card:hover { border-color: var(--line-strong); transform: translateY(-2px); background: rgba(255, 255, 255, 0.045); }
.offer-card.stay { border-color: rgba(34, 229, 143, 0.25); background: linear-gradient(150deg, rgba(34, 229, 143, 0.07), rgba(255, 255, 255, 0.02)); }
.offer-card.top { border-color: rgba(246, 196, 83, 0.3); }
.offer-top { display: flex; align-items: flex-start; gap: 10px; }
.offer-crest { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 17px; flex: 0 0 auto; }
.offer-club { min-width: 0; }
.offer-name { font-size: 14px; font-weight: 800; line-height: 1.25; }
.offer-tier { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.offer-str { margin-left: auto; text-align: right; }
.offer-str b { display: block; font-family: var(--num); font-size: 20px; line-height: 1; color: var(--text); }
.offer-str span { font-size: 8px; color: var(--muted-2); letter-spacing: 0.1em; }
.offer-mid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.offer-fact { padding: 7px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.03); }
.offer-fact span { display: block; font-size: 8px; color: var(--muted-2); letter-spacing: 0.06em; }
.offer-fact b { font-family: var(--num); font-size: 12px; }
.offer-card .btn { margin-top: 13px; width: 100%; }
.offer-note { margin-top: 10px; font-size: 9.5px; color: var(--muted-2); line-height: 1.5; }
.offer-role-核心 { color: var(--gold); }
.offer-role-主力 { color: var(--green); }
.offer-role-轮换 { color: var(--blue); }
.offer-role-替补 { color: var(--muted); }

/* History */
.history-panel { padding: 20px 22px 18px; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.history-head h3 { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.season-table { width: 100%; border-collapse: collapse; font-size: 10.5px; white-space: nowrap; }
.season-table th { text-align: right; font-weight: 700; color: var(--muted-2); font-size: 8.5px; letter-spacing: 0.1em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.season-table th:first-child, .season-table th:nth-child(2), .season-table th:nth-child(3) { text-align: left; }
.season-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.035); text-align: right; font-family: var(--num); color: #cbd9cf; }
.season-table td:first-child, .season-table td:nth-child(2), .season-table td:nth-child(3) { text-align: left; font-family: var(--font); }
.season-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.season-table tr.current { background: rgba(201, 247, 90, 0.045); }
.season-table tr.trophy td:first-child { color: var(--gold); }
.season-club { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.season-rating { color: var(--lime); font-weight: 700; }
.season-honor { color: var(--gold); font-size: 10px; }
.empty-history { padding: 26px; text-align: center; color: var(--muted-2); font-size: 11.5px; border: 1px dashed var(--line); border-radius: 12px; }
.honors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.honor-box { padding: 17px 18px; }
.honor-box h4 { margin: 0 0 9px; font-size: 9px; letter-spacing: 0.16em; color: var(--muted-2); text-transform: uppercase; }
.honor-box .honor-list { gap: 5px; }
.honor-empty { color: var(--muted-2); font-size: 10px; }

/* ---------- Retired ---------- */
.retired-wrap { max-width: 1120px; margin: 0 auto; padding: 48px 26px 90px; position: relative; }
.retired-top { text-align: center; position: relative; z-index: 1; }
.retired-top .kicker { justify-content: center; }
.retired-name { margin: 12px 0 0; font-family: var(--display); font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.retired-name span { color: var(--lime); }
.retired-sub { color: var(--muted); font-size: 12px; margin-top: 8px; }
.legacy-card { position: relative; overflow: hidden; margin-top: 28px; padding: 34px; border-radius: 26px; border: 1px solid var(--line-strong); background:
  radial-gradient(100% 100% at 50% 0%, rgba(246, 196, 83, 0.1), transparent 58%),
  linear-gradient(160deg, rgba(24, 40, 33, 0.98), rgba(8, 15, 12, 0.99)); box-shadow: var(--shadow); }
.legacy-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 75%); pointer-events: none; }
.legacy-hero { display: grid; grid-template-columns: 138px 1fr auto; gap: 24px; align-items: center; position: relative; }
.grade-badge { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--grade-c, var(--gold)) calc(var(--grade-pct, 100) * 1%), rgba(255, 255, 255, 0.06) 0); }
.grade-badge::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0b1410; border: 1px solid var(--line); }
.grade-inner { position: relative; text-align: center; }
.grade-letter { font-family: var(--display); font-size: 57px; font-weight: 900; line-height: 0.9; color: var(--grade-c, var(--gold)); }
.grade-label { font-size: 8px; letter-spacing: 0.18em; color: var(--muted-2); font-weight: 800; margin-top: 3px; }
.legacy-title { font-family: var(--display); font-size: clamp(27px, 4vw, 39px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.legacy-quote { color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 52ch; line-height: 1.7; }
.legacy-score { text-align: right; }
.legacy-score b { display: block; font-family: var(--num); font-size: clamp(34px, 5vw, 52px); line-height: 0.95; color: var(--gold); }
.legacy-score span { font-size: 8.5px; letter-spacing: 0.18em; color: var(--muted-2); font-weight: 800; }
.dream-result { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding: 15px 17px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.028); position: relative; }
.dream-result.done { border-color: rgba(34, 229, 143, 0.3); background: rgba(34, 229, 143, 0.06); }
.dream-result .dr-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: rgba(246, 196, 83, 0.1); border: 1px solid rgba(246, 196, 83, 0.2); }
.dream-result .dr-name { font-size: 13px; font-weight: 800; }
.dream-result .dr-desc { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.dream-result .dr-state { margin-left: auto; text-align: right; }
.dream-result .dr-state b { display: block; font-family: var(--num); font-size: 16px; color: var(--gold); }
.dream-result.done .dr-state b { color: var(--green); }
.dream-result .dr-state span { font-size: 8px; letter-spacing: 0.12em; color: var(--muted-2); }

.ach-summary { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding: 15px 17px; border-radius: 14px; border: 1px solid rgba(246, 196, 83, 0.24); background: linear-gradient(120deg, rgba(246, 196, 83, 0.08), rgba(255, 255, 255, 0.02)); position: relative; }
.ach-summary-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: rgba(246, 196, 83, 0.1); border: 1px solid rgba(246, 196, 83, 0.2); flex: none; }
.ach-summary-name { font-size: 13px; font-weight: 800; }
.ach-summary-desc { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.ach-summary-state { margin-left: auto; text-align: right; flex: none; }
.ach-summary-state b { display: block; font-family: var(--num); font-size: 20px; color: var(--gold); line-height: 1.1; }
.ach-summary-state span { font-size: 8px; letter-spacing: 0.12em; color: var(--muted-2); }

.ach-wall-panel { padding: 22px; margin-top: 16px; }
.ach-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ach-card { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); min-width: 0; }
.ach-card.unlocked { border-color: rgba(246, 196, 83, 0.28); background: linear-gradient(140deg, rgba(246, 196, 83, 0.08), rgba(34, 229, 143, 0.03)); }
.ach-card.locked { opacity: 0.52; }
.ach-card .ach-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 15px; }
.ach-card .ach-text { min-width: 0; }
.ach-card .ach-name { font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-card .ach-desc { font-size: 8.5px; color: var(--muted-2); line-height: 1.45; margin-top: 2px; }
.ach-card .ach-state { margin-left: auto; flex: none; font-family: var(--num); font-size: 9px; color: var(--muted); }
.ach-card.unlocked .ach-state { color: var(--gold); font-size: 13px; }
.retired-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; position: relative; }
.retired-stat { padding: 11px 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.retired-stat span { display: block; font-size: 8px; color: var(--muted-2); letter-spacing: 0.08em; }
.retired-stat b { font-family: var(--num); font-size: 21px; line-height: 1.3; }
.retired-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.retired-panel { padding: 22px; }
.retired-panel h3 { margin: 0 0 13px; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.club-list { display: grid; gap: 8px; }
.club-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.027); border: 1px solid var(--line); }
.club-row .cr-name { font-size: 11.5px; font-weight: 700; }
.club-row .cr-years { margin-left: auto; font-family: var(--num); font-size: 10px; color: var(--muted-2); }
.club-row .cr-tier { font-size: 8px; color: var(--muted-2); }
.retired-actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 7px; height: 11px; border-radius: 1px; background: var(--c); opacity: 0.8; animation: confetti-fall var(--d) linear var(--delay) infinite; transform: rotate(var(--r)); }
@keyframes confetti-fall { 0% { transform: translate3d(0, -10vh, 0) rotate(0); opacity: 0; } 8% { opacity: 0.9; } 100% { transform: translate3d(var(--sx), 110vh, 0) rotate(720deg); opacity: 0; } }

/* ---------- Modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 22px; background: rgba(3, 6, 5, 0.7); backdrop-filter: blur(10px); animation: fade 0.2s ease; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(440px, calc(100vw - 44px)); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 26px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, #122019, #0a120f); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: rise 0.25s ease; }
.modal h3 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.modal p { margin: 9px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.modal-help { width: min(512px, calc(100vw - 44px)); }
.help-steps { display: grid; gap: 4px; margin-top: 18px; }
.help-step { display: flex; gap: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
.help-step > b { font-family: var(--num); font-size: 12px; color: var(--lime); letter-spacing: 0.08em; padding-top: 2px; }
.help-step strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
.help-step span { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; }
.modal .help-note { margin-top: 14px; color: var(--lime); font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.toast-root { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 11px 15px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(13, 24, 19, 0.95); color: var(--text); font-size: 12px; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: toast-in 0.25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .intro-grid { gap: 30px; }
  .career-grid { grid-template-columns: 310px minmax(0, 1fr); }
  .pc-attrs { grid-template-columns: 1fr; gap: 6px; }
  .wizard { grid-template-columns: minmax(0, 1fr) 300px; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retired-stats { grid-template-columns: repeat(3, 1fr); }
  .ach-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .intro { padding-top: 54px; }
  .intro-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; order: -1; }
  .hero-card { width: min(310px, 78vw); }
  .orbit-1 { width: 390px; height: 390px; }
  .orbit-2 { width: 290px; height: 290px; }
  .orbit-3 { width: 480px; height: 480px; }
  .intro h1 { font-size: clamp(46px, 10vw, 72px); }
  .career-grid { grid-template-columns: 1fr; }
  .career-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .player-card { grid-row: span 2; }
  .pc-attrs { grid-template-columns: 1fr 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .preview-card { position: static; order: -1; display: grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: center; }
  .preview-radar { height: 150px; margin: 0; }
  .preview-attrs { display: none; }
  .preview-ach { grid-column: 1 / -1; margin-top: 0; padding-top: 10px; }
  .legacy-hero { grid-template-columns: 120px 1fr; }
  .legacy-score { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .grade-badge { width: 116px; height: 116px; }
  .retired-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .topbar-meta { display: none; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions .btn { padding: 0 12px; }
  .shell { padding: 14px 14px 70px; }
  .intro { padding: 40px 18px 64px; }
  .intro-grid { gap: 22px; }
  .intro h1 { font-size: clamp(42px, 12.5vw, 62px); }
  .intro-lead { font-size: 14px; }
  .intro-stats { gap: 18px; }
  .intro-stat b { font-size: 21px; }
  .hero-visual { min-height: 340px; order: 1; }
  .hero-card { width: min(290px, 80vw); padding: 18px; }
  .hc-title { font-size: 36px; }
  .float-chip { display: none; }
  .stepper { gap: 5px; }
  .step-dot { padding: 6px 8px; gap: 5px; font-size: 10px; }
  .step-dot b { width: 16px; height: 16px; font-size: 9px; }
  .step-line { width: 7px; }
  .create-wrap { padding: 26px 16px 70px; }
  .create-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wizard-main { padding: 20px; min-height: 0; }
  .nation-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .role-card { padding: 11px; }
  .role-card-top { margin-bottom: 7px; }
  .role-icon { width: 30px; height: 30px; font-size: 16px; }
  .role-name { font-size: 13.5px; }
  .role-tag { font-size: 9.5px; min-height: 0; margin-top: 5px; }
  .role-keys { display: none; }
  .dream-grid { grid-template-columns: 1fr; }
  .dream-card { min-height: 0; }
  .ach-wall { grid-template-columns: 1fr; }
  .wizard-foot { flex-direction: column-reverse; }
  .wizard-foot .right { display: grid; grid-template-columns: 1fr 1fr; }
  .wizard-foot .btn { width: 100%; }
  .preview-card { display: block; padding: 14px; }
  .preview-top { grid-column: 1; grid-row: 1; }
  .preview-radar { display: none; }
  .preview-attrs { display: none; }
  .preview-ach { margin-top: 2px; padding-top: 9px; }
  .career-grid { display: flex; flex-direction: column; }
  .career-stage { order: -1; }
  .career-side { grid-template-columns: 1fr; }
  .player-card { grid-row: auto; }
  .pc-attrs { grid-template-columns: 1fr 1fr; }
  .stage-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .stage-meta { text-align: left; }
  .panel-pad { padding: 18px; }
  .event-wrap { padding: 20px; }
  .event-text { font-size: 14px; }
  .choice-btn { padding: 13px; }
  .intensity-grid { grid-template-columns: 1fr; }
  .intensity-desc { min-height: 0; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .training-preview { flex-direction: column; align-items: stretch; }
  .training-preview .btn { width: 100%; }
  .ready-card { padding: 22px; }
  .ready-stats { grid-template-columns: repeat(2, 1fr); }
  .report-hero { grid-template-columns: 1fr; gap: 16px; }
  .rating-ring { width: 126px; height: 126px; }
  .rating-ring-inner b { font-size: 38px; }
  .report-stats { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
  .history-panel { padding: 16px; }
  .retired-wrap { padding: 32px 16px 70px; }
  .legacy-card { padding: 22px; }
  .legacy-hero { grid-template-columns: 92px 1fr; gap: 14px; }
  .grade-badge { width: 90px; height: 90px; }
  .grade-letter { font-size: 40px; }
  .retired-stats { grid-template-columns: repeat(2, 1fr); }
  .retired-actions { flex-direction: column; }
  .retired-actions .btn { width: 100%; }
  .modal { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Small additions for app markup */
.nation-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

/* ---------- League & academy ---------- */
.league-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 272px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.league-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.league-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }
.league-card.selected { border-color: rgba(201, 247, 90, .6); background: rgba(201, 247, 90, .07); }
.league-card.selected .league-name { color: var(--lime); }

.league-flag { font-size: 19px; line-height: 1; flex: 0 0 auto; }
.league-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.league-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.league-meta { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.league-count { font-size: 10px; color: var(--muted-2); flex: 0 0 auto; }

.academy-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.academy-sub { font-size: 12px; color: var(--muted); }
.academy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.academy-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.academy-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }
.academy-card.selected { border-color: rgba(201, 247, 90, .62); background: rgba(201, 247, 90, .07); }
.academy-card.selected .academy-name { color: var(--lime); }
.academy-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.academy-name { font-size: 14px; font-weight: 700; }
.academy-stars { font-size: 9px; letter-spacing: 1px; color: var(--gold); white-space: nowrap; }
.academy-meta { font-size: 10.5px; color: var(--muted-2); }
.academy-style { font-size: 11px; color: var(--muted); }

.preview-academy {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.preview-academy .label { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.preview-academy .val { margin-top: 3px; font-size: 12.5px; font-weight: 700; }
.preview-academy .desc { margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--muted); }

.choice-note {
  margin: 14px 2px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

@media (max-width: 920px) {
  .league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .league-grid { grid-template-columns: 1fr; max-height: 236px; }
  .academy-grid { grid-template-columns: 1fr; }
  .academy-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}

.club-academy { margin-top: 2px; font-size: 10.5px; color: var(--muted-2); letter-spacing: .02em; }

.retired-academy { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); letter-spacing: .04em; }

/* FM 风格属性分配：三组并排 */
.alloc-groups {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 10px;
  margin-top: 5px;
}
.alloc-group {
  min-width: 0;
  padding: 10px 11px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .022);
}
.alloc-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.alloc-group-head b { font-size: 12px; letter-spacing: .06em; }
.alloc-group-head span { font-size: 8px; color: var(--muted-2); letter-spacing: .16em; }
.alloc-group .alloc-row { grid-template-columns: 54px minmax(24px, 1fr) auto; gap: 6px; padding: 3px 0; }
.alloc-group .alloc-track { height: 6px; }
.alloc-group .alloc-val { min-width: 21px; font-size: 12px; }
.alloc-group .alloc-num { width: 18px; font-size: 10px; color: var(--lime); }
.alloc-group .alloc-btn { width: 20px; height: 20px; border-radius: 6px; font-size: 12px; }

/* 全部属性弹窗 */
.modal-attrs { width: min(760px, calc(100vw - 44px)); }
.attr-modal-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.attr-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 3px;
}
.attr-sheet-group {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.attr-sheet-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.attr-sheet-head b { font-size: 12px; }
.attr-sheet-head span { font-size: 8px; color: var(--muted-2); letter-spacing: .16em; }
.attr-sheet-row {
  display: grid;
  grid-template-columns: 58px minmax(18px, 1fr) 62px;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
}
.asr-name { font-size: 11.5px; font-weight: 700; }
.asr-name small { display: block; font-size: 7.5px; color: var(--muted-2); letter-spacing: .12em; }
.asr-bar { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.asr-bar b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #38b879, var(--lime)); }
.asr-val { font-family: var(--num); font-size: 12.5px; text-align: right; white-space: nowrap; padding-right: 4px; }
.asr-val small { font-size: 8px; color: var(--muted-2); }

/* 租借与属性入口 */
.loan-chip {
  display: inline-flex; align-items: center;
  margin-left: 5px; padding: 1px 6px;
  border: 1px solid rgba(98, 168, 255, .45);
  border-radius: 99px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--blue); background: rgba(98, 168, 255, .1);
}
.pc-all-attrs {
  display: block; width: 100%;
  margin-top: 8px; padding: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.pc-all-attrs:hover { color: var(--lime); border-color: rgba(201, 247, 90, .45); }

.loan-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(98, 168, 255, .28);
  border-radius: 10px;
  background: rgba(98, 168, 255, .06);
  color: #b9d4ff;
  font-size: 11.5px;
  line-height: 1.6;
}
.offer-card.offer-loan { border-color: rgba(98, 168, 255, .35); }
.offer-card.offer-loan .offer-name { color: #cfe2ff; }
.loan-mark {
  display: inline-block; margin-left: 4px; padding: 1px 4px;
  border-radius: 4px; background: rgba(98, 168, 255, .14);
  color: var(--blue); font-size: 8px; vertical-align: 1px;
}

@media (max-width: 1120px) {
  .alloc-groups { grid-template-columns: 1fr 1fr; }
  .alloc-group:first-child { grid-row: span 2; }
}

@media (max-width: 680px) {
  .alloc-groups { grid-template-columns: 1fr; }
  .alloc-group:first-child { grid-row: auto; }
  .attr-sheet { grid-template-columns: 1fr; max-height: none; gap: 8px; }
  .attr-sheet-group { padding: 8px 9px; }
  .asr-name small { display: none; }
  .modal-attrs { width: calc(100vw - 32px); max-height: calc(100dvh - 24px); }
}
