/* ============================================================
   34-0-0 Bundesliga — app.css（仅游戏页：index.html / en 镜像）
   内容页不加载本文件（性能：内容页只载 base.css）。
   前置：base.css（tokens/reset/header/footer 等）。
   ============================================================ */

/* ---------- Screens / Hero ---------- */
.screen { padding: 22px 0 40px; min-height: 60vh; }
.home-h1-static { text-align: center; }
.hero { text-align: center; padding: clamp(24px, 6vh, 64px) 0 20px; }
.hero .score-line {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(44px, 12vw, 96px); line-height: 1;
  color: var(--text-1); letter-spacing: -0.03em;
}
.hero .score-line b { color: var(--brand); }
.hero .score-line i { color: var(--gold); font-style: normal; }
.hero p.sub { max-width: 560px; margin: 14px auto 26px; color: var(--text-2); }
.hero .btn-row { max-width: 460px; margin: 0 auto; flex-direction: column; }
@media (min-width: 640px) { .hero .btn-row { flex-direction: row; } }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- Setup: Formationen ---------- */
.setup-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .setup-grid { grid-template-columns: 1fr 1fr; } }
.formation-pick { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .formation-pick { grid-template-columns: repeat(3, 1fr); } }
.formation-card {
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1);
  padding: 14px 8px; text-align: center; min-height: 44px;
  font-family: var(--font-mono); font-weight: 700; font-size: 18px;
  transition: all .2s var(--ease);
}
.formation-card small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.formation-card[aria-pressed="true"] { border-color: var(--brand); background: rgba(230, 46, 46, .12); color: var(--brand-hot); }
.option-card {
  display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg-1); padding: 14px; margin-bottom: 10px;
  transition: all .2s var(--ease);
}
.option-card b { display: block; font-family: var(--font-display); text-transform: uppercase; }
.option-card span { font-size: 13px; color: var(--text-2); }
.option-card[aria-pressed="true"] { border-color: var(--brand); background: rgba(230, 46, 46, .1); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.switch { position: relative; width: 52px; height: 30px; flex: none; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); transition: background .2s; }
.switch::before { content: ''; position: absolute; inset: -8px; } /* 触控热区 ≥44px（UI规范 §7） */
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: all .2s var(--ease); }
.switch[aria-pressed="true"] { background: var(--brand); }
.switch[aria-pressed="true"]::after { left: 25px; background: #fff; }

/* ---------- Draft: Slotmachine ---------- */
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.draft-progress { display: flex; gap: 5px; }
.draft-progress i {
  width: 22px; height: 8px; border-radius: 2px; background: var(--bg-2);
  transform: skewX(var(--cut));
}
.draft-progress i.done { background: var(--brand); }
.spin-window {
  overflow: hidden; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-1); height: 64px; position: relative; margin-bottom: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.spin-strip { display: flex; align-items: center; height: 100%; will-change: transform; }
.spin-item {
  flex: none; padding: 0 26px; font-family: var(--font-display); font-weight: 800;
  font-size: 20px; text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.spin-item.hit { color: var(--gold); }
.spin-item.legend { color: var(--gold); text-shadow: 0 0 14px var(--gold-glow); }
.pool-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 640px) { .pool-grid { grid-template-columns: 1fr 1fr; } }
.player-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; text-align: left; min-height: 64px;
  transition: all .2s var(--ease); position: relative;
}
.player-card:not(:disabled):hover { border-color: var(--brand); transform: translateY(-1px); }
.player-card:disabled { opacity: .38; cursor: not-allowed; }
.player-card .ovr {
  font-family: var(--font-mono); font-weight: 700; font-size: 40px; line-height: 1;
  min-width: 58px; text-align: center; color: var(--text-1);
}
.player-card .who b { display: block; font-size: 16px; }
.player-card .who span { font-size: 12.5px; color: var(--text-2); display: block; }
.player-card .who .tag { color: var(--gold); font-size: 12px; font-style: italic; }
.player-card .slot-hint { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-align: right; }
.player-card.legend { border-color: var(--gold); box-shadow: 0 0 12px rgba(245, 192, 68, .18); }
.player-card.legend .ovr { color: var(--gold); }
.player-card .pos-chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; color: var(--text-2);
}

/* ---------- Pitch (Aufstellung) ---------- */
.pitch {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  aspect-ratio: 68 / 92; border-radius: 8px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, var(--pitch) 0 9%, #175c33 9% 18%);
  border: 1px solid var(--pitch-line);
}
.pitch::before {
  content: ''; position: absolute; inset: 4%;
  border: 2px solid rgba(242, 245, 248, .25); border-radius: 2px;
}
.pitch::after {
  content: ''; position: absolute; left: 28%; right: 28%; top: 4%; height: 12%;
  border: 2px solid rgba(242, 245, 248, .25); border-top: 0;
}
.pitch-circle {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1;
  border: 2px solid rgba(242, 245, 248, .25); border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pdot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 17%; text-align: center; z-index: 2;
}
.pdot i {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2);
  border: 2px solid var(--text-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-style: normal; font-weight: 700; font-size: 13px;
}
.pdot.legend i { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.pdot.offpos i { border-color: var(--brand); animation: pulse-red 1.2s infinite; }
.pdot span {
  font-size: 10.5px; font-weight: 600; color: var(--text-1); line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdot .eff { font-family: var(--font-mono); font-size: 10px; color: var(--gold); }
@keyframes pulse-red { 50% { border-color: var(--brand-hot); box-shadow: 0 0 8px rgba(230, 46, 46, .5); } }

.prob-box {
  text-align: center; border: 1px dashed var(--gold); border-radius: 8px;
  padding: 14px; margin: 16px 0; background: rgba(245, 192, 68, .06);
}
.prob-box .big { font-family: var(--font-mono); font-weight: 700; font-size: 34px; color: var(--gold); }
.prob-box .lbl { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Scoreboard (Season-Kopf) ---------- */
.scoreboard {
  position: sticky; top: 56px; z-index: 40;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.scoreboard .md { font-family: var(--font-display); font-weight: 800; font-size: 17px; text-transform: uppercase; }
.scoreboard .rec { font-family: var(--font-mono); font-weight: 700; font-size: 17px; }
.scoreboard .pts { color: var(--text-2); font-size: 13px; }
.tracker {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.tracker .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); }
.tracker.alive { color: var(--gold); }
.tracker.alive .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); animation: breathe 1.6s infinite var(--ease); }
.tracker.dead { color: var(--text-3); }
@keyframes breathe { 50% { transform: scale(1.25); box-shadow: 0 0 18px var(--gold-glow); } }

/* ---------- Skip-Leiste (Rest der Saison überspringen) ---------- */
.skip-bar { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.btn-skip { min-height: 36px; padding: 4px 12px; font-size: 12px; }

/* ---------- Scout-Karte & Stil-Wahl ---------- */
.scout-card { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); padding: 18px; margin-bottom: 14px; }
.scout-opp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.scout-opp .name { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: -0.02em; }
.scout-opp .season-tag { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.tier-chip { font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; border: 1px solid var(--line); color: var(--text-2); }
.tier-chip.title { color: var(--gold); border-color: var(--gold); }
.tier-chip.europe { color: var(--possession); border-color: var(--possession); }
.tier-chip.mid { color: var(--text-2); }
.tier-chip.relegation { color: var(--text-3); }
.style-hint { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; color: var(--text-2); }
.style-pick { display: grid; gap: 8px; }
.style-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 10px 16px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase;
  transition: all .2s var(--ease); text-align: left;
}
.style-btn small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--text-2); text-transform: none; margin-left: auto; }
.style-btn[aria-pressed="true"].press { border-color: var(--press); background: rgba(255, 90, 60, .14); }
.style-btn[aria-pressed="true"].possession { border-color: var(--possession); background: rgba(59, 130, 246, .14); }
.style-btn[aria-pressed="true"].counter { border-color: var(--counter); background: rgba(52, 211, 153, .14); }
.fatigue-note { color: var(--brand-hot); font-size: 13px; font-weight: 600; margin: 6px 0; }

/* Tabellen-Zonen (Abschlusstabelle im Verdict) */
.ltable tr.z-meister td:first-child { border-left-color: var(--gold); }
.ltable tr.z-ucl td:first-child { border-left-color: var(--possession); }
.ltable tr.z-el td:first-child { border-left-color: var(--counter); }
.ltable tr.z-rel td:first-child { border-left-color: var(--brand); }
.zone-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 6px 4px; font-size: 11px; color: var(--text-3); }
.zone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zkey { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.zkey.z-meister { background: var(--gold); }
.zkey.z-ucl { background: var(--possession); }
.zkey.z-el { background: var(--counter); }
.zkey.z-rel { background: var(--brand); }

/* ---------- Matchday (Schlüsselspiel) ---------- */
.matchday { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); overflow: hidden; }
.matchday-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--bg-2); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-2);
}
.matchday-head .live-dot { color: var(--brand); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.big-score {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 10px 8px; font-family: var(--font-mono); font-weight: 700;
}
.big-score .team { font-family: var(--font-display); font-weight: 800; font-size: 15px; text-transform: uppercase; width: 32%; text-align: center; color: var(--text-2); }
.big-score .sc { font-size: 52px; line-height: 1; min-width: 120px; text-align: center; }
.big-score .sc .min { display: block; font-size: 13px; color: var(--brand-hot); margin-top: 2px; }
.style-aura { display: flex; height: 4px; }
.style-aura i { flex: 1; }
.style-aura .h { background: var(--possession); }
.event-feed { max-height: 300px; overflow-y: auto; padding: 8px 12px 12px; display: flex; flex-direction: column-reverse; }
.event {
  padding: 8px 10px; border-radius: 6px; font-size: 14px; margin-top: 6px;
  background: var(--bg-2); opacity: .6; transition: opacity .3s;
  border-left: 3px solid var(--line);
}
.event.latest { opacity: 1; }
.event.goal { border-left-color: var(--brand); }
.event.goal.flash { animation: goalflash .3s; }
.event.gold { border-left-color: var(--gold); }
@keyframes goalflash { 0% { background: rgba(230, 46, 46, .5); } 100% { background: var(--bg-2); } }

/* ---------- Sheet / Modal (60'-Eingriff) ---------- */
.sheet-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 10, .72);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein .2s var(--ease);
}
@media (min-width: 769px) { .sheet-back { align-items: center; } }
.sheet {
  width: 100%; max-width: 520px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: 12px 12px 0 0;
  padding: 20px; animation: slideup .25s var(--ease);
  max-height: 88vh; overflow-y: auto;
}
@media (min-width: 769px) { .sheet { border-radius: 12px; } }
@keyframes slideup { from { transform: translateY(24px); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }
.iv-btn { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; min-height: 60px; padding: 12px 16px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 8px; transition: all .2s var(--ease); }
.iv-btn:hover { border-color: var(--brand); }
.iv-btn b { font-family: var(--font-display); text-transform: uppercase; font-size: 16px; }
.iv-btn span { font-size: 12.5px; color: var(--text-2); }

/* ---------- Verdict ---------- */
.verdict-hero { text-align: center; padding: 26px 0 8px; position: relative; }
.verdict-hero::before {
  content: ''; position: absolute; left: 50%; top: -30px; width: min(640px, 92vw); height: 340px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--vd-accent, transparent), transparent 72%);
  opacity: .15;
}
.verdict-hero.vd-perfect { --vd-accent: var(--gold); }
.verdict-hero.vd-unbeaten { --vd-accent: #C8D2DC; }
.verdict-hero.vd-champion { --vd-accent: var(--brand); }
.verdict-hero.vd-ucl, .verdict-hero.vd-europe { --vd-accent: var(--possession); }
.verdict-hero.vd-relegation { --vd-accent: #F59E0B; }
.verdict-hero > * { position: relative; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.meta-pill {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 14px; font-size: 12.5px; color: var(--text-2); font-weight: 600;
}
.meta-pill.gold { color: var(--gold); border-color: rgba(245, 192, 68, .4); }
.verdict-record .rw { color: var(--win); }
.verdict-record .rd { color: var(--text-2); }
.verdict-record .rl { color: var(--brand); }
.verdict-record i { font-style: normal; color: var(--text-3); padding: 0 .08em; }
.stamp {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 30px; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 5vw, 34px);
  text-transform: uppercase; letter-spacing: -0.02em;
  background: var(--bg-2); border: 2px solid var(--text-3);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  animation: stampin .25s var(--ease);
}
@keyframes stampin { 0% { transform: scale(1.6) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.stamp.perfect { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 30px var(--gold-glow); }
.stamp.unbeaten { color: #E8EDF2; border-color: #C8D2DC; }
.stamp.champion { color: var(--brand-hot); border-color: var(--brand); }
.stamp.ucl, .stamp.europe { color: var(--possession); border-color: var(--possession); }
.stamp.mid { color: var(--text-2); }
.stamp.relegation { color: #F59E0B; border-color: #F59E0B; }
.stamp.relegated { color: var(--text-3); filter: grayscale(1); }
.verdict-record { font-family: var(--font-mono); font-weight: 700; font-size: clamp(34px, 8vw, 56px); letter-spacing: -0.02em; }
.coach-bars { display: grid; gap: 8px; margin: 12px 0; }
.coach-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.coach-bar > span:first-child { white-space: nowrap; }
.coach-bar b { white-space: nowrap; font-size: 12px; }
.coach-bar .bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.coach-bar .bar i { display: block; height: 100%; background: var(--gold); }
.hl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hl-list li { background: var(--bg-2); border-left: 3px solid var(--brand); padding: 10px 14px; border-radius: 6px; font-size: 14px; }

/* ---------- Verdict: Bento-Grid / Saisonverlauf / Statistiken / Torschützen ---------- */
.verdict-grid { display: grid; gap: 14px; max-width: 560px; margin: 14px auto; align-items: start; }
@media (min-width: 960px) {
  .verdict-grid { max-width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .verdict-grid .vd-table { grid-column: 2; grid-row: 1 / span 5; }
}
.vd-anim { animation: vd-in .28s var(--ease) backwards; }
.vd-anim:nth-child(2) { animation-delay: .05s; }
.vd-anim:nth-child(3) { animation-delay: .1s; }
.vd-anim:nth-child(4) { animation-delay: .15s; }
.vd-anim:nth-child(5) { animation-delay: .2s; }
.vd-anim:nth-child(6) { animation-delay: .25s; }
@keyframes vd-in { from { opacity: 0; transform: translateY(8px); } }
.form-strip { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.form-strip i {
  width: 24px; height: 24px; border-radius: 4px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-style: normal; font-weight: 700; font-size: 10px; color: rgba(10, 14, 20, .72);
}
.form-strip i.w { background: var(--win); }
.form-strip i.d { background: var(--text-3); }
.form-strip i.l { background: var(--brand); }
.form-strip .gap17 { flex: none; width: 2px; height: 18px; background: var(--line); margin: 0 5px; border-radius: 1px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-cell { background: var(--bg-2); border-radius: 8px; padding: 10px 8px; text-align: center; }
.stat-cell b { display: block; font-size: 18px; margin-bottom: 2px; }
.stat-cell.win b { color: var(--win); }
.stat-cell.loss b { color: var(--brand-hot); }
.stat-cell span { display: block; font-size: 11px; color: var(--text-3); line-height: 1.3; }
.scorer-row { display: grid; grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.scorer-row:last-child { border-bottom: 0; }
.scorer-rank {
  width: 22px; height: 22px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-2);
}
.scorer-rank.first { border-color: var(--gold); color: var(--gold); }
.scorer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer-row .legend-name { color: var(--gold); font-weight: 700; }
.scorer-bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.scorer-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); border-radius: 3px; }
.scorer-nums { white-space: nowrap; text-align: right; }
.scorer-nums b { color: var(--gold); font-size: 16px; }
.ltable td.pos { color: var(--win); }
.ltable td.neg { color: var(--brand-hot); }
.ltable td.pts { font-weight: 700; color: var(--text-1); }
@media (prefers-reduced-motion: reduce) {
  .vd-anim { animation-name: vd-in-rm; }
}
@keyframes vd-in-rm { from { opacity: 0; } }
.share-preview { text-align: center; margin: 18px 0; }
.share-preview img, .share-preview canvas { max-width: min(360px, 88vw); border-radius: 10px; border: 1px solid var(--line); }
.ach-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.ach-chip { background: rgba(245, 192, 68, .1); border: 1px solid var(--gold); color: var(--gold); border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* ---------- Confetti (圣杯时刻) ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti-layer i { position: absolute; top: -12px; width: 8px; height: 14px; animation: confetti 1.5s ease-in forwards; }
@keyframes confetti { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }
