/* Momentum Motorsport — GTA theme (mobile-first)
   No gameplay logic here: styling only.
*/

.mtm-panel.mtm-theme-gta{
  max-width: 980px;
  margin: 14px auto;
  padding: 14px;
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  background: #0b0d10;
  color: #e8eaee;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 34px rgba(0,0,0,0.55);
}

.mtm-panel.mtm-theme-gta .mtm-lock-overlay{
  position:absolute;
  inset:0;
  z-index:450;
  border-radius:18px;
  background:rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(3px);
}

.mtm-panel.mtm-theme-gta .mtm-lock-modal{
  width:min(92vw, 620px);
  max-width:calc(100vw - 24px);
  position:fixed;
  top:300px;
  left:50%;
  transform:translateX(-50%);
  z-index:1000;
  pointer-events:none;
  padding:22px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.24);
  background:rgba(10, 14, 20, 0.86);
  box-shadow:0 16px 36px rgba(0,0,0,0.45);
  text-align:center;
}

.mtm-panel.mtm-theme-gta .mtm-lock-title{
  margin:0;
  font-family:'Teko', sans-serif;
  font-size:40px;
  line-height:0.95;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#ffffff;
}

.mtm-panel.mtm-theme-gta .mtm-lock-copy{
  margin-top:10px;
  font-size:15px;
  line-height:1.35;
  color:rgba(238, 242, 247, 0.95);
}

.mtm-panel.mtm-theme-gta .mtm-lock-drivers-title{
  margin-top:12px;
  font-family:'Teko', sans-serif;
  font-size:24px;
  line-height:1;
  font-weight:700;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:#eef3fa;
  text-align:center;
}

.mtm-panel.mtm-theme-gta .mtm-lock-picks{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.mtm-panel.mtm-theme-gta .mtm-lock-picks-empty{
  grid-template-columns: 1fr;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-card{
  border:1px solid rgba(255,255,255,0.14);
  border-top:3px solid var(--mtm-lock-accent, #c09b2f);
  border-radius:14px;
  background:rgba(8, 12, 18, 0.82);
  padding:10px;
  text-align:left;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-card-empty{
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-top-color: rgba(255,255,255,0.30);
  background:rgba(10, 14, 20, 0.76);
  text-align:center;
}

.mtm-panel.mtm-theme-gta .mtm-lock-empty-text{
  font-family:'Teko', sans-serif;
  font-size:28px;
  line-height:0.95;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#f0f4fa;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-label{
  font-family:'Teko', sans-serif;
  font-size:16px;
  line-height:1;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#f3f7fc;
  opacity:0.92;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-head{
  margin-top:8px;
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-avatar{
  width:70px;
  height:70px;
  border-radius:12px;
  flex:0 0 auto;
  border:2px solid var(--mtm-lock-accent, #c09b2f);
  background: linear-gradient(135deg, var(--mtm-lock-accent, #c09b2f) 0%, rgba(7,10,15,0.95) 100%);
  padding:3px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:9px;
  display:block;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-initials{
  font-family:'Teko', sans-serif;
  font-size:24px;
  line-height:1;
  letter-spacing:0.06em;
  font-weight:700;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-name{
  font-family:'Teko', sans-serif;
  font-size:20px;
  line-height:0.95;
  font-weight:700;
  letter-spacing:0.07em;
  text-transform:uppercase;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-teamline{
  display:flex;
  align-items:center;
  gap:7px;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-teamdot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--mtm-lock-accent, #c09b2f);
  box-shadow:0 0 0 1px rgba(0,0,0,0.30);
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-team{
  font-size:12px;
  font-weight:700;
  opacity:0.92;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-natline{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  font-size:11px;
  opacity:0.90;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-natlabel{
  font-weight:900;
  letter-spacing:0.08em;
  opacity:0.72;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-sep{
  opacity:0.62;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-flag{
  font-size:14px;
  line-height:1;
}

.mtm-panel.mtm-theme-gta .mtm-lock-pick-iso2{
  font-weight:900;
  letter-spacing:0.06em;
  opacity:0.82;
}

@media (max-width: 600px){
  .mtm-panel.mtm-theme-gta .mtm-lock-modal{
    top:240px;
    padding:18px 14px;
  }

  .mtm-panel.mtm-theme-gta .mtm-lock-title{
    font-size:32px;
  }

  .mtm-panel.mtm-theme-gta .mtm-lock-copy{
    font-size:14px;
  }

  .mtm-panel.mtm-theme-gta .mtm-lock-drivers-title{
    font-size:20px;
  }

  .mtm-panel.mtm-theme-gta .mtm-lock-picks{
    grid-template-columns: 1fr;
  }

  .mtm-panel.mtm-theme-gta .mtm-lock-empty-text{
    font-size:24px;
  }
}

.mtm-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.mtm-title{ margin:0; font-size:20px; line-height:1.15; letter-spacing:0.2px; }
.mtm-subtitle{ margin:6px 0 0; opacity:0.72; font-size:13px; }

.mtm-title-logo{
  display:block;
  height:168px;
  width:auto;
  max-width:min(95vw, 1320px);
  margin:0 auto;
  object-fit:contain;
}

@media (max-width: 720px){
  .mtm-title-logo{
    height:132px;
    max-width:min(95vw, 1020px);
  }
}

.mtm-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  font-size:12px;
  opacity:0.85;
  background: rgba(255,255,255,0.04);
}

.mtm-warning{
  border:1px solid rgba(214,54,56,0.45);
  background: rgba(214,54,56,0.08);
  border-radius:14px;
  padding:12px 14px;
  color:#fff;
}

.mtm-small{ margin-top:6px; font-size:12px; opacity:0.80; }

/* Weekend block */
.mtm-weekend{
  margin:12px 0;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius:16px;
  padding:12px 14px;
}
.mtm-weekend-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.mtm-weekend-title{ margin:0; font-size:15px; letter-spacing:0.2px; }
.mtm-weekend-tag{
  font-size:12px;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:999px;
  padding:4px 8px;
  opacity:0.9;
  background: rgba(0,0,0,0.25);
}

.mtm-offseason{
  margin: 8px 0 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0.95;
}

.mtm-weekend-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.mtm-weekend-item{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  border-radius:14px;
  padding:10px 12px;
}
.mtm-weekend-label{ font-size:12px; opacity:0.78; }
.mtm-weekend-value{ margin-top:4px; font-weight:650; }
.mtm-weekend-rules{ font-weight:550; opacity:0.90; }

/* Main card */
.mtm-card{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  border-radius:16px;
  padding:12px 12px;
}

.mtm-h4{ margin:0 0 10px; font-size:15px; letter-spacing:0.2px; }
.mtm-muted{ margin:0 0 12px; opacity:0.75; }

/* Sticky pick area */
.mtm-gta-sticky{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}

.mtm-gta-slots{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

.mtm-gta-slot-label{
  font-family:'Teko', sans-serif;
  font-size:15px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.10em;
  line-height:1;
  opacity:0.82;
  margin:0;
}

.mtm-gta-slot-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mtm-gta-slot-card.has-team{
  border-color: var(--mtm-slot-accent, rgba(255,255,255,0.20));
  background: linear-gradient(135deg, var(--mtm-slot-tint, rgba(255,255,255,0.10)) 0%, rgba(0,0,0,0.30) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.mtm-gta-slot-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:10px;                     /* smaller than container */
  display:block;
}



.mtm-gta-slot-avatar{
  --mtm-slot-avatar-accent: rgba(255,255,255,0.28);
  --mtm-slot-avatar-tint: rgba(255,255,255,0.18);
  --mtm-slot-avatar-image: none;
  width:140px;
  height:140px;
  border-radius:14px;
  border:2px solid var(--mtm-slot-avatar-accent); /* team accent border */
  background: linear-gradient(135deg, var(--mtm-slot-avatar-tint) 0%, rgba(11,13,16,0.92) 100%);
  padding:4px;                            /* separation from image */
  box-sizing:border-box;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background-clip:padding-box;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}


.mtm-gta-slot-avatar.is-img{
  background-image:
    var(--mtm-slot-avatar-image),
    linear-gradient(135deg, var(--mtm-slot-avatar-tint) 0%, rgba(11,13,16,0.92) 100%);
  background-origin: content-box, border-box;
  background-clip: content-box, border-box;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, 100% 100%;
  color: transparent;
}

.mtm-gta-slot-name{
  font-weight:800;
  font-size:13px;
  line-height:1.1;
  text-transform:uppercase;
}

.mtm-gta-slot-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.mtm-gta-slot-teamline{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.mtm-gta-slot-teamdot{
  width:9px;
  height:9px;
  border-radius:999px;
  background: var(--mtm-slot-accent, rgba(255,255,255,0.65));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  flex:0 0 auto;
}

.mtm-gta-slot-team{
  font-size:12px;
  font-weight:700;
  opacity:0.92;
  white-space:normal;
  overflow-wrap:anywhere;
}

.mtm-gta-slot-natline{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-width:0;
  font-size:11px;
  opacity:0.90;
}

.mtm-gta-slot-natlabel{
  font-weight:900;
  letter-spacing:0.08em;
  opacity:0.74;
}

.mtm-gta-slot-sep{
  opacity:0.62;
}

.mtm-gta-slot-flag{
  font-size:14px;
  line-height:1;
}

.mtm-gta-slot-iso2{
  font-weight:900;
  letter-spacing:0.06em;
  opacity:0.82;
}

.mtm-gta-slot-state{
  margin-top:2px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.12em;
  opacity:0.75;
}

.mtm-gta-banner{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  font-size:13px;
  opacity:0.92;
}

.mtm-gta-points{
  margin-top:10px;
  font-size:13px;
  opacity:0.92;
}

.mtm-season-total{
  display:inline-block;
  margin-left:4px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

/* Driver grid (2 columns on mobile) */
.mtm-gta-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.mtm-gta-driver{
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  overflow:hidden;
}

.mtm-gta-driver:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15), 0 10px 24px rgba(0,0,0,0.35);
}

.mtm-gta-driver.is-disabled{
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.mtm-gta-front{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mtm-gta-portrait{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: var(--mtm-accent, #c09b2f);
  box-shadow: inset 0 0 0 999px rgba(0,0,0,0.12);
  padding: 3px;
  box-sizing: border-box;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mtm-gta-portrait img,
.mtm-gta-portrait .mtm-gta-initials{
  transform: scale(1);
  transition: transform .22s ease;
  transform-origin: center center;
}

.mtm-gta-portrait img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 11px;
  display:block;
}

.mtm-gta-driver:hover .mtm-gta-portrait img,
.mtm-gta-driver:focus .mtm-gta-portrait img,
.mtm-gta-driver.is-open .mtm-gta-portrait img,
.mtm-gta-driver.is-picked-quali .mtm-gta-portrait img,
.mtm-gta-driver.is-picked-race .mtm-gta-portrait img,
.mtm-gta-driver:hover .mtm-gta-portrait .mtm-gta-initials,
.mtm-gta-driver:focus .mtm-gta-portrait .mtm-gta-initials,
.mtm-gta-driver.is-open .mtm-gta-portrait .mtm-gta-initials,
.mtm-gta-driver.is-picked-quali .mtm-gta-portrait .mtm-gta-initials,
.mtm-gta-driver.is-picked-race .mtm-gta-portrait .mtm-gta-initials{
  transform: scale(1.08);
}
.mtm-gta-initials{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.mtm-gta-name{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.mtm-gta-status-tags{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mtm-gta-status-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.10);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.mtm-gta-status-tag.is-dnf{
  background: rgba(255, 157, 0, 0.22);
  border-color: rgba(255, 176, 46, 0.55);
  color: #ffd28a;
}

.mtm-gta-status-tag.is-dns{
  background: rgba(211, 47, 47, 0.26);
  border-color: rgba(255, 111, 111, 0.64);
  color: #ffd6d6;
}

.mtm-gta-status-tag.is-unavailable{
  background: rgba(129, 26, 26, 0.42);
  border-color: rgba(255, 126, 126, 0.42);
  color: #ffeaea;
}

.mtm-gta-lock{
  position:absolute;
  top:10px;
  right:10px;
  font-size: 16px;
  opacity:0.9;
}

.mtm-gta-badge{
  position:absolute;
  left:10px;
  top:10px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.45);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.mtm-gta-badge-quali{ }
.mtm-gta-badge-race{ top: 10px; }

/* Open state */
.mtm-gta-driver.is-open{
  border-color: rgba(255,255,255,0.18);
}

/* When open, avoid duplicating the driver name (team line is shown on the back). */
.mtm-gta-driver.is-open .mtm-gta-name{
  display:none;
}

.mtm-gta-back{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.10);
}

.mtm-gta-back-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

/* Team line (no flags, no external assets) */
.mtm-gta-teamline{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  opacity:0.85;
}

.mtm-gta-teamdot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--mtm-accent, #c09b2f);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}

.mtm-gta-back-team{
  margin:0;
  font-size: 12px;
  opacity: 0.80;
}

.mtm-gta-baselines{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  font-size: 12px;
  opacity: 0.92;
  display: grid;
  gap: 4px;
}

.mtm-gta-baselines span{
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mtm-gta-actions{
  margin-top:10px;
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
}

.mtm-gta-pickwrap{
  display:grid;
  grid-template-columns: 1fr;
  gap:4px;
}

/* NOTE: mtm-gta-picksub is no longer used now that the subtext lives inside the button */
.mtm-gta-picksub{ display:none; }

.mtm-gta-pick{
  appearance:none;
  border:1px solid rgba(255,255,255,0.14);

  /* 👇 use team colour */
  background: var(--mtm-accent, #c09b2f);

  /* Default to white text */
  color:#ffffff;

  border-radius:14px;
  padding:12px 10px;
  cursor:pointer;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  text-transform: uppercase;

  transition: filter .12s ease, transform .08s ease;
}
/* Make text readable on very bright teams like McLaren */
.mtm-gta-pick[data-team-bright="1"]{
  color:#000;
}

/* Hover / tap feedback */
.mtm-gta-pick:hover{
  filter: brightness(1.08);
}

.mtm-gta-pick:active{
  transform: scale(.98);
}

/* Disabled state */
.mtm-gta-pick:disabled{
  opacity:0.45;
  cursor:not-allowed;
  filter: grayscale(.4);
}

  /* Two-line button layout */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  text-transform: uppercase;
}

.mtm-gta-pick-title{
  font-size:15px;
  font-weight:900;
  letter-spacing:0.08em;
  line-height:1.1;
}

.mtm-gta-pick-sub{
  font-size:11px;
  font-weight:800;
  letter-spacing:0.10em;
  line-height:1.1;
  opacity:0.88;
}

.mtm-gta-pick:disabled{
  opacity:0.45;
  cursor:not-allowed;
}


/* DNS/DNF race-only: keep Qualifier visibly dimmed when card is open. */
.mtm-gta-driver.is-race-only .mtm-gta-pick[data-mtm-pick="quali"]{
  opacity: 0.45;
}

.mtm-gta-reason{
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.80;
}

/* Results styling (keep structure) */
.mtm-results{ margin-top:12px; }
.mtm-results-head{ margin:10px 0 8px; font-size:13px; opacity:0.92; }

.mtm-breakdown{
  margin-top:10px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

.mtm-breakbox{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  border-radius:14px;
  padding:10px 12px;
}

.mtm-breaktitle{ font-weight:900; font-size:12px; margin-bottom:6px; opacity:0.9; letter-spacing:0.06em; text-transform:uppercase; }
.mtm-breakrow{ display:flex; justify-content:space-between; gap:10px; padding:3px 0; font-size:12px; }
.mtm-breakrow span{ opacity:0.72; }

.mtm-top10wrap{ margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.10); }
.mtm-top10head{ margin:0 0 8px; font-size:13px; opacity:0.92; }
.mtm-top10grid{ display:grid; grid-template-columns: 1fr; gap:10px; }
.mtm-top10box{ border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.28); border-radius:14px; padding:10px 12px; }
.mtm-top10title{ font-weight:900; font-size:12px; margin-bottom:6px; opacity:0.9; letter-spacing:0.06em; text-transform:uppercase; }

.mtm-disclaimer{ margin-top:14px; font-size:12px; opacity:0.75; }

/* Toast */
.mtm-gta-toast{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.72);
  color: #e8eaee;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.mtm-gta-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (min-width: 601px){
  .mtm-weekend-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mtm-gta-slots{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtm-breakdown{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtm-top10grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop grid: 4 columns */
@media (min-width: 921px){
  .mtm-gta-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile: show selected picks side by side with names underneath */
@media (max-width: 600px){
  .mtm-gta-slots{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:12px;
  }

  .mtm-gta-slot-card{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
  }

  .mtm-gta-slot-avatar{
    width:64px;
    height:64px;
  }

  .mtm-gta-slot-meta{
    align-items:center;
    text-align:center;
  }

  .mtm-gta-slot-name{
    font-size:12px;
  }

  .mtm-gta-slot-teamline,
  .mtm-gta-slot-natline{
    justify-content:center;
  }

  .mtm-gta-slot-label{
    font-size:13px;
  }

  .mtm-gta-slot-state{
    font-size:10px;
  }
}
/* Hide offseason/testing + points summary in selected drivers UI */
.mtm-gta-sticky .mtm-gta-banner,
.mtm-gta-sticky .mtm-gta-points{
  display:none;
}
.mtm-gta-pick{
  width:100%;
  max-width:240px;
}
/* Force driver names to use Teko */
.mtm-gta-name,
.mtm-gta-slot-name {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mtm-gta-name {
  font-size: 20px;
}
/* Bigger names in sticky selected drivers area */
.mtm-gta-sticky .mtm-gta-slot-name {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.08em;
}
@media (max-width: 600px){
  .mtm-gta-sticky .mtm-gta-slot-name {
    font-size: 16px;
  }
}
.mtm-gta-sticky-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.mtm-gta-sticky-title{
  font-family: 'Teko', sans-serif;
  font-weight:900;
  letter-spacing:0.10em;
  font-size:28px;
  text-transform:uppercase;
  color:#fff;
  opacity:1;
}

/* =========================================================
   STICKY HEADER TOGGLE + COLLAPSED HUD (FINAL, NO DUPLICATES)
   Paste this at the VERY END of your CSS
   ========================================================= */

/* Keep sticky above site header + make toggle reliably tappable */
.mtm-gta-sticky{
  z-index: 200;
}
.mtm-gta-sticky-toggle{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:136px;
  height:34px;
  padding:0 14px;

  border:1px solid rgba(255,255,255,0.20);
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%);
  color:#f4f6fa;
  border-radius:999px;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;

  position:relative;
  z-index:10000;
  pointer-events:auto;
  touch-action:manipulation;
}

.mtm-gta-sticky-toggle::after{
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform .18s ease;
}

.mtm-gta-sticky-toggle[aria-expanded="false"]::after{
  transform: rotate(45deg);
}

.mtm-gta-sticky-toggle:hover{
  border-color: rgba(255,255,255,0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
}

.mtm-gta-sticky-toggle:focus-visible{
  outline:2px solid rgba(255,255,255,0.55);
  outline-offset:2px;
}

@media (max-width: 600px){
  .mtm-gta-sticky-toggle{
    min-width:124px;
    height:32px;
    padding:0 12px;
    font-size:10px;
    letter-spacing:0.07em;
  }
}

/* ---------- COLLAPSED MODE: TRUE ONE-LINE ROW ---------- */
.mtm-gta-sticky.is-collapsed{
  padding: 6px 10px;
}

/* Hide everything except the inline slot names + toggle */
.mtm-gta-sticky.is-collapsed .mtm-gta-banner,
.mtm-gta-sticky.is-collapsed .mtm-gta-points,
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-avatar,
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-state,
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-teamline,
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-natline,
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-label{
  display:none !important;
}

/* Force the slots into ONE horizontal row everywhere */
.mtm-gta-sticky.is-collapsed .mtm-gta-slots{
  display:flex !important;       /* beats grid */
  flex-wrap:nowrap;
  align-items:center;
  gap:10px;
}

/* Force the slot cards to be ROW chips (beats mobile column rule) */
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-card{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:6px;

  padding:0 !important;
  border:none !important;
  background:none !important;
  border-radius:0 !important;
}

.mtm-gta-sticky.is-collapsed .mtm-gta-slot-card.has-team{
  padding:4px 8px !important;
  border:1px solid var(--mtm-slot-accent, rgba(255,255,255,0.20)) !important;
  background: linear-gradient(135deg, var(--mtm-slot-tint, rgba(255,255,255,0.10)) 0%, rgba(0,0,0,0.30) 100%) !important;
  border-radius:999px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08) !important;
}

/* Meta becomes inline */
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-meta{
  display:flex !important;
  align-items:center;
  gap:6px;
  margin:0 !important;
  text-align:left !important;
}

/* Compact HUD typography */
.mtm-gta-sticky.is-collapsed .mtm-gta-slot-name{
  font-size:18px !important;
  font-weight:900 !important;
  letter-spacing:0.08em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  line-height:1 !important;
}
@media (max-width: 600px){
  .mtm-gta-sticky.is-collapsed .mtm-gta-slot-name{
    font-size:13px !important;
  }
}

/* Prefixes */
.mtm-gta-sticky.is-collapsed [data-mtm-slot="quali"] .mtm-gta-slot-name::before{
  content:"⏱️ QUALI: ";
  opacity:0.8;
}
.mtm-gta-sticky.is-collapsed [data-mtm-slot="race"] .mtm-gta-slot-name::before{
  content:"🏁 RACE: ";
  opacity:0.8;
}
/* =========================================================
   TEAM + NATIONALITY (STACKED, NO CUT-OFF)
   ========================================================= */

/* FORCE TEAM AND NATIONALITY TO STACK VERTICALLY */
.mtm-gta-teamline{
  display:flex !important;
  flex-direction:column !important;   /* KEY LINE */
  align-items:flex-start !important;
  gap:6px !important;
}


/* Allow the stack to take the remaining width and wrap */
.mtm-gta-teamstack{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;                /* critical for flex overflow */
  flex:1 1 auto;
}

/* Team name: allow wrap instead of cutting off */
.mtm-gta-teamrow{
  min-width:0;
}

.mtm-gta-back-team{
  display:block;
  white-space:normal;         /* allow wrap */
  overflow-wrap:anywhere;     /* prevents cut-off on long names */
}

/* Nationality line: stays on one line but can wrap if needed */
.mtm-gta-natline{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;             /* prevents overflow on small screens */
  min-width:0;
  opacity:0.92;
  font-size:11px;
}

/* Make label slightly muted */
.mtm-gta-natlabel{
  font-weight:900;
  letter-spacing:0.10em;
  opacity:0.75;
}

/* Keep these tight */
.mtm-gta-sep{ opacity:0.6; }

.mtm-gta-flag{
  font-size:14px;
  line-height:1;
}

.mtm-gta-iso2{
  opacity:0.8;
  font-weight:900;
  letter-spacing:0.06em;
}
/* =========================================================
   FINAL TEAM + NATIONALITY LAYOUT
   Dot + Team on one row
   Nationality underneath
   ========================================================= */

/* Reset head container */
.mtm-gta-back .mtm-gta-back-head{
  display:block !important;
}

/* TEAM LINE = explicit row */
.mtm-gta-back .mtm-gta-teamline{
  display:flex !important;
  flex-direction:row !important;     /* DOT + TEAM = SAME ROW */
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
}

/* Dot stays inline */
.mtm-gta-back .mtm-gta-teamdot{
  flex:0 0 auto !important;
  margin:0 !important;
}

/* Team name sits next to dot */
.mtm-gta-back .mtm-gta-back-team{
  flex:1 1 auto !important;
  display:block !important;
}

/* NATIONALITY forced UNDERNEATH */
.mtm-gta-back .mtm-gta-natline{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  margin-top:6px !important;        /* creates vertical separation */
  width:100% !important;
}
/* Admin-only nationality debug badge */
.mtm-gta-natdebug{
  display:inline-block;
  margin-left:6px;
  padding:2px 6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(214,54,56,0.12);
  font-size:10px;
  font-weight:900;
  letter-spacing:0.06em;
  text-transform:uppercase;
  opacity:0.95;
}
/* ===== TEAM COLOUR AS BORDER ONLY ===== */

.mtm-gta-pick{
  background:#0e1013 !important;                 /* dark grey chassis */
  border:2px solid var(--mtm-accent, #c09b2f);   /* team colour border */
  color:#ffffff !important;                      /* always white text */
  transition: all .12s ease;
}

/* Sub text stays readable */
.mtm-gta-pick-sub{
  opacity:0.88;
  color:#ffffff !important;
}

/* Gentle hover glow using team colour */
.mtm-gta-pick:hover:not(:disabled){
  background:#111418 !important;
  box-shadow:0 0 0 1px var(--mtm-accent),
             0 6px 18px rgba(0,0,0,.35);
}

/* Disabled state */
.mtm-gta-pick:disabled{
  border-color:rgba(255,255,255,.12) !important;
  background:#0b0d10 !important;
  color:rgba(255,255,255,.45) !important;
}
/* Mobile: move the sticky picks area higher */
@media (max-width: 600px){
  .mtm-gta-sticky{
    top: 0; /* was 124px on desktop */
  }
}

/* Leaderboard shortcode (PitZero 1:1 style) */
.mtm-lb{
  box-sizing: border-box;
  max-width: 900px;
  margin: 14px auto;
  padding: 12px;
  color: #fff;
  background: #0b0d10;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}

.mtm-lb,
.mtm-lb *{
  box-sizing: border-box;
}

.mtm-lb .mtm-lb-headline{
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 48px;
}

.mtm-lb .mtm-lb-controls{
  position: relative;
  z-index: 1;
  display: flex !important;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.mtm-lb .mtm-lb-toggle{
  display: flex !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mtm-lb .mtm-lb-select-form{
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtm-lb .mtm-lb-select-label{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  opacity: 0.85;
  text-transform: uppercase;
  white-space: nowrap;
}

.mtm-lb .mtm-lb-select{
  min-width: 220px;
  max-width: 320px;
  height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
}

.mtm-lb .mtm-lb-select:focus{
  outline: none;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

.mtm-lb .mtm-lb-season-form .mtm-lb-select{
  min-width: 120px;
  max-width: 140px;
}

.mtm-lb .mtm-lb-gp-form .mtm-lb-select{
  min-width: 220px;
  max-width: 320px;
}

.mtm-lb .mtm-lb-go{
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
}

.mtm-lb .mtm-lb-tab{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  line-height: 1;
}

.mtm-lb .mtm-lb-tab.is-active{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

.mtm-lb .mtm-lb-title{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  font-family: 'Teko', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.mtm-lb .mtm-lb-sub{
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 10px;
  color: #fff;
}

.mtm-lb .mtm-lb-table{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.mtm-lb .mtm-lb-row{
  display: grid !important;
  grid-template-columns: minmax(82px, 0.85fr) minmax(170px, 2fr) minmax(76px, 0.8fr) minmax(76px, 0.8fr) minmax(76px, 0.8fr) minmax(76px, 0.8fr) minmax(88px, 0.95fr);
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mtm-lb .mtm-lb-head{
  font-size: 12px;
  opacity: 0.85;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
}

.mtm-lb .mtm-lb-head > div{
  white-space: nowrap;
}

.mtm-lb .mtm-lb-head .mtm-lb-rank,
.mtm-lb .mtm-lb-head .mtm-lb-user{
  text-align: left;
}

.mtm-lb .mtm-lb-row:last-child{
  border-bottom: 0;
}

.mtm-lb .mtm-lb-row.is-me{
  background: rgba(255,255,255,0.08);
}

.mtm-lb .mtm-lb-user{
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mtm-lb .mtm-lb-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  flex: 0 0 auto;
}

.mtm-lb .mtm-lb-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

.mtm-lb .mtm-lb-name{
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.mtm-lb .mtm-lb-q,
.mtm-lb .mtm-lb-r,
.mtm-lb .mtm-lb-b,
.mtm-lb .mtm-lb-s,
.mtm-lb .mtm-lb-t,
.mtm-lb .mtm-lb-rank{
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fff;
}

.mtm-lb .mtm-lb-t strong{
  font-weight: 1000;
}

.mtm-lb .mtm-lb-empty{
  padding: 14px 8px;
  opacity: 0.8;
  color: #fff;
}

.mtm-lb .mtm-lb-actions{
  display: flex !important;
  justify-content: center;
  margin-top: 10px;
}

.mtm-lb .mtm-lb-more{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.mtm-lb .mtm-lb-more:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

@media (max-width: 720px){
  .mtm-lb{
    padding: 10px;
  }

  .mtm-lb .mtm-lb-headline{
    display: block !important;
    min-height: 0;
    margin-bottom: 10px;
  }

  .mtm-lb .mtm-lb-title{
    position: static;
    transform: none;
    pointer-events: auto;
    display: block;
    text-align: center;
    font-size: 32px;
    line-height: 0.95;
    margin: 0 0 8px;
  }

  .mtm-lb .mtm-lb-controls{
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .mtm-lb .mtm-lb-select-form{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .mtm-lb .mtm-lb-select-label{
    font-size: 10px;
  }

  .mtm-lb .mtm-lb-select{
    width: 100%;
    max-width: none;
    height: 36px;
  }

  .mtm-lb .mtm-lb-head{ display: none; }

  .mtm-lb .mtm-lb-row{
    grid-template-columns: 32px minmax(0,1fr) auto auto;
    grid-template-areas:
      "rank user total total"
      "q q r r"
      "b b s s";
    gap: 6px 8px;
    padding: 9px 8px;
  }

  .mtm-lb .mtm-lb-rank{
    grid-area: rank;
    text-align: left;
    font-size: 13px;
  }

  .mtm-lb .mtm-lb-user{ grid-area: user; min-width: 0; }
  .mtm-lb .mtm-lb-t{ grid-area: total; }
  .mtm-lb .mtm-lb-q{ grid-area: q; }
  .mtm-lb .mtm-lb-r{ grid-area: r; }
  .mtm-lb .mtm-lb-b{ grid-area: b; }
  .mtm-lb .mtm-lb-s{ grid-area: s; }

  .mtm-lb .mtm-lb-avatar{
    width: 28px;
    height: 28px;
  }

  .mtm-lb .mtm-lb-name{
    font-size: 12px;
  }

  .mtm-lb .mtm-lb-q,
  .mtm-lb .mtm-lb-r,
  .mtm-lb .mtm-lb-b,
  .mtm-lb .mtm-lb-s{
    text-align: center;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
  }

  .mtm-lb .mtm-lb-q::before{
    content: "Q ";
    opacity: 0.7;
    margin-right: 4px;
    font-weight: 900;
  }

  .mtm-lb .mtm-lb-r::before{
    content: "R ";
    opacity: 0.7;
    margin-right: 4px;
    font-weight: 900;
  }

  .mtm-lb .mtm-lb-b::before{
    content: "B ";
    opacity: 0.7;
    margin-right: 4px;
    font-weight: 900;
  }

  .mtm-lb .mtm-lb-s::before{
    content: "S ";
    opacity: 0.7;
    margin-right: 4px;
    font-weight: 900;
  }
}


.mtm-lb .mtm-lb-row:not(.mtm-lb-head) .mtm-lb-rank{
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtm-lb .mtm-lb-rank-move{
  font-size: 0.78em;
  line-height: 1;
  font-weight: 1000;
}

.mtm-lb .mtm-lb-rank-move.is-up{
  color: #22c55e;
}

.mtm-lb .mtm-lb-rank-move.is-down{
  color: #ef4444;
}







/* =========================================================
   MTM Leaderboard - PitZero-inspired refresh
   Reference: PitZero additional.css (pitzero-lb block)
   ========================================================= */
.mtm-lb{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
}

.mtm-lb .mtm-lb-headline{
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  min-height: 62px;
}

.mtm-lb .mtm-lb-title{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  font-family: 'Teko', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.mtm-lb .mtm-lb-table{
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.mtm-lb .mtm-lb-head{
  display: none;
}

.mtm-lb .mtm-lb-row{
  display: grid !important;
  grid-template-columns: 48px minmax(220px, 1.7fr) repeat(4, minmax(70px, 0.8fr)) minmax(88px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}

.mtm-lb .mtm-lb-row:last-child{
  margin-bottom: 0;
}

.mtm-lb .mtm-lb-rank{
  text-align: left;
  font-weight: 1000;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}

.mtm-lb .mtm-lb-user{
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mtm-lb .mtm-lb-avatar{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  flex: 0 0 auto;
}

.mtm-lb .mtm-lb-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.mtm-lb .mtm-lb-name{
  font-weight: 1000;
  font-size: 18px;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtm-lb .mtm-lb-q,
.mtm-lb .mtm-lb-r,
.mtm-lb .mtm-lb-b,
.mtm-lb .mtm-lb-s{
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 1000;
  font-size: 14px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.mtm-lb .mtm-lb-q::before,
.mtm-lb .mtm-lb-r::before,
.mtm-lb .mtm-lb-b::before,
.mtm-lb .mtm-lb-s::before{
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 900;
  opacity: 0.65;
}

.mtm-lb .mtm-lb-q::before{ content: 'Q'; }
.mtm-lb .mtm-lb-r::before{ content: 'R'; }
.mtm-lb .mtm-lb-b::before{ content: 'BONUS'; }
.mtm-lb .mtm-lb-s::before{ content: 'STREAK'; }

.mtm-lb .mtm-lb-t{
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 1000;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.mtm-lb .mtm-lb-t strong{
  font-weight: 1000;
}

/* Podium borders and rank colors (first 3 data rows) */
.mtm-lb .mtm-lb-row:not(.mtm-lb-head):nth-child(2){
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,.35), 0 12px 30px rgba(212,175,55,.25);
}
.mtm-lb .mtm-lb-row:not(.mtm-lb-head):nth-child(3){
  border-color: #cfd8dc;
  box-shadow: 0 0 0 2px rgba(207,216,220,.35), 0 10px 26px rgba(207,216,220,.2);
}
.mtm-lb .mtm-lb-row:not(.mtm-lb-head):nth-child(4){
  border-color: #cd7f32;
  box-shadow: 0 0 0 2px rgba(205,127,50,.35), 0 10px 24px rgba(205,127,50,.2);
}
.mtm-lb .mtm-lb-row:not(.mtm-lb-head):nth-child(2) .mtm-lb-rank{ color:#d4af37; }
.mtm-lb .mtm-lb-row:not(.mtm-lb-head):nth-child(3) .mtm-lb-rank{ color:#cfd8dc; }
.mtm-lb .mtm-lb-row:not(.mtm-lb-head):nth-child(4) .mtm-lb-rank{ color:#cd7f32; }

.mtm-lb .mtm-lb-row.is-me{
  background: rgba(255,255,255,0.08);
}

/* Mobile layout tuned to PitZero row feel */
@media (max-width: 720px){
  .mtm-lb{
    padding: 10px;
  }

  .mtm-lb .mtm-lb-headline{
    display: block !important;
    min-height: 0;
    padding-top: 0;
    margin-bottom: 10px;
  }

  .mtm-lb .mtm-lb-title{
    position: static;
    transform: none;
    pointer-events: auto;
    display: block;
    text-align: center;
    font-size: 32px;
    line-height: 0.95;
    margin: 0 0 8px;
  }

  .mtm-lb .mtm-lb-controls{
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .mtm-lb .mtm-lb-select-form{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .mtm-lb .mtm-lb-select{
    width: 100%;
    max-width: none;
    height: 36px;
  }

  .mtm-lb .mtm-lb-row{
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      'rank user total'
      'q q r'
      'b b s';
    gap: 8px;
    padding: 10px;
    margin-bottom: 8px;
  }

  .mtm-lb .mtm-lb-rank{ grid-area: rank; font-size: 14px; }
  .mtm-lb .mtm-lb-user{ grid-area: user; }
  .mtm-lb .mtm-lb-t{ grid-area: total; font-size: 20px; text-align: right; align-self: center; }
  .mtm-lb .mtm-lb-q{ grid-area: q; }
  .mtm-lb .mtm-lb-r{ grid-area: r; }
  .mtm-lb .mtm-lb-b{ grid-area: b; }
  .mtm-lb .mtm-lb-s{ grid-area: s; }

  .mtm-lb .mtm-lb-avatar{
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .mtm-lb .mtm-lb-avatar img{
    border-radius: 10px;
  }

  .mtm-lb .mtm-lb-name{
    font-size: 15px;
    margin: 0;
  }

  .mtm-lb .mtm-lb-q,
  .mtm-lb .mtm-lb-r,
  .mtm-lb .mtm-lb-b,
  .mtm-lb .mtm-lb-s{
    min-height: 42px;
    font-size: 13px;
    padding: 6px;
    border-radius: 10px;
  }

  .mtm-lb .mtm-lb-q::before,
  .mtm-lb .mtm-lb-r::before,
  .mtm-lb .mtm-lb-b::before,
  .mtm-lb .mtm-lb-s::before{
    font-size: 9px;
  }
}

@media (max-width: 640px){
  .mtm-lb .mtm-lb-title{
    display: none;
  }
}

/* =========================================================
   MTM Leaderboard - fixed column order (desktop + mobile)
   Order: Rank | Avatar | Username | Q | R | Bonus | Streak | Total
   ========================================================= */
.mtm-lb .mtm-lb-table{
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.mtm-lb .mtm-lb-row{
  grid-template-columns: 34px 64px minmax(180px, 1.6fr) repeat(4, minmax(84px, 0.8fr)) minmax(92px, 0.9fr);
  min-width: 860px;
}

.mtm-lb .mtm-lb-avatar-col{
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtm-lb .mtm-lb-user{
  display: flex !important;
  align-items: center;
  min-width: 0;
}

.mtm-lb .mtm-lb-name{
  width: 100%;
}

@media (max-width: 720px){
  .mtm-lb .mtm-lb-headline{
    display: block !important;
  }

  .mtm-lb .mtm-lb-row{
    grid-template-columns: 30px 52px minmax(160px, 1.6fr) repeat(4, 82px) 88px;
    min-width: 760px;
    gap: 8px;
  }

  .mtm-lb .mtm-lb-avatar{
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .mtm-lb .mtm-lb-avatar img{
    border-radius: 10px;
  }

  .mtm-lb .mtm-lb-name{
    font-size: 15px;
  }

  .mtm-lb .mtm-lb-q,
  .mtm-lb .mtm-lb-r,
  .mtm-lb .mtm-lb-b,
  .mtm-lb .mtm-lb-s{
    min-height: 40px;
    font-size: 12px;
    padding: 4px;
  }

  .mtm-lb .mtm-lb-t{
    font-size: 18px;
  }
}

/* Ensure previous mobile grid-area rules do not reorder cells */
.mtm-lb .mtm-lb-rank,
.mtm-lb .mtm-lb-avatar-col,
.mtm-lb .mtm-lb-user,
.mtm-lb .mtm-lb-q,
.mtm-lb .mtm-lb-r,
.mtm-lb .mtm-lb-b,
.mtm-lb .mtm-lb-s,
.mtm-lb .mtm-lb-t{
  grid-area: auto !important;
}

/* =========================================================
   Mobile final layout: 2 rows like PitZero
   Row 1: Rank | Avatar | Username | Total
   Row 2: Quali | Race | Bonus | Streak
   ========================================================= */
@media (max-width: 720px){
  .mtm-lb .mtm-lb-table{
    overflow-x: visible;
  }

  .mtm-lb .mtm-lb-row{
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0 !important;
    width: 100%;
    padding: 10px;
  }

  .mtm-lb .mtm-lb-rank{
    order: 1;
    flex: 0 0 24px;
    font-size: 14px;
    text-align: left;
  }

  .mtm-lb .mtm-lb-avatar-col{
    order: 2;
    flex: 0 0 42px;
    justify-content: flex-start;
  }

  .mtm-lb .mtm-lb-user{
    order: 3;
    flex: 1 1 0;
    min-width: 0;
  }

  .mtm-lb .mtm-lb-t{
    order: 4;
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 20px;
    text-align: right;
  }

  .mtm-lb .mtm-lb-q,
  .mtm-lb .mtm-lb-r,
  .mtm-lb .mtm-lb-b,
  .mtm-lb .mtm-lb-s{
    flex: 0 0 calc((100% - 18px) / 4);
    min-width: 0;
    min-height: 40px;
    margin-top: 4px;
    font-size: 12px;
    padding: 4px;
  }

  .mtm-lb .mtm-lb-q{ order: 5; }
  .mtm-lb .mtm-lb-r{ order: 6; }
  .mtm-lb .mtm-lb-b{ order: 7; }
  .mtm-lb .mtm-lb-s{ order: 8; }
}

/* Force pills onto row 2 on mobile */
@media (max-width: 720px){
  .mtm-lb .mtm-lb-user{
    flex: 1 0 0 !important;
  }

  .mtm-lb .mtm-lb-t{
    flex: 0 0 auto !important;
    white-space: nowrap;
  }
}

/* Hard mobile override: enforce 2-line order for data rows */
@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row]{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row]::after{
    content: '';
    flex: 0 0 100%;
    order: 5;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-rank{ order: 1; flex: 0 0 24px; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-avatar-col{ order: 2; flex: 0 0 42px; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-user{ order: 3; flex: 1 0 0 !important; min-width: 0; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-t{ order: 4; flex: 0 0 auto; margin-left: auto; white-space: nowrap; }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-q,
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-r,
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-b,
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-s{
    flex: 0 0 calc((100% - 18px) / 4) !important;
    min-width: 0;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-q{ order: 6; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-r{ order: 7; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-b{ order: 8; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-s{ order: 9; }
}

/* =========================================================
   MTM mobile hard lock: two-row card layout (Pit Zero style)
   Row 1: Rank | Avatar | Username | Total
   Row 2: Quali | Race | Bonus | Streak
   ========================================================= */
@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-row.mtm-lb-head{
    display: none !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row]{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-rank{
    order: 1 !important;
    flex: 0 0 24px !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-avatar-col{
    order: 2 !important;
    flex: 0 0 42px !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-user{
    order: 3 !important;
    flex: 1 0 0 !important;
    min-width: 0 !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-t{
    order: 4 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] [data-mtm-lb-break]{
    display: block !important;
    order: 5 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-q,
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-r,
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-b,
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-s{
    flex: 0 0 calc((100% - 18px) / 4) !important;
    min-width: 0 !important;
  }

  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-q{ order: 6 !important; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-r{ order: 7 !important; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-b{ order: 8 !important; }
  html body .mtm-lb .mtm-lb-table [data-mtm-lb-row] .mtm-lb-s{ order: 9 !important; }
}

/* Mobile legend labels (two lines requested) */
.mtm-lb .mtm-lb-mobile-legend{
  display: none;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-title{
    display: block !important;
  }

  html body .mtm-lb .mtm-lb-mobile-legend{
    display: block !important;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
  }

  html body .mtm-lb .mtm-lb-mobile-legend-line{
    display: grid;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 900;
    opacity: 0.9;
  }

  html body .mtm-lb .mtm-lb-mobile-legend-line-1{
    grid-template-columns: 28px 50px minmax(0,1fr) auto;
    align-items: center;
  }

  html body .mtm-lb .mtm-lb-mobile-legend-line-2{
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin-top: 6px;
  }

  html body .mtm-lb .mtm-lb-mobile-legend-line span:last-child{
    text-align: right;
  }

  html body .mtm-lb .mtm-lb-mobile-legend-line-2 span:last-child{
    text-align: left;
  }
}

/* Main selection header: centered MOMENTUM title in Teko, matching leaderboard scale */
.mtm-panel.mtm-theme-gta .mtm-header{
  position: relative !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  min-height: 180px;
}

.mtm-panel.mtm-theme-gta .mtm-header-main{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: calc(100% - 120px);
}

.mtm-panel.mtm-theme-gta .mtm-title{
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Teko', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 1px;
  color: #fff;
}

.mtm-panel.mtm-theme-gta .mtm-subtitle{
  margin: 8px 0 0;
  text-align: center;
}

@media (max-width: 720px){
  .mtm-panel.mtm-theme-gta .mtm-header{
    display: block !important;
    min-height: 0;
  }

  .mtm-panel.mtm-theme-gta .mtm-header-main{
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
  }

  .mtm-panel.mtm-theme-gta .mtm-title{
    font-size: 32px;
  }

  .mtm-panel.mtm-theme-gta .mtm-badge{
    display: none;
  }
}






/* Front card team + nationality under avatar/name */
.mtm-gta-front-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.mtm-gta-front-meta .mtm-gta-teamline{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:8px !important;
}

.mtm-gta-front-meta .mtm-gta-back-team{
  display:block;
}

.mtm-gta-front-meta .mtm-gta-natline{
  margin-top:0 !important;
}

/* Open card should only show back content (last race + buttons) */
.mtm-gta-driver.is-open .mtm-gta-name,
.mtm-gta-driver.is-open .mtm-gta-front-meta{
  display:none !important;
}
/* Leaderboard Toggle Polish (final override) */
html body .mtm-lb .mtm-lb-headline{
  display: block !important;
  min-height: 0;
  margin-bottom: 12px;
}

html body .mtm-lb .mtm-lb-title{
  position: static;
  left: auto;
  transform: none;
  pointer-events: auto;
  display: block;
  text-align: center;
  margin: 0 0 12px;
}

html body .mtm-lb .mtm-lb-controls{
  width: 100%;
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, #141a22 0%, #0f141b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px;
}

html body .mtm-lb .mtm-lb-toggle{
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html body .mtm-lb .mtm-lb-tab{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #354050;
  background: #161e28;
  color: #f4f7fb !important;
  text-decoration: none !important;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

html body .mtm-lb .mtm-lb-tab:hover,
html body .mtm-lb .mtm-lb-tab:focus-visible{
  background: #202b38;
  border-color: #55657a;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html body .mtm-lb .mtm-lb-tab.is-active{
  background: linear-gradient(135deg, #ffd977 0%, #ffbf3d 100%);
  border-color: #ffbf3d;
  color: #111318 !important;
  box-shadow: 0 8px 16px rgba(255, 191, 61, 0.28);
}

html body .mtm-lb .mtm-lb-select-form{
  width: 100%;
  display: grid;
  align-items: center;
  gap: 8px;
}

html body .mtm-lb .mtm-lb-season-form{
  grid-template-columns: auto minmax(120px, 160px);
}

html body .mtm-lb .mtm-lb-gp-form{
  grid-template-columns: auto minmax(220px, 1fr);
}

html body .mtm-lb .mtm-lb-select-label{
  color: #d4dde7;
  opacity: 1;
  font-size: 11px;
}

html body .mtm-lb .mtm-lb-select{
  width: 100%;
  min-width: 0;
  max-width: none;
  background: #111822;
  border: 1px solid #3c4858;
  color: #f4f7fb;
}

html body .mtm-lb .mtm-lb-select:focus{
  border-color: #86a8ff;
  box-shadow: 0 0 0 2px rgba(134, 168, 255, 0.25);
}

html body .mtm-lb .mtm-lb-select option{
  color: #0f141a;
  background: #ffffff;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-controls{
    padding: 8px;
    gap: 8px;
  }

  html body .mtm-lb .mtm-lb-toggle{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html body .mtm-lb .mtm-lb-tab{
    min-height: 38px;
    font-size: 11px;
    letter-spacing: 0.01em;
  }

  html body .mtm-lb .mtm-lb-season-form,
  html body .mtm-lb .mtm-lb-gp-form{
    grid-template-columns: 1fr;
  }

  html body .mtm-lb .mtm-lb-select-label{
    font-size: 10px;
  }
}

/* Season tab dropdown (replaces standalone season filter) */
html body .mtm-lb .mtm-lb-season-tab-form{
  margin: 0;
  display: flex;
  align-items: center;
}

html body .mtm-lb .mtm-lb-season-tab-select{
  appearance: none;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 28px 0 10px;
  line-height: 40px;
  vertical-align: middle;
  border-radius: 10px;
  border: 1px solid #354050;
  background: #161e28;
  color: #f4f7fb;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

html body .mtm-lb .mtm-lb-season-tab-select:hover,
html body .mtm-lb .mtm-lb-season-tab-select:focus{
  background: #202b38;
  border-color: #55657a;
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

html body .mtm-lb .mtm-lb-season-tab-select.is-active{
  background: linear-gradient(135deg, #ffd977 0%, #ffbf3d 100%);
  border-color: #ffbf3d;
  color: #111318;
  box-shadow: 0 8px 16px rgba(255, 191, 61, 0.28);
}

html body .mtm-lb .mtm-lb-season-tab-select option{
  color: #0f141a;
  background: #ffffff;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-season-tab-select{
    height: 38px;
    min-height: 38px;
    line-height: 38px;
    font-size: 11px;
    letter-spacing: 0.01em;
  }
}


/* Two-row leaderboard filter layout */
html body .mtm-lb .mtm-lb-gp-row{
  grid-template-columns: 1fr;
}

html body .mtm-lb .mtm-lb-gp-main-select{
  min-height: 42px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 900;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-gp-main-select{
    min-height: 38px;
    font-size: 11px;
  }
}
html body .mtm-lb .mtm-lb-gp-main-select.is-active{
  border-color: #ffbf3d;
  box-shadow: 0 8px 16px rgba(255, 191, 61, 0.22);
}


/* Exact vertical alignment for top toggle row */
html body .mtm-lb .mtm-lb-toggle > *{
  align-self: stretch;
}

html body .mtm-lb .mtm-lb-tab,
html body .mtm-lb .mtm-lb-season-tab-form{
  height: 40px;
}

html body .mtm-lb .mtm-lb-season-tab-form{
  display: block;
  position: relative;
  top: 0;
}

html body .mtm-lb .mtm-lb-season-tab-select{
  display: block;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-tab,
  html body .mtm-lb .mtm-lb-season-tab-form{
    height: 38px;
  }

  html body .mtm-lb .mtm-lb-season-tab-form{
    top: 0;
  }
}
/* Center GP dropdown row */
html body .mtm-lb .mtm-lb-gp-row{
  width: min(680px, 100%);
  margin: 0 auto;
}


/* Force-center GP dropdown row in grid */
html body .mtm-lb .mtm-lb-gp-row{
  width: 100%;
  max-width: 680px;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}


/* Hard-center GP select control */
html body .mtm-lb .mtm-lb-gp-row{
  width: 100%;
  max-width: none;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

html body .mtm-lb .mtm-lb-gp-row .mtm-lb-gp-main-select{
  width: min(680px, 100%);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  text-align-last: center;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-gp-row .mtm-lb-gp-main-select{
    width: 100%;
    max-width: none;
  }
}

/* Leaderboard points pick reveal */
html body .mtm-lb .mtm-lb-table{
  overflow: visible !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html body .mtm-lb .mtm-lb-table::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

html body .mtm-lb [data-mtm-lb-row]{
  position: relative;
  z-index: 1;
}

html body .mtm-lb [data-mtm-lb-row].is-reveal-open{
  z-index: 60;
}

html body .mtm-lb .mtm-lb-t{
  position: relative;
  overflow: visible;
}

html body .mtm-lb .mtm-lb-points-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 3;
}

html body .mtm-lb .mtm-lb-points-wrap.is-open{
  z-index: 70;
}

html body .mtm-lb .mtm-lb-points-trigger{
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 1.12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
}

html body .mtm-lb .mtm-lb-points-trigger:focus-visible{
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
  border-radius: 6px;
}

html body .mtm-lb .mtm-lb-pick-reveal{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 188px;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10,13,19,0.96);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s linear;
  pointer-events: none;
}

html body .mtm-lb .mtm-lb-q .mtm-lb-points-wrap,
html body .mtm-lb .mtm-lb-r .mtm-lb-points-wrap{
  display: flex;
  width: 100%;
  justify-content: center;
  align-self: center;
  margin: 0;
}

html body .mtm-lb .mtm-lb-cell-value{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  transform: translateY(1px);
}

html body .mtm-lb .mtm-lb-pick-line{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.28;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

html body .mtm-lb .mtm-lb-points-wrap.is-open .mtm-lb-pick-reveal,
html body .mtm-lb .mtm-lb-points-wrap:focus-within .mtm-lb-pick-reveal{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine){
  html body .mtm-lb .mtm-lb-points-wrap:hover .mtm-lb-pick-reveal{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-pick-reveal{
    top: calc(100% + 6px);
    min-width: 176px;
    max-width: min(84vw, 220px);
    padding: 7px 9px;
  }

  html body .mtm-lb .mtm-lb-q .mtm-lb-pick-reveal{
    left: 0;
    right: auto;
  }

  html body .mtm-lb .mtm-lb-pick-line{
    font-size: 11px;
  }
}

/* Leaderboard brand header: Momentum logo + Leaderboard title */
html body .mtm-lb .mtm-lb-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

html body .mtm-lb .mtm-lb-brand-logo{
  display: block;
  margin: 0 auto;
}

html body .mtm-lb .mtm-lb-brand-fallback{
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Teko', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 1px;
  color: #fff;
}

html body .mtm-lb .mtm-lb-title{
  position: static !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  text-align: center !important;
  text-transform: uppercase;
  font-family: 'Teko', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-size: 42px !important;
  font-weight: 600 !important;
  line-height: 0.95 !important;
  letter-spacing: 1px;
  color: #fff;
}

@media (max-width: 720px){
  html body .mtm-lb .mtm-lb-brand{
    gap: 8px;
    margin-bottom: 10px;
  }

  html body .mtm-lb .mtm-lb-brand-fallback{
    font-size: 32px;
  }

  html body .mtm-lb .mtm-lb-title{
    font-size: 32px !important;
  }
}


