/* =========================================================
   Karrieremodus – Design-System
   Flutlicht-Navy als Grund, Rasengrün = Fortschritt, Gold = Belohnung.
   Kartenstufen (Bronze/Silber/Gold/Elite) ziehen sich durch alle Stärke-Anzeigen.
   ========================================================= */
:root {
  --bg: #0d1626;
  --bg-2: #101c30;
  --card: #15223a;
  --card-2: #1c2c49;
  --card-3: #23365a;
  --line: #273b5c;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #eef3fb;
  --text-dim: #93a3bd;
  --text-faint: #647593;

  --turf: #34e3a0;
  --turf-deep: #14b97a;
  --gold: #ffcf4d;
  --gold-deep: #c9921c;
  --red: #ff6b7a;
  --yellow: #ffc94d;
  --cl: #6ea8ff;
  --elite: #c59bff;

  /* Alt-Namen, die ui.js inline nutzt */
  --green: var(--turf);
  --green-dark: var(--turf-deep);
  --blue: var(--cl);
  --border: var(--line);
  --bg-card: var(--card);
  --bg-card-2: var(--card-2);
  --muted: var(--text-dim);

  --tier-bronze: linear-gradient(150deg, #f6cfa4 0%, #c58550 45%, #7a4a22 100%);
  --tier-silver: linear-gradient(150deg, #ffffff 0%, #c9d2dd 45%, #7f8c9b 100%);
  --tier-gold: linear-gradient(150deg, #fff4bf 0%, #f6c84e 45%, #a8741a 100%);
  --tier-elite: linear-gradient(150deg, #f6e4ff 0%, #a97dff 42%, #3f22a0 100%);

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 10px 30px rgba(3, 8, 20, .35);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body {
  background:
    radial-gradient(1200px 500px at 70% -200px, rgba(110, 168, 255, .12), transparent 70%),
    radial-gradient(900px 400px at 10% -150px, rgba(52, 227, 160, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
.hidden { display: none !important; }
button, input, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--turf); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
h3 { font-size: 20px; margin: 0 0 10px; }
h4 { font-size: 16px; margin: 14px 0 6px; color: var(--text-dim); }
strong { font-weight: 700; }
.muted { color: var(--text-dim); font-size: 13px; }
.num, .ovr-num, .match-score, .value { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-danger {
  border: none; border-radius: var(--r-md); padding: 11px 18px; font-size: 15px;
  cursor: pointer; font-weight: 700; margin-top: 6px; line-height: 1.2;
  transition: transform .12s var(--ease-pop), filter .15s, background .15s, box-shadow .15s;
  touch-action: manipulation;
}
.btn-primary {
  background: linear-gradient(180deg, #4cf0b0, var(--turf-deep));
  color: #04261a; width: 100%; margin-top: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 18px rgba(20, 185, 122, .28);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active, .btn-secondary:active, .btn-danger:active { transform: scale(.96); }
.btn-secondary { background: var(--card-2); color: var(--text); width: 100%; box-shadow: 0 0 0 1px var(--line) inset; }
.btn-secondary:hover { background: var(--card-3); }
.btn-danger { background: rgba(255, 107, 122, .14); color: var(--red); box-shadow: 0 0 0 1px rgba(255, 107, 122, .4) inset; }
.btn-danger:hover { background: rgba(255, 107, 122, .22); }
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled { opacity: .38; cursor: not-allowed; transform: none; filter: grayscale(.4); box-shadow: none; }
.btn-big { font-family: var(--f-display); font-size: 21px; letter-spacing: .02em; padding: 14px 22px; }
.btn-gold { background: linear-gradient(180deg, #ffe08a, var(--gold-deep)); color: #2e1d00; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 6px 18px rgba(201, 146, 28, .3); }
.link-btn { background: none; border: none; color: var(--turf); cursor: pointer; font-size: 14px; padding: 4px 0; font-weight: 700; }
.link-btn:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }

input[type="text"], select {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); font-size: 15px; padding: 10px 12px;
}
input[type="text"]:focus, select:focus { border-color: var(--turf); outline: none; box-shadow: 0 0 0 3px rgba(52, 227, 160, .18); }
input[type="checkbox"] { accent-color: var(--turf); width: 18px; height: 18px; }
input[type="range"] { accent-color: var(--turf); }

/* ---------- Setup ---------- */
.screen { min-height: 100vh; }
#setup-screen { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.setup-card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 28px 22px; width: min(440px, 100%); box-shadow: var(--shadow);
}
.setup-hero { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: -4px 0 10px; height: 120px; }
.setup-crest { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45)); animation: float-y 5s ease-in-out infinite; }
.setup-kit { margin-left: -18px; transform: rotate(8deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.setup-title { margin: 0; font-size: 40px; text-align: center; font-style: italic; font-weight: 800; }
.setup-card .subtitle { color: var(--text-dim); margin: 6px 0 22px; font-size: 15px; text-align: center; }
.setup-card label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 14px; font-weight: 600; }
.setup-card input { display: block; width: 100%; margin-top: 6px; }
.setup-hint { text-align: center; font-size: 12px; color: var(--text-faint); margin: 12px 0 0; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- App-Rahmen: Desktop = Seitenleiste ---------- */
#app:not(.hidden) { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
#app-header {
  background: rgba(13, 22, 38, .7); backdrop-filter: blur(10px);
  border-right: 1px solid var(--line-soft);
  padding: 16px 12px; position: sticky; top: 0; z-index: 20;
  height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.header-main { display: flex; flex-direction: column; gap: 14px; }
.club-title {
  display: flex; align-items: center; gap: 10px; background: none; border: none; color: inherit;
  text-align: left; padding: 6px; margin: -6px; border-radius: var(--r-md); cursor: pointer;
}
.club-title:hover { background: var(--line-soft); }
.hdr-crest { display: inline-flex; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.club-title-text { display: flex; flex-direction: column; min-width: 0; }
#hdr-club-name { font-family: var(--f-display); font-size: 20px; font-weight: 700; line-height: 1.05; }
#hdr-season { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); margin-top: 3px; }
#hdr-season .comp-logo { margin: 0; }
.header-stats { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-dim); align-items: center; }
.hdr-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.hdr-pill strong { color: var(--text); }
.hdr-budget { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; width: 100%; justify-content: center; font-size: 15px; padding: 6px 10px; }
.hdr-budget.flash-up { animation: flash-up .9s ease; }
.hdr-budget.flash-down { animation: flash-down .9s ease; }
@keyframes flash-up { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 77, .8); transform: scale(1.06); } 100% { box-shadow: 0 0 0 10px rgba(255, 207, 77, 0); transform: scale(1); } }
@keyframes flash-down { 0% { color: var(--red); transform: scale(.96); } 100% { color: var(--gold); transform: scale(1); } }
.coin-dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-deep)); box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex-shrink: 0; }
.hdr-window { font-size: 12px; white-space: normal; border-radius: 10px; }
.hdr-window.open::before, .hdr-window.closed::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--turf); box-shadow: 0 0 0 3px rgba(52, 227, 160, .2); }
.hdr-window.closed::before { background: var(--text-faint); box-shadow: none; }
.sound-toggle {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 999px; width: 32px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dim); padding: 0;
}
.sound-toggle:hover { color: var(--text); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sound-toggle .ico { width: 17px; height: 17px; }

#tabs { display: flex; flex-direction: column; gap: 1px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.nav-group { font-size: 12px; color: var(--text-faint); font-weight: 600; padding: 12px 12px 4px; }
.nav-btn {
  background: none; border: none; color: var(--text-dim); text-align: left; border-radius: 10px;
  padding: 8px 12px; font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 11px;
  white-space: nowrap; font-weight: 500; position: relative; transition: background .15s, color .15s;
}
.nav-btn:hover { background: var(--line-soft); color: var(--text); }
.nav-btn.active { color: var(--text); background: linear-gradient(90deg, rgba(52, 227, 160, .16), rgba(52, 227, 160, .03)); font-weight: 700; }
.nav-btn.active .ico { color: var(--turf); }
.badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 10px; padding: 0 6px; margin-left: auto; line-height: 18px; animation: badge-pulse 2s ease-in-out infinite; }
@keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 122, .6); } 50% { box-shadow: 0 0 0 5px rgba(255, 107, 122, 0); } }
.nav-count { font-size: 12px; color: var(--text-faint); margin-left: auto; }
#bottom-nav { display: none; }

/* Unter-Tabs innerhalb eines Bereichs */
.subnav { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav-btn { background: none; border: none; color: var(--text-dim); font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.subnav-btn:hover { color: var(--text); }
.subnav-btn.active { background: var(--card-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 8px rgba(0,0,0,.25); }
.subnav-btn .nav-count { margin-left: 0; }
.dot-badge.inline { position: static; display: inline-block; width: 8px; height: 8px; box-shadow: none; }
body:not([data-section="home"]) .panel > h2:first-child { display: none; }

#content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 28px 70px; }
.panel > h2:first-child, .panel h2 { margin: 4px 0 16px; font-size: 34px; font-weight: 800; font-style: italic; }
.panel.tab-enter { animation: tab-in .22s ease-out; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Mobile: Kopfzeile + Tab-Leiste unten ---------- */
@media (max-width: 900px) {
  #app:not(.hidden) { display: block; }
  #app-header {
    height: auto; border-right: none; border-bottom: 1px solid var(--line-soft);
    padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(13, 22, 38, .88);
  }
  .header-main { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  #hdr-club-name { font-size: 18px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-stats { flex-wrap: nowrap; }
  .hdr-md, .hdr-rank, .hdr-window { display: none; }
  .hdr-budget { width: auto; font-size: 14px; padding: 5px 10px; }
  #tabs { display: none; }
  #content { padding: 16px 14px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
  .panel > h2:first-child, .panel h2 { font-size: 28px; margin-bottom: 12px; }

  #bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(16, 28, 48, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft);
  }
  #bottom-nav .nav-btn {
    flex-direction: column; justify-content: center; gap: 3px; font-size: 11px; padding: 6px 2px; border-radius: 0;
    background: none; border: none; color: var(--text-dim); cursor: pointer; display: flex; align-items: center; font-weight: 600; position: relative;
  }
  #bottom-nav .nav-btn .ico { width: 24px; height: 24px; }
  .subnav { width: auto; margin: 0 0 14px; position: sticky; top: calc(var(--hdr-h, 60px) + 8px); z-index: 6; background: rgba(21, 34, 58, .94); backdrop-filter: blur(8px); }
  .subnav-btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 14px; }
  .desk-only { display: none !important; }
  #bottom-nav .nav-btn.active { background: none; color: var(--text); }
  #bottom-nav .nav-btn.active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--turf); }
  .dot-badge { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg-2); }

}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ---------- Karten & Grundbausteine ---------- */
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 14px;
}
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 12px 14px; }
.stat-card .label { font-size: 13px; color: var(--text-dim); margin-bottom: 2px; }
.stat-card .value { font-family: var(--f-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.value-logo { display: flex; align-items: center; gap: 8px; }

.news-list { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow-y: auto; }
.news-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.news-list li:last-child { border-bottom: none; }
.news-meta { color: var(--text-faint); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Stärke-Abzeichen & Spielerkarten (das Herzstück) ---------- */
.ovr-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 6px;
  border-radius: 8px; font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1;
  color: #2a1a06; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 2px 6px rgba(0, 0, 0, .3);
  font-variant-numeric: tabular-nums; position: relative; overflow: hidden;
}
.ovr-badge.tier-bronze { background: var(--tier-bronze); color: #2e1606; }
.ovr-badge.tier-silver { background: var(--tier-silver); color: #1b2531; }
.ovr-badge.tier-gold { background: var(--tier-gold); color: #3a2603; }
.ovr-badge.tier-elite { background: var(--tier-elite); color: #fff; text-shadow: 0 1px 2px rgba(40, 10, 90, .6); }
.ovr-badge.tier-elite::after, .pcard.tier-elite .pcard-shine { animation: holo 3.2s linear infinite; }
.ovr-badge.tier-elite::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); background-size: 250% 100%; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ovr-badge.sm { min-width: 28px; height: 22px; font-size: 15px; border-radius: 6px; }
.ovr-badge.lg { min-width: 48px; height: 38px; font-size: 26px; border-radius: 10px; }

.pcard {
  position: relative; width: 150px; border-radius: 16px; padding: 10px 10px 12px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; color: #20170a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 12px 26px rgba(0, 0, 0, .35);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  padding-bottom: 26px; transition: background .4s;
}
.pcard.tier-bronze { background: var(--tier-bronze); color: #2e1606; }
.pcard.tier-silver { background: var(--tier-silver); color: #1b2531; }
.pcard.tier-gold { background: var(--tier-gold); color: #3a2603; }
.pcard.tier-elite { background: var(--tier-elite); color: #fff; }
.pcard-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 48%, transparent 60%); background-size: 260% 100%; background-position: 150% 0; }
.pcard.shine .pcard-shine { animation: shine-once .9s ease-out; }
@keyframes shine-once { from { background-position: 150% 0; } to { background-position: -110% 0; } }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.pcard-ovr { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.pcard-ovr-num { font-family: var(--f-display); font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: .95; }
.pcard-pos { font-family: var(--f-display); font-size: 15px; font-weight: 700; opacity: .8; margin-top: 1px; position: relative; z-index: 1; }
.pcard-face { position: relative; z-index: 0; }
.pcard-flag { font-size: 18px; }
.pcard-face { margin-top: -14px; }
.pcard-face .avatar { background: rgba(255, 255, 255, .25); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.pcard-name { font-family: var(--f-display); font-size: 20px; font-weight: 800; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-meta { font-size: 12px; font-weight: 600; opacity: .8; }
.pcard-note { font-size: 12px; font-weight: 700; margin-top: 4px; }

/* ---------- Kader ---------- */
.squad-controls { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 14px; }
.squad-controls .field, .squad-summary .field { font-size: 13px; color: var(--text-dim); }
.squad-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.squad-summary .field strong { color: var(--text); }
.table-scroll { overflow-x: auto; }
.player-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.player-table th { text-align: left; color: var(--text-faint); font-size: 12px; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.player-table td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.player-table tbody tr { transition: background .12s; }
.player-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.player-name { font-weight: 700; }
.player-table .player-name, .player-table .trait-tag { white-space: nowrap; }
.pos-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--card-3); color: var(--text); font-family: var(--f-display); letter-spacing: .03em; }
.pos-tags { display: inline-flex; gap: 3px; align-items: center; }
.pos-tag.pos-alt { opacity: .55; font-size: 11px; background: var(--card-2); }
.pos-alt-btn { border: none; cursor: pointer; line-height: inherit; }
.pos-alt-btn:hover { background: var(--turf); color: #04261a; opacity: 1; }
.trait-tag { font-size: 12px; color: var(--text-dim); }
.trait-info { opacity: .55; font-size: 11px; cursor: help; }
.injury-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255, 107, 122, .16); color: var(--red); white-space: nowrap; }
.role-tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.role-starter { background: rgba(52, 227, 160, .15); color: var(--turf); }
.role-bench { background: rgba(255, 207, 77, .14); color: var(--gold); }
.role-reserve { background: rgba(255, 255, 255, .06); color: var(--text-dim); }
.player-table th.sortable { cursor: pointer; user-select: none; }
.player-table th.sortable:hover { color: var(--text); }
.player-table th.sorted { color: var(--turf); }
.stat-cell { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 10px; color: var(--text-faint); margin-left: 2px; }
.btn-sell { width: auto; padding: 5px 10px; font-size: 13px; line-height: 1.2; display: inline-flex; flex-direction: column; align-items: center; margin: 0; }
.btn-sub { font-size: 11px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.squad-sticky { position: sticky; top: var(--hdr-h, 0px); z-index: 4; background: var(--bg); margin: 0 -6px 12px; padding: 10px 6px; }
.player-table.sticky-head thead th { position: sticky; top: calc(var(--hdr-h, 0px) + var(--squad-bar-h, 48px)); z-index: 3; background: var(--bg); }
.player-table.sticky-head th, .player-table.sticky-head td { padding-left: 6px; padding-right: 6px; }
.player-table.sticky-head th[data-sort="apps"], .player-table.sticky-head th[data-sort="goals"],
.player-table.sticky-head th[data-sort="assists"], .player-table.sticky-head th[data-sort="rating"] { text-align: center; }
.player-table.sticky-head .trait-tag { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.player-table.sticky-head .ovr-wrap { min-width: 0; gap: 6px; }
.player-table.sticky-head .ovr-bar-bg { width: 40px; }

/* Stärke-/Potenzialbalken */
.ovr-wrap { display: flex; align-items: center; gap: 8px; min-width: 104px; }
.ovr-bar-bg { background: rgba(255, 255, 255, .07); width: 64px; height: 7px; border-radius: 4px; overflow: hidden; position: relative; }
.ovr-bar-fill { height: 100%; border-radius: 4px; }
.ovr-num { font-family: var(--f-display); font-weight: 700; font-size: 17px; min-width: 24px; text-align: right; }
.pot-num { color: var(--gold); }
.pot-bar-bg { position: relative; }
.pot-bar-fade { position: absolute; top: 0; height: 100%; background: var(--gold); opacity: .3; border-radius: 4px; }

/* Kader: Zusammenfassung, Filter, kompakte Liste (Handy) bzw. Tabelle (Desktop) */
.sq-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; max-width: 640px; }
.sq-tile { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.sq-tile > span { font-size: 12px; color: var(--text-dim); }
.sq-tile strong { font-family: var(--f-display); font-size: 24px; line-height: 26px; }
.sq-tile strong small { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.sq-tile.warn strong { color: var(--red); }
.sq-controls { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.chip-row { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .tactic-pill { padding: 5px 12px; font-size: 13px; }
.sort-pill { background: none; border: none; color: var(--text-dim); font-weight: 600; font-size: 13px; padding: 4px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.sort-pill.active { color: var(--turf); background: rgba(52, 227, 160, .1); }
.sq-sorts .muted { white-space: nowrap; }
.sq-list { display: none; }
.sq-group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 6px; font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.sq-group-head .muted { font-family: var(--f-body); font-weight: 500; font-size: 12px; }
.sq-group { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.sq-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px auto; align-items: center; gap: 10px; width: 100%;
  padding: 7px 12px 7px 10px; background: none; border: none; border-bottom: 1px solid var(--line-soft); color: inherit; font: inherit; text-align: left; cursor: pointer;
  border-left: 3px solid transparent;
}
.sq-row:last-child { border-bottom: none; }
.sq-row:active { background: rgba(255, 255, 255, .04); }
.sq-row.role-starter { border-left-color: var(--turf); }
.sq-row.role-bench { border-left-color: rgba(255, 207, 77, .7); }
.sq-row.role-reserve .sq-av { opacity: .7; }
.sq-main { display: flex; flex-direction: column; min-width: 0; }
.sq-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-name .injury-badge { font-size: 11px; padding: 0 5px; }
.sq-ic { font-size: 12px; }
.sq-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-sub .pos-tag { font-size: 11px; padding: 0 5px; margin-right: 2px; }
.sq-form { text-align: center; }
.sq-vals { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 52px; }
.sq-pot { font-size: 11px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.name-link { background: none; border: none; color: var(--text); font: inherit; font-weight: 700; padding: 0; cursor: pointer; text-align: left; }
.name-link:hover { color: var(--turf); text-decoration: underline; }
@media (max-width: 900px) {
  .squad-table-wrap { display: none; }
  .sq-list { display: block; }
  .sq-summary { gap: 6px; }
  .sq-tile { padding: 7px 9px; }
  .sq-tile strong { font-size: 21px; line-height: 24px; }
}

/* Bottom-Sheet */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 9, 18, .6); backdrop-filter: blur(3px); animation: fade-in .2s; }
.sheet-panel {
  position: relative; width: min(480px, calc(100% - 32px)); max-height: 88vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: card-in .25s var(--ease-pop);
}
.sheet-grip { display: none; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--card-2); color: var(--text-dim); cursor: pointer; font-size: 14px; }
@media (max-width: 700px) {
  .sheet { align-items: flex-end; }
  .sheet-panel { width: 100%; border-radius: 22px 22px 0 0; border-bottom: none; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: sheet-up .28s var(--ease-pop); }
  .sheet-grip { display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: -6px auto 12px; }
}
.ps-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-right: 36px; }
.ps-name { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.ps-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.ps-ovr { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ps-pot { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.ps-pot strong { color: var(--gold); }
.ps-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; margin: 14px 0; }
.ps-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--turf); border-radius: 4px; }
.ps-bar b { position: absolute; top: 0; bottom: 0; background: rgba(255, 207, 77, .4); }
.ps-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.ps-stats div { background: var(--card-2); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.ps-stats strong { font-family: var(--f-display); font-size: 24px; line-height: 1.1; }
.ps-stats span { font-size: 12px; color: var(--text-dim); }
.ps-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ps-rows > div > span { color: var(--text-dim); white-space: nowrap; }
.ps-rows strong { text-align: right; font-weight: 600; }
.ps-rows em { display: block; font-style: normal; font-size: 12px; color: var(--text-dim); font-weight: 500; }
.ps-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ps-actions button { margin: 0; }
.ps-actions p { margin: 4px 0 0; text-align: center; }

/* ---------- Avatare ---------- */
.avatar { border-radius: 50%; overflow: hidden; background: var(--card-3); flex-shrink: 0; display: inline-flex; vertical-align: middle; }
.avatar svg { display: block; }
.avatar-empty { align-items: center; justify-content: center; color: var(--text-dim); font-size: 12px; border: 1px dashed var(--line); }
.avatar-eyes { transform-box: fill-box; transform-origin: center; animation: avatar-blink 5s ease-in-out infinite; animation-delay: var(--blink-delay, 0s); }
@keyframes avatar-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }

/* ---------- Übersicht ---------- */
.dash-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px 20px 20px; margin-bottom: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 40px, transparent 40px 80px),
    radial-gradient(500px 200px at 50% 0%, rgba(52, 227, 160, .18), transparent 70%),
    linear-gradient(180deg, #17304a, #13233b);
  border: 1px solid rgba(52, 227, 160, .18);
}
.dash-hero.cl { background: radial-gradient(500px 200px at 50% 0%, rgba(110, 168, 255, .28), transparent 70%), linear-gradient(180deg, #16295a, #0d1a3c); border-color: rgba(110, 168, 255, .3); }
.dash-hero.cup { background: radial-gradient(500px 200px at 50% 0%, rgba(255, 207, 77, .2), transparent 70%), linear-gradient(180deg, #2a2a20, #1a1c1c); border-color: rgba(255, 207, 77, .28); }
.hero-label { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--text-dim); font-weight: 600; }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0 16px; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.hero-team .crest { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.hero-team-name { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; }
.hero-team-sub { font-size: 12px; color: var(--text-dim); }
.hero-vs { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 28px; color: var(--text-faint); }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-chip { font-size: 13px; background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 4px 11px; color: var(--text-dim); }
.hero-chip strong { color: var(--text); }
.kick-btn { margin-top: 0; position: relative; overflow: hidden; }
.kick-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); background-size: 250% 100%; animation: holo 3.5s ease-in-out infinite; }
.dash-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 700px) { .dash-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .dash-hero { padding: 14px 14px 16px; border-radius: 20px; }
  .hero-teams { margin: 10px 0 12px; gap: 6px; }
  .hero-team .crest { width: 54px; height: 54px; }
  .hero-team-name { font-size: 17px; }
  .hero-vs { font-size: 22px; }
  .hero-meta { margin-bottom: 12px; }
  .lineup-controls { gap: 10px; }
  .formation-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .formation-pills::-webkit-scrollbar { display: none; }
  .lineup-controls > .card, .lineup-strength-box { flex: 1; }
  .fac-card .muted { font-size: 13px; }
  .candidate-grid { gap: 10px; }
}
.dash-chip { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 10px 14px; min-width: 0; }
.dash-chip .label { font-size: 13px; color: var(--text-dim); }
.dash-chip .value { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.dash-chip .value small { font-size: 15px; color: var(--text-dim); font-weight: 600; }
.dash-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; margin-bottom: 14px; cursor: pointer; border: 1px solid rgba(255, 207, 77, .35); background: linear-gradient(90deg, rgba(255, 207, 77, .14), rgba(255, 207, 77, .03)); width: 100%; color: inherit; text-align: left; font-size: 14px; }
.dash-alert .ico { color: var(--gold); width: 26px; height: 26px; }
.dash-alert strong { display: block; font-size: 15px; }
.dash-alert .go { margin-left: auto; color: var(--gold); font-weight: 700; white-space: nowrap; }
.dash-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dash-split > .card { margin-bottom: 0; }
@media (max-width: 1000px) { .dash-split { grid-template-columns: 1fr; } .dash-split > .card { margin-bottom: 0; } }
.dash-sched-row { display: grid; grid-template-columns: 22px 90px 24px 22px minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.dash-sched-row.next { background: rgba(52, 227, 160, .08); border-radius: 8px; }
.dash-sched-row.tbd .dash-sched-opp { color: var(--text-dim); font-style: italic; }
.dash-sched-label { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.dash-sched-opp { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sched-str { text-align: right; }
.team-form-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 14px; margin: 0; }
.result-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; font-weight: 800; color: #04261a; font-family: var(--f-display); }
.result-win { background: var(--turf); }
.result-draw { background: var(--yellow); color: #3a2603; }
.result-loss { background: var(--red); color: #fff; }

/* Übersicht: Team-Zeile */
.dash-team { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; width: 100%; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dash-team:hover { border-color: var(--line); }
.dash-team > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-team .label { font-size: 12px; color: var(--text-dim); }
.dash-team strong { font-family: var(--f-display); font-size: 26px; line-height: 1; }
.dash-team .muted { font-size: 12px; }
.dash-team .team-form-row { min-height: 26px; gap: 4px; }
.dash-team .result-badge { width: 22px; height: 22px; font-size: 12px; }
.info-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.info-bar .link-btn { margin-left: auto; }
.info-bar.closed { opacity: .85; }
.win-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.win-dot.open { background: var(--turf); box-shadow: 0 0 0 3px rgba(52, 227, 160, .2); }
.prefs-box { padding: 10px 14px; font-size: 14px; }
.prefs-box summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prefs-box summary::-webkit-details-marker { display: none; }
.prefs-box summary .link-btn { margin-left: auto; }
.prefs-box[open] summary .link-btn { visibility: hidden; }

/* Titel-Leiste */
.trophy-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.trophy { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--card); color: var(--text-faint); border: 1px dashed var(--line); }
.trophy.won { color: #3a2603; background: var(--tier-gold); border: none; font-weight: 700; box-shadow: 0 4px 12px rgba(201, 146, 28, .3); }
.trophy-done { font-weight: 700; color: var(--turf); }

/* ---------- Form ---------- */
.form-icon { font-weight: 800; font-size: 13px; display: inline-block; min-width: 12px; text-align: center; }
.form-great { color: var(--turf); font-size: 15px; }
.form-good { color: #9fefc9; }
.form-neutral { color: var(--text-dim); }
.form-bad { color: #ffab6b; }
.form-awful { color: var(--red); font-size: 15px; }
.pitch-chip-name .form-icon { text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.pitch-chip-name .form-neutral { color: #d6e2da; }
.pitch-chip-name .form-good { color: #b8f5cc; }

/* ---------- Aufstellung ---------- */
.lineup-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lineup-controls label { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.lineup-controls select { margin-left: 6px; }
.lineup-strength-box { display: flex; align-items: center; gap: 10px; }
.lineup-strength-box .label { font-size: 13px; color: var(--text-dim); }
.formation-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pitch-h {
  position: relative; width: 100%; aspect-ratio: 2.3 / 1; min-height: 340px; max-height: 480px; border-radius: 18px; overflow: hidden;
  margin-bottom: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, var(--shadow);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 70%), repeating-linear-gradient(90deg, #2a7446 0 9.09%, #256a40 9.09% 18.18%);
}
.pitch-markings { position: absolute; inset: 0; width: 100%; height: 100%; }
.lu-slot {
  position: absolute; left: var(--hx); top: var(--hy); transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; width: 84px; padding: 4px 2px; border-radius: 12px; cursor: grab;
  transition: background .15s, box-shadow .15s, transform .2s var(--ease-pop);
}
.lu-slot:active { cursor: grabbing; }
.lu-slot .pitch-chip-name { font-size: 13px; max-width: 84px; }
.lu-slot-pos { font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .4); border-radius: 6px; padding: 0 6px; margin-top: 2px; font-family: var(--f-display); letter-spacing: .04em; }
.lu-slot-info { font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); margin-top: 1px; white-space: nowrap; }
.lu-pen { color: #ffb3bb; }
.lu-alt { color: #b8f5cc; }
.lu-mismatch .pitch-chip-avatar-wrap .avatar { box-shadow: 0 0 0 2px #ff8a96; }
.lu-empty-ring { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.lu-injured .pitch-chip-avatar-wrap .avatar { box-shadow: 0 0 0 3px var(--red); }
.lu-injury-mark { position: absolute; top: -6px; left: -10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 7px; padding: 0 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.lu-focus-mark { position: absolute; top: -6px; right: -10px; font-size: 12px; line-height: 1; background: rgba(13, 22, 38, .9); border: 1px solid var(--gold); border-radius: 50%; padding: 2px; }
.lu-focus-inline { font-size: 11px; }
.lu-strip { display: flex; flex-wrap: wrap; gap: 8px; min-height: 58px; padding: 6px; border-radius: 12px; }
.lu-chip {
  display: flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 6px 10px 6px 6px; cursor: grab; min-width: 156px; transition: transform .15s var(--ease-pop), box-shadow .15s;
}
.lu-chip.injured { opacity: .55; cursor: not-allowed; }
.lu-chip.injured-blocking { opacity: 1; cursor: grab; border-color: var(--red); background: rgba(255, 107, 122, .1); }
.lu-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lu-chip-name { font-size: 14px; font-weight: 700; white-space: nowrap; }
.lu-chip-meta { font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lu-chip-sub { color: var(--text-dim); white-space: nowrap; }
.lu-chip-empty { justify-content: center; color: var(--text-faint); font-size: 13px; border-style: dashed; cursor: default; min-height: 46px; background: none; }
.dragging { opacity: .35; }
.drop-hover { outline: 2px solid var(--turf); outline-offset: 2px; background: rgba(52, 227, 160, .12); }
.lu-slot.drop-hover { background: rgba(255, 255, 255, .18); }
.lu-picked { box-shadow: 0 0 0 3px var(--gold), 0 0 20px rgba(255, 207, 77, .5) !important; transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 207, 77, .18); }
.lu-chip.lu-picked { transform: scale(1.04); }
.lu-pick-hint { position: sticky; bottom: calc(var(--nav-h, 0px) + 66px); z-index: 5; text-align: center; margin: 8px auto; width: fit-content; max-width: 100%; background: var(--gold); color: #2e1d00; font-weight: 700; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; }
.lineup-tip { font-size: 13px; color: var(--text-dim); flex: 1; min-width: 220px; }
@media (max-width: 900px) {
  .pitch-h { aspect-ratio: 3 / 4.1; max-height: none; min-height: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 70%), repeating-linear-gradient(0deg, #2a7446 0 9.09%, #256a40 9.09% 18.18%); }
  .pitch-h .pitch-markings.h { display: none; }
  .pitch-h .pitch-markings.v { display: block !important; }
  .lu-slot { left: var(--vx); top: var(--vy); width: 66px; padding: 2px; }
  .lu-slot .pitch-chip-name { font-size: 11px; max-width: 66px; }
  .lu-slot-info { display: none; }
  .lu-slot .avatar, .lu-slot .avatar svg { width: 36px !important; height: 36px !important; }
  .lu-chip { min-width: 0; flex: 1 1 calc(50% - 8px); }
  .lineup-tip { display: none; }
}

/* ---------- Jugend & Transfermarkt ---------- */
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.candidate-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.candidate-card.signed { opacity: .5; }
.candidate-card.jackpot { border-color: rgba(197, 155, 255, .55); box-shadow: 0 0 0 1px rgba(197, 155, 255, .25), 0 0 30px rgba(197, 155, 255, .12); }
.candidate-card.jackpot::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(197, 155, 255, .14) 50%, transparent 60%); background-size: 250% 100%; animation: holo 4s linear infinite; }
.candidate-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.candidate-head-text { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.candidate-head .name { font-weight: 700; font-size: 16px; }
.candidate-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.jackpot-tag { color: var(--elite); font-size: 13px; font-weight: 700; }
.cand-pot { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.cand-pot-label { font-size: 13px; color: var(--text-dim); }
.cand-pot-val { font-family: var(--f-display); font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; }
.cand-pot-val.exact { color: var(--turf); }
.cand-stats { display: flex; gap: 14px; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; align-items: center; }
.cand-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cand-actions button { flex: 1; width: auto; font-size: 13px; padding: 8px 10px; margin: 0; }
.market-card { position: relative; }
.market-dismiss { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 8px; background: none; border: 1px solid transparent; color: var(--text-faint); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; z-index: 1; }
.market-dismiss:hover { color: var(--red); border-color: var(--red); background: rgba(255, 107, 122, .1); }
.market-card .candidate-head { padding-right: 26px; }
.price-tag { font-family: var(--f-display); font-size: 20px; font-weight: 700; color: var(--gold); }
.window-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; }
.window-banner.closed { opacity: .8; }

/* ---------- Einrichtungen ---------- */
.fac-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
@media (max-width: 700px) { .fac-card { grid-template-columns: 44px 1fr; } .fac-card > button { grid-column: 1 / 3; } }
.fac-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.fac-title { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.fac-pips { display: flex; gap: 4px; margin: 6px 0; }
.fac-pip { width: 18px; height: 7px; border-radius: 3px; background: var(--card-3); }
.fac-pip.on { background: linear-gradient(90deg, var(--turf), #9ff5d2); }
.fac-pip.new { animation: pip-pop .6s var(--ease-pop); box-shadow: 0 0 10px var(--turf); }
@keyframes pip-pop { 0% { transform: scaleY(.2); background: #fff; } 100% { transform: scaleY(1); } }
.fac-card .muted { line-height: 1.5; }
.fac-card > button { width: auto; margin: 0; white-space: nowrap; }
.card.upgraded { animation: card-glow 1.2s ease; }
@keyframes card-glow { 0% { box-shadow: 0 0 0 2px var(--turf), 0 0 30px rgba(52, 227, 160, .4); } 100% { box-shadow: none; } }

/* ---------- Historie ---------- */
.history-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.history-item:last-child { border-bottom: none; }
.history-item > span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--card-2); border: 1px solid var(--turf);
  color: var(--text); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 3000;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease-pop); box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { border-color: var(--red); }
@media (max-width: 900px) { #toast { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); } }

/* ---------- Match-Center ---------- */
.match-overlay {
  position: fixed; inset: 0; background: rgba(4, 9, 18, .82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.match-overlay.hidden { display: none; }
.match-card {
  background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px;
  width: min(900px, 100%); max-height: 92vh; overflow-y: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: card-in .3s var(--ease-pop);
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 700px) {
  .match-overlay { padding: 0; align-items: stretch; }
  .match-card { border-radius: 0; max-height: none; height: 100%; padding: 16px 14px calc(20px + env(safe-area-inset-bottom)); padding-top: calc(16px + env(safe-area-inset-top)); border: none; }
}
.match-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.match-pitch-col { flex: 0 0 300px; max-width: 100%; }
.match-info-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; }
.match-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.match-actions button, .match-controls button { margin-top: 0; }
@media (max-width: 700px) {
  .match-pitch-col { flex: 1 1 100%; max-width: 340px; margin: 0 auto; }
  .match-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg-2) 30%); padding-bottom: 4px; }
  .match-actions button { flex: 1; }
}
.match-single-col { max-width: 620px; margin: 0 auto; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-teams .team-name { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
.match-teams .team-name .crest { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.team-rank { font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--text-dim); }
.match-score { font-family: var(--f-display); font-size: 54px; font-weight: 800; letter-spacing: .02em; min-width: 110px; text-align: center; line-height: 1; font-style: italic; }
.match-score.bump { animation: score-bump .6s var(--ease-pop); }
@keyframes score-bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); color: var(--turf); } 100% { transform: scale(1); } }
.match-minute { text-align: center; color: var(--text-dim); font-size: 15px; margin: 8px 0 16px; font-weight: 600; }
.match-minute.live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; animation: pulse-dot 1.2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.match-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; margin: -8px auto 16px; max-width: 280px; }
.match-progress > div { height: 100%; background: var(--turf); width: 0; transition: width .12s linear; }

.match-goal-banner {
  background: linear-gradient(135deg, #5ff5bd, var(--turf-deep)); color: #04261a; border-radius: 16px; padding: 14px 18px;
  text-align: center; font-weight: 800; margin-bottom: 14px; animation: goal-pop .6s var(--ease-pop); font-family: var(--f-display); font-size: 22px; letter-spacing: .03em;
  box-shadow: 0 10px 30px rgba(20, 185, 122, .35);
}
.match-goal-banner.opp { background: linear-gradient(135deg, #3a4660, #283247); color: #fff; box-shadow: none; font-size: 18px; }
.match-goal-banner.hidden { display: none; }
@keyframes goal-pop { 0% { transform: scale(.6) rotate(-3deg); opacity: 0; } 60% { transform: scale(1.06) rotate(1deg); opacity: 1; } 100% { transform: scale(1); } }
.match-goal-banner .scorer { font-size: 20px; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; margin-top: 2px; }
.match-goal-banner .assist { font-size: 13px; opacity: .85; margin-top: 2px; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.match-card.goal-flash { animation: goal-flash .7s ease; }
@keyframes goal-flash { 0% { box-shadow: 0 0 0 3px var(--turf), 0 0 80px rgba(52, 227, 160, .6); } 100% { box-shadow: 0 30px 80px rgba(0, 0, 0, .55); } }
.match-card.shake { animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.match-events { min-height: 60px; max-height: 240px; overflow-y: auto; margin-bottom: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.match-event-line { font-size: 14px; padding: 5px 0; color: var(--text-dim); display: flex; gap: 8px; animation: tab-in .25s ease-out; }
.match-event-line .min { color: var(--text); font-weight: 700; min-width: 42px; font-variant-numeric: tabular-nums; }

.pitch {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; margin-bottom: 12px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 70%), repeating-linear-gradient(0deg, #2a7446 0 10%, #256a40 10% 20%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.pitch-chip { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 54px; }
.pitch-chip-avatar-wrap { position: relative; }
.pitch-chip-avatar-wrap .avatar { box-shadow: 0 0 0 2px var(--kit, rgba(255, 255, 255, .85)), 0 3px 8px rgba(0, 0, 0, .45); }
.pitch-chip-badge {
  position: absolute; bottom: -5px; right: -7px; color: #1b2531; font-size: 11px; font-weight: 800; font-family: var(--f-display);
  border-radius: 6px; padding: 1px 4px; min-width: 18px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.pitch-chip-name { font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); margin-top: 4px; max-width: 70px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pitch-chip-extra { background: rgba(0, 0, 0, .55); color: #fff; border-radius: 6px; padding: 0 5px; font-size: 11px; margin-top: 2px; white-space: nowrap; }
.pitch-chip-extra:empty { display: none; }
.pitch-chip.motm .pitch-chip-avatar-wrap .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(255, 207, 77, .7); }
.live-pop { animation: live-pop .6s var(--ease-pop); }
@keyframes live-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); } }
.match-controls { display: flex; justify-content: center; margin-top: 14px; gap: 10px; }
.match-phase h3 { margin-top: 0; }

/* Ergebnis-Stempel */
.result-stamp { text-align: center; margin: 4px 0 14px; }
.result-stamp span {
  display: inline-block; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 40px; letter-spacing: .04em;
  padding: 0 22px; border-radius: 12px; animation: stamp .55s var(--ease-pop) both; line-height: 1.25;
}
.result-stamp.win span { background: var(--tier-gold); color: #3a2603; box-shadow: 0 10px 30px rgba(201, 146, 28, .4); }
.result-stamp.draw span { background: var(--card-3); color: var(--text); }
.result-stamp.loss span { background: rgba(255, 107, 122, .14); color: var(--red); }
.result-stamp .result-detail { display: block; font-size: 14px; color: var(--text-dim); margin-top: 8px; animation: fade-in .4s .3s both; }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-6deg); opacity: 0; } 70% { transform: scale(.94) rotate(1deg); opacity: 1; } 100% { transform: scale(1) rotate(-2deg); } }
.motm-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; margin-bottom: 12px; background: linear-gradient(90deg, rgba(255, 207, 77, .16), rgba(255, 207, 77, .03)); border: 1px solid rgba(255, 207, 77, .3); }
.motm-box .motm-label { font-size: 12px; color: var(--gold); font-weight: 700; }
.motm-box .motm-name { font-weight: 700; font-size: 16px; }
.motm-box .rating-badge { margin-left: auto; }

.rating-row, .dev-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.rating-row:last-child, .dev-row:last-child { border-bottom: none; }
.rating-name-wrap { display: flex; flex-direction: column; min-width: 110px; }
.rating-sub { font-size: 12px; color: var(--text-dim); }
.rating-badge { margin-left: auto; font-weight: 800; font-size: 16px; border-radius: 8px; padding: 3px 10px; min-width: 42px; text-align: center; font-family: var(--f-display); }
.dev-change { margin-left: auto; font-weight: 700; text-align: right; }
.dev-up { color: var(--turf); }
.dev-down { color: var(--red); }
.dev-strength { font-weight: 700; min-width: 92px; white-space: nowrap; }
.dev-pot-wrap { flex-shrink: 0; }
.dev-row .dev-pot-wrap { margin-left: auto; }
.dev-head { font-size: 12px; color: var(--text-faint); padding-bottom: 4px; }
.dev-row .rating-name-wrap { flex: 1; min-width: 0; }
.other-results { font-size: 13px; color: var(--text-dim); margin-top: 10px; }
.other-results div { padding: 2px 0; }

/* Spielerentwicklung nach dem Spiel */
.upg-head { text-align: center; margin-bottom: 14px; }
.upg-head h3 { font-size: 30px; font-style: italic; font-weight: 800; margin-bottom: 4px; }
.upg-total { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-dim); }
.upg-total strong { font-family: var(--f-display); font-size: 26px; color: var(--turf); }
.upg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px 0 18px; }
.upg-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .0; transform: translateY(14px) scale(.9); transition: opacity .3s, transform .45s var(--ease-pop); }
.upg-slot.in { opacity: 1; transform: none; }
.upg-slot .pcard { width: 132px; }
.upg-slot .pcard-ovr-num { font-size: 36px; }
.upg-slot.pop .pcard { animation: card-pop .55s var(--ease-pop); }
@keyframes card-pop { 0% { transform: scale(1); } 35% { transform: scale(1.1) rotate(-1.5deg); } 100% { transform: scale(1); } }
.upg-slot.tierup .pcard { box-shadow: 0 0 0 3px #fff, 0 0 40px rgba(255, 255, 255, .55), 0 12px 26px rgba(0, 0, 0, .35); }
.upg-delta { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--turf); min-height: 24px; }
.upg-tier-label { font-size: 12px; font-weight: 800; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 2px 10px; animation: stamp .5s var(--ease-pop) both; }
.upg-potbar { width: 120px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.upg-potbar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--turf); border-radius: 4px; transition: width .7s ease; }
.upg-potbar > b { position: absolute; top: 0; bottom: 0; background: rgba(255, 207, 77, .35); }
.upg-skip { display: block; margin: -6px auto 10px; }
.dev-section { margin-top: 16px; }
.dev-section h4 { margin-top: 0; }
.dev-decline { opacity: .75; }

/* Schwebender Text */
.fx-float {
  position: fixed; z-index: 5000; transform: translate(-50%, 0); pointer-events: none; font-family: var(--f-display); font-weight: 800; font-size: 26px;
  color: var(--turf); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); animation: float-up 1.2s ease-out forwards;
}
.fx-float.gold { color: var(--gold); font-size: 17px; }
.fx-float.red { color: var(--red); }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 6000; }

/* ---------- Tabellen-Animation ---------- */
.table-phase { max-width: 760px; margin: 0 auto; }
.anim-table { font-size: 14px; overflow-x: auto; }
.anim-row { display: grid; grid-template-columns: 30px 34px 22px minmax(90px, 1fr) 54px 30px 26px 26px 26px 54px 36px; gap: 2px; align-items: center; height: 38px; padding: 0 8px; border-bottom: 1px solid var(--line-soft); min-width: 520px; }
.anim-row span:nth-child(n+5) { text-align: center; font-variant-numeric: tabular-nums; }
.anim-head { color: var(--text-faint); font-size: 12px; height: 30px; }
.anim-body { position: relative; min-width: 520px; }
.anim-body .anim-row { position: absolute; left: 0; right: 0; background: var(--card); transition: top 1.1s cubic-bezier(.45, .05, .25, 1); }
.anim-row.mine { background: #1a3a3a; font-weight: 700; z-index: 2; box-shadow: inset 3px 0 0 var(--turf); }
.anim-rank { font-weight: 700; font-family: var(--f-display); font-size: 16px; }
.anim-rank.zone-up { color: var(--turf); }
.anim-rank.zone-down { color: var(--red); }
.anim-rank.zone-cl { color: var(--cl); }
.anim-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anim-move { font-size: 12px; font-weight: 700; }
.anim-move.up { color: var(--turf); }
.anim-move.down { color: var(--red); }
.anim-res { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 0; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s var(--ease-pop); }
.anim-res.show { opacity: 1; transform: scale(1); }
.anim-res.res-win { background: rgba(52, 227, 160, .18); color: var(--turf); }
.anim-res.res-draw { background: rgba(255, 201, 77, .16); color: var(--yellow); }
.anim-res.res-loss { background: rgba(255, 107, 122, .16); color: var(--red); }
.anim-pts { font-weight: 800; }
.pts-up { animation: pts-flash 1.2s ease; }
@keyframes pts-flash { 0% { color: var(--turf); transform: scale(1.6); } 100% { transform: scale(1); } }
.mini-crest { display: inline-flex; vertical-align: middle; }

/* Liga-Tabelle */
.league-table td:nth-child(2) { white-space: nowrap; }
.club-cell { display: flex; align-items: center; gap: 8px; }
.zone-dot { display: inline-block; width: 4px; height: 22px; border-radius: 2px; margin-right: 2px; vertical-align: middle; }
.league-table tr.mine { background: rgba(52, 227, 160, .08); font-weight: 700; }

/* ---------- Taktik ---------- */
.tactic-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.tactic-option { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; background: var(--card-2); border: 2px solid transparent; border-radius: 16px; padding: 14px; color: var(--text); transition: border-color .15s, transform .15s var(--ease-pop); }
.tactic-option:hover { border-color: var(--line); }
.tactic-option.active { border-color: var(--turf); background: rgba(52, 227, 160, .08); }
.tactic-title { font-weight: 700; font-size: 16px; }
.tactic-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.tactic-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tactic-pill { background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 14px; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tactic-pill:hover { border-color: var(--line); }
.tactic-pill.active { background: rgba(52, 227, 160, .14); border-color: var(--turf); color: var(--turf); }
.tactic-pill .comp-logo { margin: 0 2px 0 0; }
.tactic-rank { color: var(--text-faint); font-weight: 700; min-width: 20px; }
.tactic-hint { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 207, 77, .1); font-size: 14px; }

/* ---------- Stadion / Zuschauer ---------- */
.gate-line { font-size: 14px; padding: 8px 12px; margin-bottom: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); line-height: 1.6; }
.gate-money { color: var(--gold); font-weight: 700; }
.gate-tag { margin-left: 4px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.gate-top { background: rgba(255, 140, 40, .18); color: #ffad5c; }
.gate-sold { background: rgba(52, 227, 160, .16); color: var(--turf); }

/* ---------- Champions League & Pokal ---------- */
.cl-banner { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--cl); margin-bottom: 10px; }
.cl-banner .comp-logo { margin: 0; }
.cup-banner { color: var(--gold); }
.cl-outcome { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: rgba(110, 168, 255, .1); border: 1px solid rgba(110, 168, 255, .3); font-size: 14px; line-height: 1.6; }
.cl-card { border-left: 3px solid var(--cl); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cup-card { border-left: 3px solid var(--gold); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-next strong { color: var(--cl); }
.cup-next strong { color: var(--gold); }
.cl-result { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; flex-wrap: wrap; }
.comp-logo { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.h2-logo { display: flex; align-items: center; gap: 10px; }
.crest, .kit { display: inline-block; vertical-align: middle; flex-shrink: 0; overflow: visible; }

/* ---------- Erfolge ---------- */
.ach-summary { display: flex; align-items: center; gap: 16px; }
.ach-summary strong { font-family: var(--f-display); font-size: 26px; }
.ach-total-bar, .ach-progress-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ach-total-bar > div, .ach-progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 4px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ach-card { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); }
.ach-card .ach-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--card-2); filter: grayscale(1); opacity: .5; }
.ach-card.got { border-color: rgba(255, 207, 77, .35); background: linear-gradient(135deg, rgba(255, 207, 77, .1), var(--card) 60%); }
.ach-card.got .ach-icon { filter: none; opacity: 1; background: var(--tier-gold); box-shadow: 0 4px 12px rgba(201, 146, 28, .35); }
.ach-body { flex: 1; min-width: 0; font-size: 14px; }
.ach-when { margin-top: 4px; color: var(--gold); font-size: 12px; font-weight: 700; }
.ach-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-dim); }

#ach-toasts { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 2000; width: min(380px, calc(100vw - 24px)); }
.ach-toast {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2b2410, #1a2135 70%); border: 1px solid rgba(255, 207, 77, .6); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 207, 77, .18);
  font-size: 14px; animation: ach-in .5s var(--ease-pop); transition: opacity .4s, transform .4s;
}
.ach-toast::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); background-size: 250% 100%; animation: shine-once 1.2s .3s ease-out both; pointer-events: none; }
.ach-toast.out { opacity: 0; transform: translateY(-20px); }
.ach-toast-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--tier-gold); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; animation: icon-spin .7s .15s var(--ease-pop) both; }
@keyframes icon-spin { from { transform: scale(0) rotate(-180deg); } to { transform: none; } }
.ach-toast-head { font-size: 12px; color: var(--gold); font-weight: 700; }
@keyframes ach-in { from { opacity: 0; transform: translateY(-30px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Spielplan & Berichte ---------- */
.sched-list { padding: 6px 0; }
.sched-row { display: grid; grid-template-columns: 26px minmax(150px, 1.1fr) 26px 22px minmax(140px, 1.5fr) 74px 26px; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; border: none; border-bottom: 1px solid var(--line-soft); background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; }
.sched-row.played { cursor: pointer; }
.sched-row.played:hover { background: rgba(255, 255, 255, .03); }
.sched-row.upcoming { opacity: .88; }
.sched-row.tbd .sched-opp { color: var(--text-dim); font-style: italic; }
.sched-row.next { background: rgba(52, 227, 160, .08); opacity: 1; }
.sched-next-tag { font-size: 11px; font-weight: 700; color: var(--turf); margin-left: 6px; }
.sched-comp { display: flex; justify-content: center; }
.sched-label { color: var(--text-dim); font-size: 13px; }
.sched-opp { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-score { text-align: center; }
.sched-letter { font-weight: 800; text-align: center; font-family: var(--f-display); font-size: 17px; }
.sched-letter.res-win { color: var(--turf); } .sched-letter.res-loss { color: var(--red); } .sched-letter.res-draw { color: var(--gold); }
.venue { display: inline-block; width: 22px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 0; }
.venue-h { background: rgba(52, 227, 160, .15); color: var(--turf); }
.venue-a { background: rgba(110, 168, 255, .15); color: var(--cl); }
.venue-n { background: rgba(255, 255, 255, .06); color: var(--text-dim); }
@media (max-width: 700px) {
  .sched-row { grid-template-columns: 22px 22px 20px minmax(0, 1fr) 56px 18px; padding: 9px 10px; gap: 7px; }
  .sched-row .sched-label { display: none; }
  .dash-sched-row { grid-template-columns: 22px 70px 22px 20px minmax(0, 1fr) 32px; }
}
.info-card { width: min(540px, 100%); }
.info-card.report-card { width: min(880px, 100%); }
@media (max-width: 700px) { #info-overlay .match-card { height: auto; max-height: 100%; } }
.info-body p { margin: 0 0 10px; line-height: 1.55; }
#info-overlay { z-index: 110; }
.info-card > h3 { font-size: 26px; }
.rep-head { margin-top: 4px; }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.rep-cols h4 { margin: 10px 0 6px; }
.rep-goal { display: flex; gap: 8px; padding: 3px 0; font-size: 14px; }
.rep-goal.right { justify-content: flex-end; text-align: right; }
.rep-rating { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; }
.rep-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-sub { font-size: 14px; padding: 2px 0; }
.rep-shootout { font-size: 13px; margin: 6px 0 10px; line-height: 1.8; }
.rep-shootout .so-hit { color: var(--turf); } .rep-shootout .so-miss { color: var(--red); }
@media (max-width: 700px) { .rep-cols { grid-template-columns: 1fr; } }

.sub-line .sub-in { color: var(--turf); }
.sub-line .sub-out { color: var(--text-dim); }
.sub-entered { animation: sub-enter .7s var(--ease-pop); }
@keyframes sub-enter { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 70% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); } }
.subs-box { margin-bottom: 12px; }
.sub-rating-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.sub-rating-row .min { color: var(--text-dim); min-width: 32px; }
.sub-rating-row .sub-names { flex: 1; min-width: 0; }
.sub-rating-row .sub-extra { font-size: 12px; }
.sub-rating-row .rating-badge { margin-left: 0; font-size: 14px; padding: 2px 8px; min-width: 36px; }

/* ---------- Elfmeterschießen ---------- */
.shootout { padding: 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); }
.so-title { font-weight: 700; margin-bottom: 8px; font-family: var(--f-display); font-size: 18px; }
.so-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.so-team { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.so-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.so-dot.hit { background: var(--turf); border-color: var(--turf); color: #04261a; animation: live-pop .3s ease-out; }
.so-dot.miss { background: var(--red); border-color: var(--red); color: #fff; animation: live-pop .3s ease-out; }
.so-score { font-size: 22px; font-weight: 800; text-align: right; font-family: var(--f-display); }
.so-current { margin-top: 6px; font-size: 14px; color: var(--text-dim); min-height: 18px; }

/* ---------- Torjäger & Goldener Ball ---------- */
.scorer-list { display: flex; flex-direction: column; }
.scorer-row { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) 32px 38px; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.scorer-row.mine { background: rgba(52, 227, 160, .08); border-radius: 8px; font-weight: 600; }
.scorer-rank { color: var(--text-faint); text-align: right; font-variant-numeric: tabular-nums; }
.scorer-name, .scorer-club { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer-val { font-weight: 800; text-align: right; font-size: 16px; font-family: var(--f-display); }
.scorer-sub { font-size: 12px; text-align: right; }
.ballon-hist { font-size: 14px; padding: 3px 0; }
.ballon-nominee { padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: rgba(255, 207, 77, .08); border: 1px solid rgba(255, 207, 77, .3); font-size: 14px; }
.ballon-announce { text-align: center; font-size: 22px; font-weight: 700; color: var(--gold); margin: 4px 0 12px; min-height: 28px; font-family: var(--f-display); }
.ballon-row.ballon-hidden { opacity: .35; }
.ballon-row.ballon-pop { animation: ach-in .45s ease-out; }
.ballon-row.ballon-winner { background: rgba(255, 207, 77, .16); border-radius: 8px; font-size: 16px; }
.ballon-row.ballon-winner .scorer-name { font-weight: 800; color: var(--gold); }

/* ---------- Champions-League-Abend ---------- */
.match-overlay.cl-theme { background: radial-gradient(ellipse at top, rgba(20, 45, 110, .92), rgba(3, 8, 28, .95)); }
.match-overlay.cl-theme .match-card { background: linear-gradient(160deg, #10285c 0%, #0b1a3e 55%, #081230 100%); border-color: rgba(127, 178, 255, .45); }
.match-overlay.cl-theme .gate-line, .match-overlay.cl-theme .subs-box, .match-overlay.cl-theme .other-results,
.match-overlay.cl-theme .shootout, .match-overlay.cl-theme .cl-outcome { background-color: rgba(127, 178, 255, .07); }
.match-overlay.cl-theme .btn-secondary { background: rgba(127, 178, 255, .16); }
.match-overlay.cl-theme .anim-row, .match-overlay.cl-theme .anim-body .anim-row { background: #0e2150; }
.match-overlay.cl-theme .anim-row.mine { background: #1b3a7a; }
.match-overlay.cl-theme .cl-banner { color: #a9cbff; }

/* ---------- Feier-Bildschirm ---------- */
.celebrate {
  position: fixed; inset: 0; z-index: 5500; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(40, 32, 8, .9), rgba(4, 8, 16, .96) 70%);
  opacity: 0; transition: opacity .3s; overflow: hidden;
}
.celebrate.tone-green { background: radial-gradient(ellipse at center, rgba(10, 50, 36, .92), rgba(4, 8, 16, .96) 70%); }
.celebrate.tone-blue { background: radial-gradient(ellipse at center, rgba(16, 36, 90, .92), rgba(3, 7, 20, .96) 70%); }
.celebrate.tone-elite { background: radial-gradient(ellipse at center, rgba(52, 24, 100, .92), rgba(6, 4, 18, .96) 70%); }
.celebrate.in { opacity: 1; }
.celebrate.out { opacity: 0; }
.celebrate-rays {
  position: absolute; left: 50%; top: 40%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; opacity: .22;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, .9) 0deg 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%);
  animation: rays 30s linear infinite;
}
.celebrate.tone-green .celebrate-rays { background: repeating-conic-gradient(from 0deg, rgba(120, 255, 200, .9) 0deg 6deg, transparent 6deg 18deg); }
.celebrate.tone-blue .celebrate-rays { background: repeating-conic-gradient(from 0deg, rgba(140, 190, 255, .9) 0deg 6deg, transparent 6deg 18deg); }
.celebrate.tone-elite .celebrate-rays { background: repeating-conic-gradient(from 0deg, rgba(210, 170, 255, .9) 0deg 6deg, transparent 6deg 18deg); }
@keyframes rays { to { transform: rotate(360deg); } }
.celebrate-inner { position: relative; text-align: center; max-width: 460px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.celebrate-art { animation: art-in .9s var(--ease-pop) .1s both; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.celebrate-art .trophy-svg { animation: float-y 4s ease-in-out 1s infinite; }
@keyframes art-in { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.celebrate-title { font-size: clamp(30px, 9vw, 46px); font-style: italic; font-weight: 800; margin: 18px 0 6px; animation: stamp .6s var(--ease-pop) .5s both; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.celebrate-sub { color: #d5deec; font-size: 17px; margin: 0 0 10px; animation: fade-in .5s .8s both; }
.celebrate-btn { width: auto; min-width: 200px; margin-top: 22px; animation: fade-in .4s 1.1s both; font-family: var(--f-display); font-size: 20px; }
.celebrate .pcard { margin: 0 auto; }
.celebrate-extra { font-size: 15px; color: #d5deec; animation: fade-in .5s .9s both; }
body.celebrating { overflow: hidden; }

/* Karten-Aufdeckung (Neuzugang) */
.reveal-stage { perspective: 900px; }
.reveal-card { position: relative; width: 170px; height: 238px; transform-style: preserve-3d; transition: transform .8s var(--ease-pop); margin: 0 auto; }
.reveal-card.flipped { transform: rotateY(180deg); }
.reveal-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: flex-start; justify-content: center; }
.reveal-back { border-radius: 18px; background: linear-gradient(160deg, var(--card-3), var(--bg-2)); border: 2px solid var(--line); align-items: center; box-shadow: var(--shadow); animation: back-wiggle 1s ease-in-out infinite; }
.reveal-front { transform: rotateY(180deg); }
.reveal-front .pcard { width: 170px; }
@keyframes back-wiggle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.reveal-pot { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: var(--gold); margin-top: 14px; animation: fade-in .4s both; }

/* ---------- Wappen-Editor ---------- */
.crest-editor { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
@media (max-width: 640px) { .crest-editor { grid-template-columns: 1fr; } }
.ce-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--card); border-radius: 18px; padding: 16px; align-self: start; z-index: 1; }
@media (max-width: 640px) { .ce-preview { flex-direction: row; justify-content: center; padding: 10px; } }
.ce-preview .crest { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.ce-group { margin-bottom: 14px; }
.ce-label { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }
.ce-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-opt { background: var(--card-2); border: 2px solid transparent; border-radius: 10px; padding: 4px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 13px; font-weight: 600; }
.ce-opt:hover { border-color: var(--line); }
.ce-opt.active { border-color: var(--turf); background: rgba(52, 227, 160, .1); }
.ce-swatch { width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-radius: 50%; padding: 0; border: 2px solid rgba(255,255,255,.12); }
.ce-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--turf); }
.ce-text { padding: 6px 12px; }
.ce-input { width: 90px; text-transform: uppercase; }
.club-ident { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.club-ident .crest { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); }

/* Einstellungen */
.sound-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 15px; }
.sound-row input[type="range"] { width: 200px; max-width: 50vw; }
.injury-warning { border-color: rgba(255, 107, 122, .45); background: rgba(255, 107, 122, .08); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Jugendakademie ---------- */
.academy-list { display: flex; flex-direction: column; gap: 8px; }
.academy-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px;
  background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer;
}
.academy-row:hover { background: var(--card-2); }
.academy-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.academy-id .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.academy-sub { display: flex; align-items: center; gap: 6px; font-size: .85em; }
.academy-ovr { display: flex; align-items: center; gap: 6px; }
.academy-gain { color: var(--turf); font-weight: 700; font-size: .85em; }
.academy-pot { white-space: nowrap; }
.academy-actions { display: flex; gap: 6px; }
.academy-actions button { width: auto; padding: 7px 12px; white-space: nowrap; }
.pot-trend { font-size: .75em; }
.pot-trend.down { color: var(--red); }
.pot-trend.up { color: var(--turf); }
@media (max-width: 640px) {
  .academy-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .academy-pot { grid-column: 2; }
  .academy-actions { grid-column: 1 / -1; }
  .academy-actions button { flex: 1; }
}

/* ---------- Aufstellung im Spiel-Fenster bearbeiten ---------- */
.preview-edit-head { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-lineup-host .card { margin-bottom: 12px; }
.preview-edit-actions {
  position: sticky; bottom: 0; z-index: 5; justify-content: flex-end; gap: 10px;
  margin: 0 -4px; padding: 12px 4px; background: linear-gradient(180deg, transparent, var(--card) 35%);
}

/* ---------- Aufstellung: Seitenleiste links, Spielfeld rechts ---------- */
.lineup-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.lineup-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--sticky-top, 0px) + 8px); }
.lineup-side .card, .lineup-main .card { margin: 0; }
.lineup-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lineup-main .pitch-h { margin: 0; max-height: calc(100vh - 300px); min-height: 300px; }
.lineup-side-card { display: flex; flex-direction: column; gap: 12px; }
.lineup-formation { display: flex; flex-direction: column; gap: 6px; }
.lineup-formation .label, .lineup-strength-box .label { font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lineup-formation select { width: 100%; }
.lineup-formation strong { font-family: var(--f-display); font-size: 20px; }
.lineup-side .lineup-tip { min-width: 0; font-size: 12px; }
.lineup-bench-card h3, .lineup-reserve-card h3 { margin: 0 0 6px; font-size: 15px; }
.lu-strip-col { flex-direction: column; flex-wrap: nowrap; gap: 6px; padding: 2px; }
.lu-strip-col .lu-chip { min-width: 0; padding: 4px 8px 4px 4px; }
.lu-strip-col .lu-chip-empty { min-height: 40px; }
.lineup-reserve-card .lu-strip { padding: 2px; }

/* Vorschau-Editor: breites Fenster */
.match-card.wide-edit { width: min(1500px, 100%); max-height: 96vh; padding: 18px 22px; }
.match-card.wide-edit .preview-edit-head { margin-bottom: 10px; }
.match-card.wide-edit .lineup-side { position: static; }
.match-card.wide-edit .lineup-main .pitch-h { max-height: calc(96vh - 330px); }

@media (max-width: 900px) {
  .lineup-layout { display: flex; flex-direction: column; gap: 12px; }
  .lineup-side, .lineup-main { display: contents; }
  .lineup-side-card { order: 1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lineup-formation { flex: 1 1 140px; }
  .lineup-main .pitch-h { order: 2; max-height: none; }
  .lu-pick-hint { order: 3; }
  .lineup-bench-card { order: 4; }
  .lineup-reserve-card { order: 5; }
  .lu-strip-col { flex-direction: row; flex-wrap: wrap; }
  .lu-strip-col .lu-chip { flex: 1 1 calc(50% - 8px); }
}
/* Spieler nicht am Spielfeldrand abschneiden (Querformat) */
@media (min-width: 901px) {
  .pitch-h .lu-slot { left: calc(3% + var(--hx) * .94); top: calc(9% + var(--hy) * .82); }
}
.lineup-layout { grid-template-columns: 270px minmax(0, 1fr); }
.lu-strip-col .lu-chip-meta { flex-wrap: nowrap; }
.match-card.wide-edit .lineup-main .pitch-h { max-height: none; height: calc(96vh - 370px); min-height: 300px; aspect-ratio: auto; }

/* Tabelle: Stärke nur als kleine Zusatzinfo, Punkte hervorgehoben */
.str-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 0 6px; height: 18px;
  border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text-dim); background: var(--line-soft);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.str-chip i { width: 6px; height: 6px; border-radius: 50%; opacity: .8; }
.player-table td.pts-cell { font-weight: 800; color: var(--text); }

/* =========================================================
   Aufstellung, überarbeitet: kompakte Spieler-Marken auf dem Feld,
   gleich breite Zeilen für Bank und Reserve, Infos erst beim Antippen
   ========================================================= */
@media (min-width: 901px) {
  .lineup-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .lineup-main .pitch-h { aspect-ratio: 1.6 / 1; max-height: none; min-height: 0; height: auto; }
  .pitch-h .lu-slot { left: calc(5% + var(--hx) * .9); top: calc(9% + var(--hy) * .8); }
}
.lu-slot { width: 104px; padding: 3px 2px; gap: 0; border-radius: 14px; }
.lu-tok { position: relative; display: inline-flex; }
.lu-tok .avatar { box-shadow: 0 0 0 2px var(--kit, #fff), 0 3px 8px rgba(0, 0, 0, .45); }
.lu-tok-ovr {
  position: absolute; right: -10px; bottom: -4px; min-width: 24px; padding: 1px 4px; border-radius: 6px; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-size: 13px; line-height: 1.15; color: #1b2531; box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.lu-tok-mark {
  position: absolute; left: -11px; top: -6px; font-size: 11px; line-height: 1.2; padding: 1px 4px; border-radius: 8px;
  background: rgba(13, 22, 38, .92); border: 1px solid var(--gold); box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.lu-tok-mark.inj { border-color: var(--red); }
.lu-tok-mark.bad { background: var(--red); border-color: transparent; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 12px; }
.lu-tok-name {
  display: flex; align-items: center; gap: 4px; max-width: 104px; margin-top: 5px; padding: 1px 7px 1px 2px;
  background: rgba(8, 16, 28, .74); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.lu-tok-name b { flex-shrink: 0; font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.lu-tok-name b.alt { background: rgba(52, 227, 160, .32); }
.lu-tok-name b.bad { background: var(--red); }
.lu-tok-name span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lu-tok-name .form-icon { font-size: 11px; min-width: 0; }
.lu-tok-name.muted { padding: 1px 8px; color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .25); }
.lu-slot.lu-mismatch .lu-tok .avatar { box-shadow: 0 0 0 2px var(--red), 0 3px 8px rgba(0, 0, 0, .45); }
.lu-slot.lu-injured .lu-tok .avatar { box-shadow: 0 0 0 3px var(--red), 0 3px 8px rgba(0, 0, 0, .45); }
.lu-empty { cursor: default; }

/* Bank und Reserve: feste Spalten statt inhaltsabhängiger Breite */
.lu-chip {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: 100%; min-width: 0; padding: 6px 10px 6px 6px; border-radius: 12px;
}
.lu-chip.lu-chip-empty { display: flex; justify-content: center; }
.lu-chip.lu-picked { transform: none; }
.lu-chip-av { position: relative; display: inline-flex; }
.lu-chip-inj { position: absolute; left: -5px; bottom: -5px; font-size: 10px; font-weight: 700; color: #fff; background: var(--red); border-radius: 6px; padding: 0 3px; }
.lu-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lu-chip-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-chip-meta { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--text-dim); flex-wrap: nowrap; }
.lu-chip-meta .pos-tag { flex-shrink: 0; font-size: 11px; padding: 0 5px; }
.lu-alts { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--text-faint); }
.lu-age { flex-shrink: 0; }
.lu-chip-meta .form-icon { flex-shrink: 0; }
.lu-chip-vals { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 54px; }
.lu-chip-pot { font-size: 11px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.lu-strip-col { display: flex; flex-direction: column; gap: 6px; }
.lu-strip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.lu-strip-grid > .muted { grid-column: 1 / -1; }
.lineup-bench-card, .lineup-reserve-card, .lineup-side-card { min-width: 0; }

/* Seitenleiste: Stärke je Mannschaftsteil */
.lineup-strength-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lu-lead { font-size: 12px; }
.lu-lines { display: flex; flex-direction: column; gap: 7px; }
.lu-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.lu-line i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lu-line b { display: block; height: 100%; border-radius: 3px; }
.lu-line strong { font-family: var(--f-display); font-size: 17px; color: var(--text); text-align: right; }

/* Leiste zum angetippten Spieler */
.lu-pick-hint {
  position: sticky; bottom: 12px; z-index: 8; width: 100%; max-width: none; margin: 0; padding: 10px 12px; text-align: left;
  background: var(--card-2); color: var(--text); font-weight: 400; font-size: 14px; border: 1px solid rgba(255, 207, 77, .6); border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.lu-pick-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lu-pick-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.lu-pick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; margin-top: 3px; }
.lu-pick-do { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--gold); }
.lu-pick-x { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--card-3); color: var(--text-dim); cursor: pointer; }

/* Form als farbiger Punkt am Spielerbild (nur wenn nicht normal) */
.form-dot { position: absolute; right: -3px; top: -2px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px #10233a; }
.form-dot.great { background: var(--turf); }
.form-dot.good { background: #9fefc9; }
.form-dot.bad { background: #ffab6b; }
.form-dot.awful { background: var(--red); }
.lu-chip-av .form-dot { right: -2px; top: -2px; box-shadow: 0 0 0 2px var(--card-2); }

@media (max-width: 900px) {
  .lineup-layout { align-items: stretch; }
  .lu-slot { width: 74px; }
  .lu-tok-name { max-width: 74px; font-size: 11px; padding-right: 5px; }
  .lu-tok-name .form-icon { display: none; }
  .lu-tok-ovr { font-size: 12px; right: -9px; }
  .lu-strip-col, .lu-strip-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .lu-strip-col .lu-chip { flex: none; }
  .lu-pick-hint { bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); }
  .lineup-side-card .lu-lines { flex: 1 1 100%; }
}

/* Kader: Unterteilung nach Mannschaftsteil, auch in der Desktop-Tabelle */
.sq-jump { gap: 6px; }
.jump-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--card-2); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.jump-pill span { color: var(--text-faint); font-weight: 600; }
.jump-pill:hover { border-color: var(--turf); }
.player-table.sticky-head thead th { top: var(--hdr-h, 0px); }
.sq-tr-group td { padding: 18px 6px 6px !important; border-bottom: 1px solid var(--line) !important; background: transparent; }
.sq-tr-group:hover { background: transparent !important; }
.sq-tr-title { font-family: var(--f-display); font-size: 19px; font-weight: 700; margin-right: 12px; color: var(--text); }
.sq-tr-group, .sq-group-head { scroll-margin-top: calc(var(--hdr-h, 0px) + 70px); }
@media (max-width: 900px) { .sq-group-head { scroll-margin-top: calc(var(--hdr-h, 60px) + 70px); } }
.lu-slot { --tok-w: 104px; }
@media (max-width: 900px) { .lu-slot { width: 80px; } .lu-tok-name { max-width: 80px; } }
@media (min-width: 901px) {
  .sq-controls { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
  .sq-controls .chip-row { flex-wrap: wrap; overflow: visible; }
}
/* Info-Leiste zum gewählten Spieler: immer unten im Blick */
.lu-pick-hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(640px, calc(100% - 24px)); z-index: 95; }
@media (max-width: 900px) {
  .lu-pick-hint { bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); }
  .subnav { top: var(--hdr-h, 60px); box-shadow: 0 -10px 0 6px var(--bg); }
}

/* Startelf: weitere Positionen + Potenzial unter dem Namen */
.lu-tok-sub {
  display: flex; align-items: center; justify-content: center; gap: 5px; max-width: 104px; margin-top: 2px;
  font-size: 10.5px; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
.lu-tok-alts { color: rgba(255, 255, 255, .78); font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lu-tok-pot { color: #ffd76a; font-weight: 700; flex-shrink: 0; }
.lu-tok-pot .pot-trend { font-size: 9px; }
@media (max-width: 900px) {
  .lu-slot .avatar, .lu-slot .avatar svg { width: 34px !important; height: 34px !important; }
  .lu-tok-name { margin-top: 4px; }
  .lu-tok-sub { max-width: 80px; font-size: 10px; gap: 3px; }
  .lu-tok-alts { font-size: 10px; }
}

/* Bank = im Spieltagskader (goldener Streifen), Reserve = ausgegraut */
.lineup-bench-card .lu-chip:not(.lu-chip-empty) { box-shadow: inset 3px 0 0 rgba(255, 207, 77, .75); }
.lineup-reserve-card { background: transparent; border: 1px dashed var(--line); }
.lineup-reserve-card h3 { color: var(--text-dim); }
.lineup-reserve-card .lu-chip { background: rgba(255, 255, 255, .025); border-color: transparent; opacity: .55; transition: opacity .15s; }
.lineup-reserve-card .lu-chip .avatar { filter: grayscale(.85); }
.lineup-reserve-card .lu-chip .ovr-badge { filter: saturate(.3); }
.lineup-reserve-card .lu-chip:hover, .lineup-reserve-card .lu-chip.lu-picked, .lineup-reserve-card .drop-hover .lu-chip { opacity: 1; }
.lineup-reserve-card .lu-chip:hover .avatar, .lineup-reserve-card .lu-chip.lu-picked .avatar { filter: none; }
.lineup-reserve-card .lu-chip:hover .ovr-badge, .lineup-reserve-card .lu-chip.lu-picked .ovr-badge { filter: none; }
@media (max-width: 900px) {
  .lu-tok-sub { max-width: 76px; }
  .lu-tok-alts { max-width: 32px; }
}

/* Eigenschaften bei Talenten und auf dem Markt */
.trait-chip { white-space: nowrap; cursor: help; }
.trait-chip.trait-lead { color: var(--gold); font-weight: 700; }

/* ---------- Formpunkte: Größe zeigt die Stärke der Form ---------- */
.form-dot.good, .form-dot.bad { width: 8px; height: 8px; right: -1px; top: 0; }
.form-dot.great, .form-dot.awful { width: 14px; height: 14px; right: -4px; top: -4px; }
.form-dot.good, .form-dot.great { background: var(--turf); }
.form-dot.bad, .form-dot.awful { background: var(--red); }
.form-dot.great { box-shadow: 0 0 0 2px #10233a, 0 0 8px rgba(52, 227, 160, .9); }
.form-dot.awful { box-shadow: 0 0 0 2px #10233a, 0 0 8px rgba(255, 107, 122, .9); }

/* ---------- Verletzte deutlich abheben ---------- */
.lu-chip.injured {
  opacity: .4; filter: grayscale(.85);
  background: repeating-linear-gradient(135deg, rgba(255, 107, 122, .12) 0 8px, transparent 8px 16px), var(--card-2);
  border-color: rgba(255, 107, 122, .5);
}
.lu-chip.injured-blocking { opacity: 1; filter: none; border: 2px solid var(--red); animation: inj-pulse 1.6s ease-in-out infinite; }
.lu-chip.injured-blocking .avatar, .lu-slot.lu-injured .lu-tok .avatar { filter: grayscale(1) brightness(.75); }
.lu-slot.lu-injured .lu-tok-name, .lu-slot.lu-injured .lu-tok-sub { opacity: .6; }
.lu-slot.lu-injured .lu-tok { animation: inj-pulse 1.6s ease-in-out infinite; border-radius: 50%; }
@keyframes inj-pulse { 50% { box-shadow: 0 0 0 4px rgba(255, 107, 122, .45); } }

/* =========================================================
   Saison-Gala: Saal bei Nacht, zwei Scheinwerfer, Gold
   ========================================================= */
.gala {
  position: fixed; inset: 0; z-index: 5600; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  background: radial-gradient(ellipse 90% 50% at 50% 108%, #3a2a07 0%, #12100c 45%, #06070b 100%);
  color: #f6eedb; opacity: 0; transition: opacity .4s;
}
.gala.in { opacity: 1; }
.gala.out { opacity: 0; }
.gala-beams { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gala-beams i {
  position: absolute; top: -12%; width: 70vw; height: 150vh; transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0%, transparent 166deg, rgba(255, 236, 190, .13) 180deg, transparent 194deg);
  animation: beam-sway 7s ease-in-out infinite alternate; mix-blend-mode: screen;
}
.gala-beams i:first-child { left: -20vw; }
.gala-beams i:last-child { right: -20vw; animation-delay: -3.5s; animation-direction: alternate-reverse; }
@keyframes beam-sway { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.gala.bd-suspense .gala-beams i { animation: beam-focus 3s ease-in forwards; }
.gala.bd-suspense .gala-beams i:last-child { animation-name: beam-focus-r; }
@keyframes beam-focus { to { transform: rotate(-24deg); filter: brightness(1.8); } }
@keyframes beam-focus-r { to { transform: rotate(24deg); filter: brightness(1.8); } }
.gala-floor { position: absolute; left: 0; right: 0; bottom: -30vh; height: 60vh; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, rgba(255, 196, 80, .18), transparent 60%); }

.gala-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; padding-top: calc(14px + env(safe-area-inset-top)); }
.gala-brand { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 18px; color: #d9c79a; white-space: nowrap; }
.gala-brand b { color: var(--gold); }
.gala-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gala-steps span { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; color: rgba(246, 238, 219, .45); border: 1px solid rgba(255, 236, 190, .12); white-space: nowrap; }
.gala-steps span.on { color: #2e1d00; background: linear-gradient(180deg, #ffe08a, var(--gold-deep)); border-color: transparent; }
.gala-steps span.done { color: rgba(246, 238, 219, .75); }
.gala-steps span.done::before { content: '✓ '; color: var(--gold); }
.gala-skip { background: none; border: 1px solid rgba(255, 236, 190, .25); color: #d9c79a; border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gala-skip:hover { color: #fff; border-color: rgba(255, 236, 190, .6); }
.gala-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 16px 12px; overflow-y: auto; min-height: 0; }
.gala-foot { position: relative; z-index: 2; display: flex; justify-content: center; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); min-height: 76px; }
.gala-next { width: auto; min-width: 260px; margin: 0; animation: fade-in .4s both; }

.gala-intro { text-align: center; transition: transform .6s var(--ease-pop), margin .6s; }
.gala-kicker { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; color: #d9c79a; animation: fade-in .6s .2s both; }
.gala-title {
  margin: 6px 0 0; font-family: var(--f-display); font-style: italic; font-weight: 800; letter-spacing: .01em; line-height: 1;
  font-size: clamp(44px, 9vw, 96px); transition: font-size .6s var(--ease-pop);
  background: linear-gradient(180deg, #fff6d6 0%, #ffd76a 45%, #c58a1a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 190, 60, .25)); animation: title-in .9s var(--ease-pop) both;
}
@keyframes title-in { from { opacity: 0; transform: scale(1.35); filter: blur(10px); } to { opacity: 1; transform: none; } }
.gala-intro.small .gala-title { font-size: clamp(30px, 5vw, 48px); }
.gala-intro.small .gala-kicker { font-size: 14px; }
.gala-empty { color: #d9c79a; margin-top: 30px; }

/* Podest */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: 26px; width: 100%; }
.pod { width: clamp(104px, 29vw, 210px); display: flex; flex-direction: column; align-items: center; transition: opacity .4s, filter .4s; }
.pod-card {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; margin-bottom: 10px; text-align: center;
  border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 236, 190, .14);
  opacity: 0; transform: translateY(24px) scale(.88); transition: opacity .5s, transform .7s var(--ease-pop);
}
.pod.revealed .pod-card { opacity: 1; transform: none; }
.pod-r1 .pod-card { border-color: rgba(255, 207, 77, .65); box-shadow: 0 0 50px rgba(255, 190, 60, .22); }
.pod.mine .pod-card { border-color: var(--turf); box-shadow: 0 0 40px rgba(52, 227, 160, .25); }
.pod-mine { position: absolute; top: -11px; font-size: 11px; font-weight: 800; color: #04261a; background: var(--turf); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pod-av .avatar { box-shadow: 0 0 0 3px rgba(255, 236, 190, .35); }
.pod-r1 .pod-av .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(255, 207, 77, .5); }
.pod-name { font-weight: 700; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.pod-club { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: #c9bb96; max-width: 100%; }
.pod-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-val { font-size: 13px; color: #d9c79a; margin-top: 2px; }
.pod-val b { font-family: var(--f-display); font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.pod-r1 .pod-val b { font-size: 44px; }
.pod-block {
  width: 100%; height: 0; border-radius: 12px 12px 4px 4px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #2b2f3b, #12151d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: height .9s var(--ease-pop);
}
.pod-block span { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 48px; line-height: 1.3; }
.pod-r1 .pod-block { background: linear-gradient(180deg, #4a3810, #1a1408); box-shadow: inset 0 2px 0 rgba(255, 207, 77, .6); }
.pod-r1 .pod-block span { color: var(--gold); }
.pod-r2 .pod-block span { color: #d3dbe6; }
.pod-r3 .pod-block span { color: #e0a370; }
.podium.up .pod-r1 .pod-block { height: 150px; transition-delay: .3s; }
.podium.up .pod-r2 .pod-block { height: 110px; transition-delay: .15s; }
.podium.up .pod-r3 .pod-block { height: 80px; }
.podium.suspense .pod:not(.pod-r1) { opacity: .35; filter: saturate(.4); }
.podium.suspense .pod-r1 .pod-block { animation: block-glow .5s ease-in-out infinite alternate; }
@keyframes block-glow { from { box-shadow: inset 0 2px 0 rgba(255, 207, 77, .6), 0 0 20px rgba(255, 190, 60, .2); } to { box-shadow: inset 0 2px 0 rgba(255, 207, 77, .9), 0 0 70px rgba(255, 190, 60, .6); } }

/* Goldener Ball */
.bd-ball { display: flex; justify-content: center; filter: drop-shadow(0 0 30px rgba(255, 190, 60, .45)); animation: art-in .9s var(--ease-pop) both; transition: opacity .5s, max-height .6s; max-height: 170px; }
.bd-ball .trophy-svg { animation: float-y 4s ease-in-out infinite; }
.bd-intro.small .bd-ball { opacity: 0; max-height: 0; overflow: hidden; }
.bd-noms { margin-top: 12px; font-size: 14px; color: #d9c79a; animation: fade-in .6s .6s both; }
.bd-noms b { color: var(--turf); }
.bd-board { width: min(640px, 100%); margin-top: 6px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-pop); }
.bd-board.up { opacity: 1; transform: none; }
.bd-announce { text-align: center; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: clamp(24px, 4.5vw, 34px); color: var(--gold); min-height: 44px; margin-bottom: 8px; }
.bd-announce.pop { animation: stamp .45s var(--ease-pop); }
.bd-list { display: flex; flex-direction: column; gap: 6px; transition: opacity .6s, filter .6s; }
.gala.bd-suspense .bd-list { opacity: .18; filter: blur(1.5px); }
.gala.bd-suspense .bd-announce { animation: suspense-pulse .7s ease-in-out infinite alternate; }
@keyframes suspense-pulse { from { transform: scale(1); text-shadow: none; } to { transform: scale(1.06); text-shadow: 0 0 24px rgba(255, 190, 60, .6); } }
.bd-row {
  display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 236, 190, .08); animation: row-in .5s var(--ease-pop) both;
}
@keyframes row-in { from { opacity: 0; transform: translateX(-30px) scale(.96); } to { opacity: 1; transform: none; } }
.bd-rank { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 24px; color: #c9bb96; text-align: center; }
.bd-av { display: inline-flex; }
.bd-who { display: flex; flex-direction: column; min-width: 0; }
.bd-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-club { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #c9bb96; white-space: nowrap; overflow: hidden; }
.bd-row.mine { background: rgba(52, 227, 160, .1); border-color: rgba(52, 227, 160, .6); }
.bd-row.mine .bd-name::after { content: ' · Dein Spieler'; color: var(--turf); font-size: 12px; }
.bd-row.big { grid-template-columns: 40px 48px minmax(0, 1fr) auto; padding: 10px 14px; }
.bd-row.big .bd-name { font-size: 18px; }
.bd-row.big .bd-rank { font-size: 34px; }
.bd-row.r2 { border-color: rgba(211, 219, 230, .55); background: linear-gradient(90deg, rgba(211, 219, 230, .14), rgba(255, 255, 255, .03)); }
.bd-row.r2 .bd-rank { color: #e6ecf2; }
.bd-row.r3 { border-color: rgba(224, 163, 112, .55); background: linear-gradient(90deg, rgba(224, 163, 112, .14), rgba(255, 255, 255, .03)); }
.bd-row.r3 .bd-rank { color: #e0a370; }

.bd-winner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.bd-halo {
  position: absolute; top: -60px; left: 50%; width: 760px; height: 760px; margin-left: -380px; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, .16) 0deg 5deg, transparent 5deg 15deg);
  mask-image: radial-gradient(circle, #000 8%, transparent 58%); -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 58%);
  animation: rays 40s linear infinite, fade-in 1s both;
}
.bd-winner-ball { margin-bottom: -26px; position: relative; z-index: 1; filter: drop-shadow(0 0 24px rgba(255, 190, 60, .6)); animation: art-in .8s var(--ease-pop) both; }
.bd-winner-card { perspective: 900px; }
.bd-winner-card .pcard { width: 176px; animation: card-reveal 1s var(--ease-pop) .25s both; box-shadow: 0 0 0 2px rgba(255, 236, 190, .6), 0 0 60px rgba(255, 190, 60, .45), 0 20px 40px rgba(0, 0, 0, .5); }
@keyframes card-reveal { from { opacity: 0; transform: rotateY(100deg) scale(.7); } to { opacity: 1; transform: none; } }
.bd-winner-name { margin-top: 14px; font-size: clamp(36px, 7vw, 72px); animation: stamp .7s var(--ease-pop) .8s both; }
.bd-winner-club { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 16px; color: #d9c79a; animation: fade-in .5s 1.1s both; }
.bd-winner-sub { margin: 10px 0 0; font-size: 18px; color: #f6eedb; animation: fade-in .5s 1.3s both; }
.bd-winner.mine .bd-winner-sub { color: var(--turf); font-weight: 800; font-size: 20px; }
.bd-top3 { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; animation: fade-in .5s 1.6s both; }
.bd-top3 span { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 236, 190, .18); color: #d9c79a; }
.bd-top3 span.mine { border-color: var(--turf); color: var(--turf); }
.bd-top3 b { color: var(--gold); }

.gala.skipping *, .gala.skipping *::before, .gala.skipping *::after { transition-duration: .01ms !important; animation-delay: 0s !important; }

@media (max-width: 700px) {
  .gala-top { flex-wrap: wrap; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .gala-steps { order: 3; width: 100%; }
  .gala-steps span { font-size: 12px; padding: 3px 9px; }
  .gala-stage { justify-content: flex-start; padding-top: 14px; }
  .podium { margin-top: 18px; gap: 6px; }
  .pod-card { padding: 12px 4px 10px; border-radius: 14px; }
  .pod-name { font-size: 13px; }
  .pod-val b { font-size: 26px; }
  .pod-r1 .pod-val b { font-size: 34px; }
  .podium.up .pod-r1 .pod-block { height: 120px; }
  .podium.up .pod-r2 .pod-block { height: 86px; }
  .podium.up .pod-r3 .pod-block { height: 62px; }
  .pod-block span { font-size: 38px; }
  .bd-row { padding: 6px 10px; gap: 8px; }
  .bd-row.big .bd-name { font-size: 16px; }
  .gala-next { min-width: 0; width: 100%; }
}
/* Gala: sicher zentrieren (bei viel Inhalt wird gescrollt statt abgeschnitten), Titel passt aufs Handy */
.gala-stage { justify-content: flex-start; }
.gala-stage > :first-child { margin-top: auto; }
.gala-stage > :last-child { margin-bottom: auto; }
@media (max-width: 700px) {
  .gala-title { font-size: clamp(32px, 10.5vw, 96px); }
  .gala-intro.small .gala-title { font-size: clamp(26px, 8vw, 48px); }
  .bd-winner-name { font-size: clamp(32px, 10vw, 72px); }
  .gala-stage { justify-content: flex-start; padding-top: 8px; }
}

/* Aufstellung: Verletzte als eigene Zeile im Reserve-Block */
.lu-unavail-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255, 107, 122, .35); }
.lu-unavail-title { font-size: 13px; font-weight: 700; color: #ffb3bb; margin: 0 0 4px 2px; }

/* Stärke-Plus seit Saisonbeginn (Kader) */
.ovr-gain { margin-left: 6px; font-size: .85em; font-weight: 700; }
.ovr-gain.up { color: var(--turf); }
.ovr-gain.down { color: var(--red); }
.lu-unavail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lu-unavail-title { margin: 0; white-space: nowrap; }
.lu-unavail-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lu-unavail-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; cursor: pointer;
  background: repeating-linear-gradient(135deg, rgba(255, 107, 122, .1) 0 6px, transparent 6px 12px), var(--card-2);
  border: 1px solid rgba(255, 107, 122, .4); color: var(--text); font-size: 12px; opacity: .8;
}
.lu-unavail-pill:hover { opacity: 1; }
.lu-unavail-pill .avatar { filter: grayscale(1); }
.lu-unavail-pill .pos-tag { font-size: 10px; }
.lu-unavail-ovr { color: var(--text-dim); font-weight: 700; }
.lu-unavail-days { color: #ffb3bb; font-weight: 700; }

/* Ersatzbank kompakter, damit die Aufstellung ohne Scrollen auf einen Bildschirm passt */
@media (min-width: 901px) {
  .lineup-bench-card { padding-top: 12px; padding-bottom: 12px; }
  .lineup-bench-card .lu-strip-col { gap: 4px; }
  .lineup-bench-card .lu-strip-col .lu-chip { padding: 2px 8px 2px 3px; gap: 6px; min-height: 0; }
  .lineup-bench-card .lu-chip-av .avatar, .lineup-bench-card .lu-chip-av .avatar svg { width: 28px !important; height: 28px !important; }
  .lineup-bench-card .lu-chip-text { gap: 0; }
  .lineup-bench-card .lu-chip-name { font-size: 13px; line-height: 1.2; }
  .lineup-bench-card .lu-chip-meta { font-size: 11px; line-height: 1.2; }
  .lineup-bench-card .lu-chip-empty { min-height: 34px; }
  #tab-lineup { padding-bottom: 0; }
}
@media (min-width: 901px) {
  .lineup-bench-card .lu-chip-vals { flex-direction: row; align-items: center; gap: 6px; }
  #content:has(#tab-lineup:not(.hidden)) { padding-bottom: 16px; }
}

/* ---------- Positionsfarben: TW orange, Abwehr gelb, Mittelfeld grün, Sturm blau ---------- */
.pos-tag.pg-gk  { background: rgba(255, 159, 67, .2);  color: #ffb26b; box-shadow: inset 0 0 0 1px rgba(255, 159, 67, .45); }
.pos-tag.pg-def { background: rgba(245, 213, 71, .18); color: #f5d547; box-shadow: inset 0 0 0 1px rgba(245, 213, 71, .4); }
.pos-tag.pg-mid { background: rgba(52, 227, 160, .16); color: #4fe8ae; box-shadow: inset 0 0 0 1px rgba(52, 227, 160, .38); }
.pos-tag.pg-att { background: rgba(90, 169, 255, .2);  color: #7dbbff; box-shadow: inset 0 0 0 1px rgba(90, 169, 255, .45); }
.pos-tag.pos-alt.pg-gk, .pos-tag.pos-alt.pg-def, .pos-tag.pos-alt.pg-mid, .pos-tag.pos-alt.pg-att { opacity: .7; }
/* Positionslabel unter den Spielern auf dem Feld */
.lu-tok-name b.pg-gk  { background: #e8862e; color: #1d1205; }
.lu-tok-name b.pg-def { background: #e6c235; color: #1d1805; }
.lu-tok-name b.pg-mid { background: #22b67f; color: #04150e; }
.lu-tok-name b.pg-att { background: #3d8ee8; color: #fff; }
/* Ersatzbank: Mittelweg zwischen kompakt und luftig */
@media (min-width: 901px) {
  .lineup-bench-card .lu-strip-col { gap: 6px; }
  .lineup-bench-card .lu-strip-col .lu-chip { padding: 5px 10px 5px 5px; gap: 8px; }
  .lineup-bench-card .lu-chip-av .avatar, .lineup-bench-card .lu-chip-av .avatar svg { width: 32px !important; height: 32px !important; }
  .lineup-bench-card .lu-chip-text { gap: 2px; }
  .lineup-bench-card .lu-chip-name { font-size: 14px; }
  .lineup-bench-card .lu-chip-meta { font-size: 12px; }
  .lineup-bench-card .lu-chip-empty { min-height: 42px; }
}

/* Form als Pfeil am Spielerbild (statt farbiger Punkt) */
.form-dot.form-arrow {
  width: 16px !important; height: 16px !important; right: -5px !important; top: -5px !important;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 11px; font-weight: 900; line-height: 1; background: #10233a !important;
  box-shadow: 0 0 0 1.5px currentColor, 0 1px 3px rgba(0, 0, 0, .5) !important;
}
.form-dot.form-arrow.great { color: var(--turf); box-shadow: 0 0 0 1.5px currentColor, 0 0 8px rgba(52, 227, 160, .7) !important; }
.form-dot.form-arrow.good { color: #9fefc9; }
.form-dot.form-arrow.bad { color: #ffab6b; }
.form-dot.form-arrow.awful { color: var(--red); box-shadow: 0 0 0 1.5px currentColor, 0 0 8px rgba(255, 107, 122, .7) !important; }

/* Goldener Ball: Platz 2 und 3 nach dem Sieger als Podest */
.bd-podium { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.bd-pod {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; min-width: 220px;
  background: rgba(255, 236, 190, .06); border: 1px solid rgba(255, 236, 190, .18); color: #f6eedb;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .4s, transform .5s var(--ease-pop);
}
.bd-pod.shown { opacity: 1; transform: none; }
.gala.skipping .bd-pod { opacity: 1; transform: none; transition: none; }
.bd-pod.mine { border-color: var(--turf); box-shadow: 0 0 18px rgba(52, 227, 160, .25); }
.bd-pod-rank { font-family: var(--f-display); font-weight: 800; font-size: 26px; width: 26px; text-align: center; }
.bd-pod.r2 .bd-pod-rank { color: #d9dee8; }
.bd-pod.r3 .bd-pod-rank { color: #d89a5b; }
.bd-pod-who { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.bd-pod-who b { font-size: 14px; }
.bd-pod-who span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #d9c79a; }

/* Spielerentwicklung: feste Höhen, damit das Fenster während der Animation nicht springt */
.upg-tier-label { min-height: 20px; line-height: 16px; }
.upg-tier-label.is-empty { visibility: hidden; animation: none; }
.upg-delta { line-height: 24px; height: 24px; }

/* Jugendsichtung: Talent streichen */
.cand-dismiss {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card-2); color: var(--text-dim); font-size: 12px; cursor: pointer; line-height: 1;
}
.cand-dismiss:hover { color: #fff; border-color: var(--red); background: rgba(255, 107, 122, .25); }
.candidate-card .candidate-head-text { padding-right: 24px; min-width: 0; }

/* NEU-Markierung für frisch eingetroffene Talente und Marktspieler */
.new-tag {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; vertical-align: 1px;
  font-family: var(--f-display); font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: #04261a; background: var(--turf); box-shadow: 0 0 10px rgba(52, 227, 160, .45);
  animation: new-pulse 1.8s ease-in-out infinite;
}
@keyframes new-pulse { 50% { box-shadow: 0 0 2px rgba(52, 227, 160, .2); } }
/* Ersatzbank: Potenzial links, Gesamtstärke ganz rechts */
@media (min-width: 901px) {
  .lineup-bench-card .lu-chip-vals .lu-chip-pot { order: -1; }
  .lineup-bench-card .lu-chip-vals { margin-left: auto; }
}

/* Transfermarkt: neue Spieler grün umrandet */
.candidate-card.market-card.is-new { border: 2px solid var(--turf); box-shadow: 0 0 0 3px rgba(52, 227, 160, .15), 0 0 18px rgba(52, 227, 160, .25); }
@media (min-width: 901px) {
  .lineup-bench-card .lu-chip-vals { justify-content: flex-end; }
}

/* Unter-Tabs mit Neuigkeiten (Transfers / Jugend) grün umranden */
.subnav-btn.has-news { box-shadow: inset 0 0 0 2px var(--turf), 0 0 12px rgba(52, 227, 160, .35); }
.lu-crown { font-style: normal; margin-right: 3px; font-size: .9em; }
.lu-crown { margin-right: 0; margin-left: 3px; }
/* Startelf-Kachel: Krone/Fokus nicht abschneiden, Alter dazu */
.lu-tok-name .lu-crown { flex-shrink: 0; margin-left: 2px; }
.lu-tok-age { color: rgba(255, 255, 255, .8); flex-shrink: 0; }

/* Transfermarkt bei geschlossenem Fenster */
.market-closed { text-align: center; padding: 32px 20px; max-width: 560px; margin: 12px auto; }
.market-closed-icon { font-size: 40px; margin-bottom: 6px; }
.market-closed h3 { margin: 0 0 8px; }
