/* ═══════════════════════════════════════════════════════════════════════════
   RETROPITCH MANAGER — FOOTBALL MOBILE DESIGN SYSTEM
   OSM / FIFA Mobile / Golazo Arcade Aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700;1,800&family=Outfit:wght@400;500;600;700;800;900&family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
  /* ── Figma Design Tokens ──────────────────────────────────────── */
  --bg:                  #0B1628;
  --panel:               #101E35;
  --card:                #142038;
  --card-hi:             #1A2D4A;
  --border:              #1E3050;
  --border-hi:           #243660;
  --green:               #06C96E;
  --green-dim:           #059952;
  --cyan:                #00B4D8;
  --gold:                #FFB703;
  --gold-dim:            #C98A00;
  --red:                 #E63946;
  --text:                #E8F4FD;
  --text-dim:            #6A8FAF;
  --text-muted:          #304860;

  /* ── Mapped App Tokens ────────────────────────────────────────── */
  --bg-app-canvas:       var(--bg);
  --bg-app-card:         var(--card);
  --bg-app-card-sub:     var(--card-hi);
  --bg-app-hud:          var(--panel);
  --border-card:         var(--border);
  --border-card-subtle:  var(--border-hi);
  --border-card-hover:   var(--cyan);

  /* Vibrant Accents */
  --accent-cyan:         var(--cyan);
  --accent-cyan-glow:    rgba(0, 180, 216, 0.35);
  --accent-emerald:      var(--green);
  --accent-emerald-glow: rgba(6, 201, 110, 0.35);
  --accent-gold:         var(--gold);
  --accent-gold-glow:    rgba(255, 183, 3, 0.35);
  --accent-coral:        var(--red);
  --accent-coral-glow:   rgba(230, 57, 70, 0.35);

  /* Legacy screen styles map to the current game palette. */
  --accent-green:        var(--green);
  --accent-red:          var(--red);
  --danger-red:          var(--red);
  --neon-green:          var(--green);
  --panel-border:        var(--border);
  --panel-bg-alt:        var(--card-hi);

  /* Turf Stripes */
  --turf-light:          #1C5C2A;
  --turf-dark:           #185024;
  --turf-chalk:          rgba(255, 255, 255, 0.75);

  /* Position Colors */
  --pos-gk:              var(--gold);
  --pos-def:             #2563eb;
  --pos-mid:             var(--green);
  --pos-att:             var(--red);

  /* Typography */
  --text-main:           var(--text);
  --font-family:         'Outfit', system-ui, -apple-system, sans-serif;
  --font-display:        'Barlow Condensed', 'Outfit', system-ui, sans-serif;
  --font-pixel:          'Press Start 2P', monospace;
  --font-mono:           'Share Tech Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  padding: 16px;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(11, 22, 40, 0.50) 0%, rgba(11, 22, 40, 0.82) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(0, 180, 216, 0.10) 0%, transparent 65%),
    url('../img/stadium-bg.jpg');
  background-position: center top;
  background-size: 100% 100%, 100% 100%, cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* ── Figma Typography & Border Utilities ────────────────────────────────────── */
.pixel { font-family: var(--font-pixel); }
.mono  { font-family: var(--font-mono); }

/* Scanlines */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 1;
}

/* Pixel Borders */
.px-border       { border: 2px solid var(--border-hi); }
.px-border-green { border: 2px solid var(--green); box-shadow: 0 0 12px rgba(6,201,110,0.25); }
.px-border-gold  { border: 2px solid var(--gold);  box-shadow: 0 0 12px rgba(255,183,3,0.25); }
.px-border-cyan  { border: 2px solid var(--cyan);  box-shadow: 0 0 12px rgba(0,180,216,0.25); }

/* ── Figma Buttons ──────────────────────────────────────────────────────────── */
.btn-green {
  background: var(--green);
  color: #fff;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 6px;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 14px rgba(6, 201, 110, 0.25);
  text-decoration: none;
}
.btn-green:hover  { background: #08e07a; box-shadow: 0 0 20px rgba(6, 201, 110, 0.45); }
.btn-green:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--border-hi);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Figma Badges ───────────────────────────────────────────────────────────── */
.badge {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-green  { background: rgba(6,201,110,0.15); color: var(--green); border: 1px solid rgba(6,201,110,0.3); }
.badge-gold   { background: rgba(255,183,3,0.15);  color: var(--gold);  border: 1px solid rgba(255,183,3,0.3); }
.badge-cyan   { background: rgba(0,180,216,0.15);  color: var(--cyan);  border: 1px solid rgba(0,180,216,0.3); }
.badge-red    { background: rgba(230,57,70,0.15);  color: var(--red);   border: 1px solid rgba(230,57,70,0.3); }
.badge-gray   { background: rgba(61,90,122,0.3);   color: var(--text-dim); border: 1px solid var(--border-hi); }

/* ── Figma Pill Toggle Groups ───────────────────────────────────────────────── */
.pill-group { display: flex; gap: 0; }
.pill-btn {
  background: var(--card);
  color: var(--text-dim);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 2px solid var(--border-hi);
  cursor: pointer;
  padding: 7px 16px;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pill-btn:not(:first-child) { border-left: none; }
.pill-btn:first-child  { border-radius: 4px 0 0 4px; }
.pill-btn:last-child   { border-radius: 0 4px 4px 0; }
.pill-btn.active       { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.pill-btn.active-green { background: var(--green); color: #fff; border-color: var(--green); }
.pill-btn.active-red   { background: var(--red);   color: #fff; border-color: var(--red); }

/* ── Figma Form Elements ────────────────────────────────────────────────────── */
.rpm-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}
.rpm-input:focus { border-color: var(--cyan); }
.rpm-input::placeholder { color: var(--text-muted); }

.rpm-select {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A9CC0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.rpm-select:focus { border-color: var(--cyan); }

/* ── Figma Pitch Texture ────────────────────────────────────────────────────── */
.pitch-bg, .pitch-stage-wrap, .tactical-pitch-preview {
  background-color: #1C5C2A;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(0,0,0,0.05) 30px, rgba(0,0,0,0.05) 60px),
    repeating-linear-gradient(0deg, rgba(28,92,42,1) 0px, rgba(28,92,42,1) 28px, rgba(24,80,36,1) 28px, rgba(24,80,36,1) 56px);
}


/* ── Vector SVG Icon Component ─────────────────────────────────────────────── */
.icon-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-coin { color: var(--accent-gold); }
.icon-star { color: var(--accent-gold); }
.icon-trophy { color: var(--accent-gold); }
.icon-pitch { color: var(--accent-emerald); }
.icon-squad { color: var(--accent-cyan); }
.icon-tactics { color: #a855f7; }
.icon-replay { color: #38bdf8; }
.icon-bolt { color: var(--accent-gold); }
.icon-shield { color: var(--accent-cyan); }

/* ── Mobile Game App Shell Container (Aligned with Dashboard standard) ───── */
.retro-container {
  max-width: 1040px;
  margin: 0 auto 60px;
  padding: 0 16px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

/* Auth / Onboarding Shell specific card styling */
.retro-container.auth-shell {
  max-width: 440px;
  margin: 40px auto 60px;
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 180, 216, 0.08);
  padding: 24px;
  overflow: hidden;
}

/* ── Top Game HUD Bar (OSM Pill Style) ──────────────────────────────────────── */
.game-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(8, 23, 46, 0.85);
  border: 1px solid var(--border-card-subtle);
  border-radius: 14px;
  margin-bottom: 18px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-profile-medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #0c2242);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
  position: relative;
}

.hud-profile-lvl {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #000;
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
}

.hud-profile-info {
  display: flex;
  flex-direction: column;
}

.hud-manager-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.hud-club-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.hud-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
}

.hud-pill.cash {
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.35);
}

.hud-pill.rep {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.35);
}

.hud-pill.round {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Segmented App Navigation Bar ──────────────────────────────────────────── */
.game-nav-bar {
  display: flex;
  gap: 6px;
  background: rgba(5, 14, 28, 0.65);
  border: 1px solid var(--border-card-subtle);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 22px;
  overflow-x: auto;
}

.game-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.game-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.game-nav-item.active {
  background: linear-gradient(135deg, var(--cyan) 0%, #0284a5 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}

.game-nav-item.logout {
  margin-left: auto;
  color: #f87171;
}

.game-nav-item.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ── OSM-Style Hero Match Showdown Card ────────────────────────────────────── */
.hero-matchday-card {
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-matchday-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
  z-index: 2;
}

.hero-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.match-showdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
}

.club-crest-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.club-crest-circle {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  border: 2px solid;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s;
}

.club-crest-circle:hover {
  transform: scale(1.06);
}

.club-title-text {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.team-form-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.form-pill {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-pill.w { background: var(--green); }
.form-pill.d { background: var(--gold); }
.form-pill.l { background: var(--red); }

.vs-shield-gold {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fef3c7;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  flex-shrink: 0;
}

/* ── Fast Forward Simulation Bar ───────────────────────────────────────────── */
.game-sim-bar {
  background: linear-gradient(135deg, rgba(16, 42, 82, 0.9) 0%, rgba(9, 26, 51, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sim-label-title {
  font-size: 13px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.5px;
}

.sim-label-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ── Chunky Arcade Buttons (Figma Spec) ────────────────────────────────────── */
.btn-arcade-action {
  background: var(--green);
  color: #fff;
  border: none;
  border-bottom: 3px solid var(--green-dim);
  padding: 11px 22px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  box-shadow: 0 0 14px rgba(6, 201, 110, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.btn-arcade-action:hover {
  background: #08e07a;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(6, 201, 110, 0.5);
}

.btn-arcade-action:active {
  transform: scale(0.98);
  border-bottom-width: 1px;
}

.btn-arcade-action:disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-arcade-cyan {
  background: var(--cyan);
  color: #fff;
  border: none;
  border-bottom: 3px solid #0096b4;
  padding: 9px 18px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.3);
}

.btn-arcade-cyan:hover {
  background: #1ac8ec;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(0, 180, 216, 0.5);
}

.btn-arcade-cyan:active {
  transform: scale(0.98);
  border-bottom-width: 1px;
}

/* ── Football Mobile Team Sheet & Player Cards ─────────────────────────────── */
.roster-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 16px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-card-subtle);
}

.player-card-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.player-card-table th {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-card-table td {
  background: rgba(16, 42, 80, 0.4);
  padding: 10px 14px;
  vertical-align: middle;
  transition: background 0.15s;
}

.player-card-table tr:hover td {
  background: rgba(56, 189, 248, 0.12);
}

.player-card-table td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.player-card-table td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ── Player Overall Shield Badge (FIFA Mobile / OSM) ───────────────────────── */
.player-ovr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ── Position Badges ───────────────────────────────────────────────────────── */
.pos-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-align: center;
  min-width: 38px;
}

.pos-GK  { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.pos-DEF { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.pos-MID { background: linear-gradient(135deg, var(--green), #047857); color: #fff; }
.pos-ATT { background: linear-gradient(135deg, var(--red), #b91c1c); color: #fff; }

/* ── Stamina Energy Gauge ──────────────────────────────────────────────────── */
.stamina-gauge-wrap {
  width: 50px;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

.stamina-gauge-fill {
  height: 100%;
  border-radius: 4px;
}

.stamina-gauge-fill.high { background: #10b981; }
.stamina-gauge-fill.med  { background: #f59e0b; }
.stamina-gauge-fill.low  { background: #ef4444; }

/* ── Switch Slider (Checkbox Lineup Picker) ─────────────────────────────────── */
.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: .2s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #94a3b8;
  border-radius: 50%;
  transition: .2s;
}

.switch-input:checked + .switch-slider {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
}

.switch-input:checked + .switch-slider:before {
  transform: translateX(20px);
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* ── Alternating Green Turf Pitch Board ────────────────────────────────────── */
.tactical-pitch-preview {
  position: relative;
  width: 100%;
  height: 300px;
  background: repeating-linear-gradient(
    0deg,
    var(--turf-light) 0px,
    var(--turf-light) 30px,
    var(--turf-dark) 30px,
    var(--turf-dark) 60px
  );
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pitch-center-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 2px solid var(--turf-chalk);
  border-radius: 50%;
}

.pitch-center-circle::after {
  content: '';
  position: absolute;
  top: 50%; left: -150px; right: -150px;
  height: 2px;
  background: var(--turf-chalk);
}

.pitch-penalty-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 52px;
  border: 2px solid var(--turf-chalk);
  border-top: none;
}

.pitch-penalty-bottom {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 52px;
  border: 2px solid var(--turf-chalk);
  border-bottom: none;
}

.player-pin, .pitch-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.5);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-pin.gk, .pitch-pin.gk {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fef3c7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.6);
}

/* ── League Standings Cards & Pills ────────────────────────────────────────── */
.div-selector-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.div-pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.15s;
}

.div-pill-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}

.div-pill-btn:hover:not(.active) {
  color: var(--text);
  border-color: var(--cyan);
}

/* ── Teletext / Scoreboard Recap Modal ─────────────────────────────────────── */
.retro-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.retro-modal-box {
  background: #061326;
  border: 2px solid var(--accent-cyan);
  border-radius: 18px;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35), 0 24px 60px rgba(0, 0, 0, 0.85);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.teletext-top-bar {
  background: #040c1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.teletext-header { color: var(--accent-gold); }
.teletext-page { color: var(--accent-cyan); }

.teletext-scoreboard {
  background: linear-gradient(180deg, #0a1f3d 0%, #051020 100%);
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teletext-match-title {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.teletext-score-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.teletext-team {
  flex: 1;
  text-align: center;
}

.teletext-team.home { text-align: right; }
.teletext-team.away { text-align: left; }

.teletext-team-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.teletext-team-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 2px;
}

.teletext-big-score {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent-emerald);
  background: #020710;
  border: 2px solid var(--accent-emerald);
  border-radius: 10px;
  padding: 4px 16px;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.teletext-scorers {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1.6;
}

.teletext-events-scroll {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  max-height: 240px;
  background: #040c1a;
}

.teletext-event-item {
  display: flex;
  gap: 12px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.teletext-minute {
  color: var(--accent-cyan);
  font-weight: 800;
  min-width: 32px;
}

.teletext-event-icon {
  width: 18px;
  text-align: center;
}

.teletext-event-text {
  color: var(--text-main);
  flex: 1;
}

.teletext-actions {
  padding: 14px 20px;
  background: #040c1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── Form Inputs ───────────────────────────────────────────────────────────── */
.retro-form-group {
  margin-bottom: 14px;
}

.retro-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.retro-select {
  width: 100%;
  min-height: 44px;
  background: var(--card);
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.retro-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.retro-alert {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.retro-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.retro-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE-FIRST & TOUCH RESPONSIVE DESIGN SYSTEM (< 768px & < 480px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  body {
    padding: 8px 8px 84px 8px; /* space for sticky bottom navigation */
  }

  body.standalone-screen {
    padding-bottom: 8px;
  }

  .retro-container {
    padding: 12px 10px;
    border-radius: 14px;
    margin-top: 0 !important;
  }

  /* ── Mobile Sticky Bottom Tab Bar (App Shell) ── */
  .game-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--border-card);
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: rgba(6, 17, 33, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 6px 8px env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    justify-content: space-around;
  }

  .game-nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 700;
    flex: 1 0 64px;
    min-height: 44px;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 0;
    white-space: normal;
  }

  .game-nav-item .icon-svg {
    width: 20px;
    height: 20px;
  }

  .game-nav-item.logout {
    margin-left: 0;
  }

  /* ── Mobile Game Top HUD Bar ── */
  .game-hud-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 10px;
  }

  .hud-left {
    justify-content: space-between;
    width: 100%;
  }

  .hud-center {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .hud-pill {
    padding: 5px 8px;
    font-size: 11px;
    flex: 1;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .hud-pill .icon-svg {
    width: 14px;
    height: 14px;
  }

  .hud-right {
    display: none; /* Keep clean on small screens */
  }

  /* ── Mobile Hero Matchday Showdown Card ── */
  .hero-matchday-card {
    padding: 14px;
    border-radius: 14px;
  }

  .match-showdown-row {
    margin: 10px 0;
    gap: 8px;
  }

  .club-crest-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 14px;
  }

  .club-title-text {
    font-size: 12px;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vs-shield-gold {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  /* ── Mobile Simulation Bar ── */
  .game-sim-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }

  .game-sim-bar form {
    width: 100%;
  }

  .game-sim-bar .btn-arcade-action {
    width: 100%;
    height: 44px;
  }

  .sim-label-desc {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }

  /* ── Mobile Team Sheet & Player Roster ── */
  .league-standings-table th:nth-child(4),
  .league-standings-table td:nth-child(4),
  .league-standings-table th:nth-child(5),
  .league-standings-table td:nth-child(5),
  .league-standings-table th:nth-child(6),
  .league-standings-table td:nth-child(6),
  .dashboard-standings-table th:nth-child(4),
  .dashboard-standings-table td:nth-child(4),
  .dashboard-standings-table th:nth-child(5),
  .dashboard-standings-table td:nth-child(5),
  .dashboard-standings-table th:nth-child(6),
  .dashboard-standings-table td:nth-child(6) {
    display: none;
  }

  .player-card-table td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .player-ovr-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 6px;
  }

  .pos-badge {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 32px;
  }

  .stamina-gauge-wrap {
    width: 36px;
    height: 6px;
  }

  .switch-label {
    width: 44px;
    height: 24px;
  }

  .switch-slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
  }

  .switch-input:checked + .switch-slider:before {
    transform: translateX(20px);
  }

  /* ── Tactical Pitch on Mobile ── */
  .tactical-pitch-preview {
    height: 240px;
  }

  .player-pin, .pitch-pin {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  /* ── Standings on Mobile ── */
  .div-selector-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .div-pill-btn {
    padding: 10px;
    font-size: 12px;
  }

  /* ── Modal on Mobile ── */
  .retro-modal-box {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 14px;
  }

  .teletext-score-row {
    gap: 10px;
  }

  .teletext-team-name {
    font-size: 14px;
  }

  .teletext-big-score {
    font-size: 26px;
    padding: 2px 10px;
  }

  .teletext-actions {
    flex-direction: column;
  }

  .teletext-actions .btn-teletext-replay,
  .teletext-actions .btn-teletext-close {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Buttons touch targets ── */
  .btn-arcade-action, .btn-primary {
    min-height: 44px;
    font-size: 13px;
  }

  .retro-select {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 4px 4px 84px 4px;
  }

  .retro-container {
    padding: 10px 8px;
    border-radius: 12px;
  }

  .hud-profile-medal {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .hud-manager-name {
    font-size: 13px;
  }

  .hud-pill {
    padding: 4px 6px;
    font-size: 10px;
    gap: 4px;
  }

  .club-crest-circle {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .club-title-text {
    font-size: 11px;
    max-width: 85px;
  }

  .form-pill {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SQUAD & TACTICS ROOM (OSM-Style Interactive Pitch & Lineup)
   ═══════════════════════════════════════════════════════════════════════════ */
.squad-tactics-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .squad-tactics-grid {
    grid-template-columns: 1fr;
  }
}

/* 2D Pitch Stage — Classic OSM Cut-Grass Turf */
.pitch-stage-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  background: repeating-linear-gradient(
    0deg,
    #1d6c38 0px,
    #1d6c38 34px,
    #16562c 34px,
    #16562c 68px
  );
  border: 3px solid #2d7a52;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.65), 0 10px 28px rgba(0, 0, 0, 0.45);
  user-select: none;
}

/* Pitch Markings */
.pitch-marking {
  position: absolute;
  pointer-events: none;
}
.pitch-mark-halfway {
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.pitch-mark-circle {
  top: 50%; left: 50%;
  width: 116px; height: 116px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.pitch-mark-spot {
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}
.pitch-mark-pen-top {
  top: 0; left: 50%;
  width: 160px; height: 68px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.pitch-mark-goal-top {
  top: 0; left: 50%;
  width: 76px; height: 26px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: none;
}
.pitch-mark-pen-bottom {
  bottom: 0; left: 50%;
  width: 160px; height: 68px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.pitch-mark-goal-bottom {
  bottom: 0; left: 50%;
  width: 76px; height: 26px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: none;
}

/* Pitch Slot Cards — Chunky OSM Player Tokens on Grass */
.pitch-player-slot {
  position: absolute;
  width: 90px;
  min-height: 84px;
  transform: translate(-50%, -50%);
  background: rgba(11, 25, 17, 0.94);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  z-index: 5;
  transition: top 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.16s ease,
              box-shadow 0.16s ease,
              border-color 0.16s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.pitch-player-slot:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

/* Positional Perimeter Accents on Pitch Tokens */
.pitch-player-slot.pos-class-gk, .pitch-player-card.pos-class-gk { border-color: rgba(255, 183, 3, 0.45); }
.pitch-player-slot.pos-class-def, .pitch-player-card.pos-class-def { border-color: rgba(0, 180, 216, 0.45); }
.pitch-player-slot.pos-class-mid, .pitch-player-card.pos-class-mid { border-color: rgba(6, 201, 110, 0.45); }
.pitch-player-slot.pos-class-att, .pitch-player-card.pos-class-att { border-color: rgba(230, 57, 70, 0.45); }

.pitch-slot-jersey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}
.pitch-slot-jersey .icon-jersey {
  width: 13px;
  height: 13px;
}

/* Pulsing Neon Glow for Click-to-Swap / Selected Player */
@keyframes neonPulseGreen {
  0% {
    box-shadow: 0 0 6px #00ff88, 0 0 14px rgba(0, 255, 136, 0.5), inset 0 0 6px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
  }
  50% {
    box-shadow: 0 0 16px #00ff88, 0 0 28px rgba(0, 255, 136, 0.8), inset 0 0 10px rgba(0, 255, 136, 0.5);
    border-color: #70ffb0;
  }
  100% {
    box-shadow: 0 0 6px #00ff88, 0 0 14px rgba(0, 255, 136, 0.5), inset 0 0 6px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
  }
}
.selected-player {
  animation: neonPulseGreen 1.3s infinite ease-in-out !important;
  border-color: #00ff88 !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
  z-index: 25 !important;
}
.bench-card.selected-player, .reserve-card.selected-player {
  transform: scale(1.04) !important;
  animation: neonPulseGreen 1.3s infinite ease-in-out !important;
  border-color: #00ff88 !important;
}

/* Valid Swap Candidate Glow */
.swap-candidate {
  border-color: rgba(0, 229, 255, 0.55) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35) !important;
}
.swap-candidate:hover {
  border-color: #00e5ff !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.7) !important;
}

/* Drag Over Highlight */
.drag-over {
  border-color: #ffc107 !important;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.8) !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Card Elements */
.slot-badge-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.slot-role-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}
.slot-num-tag {
  font-size: 10px;
  font-weight: 900;
  color: #9ca3af;
}

.player-name-pitch {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
  text-align: center;
  line-height: 1.2;
}

.player-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  width: 100%;
}
.pitch-ovr {
  font-size: 11px;
  font-weight: 900;
  color: #fbbf24;
}

/* Efficiency Badges */
.efficiency-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.eff-natural {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.eff-secondary {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.3);
}
.eff-accomplished {
  background: rgba(234, 179, 8, 0.22);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}
.eff-awkward {
  background: rgba(249, 115, 22, 0.22);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.4);
}
.eff-wrong {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.eff-calamity {
  background: rgba(0, 0, 0, 0.6);
  color: #fca5a5;
  border: 1px solid #ef4444;
}

/* Stamina Mini Bar */
.mini-stamina-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}
.mini-stamina-fill {
  height: 100%;
  border-radius: 2px;
}
.mini-stamina-high { background: #22c55e; }
.mini-stamina-med  { background: #eab308; }
.mini-stamina-low  { background: #ef4444; }

/* The Bench Container */
.bench-container {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-app-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
}
.bench-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .bench-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.bench-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bench-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.bench-card.empty-slot {
  border-style: dashed;
  opacity: 0.5;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Reserves Container */
.reserves-container {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-app-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
}
.reserves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.reserve-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reserve-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Tactical Radio Button Groups (Mentality & Intensity) */
.tactical-radio-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.tactical-radio-pill {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tactical-radio-pill .tac-icon {
  display: inline-flex;
  align-items: center;
}
.tactical-radio-pill .tac-icon svg {
  width: 14px;
  height: 14px;
}
.intensity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.intensity-dot.dot-cautious { background-color: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.intensity-dot.dot-normal { background-color: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.intensity-dot.dot-aggressive { background-color: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.tactical-radio-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.tactical-radio-pill.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 200, 83, 0.28) 100%);
  border-color: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.3);
}

/* Tactical Counter Hint Box */
.counter-hint-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  font-size: 11px;
  color: #7dd3fc;
  line-height: 1.4;
}

/* Specialist Feedback Badges */
.specialist-feedback {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.specialist-feedback.success { color: #4ade80; }
.specialist-feedback.warning { color: #f87171; }
.specialist-feedback.neutral { color: #9ca3af; }

/* Toast Notification */
.tactics-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #0f2317;
  border: 1.5px solid var(--accent-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 230, 118, 0.4);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tactics-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.tactics-toast.error {
  background: #2b0e12;
  border-color: #ef4444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SQUAD VIEW TABS & ROSTER OVERVIEW
   ═══════════════════════════════════════════════════════════════════════════ */
.squad-view-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.squad-view-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--card);
  border: 2px solid var(--border-hi);
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  user-select: none;
}
.squad-view-tab:hover {
  border-color: var(--cyan);
  color: #fff;
}
.squad-view-tab.active {
  background: rgba(6, 201, 110, 0.12);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 14px rgba(6, 201, 110, 0.3);
}

/* Filter pills on Roster view */
.roster-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.roster-filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.roster-filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.roster-filter-pill.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #071c0e;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* Interactive Roster Table */
.roster-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: var(--bg-app-card);
}
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.roster-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}
.roster-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  vertical-align: middle;
}
.roster-table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}
.roster-table tbody tr:hover {
  background: rgba(0, 230, 118, 0.06);
}

/* Stat color pill indicators */
.stat-pill-atk {
  font-weight: 800;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.stat-pill-def {
  font-weight: 800;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.stat-pill-ovr {
  font-weight: 900;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Pitch Slot Card Extras */
.pitch-card-skills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  margin-top: 1px;
}
.pitch-card-skills .atk { color: #f87171; }
.pitch-card-skills .def { color: #60a5fa; }
.pitch-card-posinfo {
  font-size: 8px;
  color: #9ca3af;
  margin-top: 1px;
  font-weight: 700;
}
.pitch-info-btn {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 10px;
  color: #9ca3af;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
}
.pitch-info-btn:hover {
  opacity: 1;
  color: var(--accent-cyan);
  transform: scale(1.2);
}

/* Pitch Stat Display Switcher */
.stat-mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.stat-mode-btn {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.stat-mode-btn.active {
  background: var(--accent-cyan);
  color: #071c0e;
}

/* Player Dossier Inspection Modal */
.dossier-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 10, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}
.dossier-modal-overlay[style*="display: none"],
.dossier-modal-overlay[style*="display:none"] {
  display: none !important;
}
.dossier-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.98), rgba(11, 22, 40, 0.99));
  border: 2px solid var(--border-hi);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 180, 216, 0.2);
  padding: 22px;
  position: relative;
  color: #fff;
}
.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dossier-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.dossier-close:hover {
  background: #ef4444;
}
.dossier-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dossier-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.dossier-stat-box .val {
  font-size: 20px;
  font-weight: 900;
  margin-top: 2px;
}
.dossier-stat-box .lbl {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dossier-role-matrix {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.dossier-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.dossier-action-btn {
  flex: 1;
  min-width: 130px;
  padding: 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.dossier-action-btn:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #071c0e;
}

/* ── Shared Screen Components ─────────────────────────────────────────────── */
.retro-panel {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.retro-grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.transfer-tab-btn,
.div-pill-btn,
.squad-view-tab,
.auth-tab-btn {
  min-height: 44px;
}

.retro-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
}

.server-badge,
.match-countdown-box,
.badge-status,
.badge-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.server-badge {
  color: var(--green);
  border-color: rgba(6, 201, 110, 0.35);
}

.match-countdown-box,
.badge-info {
  color: var(--cyan);
  border-color: rgba(0, 180, 216, 0.35);
}

.scoreboard-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  background: linear-gradient(145deg, #0d2850 0%, #06162d 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.team-badge-box {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-badge-box:last-child {
  justify-content: flex-end;
  text-align: right;
}

.team-badge-circle {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.16);
}

.team-name-lg {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.score-display-box {
  min-width: 110px;
  padding: 8px 14px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 22px;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 183, 3, 0.3);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hi);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.canvas-container {
  overflow: hidden;
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  background: #071426;
}

.canvas-container canvas {
  display: block;
  width: 100%;
  max-width: 100%;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.btn-ctrl {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  background: var(--card-hi);
  color: var(--text);
  font: 800 11px var(--font-family);
  cursor: pointer;
}

.btn-ctrl:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.scrubber-slider {
  min-width: 70px;
  flex: 1;
  accent-color: var(--cyan);
}

.timeline-minute {
  min-width: 42px;
  color: var(--gold);
  font: 700 13px var(--font-mono);
  text-align: right;
}

.retro-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.retro-table th {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-hi);
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-align: left;
  text-transform: uppercase;
}

.retro-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(42, 69, 112, 0.55);
  font-size: 12px;
}

.retro-table tbody tr:hover {
  background: rgba(0, 180, 216, 0.06);
}

.event-log-container {
  display: grid;
  gap: 7px;
  max-height: 420px;
  overflow-y: auto;
}

.event-row {
  display: grid;
  grid-template-columns: 38px auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-hi);
}

.event-minute-badge {
  color: var(--cyan);
  font: 700 12px var(--font-mono);
}

.event-type-badge {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 183, 3, 0.14);
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.event-type-badge.goal {
  background: rgba(6, 201, 110, 0.15);
  color: var(--green);
}

.event-type-badge.card,
.event-type-badge.card.red {
  background: rgba(230, 57, 70, 0.15);
  color: var(--red);
}

.event-desc {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.event-desc strong {
  font-size: 12px;
}

.retro-alert-success {
  background: rgba(6, 201, 110, 0.12);
  border-color: rgba(6, 201, 110, 0.38);
  color: #8aefbe;
}

.retro-alert-error {
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.38);
  color: #ff9ca4;
}

@media (max-width: 768px) {
  .retro-grid-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .performance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scoreboard-banner {
    gap: 10px;
    padding: 14px 10px;
  }

  .team-badge-box {
    gap: 7px;
  }

  .team-badge-circle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
    font-size: 11px;
  }

  .team-name-lg {
    font-size: 13px;
  }

  .score-display-box {
    min-width: 80px;
    padding: 7px 8px;
    font-size: 15px;
  }

  .retro-panel {
    padding: 14px 12px;
  }

  .club-grid,
  .listing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .div-selector-tabs,
  .squad-view-tabs {
    flex-wrap: wrap;
  }

  .transfer-tab-btn,
  .div-pill-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .scoreboard-banner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .team-badge-circle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 9px;
  }

  .team-name-lg {
    font-size: 11px;
  }

  .score-display-box {
    min-width: 66px;
    font-size: 12px;
  }

  .playback-controls {
    flex-wrap: wrap;
  }

  .scrubber-slider {
    order: 1;
    flex-basis: 100%;
  }

  .retro-panel {
    overflow-x: auto;
  }
}

/* ── Retro Football Broadcast Skin ─────────────────────────────────────────── */
body,
button,
input,
select,
textarea {
  font-family: var(--font-family);
}

h1,
h2,
h3,
.game-nav-item,
.hero-match-header,
.panel-title,
.roster-group-title,
.btn-arcade-action,
.btn-arcade-cyan,
.auth-tab-btn {
  font-family: var(--font-display);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.retro-container::before {
  display: none !important;
  content: none !important;
}

.game-hud-bar {
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: none;
}

.hud-profile-medal {
  border-radius: 6px;
  background: #18314a;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.hud-profile-lvl {
  border-radius: 2px;
  padding: 2px 4px;
}

.hud-manager-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.5px;
}

.hud-club-name {
  color: var(--text-dim);
  font-family: var(--font-family);
  font-size: 12px;
}

.hud-pill {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(11, 22, 40, 0.6);
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 13px;
}

.game-nav-bar {
  flex-wrap: wrap;
  overflow: visible;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: none;
}

.game-nav-item {
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.game-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.game-nav-item.active {
  background: rgba(6, 201, 110, 0.08);
  border-color: var(--green);
  color: var(--green);
  box-shadow: none;
}

.game-nav-item.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  color: var(--text-muted);
}

.game-nav-item.logout {
  color: var(--red);
}

.game-nav-item.logout:hover {
  background: rgba(230, 57, 70, 0.1);
  color: #ff6470;
}

.card,
.panel,
.retro-panel,
.reserves-container,
.hero-matchday-card,
.block {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.panel-header,
.card-header,
.hero-match-header {
  padding: 10px 14px;
  background: rgba(16, 30, 53, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.8px;
  border-radius: 7px 7px 0 0;
  margin: -18px -18px 14px -18px;
}

.badge-status,
.badge-info,
.badge,
.pos-badge,
.stat-pill,
.form-pill,
.round-chip {
  border-radius: 2px;
  box-shadow: none;
}

.badge-status {
  padding: 4px 7px;
  background: #0a1724;
  border-color: #39546b;
  color: #c5d4df;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
}

.badge-info {
  padding: 3px 6px;
  background: #112f42;
  border-color: #35677c;
  color: #9ddcf0;
  font-family: var(--font-mono);
  font-size: 10px;
}

.match-showdown-row {
  gap: 18px;
}

.club-crest-circle,
.team-badge-circle,
.club-badge-box,
.badge-preview {
  border-radius: 2px;
  box-shadow: 3px 3px 0 #050d16;
}

.club-crest-circle {
  background: #0b1828;
}

.team-form-row {
  gap: 3px;
}

.form-pill {
  width: 18px;
  height: 18px;
  font-family: var(--font-display);
  box-shadow: 2px 2px 0 #050d16;
}

.vs-shield-gold {
  width: 48px;
  height: 48px;
  border: 2px solid #ffe08a;
  border-radius: 2px;
  background: var(--gold);
  color: #30200a;
  font-family: var(--font-pixel);
  font-size: 10px;
  box-shadow: 3px 3px 0 #805800;
}

.game-sim-bar {
  border: 2px solid #31566a;
  border-radius: 2px;
  background: #10283a;
  box-shadow: inset 0 -3px #081521;
}

.sim-label-title {
  color: #a6e2be;
  font-family: var(--font-display);
}

.sim-label-desc {
  color: #a7b8c7;
}

.btn-arcade-action,
.btn-arcade-cyan {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 2px;
  box-shadow: 0 3px 0 var(--green-dim);
  font-size: 14px;
  letter-spacing: 0.8px;
}

.btn-arcade-action:hover {
  background: #10d77b;
  transform: none;
  box-shadow: 0 3px 0 var(--green-dim);
}

.btn-arcade-action:active {
  transform: translateY(2px);
  border-bottom-width: 3px;
  box-shadow: 0 1px 0 var(--green-dim);
}

.btn-arcade-cyan {
  border-radius: 2px;
  box-shadow: 0 3px 0 #087e95;
}

.btn-arcade-cyan:hover {
  transform: none;
  box-shadow: 0 3px 0 #087e95;
}

.player-card-table {
  border-spacing: 0;
}

.player-card-table th {
  padding: 8px 10px;
  border-bottom: 2px solid #486176;
  color: #aabcc9;
  font-family: var(--font-display);
  font-size: 12px;
}

.player-card-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #2a4054;
  background: transparent;
  font-size: 13px;
}

.player-card-table tr:hover td {
  background: #18364a;
}

.player-card-table tr.highlight-club td {
  background: #183b35;
}

.player-card-table tr.highlight-club td:first-child {
  box-shadow: inset 3px 0 var(--green);
}

.player-ovr-badge {
  border-radius: 2px;
  background: #28364a;
  box-shadow: 2px 2px 0 #080f18;
}

.retro-form-group label,
.retro-select,
.rpm-input,
.rpm-select {
  font-family: var(--font-family);
}

.retro-select,
.rpm-input,
.rpm-select {
  border: 2px solid #344d64;
  border-radius: 2px;
  background: #0a1724;
}

.retro-select:focus,
.rpm-input:focus,
.rpm-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.15);
}

.retro-alert {
  border-radius: 2px;
  border-left-width: 4px;
}

.div-selector-tabs,
.transfer-tabs,
.squad-view-tabs {
  gap: 6px;
}

.div-pill-btn,
.transfer-tab-btn,
.squad-view-tab {
  border: 1px solid #344d64;
  border-radius: 2px;
  background: #102238;
  color: #aebdca;
  font-family: var(--font-display);
  box-shadow: 2px 2px 0 #060d16;
}

.div-pill-btn.active,
.transfer-tab-btn.active,
.squad-view-tab.active {
  border-color: #4a8292;
  background: #18404c;
  color: #e7f8ed;
  box-shadow: inset 0 -3px var(--green), 2px 2px 0 #060d16;
}

.div-pill-btn:hover:not(.active),
.transfer-tab-btn:hover,
.squad-view-tab:hover {
  border-color: #7895a7;
  background: #193047;
  color: #fff;
}

.retro-container .transfer-tab-btn {
  min-height: 44px;
}

.retro-container .club-card-item,
.retro-container .preview-panel {
  border: 2px solid #304a62;
  border-radius: 8px;
  background: #11243a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ── Classic OSM Style Transfer Market Trading Cards ─────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}

.listing-card {
  background: linear-gradient(180deg, #182b45 0%, #112136 100%);
  border: 2px solid #2a466c;
  border-bottom: 4px solid #16263b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* Positional Perimeter Accents & Color Themes */
.listing-card,
.transfer-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}

.listing-card.pos-gk,  .transfer-card.pos-gk  { border-color: rgba(255, 183, 3, 0.45); }
.listing-card.pos-def, .transfer-card.pos-def { border-color: rgba(0, 180, 216, 0.45); }
.listing-card.pos-mid, .transfer-card.pos-mid { border-color: rgba(6, 201, 110, 0.45); }
.listing-card.pos-att, .transfer-card.pos-att { border-color: rgba(230, 57, 70, 0.45); }

.listing-card.unique,
.transfer-card.unique {
  border-color: rgba(255, 183, 3, 0.6);
  background: linear-gradient(180deg, #18263e 0%, #111e32 100%);
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.18);
}

/* Card Header Strip */
.listing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.listing-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Country Flag / Nationality Pill */
.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.country-pill .icon-svg {
  width: 12px;
  height: 12px;
  color: var(--accent-gold);
}

.age-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Player Hero Section with Kit Jersey */
.listing-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-jersey-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0f1c2e;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.listing-card.pos-gk .card-jersey-wrap  { color: var(--accent-gold); border-color: rgba(255,183,3,0.5); }
.listing-card.pos-def .card-jersey-wrap { color: #60a5fa; border-color: rgba(59,130,246,0.5); }
.listing-card.pos-mid .card-jersey-wrap { color: var(--green); border-color: rgba(6,201,110,0.5); }
.listing-card.pos-att .card-jersey-wrap { color: #f87171; border-color: rgba(230,57,70,0.5); }

.card-jersey-wrap .icon-jersey {
  width: 26px;
  height: 26px;
}

.card-player-info {
  flex: 1;
  min-width: 0;
}

.card-player-name {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-origin-info {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* The Classic OSM 3-Stat Badge Standard */
.stat-trio {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.stat-box {
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-box.ovr {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25) 0%, rgba(201, 138, 0, 0.3) 100%);
  border: 1.5px solid var(--accent-gold);
}

.stat-box.atk {
  background: rgba(230, 57, 70, 0.18);
  border: 1.5px solid rgba(230, 57, 70, 0.55);
}

.stat-box.def {
  background: rgba(37, 99, 235, 0.18);
  border: 1.5px solid rgba(37, 99, 235, 0.55);
}

.stat-box .stat-val {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.stat-box.ovr .stat-val { color: var(--accent-gold); font-size: 19px; }
.stat-box.atk .stat-val { color: #f87171; }
.stat-box.def .stat-val { color: #60a5fa; }

.stat-box .stat-lbl {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 3px;
}

.stat-box.ovr .stat-lbl { color: rgba(255, 183, 3, 0.9); }
.stat-box.atk .stat-lbl { color: rgba(248, 113, 113, 0.9); }
.stat-box.def .stat-lbl { color: rgba(96, 165, 250, 0.9); }

/* Listing Card Footer */
.listing-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  margin-top: 4px;
}

.listing-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.listing-wage {
  font-size: 11px;
  color: var(--text-dim);
}

.listing-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.listing-price .icon-coin {
  width: 14px;
  height: 14px;
  color: var(--accent-gold);
}

.retro-container .transfer-filter-bar {
  background: #101f32;
  border: 2px solid #304a62;
  border-radius: 3px;
}

.retro-container .stat-chip {
  border-radius: 2px;
  background: #0a1724;
}

.retro-container .retro-table th {
  background: #0b1828;
}

.retro-container .retro-table td {
  background: transparent;
}

.scoreboard-banner {
  border: 2px solid #304a62;
  border-radius: 3px;
  background: #11243a;
  box-shadow: 4px 4px 0 #06101b;
}

.score-display-box {
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: #07111b;
  text-shadow: none;
  box-shadow: 3px 3px 0 #805800;
}

.panel-header {
  border-bottom: 2px solid #39546b;
}

.canvas-container {
  border: 2px solid #526877;
  border-radius: 2px;
  background: #091421;
}

.btn-ctrl {
  border-radius: 2px;
  background: #152a3e;
  box-shadow: 0 2px 0 #050c14;
  font-family: var(--font-display);
}

.event-row {
  border-radius: 2px;
  background: #102238;
}

.retro-container .fixture-row-card {
  border: 1px solid #304a62;
  border-radius: 2px;
  background: #102238;
}

.retro-container .fixture-row-card.user-match {
  border-color: #3f8c62;
  background: #15352e;
}

.pitch-stage-wrap,
.tactical-pitch-preview {
  border: 3px solid #d3dfc3;
  border-radius: 2px;
  box-shadow: 4px 4px 0 #050d16;
}

.pitch-stage-wrap {
  background-color: var(--turf-light);
  background-image: repeating-linear-gradient(
    0deg,
    #1b592b 0 28px,
    #174c25 28px 56px
  );
}

.pitch-player-slot {
  border: 2px solid #b4c4c3;
  border-radius: 2px;
  background: #0a1b1aeF;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  transition: top 0.25s ease, left 0.25s ease, border-color 0.15s ease;
}

.pitch-player-slot:hover {
  transform: translate(-50%, -50%);
  border-color: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.pitch-player-slot.selected-player,
.bench-card.selected-player,
.reserve-card.selected-player {
  animation: none !important;
  border: 2px solid var(--gold) !important;
  box-shadow: 3px 3px 0 #805800 !important;
}

.swap-candidate,
.swap-candidate:hover {
  border-color: var(--cyan) !important;
  box-shadow: 3px 3px 0 #07556a !important;
}

.bench-card,
.reserve-card,
.tactical-radio-pill,
.roster-filter-pill {
  border-radius: 2px;
  background: #102238;
  border-color: #304a62;
  box-shadow: 2px 2px 0 #060d16;
}

.tactical-radio-pill.active {
  border-color: #4a8292;
  background: #18404c;
  box-shadow: inset 0 -3px var(--green), 2px 2px 0 #060d16;
}

.auth-shell {
  border-top: 5px solid var(--green);
}

.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 22px;
  border-bottom: 2px solid #304a62;
}

.auth-edition {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.auth-brand {
  margin-bottom: 22px;
  text-align: center;
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border: 2px solid var(--green);
  border-radius: 2px;
  background: #13352d;
  color: var(--green);
  box-shadow: 4px 4px 0 #06101b;
}

.auth-brand h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.auth-brand p {
  margin-top: 4px;
  color: #a7b8c7;
  font-size: 12px;
}

.retro-container .auth-tab-bar {
  border: 2px solid #304a62;
  border-radius: 2px;
  background: #091522;
}

.retro-container .auth-tab-btn {
  border-radius: 1px;
  color: #a7b8c7;
}

.retro-container .auth-tab-btn.active {
  background: #17434b;
  color: #e7f8ed;
  box-shadow: inset 0 -3px var(--green);
}

.demo-credentials {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #304a62;
  border-radius: 2px;
  background: #091522;
  color: #a7b8c7;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .retro-container .transfer-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .retro-container .transfer-tab-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px;
    white-space: normal;
  }

  .retro-container .transfer-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    padding: 12px;
  }

  .retro-container .transfer-filter-bar > div {
    min-width: 0;
  }

  .retro-container .transfer-filter-bar .transfer-search-field,
  .retro-container .transfer-filter-bar > button {
    grid-column: 1 / -1;
  }

  .retro-container .transfer-filter-bar select {
    width: 100%;
  }

  .retro-container {
    padding: 14px 12px;
    border-radius: 2px;
    box-shadow: 4px 4px 0 #030912;
  }

  .game-nav-bar {
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 2px 2px 0 0;
    border: 2px solid #304a62;
    border-bottom: 0;
    background: #091522;
  }

  .game-nav-item {
    flex: 1 1 52px;
    min-width: 48px;
    min-height: 48px;
    padding: 5px 3px;
    font-size: 10px;
  }

  .game-nav-item.nav-secondary {
    display: none;
  }

  .game-nav-item.active {
    background: #163a50;
  }

  .game-nav-item.logout {
    margin-left: 0;
  }

  .game-hud-bar {
    border-radius: 2px;
  }

  .hero-matchday-card,
  .retro-panel,
  .reserves-container {
    padding: 14px 12px;
    box-shadow: 3px 3px 0 #06101b;
  }

  .hero-match-header {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .auth-brand h1 {
    font-size: 24px;
  }

  .score-display-box {
    font-size: 12px;
  }

  .pitch-stage-wrap .pitch-player-slot {
    width: 54px;
    min-height: 62px;
    padding: 3px;
  }

  .pitch-stage-wrap .slot-badge-header {
    margin-bottom: 0;
  }

  .pitch-stage-wrap .slot-role-tag {
    padding: 1px 2px;
    font-size: 7px;
  }

  .pitch-stage-wrap .slot-num-tag {
    font-size: 7px;
  }

  .pitch-stage-wrap .player-name-pitch {
    max-width: 48px;
    font-size: 8px;
  }

  .pitch-stage-wrap .pitch-card-posinfo {
    display: none;
  }

  .pitch-stage-wrap .player-stats-row {
    gap: 2px;
  }

  .pitch-stage-wrap .pitch-ovr {
    font-size: 9px;
  }

  .pitch-stage-wrap .efficiency-badge {
    padding: 0 2px;
    font-size: 7px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIGMA-INSPIRED DESIGN SYSTEM REFACTOR: COMPONENTS & MODULES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Global Header & Persistent Navigation ────────────────────────────── */
.global-header {
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.global-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 30, 53, 0.95);
}

.header-manager-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar-slot {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.3);
  flex-shrink: 0;
  border: 2px solid var(--cyan);
}

.header-lvl-tag {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--gold);
  color: #0b1628;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1.2;
}

.header-manager-meta {
  display: flex;
  flex-direction: column;
}

.header-manager-name {
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.header-club-name {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.header-div-badge {
  color: var(--text-muted);
  font-weight: 700;
}

.header-stats-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.header-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(11, 22, 40, 0.6);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.header-stat-chip.chip-gold {
  color: var(--gold);
  border-color: rgba(255, 183, 3, 0.3);
  background: rgba(255, 183, 3, 0.08);
}
.header-stat-chip.chip-gold .chip-icon {
  color: var(--gold);
}

.header-stat-chip.chip-cyan,
.header-stat-chip.chip-rep {
  color: var(--cyan);
  border-color: rgba(0, 180, 216, 0.3);
  background: rgba(0, 180, 216, 0.08);
}
.header-stat-chip.chip-cyan .chip-icon,
.header-stat-chip.chip-rep .chip-icon {
  color: var(--cyan);
}

.header-stat-chip.chip-round {
  color: var(--green);
  border-color: rgba(6, 201, 110, 0.3);
  background: rgba(6, 201, 110, 0.08);
}
.header-stat-chip.chip-round .chip-icon {
  color: var(--green);
}

.header-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--green);
  padding-left: 10px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  display: inline-block;
}

/* Persistent Navigation Bar */
.global-header-nav {
  display: flex;
  align-items: stretch;
  background: var(--panel);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 6px;
}
.global-header-nav::-webkit-scrollbar { display: none; }

.nav-tab {
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 11px 16px;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background-color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-tab .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-tab:hover:not(.disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: rgba(6, 201, 110, 0.06);
}

.nav-tab.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  color: var(--text-muted);
}

.nav-tab.nav-rebrand {
  color: var(--gold);
}
.nav-tab.nav-rebrand:hover {
  color: #ffc933;
}

.nav-tab.nav-logout {
  margin-left: auto;
  color: var(--red);
}
.nav-tab.nav-logout:hover {
  color: #ff6470;
  background: rgba(230, 57, 70, 0.08);
}

/* ── 2. 2D Tactics Pitch & Player Tokens ─────────────────────────────────── */
.pitch-player-card,
.player-token,
.pitch-player-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 74px;
  background: rgba(11, 22, 40, 0.94);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.pitch-player-card:hover,
.pitch-player-slot:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--cyan);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.75), 0 0 10px rgba(0, 180, 216, 0.35);
  z-index: 15;
}

.pitch-player-card.pos-class-gk,
.pitch-player-slot.pos-class-gk {
  border-color: rgba(255, 183, 3, 0.6);
  background: rgba(16, 26, 20, 0.95);
}

.pitch-player-card.selected-player,
.pitch-player-slot.selected-player {
  border-color: #00ff88 !important;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.75), 0 6px 20px rgba(0, 0, 0, 0.8) !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
  z-index: 25 !important;
}

/* Token Header: Pos + Kit Number */
.token-header,
.slot-badge-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.token-pos,
.slot-role-tag {
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cyan);
}
.pos-class-gk .token-pos,
.pos-class-gk .slot-role-tag {
  color: var(--gold);
}

.token-number,
.slot-num-tag {
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dim);
}

/* Dedicated Pixel Avatar Slot */
.player-avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  overflow: hidden;
  margin: 1px 0;
}

.player-avatar svg {
  display: block;
}

.token-name,
.player-name-pitch {
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

/* Prominent Main OVR Number */
.token-ovr,
.pitch-ovr {
  font-family: var(--font-mono), monospace;
  font-size: 15px;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.5px;
}
.pos-class-gk .token-ovr,
.pos-class-gk .pitch-ovr {
  color: var(--gold);
}

/* Compact Iconography Stats: ▲ ## (Attack) and ▼ ## (Defense) */
.token-stats,
.pitch-card-skills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}

.token-stat-atk,
.pitch-card-skills .atk {
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 800;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.token-stat-def,
.pitch-card-skills .def {
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 800;
  color: #4FC3F7;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Condition Indicator: Mini Meter */
.token-condition-bar,
.mini-stamina-bar {
  width: 100%;
  height: 3px;
  background: rgba(30, 48, 80, 0.8);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1px;
}

.token-condition-fill,
.mini-stamina-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.2s ease;
}
.condition-high, .mini-stamina-high { background: var(--green); }
.condition-med,  .mini-stamina-med  { background: var(--gold); }
.condition-low,  .mini-stamina-low  { background: var(--red); }

/* Status Badges */
.token-status-badge {
  font-size: 8px;
  font-weight: 900;
  padding: 1px 3px;
  border-radius: 2px;
  text-transform: uppercase;
  line-height: 1.1;
}
.token-status-badge.badge-inj { background: var(--red); color: #fff; }
.token-status-badge.badge-susp { background: #d97706; color: #fff; }

/* ── 3. Transfer Market Harmonization ────────────────────────────────────── */
.transfer-card,
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.transfer-card:hover,
.listing-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 180, 216, 0.2);
}

.transfer-card-header,
.listing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.transfer-card-tags,
.listing-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.transfer-card-hero,
.listing-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.transfer-card-hero .player-avatar {
  width: 44px;
  height: 44px;
  background: var(--card-hi);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  flex-shrink: 0;
}

.transfer-player-info,
.card-player-info {
  min-width: 0;
  flex: 1;
}

.transfer-player-name,
.card-player-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.transfer-player-origin,
.card-origin-info {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact standardized stats row */
.transfer-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.transfer-ovr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
  border-right: 1px solid var(--border-hi);
  min-width: 42px;
}

.transfer-ovr-val {
  font-family: var(--font-mono), monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.transfer-ovr-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.transfer-stat-chips {
  display: flex;
  gap: 12px;
  flex: 1;
}

.transfer-stat-chip {
  display: flex;
  align-items: center;
  gap: 4px;
}
.transfer-stat-chip.atk { color: var(--red); }
.transfer-stat-chip.def { color: #4FC3F7; }

.transfer-stat-val {
  font-family: var(--font-mono), monospace;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.transfer-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.transfer-card-footer,
.listing-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: auto;
}

.transfer-meta-row,
.listing-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.transfer-wage,
.listing-wage {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.transfer-price,
.listing-price {
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── 4. Unified Button Styles ────────────────────────────────────────────── */
.btn-buy,
.btn-arcade-action {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(6, 201, 110, 0.25);
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.btn-buy:hover,
.btn-arcade-action:hover:not(:disabled) {
  background: #08e07a;
  border-color: #08e07a;
  box-shadow: 0 4px 14px rgba(6, 201, 110, 0.4);
}

.btn-buy:active,
.btn-arcade-action:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-disabled,
.btn-buy:disabled,
.btn-arcade-action:disabled {
  width: 100%;
  background: rgba(30, 48, 80, 0.35);
  color: var(--text-muted);
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ONLINE SOCCER MANAGER (OSM) ARCADE SQUAD & TACTICS DESIGN SYSTEM
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── OSM Subnavigation Header ─────────────────────────────────────────────── */
.osm-subnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  background: rgba(8, 20, 38, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
}

.osm-subnav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.osm-subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-dim);
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.osm-subnav-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.osm-subnav-pill.active {
  background: #0284c7;
  color: #fff;
  border-color: #00b4d8;
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.35);
}

.osm-subnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #ffd166;
  font-family: var(--font-display), sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.osm-action-btn:hover {
  background: rgba(255, 209, 102, 0.15);
  border-color: #ffd166;
}

/* ── VIEW 1: SELECTIE (Roster Table + Club Dossier Card) ────────────────────── */
.osm-selectie-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 992px) {
  .osm-selectie-grid {
    grid-template-columns: 1fr;
  }
}

.osm-line-section {
  margin-bottom: 18px;
  border: 2px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.osm-line-header {
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.osm-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.osm-roster-table th {
  background: rgba(6, 14, 28, 0.8);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.osm-roster-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
  vertical-align: middle;
}

.osm-roster-table tr:hover td {
  background: rgba(0, 180, 216, 0.06);
}

.osm-kit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.osm-player-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osm-player-cell .osm-name {
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osm-pos-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.osm-pos-gk  { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.osm-pos-def { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.osm-pos-mid { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.osm-pos-att { background: rgba(239, 68, 68, 0.2);  color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.osm-ovr-cell {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  color: #00b4d8;
}

.osm-capsule-bar {
  display: inline-block;
  width: 44px;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
}

.osm-capsule-fill {
  height: 100%;
  background: #06c96e;
  border-radius: 4px;
}

.osm-val-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

/* ── Right-Side Club Dossier Card (Selectie) ───────────────────────────────── */
.osm-club-card {
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.osm-card-club-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.osm-card-club-header .club-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.osm-card-club-header .manager-name {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.osm-mini-pitch-3d {
  position: relative;
  background: linear-gradient(180deg, #1b4d2e 0%, #153e24 100%);
  border: 2px solid #2e7d32;
  border-radius: 8px;
  padding: 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.osm-pitch-lines-averages {
  display: flex;
  gap: 6px;
}

.osm-line-badge-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 22, 40, 0.88);
  border: 2px solid #00b4d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.osm-line-badge-circle .lbl {
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1;
}

.osm-line-badge-circle .val {
  font-size: 13px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.2;
}

.osm-teamcijfer-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #162438 0%, #0b1524 100%);
  border: 3px solid #ffd166;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.35);
}

.osm-teamcijfer-badge .t-label {
  font-size: 8px;
  color: #ffd166;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.osm-teamcijfer-badge .t-val {
  font-size: 24px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
}

.osm-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.osm-stat-tile {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.osm-stat-tile .lbl {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}

.osm-stat-tile .val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.osm-card-highlights {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.osm-highlight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.osm-highlight-row .hl-lbl {
  color: var(--text-dim);
  font-weight: 700;
}

.osm-highlight-row .hl-val {
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── VIEW 2: OPSTELLING (Pitch + Wisselbank + Tribune) ─────────────────────── */
.osm-opstelling-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 992px) {
  .osm-opstelling-grid {
    grid-template-columns: 1fr;
  }
}

.osm-pitch-wrapper {
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

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

.osm-pitch-toolbar-left,
.osm-pitch-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osm-formation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}

.osm-formation-dropdown {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

.osm-formation-dropdown option {
  background: #0b1628;
  color: #fff;
}

.osm-pitch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.osm-pitch-btn:hover {
  color: #fff;
  background: rgba(0, 180, 216, 0.15);
  border-color: #00b4d8;
}

.osm-view-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s ease;
}

.osm-view-toggle.active {
  background: #0284c7;
  color: #fff;
  border-color: #00b4d8;
}

/* ── OSM Horizontal Pitch Cards (Screenshot 2 exact style) ─────────────────── */
.osm-pitch-card {
  position: absolute;
  width: 106px;
  height: 60px;
  background: linear-gradient(180deg, rgba(10, 30, 58, 0.96) 0%, rgba(4, 14, 28, 0.98) 100%);
  border: 2px solid #00b4d8;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65), 0 0 10px rgba(0, 180, 216, 0.25);
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
  display: grid;
  grid-template-columns: 14px 1fr 34px;
  grid-template-rows: 40px 18px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.osm-pitch-card:hover {
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 10;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 180, 216, 0.5);
}

.osm-pitch-card.selected-player {
  border-color: #ffd166 !important;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.85) !important;
}

.osm-pitch-card.swap-candidate {
  border-style: dashed !important;
  border-color: #06c96e !important;
}

.osm-pitch-card.pos-gk  { border-color: #fbbf24; }
.osm-pitch-card.pos-def { border-color: #3b82f6; }
.osm-pitch-card.pos-mid { border-color: #10b981; }
.osm-pitch-card.pos-att { border-color: #ef4444; }

.osm-card-bars {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 3px 1px;
}

.osm-card-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.osm-card-bar-item .bar-lbl {
  font-size: 7px;
  font-weight: 900;
  color: var(--text-dim);
}

.osm-card-bar-item .bar-pill {
  width: 4px;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.osm-card-bar-item .bar-pill-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #06c96e;
  border-radius: 2px;
}

.osm-card-avatar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.osm-card-role-ovr {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 2px;
}

.osm-card-role-ovr .role-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.osm-card-role-ovr .ovr-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  color: #00b4d8;
  line-height: 1.1;
  margin-top: 2px;
}

.osm-card-nameplate {
  grid-column: 1 / span 3;
  grid-row: 2;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Empty pitch slot */
.osm-empty-slot {
  position: absolute;
  width: 106px;
  height: 60px;
  background: rgba(6, 16, 32, 0.75);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
}

.osm-empty-slot:hover {
  border-color: #00b4d8;
  background: rgba(0, 180, 216, 0.1);
}

.osm-empty-slot .slot-pos {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}

.osm-empty-slot .slot-hint {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Wisselbank (Substitutes Row - 7 designated slots) ──────────────────────── */
.osm-wisselbank {
  margin-top: 16px;
  background: rgba(6, 14, 28, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.osm-wisselbank-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.osm-wisselbank-slots-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .osm-wisselbank-slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 540px) {
  .osm-wisselbank-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.osm-bench-box {
  background: rgba(11, 22, 40, 0.9);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 78px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.osm-bench-box:hover {
  border-color: #00b4d8;
  transform: translateY(-2px);
}

.osm-bench-box.selected-player {
  border-color: #ffd166 !important;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.7);
}

.osm-bench-box.empty {
  border-style: dashed;
  opacity: 0.65;
}

.osm-bench-box .bench-label {
  font-size: 8px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.osm-bench-box .bench-name {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  margin-top: 2px;
}

.osm-bench-box .bench-ovr {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #00b4d8;
}

/* ── TRIBUNE (Reserves & Bench Squad Sidebar) ───────────────────────────────── */
.osm-tribune-card {
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.osm-tribune-header {
  background: rgba(6, 14, 28, 0.95);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.8px;
  color: #fff;
  text-transform: uppercase;
}

.osm-tribune-content {
  max-height: 640px;
  overflow-y: auto;
}

.osm-tribune-group-title {
  background: rgba(2, 132, 199, 0.35);
  color: #7dd3fc;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.osm-tribune-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.12s ease;
}

.osm-tribune-item:hover {
  background: rgba(0, 180, 216, 0.12);
}

.osm-tribune-item.selected-player {
  background: rgba(255, 209, 102, 0.18);
  border-left: 3px solid #ffd166;
}

.osm-tribune-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.osm-tribune-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── VIEW 3: TACTIEK (Matchup Preview & Tactical Board) ─────────────────────── */
.osm-tactiek-matchup-banner {
  background: linear-gradient(180deg, rgba(8, 22, 44, 0.95) 0%, rgba(4, 12, 24, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.matchup-banner-top {
  text-align: center;
  margin-bottom: 10px;
}

.matchup-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.matchup-banner-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.matchup-team {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.matchup-team.away-team {
  justify-content: flex-end;
}

.matchup-team-info .matchup-team-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.matchup-team-info .matchup-manager {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

.matchup-vs-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.matchup-vs-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffd166;
  letter-spacing: 1px;
}

.matchup-rating-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00b4d8;
  color: #0b1628;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.5);
}

.matchup-banner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.matchup-formation {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 800;
}

.matchup-referee {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 800;
}

/* Tactical cards grid */
.osm-tactiek-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .osm-tactiek-grid {
    grid-template-columns: 1fr;
  }
}

.osm-tactiek-card {
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.95), rgba(11, 22, 40, 0.98));
  border: 2px solid var(--border-hi);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-header-bar .card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.osm-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 10px 0;
}

.osm-stepper.mini {
  padding: 4px 6px;
  margin: 4px 0;
}

.stepper-arrow {
  background: transparent;
  border: none;
  color: #00b4d8;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 10px;
  line-height: 1;
  transition: transform 0.1s ease;
}

.stepper-arrow:hover {
  color: #fff;
  transform: scale(1.2);
}

.stepper-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.osm-stepper.mini .stepper-value {
  font-size: 12px;
}

.tactic-pitch-preview {
  height: 110px;
  background: linear-gradient(180deg, #1b4d2e 0%, #153e24 100%);
  border: 1px solid #2e7d32;
  border-radius: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.tactic-avatar-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.osm-slider-group {
  margin-bottom: 14px;
}

.osm-slider-group:last-child {
  margin-bottom: 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slider-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.slider-label-text {
  font-size: 12px;
  color: #00b4d8;
  font-weight: 800;
}

.slider-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.osm-range-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  accent-color: #00b4d8;
  cursor: pointer;
}

.slider-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  min-width: 24px;
  text-align: right;
}

.osm-lines-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
}

.lines-pitch-diagram {
  height: 150px;
  background: linear-gradient(180deg, #1b4d2e 0%, #153e24 100%);
  border: 1px solid #2e7d32;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lines-steppers-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-stepper-box .line-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.aanvallers-lbl { color: #f87171; }
.middenvelders-lbl { color: #34d399; }
.verdedigers-lbl { color: #60a5fa; }

/* ── Club Badge Crest Boxes ────────────────────────────────────────────────── */
.hero-badge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display), sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  border: 3px solid;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  user-select: none;
}
.hero-badge-box:hover {
  transform: scale(1.05);
}
.shape-shield  { border-radius: 6px 6px 28px 28px; }
.shape-circle  { border-radius: 50%; }
.shape-diamond { transform: rotate(45deg); }
.shape-diamond > span { transform: rotate(-45deg); display: block; }
.shape-banner  { border-radius: 4px 4px 22px 4px; }


