/* World Cup Draft - Primary Branding CSS
   Rebuilt to remove duplicate rules, pitch/player-card conflicts, mobile clutter,
   blocked move buttons, and messy collection text. */

:root {
  --bg-0: #020617;
  --bg-1: #06122f;
  --bg-2: #0b1f3a;
  --panel: rgba(255, 255, 255, 0.085);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text: #f8fbff;
  --muted: #b8c7e6;
  --muted-2: #d9e6ff;
  --green: #ffd166;
  --green-dark: #071428;
  --yellow: #ffe08a;
  --red: #ff7a7a;
  --gold: #ffd166;
  --blue: #1e5eff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(30, 94, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 55%, var(--bg-0));
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(25%);
}

.app {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 60px;
}

/* Start screen */

.start-screen {
  min-height: calc(var(--vh, 1vh) * 100);
  display: grid;
  place-items: center;
  padding: 28px;
}

.start-card {
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border-radius: 34px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.13), rgba(30, 94, 255, 0.08)),
    var(--panel);
  border: 1px solid rgba(255, 209, 102, 0.22);
  box-shadow: var(--shadow);
}

.start-logo {
  font-size: clamp(48px, 10vw, 64px);
  margin-bottom: 12px;
  animation: floatBall 2s ease-in-out infinite alternate;
}

.start-card h1,
h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.start-subtitle,
.hero p,
.club-header p {
  color: var(--muted-2);
}

.start-subtitle {
  font-size: 18px;
}

.start-description {
  margin: 26px auto;
  max-width: 520px;
  text-align: left;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 22px;
  padding: 18px 24px;
}

.start-description p {
  margin: 10px 0;
  color: #dfffea;
}

.start-button,
.controls button,
.play-again,
.results-actions button {
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.start-button {
  padding: 16px 42px;
  background: var(--green);
  color: var(--green-dark);
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.2);
}

.start-button:hover,
.controls button:hover:not(:disabled),
.play-again:hover,
.results-actions button:hover:not(:disabled) {
  transform: translateY(-2px);
}

@keyframes floatBall {
  from { transform: translateY(0) rotate(-8deg); }
  to { transform: translateY(-9px) rotate(8deg); }
}

/* Header */

.hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero p {
  max-width: 650px;
  font-size: 17px;
}

.record-card {
  min-width: 180px;
  padding: 22px;
  border-radius: 28px;
  text-align: center;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.record-card span,
.record-card small {
  color: var(--muted);
}

.record-card strong {
  font-size: 58px;
  color: var(--green);
}

/* Controls */

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.controls button {
  padding: 14px 22px;
  background: var(--green);
  color: var(--green-dark);
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.18);
}

.controls .reroll {
  background: var(--yellow);
  color: #201600;
}

.controls .ghost,
.controls .sound-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #f4fff7;
  border: 1px solid var(--panel-border);
}

.controls .share-draft-button,
.results-actions .share-draft-button {
  background: linear-gradient(135deg, var(--green), #22c55e);
  color: var(--green-dark);
  border: 1px solid rgba(141, 255, 179, 0.45);
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.2);
}

.controls .share-draft-button:hover:not(:disabled),
.results-actions .share-draft-button:hover:not(:disabled) {
  filter: brightness(1.06);
}

/* Shared panels */

.club-panel,
.pitch-wrap,
.results,
.spinner-card,
.simulation-loader,
.selected-banner,
.formation-picker,
.rewards-panel,
.player-stats-panel,
.live-table-card,
.final-table-panel,
.awards-panel,
.history-panel,
.club-collection-card,
.collection-panel,
.season-record-card,
.season-sim {
  margin-bottom: 22px;
  border-radius: 30px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.selected-banner,
.transfer-banner {
  border-color: rgba(141, 255, 179, 0.35);
  background: rgba(141, 255, 179, 0.14);
  color: #dfffea;
  font-weight: 800;
}

/* Formation picker */

.formation-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 24px;
  padding: 14px 16px;
}

.formation-picker > span {
  color: #dfffea;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.formation-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.formation-picker button {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #dfffea;
  font-size: 12px;
  font-weight: 900;
}

.formation-picker button.active {
  background: var(--green);
  color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(141, 255, 179, 0.16);
}

.formation-picker small {
  color: var(--muted);
  font-size: 12px;
}

/* Spinner */

.spinner-card {
  text-align: center;
  overflow: hidden;
}

.spinner-window {
  position: relative;
  max-width: 680px;
  height: 106px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.spinner-window::before,
.spinner-window::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.spinner-window::before {
  left: 0;
  background: linear-gradient(90deg, #06180d, transparent);
}

.spinner-window::after {
  right: 0;
  background: linear-gradient(270deg, #06180d, transparent);
}

.spinner-pointer {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  color: var(--green);
  z-index: 10;
  font-size: 24px;
  text-shadow: 0 0 18px rgba(141, 255, 179, 0.9);
}

.reel-spinner {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 22px 0;
  transform: translateX(0);
}

.reel-spinner.spin-measuring {
  animation: none !important;
  transform: translateX(0);
}

.reel-spinner.spin-active {
  animation: dynamicReelSpin 2.1s cubic-bezier(0.12, 0.82, 0.15, 1) forwards;
}

.reel-team {
  width: 190px;
  height: 62px;
  flex: 0 0 190px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--teamColor, #16783b);
  color: white;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.reel-team span {
  font-size: 14px;
}

.reel-team small {
  font-size: 11px;
  opacity: 0.85;
}

.winner-team {
  outline: 3px solid var(--green);
  box-shadow:
    0 0 0 5px rgba(141, 255, 179, 0.2),
    0 14px 30px rgba(0, 0, 0, 0.38);
}

.reel-team.jackpot-team {
  position: relative;
  overflow: hidden;
  outline: 2px solid rgba(255, 224, 138, 0.85);
  box-shadow:
    0 0 0 4px rgba(255, 224, 138, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(255, 224, 138, 0.35);
}

.reel-team.jackpot-team::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: translateX(-120%);
  animation: jackpotShine 1.15s linear infinite;
}

.spinner-card p {
  margin: 14px 0 0;
  color: #dfffea;
  font-weight: 900;
}

@keyframes dynamicReelSpin {
  0% { transform: translateX(0); }
  72% { transform: translateX(calc(var(--spinOffset, -1200px) - 80px)); }
  88% { transform: translateX(calc(var(--spinOffset, -1200px) + 28px)); }
  100% { transform: translateX(var(--spinOffset, -1200px)); }
}

@keyframes jackpotShine {
  to { transform: translateX(120%); }
}

/* Club/player list */

.club-panel {
  border-color: rgba(141, 255, 179, 0.35);
}

.club-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 8px solid var(--club, var(--green));
  padding-left: 16px;
  margin-bottom: 16px;
}

.club-header h2,
.pitch-wrap h2,
.results h2 {
  margin: 0;
  font-size: 30px;
}

.club-header strong {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--club, var(--green));
  color: white;
  font-size: 28px;
}

.player-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Important: player cards in the club list are NOT absolute.
   Only pitch slots are absolute. This fixes stacking/overlap bugs. */
.player-card {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  color: white;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.player-card:hover:not(:disabled):not(.position-filled) {
  transform: translateY(-2px);
  background: rgba(141, 255, 179, 0.13);
}

.player-card:disabled,
.player-card.position-filled {
  opacity: 0.35;
  filter: grayscale(0.9);
  cursor: not-allowed;
  transform: none !important;
  border-color: rgba(180, 180, 180, 0.35);
}

.player-card.selected {
  min-height: 76px;
  outline: 3px solid var(--green);
  background: rgba(141, 255, 179, 0.2);
}

.player-pos {
  width: 100%;
  min-width: 82px;
  height: 28px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #dfffea;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.player-name {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.player-rating,
.slot small,
.overall,
.ovr-badge {
  display: inline-grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.player-rating {
  width: 42px;
  min-width: 42px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 1000;
  flex-shrink: 0;
}

.rating-red { background: #d63031 !important; color: white !important; }
.rating-yellow { background: #f1c40f !important; color: #221d00 !important; }
.rating-green { background: #27ae60 !important; color: white !important; }
.rating-blue { background: #2980b9 !important; color: white !important; }

.inline-position-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.inline-position-buttons .mini-pos-btn {
  width: 42px;
  min-width: 42px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.inline-position-buttons .mini-pos-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.inline-position-buttons .mini-pos-btn:disabled {
  opacity: 0.3;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* Pitch */

.pitch {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 760px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 28px;
  border: 4px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0 10%,
      rgba(255, 255, 255, 0.015) 10% 20%,
      rgba(255, 255, 255, 0.045) 20% 30%,
      rgba(255, 255, 255, 0.015) 30% 40%,
      rgba(255, 255, 255, 0.045) 40% 50%,
      rgba(255, 255, 255, 0.015) 50% 60%,
      rgba(255, 255, 255, 0.045) 60% 70%,
      rgba(255, 255, 255, 0.015) 70% 80%,
      rgba(255, 255, 255, 0.045) 80% 90%,
      rgba(255, 255, 255, 0.015) 90% 100%
    ),
    linear-gradient(180deg, #0b7a35, #0d8d3f);
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.035),
    inset 0 105px 0 rgba(255, 255, 255, 0.035),
    inset 0 -105px 0 rgba(255, 255, 255, 0.035);
}

.pitch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-50%);
}

.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 155px;
  height: 155px;
  border: 3px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.slot {
  position: absolute;
  left: var(--slot-x, 50%);
  top: var(--slot-y, 50%);
  width: 112px;
  min-height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  padding: 9px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(3, 20, 9, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.slot:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.slot span {
  color: var(--green);
  font-weight: 1000;
  font-size: 11px;
}

.slot strong {
  width: 100%;
  max-width: calc(100% - 4px);
  font-size: 10.5px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
  display: block;
}

.slot small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 1000;
}

.slot em {
  color: var(--muted);
  font-size: 11px;
}

.slot.can-place {
  box-shadow: 0 0 0 3px rgba(141, 255, 179, 0.45);
  animation: pulseSlot 1s infinite alternate;
}

.slot.placed {
  animation: playerDrop 0.65s ease both;
  box-shadow:
    0 0 0 5px rgba(141, 255, 179, 0.7),
    0 0 35px rgba(141, 255, 179, 0.65);
}

/* Move button appears only on hover/focus, so it does not block the pitch. */
.move-overlay {
  position: absolute;
  inset: auto 8px 8px 8px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(3, 20, 9, 0.88);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 6;
}

.slot:hover .move-overlay,
.slot:focus-within .move-overlay,
.move-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.move-overlay.active {
  color: white;
  background: rgba(141, 255, 179, 0.45);
}

.slot.transfer-remove {
  outline: 3px solid rgba(255, 190, 40, 0.95);
  box-shadow:
    0 0 0 7px rgba(255, 190, 40, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.2);
}

.slot.transfer-remove::after {
  content: "Transfer";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffbf2f;
  color: #15351e;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes pulseSlot {
  from { box-shadow: 0 0 0 2px rgba(141, 255, 179, 0.25); }
  to { box-shadow: 0 0 0 5px rgba(141, 255, 179, 0.6); }
}

@keyframes playerDrop {
  0% { transform: translate(-50%, -90%) scale(0.5) rotate(-8deg); opacity: 0; }
  65% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}

/* Club collection tracker */

.club-collection-card,
.collection-panel {
  border-radius: 24px;
  padding: 16px;
}

.club-collection-card h3,
.collection-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-align: center;
}

.collection-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 800;
}

.collection-count {
  color: #effff3;
}

.collection-percent {
  color: var(--green);
}

.collection-bar {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.collection-fill {
  height: 100%;
  background: linear-gradient(90deg, #49c96d, #84e184);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.league-breakdown,
.league-collection-mini,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.league-breakdown div,
.league-collection-mini div,
.collection-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  font-size: 0.9rem;
}

.collection-card {
  display: grid;
  text-align: center;
  transition: transform 0.15s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
}

.collection-card.locked {
  opacity: 0.45;
  filter: grayscale(1);
}

/* Matchday simulation */

.simulation-loader {
  text-align: center;
}

.matchday-sim,
.season-sim {
  text-align: center;
  overflow: hidden;
}

.matchday-top,
.season-sim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: #dfffea;
  font-weight: 900;
}

.matchday-top strong,
.season-sim-top strong {
  background: var(--green);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 6px 14px;
}

.mini-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.mini-scoreboard div {
  border-radius: 20px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-scoreboard small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.mini-scoreboard strong {
  font-size: 38px;
  color: var(--green);
}

.mini-scoreboard > span {
  color: var(--muted);
  font-weight: 900;
}

.mini-pitch {
  position: relative;
  height: 160px;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 10%, transparent 10% 20%, rgba(255, 255, 255, 0.06) 20% 30%, transparent 30% 40%, rgba(255, 255, 255, 0.06) 40% 50%, transparent 50% 60%, rgba(255, 255, 255, 0.06) 60% 70%, transparent 70% 80%, rgba(255, 255, 255, 0.06) 80% 90%, transparent 90%),
    linear-gradient(180deg, #0b7a35, #0d8d3f);
}

.mini-pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
}

.mini-pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mini-ball {
  position: absolute;
  left: 10%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  z-index: 4;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.85);
  animation: liveBallMove 2.1s ease-in-out infinite;
}

.attack-line {
  position: absolute;
  top: 50%;
  height: 3px;
  width: 36%;
  background: rgba(141, 255, 179, 0.65);
  z-index: 3;
  opacity: 0;
}

.attack-left {
  left: 12%;
  animation: attackPulse 2.1s infinite;
}

.attack-right {
  right: 12%;
  animation: attackPulse 2.1s infinite reverse;
}

.live-event {
  margin: 16px 0;
  color: #dfffea;
  font-weight: 900;
  animation: commentaryPop 0.4s ease both;
}

.sim-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sim-progress div {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.sim-percent {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.ball {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, white 0 18%, transparent 19%),
    radial-gradient(circle at 70% 70%, #111 0 16%, transparent 17%),
    white;
  animation: ballBounce 0.7s infinite alternate ease-in-out;
}

@keyframes liveBallMove {
  0% { left: 10%; top: 52%; transform: scale(1); }
  22% { left: 34%; top: 35%; transform: scale(1.1); }
  50% { left: 55%; top: 62%; transform: scale(0.95); }
  78% { left: 82%; top: 42%; transform: scale(1.1); }
  100% { left: 10%; top: 52%; transform: scale(1); }
}

@keyframes attackPulse {
  0%, 20% { opacity: 0; transform: scaleX(0); }
  45%, 70% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

@keyframes commentaryPop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes ballBounce {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-18px) rotate(180deg); }
}

/* Results */

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.result-stats div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
}

.result-stats strong {
  display: block;
  font-size: 32px;
  color: var(--green);
}

.result-stats span {
  color: var(--muted-2);
  font-size: 13px;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 5px;
}

.match {
  opacity: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  animation: matchReveal 0.45s both;
  transition: transform 0.15s ease, background 0.15s ease;
}

.match:hover {
  transform: translateY(-2px);
  background: rgba(141, 255, 179, 0.12);
}

.match strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #06170d;
  font-weight: 1000;
}

.match.W strong { background: var(--green); }
.match.D strong { background: var(--yellow); }
.match.L strong { background: var(--red); }

.match span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match p {
  grid-column: 1 / -1;
  margin: 0;
  color: #f4fff7;
  font-size: 13px;
  text-align: right;
}

@keyframes matchReveal {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.play-again {
  margin: 22px auto 0;
  display: block;
  padding: 16px 36px;
  background: var(--green);
  color: var(--green-dark);
  font-size: 17px;
}

/* Match details modal */

.match-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: grid;
  place-items: center;
  z-index: 999;
  padding: 18px;
}

.match-detail-card {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  color: #102015;
  border-radius: 24px;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.match-detail-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #eef5ee;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 22px;
}

.match-detail-score {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef5ee;
}

.scorer-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scorer-team-block {
  background: #f8fcf8;
  border: 1px solid #e1eee1;
  border-radius: 18px;
  padding: 12px;
}

.scorer-team-block h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.scorer-team-block.full-width {
  grid-column: 1 / -1;
}

.scorer-list {
  display: grid;
  gap: 10px;
}

.scorer-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #f5faf5;
  padding: 10px 12px;
  border-radius: 14px;
}

.scorer-row em {
  opacity: 0.65;
  font-style: normal;
}

.opponent-goal { background: #fff6f3; }
.timeline-goal { background: #f3f7ff; }

/* Tables, awards, rewards, history */

.live-table-card,
.final-table-panel,
.awards-panel,
.history-panel {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 74, 34, 0.12);
  box-shadow: 0 16px 40px rgba(13, 40, 22, 0.08);
  color: #17351f;
}

.live-table-card h3,
.final-table-panel h3,
.awards-panel h3,
.history-panel h3,
.rewards-panel h3,
.player-stats-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.mini-table {
  display: grid;
  gap: 6px;
}

.mini-table-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px 54px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(18, 74, 34, 0.055);
  color: #17351f;
  font-variant-numeric: tabular-nums;
}

.mini-table-row.head {
  background: transparent;
  color: rgba(23, 53, 31, 0.65);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-table-row.you {
  background: linear-gradient(135deg, rgba(41, 186, 95, 0.18), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(41, 186, 95, 0.4);
}

.results-actions {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
}

.results-actions button {
  padding: 10px 16px;
  background: #163f24;
  color: white;
  box-shadow: 0 10px 24px rgba(13, 40, 22, 0.18);
}

.awards-grid,
.reward-list,
.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.award-card,
.history-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(235, 255, 229, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(18, 74, 34, 0.1);
}

.award-card span {
  font-size: 1.45rem;
}

.award-card strong,
.history-card strong {
  color: #15351e;
  font-size: 0.94rem;
}

.award-card small,
.history-card span,
.history-card small {
  color: rgba(21, 53, 30, 0.72);
  line-height: 1.3;
}

.rewards-panel {
  margin-top: 22px;
  background: rgba(141, 255, 179, 0.1);
  border: 1px solid rgba(141, 255, 179, 0.28);
  text-align: center;
}

.reward-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.reward-badge {
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--green);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 1000;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* Player season stats */

.player-stats-panel {
  margin-top: 22px;
}

.player-stats-panel h3 {
  color: #dfffea;
  font-size: 20px;
}

.player-stats-table {
  display: grid;
  gap: 7px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.player-stats-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.8fr) 52px 42px 42px 42px 54px;
  gap: 8px;
  align-items: center;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #f5fff8;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.player-stats-row.head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(141, 255, 179, 0.18);
  color: #dfffea;
  font-weight: 1000;
}

.player-stats-row strong {
  display: block;
  font-size: 13px;
}

.player-stats-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.player-stats-row span:not(:first-child) {
  text-align: center;
  font-weight: 900;
}

/* Helpers */

.profile-mini {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-mini span {
  min-width: 58px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #dfffea;
  font-size: 10px;
  font-weight: 900;
}

.auto-focus-section {
  scroll-margin-top: 18px;
}

.scroll-hint,
.mobile-flow-hint {
  display: block;
  text-align: center;
  opacity: 0.75;
  font-size: 0.85rem;
}

.scroll-hint {
  margin-top: 0.35rem;
  animation: draftXiHintBounce 1.1s ease-in-out infinite;
}

.mobile-flow-hint {
  margin: 0.35rem 0 0.75rem;
}

.form-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: currentColor;
}

.season-form {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.season-latest {
  color: var(--muted);
}

.taken-position {
  opacity: 0.55;
}

@keyframes draftXiHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Mobile */

@media (max-width: 720px) {
  .app {
    width: min(100% - 18px, 1180px);
    padding-top: 18px;
  }

  .hero {
    flex-direction: column;
  }

  .record-card {
    width: 100%;
  }

  .club-header {
    align-items: flex-start;
  }

  .club-header strong {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .formation-picker {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .controls button {
    width: 100%;
    min-height: 46px;
  }

  .spinner-window {
    height: 92px;
  }

  .reel-team {
    width: 158px;
    flex-basis: 158px;
  }

  .player-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .player-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .player-bottom-row {
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .inline-position-buttons {
    overflow-x: auto;
  }

  .pitch {
    min-height: 660px;
    border-radius: 24px;
  }

  .slot {
    width: 96px;
    min-height: 70px;
    padding: 7px;
  }

  .slot strong {
    font-size: 11px;
  }

  .slot em {
    display: none;
  }

  .move-overlay {
    inset: auto 6px 6px 6px;
    min-height: 22px;
    font-size: 10px;
  }

  .player-name {
    font-size: 14px;
  }

  .mini-scoreboard {
    grid-template-columns: 1fr;
  }

  .mini-scoreboard > span {
    display: none;
  }

  .mini-scoreboard strong {
    font-size: 30px;
  }

  .match-list {
    grid-template-columns: 1fr;
  }

  .scorer-breakdown {
    grid-template-columns: 1fr;
  }

  .match-detail-card {
    border-radius: 20px;
    padding: 18px;
  }

  .scorer-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .scorer-row em {
    grid-column: 2;
  }

  .mini-table-row {
    grid-template-columns: 28px minmax(0, 1fr) 48px 42px;
    padding: 8px;
    font-size: 0.82rem;
  }

  .awards-grid,
  .history-list {
    grid-template-columns: 1fr;
  }

  .live-table-card,
  .final-table-panel,
  .awards-panel,
  .history-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .player-stats-row {
    grid-template-columns: minmax(100px, 1.6fr) 42px 34px 34px 34px 46px;
    gap: 5px;
    padding: 9px 8px;
    font-size: 12px;
  }

  .player-stats-row strong {
    font-size: 12px;
  }

  .league-breakdown,
  .league-collection-mini,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .auto-focus-section {
    scroll-margin-top: 10px;
  }

  .spinner-card,
  .club-panel,
  .pitch-wrap,
  .simulation-loader,
  .results {
    scroll-snap-margin-top: 10px;
  }
}

@media (max-width: 430px) {
  .start-screen {
    padding: 14px;
  }

  .club-panel,
  .pitch-wrap,
  .results,
  .spinner-card,
  .simulation-loader,
  .selected-banner,
  .formation-picker,
  .rewards-panel,
  .player-stats-panel,
  .live-table-card,
  .final-table-panel,
  .awards-panel,
  .history-panel,
  .club-collection-card,
  .collection-panel {
    padding: 14px;
    border-radius: 20px;
  }

  h1,
  .start-card h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .club-header h2,
  .pitch-wrap h2,
  .results h2 {
    font-size: 24px;
  }

  .pitch {
    min-height: 585px;
  }

  .slot {
    width: 82px;
    min-height: 62px;
    border-radius: 14px;
    padding: 6px;
  }

  .slot span {
    font-size: 10px;
  }

  .slot strong {
    font-size: 8.5px;
    line-height: 1;
  }

  .slot small {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .player-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .player-pos {
    min-width: 70px;
    font-size: 8px;
  }

  .player-rating,
  .inline-position-buttons .mini-pos-btn {
    width: 38px;
    min-width: 38px;
    height: 28px;
  }
}

/* Touch screens: hide hover-only move controls unless active. */
@media (hover: none) {
  .slot:hover .move-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .slot .move-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}


/* Mobile spinner hotfix  keeps reel measurements synced with JSX */
@media (max-width: 720px) {
  .spinner-card {
    padding: 14px 10px;
    overflow: hidden;
  }

  .spinner-window {
    width: 100%;
    max-width: calc(100vw - 24px);
    height: 88px;
    border-radius: 18px;
    touch-action: pan-y;
  }

  .spinner-window::before,
  .spinner-window::after {
    width: 18%;
  }

  .reel-spinner {
    gap: 8px;
    padding: 18px 0;
    will-change: transform;
  }

  .reel-team {
    width: 148px;
    flex: 0 0 148px;
    height: 52px;
    border-radius: 14px;
  }

  .reel-team span {
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .reel-team small {
    font-size: 10px;
  }

  .spinner-pointer {
    font-size: 20px;
  }
}

/* =========================================================
   Integrity Patch  spinner, mobile collection, formation lock
   ========================================================= */

/* Spinner now uses actual DOM measurement in JSX. These values can change
   without breaking the landing position. */
.spinner-window {
  width: min(680px, 100%);
  contain: layout paint;
}

.reel-spinner {
  transform: translateX(0);
  will-change: transform;
}

.reel-spinner .reel-team {
  flex-shrink: 0;
}

@keyframes dynamicReelSpin {
  0% {
    transform: translateX(0);
  }

  68% {
    transform: translateX(calc(var(--spinOffset) - 72px));
  }

  86% {
    transform: translateX(calc(var(--spinOffset) + 22px));
  }

  100% {
    transform: translateX(var(--spinOffset));
  }
}

/* Formation buttons are locked by JSX once a player has been picked. */
.formation-picker button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

/* Transfer lifeline becomes available earlier in JSX. Make it feel distinct. */
.controls .transfer-lifeline:not(:disabled) {
  background: linear-gradient(135deg, #ffe08a, #8dffb3);
  color: #102015;
}

/* Club collection: compact by default, especially on phones. */
.club-collection-card,
.collection-panel {
  overflow: hidden;
}

.club-collection-card .collection-bar,
.collection-panel .collection-bar {
  margin-top: 10px;
}

.league-collection-mini {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .club-collection-card,
  .collection-panel {
    padding: 12px !important;
    margin-bottom: 14px;
  }

  .club-collection-card strong,
  .collection-panel strong {
    font-size: 0.92rem;
  }

  .league-collection-mini {
    display: none !important;
  }

  .club-collection-card small,
  .collection-panel small {
    display: none !important;
  }

  .spinner-card {
    padding: 14px 10px;
  }

  .spinner-window {
    width: 100%;
    max-width: 100%;
    height: 90px;
    border-radius: 18px;
  }

  .reel-spinner {
    gap: 8px;
    padding: 18px 0;
  }

  .reel-team {
    width: 150px;
    flex-basis: 150px;
    height: 52px;
    border-radius: 14px;
  }

  .reel-team span {
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .reel-team small {
    font-size: 10px;
  }

  .spinner-pointer {
    font-size: 20px;
  }
}

@media (max-width: 390px) {
  .reel-team {
    width: 136px;
    flex-basis: 136px;
  }

  .reel-team span {
    max-width: 120px;
  }
}

/* =========================
   Guided Selection Patch
   Keeps the core game loop intact while making the next action obvious.
========================= */

.next-move-card {
  margin: 0 0 14px;
  border-radius: 24px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(141, 255, 179, 0.16), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(141, 255, 179, 0.32);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.next-move-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.next-move-top span {
  color: #8dffb3;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.next-move-top strong {
  min-width: 48px;
  text-align: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(141, 255, 179, 0.18);
  color: #dfffea;
  font-size: 12px;
}

.next-move-card h2 {
  margin: 0 0 6px;
  color: #f5fff8;
  font-size: clamp(20px, 4vw, 30px);
}

.next-move-card p {
  margin: 0 0 12px;
  color: #ccefd7;
  font-weight: 750;
}

.squad-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.squad-progress > div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.squad-progress > div > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #49c96d, #8dffb3);
  transition: width 0.25s ease;
}

.squad-progress small {
  color: #b9ddc5;
  font-weight: 900;
  white-space: nowrap;
}

.draft-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

.draft-steps span {
  border-radius: 999px;
  padding: 9px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #b9ddc5;
  font-size: 12px;
  font-weight: 1000;
}

.draft-steps span.active {
  background: #8dffb3;
  color: #06210f;
  box-shadow: 0 0 0 4px rgba(141, 255, 179, 0.15);
}

.draft-steps span.done {
  color: #dfffea;
  background: rgba(141, 255, 179, 0.16);
  border-color: rgba(141, 255, 179, 0.22);
}

.guide-pulse {
  animation: guidePulse 1.15s ease-in-out infinite;
}

@keyframes guidePulse {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(57, 255, 136, 0.18), 0 0 0 0 rgba(141, 255, 179, 0.4);
  }
  50% {
    box-shadow: 0 14px 34px rgba(57, 255, 136, 0.26), 0 0 0 6px rgba(141, 255, 179, 0.1);
  }
}

.slot.valid-slot {
  opacity: 1;
  border-color: rgba(141, 255, 179, 0.8);
  box-shadow: 0 0 0 4px rgba(141, 255, 179, 0.2), 0 0 30px rgba(141, 255, 179, 0.3);
}

.slot.best-slot {
  animation: bestFitPulse 0.9s ease-in-out infinite alternate;
  border-color: #8dffb3;
  background: rgba(7, 39, 18, 0.95);
}

.slot.invalid-slot {
  opacity: 0.42;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

.slot.invalid-slot:hover {
  transform: translate(-50%, -50%) !important;
}

@keyframes bestFitPulse {
  from {
    box-shadow: 0 0 0 4px rgba(141, 255, 179, 0.3), 0 0 22px rgba(141, 255, 179, 0.38);
  }
  to {
    box-shadow: 0 0 0 7px rgba(141, 255, 179, 0.45), 0 0 42px rgba(141, 255, 179, 0.65);
  }
}

.player-card.selected {
  position: relative;
}

.player-card.selected::after {
  content: "Selected";
  position: absolute;
  right: 10px;
  top: -9px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #8dffb3;
  color: #06210f;
  font-size: 10px;
  font-weight: 1000;
}

.taken-position {
  color: #ffdf9e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 720px) {
  .next-move-card {
    padding: 14px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  .next-move-card p {
    font-size: 13px;
  }

  .squad-progress {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .squad-progress small {
    white-space: normal;
  }

  .draft-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .draft-steps span {
    padding: 8px;
    font-size: 11px;
  }

 

/* v5 Save Progress + First-Time Tutorial + Share Card */
.save-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.96);
  color: #06210f;
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.resume-note {
  margin: 14px auto 0;
  max-width: 440px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(141, 255, 179, 0.14);
  color: #dfffea;
  font-weight: 900;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.tutorial-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 30px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(8, 40, 23, 0.98), rgba(3, 18, 9, 0.98));
  border: 1px solid rgba(141, 255, 179, 0.28);
  color: #f5fff8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.tutorial-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5fff8;
  font-size: 24px;
  line-height: 1;
}

.tutorial-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.15);
  color: #8dffb3;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tutorial-card h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 6vw, 42px);
  line-height: 1;
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.tutorial-steps div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-steps strong {
  display: block;
  margin-bottom: 5px;
  color: #8dffb3;
  font-size: 15px;
}

.tutorial-steps p {
  margin: 0;
  color: #ccefd7;
  font-size: 13px;
  line-height: 1.35;
}

.tutorial-start {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #8dffb3;
  color: #06210f;
  font-weight: 1000;
}

.share-card-panel {
  margin: 18px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.share-card-preview {
  min-height: 210px;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(141, 255, 179, 0.24), transparent 42%),
    linear-gradient(145deg, #06210f, #0c3d20);
  border: 1px solid rgba(141, 255, 179, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.share-card-brand {
  margin-bottom: 10px;
  color: #8dffb3;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.share-card-preview strong {
  display: block;
  color: #f5fff8;
  font-size: 20px;
}

.share-card-preview p {
  margin: 8px 0 0;
  color: #ccefd7;
  font-weight: 800;
}

.share-card-record {
  margin: 10px 0;
  color: #8dffb3;
  font-size: clamp(42px, 9vw, 68px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.share-card-preview small {
  color: #dfffea;
  font-weight: 900;
}

.share-card-panel textarea {
  min-height: 210px;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(141, 255, 179, 0.22);
  border-radius: 20px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: #f5fff8;
  font: 800 13px/1.4 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
}

.share-card-panel .results-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (max-width: 720px) {
  .tutorial-card {
    padding: 22px;
    border-radius: 24px;
  }

  .tutorial-steps {
    grid-template-columns: 1fr;
  }

  .share-card-panel {
    grid-template-columns: 1fr;
  }

  .share-card-preview,
  .share-card-panel textarea {
    min-height: 190px;
  }
}

/* Expanded database polish: keeps larger club/player lists easy to scan */
.database-expanded-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(141, 255, 179, 0.14);
  color: #dfffea;
  font-size: 12px;
  font-weight: 1000;
}

.club-panel .player-grid {
  max-height: min(720px, 72vh);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(141, 255, 179, 0.55) rgba(255,255,255,0.08);
}

.club-panel .player-grid::-webkit-scrollbar {
  width: 8px;
}

.club-panel .player-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

.club-panel .player-grid::-webkit-scrollbar-thumb {
  background: rgba(141, 255, 179, 0.55);
  border-radius: 999px;
}

.club-header p::after {
  content: " - expanded pool";
  color: rgba(141, 255, 179, 0.9);
  font-weight: 900;
}

@media (max-width: 720px) {
.club-panel .player-grid {
  max-height: none;
  overflow: visible;
}

  .club-header p::after {
    content: "";
  }
}

/* xG simulation rework details */
.xg-pill {
  display: inline-flex;
  width: fit-content;
  margin: -8px 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 63, 36, 0.08);
  color: #17351f;
  font-size: 0.78rem;
  font-weight: 900;
}


/* 100 Big 5 Clubs database build: no required layout changes. */

/* 100-club balanced sim patch */
.projected-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.14);
  color: #8dffb3 !important;
  border: 1px solid rgba(141, 255, 179, 0.24);
  font-weight: 1000;
}

/* Safe UI patch: compact XI rating inside formation area */
.hero {
  align-items: flex-start;
}

.pitch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pitch-toolbar h2 {
  margin: 0;
}

.pitch-formation-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.14);
  color: var(--green);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.pitch-rating-strip {
  min-width: 230px;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
  row-gap: 2px;
  padding: 10px 13px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(141, 255, 179, 0.22);
}

.pitch-rating-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pitch-rating-strip > strong {
  grid-row: span 3;
  color: var(--green);
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
}

.pitch-rating-strip small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.pitch-rating-strip .projected-level {
  color: var(--yellow) !important;
}

.season-record-card {
  scroll-margin-top: 18px;
}

@media (max-width: 720px) {
  .pitch-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pitch-rating-strip {
    width: 100%;
    min-width: 0;
  }
}

/* Tap-to-move pitch UX: no button covering player ratings */
.move-overlay,
.move-overlay.pitch-only {
  display: none !important;
}

.slot.moving-source {
  outline: 3px solid rgba(255, 224, 138, 0.95);
  box-shadow:
    0 0 0 7px rgba(255, 224, 138, 0.18),
    0 0 34px rgba(255, 224, 138, 0.28);
}

.slot.moving-source::after {
  content: "Moving";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe08a;
  color: #15351e;
  font-size: 0.68rem;
  font-weight: 1000;
  white-space: nowrap;
  z-index: 8;
}

.slot.move-target {
  border-color: rgba(141, 255, 179, 0.95);
  box-shadow:
    0 0 0 5px rgba(141, 255, 179, 0.26),
    0 0 36px rgba(141, 255, 179, 0.48);
  animation: tapMovePulse 0.9s ease-in-out infinite alternate;
}

.slot.move-blocked {
  opacity: 0.38;
  filter: grayscale(0.85);
  cursor: not-allowed;
}

.slot.move-blocked:hover {
  transform: translate(-50%, -50%) !important;
}


.slot.swap-target {
  border-color: rgba(185, 246, 255, 0.95);
  box-shadow:
    0 0 0 5px rgba(185, 246, 255, 0.24),
    0 0 36px rgba(54, 218, 235, 0.45);
  animation: tapMovePulse 0.9s ease-in-out infinite alternate;
}

.slot.swap-blocked {
  opacity: 0.48;
  filter: grayscale(0.65);
}

.slot.swap-blocked:hover {
  transform: translate(-50%, -50%) !important;
}
@keyframes tapMovePulse {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.055);
  }
}

@media (hover: none) {
  .slot .move-overlay,
  .slot:hover .move-overlay,
  .slot .move-overlay.active {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .slot.moving-source::after {
    bottom: -13px;
    font-size: 0.62rem;
  }
}
/* Gameplay balance patch: rescue spins and real out-of-position costs */
.controls .rescue-spin {
  background: #b9f6ff;
  color: #03242a;
  border: 1px solid rgba(185, 246, 255, 0.55);
  box-shadow: 0 12px 30px rgba(54, 218, 235, 0.2);
}

.rescue-banner {
  border-color: rgba(185, 246, 255, 0.42);
  background: linear-gradient(135deg, rgba(54, 218, 235, 0.18), rgba(255, 255, 255, 0.075));
  color: #eaffff;
}

.slot.valid-slot:not(.best-slot) {
  border-color: rgba(255, 224, 138, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 224, 138, 0.2), 0 10px 28px rgba(255, 224, 138, 0.14);
}

.slot.best-slot {
/* =========================================================
   Clean Mobile UI Patch
   Reduces clutter, gives pitch/player cards more breathing room,
   and makes the main controls easier to reach on phones.
   ========================================================= */

/* Prevent older duplicate hover/move rules from resurfacing. */
.move-overlay,
.move-overlay.pitch-only {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Slightly calmer spacing across the app. */
.club-panel,
.pitch-wrap,
.results,
.spinner-card,
.simulation-loader,
.selected-banner,
.formation-picker,
.rewards-panel,
.player-stats-panel,
.live-table-card,
.final-table-panel,
.awards-panel,
.history-panel,
.club-collection-card,
.collection-panel,
.season-record-card,
.season-sim {
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

/* Make pitch names less likely to cut off on all screens. */
.slot strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

@media (max-width: 720px) {
  /* Keep the main actions visible without forcing constant scrolling. */
  .controls {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 8px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(4, 17, 9, 0.94);
    border: 1px solid rgba(141, 255, 179, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }

  .controls button {
    min-height: 44px;
    padding: 11px 16px;
  }

  /* Hide secondary info on phones so the game flow feels cleaner. */
  .club-collection-card,
  .collection-panel,
  .draft-steps,
  .profile-mini {
    display: none !important;
  }

  .next-move-card {
    margin-bottom: 10px;
  }

  .next-move-card h2 {
    font-size: 21px;
  }

  .next-move-card p {
    font-size: 12.5px;
    line-height: 1.35;
  }

  /* Make club player cards easier to scan. */
  .club-panel .player-grid {
    max-height: 62vh;
  }

  .player-card {
    min-height: 62px;
    border-radius: 14px;
  }

  .player-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.08;
  }

  .player-bottom-row,
  .inline-position-buttons {
    scrollbar-width: none;
  }

  .player-bottom-row::-webkit-scrollbar,
  .inline-position-buttons::-webkit-scrollbar {
    display: none;
  }

  /* Give the formation more room without making the whole pitch huge. */
  .pitch {
    min-height: 670px;
  }

  .slot {
    width: 100px;
    min-height: 72px;
    padding: 7px;
  }

  .slot strong {
    font-size: 10px;
  }

  .slot small {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .pitch-rating-strip {
    padding: 9px 11px;
  }
}

@media (max-width: 430px) {
  .app {
    width: min(100% - 14px, 1180px);
  }

  .club-panel,
  .pitch-wrap,
  .results,
  .spinner-card,
  .simulation-loader,
  .selected-banner,
  .formation-picker,
  .rewards-panel,
  .player-stats-panel,
  .live-table-card,
  .final-table-panel,
  .awards-panel,
  .history-panel,
  .season-record-card,
  .season-sim {
    padding: 13px;
    border-radius: 18px;
  }

  .pitch {
    min-height: 615px;
    border-width: 3px;
  }

  .slot {
    width: 92px;
    min-height: 66px;
    border-radius: 14px;
    padding: 6px;
  }

  .slot span {
    font-size: 9.5px;
  }

  .slot strong {
    font-size: 9.5px;
    line-height: 1.05;
  }

  .slot small {
    width: 26px;
    height: 26px;
    font-size: 10.5px;
  }

  .player-card {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 64px;
  }

  .player-pos {
    min-width: 66px;
    font-size: 8px;
  }

  .player-rating,
  .inline-position-buttons .mini-pos-btn {
    width: 36px;
    min-width: 36px;
    height: 27px;
    font-size: 10px;
  }

  .match-list {
    max-height: 360px;
  }
}
@media (max-width: 720px) {
  .club-panel .player-grid {
    max-height: none !important;
    overflow: visible !important;
  }

  .club-collection-card,
  .club-collection,
  .database-summary {
    max-height: none !important;
    overflow: visible !important;
  }

  .player-card {
    min-height: 60px;
  }
}
  .player-card {
  min-height: 72px;
}

.player-name {
  line-height: 1.15;
}

.player-rating {
  font-weight: 700;
}
  /* Rating card moved into the formation/pitch section */
.pitch-toolbar-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 18px;
}

.pitch-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pitch-title-block h2 {
  margin: 0;
  line-height: 1;
}

.pitch-formation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pitch-record-card {
  width: min(260px, 100%);
  margin: 0 auto;
}

.pitch-record-card strong {
  line-height: 0.95;
}

.pitch-rating-strip {
  display: none;
}

@media (max-width: 640px) {
  .pitch-toolbar-clean {
    gap: 12px;
    margin-bottom: 14px;
  }

  .pitch-record-card {
    width: min(230px, 96%);
    padding: 18px 16px;
  }

  .pitch-record-card strong {
    font-size: clamp(48px, 16vw, 66px);
  }
}
/* World Cup 48 mode selector */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.mode-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mode-button.active {
  background: rgba(134, 255, 175, 0.18);
  border-color: rgba(134, 255, 175, 0.55);
  box-shadow: 0 0 0 3px rgba(134, 255, 175, 0.08);
}
/* Cleaner start-screen game mode cards */
.mode-switch {
  display: none;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin: 22px 0 20px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 16px;
  min-height: 138px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background:
    radial-gradient(circle at top right, rgba(134, 255, 175, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(18, 84, 47, 0.82), rgba(8, 38, 24, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(142, 240, 178, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(142, 240, 178, 0.1);
  outline: none;
}

.mode-card.active {
  border-color: rgba(142, 240, 178, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(142, 240, 178, 0.16);
}

.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mode-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mode-pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-pill.new {
  background: rgba(142, 240, 178, 0.18);
  border-color: rgba(142, 240, 178, 0.42);
}

.mode-card-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 7px;
}

.mode-card-desc {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.78;
}

@media (max-width: 640px) {
  .mode-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mode-card {
    min-height: 118px;
  }
}
/* Fixed World Cup/Europe start-screen mode cards
   Add this at the VERY BOTTOM of your CSS so it overrides old button styles. */

.start-screen .mode-switch,
.start-card .mode-switch,
.mode-switch {
  display: none !important;
}

.start-screen .game-mode-grid,
.start-card .game-mode-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 22px 0 20px !important;
}

.start-screen button.game-mode-card,
.start-card button.game-mode-card,
button.game-mode-card {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  min-height: 156px !important;
  width: 100% !important;
  padding: 17px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(142, 240, 178, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(20, 92, 52, 0.92), rgba(7, 34, 22, 0.98)) !important;
  color: #f4fff7 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
  text-align: left !important;
  cursor: pointer !important;
  font: inherit !important;
  line-height: 1.2 !important;
  transform: translateY(0) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.start-screen button.game-mode-card:hover,
.start-screen button.game-mode-card:focus-visible,
.start-card button.game-mode-card:hover,
.start-card button.game-mode-card:focus-visible {
  transform: translateY(-3px) !important;
  border-color: rgba(142, 240, 178, 0.85) !important;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(142, 240, 178, 0.12) !important;
  outline: none !important;
}

.start-screen button.game-mode-card.is-active,
.start-card button.game-mode-card.is-active {
  border-color: rgba(142, 240, 178, 0.95) !important;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(142, 240, 178, 0.18) !important;
}

.start-screen .game-mode-worldcup,
.start-card .game-mode-worldcup {
  background:
    radial-gradient(circle at 86% 12%, rgba(122, 214, 255, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(18, 76, 95, 0.94), rgba(6, 31, 39, 0.98)) !important;
}

.game-mode-card-glow {
  position: absolute !important;
  inset: auto -20% -38% -20% !important;
  height: 80px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  transform: rotate(-6deg) !important;
  pointer-events: none !important;
}

.game-mode-card-row {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.game-mode-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: 0.06em !important;
}

.game-mode-tag,
.game-mode-new {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f4fff7 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.game-mode-new {
  background: rgba(142, 240, 178, 0.18) !important;
  border-color: rgba(142, 240, 178, 0.42) !important;
}

.game-mode-title {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
}

.game-mode-desc {
  position: relative !important;
  z-index: 1 !important;
  max-width: 220px !important;
  color: rgba(244, 255, 247, 0.78) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.game-mode-cta {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 16px !important;
  color: #8ef0b2 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

@media (max-width: 640px) {
  .start-screen .game-mode-grid,
  .start-card .game-mode-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .start-screen button.game-mode-card,
  .start-card button.game-mode-card {
    min-height: 132px !important;
    padding: 16px !important;
  }

  .game-mode-title {
    font-size: 21px !important;
  }
}
.mode-grid {
  display: grid !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

.mode-card,
.mode-card.mode-card-selected {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 24px !important;

  border: none !important;
  border-radius: 999px !important;

  background: #86f7a8 !important;
  color: #06180d !important;

  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;

  box-shadow: none !important;
  transform: none !important;
}

.mode-card-title {
  font-size: 16px !important;
  font-weight: 900 !important;
}

.mode-card-desc,
.mode-card-badge {
  display: none !important;
}
  /* Simple green pill mode buttons - place at the very bottom of CSS */
.game-mode-grid,
.mode-grid,
.mode-switch {
  display: none !important;
}

.mode-pill-stack {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 22px 0 4px !important;
}

.mode-pill-button,
.start-screen .mode-pill-button,
.start-card .mode-pill-button,
button.mode-pill-button {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #86f7a8 !important;
  color: #06180d !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

.mode-pill-button:hover,
.mode-pill-button:focus-visible {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
  outline: none !important;
}
.worldcup-round {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0;
  font-weight: 700;
}

.worldcup-eliminated {
  color: #ff8a8a;
}

.worldcup-champion {
  color: #ffd700;
  font-weight: 900;
}
  .start-buttons {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* Start screen spacing patch - Europe / World Cup buttons */
.start-screen .mode-pill-stack,
.start-card .mode-pill-stack,
.mode-pill-stack {
  display: grid !important;
  gap: 28px !important;
  row-gap: 28px !important;
  width: min(360px, 100%) !important;
  margin: 30px auto 8px !important;
}

.start-screen .mode-pill-button,
.start-card .mode-pill-button,
button.mode-pill-button {
  min-height: 64px !important;
  margin: 0 !important;
}

.start-screen .mode-pill-button + .mode-pill-button,
.start-card .mode-pill-button + .mode-pill-button,
.mode-pill-button + .mode-pill-button {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .start-screen .mode-pill-stack,
  .start-card .mode-pill-stack,
  .mode-pill-stack {
    gap: 24px !important;
    row-gap: 24px !important;
    margin-top: 28px !important;
  }
}
.tournament-rewards-panel {
  border-color: rgba(255, 224, 138, 0.34) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 138, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.075) !important;
}

.tournament-rewards-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tournament-rewards-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.tournament-rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tournament-reward-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 15px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.tournament-reward-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 224, 138, 0.16);
  font-size: 22px;
}

.tournament-reward-card strong {
  display: block;
  color: #fff7d6;
  font-size: 15px;
  font-weight: 1000;
}

.tournament-reward-card small {
  display: block;
  margin-top: 3px;
  color: #dfffea;
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .tournament-rewards-head {
    display: block;
  }

  .tournament-rewards-grid {
    grid-template-columns: 1fr;
  }

  .tournament-reward-card {
    min-height: 74px;
  }
}
.reward-card strong {
  letter-spacing: 0.2px;
}

.rewards-panel h3::before {
  content: "🏆 ";
}

.reward-card {
  border-left: 4px solid rgba(255, 215, 0, 0.8);
}

/* Formation swap patch */
.formation-notice {
  margin: -8px 0 22px;
  border-radius: 22px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  background: rgba(141, 255, 179, 0.13);
  border: 1px solid rgba(141, 255, 179, 0.32);
  color: #eaffef;
  box-shadow: var(--shadow);
}

.formation-notice strong {
  font-size: 14px;
  font-weight: 1000;
}

.formation-notice span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}

.formation-notice.has-warnings {
  background: rgba(255, 224, 138, 0.14);
  border-color: rgba(255, 224, 138, 0.42);
}

.formation-picker button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slot:has(small.penalty-badge) {
  border-color: rgba(255, 224, 138, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 224, 138, 0.12);
}

.penalty-badge {
  margin-top: 2px;
  width: auto !important;
  min-width: 44px;
  height: 20px !important;
  padding: 0 7px;
  border-radius: 999px !important;
  background: rgba(255, 224, 138, 0.95) !important;
  color: #211600 !important;
  font-size: 9px !important;
}

@media (max-width: 768px) {
  .formation-notice {
    margin-top: -4px;
    padding: 12px 14px;
  }

  .formation-picker small {
    width: 100%;
  }
}

/* Bench + Substitute Lifeline Patch - polished cards */
.bench-panel {
  margin-bottom: 22px;
  border-radius: 30px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(141, 255, 179, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(141, 255, 179, 0.24);
  box-shadow: var(--shadow);
}

.bench-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.bench-panel h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.bench-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bench-card {
  position: relative;
  min-height: 142px;
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(3, 20, 9, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.bench-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(141, 255, 179, 0.08), transparent);
  transform: translateX(-80%);
  pointer-events: none;
}

.bench-card:not(:disabled):hover,
.bench-card.selected {
  transform: translateY(-3px);
  background:
    linear-gradient(145deg, rgba(141, 255, 179, 0.2), rgba(255, 255, 255, 0.07)),
    rgba(3, 20, 9, 0.76);
  border-color: rgba(141, 255, 179, 0.68);
  box-shadow:
    0 0 0 3px rgba(141, 255, 179, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.bench-card.selected::before {
  animation: benchCardShine 1.4s linear infinite;
}

.bench-card:disabled {
  opacity: 0.82;
  cursor: default;
}

.bench-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bench-pos {
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.16);
  border: 1px solid rgba(141, 255, 179, 0.24);
  color: var(--green);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.bench-ovr {
  width: 44px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.bench-name {
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.06;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.bench-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.bench-meta span,
.bench-meta em {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

.bench-action-pill {
  margin-top: auto;
  min-height: 32px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e9fff0;
  font-size: 12px;
  font-weight: 1000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bench-card.selected .bench-action-pill {
  background: var(--green);
  color: var(--green-dark);
  border-color: transparent;
}

.bench-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.bench-pick-card {
  border-color: rgba(141, 255, 179, 0.28);
}

.bench-pick-pill {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.16);
  color: var(--green);
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

.bench-banner,
.substitute-banner {
  border-color: rgba(141, 255, 179, 0.42);
}

.substitute-lifeline {
  background: #c4ff8d !important;
  color: #102108 !important;
}

.slot.sub-target {
  outline: 3px solid rgba(141, 255, 179, 0.95);
  box-shadow:
    0 0 0 7px rgba(141, 255, 179, 0.2),
    0 16px 40px rgba(0, 0, 0, 0.25);
}

.slot.sub-target::after {
  content: "Sub In";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 1000;
  white-space: nowrap;
}

.slot.sub-blocked {
  opacity: 0.55;
  filter: grayscale(0.8);
}

@keyframes benchCardShine {
  to { transform: translateX(80%); }
}

@media (max-width: 820px) {
  .bench-grid {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
  }

  .bench-card {
    min-height: 126px;
    border-radius: 20px;
    padding: 11px;
  }

  .bench-name {
    font-size: 14px;
    min-height: 32px;
  }

  .bench-meta {
    font-size: 10px;
  }

  .bench-action-pill {
    font-size: 11px;
    min-height: 28px;
    padding: 7px 8px;
  }
}

@media (max-width: 520px) {
  .bench-panel {
    padding: 15px;
    border-radius: 24px;
  }

  .bench-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .bench-grid {
    grid-template-columns: 1fr;
  }

  .bench-card {
    min-height: 112px;
  }

  .bench-name {
    font-size: 16px;
  }
}


/* Bench cards now mirror formation player cards */
.bench-grid {
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  align-items: stretch;
}

.formation-bench-card {
  position: relative;
  min-height: 94px;
  border-radius: 18px;
  padding: 9px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(3, 20, 9, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  gap: 4px;
  overflow: visible;
  box-shadow: none;
  transform: none;
}

.formation-bench-card::before {
  display: none;
}

.formation-bench-card:hover:not(:disabled),
.formation-bench-card.selected {
  transform: translateY(-2px) scale(1.02);
  background: rgba(3, 20, 9, 0.9);
  border-color: rgba(141, 255, 179, 0.78);
  box-shadow:
    0 0 0 5px rgba(141, 255, 179, 0.18),
    0 0 28px rgba(141, 255, 179, 0.35);
}

.formation-bench-card span {
  color: var(--green);
  font-weight: 1000;
  font-size: 11px;
}

.formation-bench-card strong {
  width: 100%;
  max-width: calc(100% - 4px);
  font-size: 10.5px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: block;
}

.formation-bench-card small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  font-size: 12px;
  font-weight: 1000;
}

.formation-bench-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.formation-bench-card:disabled {
  opacity: 1;
  cursor: default;
  filter: none;
}

.formation-bench-card.selected::after {
  content: "Sub In";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 1000;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .bench-grid {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }

  .formation-bench-card {
    min-height: 88px;
    padding: 8px;
  }
}

@media (max-width: 520px) {
  .bench-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .formation-bench-card {
    min-height: 84px;
    border-radius: 15px;
  }

  .formation-bench-card strong {
    font-size: 9.5px;
  }

  .formation-bench-card em {
    font-size: 9px;
  }
}

/* Bench cards: match pitch formation slot style */
.bench-panel {
  border-color: rgba(141, 255, 179, 0.24);
}

.bench-grid {
  grid-template-columns: repeat(3, minmax(104px, 132px));
  justify-content: center;
  gap: 14px;
}

.formation-bench-card {
  width: 118px;
  min-height: 128px;
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
  border-radius: 20px;
  padding: 11px 9px 10px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background: rgba(3, 20, 9, 0.92);
  border: 3px solid rgba(21, 142, 66, 0.95);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(141, 255, 179, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.formation-bench-card::before {
  display: none !important;
}

.formation-bench-card span {
  color: #f5fff8;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.formation-bench-card strong {
  max-width: 92px;
  color: #f5fff8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.formation-bench-card small {
  width: 43px;
  height: 43px;
  margin: 3px 0 2px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #f1c40f !important;
  color: #14200b !important;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.formation-bench-card em {
  color: #9feeb8;
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  opacity: 0.95;
}

.formation-bench-card:hover:not(:disabled),
.formation-bench-card.selected {
  transform: translateY(-2px) scale(1.025);
  background: rgba(3, 20, 9, 0.96);
  border-color: var(--green);
  box-shadow:
    0 0 0 4px rgba(141, 255, 179, 0.18),
    0 0 24px rgba(141, 255, 179, 0.32),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

.formation-bench-card.selected::after {
  content: "Sub In";
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
}

.formation-bench-card.selected em {
  opacity: 0;
}

@media (max-width: 620px) {
  .bench-grid {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 10px;
  }

  .formation-bench-card {
    width: 96px;
    min-height: 106px;
    border-radius: 18px;
    padding: 9px 7px 8px;
  }

  .formation-bench-card span {
    font-size: 11px;
  }

  .formation-bench-card strong {
    max-width: 78px;
    font-size: 10.5px;
  }

  .formation-bench-card small {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .formation-bench-card em {
    font-size: 10px;
  }
}

/* --- FORCE FIX: Bench players match formation slot cards --- */
.bench-panel {
  width: 100% !important;
  margin: 22px 0 !important;
  padding: 22px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(141, 255, 179, 0.24) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28) !important;
}

.bench-panel-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.bench-panel-header h3 {
  margin: 0 0 6px !important;
  color: #f5fff8 !important;
  font-size: 24px !important;
  font-weight: 1000 !important;
}

.bench-panel-header p {
  margin: 0 !important;
  color: #ccefd7 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.bench-panel .bench-grid {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
}

.bench-panel button.bench-card,
.bench-panel .bench-card.formation-bench-card,
button.formation-bench-card {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  width: 118px !important;
  height: 128px !important;
  min-width: 118px !important;
  min-height: 128px !important;
  max-width: 118px !important;
  margin: 0 !important;
  padding: 12px 9px 10px !important;
  border-radius: 20px !important;
  border: 3px solid rgba(21, 142, 66, 0.95) !important;
  background: rgba(3, 20, 9, 0.94) !important;
  color: #f5fff8 !important;
  display: grid !important;
  grid-template-rows: 17px 18px 45px 15px !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  gap: 1px !important;
  text-align: center !important;
  overflow: hidden !important;
  box-shadow:
    inset 0 0 0 1px rgba(141, 255, 179, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.24) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1 !important;
  white-space: normal !important;
}

.bench-panel button.bench-card::before,
.bench-panel .bench-card.formation-bench-card::before,
button.formation-bench-card::before {
  display: none !important;
  content: none !important;
}

.bench-panel button.bench-card > span,
.bench-panel .formation-bench-card > span {
  display: block !important;
  width: 100% !important;
  color: #f5fff8 !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.bench-panel button.bench-card > strong,
.bench-panel .formation-bench-card > strong {
  display: block !important;
  width: 92px !important;
  max-width: 92px !important;
  color: #f5fff8 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
}

.bench-panel button.bench-card > small,
.bench-panel .formation-bench-card > small {
  display: inline-grid !important;
  place-items: center !important;
  width: 43px !important;
  height: 43px !important;
  min-width: 43px !important;
  min-height: 43px !important;
  margin: 1px 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #f1c40f !important;
  color: #14200b !important;
  font-size: 17px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22) !important;
}

.bench-panel button.bench-card > em,
.bench-panel .formation-bench-card > em {
  display: block !important;
  width: 100% !important;
  color: #9feeb8 !important;
  font-size: 12px !important;
  font-style: italic !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  opacity: 0.95 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.bench-panel button.bench-card:hover:not(:disabled),
.bench-panel button.bench-card.selected,
.bench-panel .formation-bench-card:hover:not(:disabled),
.bench-panel .formation-bench-card.selected {
  transform: translateY(-2px) scale(1.025) !important;
  border-color: #8dffb3 !important;
  background: rgba(3, 20, 9, 0.98) !important;
  box-shadow:
    0 0 0 4px rgba(141, 255, 179, 0.18),
    0 0 24px rgba(141, 255, 179, 0.32),
    0 12px 26px rgba(0, 0, 0, 0.28) !important;
}

.bench-panel button.bench-card:disabled,
.bench-panel .formation-bench-card:disabled {
  opacity: 1 !important;
  filter: none !important;
  cursor: default !important;
}

.bench-panel .bench-empty {
  width: 100% !important;
  padding: 18px !important;
  border-radius: 18px !important;
  text-align: center !important;
  color: #ccefd7 !important;
  background: rgba(0, 0, 0, 0.18) !important;
  border: 1px dashed rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 620px) {
  .bench-panel {
    padding: 16px !important;
  }

  .bench-panel .bench-grid {
    gap: 10px !important;
  }

  .bench-panel button.bench-card,
  .bench-panel .bench-card.formation-bench-card,
  button.formation-bench-card {
    width: 96px !important;
    height: 108px !important;
    min-width: 96px !important;
    min-height: 108px !important;
    max-width: 96px !important;
    border-radius: 18px !important;
    padding: 9px 7px 8px !important;
    grid-template-rows: 14px 15px 37px 12px !important;
  }

  .bench-panel button.bench-card > span,
  .bench-panel .formation-bench-card > span {
    font-size: 11px !important;
  }

  .bench-panel button.bench-card > strong,
  .bench-panel .formation-bench-card > strong {
    width: 78px !important;
    max-width: 78px !important;
    font-size: 10.5px !important;
  }

  .bench-panel button.bench-card > small,
  .bench-panel .formation-bench-card > small {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 15px !important;
  }

  .bench-panel button.bench-card > em,
  .bench-panel .formation-bench-card > em {
    font-size: 10px !important;
  }
}

/* Nuclear bench-card fix: this sits at the very bottom so CodePen uses it last. */
.bench-slot-panel .bench-slot-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
}

.bench-slot-panel .bench-slot-card {
  width: 118px !important;
  height: 128px !important;
  min-width: 118px !important;
  min-height: 128px !important;
  max-width: 118px !important;
  padding: 12px 9px 10px !important;
  border-radius: 20px !important;
  border: 3px solid rgba(21, 142, 66, 0.95) !important;
  background: rgba(3, 20, 9, 0.96) !important;
  color: #f5fff8 !important;
  display: grid !important;
  grid-template-rows: 17px 18px 45px 15px !important;
  place-items: center !important;
  gap: 1px !important;
  text-align: center !important;
  overflow: hidden !important;
  opacity: 1 !important;
  filter: none !important;
  white-space: normal !important;
}

.bench-slot-panel .bench-slot-card > span,
.bench-slot-panel .bench-slot-card > strong,
.bench-slot-panel .bench-slot-card > small,
.bench-slot-panel .bench-slot-card > em {
  position: static !important;
  display: block !important;
  float: none !important;
  margin: 0 !important;
}


/* Sticky spin controls: keeps Spin/Reroll reachable after placing a player */
.sticky-draft-controls {
  position: sticky;
  top: 10px;
  z-index: 80;
  padding: 12px;
  border-radius: 24px;
  background: rgba(3, 20, 9, 0.86);
  border: 1px solid rgba(141, 255, 179, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.sticky-draft-controls::before {
  content: "Draft Controls";
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 2px;
}

@media (max-width: 720px) {
  .sticky-draft-controls {
    top: 6px;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    max-height: 34vh;
    overflow-y: auto;
  }

  .sticky-draft-controls::before {
    width: 100%;
    margin: 0 0 2px;
  }

  .sticky-draft-controls button {
    padding: 11px 13px;
    font-size: 12px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   Draft XI Clean UI Polish
   Goal: cleaner, calmer interface without touching game logic.
───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg-0: #020705;
  --bg-1: #04130a;
  --bg-2: #082516;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f6fff8;
  --muted: #a9d9b8;
  --muted-2: #d8f8e1;
  --green: #79f2a4;
  --green-dark: #05200d;
  --yellow: #ffe28a;
  --red: #ff7676;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at top left, rgba(121, 242, 164, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.10), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 58%, var(--bg-0));
}

.app {
  width: min(1120px, calc(100% - 24px));
  padding: 22px 0 48px;
}

/* Cleaner header */

.hero {
  align-items: stretch;
  margin-bottom: 16px;
}

.hero h1,
.start-card h1,
h1 {
  letter-spacing: -0.065em;
}

.hero p {
  margin-bottom: 0;
  color: rgba(216, 248, 225, 0.82);
}

.record-card {
  min-width: 160px;
  padding: 18px;
  border-radius: 24px;
}

.record-card strong {
  font-size: 48px;
}

/* Cleaner controls */

.controls {
  gap: 10px;
  margin-bottom: 16px;
}

.controls button,
.results-actions button,
.play-again,
.start-button {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: none;
}

.controls button:hover:not(:disabled),
.results-actions button:hover:not(:disabled),
.play-again:hover,
.start-button:hover {
  filter: brightness(1.06);
}

/* Keep controls useful, but less bulky */
.sticky-draft-controls {
  top: 8px;
  z-index: 90;
  padding: 10px;
  border-radius: 22px;
  background: rgba(3, 18, 9, 0.82);
  border: 1px solid rgba(121, 242, 164, 0.2);
  backdrop-filter: blur(16px);
}

.sticky-draft-controls::before {
  content: "Controls";
  font-size: 10px;
  opacity: 0.8;
}

/* Panels */

.club-panel,
.pitch-wrap,
.results,
.spinner-card,
.simulation-loader,
.selected-banner,
.formation-picker,
.rewards-panel,
.player-stats-panel,
.live-table-card,
.final-table-panel,
.awards-panel,
.history-panel,
.club-collection-card,
.collection-panel,
.season-record-card,
.season-sim {
  margin-bottom: 16px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.115);
}

.selected-banner,
.transfer-banner {
  padding: 12px 16px;
  border-radius: 18px;
}

/* Formation picker as compact chips */

.formation-picker {
  padding: 12px;
  border-radius: 20px;
}

.formation-picker > span {
  font-size: 11px;
}

.formation-picker button {
  padding: 8px 12px;
  border-radius: 999px;
}

/* Spinner */

.spinner-card {
  padding: 18px;
}

.spinner-window {
  height: 92px;
  border-radius: 22px;
  max-width: 640px;
}

.reel-spinner {
  padding: 17px 0;
}

.reel-team {
  height: 58px;
  border-radius: 16px;
}

/* Current club/player list: less scrolling on desktop */

.club-header {
  margin-bottom: 14px;
}

.club-header h2,
.pitch-wrap h2,
.results h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 9px;
}

.player-card {
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 15px;
  grid-template-columns: 76px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.075);
}

.player-card.selected {
  min-height: 68px;
}

.player-pos {
  min-width: 64px;
  height: 26px;
  border-radius: 8px;
}

.player-name {
  font-size: 14px;
}

.player-rating {
  width: 38px;
  min-width: 38px;
  height: 28px;
  font-size: 12px;
}

.inline-position-buttons .mini-pos-btn {
  width: 38px;
  min-width: 38px;
  height: 28px;
  font-size: 10px;
}

/* Pitch polish */

.pitch {
  max-width: 700px;
  min-height: 700px;
  margin-top: 14px;
  border-radius: 24px;
  border-width: 3px;
}

.slot {
  width: 106px;
  min-height: 72px;
  border-radius: 16px;
  padding: 8px;
}

.slot strong {
  font-size: 10px;
}

.slot small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

/* Benches and collections less loud */

.bench-panel,
.bench-slot-panel {
  border-radius: 22px;
}

.bench-slot-panel .bench-slot-card {
  width: 112px !important;
  height: 122px !important;
  min-width: 112px !important;
  min-height: 122px !important;
  border-radius: 18px !important;
}

.club-collection-card,
.collection-panel,
.history-panel {
  opacity: 0.92;
}

.league-breakdown,
.league-collection-mini,
.collection-grid {
  gap: 6px;
}

/* Results/readability */

.results-summary,
.season-summary,
.record-grid,
.stats-grid {
  gap: 10px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.final-table-panel,
.live-table-card,
.player-stats-panel,
.awards-panel {
  overflow-x: auto;
}

/* Mobile cleanup */

@media (max-width: 760px) {
  .app {
    width: min(100% - 16px, 1120px);
    padding-top: 14px;
  }

  .hero {
    display: grid;
    gap: 12px;
  }

  .record-card {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

  .record-card strong {
    font-size: 38px;
  }

  .sticky-draft-controls {
    top: 6px;
    max-height: none;
    overflow: visible;
    padding: 8px;
    border-radius: 18px;
  }

  .sticky-draft-controls button {
    flex: 1 1 calc(50% - 8px);
    padding: 10px 11px;
    font-size: 12px;
  }

  .player-grid {
    grid-template-columns: 1fr;
  }

  .club-panel,
  .pitch-wrap,
  .results,
  .spinner-card,
  .simulation-loader,
  .formation-picker,
  .rewards-panel,
  .player-stats-panel,
  .live-table-card,
  .final-table-panel,
  .awards-panel,
  .history-panel,
  .club-collection-card,
  .collection-panel,
  .season-record-card,
  .season-sim {
    padding: 14px;
    border-radius: 20px;
  }

  .spinner-window {
    height: 84px;
  }

  .reel-team {
    width: 168px;
    flex-basis: 168px;
  }

  .pitch {
    min-height: 610px;
    border-radius: 20px;
  }

  .slot {
    width: 92px;
    min-height: 66px;
    padding: 7px;
  }

  .slot strong {
    font-size: 9.5px;
  }

  .slot em {
    font-size: 10px;
  }

  .club-header {
    align-items: flex-start;
    gap: 10px;
  }

  .club-header strong {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .controls button,
  .results-actions button {
    width: 100%;
  }

  .sticky-draft-controls button {
    width: auto;
  }

  .player-card {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .player-bottom-row {
    gap: 5px;
  }

  .pitch {
    min-height: 570px;
  }

  .slot {
    width: 86px;
    min-height: 62px;
  }
}


/* Player Collection + formation-sticky lifelines patch */
.collection-mode-button {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f5fff8 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.player-collection-screen {
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 28px;
}

.player-collection-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.collection-back-button {
  margin-bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5fff8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.player-collection-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.player-collection-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
}

.collection-stat-card {
  min-width: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(141, 255, 179, 0.12);
  border: 1px solid rgba(141, 255, 179, 0.24);
}

.collection-stat-card strong {
  font-size: 54px;
  color: var(--green);
  line-height: 1;
}

.collection-stat-card span,
.collection-stat-card small,
.collection-percent-label {
  color: var(--muted-2);
  font-weight: 900;
}

.player-collection-bar {
  margin: 18px 0 8px;
}

.collection-percent-label {
  margin: 0 0 18px;
  text-align: right;
}

.player-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

.player-collection-card {
  min-height: 128px;
  padding: 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(3, 20, 9, 0.88);
  border: 2px solid rgba(141, 255, 179, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.player-collection-card.locked {
  opacity: 0.45;
  filter: grayscale(1);
  border-style: dashed;
}

.player-collection-card strong {
  max-width: 100%;
  color: #f5fff8;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-card-club {
  max-width: 100%;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-collection-card small {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  background: rgba(255, 255, 255, 0.12);
}

.player-collection-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.formation-sticky-lifelines {
  position: sticky;
  top: 10px;
  z-index: 35;
  width: min(760px, 100%);
  margin: 14px auto 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border-radius: 22px;
  background: rgba(3, 20, 9, 0.82);
  border: 1px solid rgba(141, 255, 179, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.formation-sticky-lifelines button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
}

.formation-sticky-lifelines .reroll {
  background: var(--yellow);
  color: #201600;
}

.formation-sticky-lifelines .transfer-lifeline,
.formation-sticky-lifelines .substitute-lifeline {
  background: var(--green);
  color: var(--green-dark);
}

@media (max-width: 768px) {
  .player-collection-screen {
    padding: 18px;
  }

  .player-collection-hero {
    display: grid;
    padding: 18px;
  }

  .collection-stat-card {
    min-width: 0;
  }

  .player-collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  }

  .formation-sticky-lifelines {
    top: 8px;
    gap: 6px;
    padding: 8px;
  }

  .formation-sticky-lifelines button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* Cleaner Player Collection UI patch */
.collection-mode-button,
.controls .ghost.collection-mode-button,
.mode-pill-button.collection-mode-button {
  background: var(--green) !important;
  color: var(--green-dark) !important;
  border: 1px solid rgba(141, 255, 179, 0.45) !important;
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.2) !important;
  border-radius: 999px !important;
  font-weight: 1000 !important;
}

.collection-mode-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.player-collection-screen {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 60px;
}

.player-collection-shell {
  display: grid;
  gap: 18px;
}

.collection-back-button {
  width: fit-content;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4fff7;
  border: 1px solid var(--panel-border);
  font-weight: 1000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.collection-back-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.player-collection-hero {
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 34px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.player-collection-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted-2);
  font-size: 16px;
  margin-bottom: 0;
}

.collection-stat-card {
  min-width: 190px;
  min-height: 150px;
  border-radius: 28px;
  background: rgba(141, 255, 179, 0.14);
  border: 1px solid rgba(141, 255, 179, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 18px 38px rgba(0,0,0,0.18);
}

.collection-stat-card strong {
  font-size: 58px;
  color: var(--green);
}

.player-collection-bar {
  height: 13px;
  margin: 4px 0 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.collection-percent-label {
  margin: 0;
  padding: 0 2px;
  color: var(--green);
  text-align: right;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.player-collection-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}

.player-collection-card {
  min-height: 154px;
  padding: 14px;
  border-radius: 24px;
  align-content: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.player-collection-card.unlocked:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 255, 179, 0.38);
  background: rgba(141, 255, 179, 0.13);
}

.player-collection-card.locked {
  opacity: 1;
  filter: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(245, 255, 248, 0.58);
}

.player-collection-card strong {
  min-height: 18px;
  font-size: 14px;
  line-height: 1.1;
}

.collection-card-club {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(141, 255, 179, 0.12);
  border: 1px solid rgba(141, 255, 179, 0.16);
  color: var(--green);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.player-collection-card.locked .collection-card-club {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(245, 255, 248, 0.55);
}

.player-collection-card small {
  width: 48px;
  height: 34px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.player-collection-card em {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.player-collection-card.locked em {
  color: rgba(204, 239, 215, 0.5);
}

@media (max-width: 768px) {
  .player-collection-screen {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 44px;
  }

  .player-collection-hero {
    border-radius: 28px;
  }

  .collection-stat-card {
    min-height: 118px;
    min-width: 0;
  }

  .player-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .player-collection-card {
    min-height: 136px;
    padding: 11px;
    border-radius: 20px;
  }
}


/* Final button consistency patch: Player Collection + Back match Europe/World Cup buttons */
.start-screen .mode-pill-stack > button.mode-pill-button,
.start-card .mode-pill-stack > button.mode-pill-button,
button.mode-pill-button.collection-back-mode-button {
  width: 100% !important;
  min-height: 64px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #86f7a8 !important;
  color: #06180d !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  margin: 0 !important;
}

button.mode-pill-button.collection-back-mode-button {
  width: min(360px, 100%) !important;
  margin: 0 auto 10px !important;
  display: block !important;
}

.start-screen .mode-pill-stack > button.mode-pill-button:hover,
.start-screen .mode-pill-stack > button.mode-pill-button:focus-visible,
.start-card .mode-pill-stack > button.mode-pill-button:hover,
.start-card .mode-pill-stack > button.mode-pill-button:focus-visible,
button.mode-pill-button.collection-back-mode-button:hover,
button.mode-pill-button.collection-back-mode-button:focus-visible {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
  outline: none !important;
}


/* Detailed Player Collection back button */
button.mode-pill-button.collection-back-mode-button.collection-back-detailed {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: min(380px, 100%) !important;
  min-height: 64px !important;
  margin: 0 auto 18px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #86f7a8, #22c55e) !important;
  color: #06180d !important;
  border: 1px solid rgba(141, 255, 179, 0.45) !important;
  box-shadow:
    0 14px 30px rgba(57, 255, 136, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12) !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
  letter-spacing: -0.01em !important;
}

button.mode-pill-button.collection-back-mode-button.collection-back-detailed:hover,
button.mode-pill-button.collection-back-mode-button.collection-back-detailed:focus-visible {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  outline: 3px solid rgba(141, 255, 179, 0.22) !important;
  outline-offset: 3px !important;
}

.collection-back-icon,
.collection-back-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 24, 13, 0.12);
  line-height: 1;
}

.collection-back-icon {
  font-size: 17px;
}

.collection-back-arrow {
  font-size: 18px;
  font-weight: 1000;
}

.collection-back-text {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 560px) {
  button.mode-pill-button.collection-back-mode-button.collection-back-detailed {
    width: 100% !important;
    min-height: 58px !important;
    font-size: 15px !important;
    padding: 0 18px !important;
  }

  .collection-back-icon,
  .collection-back-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
}


/* Hard override: detailed Player Collection back button */
.player-collection-screen .collection-back-detailed,
.collection-screen .collection-back-detailed,
button.collection-back-detailed {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: min(380px, 100%) !important;
  min-height: 64px !important;
  margin: 0 auto 18px !important;
  padding: 0 26px !important;
  border: 1px solid rgba(141, 255, 179, 0.45) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #86f7a8, #22c55e) !important;
  color: #06180d !important;
  box-shadow: 0 14px 30px rgba(57, 255, 136, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.12) !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.player-collection-screen .collection-back-detailed > span,
.collection-screen .collection-back-detailed > span {
  display: inline-grid !important;
  place-items: center !important;
}

.player-collection-screen .collection-back-icon,
.player-collection-screen .collection-back-arrow,
.collection-screen .collection-back-icon,
.collection-screen .collection-back-arrow {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 999px !important;
  background: rgba(6, 24, 13, 0.12) !important;
  color: #06180d !important;
}

.player-collection-screen .collection-back-text,
.collection-screen .collection-back-text {
  white-space: nowrap !important;
  color: #06180d !important;
  font-weight: 1000 !important;
}
.slot .move-overlay {
  display: none;
}

.slot:hover .move-overlay,
.slot:focus-within .move-overlay,
.move-overlay.active {
  display: grid;
}
  /* =========================================================
   Draft XI Mobile Smooth + QoL Patch
   Paste this at the VERY BOTTOM of your current CSS file.
   Desktop is intentionally left untouched.
   ========================================================= */

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
  }

  .app {
    width: min(100%, calc(100vw - 18px));
    padding: 12px 0 96px;
  }

  /* Make the top area tighter on phones. */
  .hero {
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .hero p {
    font-size: 13px;
    line-height: 1.35;
    margin: 8px 0 0;
  }

  .record-card {
    min-width: 110px;
    padding: 12px;
    border-radius: 18px;
  }

  .record-card strong {
    font-size: 38px;
  }

  .record-card span,
  .record-card small {
    font-size: 11px;
  }

  /* Smaller panels = less scrolling and less repaint cost. */
  .club-panel,
  .pitch-wrap,
  .results,
  .spinner-card,
  .simulation-loader,
  .selected-banner,
  .formation-picker,
  .rewards-panel,
  .player-stats-panel,
  .live-table-card,
  .final-table-panel,
  .awards-panel,
  .history-panel,
  .club-collection-card,
  .collection-panel,
  .season-record-card,
  .season-sim {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  }

  /* Main QoL fix: important actions stay near the thumb. */
  .controls,
  .sticky-draft-controls,
  .formation-sticky-lifelines {
    position: sticky !important;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: min(100%, calc(100vw - 18px)) !important;
    max-width: 480px !important;
    margin: 10px auto 14px !important;
    padding: 9px !important;
    border-radius: 20px !important;
    background: rgba(3, 20, 9, 0.92) !important;
    border: 1px solid rgba(141, 255, 179, 0.22) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .controls button,
  .sticky-draft-controls button,
  .formation-sticky-lifelines button {
    min-height: 44px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none !important;
    touch-action: manipulation;
  }

  /* Spin / Simulate should feel like primary actions. */
  .sticky-spin-button,
  .simulate-season-button,
  .simulate-button,
  .controls button:first-child {
    grid-column: span 2;
    min-height: 48px !important;
    font-size: 14px !important;
  }

  /* Keep secondary actions from overcrowding the draft flow. */
  .share-draft-button,
  .sound-toggle,
  .change-mode-button,
  .controls .ghost {
    opacity: 0.92;
  }

  /* Formation selector becomes horizontally scrollable instead of tall. */
  .formation-picker {
    display: block;
    overflow: hidden;
  }

  .formation-picker > span {
    display: block;
    margin-bottom: 8px;
  }

  .formation-picker > div {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .formation-picker button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 38px;
    padding: 9px 12px;
  }

  .formation-picker small {
    display: block;
    margin-top: 8px;
    line-height: 1.3;
  }

  /* Spinner: lighter animation + less layout work on phones. */
  .spinner-window {
    height: 78px !important;
    border-radius: 16px !important;
    contain: layout paint style;
    transform: translateZ(0);
  }

  .reel-spinner {
    gap: 7px !important;
    padding: 14px 0 !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .reel-team {
    width: 136px !important;
    flex-basis: 136px !important;
    height: 48px !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
  }

  .reel-team span {
    max-width: 120px !important;
    font-size: 11px !important;
  }

  .reel-team small {
    font-size: 9px !important;
  }

  .spinner-pointer {
    font-size: 18px !important;
  }

  /* Player selection: easier taps, less vertical bloat. */
  .player-grid {
    gap: 7px !important;
  }

  .player-card,
  .player-option,
  .bench-card,
  .bench-player-card {
    min-height: 54px;
    touch-action: manipulation;
    transform: translateZ(0);
  }

  .player-card:hover,
  .player-option:hover,
  .slot:hover,
  .bench-card:hover,
  .bench-player-card:hover {
    transform: none !important;
  }

  .club-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .club-header h2 {
    font-size: 22px;
  }

  .club-header p {
    font-size: 12px;
    margin: 4px 0 0;
  }

  .club-header strong {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 15px;
    font-size: 22px;
  }

  /* Pitch performance: isolate expensive absolute-positioned cards. */
  .pitch-wrap {
    contain: layout paint;
  }

  .pitch {
    contain: layout paint;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .slot {
    will-change: transform;
    transform: translateZ(0);
    touch-action: manipulation;
  }

  .slot .player-name,
  .slot small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Results/table: avoid huge cramped columns. */
  .results-actions,
  .table-actions,
  .sim-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .results-actions button,
  .table-actions button,
  .sim-actions button {
    min-height: 42px;
    padding: 10px 8px;
    border-radius: 14px;
    font-size: 12px;
  }

  .live-table-card,
  .final-table-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 560px;
  }

  /* Disable the most expensive decorative animations on mobile. */
  .start-logo,
  .jackpot-team::after,
  .guide-pulse {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 420px) {
  .app {
    width: min(100%, calc(100vw - 12px));
  }

  .controls,
  .sticky-draft-controls,
  .formation-sticky-lifelines {
    width: min(100%, calc(100vw - 12px)) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  .controls button,
  .sticky-draft-controls button,
  .formation-sticky-lifelines button {
    font-size: 11px !important;
  }

  .reel-team {
    width: 126px !important;
    flex-basis: 126px !important;
  }

  .reel-team span {
    max-width: 112px !important;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* DraftXI_mobile_bottom_bar_fix.css
   Put this at the VERY BOTTOM of your CSS.
   This removes the ugly circular mobile layout and turns controls into
   a clean bottom action bar. Desktop is untouched. */

@media (max-width: 760px) {
  body {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .sticky-draft-controls,
  .controls.sticky-draft-controls {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    z-index: 9999 !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;

    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 10px !important;

    border-radius: 22px !important;
    background: rgba(4, 17, 9, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .sticky-draft-controls button,
  .controls.sticky-draft-controls button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 10px 8px !important;

    border-radius: 14px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    text-align: center !important;

    transform: none !important;
  }

  .sticky-draft-controls button:hover:not(:disabled),
  .controls.sticky-draft-controls button:hover:not(:disabled),
  .sticky-draft-controls button:active:not(:disabled),
  .controls.sticky-draft-controls button:active:not(:disabled) {
    transform: none !important;
    filter: brightness(1.06) !important;
  }

  /* Main action gets full-width priority when available */
  .sticky-draft-controls button:first-child,
  .controls.sticky-draft-controls button:first-child {
    grid-column: 1 / -1 !important;
    min-height: 46px !important;
    font-size: 13px !important;
  }

  /* Simulate button also deserves a full row once active */
  .sticky-draft-controls button.guide-pulse,
  .controls.sticky-draft-controls button.guide-pulse {
    grid-column: 1 / -1 !important;
  }

  /* Keep low-priority utility buttons smaller and less loud */
  .sticky-draft-controls .ghost,
  .sticky-draft-controls .sound-toggle,
  .controls.sticky-draft-controls .ghost,
  .controls.sticky-draft-controls .sound-toggle {
    min-height: 36px !important;
    font-size: 10px !important;
    opacity: 0.88 !important;
  }

  .formation-picker {
    margin-bottom: 12px !important;
  }

  .pitch-wrap,
  .club-panel,
  .bench-panel,
  .bench-slot-panel,
  .results,
  .season-sim,
  .live-table-card {
    scroll-margin-bottom: 130px !important;
  }
}

@media (max-width: 380px) {
  .sticky-draft-controls,
  .controls.sticky-draft-controls {
    left: 6px !important;
    right: 6px !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  .sticky-draft-controls button,
  .controls.sticky-draft-controls button {
    min-height: 38px !important;
    padding: 8px 6px !important;
    font-size: 10px !important;
  }

  .sticky-draft-controls button:first-child,
  .controls.sticky-draft-controls button:first-child {
    min-height: 42px !important;
    font-size: 12px !important;
  }
}
/* MOBILE ACTION BAR */
@media (max-width: 768px) {
  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    gap: 8px;
    padding: 10px;
    z-index: 9999;
  }

  .mobile-action-bar button {
    flex: 1;
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
  }

  /* Prevent content hiding behind bar */
  .game-container,
  .draft-container,
  .main-content {
    padding-bottom: 90px;
  }
}
  .club-name {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 600;
}

.player-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.player-meta {
  font-size: 13px;
  font-weight: 700;
}
  .collection-card {
  padding: 14px;
}

.collection-club {
  margin-bottom: 10px;
  font-size: 11px;
  opacity: 0.75;
  font-weight: 600;
}

.collection-player {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.collection-meta {
  font-size: 13px;
  font-weight: 600;
}
/* =========================================================
   Collection no-club-name polish
   Use with DraftXI_collection_no_club_names.jsx
   ========================================================= */

.collection-card-club,
.collection-club,
.club-name {
  display: none !important;
}

.player-collection-grid {
  gap: 12px !important;
}

.player-collection-card {
  min-height: 94px !important;
  padding: 14px 12px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 8px !important;
}

.player-collection-card strong,
.collection-player {
  display: block !important;
  max-width: 100% !important;
  margin: 0 0 6px !important;
  color: #f5fff8 !important;
  font-size: 15px !important;
  font-weight: 1000 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.player-collection-card small,
.collection-meta {
  min-width: 56px !important;
  min-height: 30px !important;
  width: auto !important;
  height: auto !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: rgba(141, 255, 179, 0.15) !important;
  color: var(--green) !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

.player-collection-card em {
  margin-top: -2px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

@media (max-width: 720px) {
  .player-collection-screen {
    padding: 16px 12px 94px !important;
  }

  .player-collection-hero {
    padding: 16px !important;
    border-radius: 22px !important;
    gap: 12px !important;
  }

  .player-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .player-collection-card {
    min-height: 86px !important;
    padding: 12px 10px !important;
    border-radius: 16px !important;
  }

  .player-collection-card strong,
  .collection-player {
    font-size: 13.5px !important;
    margin-bottom: 5px !important;
  }

  .player-collection-card small,
  .collection-meta {
    min-height: 28px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  .player-collection-grid {
    gap: 8px !important;
  }

  .player-collection-card strong,
  .collection-player {
    font-size: 12.5px !important;
  }
}

/* World Cup Draft branding polish */
.start-eyebrow,
.eyebrow {
  color: var(--gold);
}

.start-card h1 {
  text-transform: uppercase;
  letter-spacing: -0.055em;
}

.start-logo {
  filter: drop-shadow(0 12px 24px rgba(255, 209, 102, 0.25));
}

.mode-pill-button {
  display: grid !important;
  place-items: center !important;
  line-height: 1.05 !important;
}

.mode-pill-button small {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1::after,
.start-card h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #ffffff, var(--blue));
}

.hero h1::after {
  margin-left: 0;
}

.controls .share-draft-button,
.results-actions .share-draft-button,
.start-button {
  background: linear-gradient(135deg, #ffd166, #f59e0b) !important;
  color: #071428 !important;
  border: 1px solid rgba(255, 209, 102, 0.5);
}

.spinner-pointer,
.slot span,
.record-card strong,
.collection-percent {
  color: var(--gold) !important;
}

.winner-team,
.slot.can-place {
  outline-color: var(--gold) !important;
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.20), 0 14px 30px rgba(0, 0, 0, 0.38) !important;
}


/* Lifeline warning before simulation */
.lifeline-warning {
  margin: 0 0 22px;
  padding: 22px 24px 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(104, 255, 159, 0.13), rgba(30, 94, 255, 0.10)),
    rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(121, 242, 164, 0.42);
  box-shadow: var(--shadow);
}

.lifeline-warning-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lifeline-warning-kicker {
  color: #7cffad;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lifeline-warning-pill {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(121, 242, 164, 0.18);
  color: #eafff1;
  font-size: 13px;
  font-weight: 1000;
}

.lifeline-warning h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lifeline-warning p {
  margin: 0 0 14px;
  color: #dfffea;
  font-size: 16px;
  font-weight: 800;
}

.lifeline-warning-progress {
  width: 100%;
  height: 10px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.lifeline-warning-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #56d778, #8effb7);
}

.lifeline-warning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lifeline-warning button {
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 1000;
  background: var(--green);
  color: var(--green-dark);
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.16);
}

.lifeline-warning button.ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  border: 1px solid var(--panel-border);
  box-shadow: none;
}

/* Removed mini league/nation counter pills from the collection tracker. */
.league-collection-mini {
  display: none !important;
}


/* Final lifeline warning polish: reuse the same Next Move card/button system. */
.next-move-card.lifeline-warning {
  margin: 0 0 22px !important;
  padding: 18px 20px !important;
  border-radius: 24px !important;
}
.next-move-card.lifeline-warning .next-move-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.next-move-card.lifeline-warning h2 {
  margin: 0 0 8px !important;
  color: #f5fff8 !important;
  font-size: clamp(24px, 4vw, 32px) !important;
  line-height: 1.05 !important;
}
.next-move-card.lifeline-warning p {
  margin: 0 0 12px !important;
  color: #dfffea !important;
  font-weight: 800 !important;
}
.next-move-card.lifeline-warning .lifeline-warning-actions {
  margin: 12px 0 0 !important;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.next-move-card.lifeline-warning .lifeline-warning-actions button {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 22px !important;
  background: var(--green) !important;
  color: var(--green-dark) !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.18) !important;
}
.next-move-card.lifeline-warning .lifeline-warning-actions button.ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f4fff7 !important;
  border: 1px solid var(--panel-border) !important;
  box-shadow: none !important;
}
.next-move-card.lifeline-warning .squad-progress {
  margin-top: 8px !important;
}
/* =========================================================
   Draft XI — Save Squad Image Button CSS
   Paste at the BOTTOM of your current CSS.
   ========================================================= */

.save-squad-image-button {
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--green, #8dffb3), #22c55e);
  color: var(--green-dark, #06210f);
  font-weight: 1000;
  border: 1px solid rgba(141, 255, 179, 0.45);
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.18);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.save-squad-image-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.saving-squad-image {
  overflow: visible !important;
}

.saving-squad-image .formation-sticky-lifelines,
.saving-squad-image .save-squad-image-button,
.saving-squad-image .move-overlay,
.saving-squad-image button {
  display: none !important;
}

@media (max-width: 720px) {
  .pitch-toolbar-clean,
  .pitch-toolbar {
    gap: 10px;
  }

  .save-squad-image-button {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
  }
}
/* =========================================================
   Draft XI — Save Squad Image CSS
   Paste this at the VERY BOTTOM of your CSS file.
   ========================================================= */

.save-squad-image-button {
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--green, #8dffb3), #22c55e);
  color: var(--green-dark, #06210f);
  font-weight: 1000;
  border: 1px solid rgba(141, 255, 179, 0.45);
  box-shadow: 0 12px 30px rgba(57, 255, 136, 0.18);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.save-squad-image-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.saving-squad-image {
  overflow: visible !important;
}

.saving-squad-image .formation-sticky-lifelines,
.saving-squad-image .save-squad-image-button,
.saving-squad-image .move-overlay,
.saving-squad-image button {
  display: none !important;
}

@media (max-width: 720px) {
  .save-squad-image-button {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
  }
}
/* =========================================================
   Draft XI — Cool Save Squad Card Button
   Paste this at the VERY BOTTOM of your CSS file.
   ========================================================= */

.save-squad-image-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 44px;
  padding: 12px 18px;

  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);

  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.85), transparent 22%),
    linear-gradient(135deg, #f7d774 0%, #ffd700 28%, #fff4b0 52%, #ffd700 74%, #c99a00 100%);

  color: #111;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.45px;
  text-transform: uppercase;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(255, 215, 0, 0.32),
    0 0 34px rgba(255, 215, 0, 0.22);

  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.save-squad-image-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.75) 45%,
      transparent 70%
    );

  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.75s ease;
}

.save-squad-image-button::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -2;

  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 55%);
  pointer-events: none;
}

.save-squad-image-button:hover::before {
  transform: translateX(130%) skewX(-18deg);
}

.save-squad-image-button:hover {
  transform: translateY(-2px) scale(1.035);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 14px 30px rgba(255, 215, 0, 0.42),
    0 0 46px rgba(255, 215, 0, 0.3);
}

.save-squad-image-button:active {
  transform: translateY(0) scale(0.97);
}

.save-squad-icon {
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}

.save-squad-text {
  line-height: 1;
  white-space: nowrap;
}

.save-squad-spark {
  font-size: 14px;
  line-height: 1;
  animation: draftXIButtonSpark 1.45s ease-in-out infinite;
}

@keyframes draftXIButtonSpark {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
}

.saving-squad-image {
  overflow: visible !important;
}

.saving-squad-image .formation-sticky-lifelines,
.saving-squad-image .save-squad-image-button,
.saving-squad-image .move-overlay,
.saving-squad-image button {
  display: none !important;
}

@media (max-width: 720px) {
  .save-squad-image-button {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 13px;
  }
}