/* =====================================================================
   Bundesliga-Spiel 6-0 — Build-UI Styles (7a0-Theme)
   ===================================================================== */

/* --- Fonts (per <link> in index.html) --- */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Variables --- */
:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --red: #d70000;
  --red-hover: #ff1a1a;
  --yellow: #ffd60a;
  --mint: #5dcaa5;
  --white: #f0f0f0;
  --gray: #888;
  --gray2: #555;
  --pitch-dark: #1a4d2e;
  --pitch-light: #1f5234;
  --slot-filled: #d70000;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow Condensed', sans-serif;
  --footer-btn-bg: rgba(255,255,255,0.08);
  --footer-btn-border: rgba(255,255,255,0.12);
  --footer-btn-hover: rgba(255,255,255,0.14);
}


html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.3;
}

body {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ============================
   HEADER (7a0-Stil)
   ============================ */
.site-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px 10px;
}
.header-logo {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--red);
  letter-spacing: 2px;
  line-height: 1;
}
.header-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 3px;
  line-height: 1.1;
}
.header-tagline {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Roter Trennstrich */
.header-divider {
  height: 2px;
  background: var(--red);
  margin: 0 12px 6px;
  border-radius: 1px;
}

/* ============================
   LAYOUT: 3-Spalten-Grid (nimmt restlichen Platz)
   ============================ */
.build-layout {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

/* ============================
   LINKS-SPALTE
   ============================ */
.left-panel {
  background: var(--bg2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* Panel-Sektionen */
.panel-section h3 {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

/* Formation Grid */
.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.formation-btn {
  padding: 3px 4px;
  background: var(--bg3);
  color: var(--gray);
  border: 1px solid var(--bg3);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.1s;
}
.formation-btn:hover:not(:disabled) {
  border-color: var(--gray2);
  color: var(--white);
}
.formation-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.formation-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Mode Grid */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.mode-btn {
  padding: 3px 4px;
  background: var(--bg3);
  color: var(--gray);
  border: 1px solid var(--bg3);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.1s;
}
.mode-btn:hover:not(:disabled) {
  border-color: var(--gray2);
  color: var(--white);
}
.mode-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Pre-Game Boxen (ausblendbar nach Spielstart) */
.pre-game-box.hidden {
  display: none;
}


.mode-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ============================
   TEAM-CARD (7a0-Stil)
   ============================ */
.team-card {
  background: var(--bg3);
  border: 1px solid var(--bg3);
  border-radius: 4px;
  padding: 20px;
  margin-top: 6px;
  margin-bottom: 12px;
}
.team-card.placeholder {
  opacity: 0.6;
}
.team-drawn-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}
.team-card-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.team-abbr {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red);
  letter-spacing: 2px;
  line-height: 1;
}
.team-fullname {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.team-season {
  font-size: 16px;
  color: var(--red);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ============================
   ROLL BUTTON
   ============================ */
.roll-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.roll-btn:hover { background: var(--red-hover); }
.roll-btn .dice-icon { font-size: 18px; }
.roll-btn:disabled { opacity: 0.5; cursor: default; background: var(--bg3); }

/* ============================
   REROLL-SEKTION (7a0-Stil)
   ============================ */
.reroll-hint {
  text-align: center;
  font-size: 12px;
  color: var(--gray2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.reroll-btn {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg3);
  color: var(--gray);
  border: 1px solid var(--gray2);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
}
.reroll-btn:hover:not(:disabled) {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.reroll-btn:disabled { opacity: 0.3; cursor: default; }

/* Skip Button */
.skip-btn {
  width: 100%;
  padding: 5px 8px;
  background: rgba(255,214,10,0.15);
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.skip-btn:hover { background: var(--yellow); color: #000; }

/* Wurf-Status */
.throw-status {
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ============================
   CUP-PANEL
   ============================ */
.cup-panel {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cup-header {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--mint);
  text-align: center;
  letter-spacing: 2px;
  padding: 4px 0;
  border-bottom: 1px solid var(--bg3);
}
.cup-matches {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}
.cup-match {
  background: var(--bg3);
  border-radius: 4px;
  padding: 6px 8px;
  border-left: 3px solid var(--gray2);
}
.cup-match.cup-win {
  border-left-color: var(--mint);
}
.cup-match.cup-loss {
  border-left-color: var(--red);
}
.cup-match.cup-upcoming {
  border-left-color: var(--gray2);
  opacity: 0.5;
}
.cup-round-label {
  font-size: 9px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.cup-score-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.cup-team {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cup-team-my { color: var(--white); }
.cup-team-opp { color: var(--gray); text-align: right; }
.cup-score {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--yellow);
  flex-shrink: 0;
}
.cup-detail {
  font-size: 10px;
  color: var(--gray2);
  margin-top: 1px;
}
.cup-final {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg3);
  border-radius: 4px;
  margin-top: 4px;
}
.cup-final-icon {
  font-size: 32px;
  margin-bottom: 4px;
}
.cup-final-text {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
}
.cup-champion .cup-final-text { color: var(--yellow); }
.cup-eliminated .cup-final-text { color: var(--red); }
.cup-final-sub {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}
.cup-reset-btn {
  width: 100%;
  padding: 10px 8px;
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s;
}
.cup-reset-btn:hover { background: #ffe44d; }

/* Slot-Liste Team-Tag */
.slot-team-tag {
  font-size: 9px;
  color: var(--gray);
  margin-left: 4px;
}

/* Cup-Start Button */
.cup-btn {
  width: 100%;
  padding: 10px 8px;
  background: var(--mint);
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 8px;
}
.cup-btn:hover { background: #7de0b8; }

/* ============================
   SPIELERLISTE (7a0-Stil)
   ============================ */
.player-list {
  margin-top: 4px;
}
.player-list-header {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 0 4px;
  border-bottom: 1px solid var(--bg3);
}
.player-list-scroll {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}
.player-list-empty {
  text-align: center;
  padding: 10px 0;
  color: var(--gray2);
  font-size: 11px;
}
.player-list-empty.no-valid {
  color: var(--yellow) !important;
  font-weight: 500;
}
.player-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bg3);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 11px;
}
.player-list-item:last-child {
  border-bottom: none;
}
.player-list-item:hover {
  background: rgba(215,0,0,0.12);
}
.player-list-item.selected {
  background: rgba(215,0,0,0.15);
  border-left: 3px solid #d70000;
}
.player-list-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.player-list-item.disabled:hover {
  background: transparent;
}
.player-list-item .pl-number {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gray2);
  width: 30px;
  flex-shrink: 0;
  text-align: right;
}
.player-list-item .pl-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
  font-size: 17px;
}
.player-list-item .pl-pos {
  font-size: 13px;
  color: #5dcaa5;
  flex-shrink: 0;
  max-width: 140px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-list-item .pl-rating {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--yellow);
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

/* ============================
   MITTE-SPALTE — PITCH (füllt 1fr)
   ============================ */
.pitch-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Pitch Background mit Streifen + Rand — nimmt 100% Breite */
.pitch {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 620px;
  min-height: 480px;
  position: relative;
  background: repeating-linear-gradient(
    180deg,
    #1a4d2e 0,
    #1a4d2e 38px,
    #1f5234 38px,
    #1f5234 76px
  );
  border: 2px solid rgba(255,255,255,.4);
}

/* Pitch-Markierungen Overlay */
.pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Mittellinie — horizontal über gesamte Pitch-Breite */
.pitch-midline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,.5);
  transform: translateY(-50%);
}

/* Mittelkreis (90px) */
.pitch-center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Mittelpunkt (8px) */
.pitch-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Strafraum (eigenes Tor - unten) */
.pitch-penalty-box {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 180px;
  height: 80px;
  border: 2px solid rgba(255,255,255,.5);
  border-bottom: none;
  transform: translateX(-50%);
}

/* Strafraum (gegnerisch - oben) */
.pitch-penalty-box-top {
  position: absolute;
  left: 50%;
  top: 0;
  width: 180px;
  height: 80px;
  border: 2px solid rgba(255,255,255,.5);
  border-top: none;
  transform: translateX(-50%);
}

/* Tor (eigen) */
.pitch-goal {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 12px;
  border: 3px solid rgba(255,255,255,0.7);
  border-bottom: none;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.05);
}

/* Tor (gegnerisch) */
.pitch-goal-top {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60px;
  height: 12px;
  border: 3px solid rgba(255,255,255,0.7);
  border-top: none;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.05);
}

/* Strafstoßpunkt (eigen — unten) */
.pitch-pen-spot {
  position: absolute;
  left: 50%;
  top: 92%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Strafstoßpunkt (gegnerisch — oben) */
.pitch-pen-spot-top {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Strafraum-Halbkreis (gegnerisch — oben, nach unten gewölbt) */
.pitch-arc-top {
  position: absolute;
  left: 50%;
  top: 80px;
  width: 140px;
  height: 35px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-top: none;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Strafraum-Halbkreis (eigen — unten, nach oben gewölbt) */
.pitch-arc-bottom {
  position: absolute;
  left: 50%;
  bottom: 80px;
  width: 140px;
  height: 35px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Eckfahnen — 12px Viertelkreise in den 4 Ecken */
.pitch-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.5);
  pointer-events: none;
}
.pitch-corner.tl { left: -2px;  top: -2px;  border-radius: 0 0 100% 0; border-top: none; border-left: none; }
.pitch-corner.tr { right: -2px; top: -2px;  border-radius: 0 0 0 100%; border-top: none; border-right: none; }
.pitch-corner.bl { left: -2px;  bottom: -2px; border-radius: 0 100% 0 0; border-bottom: none; border-left: none; }
.pitch-corner.br { right: -2px; bottom: -2px; border-radius: 100% 0 0 0; border-bottom: none; border-right: none; }

/* ============================
   SLOTS
   ============================ */
.slot-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slot {
  position: absolute;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.15s;
}

/* Slot-Kreis (leer) — grünlicher Tint */
.slot-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.6);
  background: rgba(26,77,46,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.slot-circle .slot-label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

/* Slot gefüllt — Rating im Label, Namen drunter */
.slot.filled .slot-circle {
  border: 2px solid var(--red);
  background: var(--slot-filled);
  box-shadow: 0 0 8px rgba(215,0,0,0.3);
}
.slot.filled .slot-circle .slot-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  display: flex;
}

/* Slot Hover (leer) */
.slot:hover .slot-circle {
  border-color: var(--yellow);
  background: rgba(255,214,10,0.08);
}

/* Slot Highlighted (verfügbar bei Spielerauswahl) */
.slot.highlighted .slot-circle {
  border-color: var(--yellow) !important;
  background: rgba(255,214,10,0.2) !important;
  box-shadow: 0 0 14px rgba(255,214,10,0.4);
  animation: pulse-glow 0.8s infinite alternate;
}
@keyframes pulse-glow {
  from { box-shadow: 0 0 8px rgba(255,214,10,0.3); }
  to   { box-shadow: 0 0 18px rgba(255,214,10,0.6); }
}

/* Spieler-Name unter Slot */
.slot-player-name {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  pointer-events: none;
}

/* Gegner-Overlay auf dem Pitch (Cup-Modus) */
.slot.cup-opponent .slot-circle {
  outline: 2px solid rgba(255,80,80,0.6);
  outline-offset: 2px;
}
.slot-opp-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,120,120,0.9);
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  pointer-events: none;
}

/* ============================
   RECHTS-SPALTE
   ============================ */
.right-panel {
  background: var(--bg2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.score-box {
  background: var(--bg3);
  border-radius: 4px;
  padding: 6px 8px;
  text-align: center;
}
.score-box .score-counter {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 2px;
}
.score-box .score-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -1px;
}

/* Slot-Liste */
.slot-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slot-list-item {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  background: var(--bg3);
  border-radius: 3px;
  gap: 6px;
  font-size: 13px;
}
.slot-list-item .slot-list-name {
  font-family: var(--font-display);
  font-size: 14px;
  width: 28px;
  color: var(--gray);
  flex-shrink: 0;
}
.slot-list-item .slot-list-player {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-list-item .slot-list-rating {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--yellow);
  width: 24px;
  text-align: right;
}
.slot-list-item.empty .slot-list-player {
  color: var(--gray2);
  font-style: italic;
  font-size: 13px;
}
.slot-list-item.empty .slot-list-rating { color: var(--gray2); }
.slot-list-item.filled {
  border-left: 2px solid var(--red);
}

/* Power Summen */
.power-box {
  background: var(--bg3);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  gap: 8px;
}
.power-item {
  flex: 1;
  text-align: center;
}
.power-item .power-value {
  font-family: var(--font-display);
  font-size: 24px;
}
.power-item .power-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.power-item.attack .power-value { color: var(--yellow); }
.power-item.defense .power-value { color: var(--mint); }

/* ============================
   FOOTER (7a0-Stil)
   ============================ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  border-top: 1px solid var(--bg3);
  position: relative;
}
.footer-meta {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.5px;
}
.footer-actions {
  display: flex;
  gap: 4px;
}
.footer-btn {
  padding: 2px 8px;
  background: var(--bg3);
  color: var(--gray);
  border: 1px solid var(--bg3);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.1s;
}
.footer-btn:hover {
  border-color: var(--gray2);
  color: var(--white);
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray2); border-radius: 2px; }

/* ============================
   CUP-MODAL
   ============================ */
.cup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cup-modal {
  background: #0f0f0f;
  border: 1px solid #d70000;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  border-radius: 8px;
}
.cup-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.cup-modal-close:hover { color: var(--white); }
.cup-modal-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg3);
}
.cup-modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--red);
  letter-spacing: 2px;
  margin: 0;
}
.cup-modal-tagline {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cup-modal-matches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.modal-match {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg2);
  border-left: 3px solid var(--bg3);
  border-radius: 4px;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-match.modal-win { border-left-color: #2ecc71; }
.modal-match.modal-loss { border-left-color: #e74c3c; }
.modal-match.modal-upcoming { border-left-color: var(--gray2); opacity: 0.4; }
.modal-round-label {
  font-size: 9px;
  color: var(--gray);
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.modal-opponent {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.modal-opp-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-opp-season-inline {
  font-size: 12px;
  color: var(--gray2);
  margin-left: 4px;
}
.modal-score {
  font-family: var(--font-display);
  font-size: 24px;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}
.modal-win .modal-score { color: #2ecc71; }
.modal-loss .modal-score { color: #e74c3c; }
.modal-detail {
  font-size: 10px;
  color: var(--gray2);
  flex-shrink: 0;
}

/* ============================
   CUP-MATCH SCORE-WRAP + SCORERS
   ============================ */
.modal-score-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 50px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.modal-sim-ball {
  font-size: 14px;
  animation: bounce 0.5s infinite;
}
.modal-scorers {
  font-size: 11px;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--gray2);
  width: 100%;
  text-align: center;
  padding-top: 4px;
  display: none;
  line-height: 1.3;
}
.modal-scorers-live { display: block !important; }
.scorer-entry {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  font-size: 11px;
  color: var(--gray2);
  padding: 2px 0;
}
.scorer-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  font-size: 11px;
  color: var(--gray2);
  padding: 2px 0;
}
.st-label { font-weight: 700; letter-spacing: 0.5px; font-size: 11px; }
.st-ball { font-size: 13px; }
.st-name { font-size: 11px; color: var(--gray2); }
.scorers-home { color: #ccc; }
.scorers-away { color: var(--gray); }

/* ============================
   CUP-MATCH ANIMATION STATES
   ============================ */
/* Simulating: pulsierender Score + bounce Ball */
.modal-match.modal-simulating .modal-score {
  animation: pulse 0.8s infinite;
  color: var(--gray);
}
.modal-match.modal-simulating {
  border-left-color: var(--gray2);
}

/* Score-Reveal: Pop-In */
.modal-score-pop {
  animation: popIn 0.3s ease-out;
}

/* Scorers-Reveal: Fade-In */
.modal-scorers-reveal {
  display: block !important;
  animation: fadeIn 0.4s ease-out;
}

/* ET-Flash: n.V. Marker flackert */
.modal-et-flash .modal-detail {
  color: var(--yellow);
  animation: flash 0.4s infinite;
}

/* ============================
   PENALTY-BLOCK
   ============================ */
.penalty-block {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  width: 100%;
}
.penalty-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-align: center;
}
.penalty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.penalty-row .team {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  width: 28px;
  text-align: right;
  color: var(--gray2);
}
.penalty-row .dots {
  display: flex;
  gap: 7px;
  flex: 1;
  justify-content: center;
}
.penalty-row .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: opacity 0.15s;
}
.penalty-row .dot.scored {
  background: #5dcaa5;
}
.penalty-row .dot.missed {
  background: transparent;
  border: 2px solid #d70000;
}
.penalty-row .score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  width: 16px;
  text-align: center;
}
.penalty-row .score.won { color: #5dcaa5; }
.penalty-row .score.lost { color: #d70000; }

/* Keyframes */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.modal-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--bg2);
  border-radius: 6px;
}
.modal-stat {
  text-align: center;
  min-width: 80px;
}
.modal-stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
}
.modal-stat-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-btn-outline {
  background: transparent;
  border: 1px solid var(--gray2);
  color: var(--gray);
}
.modal-btn-outline:hover { background: var(--bg3); color: var(--white); }
.modal-btn-share { color: var(--white); border-color: var(--gray); }
.modal-btn-share:hover { background: var(--bg3); }
.modal-btn-primary {
  background: var(--red);
  color: var(--white);
}
.modal-btn-primary:hover { background: #ff1a1a; }

/* ============================
   CUP-MODE-TOGGLE
   ============================ */
.cup-mode-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.cup-mode-btn {
  padding: 8px 16px;
  border: 1px solid #d70000;
  background: transparent;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.cup-mode-btn.active {
  background: #d70000;
}
.cup-mode-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ============================
   CUP-MANUAL-BUTTON
   ============================ */
.cup-modal-footer {
  margin-top: 16px;
}
.cup-manual-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #d70000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.cup-manual-btn:hover { background: #ff1a1a; }
.cup-manual-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ============================
   CUP-TOAST
   ============================ */
.cup-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg3);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.cup-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   SHARE-OVERLAY
   ============================ */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-modal {
  background: #0f0f0f;
  border: 1px solid var(--gray);
  max-width: 500px;
  width: 90%;
  padding: 32px;
  position: relative;
  border-radius: 8px;
  text-align: center;
}
.share-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.share-modal-close:hover { color: var(--white); }
.share-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.share-modal-text {
  font-size: 16px;
  color: var(--white);
  line-height: 1.4;
  padding: 12px;
  background: var(--bg2);
  border-radius: 4px;
  margin-bottom: 8px;
}
.share-modal-url {
  font-size: 12px;
  color: var(--gray2);
  margin-bottom: 16px;
}
.share-modal-textarea {
  width: 100%;
  background: var(--bg3);
  color: var(--white);
  border: 1px solid var(--gray2);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  resize: none;
  margin-bottom: 12px;
  outline: none;
}
.share-modal-textarea:focus {
  border-color: var(--red);
}
.share-modal-copy {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.share-modal-copy:hover { background: var(--red-hover); }
.share-modal-hint {
  font-size: 11px;
  color: var(--gray2);
  margin-top: 8px;
}
.share-modal-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.share-btn-social {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  background: var(--bg2);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.share-btn-social:hover {
  background: var(--bg3);
  border-color: var(--red);
}

/* ============================
   SHARE MODAL V2 (Screenshot)
   ============================ */
.share-modal-new {
  max-width: 720px;
  width: 90vw;
  padding: 24px;
}
.share-preview-wrap {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
  line-height: 0;
}
.share-preview-placeholder {
  font-size: 14px;
  color: var(--gray2);
  padding: 20px;
}
.share-preview-img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.share-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.share-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  color: #fff;
}
.share-btn-share {
  background: var(--red);
}
.share-btn-share:hover {
  background: var(--red-hover);
}
.share-btn-dl {
  background: var(--red);
}
.share-btn-dl:hover {
  background: var(--red-hover);
}
.share-btn-copy {
  background: var(--gray);
}
.share-btn-copy:hover {
  background: var(--gray2);
}

/* =====================================================================
   LIGHT THEME (data-theme="light")
   ===================================================================== */
html[data-theme="light"], html[data-theme="light"] body {
  --bg: #f5f0e8;
  --bg2: #e8e3db;
  --bg3: #ddd8d0;
  --red: #c00000;
  --red-hover: #e00000;
  --yellow: #c8961e;
  --mint: #3a9d7a;
  --white: #1a1a1a;
  --gray: #666;
  --gray2: #999;
  --pitch-dark: #3f9e4a;
  --pitch-light: #4ab857;
  --slot-filled: #c00000;
  background: var(--bg);
  color: var(--white);
}
html[data-theme="light"] .team-card {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12);
}
html[data-theme="light"] .slot-item {
  background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .power-item {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .panel-section h3,
html[data-theme="light"] .reroll-hint {
  color: var(--gray);
}
html[data-theme="light"] .cup-btn {
  background: var(--yellow); color: var(--bg);
}
html[data-theme="light"] .modal-content {
  background: var(--bg2);
}
html[data-theme="light"] .modal-round-row {
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .player-list-item {
  background: rgba(0,0,0,0.02);
}
html[data-theme="light"] .player-list-item:hover {
  background: rgba(0,0,0,0.06);
}
html[data-theme="light"] .slot-list-item {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .share-modal {
  background: var(--bg2);
}
html[data-theme="light"] .share-overlay-bg {
  background: rgba(0,0,0,0.5);
}
html[data-theme="light"] .header-logo {
  color: var(--red);
}
html[data-theme="light"] .footer-btn {
  background: var(--footer-btn-bg); border-color: var(--footer-btn-border);
}
html[data-theme="light"] .footer-btn:hover {
  background: var(--footer-btn-hover);
}
html[data-theme="light"] .footer-btn.active-lang {
  background: var(--footer-btn-hover);
}

.footer-version {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 11px;
  color: var(--gray2);
  font-family: var(--font-display);
  letter-spacing: 1px;
  opacity: 0.6;
}

/* ============================
   LANDING PAGE
   ============================ */

/* Landing als fixed Overlay über allem */
.landing-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  overflow-y: auto;
}

/* Hero: 2-Spalten */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  align-items: center;
}

.landing-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-logo {
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 0.8;
  color: var(--red);
  letter-spacing: -8px;
}

.landing-tagline {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 3px;
  font-weight: 500;
}

.landing-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  letter-spacing: 4px;
  margin: 0;
}

.landing-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
  margin-bottom: 0;
}

.landing-sekundaer {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 380px;
  opacity: 0.75;
  margin-top: 6px;
  margin-bottom: 0;
}

.landing-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  padding: 16px 40px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
  min-height: 56px;
}
.landing-play-btn:hover {
  background: #ff1a1a;
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(215,0,0,0.4);
}

/* Preview-Pitch */
.landing-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.landing-pitch-preview {
  width: 100%;
  max-width: 340px;
}
.pitch-landing {
  aspect-ratio: 3 / 4;
  max-height: 460px;
  min-height: 360px;
}

/* Landing-Spieler-Kreise */
.landing-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 46px;
  text-align: center;
  pointer-events: none;
}
.ldot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--slot-filled);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 6px rgba(215,0,0,0.2);
}
.lrating {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}
.lname {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  margin-top: 2px;
  white-space: nowrap;
}

/* 3 Schritte */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 40px 40px;
}
.landing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--bg3);
  border-radius: 6px;
  background: var(--bg2);
}
.lstep-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red);
  letter-spacing: 2px;
}
.lstep-label {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--white);
  letter-spacing: 3px;
}
.lstep-desc {
  font-size: 12px;
  color: var(--gray);
}

/* Stats-Strip */
.landing-stats {
  text-align: center;
  padding: 20px 40px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gray2);
  letter-spacing: 2px;
  border-top: 1px solid var(--bg3);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================
   MOBILE (< 768px) — 7a0 Style scrollbare Seite
   ============================ */
@media (max-width: 768px) {
  /* 1. SCROLL + VISIBILITY + FLEX LAYOUT */
  .build-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
  }
  .left-panel, .right-panel,
  .slot-list, body {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Order: Controls oben, Pitch mitte, Slot-Liste unten */
  .left-panel { order: 1; }
  .pitch-container { order: 2; }
  .right-panel { order: 3; }

  /* Sichtbarkeit forcieren */
  .pitch-container,
  .pitch,
  .slot-list,
  .right-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  .slot-list {
    max-height: none !important;
    overflow: visible !important;
  }

  /* 2. HEADER kompakter */
  .site-header { padding: 8px 12px; }
  .header-logo { font-size: 32px; }

  /* 3. FORMATION 3 Spalten (6 Buttons = 2×3) */
  .formation-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .formation-btn {
    padding: 12px 4px;
    font-size: 13px;
    min-height: 44px;
  }

  /* 4. MODUS 2 Spalten nebeneinander */
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-btn {
    font-size: 13px;
    padding: 8px;
    min-height: 44px;
  }

  /* Team-Card kompakt */
  .team-card {
    padding: 10px;
    min-height: auto;
  }
  .team-abbr { font-size: 22px; }
  .team-fullname { font-size: 12px; }
  .team-season { font-size: 11px; }

  /* Header-Title */
  .header-title { font-size: 14px; }
  .header-tagline { font-size: 9px; }
  .header-divider { margin: 0; }

  /* 5. PITCH DOMINANT */
  .pitch {
    aspect-ratio: 2 / 3;
    min-height: 480px;
    max-width: 380px;
    margin: 12px auto;
    max-height: none;
    width: 100%;
  }
  .slot, .slot-circle {
    width: 44px !important;
    height: 44px !important;
  }
  .slot-circle .slot-label { font-size: 9px !important; }
  .slot.filled .slot-circle .slot-label {
    font-size: 16px !important;
  }
  .slot-player-name { font-size: 13px !important; }

  /* Reroll-Hint + Throw-Status */
  .reroll-hint { font-size: 10px; }
  .throw-status { font-size: 12px; }

  /* 6. ROLL-BUTTON prominent */
  .roll-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    min-height: 56px;
    box-shadow: 0 0 12px rgba(215,0,0,0.2);
    margin: 0 auto;
    max-width: calc(100% - 24px);
  }
  .reroll-btn, .cup-btn, .skip-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    min-height: 48px;
  }

  /* Right-Panel: Slot-Liste unter dem Pitch */
  .right-panel {
    width: 100%;
    padding: 12px;
    gap: 8px;
  }
  .slot-list {
    max-height: 240px;
    width: 100%;
  }
  .slot-list-item {
    padding: 6px 8px;
    font-size: 13px;
  }
  .score-box {
    flex-direction: row;
    justify-content: space-around;
    padding: 8px;
  }
  .score-counter { font-size: 22px; }
  .score-label { font-size: 11px; }
  .power-box {
    flex-direction: row;
    justify-content: space-around;
    padding: 8px;
  }

  /* Left-Panel volle Breite */
  .left-panel {
    width: 100%;
    padding: 12px;
    gap: 8px;
  }

  /* Cup-Modal kompakt */
  .cup-modal {
    width: 95vw;
    padding: 16px;
    max-height: 90vh;
  }
  .cup-modal-title { font-size: 24px; }
  .cup-modal-tagline { font-size: 11px; }
  .modal-match {
    padding: 10px;
    gap: 6px;
  }
  .modal-round-label { font-size: 11px; }
  .modal-opp-name { font-size: 13px; }
  .modal-opp-season-inline { font-size: 10px; }
  .modal-score { font-size: 13px; }
  .cup-modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  .modal-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }
  .modal-actions { flex-wrap: wrap; }

  /* 7. STICKY BOTTOM TOGGLES */
  .site-footer {
    position: sticky;
    bottom: 0;
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 8px 12px;
    z-index: 50;
  }
  .footer-btn {
    font-size: 12px;
    padding: 8px 14px;
    min-height: 44px;
  }

  /* Landing Mobile: vertikal gestapelt */
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 30px 20px 20px;
    gap: 24px;
  }
  .landing-logo {
    font-size: 100px;
  }
  .landing-title {
    font-size: 24px;
  }
  .landing-text {
    max-width: 100%;
    font-size: 14px;
  }
  .landing-play-btn {
    width: 100%;
  }
  .landing-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 20px 30px;
  }
  .landing-step {
    flex-direction: row;
    padding: 14px 16px;
    gap: 10px;
    text-align: left;
  }
  .landing-stats {
    font-size: 12px;
    padding: 16px 20px;
  }

  /* Touch-Fix: Tap-Events auf klickbaren Elementen forcieren */
  .player-list-item,
  .roll-btn,
  .reroll-btn,
  .cup-btn,
  .skip-btn,
  .player-list-item {
    touch-action: manipulation;
    cursor: pointer;
  }
}

/* Extra-klein (iPhone SE etc.) */
@media (max-width: 400px) {
  .pitch {
    min-height: 440px;
    max-width: 100%;
  }
  .formation-grid {
    grid-template-columns: 1fr;
  }
}
