:root {
  --fl-bg: #06101f;
  --fl-surface: #0d1f3a;
  --fl-surface-2: #12284a;
  --fl-text: #e2eaff;
  --fl-muted: rgba(180, 200, 240, 0.68);
  --fl-yellow: #fefc40;
  --fl-border: rgba(58, 87, 146, 0.34);
  --fl-green: #00d084;
  --fl-red: #ff4d4d;
  --fl-radius-xl: 24px;
  --fl-radius-lg: 18px;
  --fl-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  html:has(body.page-template-schiera-formazione) {
    height: 100%;
    overflow: hidden;
  }

  body.page-template-schiera-formazione {
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
    padding-bottom: 0 !important;
  }

  body.page-template-schiera-formazione #page,
  body.page-template-schiera-formazione .wrapper {
    height: 100%;
    overflow: hidden;
  }

  body.page-template-schiera-formazione .fl-lineup-page {
    position: fixed !important;
    top: 90px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 102px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.admin-bar.page-template-schiera-formazione .fl-lineup-page {
    top: 136px !important;
  }

  .lineup-bottom-bar {
    position: fixed !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 5000 !important;
    will-change: transform;
    contain: layout paint;
  }
}

/* Schiera formazione: mobile web-app layout */
.fl-page.fl-lineup-page {
  width: min(1180px, calc(100% - 24px));
  margin-top: 22px;
}

.fl-lineup-page .fl-card {
  border-radius: 18px;
}

.fl-hero.fl-lineup-hero {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(9, 20, 38, 0.98), rgba(17, 45, 49, 0.94)),
    linear-gradient(90deg, rgba(254, 252, 64, 0.12), rgba(0, 208, 132, 0.08));
}

.fl-hero.fl-lineup-hero .fl-title {
  max-width: 12ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lineup-title-block {
  min-width: 0;
}

.lineup-team-switcher {
  width: min(360px, 100%);
  margin-top: 14px;
}

.lineup-team-switcher .fl-market-select {
  min-height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 16px;
}

.lineup-selector-card {
  padding-block: 16px;
}

.lineup-app-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.lineup-field-card {
  padding: 16px;
  overflow: hidden;
}

.lineup-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lineup-card-header h2 {
  margin: 2px 0 0;
  font-size: 1.28rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.lineup-progress {
  flex: 0 0 auto;
  color: var(--fl-yellow);
}

.fl-lineup-page .schiera-layout {
  grid-template-columns: minmax(260px, 0.82fr) minmax(280px, 1fr);
  grid-template-areas:
    "field captain"
    "field bench";
  gap: 16px;
}

.fl-lineup-page .field {
  grid-area: field;
}

.fl-lineup-page .lineup-captain-panel {
  grid-area: captain;
}

.fl-lineup-page .bench {
  grid-area: bench;
}

.fl-lineup-page .field {
  max-width: 360px;
  height: 540px;
  border-radius: 18px;
  border-width: 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.045) 50%, transparent 50%),
    repeating-linear-gradient(180deg, #1b7d42 0 54px, #116333 54px 108px);
}

.fl-lineup-page .formation-row {
  gap: clamp(14px, 4vw, 28px);
}

.fl-lineup-page .formation-row.portiere { top: 54px; }
.fl-lineup-page .formation-row.difesa { top: 204px; }
.fl-lineup-page .formation-row.attacco { bottom: 72px; }

.fl-lineup-page .jersey {
  width: 62px;
  height: 74px;
  border-radius: 19px 19px 14px 14px;
}

.fl-lineup-page .jersey-name {
  max-width: 42px;
  font-size: 8px;
}

.fl-lineup-page .bench {
  max-height: 540px;
  overflow: auto;
  padding-right: 2px;
}

.fl-lineup-page .bench-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fl-lineup-page .captain-summary,
.fl-lineup-page .bench-player {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.fl-lineup-page .bench-player {
  min-height: 58px;
  padding: 11px 12px;
}

.fl-lineup-page .bench-player .role {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  border-radius: 999px;
  background: rgba(254, 252, 64, 0.12);
}

.fl-lineup-page .bench-player .name {
    color: var(--fl-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

.lineup-captain-panel {
  display: grid;
  gap: 10px;
}

.lineup-section-title,
.bench-title {
  color: var(--fl-yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bench-title span {
  color: var(--fl-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.lineup-captain-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.captain-slot,
.bench-slot,
.lineup-empty-slot {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--fl-text);
  cursor: pointer;
}

.lineup-empty-slot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-height: 64px;
  border-style: dashed;
  border-color: rgba(254, 252, 64, 0.46);
}

.lineup-empty-plus {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--fl-yellow);
  color: #06101f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.lineup-empty-role {
  color: var(--fl-muted);
  font-size: 12px;
  font-weight: 900;
}

.captain-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.captain-slot > span:first-child:not(.lineup-empty-plus) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--fl-yellow);
  color: #06101f;
  font-weight: 900;
}

.captain-slot strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#panchinaList {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.bench-slot {
  position: relative;
  display: grid;
  grid-template-columns: 26px 28px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 9px 10px;
  text-align: left;
}

.bench-slot.empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px;
  border-style: dashed;
}

.bench-slot-index,
.bench-slot-role {
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.bench-slot-meta {
  display: contents;
}

.bench-slot-index {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fl-muted);
}

.bench-slot-role {
  background: rgba(254, 252, 64, 0.16);
  color: var(--fl-yellow);
}

.bench-slot strong,
.bench-slot small {
  grid-column: 3;
}

.bench-slot strong {
  font-size: 9px;
}

.bench-slot strong,
.bench-slot small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.bench-order-controls {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.bench-order-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fl-yellow);
  font-size: 12px;
  line-height: 1;
}

.bench-order-btn:active {
  transform: translateY(1px);
}

.bench-slot.slot-active,
.captain-slot.is-filled,
.lineup-empty-slot.slot-active {
  border-color: var(--fl-yellow);
  box-shadow: 0 0 0 3px rgba(254, 252, 64, 0.12);
}

.fl-lineup-page .bench-actions {
  gap: 6px;
}

.fl-lineup-page .bench-action-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  border-radius: 12px !important;
}

.lineup-save-card {
  position: sticky;
  top: 106px;
}

.lineup-bottom-bar {
  display: none;
}

@media (max-width: 980px) {
  .lineup-app-layout {
    grid-template-columns: 1fr;
  }

  .lineup-save-card {
    position: static;
  }
}

@media (max-width: 768px) {
  body.page-template-schiera-formazione {
    padding-bottom: 112px;
  }

  .fl-page.fl-lineup-page {
    width: calc(100% - 16px);
    margin-top: 12px;
    gap: 14px;
  }

  .fl-hero.fl-lineup-hero {
    padding: 18px;
    border-radius: 20px;
  }

  .fl-hero.fl-lineup-hero .fl-title {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .lineup-field-card {
    padding: 12px;
    border-radius: 18px;
  }

  .lineup-card-header {
    align-items: center;
    margin-bottom: 10px;
  }

  .fl-lineup-page .schiera-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "field"
      "captain"
      "bench";
    gap: 12px;
  }

  .fl-lineup-page .field {
    width: min(100%, 338px);
    max-width: 338px;
    height: 500px;
  }

  .fl-lineup-page .formation-row.portiere { top: 48px; }
  .fl-lineup-page .formation-row.difesa { top: 188px; }
  .fl-lineup-page .formation-row.attacco { bottom: 66px; }

  .fl-lineup-page .bench {
    max-height: none;
    overflow: visible;
  }

  .fl-lineup-page .fl-timer-card {
    display: none;
  }

  .lineup-save-card {
    display: none;
  }

  .lineup-bottom-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1500;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 10px;
    align-items: center;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(6, 16, 31, 0.97);
    box-shadow: var(--fl-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .lineup-bottom-bar span,
  .lineup-bottom-bar strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lineup-bottom-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  .lineup-bottom-metric {
    min-height: 58px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
  }

  .lineup-bottom-metric--wide {
    min-width: 0;
  }

  .lineup-bottom-bar .lineup-bottom-metric span {
    margin-bottom: 5px;
    color: var(--fl-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .lineup-bottom-bar .lineup-bottom-metric strong {
    color: var(--fl-yellow);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.05;
  }

  .lineup-bottom-bar .lineup-bottom-metric--wide strong {
    color: var(--fl-text);
    font-size: 12px;
  }

  .lineup-bottom-bar .fl-btn {
    width: 100%;
    min-height: 58px;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  .lineup-bottom-bar .fl-btn--primary {
    background: var(--fl-yellow) !important;
    border-color: transparent !important;
    color: #000 !important;
  }
}

@media (max-width: 420px) {
  .lineup-bottom-bar {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
    padding: 9px 9px calc(9px + env(safe-area-inset-bottom));
  }

  .lineup-bottom-metrics {
    gap: 5px;
  }

  .lineup-bottom-metric {
    min-height: 52px;
    padding: 8px 7px;
    border-radius: 12px;
  }

  .lineup-bottom-bar .lineup-bottom-metric span {
    font-size: 10px;
  }

  .lineup-bottom-bar .lineup-bottom-metric strong {
    font-size: 12px;
  }

  .lineup-bottom-bar .lineup-bottom-metric--wide strong {
    font-size: 11px;
  }

  .lineup-bottom-bar .fl-btn {
    min-height: 52px;
    font-size: 14px !important;
  }
}

@media (max-width: 420px) {
  .fl-lineup-page .field {
    width: min(100%, 304px);
    height: 454px;
  }

  .fl-lineup-page .formation-row {
    gap: 12px;
  }

  .fl-lineup-page .formation-row.portiere { top: 42px; }
  .fl-lineup-page .formation-row.difesa { top: 170px; }
  .fl-lineup-page .formation-row.attacco { bottom: 58px; }

  .fl-lineup-page .jersey {
    width: 52px;
    height: 64px;
  }

  .fl-lineup-page .jersey-name {
    max-width: 30px;
    font-size: 6px;
  }
}

.fl-site-nav,
.fl-site-nav *,
.fl-page,
.fl-page *,
.fl-site-footer,
.fl-site-footer * {
  box-sizing: border-box;
}

body.page-template,
body.home {
  background:
    radial-gradient(circle at top left, rgba(58, 87, 146, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(254, 252, 64, 0.08), transparent 28%),
    var(--fl-bg);
  color: var(--fl-text);
  font-family: "Inter", sans-serif;
}

body.page-template {
  overflow-x: hidden;
}

body.page-template,
body.home {
  padding-top: 104px;
}

body.admin-bar.page-template,
body.admin-bar.home {
  padding-top: 136px;
}

body.page-template *,
body.page-template *::before,
body.page-template *::after {
  box-sizing: border-box;
}

body.page-template #header,
body.page-template #footer,
body.page-template #masthead,
body.page-template .site-header,
body.page-template .header,
body.page-template .hfg_header,
body.page-template .site-footer,
body.page-template .nv-footer-content,
body.home #header,
body.home #footer,
body.home #masthead,
body.home .site-header,
body.home .header,
body.home .hfg_header,
body.home .site-footer,
body.home .nv-footer-content,
body.page-template hr,
body.home hr {
  display: none;
}

body.page-template #page,
body.home #page {
  min-height: 100vh;
}

.fl-site-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  padding: 16px;
}

body.admin-bar .fl-site-shell {
  top: 32px;
}

.fl-site-nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(6,16,31,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--fl-shadow);
  backdrop-filter: blur(14px);
}

.fl-site-nav__main {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 16px;
}

.fl-site-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: clamp(132px, 15vw, 186px);
  min-width: 0;
  height: 38px;
  color: var(--fl-text);
  text-decoration: none;
}

.fl-site-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.fl-site-footer__brand span {
  color: var(--fl-yellow);
}

.fl-site-nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fl-site-nav__team {
  color: var(--fl-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.fl-site-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--fl-text);
}

.fl-site-nav__toggle span,
.fl-site-nav__toggle span::before,
.fl-site-nav__toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.fl-site-nav__toggle span::before {
  transform: translateY(-5px);
}

.fl-site-nav__toggle span::after {
  transform: translateY(3px);
}

.fl-site-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
}

.fl-site-nav__links a {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--fl-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 980px) {
  .fl-site-nav__main {
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.4fr) minmax(120px, 0.8fr);
    gap: 10px;
  }

  .fl-site-nav__links {
    gap: 4px;
  }

  .fl-site-nav__links a {
    padding: 9px 10px;
    font-size: 0.74rem;
  }
}

.fl-site-nav__links a.is-active,
.fl-site-nav__links a:hover {
  color: var(--fl-text);
  background: rgba(254,252,64,0.12);
}

body.page-template .fl-site-nav__toggle,
body.home .fl-site-nav__toggle {
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0 !important;
  border: 1px solid var(--fl-border) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--fl-text) !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  body.page-template,
  body.home {
    padding-top: 90px;
  }

  body.admin-bar.page-template,
  body.admin-bar.home {
    padding-top: 136px;
  }

  .fl-site-shell {
    padding: 10px;
  }

  .fl-site-nav {
    padding: 12px;
    border-radius: 20px;
    position: relative;
    overflow: visible;
  }

  .fl-site-nav__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "links links";
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
  }

  .fl-site-logo {
    grid-area: logo;
    width: min(148px, 42vw);
    height: 34px;
    min-width: 0;
  }

  .fl-site-logo img {
    max-height: 30px;
  }

  .fl-site-nav__actions {
    grid-area: actions;
    min-width: 0;
  }

  .fl-site-nav__team {
    max-width: 128px;
    overflow: hidden;
    color: var(--fl-yellow);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fl-site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .fl-site-nav__links {
    grid-area: links;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .fl-site-nav.menu-open .fl-site-nav__links {
    display: grid;
  }

  .fl-site-nav__links a {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
  }
}

.fl-site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 36px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(13,31,58,0.86);
  border: 1px solid var(--fl-border);
}

.fl-site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.fl-site-footer__brand {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 900;
}

.fl-site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--fl-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.fl-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fl-site-footer__links a {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--fl-text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fl-page {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 72px;
}

.fl-stack {
  display: grid;
  gap: 20px;
}

.fl-hero {
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(18, 40, 74, 0.96) 0%, rgba(13, 31, 58, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--fl-shadow);
}

.fl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fl-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fl-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.fl-title span {
  color: var(--fl-yellow);
}

.fl-subtitle {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--fl-muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

.fl-col-4 { grid-column: span 4; }
.fl-col-5 { grid-column: span 5; }
.fl-col-6 { grid-column: span 6; }
.fl-col-7 { grid-column: span 7; }
.fl-col-8 { grid-column: span 8; }
.fl-col-12 { grid-column: span 12; }

.fl-homepage {
  margin-top: 8px;
}

.fl-hero--home {
  padding-top: 34px;
  padding-bottom: 34px;
}

.fl-home-grid {
  align-items: stretch;
}

.fl-home-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fl-auth-page .fl-grid {
  align-items: start;
}

.fl-auth-page {
  max-width: 1120px;
}

.fl-auth-page > *,
.fl-auth-page .fl-card,
.fl-auth-page .fl-grid {
  min-width: 0;
}

.fl-auth-page .fl-card {
  height: 100%;
}

.fl-admin-page > *,
.fl-admin-page .fl-card,
.fl-admin-page .fl-grid,
.fl-admin-page form,
.fl-admin-page table {
  min-width: 0;
}

.fl-admin-page .notice {
  margin: 12px 0;
}

.fl-admin-form,
.fl-admin-votes-form {
  display: grid;
  gap: 16px;
}

.fl-admin-form label,
.fl-admin-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--fl-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fl-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 0 0 18px;
}

.fl-admin-toolbar > label {
  flex: 1 1 220px;
}

.fl-admin-toolbar select,
.fl-admin-page input,
.fl-admin-page select {
  width: 100%;
}

.fl-admin-votes-form .fl-actions {
  margin-top: 18px;
}

.fl-admin-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  width: min(500px, calc(100% - 28px));
  max-height: min(720px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--fl-border);
  border-radius: 22px;
  background: var(--fl-card);
  color: var(--fl-text);
  box-shadow: var(--fl-shadow);
  transform: translate(-50%, -50%);
}

.fl-admin-popup label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fl-muted);
}

.fl-admin-popup input {
  width: 100px;
}

.fl-bonus-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

body.page-template button.fl-site-nav__toggle,
body.home button.fl-site-nav__toggle {
  display: none;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--fl-border) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--fl-text) !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  body.page-template button.fl-site-nav__toggle,
  body.home button.fl-site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.fl-auth-form {
  display: grid;
  gap: 14px;
}

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

.fl-auth-form label {
  display: grid;
  gap: 8px;
  color: var(--fl-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.fl-auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--fl-border);
  background: rgba(255,255,255,0.04);
  color: var(--fl-text);
}

.fl-auth-feedback {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--fl-border);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fl-auth-feedback.is-error {
  border-color: rgba(255,77,77,0.35);
  background: rgba(255,77,77,0.12);
  color: #ffd6d6;
}

.fl-auth-feedback.is-success {
  border-color: rgba(0,208,132,0.35);
  background: rgba(0,208,132,0.12);
  color: #d4fff0;
}

.fl-card {
  padding: 22px;
  border-radius: var(--fl-radius-xl);
  background: rgba(13, 31, 58, 0.9);
  border: 1px solid var(--fl-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.fl-card--accent {
  background:
    linear-gradient(135deg, rgba(254, 252, 64, 0.12) 0%, rgba(13, 31, 58, 0.96) 45%);
}

.fl-card__eyebrow {
  color: var(--fl-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fl-card h2,
.fl-card h3 {
  margin: 0 0 12px;
  color: var(--fl-text);
}

.fl-meta {
  color: var(--fl-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.fl-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fl-border);
}

.fl-stat__label {
  display: block;
  margin-bottom: 8px;
  color: var(--fl-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fl-stat__value {
  color: var(--fl-yellow);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.fl-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fl-list strong {
  display: block;
  font-size: 0.95rem;
}

.fl-list small {
  display: block;
  margin-top: 4px;
  color: var(--fl-muted);
  font-size: 0.8rem;
}

.fl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(254, 252, 64, 0.12);
  color: var(--fl-yellow);
  font-size: 0.85rem;
  font-weight: 800;
}

.fl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--fl-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fl-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fl-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(254, 252, 64, 0.35);
}

.fl-btn--primary {
  background: var(--fl-yellow);
  color: #000 !important;
  border-color: transparent;
  font-weight: 900;
}

.fl-btn--success {
  background: rgba(0, 208, 132, 0.16);
  color: #b8ffe0;
  border-color: rgba(0, 208, 132, 0.3);
}

.fl-empty {
  padding: 36px 28px;
  text-align: center;
}

.fl-empty__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.fl-empty__text {
  margin: 0 auto 18px;
  max-width: 540px;
  color: var(--fl-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .fl-col-4,
  .fl-col-5,
  .fl-col-6,
  .fl-col-7,
  .fl-col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .fl-page {
    width: calc(100% - 20px);
    margin: 18px auto 44px;
  }

  .fl-hero,
  .fl-card {
    padding: 18px;
    border-radius: 22px;
  }

  .fl-title {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .fl-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .fl-stats {
    grid-template-columns: 1fr;
  }

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

  .fl-btn {
    width: 100%;
  }

  .fl-grid {
    gap: 16px;
  }

  .fl-market-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .fl-auth-page {
    gap: 16px;
  }

  .fl-auth-page .fl-hero {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .fl-auth-page .fl-card {
    padding: 20px;
    border-radius: 24px;
  }

  .fl-auth-page .fl-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .fl-auth-page .fl-pill {
    align-self: flex-start;
  }

  .fl-card.fl-phone-card {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-right: 28px;
  }

  .fl-phone-card__copy,
  .fl-phone-form {
    max-width: 100%;
    min-width: 0;
  }

  .fl-phone-card__copy h2,
  .fl-phone-card__copy p {
    overflow-wrap: anywhere;
  }
}

.fl-auth-card {
  max-width: 460px;
  margin: 0 auto;
}

.fl-auth-page .fl-auth-card {
  width: min(460px, 100%);
}

.fl-auth-card form {
  display: grid;
  gap: 14px;
}

.fl-auth-card input,
.fl-market-select,
.fl-market-table input[type="checkbox"] {
  accent-color: var(--fl-yellow);
}

.fl-auth-card input,
.fl-market-select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--fl-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fl-text);
}

.fl-auth-card a {
  color: var(--fl-yellow);
}

.fl-auth-card .fl-actions,
.fl-auth-card .fl-btn {
  width: 100%;
}

.fl-phone-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  width: 100%;
}

.fl-phone-card__copy {
  max-width: 760px;
}

.fl-phone-card__copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.fl-phone-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.fl-phone-form label {
  display: grid;
  gap: 8px;
  color: var(--fl-text);
  font-weight: 800;
}

.fl-phone-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--fl-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fl-text);
}

.fl-phone-form .fl-actions,
.fl-phone-form .fl-btn {
  width: 100%;
}

body.page-template .wrap,
body.page-template .container,
body.page-template .wp-block-themeisle-blocks-forms {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 72px !important;
  color: var(--fl-text);
}

body.page-template .wrap > h1,
body.page-template .container h1,
body.page-template .wp-block-themeisle-blocks-forms > h1 {
  margin: 0 0 22px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(18, 40, 74, 0.96) 0%, rgba(13, 31, 58, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fl-text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  font-weight: 900;
}

body.page-template .card,
body.page-template .wrap[style*="background"],
body.page-template .wrap > form,
body.page-template .wrap > ul,
body.page-template .wrap > p,
body.page-template .wp-block-themeisle-blocks-forms > p,
body.page-template fieldset,
body.page-template .notice,
body.page-template .updated,
body.page-template .error {
  border-radius: 22px !important;
  background: rgba(13, 31, 58, 0.9) !important;
  border: 1px solid var(--fl-border) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
  color: var(--fl-text) !important;
}

body.page-template .card,
body.page-template .wrap[style*="background"],
body.page-template .wrap > form,
body.page-template .wrap > ul,
body.page-template .wrap > p,
body.page-template .wp-block-themeisle-blocks-forms > p,
body.page-template fieldset {
  padding: 22px !important;
}

body.page-template .notice,
body.page-template .updated,
body.page-template .error {
  padding: 14px 18px !important;
  margin: 16px auto !important;
}

body.page-template .notice-success,
body.page-template .updated {
  border-color: rgba(0, 208, 132, 0.36) !important;
  background: rgba(0, 208, 132, 0.12) !important;
}

body.page-template .notice-error,
body.page-template .error {
  border-color: rgba(255, 77, 77, 0.36) !important;
  background: rgba(255, 77, 77, 0.12) !important;
}

body.page-template h2,
body.page-template h3,
body.page-template legend,
body.page-template label {
  color: var(--fl-text);
}

body.page-template legend,
body.page-template label {
  font-weight: 800;
}

body.page-template input[type="text"],
body.page-template input[type="email"],
body.page-template input[type="password"],
body.page-template input[type="number"],
body.page-template input[type="file"],
body.page-template input[type="date"],
body.page-template textarea,
body.page-template select,
body.page-template .form-control,
body.page-template .form-select,
body.page-template .otter-form-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--fl-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fl-text);
  accent-color: var(--fl-yellow);
}

body.page-template input[type="file"] {
  padding-top: 10px;
}

body.page-template input[type="checkbox"],
body.page-template input[type="radio"] {
  accent-color: var(--fl-yellow);
}

body.page-template button,
body.page-template input[type="submit"],
body.page-template .button,
body.page-template .btn,
body.page-template .wp-block-button__link {
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid var(--fl-border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--fl-text) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer;
}

body.page-template button[type="submit"],
body.page-template input[type="submit"],
body.page-template .button-primary,
body.page-template .btn-warning,
body.page-template .btn-primary {
  background: var(--fl-yellow) !important;
  border-color: transparent !important;
  color: #000 !important;
}

body.page-template table,
body.page-template .table,
body.page-template .widefat {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--fl-text) !important;
}

body.page-template .table-responsive,
body.page-template .wrap table,
body.page-template fieldset table {
  max-width: 100%;
  overflow-x: auto;
}

body.page-template th,
body.page-template td {
  padding: 13px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--fl-text) !important;
  vertical-align: middle;
}

body.page-template th,
body.page-template thead,
body.page-template .table-dark {
  background: rgba(8, 20, 40, 0.78) !important;
  color: var(--fl-muted) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-template tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

body.page-template a {
  color: var(--fl-yellow);
}

body.page-template .wrap[style*="background"] {
  max-width: min(760px, calc(100% - 32px)) !important;
  text-align: center;
}

body.page-template #bonus-popup,
body.page-template .popup {
  border-radius: 22px !important;
  background: rgba(6, 16, 31, 0.98) !important;
  border: 1px solid var(--fl-border) !important;
  color: var(--fl-text) !important;
  box-shadow: var(--fl-shadow) !important;
}

@media (max-width: 640px) {
  body.page-template .wrap,
  body.page-template .container,
  body.page-template .wp-block-themeisle-blocks-forms {
    width: calc(100% - 20px);
    margin: 20px auto 48px !important;
  }

  body.page-template .wrap > h1,
  body.page-template .container h1,
  body.page-template .wp-block-themeisle-blocks-forms > h1 {
    padding: 20px;
    border-radius: 24px;
    font-size: 2rem;
  }

  body.page-template .card,
  body.page-template .wrap > form,
  body.page-template .wrap > ul,
  body.page-template .wrap > p,
  body.page-template .wp-block-themeisle-blocks-forms > p,
  body.page-template fieldset {
    padding: 18px !important;
  }

  body.page-template table {
    min-width: 640px;
  }
}

.fl-dashboard-page,
.fl-dashboard-page *,
.fl-dashboard-page *::before,
.fl-dashboard-page *::after {
  box-sizing: border-box;
}

.fl-dashboard-page {
  overflow-x: clip;
}

.fl-dashboard-page > *,
.dashboard-overview,
.dashboard-team-grid,
.dashboard-team-card {
  min-width: 0;
  max-width: 100%;
}

.fl-dashboard-hero .fl-subtitle {
  max-width: 760px;
}

.fl-dashboard-hero .fl-title {
  overflow-wrap: anywhere;
}

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

.dashboard-metric,
.dashboard-mini-stats > div {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(13, 31, 58, 0.9);
  border: 1px solid var(--fl-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.dashboard-metric span,
.dashboard-mini-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--fl-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric strong,
.dashboard-mini-stats strong {
  display: block;
  color: var(--fl-yellow);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-team-grid {
  display: grid;
  gap: 20px;
}

.dashboard-team-card {
  padding: 22px;
  border-radius: var(--fl-radius-xl);
  background:
    linear-gradient(135deg, rgba(18, 40, 74, 0.96) 0%, rgba(13, 31, 58, 0.94) 100%);
  border: 1px solid var(--fl-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.dashboard-team-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-team-card__header h2 {
  margin: 4px 0 0;
  color: var(--fl-text);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(254, 252, 64, 0.12);
  color: var(--fl-yellow);
  font-size: 1.25rem;
  font-weight: 900;
}

.dashboard-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-team-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: start;
}

.dashboard-player-list li {
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-actions {
  display: grid;
  gap: 10px;
  padding-top: 32px;
}

.dashboard-actions .fl-btn {
  width: 100%;
}

.dashboard-actions .fl-btn--primary {
  color: #000 !important;
  font-weight: 900;
  text-align: center;
}

.fl-roster-page,
.fl-roster-page *,
.fl-roster-page *::before,
.fl-roster-page *::after {
  box-sizing: border-box;
}

.fl-roster-page {
  overflow-x: clip;
}

.fl-roster-page > *,
.fl-roster-page .fl-grid,
.fl-roster-page .fl-card,
.fl-roster-page .fl-market-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.fl-roster-hero .fl-subtitle {
  max-width: 760px;
}

.fl-roster-hero .fl-title,
.fl-roster-page .fl-stat__value {
  overflow-wrap: anywhere;
  word-break: normal;
}

.fl-roster-page .fl-stats {
  align-items: stretch;
}

.roster-mobile-detail-control {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-team-card__body {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-overview,
  .dashboard-mini-stats,
  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-team-card {
    padding: 18px;
    border-radius: 22px;
  }

  .dashboard-team-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-rank {
    justify-content: flex-start;
    width: 100%;
  }

  .fl-roster-page {
    gap: 16px;
  }

  .fl-roster-page .fl-hero,
  .fl-roster-page .fl-card {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .fl-roster-hero .fl-title {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 0.98;
  }

  .fl-roster-hero .fl-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .fl-roster-page .fl-market-selector {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .fl-roster-page .fl-market-selector > div:first-child,
  .fl-roster-page .fl-market-selector > form {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .fl-roster-page .fl-market-selector strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
  }

  .fl-roster-page .fl-market-selector .fl-meta {
    margin-top: 6px;
    font-size: 0.98rem;
  }

  .fl-roster-page .fl-market-select {
    min-height: 54px;
    border-radius: 16px;
  }

  .fl-roster-page .fl-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fl-roster-page .fl-stat {
    min-height: 78px;
    padding: 14px;
    border-radius: 18px;
  }

  .fl-roster-page .fl-stat__label {
    font-size: 10px;
  }

  .fl-roster-page .fl-stat__value {
    font-size: 1.35rem !important;
    line-height: 1.05;
  }

  .fl-roster-page .fl-actions {
    flex-direction: column;
  }

  .fl-roster-page .fl-actions .fl-btn {
    width: 100%;
  }

  .fl-roster-page .fl-market-table:not(.roster-table) {
    min-width: 620px;
  }
}

@media (max-width: 420px) {
  .fl-roster-hero .fl-title {
    font-size: 1.9rem;
  }

  .fl-roster-page .fl-stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 431px) and (max-width: 520px) {
  .fl-page.fl-quot-page {
    transform: translateX(-35px) !important;
  }
}

@media (max-width: 520px) {
  .fl-page.fl-roster-page {
    width: min(330px, calc(100vw - 52px)) !important;
    max-width: min(330px, calc(100vw - 52px)) !important;
    overflow-x: hidden !important;
  }

  .fl-roster-page .fl-hero,
  .fl-roster-page .fl-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .fl-roster-hero .fl-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .roster-mobile-detail-control {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
  }

  .roster-mobile-detail-control label {
    color: var(--fl-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .fl-roster-page .roster-table {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 0;
    background: transparent;
  }

  .fl-roster-page .roster-table thead {
    display: none;
  }

  .fl-roster-page .roster-table tbody {
    display: grid;
    gap: 8px;
  }

  .fl-roster-page .roster-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    background: rgba(17, 39, 72, 0.72);
  }

  .fl-roster-page .roster-table td {
    display: block;
    min-width: 0;
    width: auto !important;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.82rem;
  }

  .fl-roster-page .roster-table td:nth-child(2),
  .fl-roster-page .roster-table td:nth-child(3),
  .fl-roster-page .roster-table td:nth-child(4),
  .fl-roster-page .roster-table td:nth-child(5) {
    display: none;
  }

  .fl-roster-page .roster-table[data-mobile-detail="squadra"] td:nth-child(2),
  .fl-roster-page .roster-table[data-mobile-detail="acquisto"] td:nth-child(3),
  .fl-roster-page .roster-table[data-mobile-detail="attuale"] td:nth-child(4),
  .fl-roster-page .roster-table[data-mobile-detail="media"] td:nth-child(5) {
    display: block;
    justify-self: end;
    color: var(--fl-yellow);
    font-size: 0.95rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
  }

  .fl-roster-page .roster-table td strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.fl-market-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fl-market-selector > * {
  min-width: 0;
}

.fl-market-selector > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}

.fl-market-selector > form {
  flex: 0 1 280px;
  width: 100%;
  max-width: 280px;
}

.fl-market-selector strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fl-market-selector .fl-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fl-market-table-wrap {
  overflow: auto;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fl-market-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(8, 20, 38, 0.76);
}

.fl-market-table th,
.fl-market-table td {
  position: relative;
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(17, 39, 72, 0.58);
  color: var(--fl-muted);
  line-height: 1.25;
  vertical-align: middle;
}

.fl-market-table th {
  background: rgba(6, 16, 31, 0.92);
  color: var(--fl-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fl-market-table td strong {
  position: relative;
  z-index: 1;
  color: var(--fl-text);
  font-size: 0.95rem;
  line-height: 1.2;
}

.fl-market-table tr.is-disabled {
  opacity: 0.45;
}

.fl-market-table tr.is-owned {
  background: transparent;
}

.fl-market-table tr.is-owned td {
  background: rgba(254, 252, 64, 0.06);
}

.fl-market-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fl-yellow);
  font-size: 0.8rem;
  font-weight: 800;
}

.fl-market-page {
  position: relative;
  overflow-x: clip;
}

.fl-market-page,
.fl-market-page *,
.fl-market-page *::before,
.fl-market-page *::after {
  box-sizing: border-box;
}

.fl-market-hero {
  padding-block: 38px;
}

.fl-market-hero .fl-title {
  max-width: 11ch;
}

.fl-market-hero .fl-subtitle {
  max-width: 780px;
}

.fl-market-selector-card {
  padding-block: 22px;
}

.fl-market-page .market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.fl-market-page .market-sidebar,
.fl-market-page .market-main {
  display: grid;
  gap: 20px;
  width: auto;
  max-width: none;
  min-width: 0;
}

.fl-market-page .market-sidebar {
  grid-column: auto;
  position: relative;
  z-index: 1;
}

.fl-market-page .market-main {
  grid-column: auto;
  position: relative;
  z-index: 2;
}

.fl-market-page .market-sidebar > .summary-box {
  display: none;
}

.fl-market-page .market-sidebar > *,
.fl-market-page .market-main > *,
.fl-market-page .market-main > .fl-card {
  min-width: 0;
  max-width: 100%;
}

.summary-box {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(29, 55, 101, 0.82) 0%, rgba(16, 33, 62, 0.9) 100%);
  border: 1px solid var(--fl-border);
  border-radius: 22px;
  padding: 18px 20px;
  font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  width: 100%;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: var(--fl-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-value {
  display: block;
  color: var(--fl-yellow);
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

@media (min-width: 769px) {
  .summary-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .summary-value {
    max-width: 100%;
    text-align: left;
  }
}

.market-card-title,
.market-section-heading {
  margin: 0 0 16px;
  color: var(--fl-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-note {
  margin: 16px 0 0;
  color: var(--fl-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

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

.role-card {
  background: rgba(8, 20, 40, 0.72);
  border: 1px solid var(--fl-border);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: left;
}

.role-card.complete {
  border-color: var(--fl-green);
  background: rgba(0, 208, 132, 0.12);
}

.role-card.incomplete {
  border-color: var(--fl-red);
  background: rgba(255, 77, 77, 0.12);
}

.role-card-label {
  color: var(--fl-muted);
  font-size: 11px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.role-card-count {
  color: var(--fl-yellow);
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1;
}

.market-section-block + .market-section-block {
  margin-top: 22px;
}

.market-mobile-detail-control {
  display: none;
}

.market-table {
  min-width: 0;
}

.market-table th:first-child,
.market-table td:first-child {
  width: 56px;
}

.fl-market-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fl-market-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.fl-market-check span {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--fl-border);
  background: rgba(255, 255, 255, 0.04);
}

.fl-market-check span::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fl-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.fl-market-check input:checked + span {
  background: rgba(254, 252, 64, 0.14);
  border-color: var(--fl-yellow);
  box-shadow: inset 0 0 0 1px rgba(254, 252, 64, 0.4);
}

.fl-market-check input:checked + span::before {
  content: "-";
  color: var(--fl-yellow);
}

.fl-create-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.fl-create-check input {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.fl-create-check span {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(58, 87, 146, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 35%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fl-create-check span::before,
.fl-create-check span::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--fl-muted);
  border-radius: 999px;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.fl-create-check span::before {
  width: 12px;
  height: 2px;
}

.fl-create-check span::after {
  width: 2px;
  height: 12px;
}

.fl-create-check input:checked + span {
  border-color: var(--fl-yellow);
  background: linear-gradient(135deg, rgba(254, 252, 64, 0.98), rgba(202, 238, 35, 0.92));
  box-shadow: 0 0 0 4px rgba(254, 252, 64, 0.13), inset 0 -8px 14px rgba(6, 16, 31, 0.12);
  transform: scale(1.03);
}

.fl-create-check input:checked + span::before {
  width: 13px;
  height: 3px;
  background: #06101f;
  transform: translate(3px, -1px) rotate(-45deg);
}

.fl-create-check input:checked + span::after {
  width: 7px;
  height: 3px;
  background: #06101f;
  transform: translate(-5px, 3px) rotate(45deg);
}

.fl-create-check input:disabled + span {
  opacity: 0.35;
  cursor: not-allowed;
}

.fl-market-price {
  color: var(--fl-yellow);
  font-weight: 800;
}

.fl-standings-page,
.fl-standings-page * {
  box-sizing: border-box;
}

.fl-standings-page {
  overflow-x: clip;
}

.fl-standings-page .fl-market-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.fl-standings-table a {
  color: inherit;
  text-decoration: none;
}

.fl-standings-table a:hover {
  color: var(--fl-yellow);
}

.fl-standings-note .fl-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fl-standings-note .fl-list li {
  height: 100%;
}

.fl-results-page,
.fl-results-page * {
  box-sizing: border-box;
}

.fl-results-page {
  overflow-x: clip;
}

.fl-results-page .fl-market-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.fl-user-results-page,
.fl-user-results-page * {
  box-sizing: border-box;
}

.fl-user-results-page {
  overflow-x: clip;
}

.fl-user-result-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.fl-user-result-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fl-user-result-main strong {
  min-width: 0;
}

.fl-user-result-main small {
  color: var(--fl-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fl-user-result-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}

.fl-bonus-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.fl-bonus-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(254, 252, 64, 0.12);
  color: var(--fl-yellow);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.fl-market-inline-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 77, 77, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.market-empty-row {
  padding: 20px;
  color: var(--fl-muted);
  text-align: center;
}

.market-submit {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.market-submit .fl-btn {
  min-width: 220px;
}

.market-desktop-only {
  display: block;
}

.market-bottom-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  padding: 14px;
  border-radius: 26px;
  background: rgba(9, 19, 37, 0.97);
  border: 1px solid rgba(44, 74, 126, 0.92);
  box-shadow: var(--fl-shadow);
  backdrop-filter: blur(14px);
}

.market-bottom-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.market-metric {
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(44, 74, 126, 0.88);
}

.market-metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--fl-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-metric-value {
  color: var(--fl-yellow);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.market-bottom-button {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  background: rgba(5, 18, 38, 0.96);
  border-color: rgba(44, 74, 126, 0.88);
  font-size: 1rem;
  font-weight: 800;
}

.roster-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(13, 31, 58, 0.98) 0%, rgba(6, 16, 31, 0.98) 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: min(72vh, 560px);
  overflow-y: auto;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.4);
}

.roster-drawer.open {
  display: block;
}

.roster-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(0, 0, 0, 0.45);
}

.roster-drawer-backdrop.open {
  display: block;
}

.roster-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.roster-drawer-title {
  color: var(--fl-yellow);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roster-drawer-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 900px) {
  .fl-market-page .market-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fl-market-page .market-sidebar,
  .fl-market-page .market-main {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .fl-auth-grid {
    grid-template-columns: 1fr;
  }

  body.page-template-mercato {
    padding-bottom: 214px;
  }

  .fl-market-page {
    gap: 16px;
  }

  .fl-market-page .fl-card {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .fl-market-hero {
    padding: 26px 20px 24px;
    min-height: 0;
  }

  .fl-market-hero .fl-kicker {
    margin-bottom: 12px;
  }

  .fl-market-hero .fl-title {
    max-width: 9ch;
    font-size: clamp(2.6rem, 9vw, 3.3rem);
    line-height: 0.92;
  }

  .fl-market-hero .fl-subtitle {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fl-market-selector-card {
    padding-block: 18px;
  }

  .fl-market-selector {
    align-items: stretch;
    gap: 16px;
    flex-direction: column;
  }

  .fl-market-selector .fl-card__eyebrow {
    margin-bottom: 8px;
  }

  .fl-market-selector > div:first-child,
  .fl-market-selector > form {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .fl-market-selector strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
  }

  .fl-market-selector .fl-meta {
    margin-top: 6px;
    font-size: 0.98rem;
  }

  .fl-market-select {
    min-height: 54px;
    border-radius: 16px;
  }

  .market-card-title,
  .market-section-heading {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .market-note {
    margin-top: 10px;
    font-size: 0.98rem;
  }

  .market-section-block + .market-section-block {
    margin-top: 18px;
  }

  .fl-market-table-wrap {
    border-radius: 16px;
  }

  .fl-market-table {
    min-width: 620px;
  }

  .fl-market-table th,
  .fl-market-table td {
    padding: 12px 10px;
    font-size: 0.92rem;
  }

  .fl-market-table th:first-child,
  .fl-market-table td:first-child {
    width: 48px;
  }

  .market-desktop-only,
  .summary-box,
  .roles-grid {
    display: none;
  }

  .market-bottom-bar {
    display: block;
  }

  .market-bottom-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-submit {
    display: none;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .summary-value {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .fl-market-hero .fl-subtitle {
    font-size: 0.95rem;
    max-width: min(100%, 300px);
  }

  .fl-market-table th:nth-child(7),
  .fl-market-table td:nth-child(7) {
    display: none;
  }

  .fl-market-page .market-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .fl-market-page .market-table th,
  .fl-market-page .market-table td {
    padding: 9px 5px;
    font-size: 0.76rem;
  }

  .fl-market-page .market-table th:nth-child(5),
  .fl-market-page .market-table td:nth-child(5),
  .fl-market-page .market-table th:nth-child(7),
  .fl-market-page .market-table td:nth-child(7) {
    display: none;
  }

  .fl-market-page .market-table th:nth-child(1),
  .fl-market-page .market-table td:nth-child(1) {
    width: 34px;
  }

  .fl-market-page .market-table th:nth-child(2),
  .fl-market-page .market-table td:nth-child(2) {
    width: auto;
  }

  .fl-market-page .market-table th:nth-child(3),
  .fl-market-page .market-table td:nth-child(3) {
    width: 34px;
  }

  .fl-market-page .market-table th:nth-child(4),
  .fl-market-page .market-table td:nth-child(4) {
    width: 44px;
  }

  .fl-market-page .market-table th:nth-child(6),
  .fl-market-page .market-table td:nth-child(6) {
    width: 52px;
  }

  .fl-market-page .market-table td strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-bottom-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
    border-radius: 20px;
  }

  .market-bottom-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .market-metric {
    min-height: 48px;
    padding: 7px 6px;
    border-radius: 12px;
  }

  .market-metric-label {
    font-size: 8px;
  }

  .market-metric-value {
    font-size: 13px;
  }

  .market-bottom-actions {
    margin-top: 8px;
  }

  .market-bottom-button {
    min-height: 44px;
    border-radius: 14px;
  }
}

.fl-formation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.fl-field {
  position: relative;
  min-height: 620px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 50%, transparent 50%, transparent 100%),
    repeating-linear-gradient(180deg, #15723b 0 56px, #0e6131 56px 112px);
  border: 4px solid rgba(255,255,255,0.92);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.35);
}

.fl-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.92);
  transform: translateY(-50%);
}

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

.fl-field-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid rgba(255,255,255,0.92);
}

.fl-field-area.top {
  top: 0;
  width: 58%;
  height: 90px;
  border-top: none;
}

.fl-field-area.bottom {
  bottom: 0;
  width: 58%;
  height: 90px;
  border-bottom: none;
}

.fl-field-goal {
  position: absolute;
  left: 50%;
  width: 86px;
  height: 18px;
  transform: translateX(-50%);
  border: 3px solid rgba(255,255,255,0.92);
}

.fl-field-goal.top {
  top: -4px;
  border-bottom: none;
}

.fl-field-goal.bottom {
  bottom: -4px;
  border-top: none;
}

.fl-formation-board {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  height: 100%;
}

.fl-formation-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  align-items: center;
  gap: 14px;
}

.fl-formation-row-label {
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fl-dropzone {
  min-height: 78px;
  border-radius: 18px;
  border: 2px dashed rgba(255,255,255,0.45);
  background: rgba(4, 12, 24, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.fl-dropzone[data-zone-type="titolare"] {
  background: rgba(254,252,64,0.09);
}

.fl-dropzone[data-zone-type="panchina"] {
  background: rgba(255,255,255,0.08);
}

.fl-player-card {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fefc40;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0,0,0,0.22);
  cursor: grab;
}

.fl-player-card.is-portiere {
  background: #ffd166;
}

.fl-player-card small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
}

.fl-column-title {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--fl-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fl-timer-card {
  display: grid;
  gap: 14px;
}

.fl-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
}

.fl-timer-row strong {
  color: var(--fl-yellow);
  font-size: 1rem;
}

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

@media (max-width: 640px) {
  .fl-field {
    min-height: 560px;
    padding: 18px 14px;
  }

  .fl-formation-row,
  .fl-column-title {
    grid-template-columns: 28px 1fr 1fr;
    gap: 8px;
  }

  .fl-dropzone {
    min-height: 70px;
    padding: 8px;
  }
}

.fl-formation-grid--prototype {
  align-items: start;
}

.schiera-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.field {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 420px;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(180deg, #15723b 0 48px, #0e6131 48px 96px);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
  overflow: visible;
}

.field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.field::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.field-penalty,
.field-goal-area,
.field-spot,
.goal-net {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.field-penalty {
  width: 56%;
  height: 72px;
  border: 3px solid #fff;
  opacity: 0.95;
}

.field-penalty.top {
  top: 0;
  border-top: none;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.field-penalty.bottom {
  bottom: 0;
  border-bottom: none;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.field-goal-area {
  width: 28%;
  height: 30px;
  border: 3px solid #fff;
}

.field-goal-area.top {
  top: 0;
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.field-goal-area.bottom {
  bottom: 0;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.field-spot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.field-spot.top { top: 66px; }
.field-spot.bottom { bottom: 66px; }

.goal-net {
  width: 92px;
  height: 18px;
  border: 3px solid #dfe7f8;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.45) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.45) 0 1px, transparent 1px 8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 6px 14px rgba(0,0,0,0.18);
  z-index: 2;
}

.goal-net.top {
  top: -3px;
  border-bottom: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.goal-net.bottom {
  bottom: -3px;
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.formation-row {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.formation-row.row-active {
  z-index: 12;
}

.formation-row.portiere { top: 42px; }
.formation-row.difesa { top: 152px; }
.formation-row.attacco { bottom: 58px; }

.jersey {
  position: relative;
  width: 56px;
  height: 68px;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, #fefc40 0%, #f2d631 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  touch-action: manipulation;
}

.jersey::before,
.jersey::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 14px;
  height: 18px;
  border-radius: 8px;
  background: inherit;
}

.jersey::before { left: -8px; transform: rotate(24deg); }
.jersey::after { right: -8px; transform: rotate(-24deg); }

.jersey::before,
.jersey::after {
  pointer-events: none;
}

.jersey.empty {
  background: rgba(255,255,255,0.15);
  border: 2px dashed #fff;
  color: rgba(255,255,255,0.48);
  box-shadow: none;
}

.jersey.selectable.slot-active {
  outline: 2px solid var(--fl-yellow);
  outline-offset: 4px;
}

.jersey-number {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.jersey-name {
  max-width: 34px;
  margin-top: 4px;
  font-size: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jersey-remove,
.jersey-captain {
  position: absolute;
  top: -7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-size: 9px;
  font-weight: 900;
}

.jersey-remove {
  right: -7px;
  background: #ff4d4d;
  color: #fff;
  z-index: 2;
}

.jersey-captain {
  left: -7px;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.jersey-captain.active {
  background: var(--fl-yellow);
  color: #000;
}

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

.bench-title {
  margin-bottom: 10px;
  color: var(--fl-yellow);
  font-size: 12px;
  font-weight: 700;
}

.captain-summary {
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--fl-border);
  background: rgba(255,255,255,0.04);
  font-size: 11px;
}

.captain-summary strong {
  color: var(--fl-yellow);
}

.bench-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--fl-border);
  background: rgba(13,31,58,0.9);
  font-size: 11px;
}

.bench-player.is-p {
  border-left: 4px solid var(--fl-yellow);
}

.bench-player .info {
  flex: 1;
}

.bench-player .role {
  color: var(--fl-yellow);
  font-size: 10px;
  font-weight: 700;
}

.bench-actions {
  display: flex;
  gap: 5px;
}

.bench-action-btn {
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.bench-empty {
  padding: 10px;
  color: var(--fl-muted);
  font-size: 11px;
}

.slot-popup {
  position: fixed;
  z-index: 7000;
  width: min(210px, calc(100vw - 32px));
  max-height: min(320px, calc(100vh - 32px));
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(6,16,31,0.96);
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.slot-popup::before {
  content: "";
  position: absolute;
  left: var(--popup-arrow-left, 50%);
  top: -7px;
  width: 14px;
  height: 14px;
  background: rgba(6,16,31,0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
  transform: translateX(-50%) rotate(45deg);
}

.slot-popup.is-top::before {
  top: auto;
  bottom: -7px;
  border-top: none;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.slot-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.slot-popup-title {
  color: var(--fl-yellow);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slot-popup-subtitle {
  margin-top: 4px;
  color: var(--fl-muted);
  font-size: 10px;
  line-height: 1.35;
}

.slot-popup-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1;
}

.slot-popup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-popup-player {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 94px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--fl-border);
  background: rgba(255,255,255,0.04);
  color: var(--fl-text);
  text-align: left;
  cursor: pointer;
}

.slot-player-role {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(254, 252, 64, 0.14);
  color: var(--fl-yellow);
  font-size: 13px;
  font-weight: 900;
}

.slot-player-main {
  min-width: 0;
}

.slot-popup-player.active-choice {
  border-color: var(--fl-yellow);
  background: rgba(254,252,64,0.1);
}

.slot-popup-player strong,
.slot-player-main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--fl-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-player-main span {
  display: block;
  margin-top: 2px;
  color: var(--fl-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-player-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(42px, 1fr));
  gap: 5px;
  justify-self: end;
  width: 94px;
}

.slot-player-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--fl-muted);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.slot-player-stats strong {
  color: var(--fl-yellow);
  font-size: 12px;
}

.slot-popup-empty {
  padding: 6px 0 2px;
  color: var(--fl-muted);
  font-size: 10px;
}

.slot-popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 6900;
  background: rgba(0, 0, 0, 0.36);
}

.slot-popup-backdrop.open {
  display: block;
}

@media (max-width: 768px) {
  .fl-lineup-page .lineup-field-card {
    padding: 12px;
  }

  .fl-lineup-page .lineup-card-header {
    margin-bottom: 8px;
  }

  .fl-lineup-page .schiera-layout {
    gap: 10px;
  }

  .fl-formation-grid--prototype {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fl-formation-grid--prototype > .fl-card:first-child,
  .fl-formation-grid--prototype > .fl-stack {
    width: 100%;
  }

  .fl-formation-grid--prototype > .fl-stack {
    order: 2;
  }

  .schiera-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .schiera-layout > .field,
  .schiera-layout > .bench {
    width: 100%;
  }

  .schiera-layout > .field {
    order: 1;
    margin-bottom: 4px;
  }

  .schiera-layout > .bench {
    order: 2;
  }

  .fl-formation-grid--prototype > .fl-card,
  .fl-formation-grid--prototype > .fl-stack {
    gap: 16px;
  }

  .fl-lineup-page .field,
  .field {
    max-width: min(100%, 232px);
    height: 270px;
    border-radius: 16px;
  }

  .fl-lineup-page .formation-row,
  .formation-row {
    gap: 12px;
  }

  .fl-lineup-page .formation-row.portiere,
  .formation-row.portiere { top: 26px; }

  .fl-lineup-page .formation-row.difesa,
  .formation-row.difesa { top: 100px; }

  .fl-lineup-page .formation-row.attacco,
  .formation-row.attacco { bottom: 34px; }

  .fl-lineup-page .jersey,
  .jersey {
    width: 42px;
    height: 52px;
    border-radius: 16px 16px 12px 12px;
  }

  .jersey::before,
  .jersey::after {
    top: 6px;
    width: 9px;
    height: 13px;
  }

  .jersey::before { left: -5px; }
  .jersey::after { right: -5px; }

  .jersey-number {
    font-size: 11px;
  }

  .jersey-name {
    max-width: 24px;
    font-size: 5px;
  }

  .field-penalty {
    height: 46px;
  }

  .field-goal-area {
    height: 18px;
  }

  .field-spot.top { top: 42px; }
  .field-spot.bottom { bottom: 42px; }

  .bench {
    gap: 10px;
  }

  #panchinaList {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .bench-slot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 18px minmax(34px, 1fr) 22px;
    justify-items: center;
    gap: 4px;
    min-height: 88px;
    padding: 7px 4px;
    text-align: center;
  }

  .bench-slot-meta {
    grid-row: 1;
    display: flex;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }

  .bench-slot-index,
  .bench-slot-role {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .bench-slot strong,
  .bench-slot small {
    grid-column: 1;
  }

  .bench-slot strong {
    grid-row: 2;
    align-self: center;
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: 6px;
    line-height: 1.02;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .bench-slot small {
    display: none;
  }

  .bench-order-controls {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    gap: 4px;
  }

  .bench-order-btn {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    font-size: 10px;
  }

  .bench-title {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .captain-summary {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .bench-player {
    align-items: flex-start;
    padding: 10px 10px 10px 12px;
    gap: 10px;
  }

  .bench-player .name {
    font-size: 11px;
    line-height: 1.25;
  }

  .bench-actions {
    flex-shrink: 0;
    margin-left: auto;
  }

  .bench-action-btn {
    min-width: 30px;
    min-height: 30px;
    font-size: 10px;
  }

  .slot-popup {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: min(72vh, 620px);
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .slot-popup::before {
    display: none;
  }

  .slot-popup-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .slot-popup-title {
    font-size: 10px;
  }

  .slot-popup-subtitle {
    font-size: 9px;
  }

  .slot-popup-player {
    padding: 10px;
  }

  .slot-popup-player strong {
    font-size: 14px;
  }

  .slot-player-main span {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .fl-page {
    width: calc(100% - 20px);
    margin: 20px auto 48px;
  }

  .fl-hero,
  .fl-card {
    padding: 16px;
    border-radius: 20px;
  }

  .fl-lineup-page .field,
  .field {
    max-width: 214px;
    height: 250px;
  }

  .fl-lineup-page .formation-row,
  .formation-row {
    gap: 10px;
  }

  .fl-lineup-page .formation-row.portiere,
  .formation-row.portiere { top: 24px; }

  .fl-lineup-page .formation-row.difesa,
  .formation-row.difesa { top: 92px; }

  .fl-lineup-page .formation-row.attacco,
  .formation-row.attacco { bottom: 30px; }

  .goal-net {
    width: 78px;
    height: 15px;
  }

  .field-penalty {
    height: 42px;
  }

  .field-goal-area {
    height: 16px;
  }

  .field-spot.top { top: 38px; }
  .field-spot.bottom { bottom: 38px; }

  .fl-lineup-page .jersey,
  .jersey {
    width: 38px;
    height: 48px;
  }

  .jersey::before,
  .jersey::after {
    width: 8px;
    height: 12px;
  }

  .jersey-number {
    font-size: 10px;
  }

  .jersey-name {
    max-width: 22px;
  }

  .jersey-remove,
  .jersey-captain {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }

  .bench-player {
    padding: 9px 9px 9px 10px;
  }

  .bench-player .role {
    font-size: 9px;
  }

  .bench-player .name {
    font-size: 10px;
  }

  .bench-actions {
    gap: 4px;
  }

  .bench-action-btn {
    min-width: 28px;
    min-height: 28px;
    padding: 0 6px;
  }

  .slot-popup {
    width: min(220px, calc(100vw - 20px));
    padding: 9px;
  }
}

@media (max-width: 520px) {
  .fl-page.fl-quot-page {
    width: calc(100% - 20px) !important;
    max-width: 350px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 26px !important;
    overflow-x: hidden !important;
    transform: none !important;
  }

  .fl-quot-page > .fl-hero,
  .fl-quot-page > .fl-card,
  .fl-quot-page .fl-admin-toolbar,
  .fl-quot-page .fl-admin-toolbar label,
  .fl-quot-page .fl-admin-toolbar select,
  .fl-quot-page .fl-admin-toolbar .fl-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fl-quot-page .fl-hero,
  .fl-quot-page .fl-card {
    padding: 22px 20px;
    overflow: hidden;
  }

  .fl-quot-page .fl-title {
    max-width: 10ch;
    font-size: clamp(2.05rem, 10vw, 2.55rem);
    line-height: 0.98;
  }

  .fl-quot-page .fl-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .fl-quot-page .fl-admin-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fl-quot-page .fl-market-table-wrap {
    overflow: visible;
    max-width: 100%;
  }

  .fl-quot-page .fl-market-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border: 0;
    background: transparent;
  }

  .fl-quot-page .fl-market-table thead {
    display: none;
  }

  .fl-quot-page .fl-market-table tbody {
    display: grid;
    gap: 10px;
  }

  .fl-quot-page .fl-market-table tr {
    display: grid;
    gap: 8px;
    padding: 13px 12px;
    border: 1px solid var(--fl-border);
    border-radius: 16px;
    background: rgba(17, 39, 72, 0.72);
  }

  .fl-quot-page .fl-market-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--fl-text);
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .fl-quot-page .fl-market-table td::before {
    flex: 0 0 46%;
    color: var(--fl-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .fl-quot-page .fl-market-table td:nth-child(1) {
    display: block;
    color: var(--fl-text);
    font-size: 0.98rem;
    font-weight: 900;
  }

  .fl-quot-page .fl-market-table td:nth-child(1)::before {
    display: block;
    margin-bottom: 3px;
    content: "Giocatore";
  }

  .fl-quot-page .fl-market-table td:nth-child(2)::before { content: "Quota attuale"; }
  .fl-quot-page .fl-market-table td:nth-child(3)::before { content: "Voto totale"; }
  .fl-quot-page .fl-market-table td:nth-child(4)::before { content: "SV"; }
  .fl-quot-page .fl-market-table td:nth-child(5)::before { content: "Voto atteso"; }
  .fl-quot-page .fl-market-table td:nth-child(6)::before { content: "Differenza"; }
  .fl-quot-page .fl-market-table td:nth-child(7)::before { content: "Nuova quota"; }

  .fl-page.fl-auth-page {
    width: min(330px, calc(100vw - 48px)) !important;
    max-width: min(330px, calc(100vw - 48px)) !important;
    margin-left: max(16px, calc((100vw - 350px) / 2)) !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
    transform: translateX(-50px);
  }

  .fl-auth-page .fl-hero,
  .fl-auth-page .fl-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .fl-auth-page .fl-subtitle,
  .fl-auth-page .fl-meta {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fl-register-page {
    position: static;
    left: auto;
    width: calc(100% - 20px) !important;
    max-width: 350px !important;
    gap: 14px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 10px !important;
    transform: none !important;
    overflow-x: hidden !important;
  }

  .fl-register-page > .fl-grid,
  .fl-register-page > .fl-hero,
  .fl-register-page .fl-card,
  .fl-register-page .fl-auth-form,
  .fl-register-page .fl-auth-grid,
  .fl-register-page .fl-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fl-register-page > .fl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fl-register-page .fl-hero {
    padding: 18px 20px;
  }

  .fl-register-page .fl-title {
    max-width: 10ch;
    font-size: clamp(2rem, 10vw, 2.35rem);
  }

  .fl-register-page .fl-subtitle {
    display: none;
  }

  .fl-register-page .fl-card {
    padding: 18px 20px;
  }

  .fl-register-page .fl-card h2 {
    margin-bottom: 10px;
    font-size: 1.42rem;
    line-height: 1;
  }

  .fl-register-page .fl-auth-form {
    gap: 10px;
  }

  .fl-register-page .fl-auth-form label {
    gap: 6px;
    font-size: 0.82rem;
  }

  .fl-register-page .fl-auth-form input {
    min-height: 42px;
    border-radius: 14px;
  }

  .fl-register-page .fl-actions {
    gap: 10px;
  }

  .fl-register-page .fl-btn {
    min-height: 43px;
  }

  .fl-register-page .fl-actions .fl-btn:not(.fl-btn--primary) {
    min-height: auto;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    color: var(--fl-yellow);
    box-shadow: none;
  }

  .fl-register-benefits {
    display: none;
  }

  .fl-login-page {
    gap: 18px;
    margin-top: 26px !important;
  }

  .fl-login-page .fl-hero {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .fl-login-page .fl-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .fl-login-page .fl-kicker,
  .fl-login-page .fl-card__eyebrow {
    margin-bottom: 10px;
  }

  .fl-login-page .fl-card h2 {
    margin-bottom: 16px;
  }

  .fl-login-page .fl-auth-form {
    gap: 14px;
  }

  .fl-login-page .fl-auth-form label {
    gap: 8px;
  }

  .fl-recover-page {
    width: calc(100% - 20px) !important;
    max-width: 350px !important;
    gap: 18px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 26px !important;
    transform: none !important;
  }

  .fl-recover-page > .fl-grid,
  .fl-recover-page > .fl-hero,
  .fl-recover-page .fl-card,
  .fl-recover-page .fl-auth-form,
  .fl-recover-page .fl-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fl-recover-page > .fl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fl-recover-page .fl-hero {
    padding: 22px 20px;
  }

  .fl-recover-page .fl-title {
    max-width: 10ch;
    font-size: clamp(2.05rem, 10vw, 2.45rem);
    line-height: 0.98;
  }

  .fl-recover-page .fl-subtitle {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .fl-recover-page .fl-card {
    padding: 22px 20px;
  }

  .fl-recover-page .fl-kicker,
  .fl-recover-page .fl-card__eyebrow {
    margin-bottom: 10px;
  }

  .fl-recover-page .fl-card h2 {
    margin-bottom: 16px;
    font-size: 1.55rem;
    line-height: 1;
  }

  .fl-recover-page .fl-auth-form {
    gap: 14px;
  }

  .fl-recover-page .fl-auth-form input {
    min-height: 46px;
  }

  .fl-recover-page .fl-actions .fl-btn:not(.fl-btn--primary) {
    min-height: auto;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    color: var(--fl-yellow);
    box-shadow: none;
  }

  .fl-recover-support {
    display: none;
  }

  .fl-reset-page {
    width: calc(100% - 20px) !important;
    max-width: 350px !important;
    gap: 18px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 26px !important;
    transform: none !important;
  }

  .fl-reset-page > .fl-grid,
  .fl-reset-page > .fl-hero,
  .fl-reset-page .fl-card,
  .fl-reset-page .fl-auth-form,
  .fl-reset-page .fl-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fl-reset-page > .fl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fl-reset-page .fl-hero {
    padding: 22px 20px;
  }

  .fl-reset-page .fl-title {
    max-width: 10ch;
    font-size: clamp(2.05rem, 10vw, 2.45rem);
    line-height: 0.98;
  }

  .fl-reset-page .fl-subtitle {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .fl-reset-page .fl-card {
    padding: 22px 20px;
  }

  .fl-reset-page .fl-kicker,
  .fl-reset-page .fl-card__eyebrow {
    margin-bottom: 10px;
  }

  .fl-reset-page .fl-card h2 {
    margin-bottom: 16px;
    font-size: 1.55rem;
    line-height: 1;
  }

  .fl-reset-page .fl-auth-form {
    gap: 14px;
  }

  .fl-reset-page .fl-auth-form input {
    min-height: 46px;
  }

  .fl-reset-page .fl-actions .fl-btn:not(.fl-btn--primary) {
    min-height: auto;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    color: var(--fl-yellow);
    box-shadow: none;
  }

  .fl-reset-support {
    display: none;
  }

  .fl-page.fl-standings-page {
    width: min(350px, calc(100vw - 32px)) !important;
    max-width: min(350px, calc(100vw - 32px)) !important;
    overflow-x: hidden !important;
  }

  .fl-standings-page .fl-hero,
  .fl-standings-page .fl-card,
  .fl-standings-page .fl-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .fl-standings-page .fl-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fl-standings-page .fl-market-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .fl-standings-note .fl-list {
    grid-template-columns: 1fr;
  }

  .fl-standings-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    border: 0;
    background: transparent;
  }

  .fl-standings-table thead {
    display: none;
  }

  .fl-standings-table tbody {
    display: grid;
    gap: 9px;
  }

  .fl-standings-table tr {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--fl-border);
    border-radius: 16px;
    background: rgba(17, 39, 72, 0.72);
  }

  .fl-standings-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .fl-standings-table td:first-child {
    display: grid;
    place-items: center;
    width: 36px !important;
    height: 36px;
    border-radius: 999px;
    background: rgba(254, 252, 64, 0.12);
    color: var(--fl-yellow);
    font-weight: 900;
  }

  .fl-standings-table td:nth-child(2) strong,
  .fl-standings-table td:nth-child(2) a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--fl-text);
    font-size: 0.92rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fl-standings-table td:nth-child(3) {
    color: var(--fl-yellow);
    font-size: 1rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
  }

  .fl-page.fl-results-page {
    width: min(350px, calc(100vw - 32px)) !important;
    max-width: min(350px, calc(100vw - 32px)) !important;
    overflow-x: hidden !important;
  }

  .fl-results-page .fl-hero,
  .fl-results-page .fl-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .fl-results-page .fl-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fl-results-page .fl-inline-form,
  .fl-results-page .fl-inline-form label {
    width: 100%;
    max-width: 100%;
  }

  .fl-results-page .fl-market-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .fl-results-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    border: 0;
    background: transparent;
  }

  .fl-results-table thead {
    display: none;
  }

  .fl-results-table tbody {
    display: grid;
    gap: 9px;
  }

  .fl-results-table tr {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas: "pos team score";
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--fl-border);
    border-radius: 16px;
    background: rgba(17, 39, 72, 0.72);
  }

  .fl-results-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .fl-results-table td:nth-child(1) {
    grid-area: pos;
    display: grid;
    place-items: center;
    width: 34px !important;
    height: 34px;
    border-radius: 999px;
    background: rgba(254, 252, 64, 0.12) !important;
    color: var(--fl-yellow);
    font-weight: 900;
  }

  .fl-results-table td:nth-child(2) {
    grid-area: team;
    overflow: hidden;
    color: var(--fl-text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fl-results-table td:nth-child(3) {
    grid-area: score;
    justify-self: end;
    font-size: 1rem;
    text-align: right;
    white-space: nowrap;
  }

  .fl-page.fl-user-results-page {
    width: min(350px, calc(100vw - 32px)) !important;
    max-width: min(350px, calc(100vw - 32px)) !important;
    overflow-x: hidden !important;
  }

  .fl-user-results-page .fl-hero,
  .fl-user-results-page .fl-card,
  .fl-user-results-page .fl-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .fl-user-results-page .fl-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fl-user-results-page .fl-admin-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .fl-user-results-page .fl-admin-toolbar label {
    display: grid;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fl-user-results-page .fl-admin-toolbar label span {
    color: var(--fl-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .fl-user-results-page .fl-admin-toolbar select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fl-text);
  }

  .fl-user-results-page .fl-list {
    gap: 8px;
  }

  .fl-user-results-page .fl-list li {
    align-items: stretch;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .fl-user-result-player {
    align-items: flex-start;
    gap: 8px;
  }

  .fl-user-result-main strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fl-user-result-badges {
    max-width: 45%;
  }

  .fl-user-results-page .fl-bonus-icons {
    max-width: 100%;
  }

  .fl-user-results-page .fl-pill {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
  }

  .fl-user-results-page .fl-card--accent .fl-stat {
    min-width: 0;
    text-align: center;
  }

  .fl-user-results-page .fl-card--accent .fl-stat__value {
    font-size: clamp(2.2rem, 18vw, 4rem);
    line-height: 0.95;
  }

  .roster-drawer {
    left: 50%;
    right: auto;
    bottom: 10px;
    width: min(370px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    transform: translateX(-50%);
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px;
    overflow-x: hidden;
  }

  #rosterDrawerContent {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .roster-drawer-list {
    display: grid;
    gap: 9px;
    width: 100%;
    max-width: 100%;
  }

  .roster-drawer-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 32px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 11px 10px 11px 12px;
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    background: rgba(17, 39, 72, 0.72);
  }

  .roster-drawer-player-main {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .roster-drawer-player-main strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--fl-text);
    font-size: 0.9rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .roster-drawer-player-main span {
    color: var(--fl-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .roster-drawer-player-price {
    color: var(--fl-yellow);
    font-size: 0.95rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
  }

  .market-mobile-detail-control {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
  }

  .market-mobile-detail-control label {
    color: var(--fl-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .fl-market-page .market-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .fl-market-page .market-table th,
  .fl-market-page .market-table td {
    padding: 10px 7px;
    font-size: 0.82rem;
  }

  .fl-market-page .market-table th:nth-child(3),
  .fl-market-page .market-table td:nth-child(3),
  .fl-market-page .market-table th:nth-child(4),
  .fl-market-page .market-table td:nth-child(4),
  .fl-market-page .market-table th:nth-child(5),
  .fl-market-page .market-table td:nth-child(5),
  .fl-market-page .market-table th:nth-child(6),
  .fl-market-page .market-table td:nth-child(6),
  .fl-market-page .market-table th:nth-child(7),
  .fl-market-page .market-table td:nth-child(7) {
    display: none;
  }

  .fl-market-page .market-table[data-mobile-detail="ruolo"] th:nth-child(3),
  .fl-market-page .market-table[data-mobile-detail="ruolo"] td:nth-child(3),
  .fl-market-page .market-table[data-mobile-detail="media"] th:nth-child(4),
  .fl-market-page .market-table[data-mobile-detail="media"] td:nth-child(4),
  .fl-market-page .market-table[data-mobile-detail="gare"] th:nth-child(5),
  .fl-market-page .market-table[data-mobile-detail="gare"] td:nth-child(5),
  .fl-market-page .market-table[data-mobile-detail="prezzo"] th:nth-child(6),
  .fl-market-page .market-table[data-mobile-detail="prezzo"] td:nth-child(6),
  .fl-market-page .market-table[data-mobile-detail="squadra"] th:nth-child(7),
  .fl-market-page .market-table[data-mobile-detail="squadra"] td:nth-child(7) {
    display: table-cell;
  }

  .fl-market-page .market-table th:first-child,
  .fl-market-page .market-table td:first-child {
    width: 12%;
  }

  .fl-market-page .market-table th:nth-child(2),
  .fl-market-page .market-table td:nth-child(2) {
    width: 63%;
  }

  .fl-market-page .market-table th:nth-child(3),
  .fl-market-page .market-table td:nth-child(3),
  .fl-market-page .market-table th:nth-child(4),
  .fl-market-page .market-table td:nth-child(4),
  .fl-market-page .market-table th:nth-child(5),
  .fl-market-page .market-table td:nth-child(5),
  .fl-market-page .market-table th:nth-child(6),
  .fl-market-page .market-table td:nth-child(6) {
    width: 25%;
  }

  .fl-market-page .market-table th:nth-child(7),
  .fl-market-page .market-table td:nth-child(7) {
    width: 25%;
  }
}

@media (max-width: 768px) {
  .lineup-bottom-bar {
    position: fixed !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 5000 !important;
  }
}

body.page-template-schiera-formazione .lineup-field-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

body.page-template-schiera-formazione .lineup-field-status span {
  display: block;
  color: var(--fl-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-template-schiera-formazione .lineup-field-status strong {
  display: block;
  margin-top: 2px;
  color: var(--fl-text);
  font-size: 13px;
  line-height: 1.15;
}

body.page-template-schiera-formazione .lineup-field-status__count {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fl-yellow);
  color: #06101f;
  font-size: 13px;
  font-weight: 950;
}

body.page-template-schiera-formazione .field {
  max-width: 340px;
  height: 520px;
}

body.page-template-schiera-formazione .formation-row {
  gap: 18px;
}

body.page-template-schiera-formazione .formation-row.portiere {
  top: 56px;
}

body.page-template-schiera-formazione .formation-row.difesa {
  top: 218px;
}

body.page-template-schiera-formazione .formation-row.attacco {
  top: 382px;
  bottom: auto;
}

body.page-template-schiera-formazione .lineup-field-player {
  position: relative;
  display: grid;
  grid-template-rows: 54px 34px;
  justify-items: center;
  align-items: start;
  gap: 10px;
  width: 96px;
  min-height: 102px;
  color: var(--fl-text);
  cursor: pointer;
  touch-action: manipulation;
}

body.page-template-schiera-formazione .lineup-field-player.jersey {
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-template-schiera-formazione .lineup-field-player.jersey::before,
body.page-template-schiera-formazione .lineup-field-player.jersey::after {
  display: none;
}

body.page-template-schiera-formazione .lineup-shirt-icon {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  color: var(--fl-yellow);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

body.page-template-schiera-formazione .lineup-shirt-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-template-schiera-formazione .lineup-shirt-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 4px;
  color: #06101f;
  font-size: 13px;
  font-weight: 950;
}

body.page-template-schiera-formazione .lineup-shirt-role {
  position: absolute;
  right: -7px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #06101f;
  border-radius: 999px;
  background: #fff;
  color: #06101f;
  font-size: 8px;
  font-weight: 950;
}

body.page-template-schiera-formazione .lineup-player-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(6, 16, 31, 0.86);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-template-schiera-formazione .lineup-field-player.is-empty {
  grid-template-rows: 54px;
  align-content: center;
  border: 0;
  background: transparent;
}

body.page-template-schiera-formazione .lineup-empty-ball {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 3px;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

body.page-template-schiera-formazione .lineup-field-player .jersey-remove {
  top: -6px;
  right: 18px;
  z-index: 4;
}

body.page-template-schiera-formazione .lineup-field-player.slot-active .lineup-shirt-icon,
body.page-template-schiera-formazione .lineup-field-player.slot-active .lineup-empty-ball {
  outline: 2px solid var(--fl-yellow);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  body.page-template-schiera-formazione .fl-lineup-page .field,
  body.page-template-schiera-formazione .field {
    max-width: min(100%, 320px);
    height: 390px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row,
  body.page-template-schiera-formazione .formation-row {
    gap: 12px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row.portiere,
  body.page-template-schiera-formazione .formation-row.portiere {
    top: 32px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row.difesa,
  body.page-template-schiera-formazione .formation-row.difesa {
    top: 154px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row.attacco,
  body.page-template-schiera-formazione .formation-row.attacco {
    top: 276px;
    bottom: auto;
  }

  body.page-template-schiera-formazione .lineup-field-player {
    grid-template-rows: 54px 38px;
    gap: 10px;
    width: 92px;
    min-height: 102px;
  }

  body.page-template-schiera-formazione .lineup-player-name {
    width: 92px;
  }
}

@media (max-width: 480px) {
  body.page-template-schiera-formazione .fl-lineup-page .field,
  body.page-template-schiera-formazione .field {
    max-width: min(100%, 304px);
    height: 374px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row.portiere,
  body.page-template-schiera-formazione .formation-row.portiere {
    top: 28px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row.difesa,
  body.page-template-schiera-formazione .formation-row.difesa {
    top: 146px;
  }

  body.page-template-schiera-formazione .fl-lineup-page .formation-row.attacco,
  body.page-template-schiera-formazione .formation-row.attacco {
    top: 264px;
  }

  body.page-template-schiera-formazione .lineup-field-player {
    width: 86px;
  }

  body.page-template-schiera-formazione .lineup-player-name {
    width: 86px;
    font-size: 7px;
  }
}

body.page-template-schiera-formazione #panchinaList {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

body.page-template-schiera-formazione .bench-slot {
  display: grid;
  grid-template-columns: 24px 24px minmax(0, 1fr) 34px;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: stretch;
  gap: 7px;
  min-height: 52px;
  padding: 6px 7px;
  text-align: left;
}

body.page-template-schiera-formazione .bench-slot.empty {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

body.page-template-schiera-formazione .bench-slot-meta {
  display: contents;
}

body.page-template-schiera-formazione .bench-slot-index,
body.page-template-schiera-formazione .bench-slot-role {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: 22px;
  height: 22px;
  font-size: 10px;
}

body.page-template-schiera-formazione .bench-slot strong,
body.page-template-schiera-formazione .bench-slot small {
  grid-column: 3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-template-schiera-formazione .bench-slot strong {
  grid-row: 1;
  align-self: end;
  display: block;
  max-width: 100%;
  color: var(--fl-text);
  font-size: 12px;
  line-height: 1.1;
}

body.page-template-schiera-formazione .bench-slot small {
  grid-row: 2;
  display: block;
  align-self: start;
  color: var(--fl-muted);
  font-size: 10px;
}

body.page-template-schiera-formazione .bench-order-controls {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: grid;
  align-self: center;
  justify-self: end;
  gap: 4px;
}

body.page-template-schiera-formazione .bench-order-btn {
  width: 24px;
  height: 20px;
  border-radius: 8px;
  font-size: 11px;
}
