/* "Configurações da partida" (front-menu screen match-setup), its lobby summary, and the PES form arrows shared with Meu time. */
.fpx-form{display:inline-grid;place-items:center;width:18px;height:18px;flex:none;background:var(--form-color,#43c463);border:2px solid #121419;box-shadow:inset -2px -2px #0003;vertical-align:middle}
.fpx-form svg{width:12px;height:12px;transform:rotate(var(--form-angle,0deg));display:block}
.fpx-form svg path{fill:#121419;stroke:none}
.front-menu[data-screen=match-setup] .fm-heading{padding:16px 0 12px}
.front-menu[data-screen=match-setup] .fm-heading h1{font-size:clamp(24px,2.6vw,36px)}
/* Voltar / Entrar em campo stay in reach while the option list scrolls. */
.front-menu[data-screen=match-setup] .fm-actions{position:sticky;bottom:0;z-index:2;margin:6px 0 0;padding:12px 0;background:linear-gradient(0deg,#121419 70%,#12141900)}
.fm-setup-summary{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:14px 18px;margin:0 0 16px;background:linear-gradient(135deg,#3d435299,#21242cc9);border:1px solid var(--edge)}
.fm-setup-vs{font-family:Impact,sans-serif;font-size:30px;color:#a8acb6;transform:skew(-8deg);padding:0 8px}
.fm-setup-team{display:flex;align-items:center;gap:12px;min-width:0}
.fm-setup-team[data-team=orange]{flex-direction:row-reverse;text-align:right}
.fm-setup-team .fm-crest{width:52px;height:52px;filter:drop-shadow(0 5px 7px #0006)}
.fm-setup-team .fm-open-seat{display:grid;place-items:center;width:52px;height:52px;flex:none;border:1px dashed #b6bac280;color:#b6bac2;font-size:22px}
.fm-setup-team-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.fm-setup-team-copy strong{font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fm-setup-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:#b8bbc3;flex-wrap:wrap}
.fm-setup-team[data-team=orange] .fm-setup-meta{justify-content:flex-end}
.fm-kit-swatch{display:inline-block;width:16px;height:16px;flex:none;background:var(--kit-primary);border:3px solid var(--kit-secondary);box-shadow:0 0 0 1px #121419}
.fm-setup-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}
/* 2×2 grid in DOM order: Partida | Equipes on top (team rows above the fold at 720px), Regras | Apresentação below. */
.fm-setup-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-items:start;min-width:0}
.fm-setup-section{margin:0 0 14px;min-width:0}
.fm-setup-section h2{font-size:10px;letter-spacing:2.2px;text-transform:uppercase;color:var(--gold);margin:0 0 6px;font-weight:700}
.fm-option{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1.15fr) 44px;align-items:center;min-height:46px;padding:0 0 0 14px;margin:0 0 4px;background:linear-gradient(90deg,#292d37ca,#2e323c60);border:1px solid #9ca1ac2b;transition:background .15s,box-shadow .15s}
.fm-option:hover{border-color:#c8cbd1}
.fm-option{scroll-margin:70px 0 96px}
.front-menu .fm-option:focus-visible,.fm-option:focus{background:linear-gradient(110deg,#f2f3f5,#ccced4);color:#242830;border-color:#f0f1f3;box-shadow:-4px 0 0 var(--red);outline:none}
.fm-option-label{font-size:11px;font-weight:700;letter-spacing:.6px;line-height:1.25;text-transform:uppercase;min-width:0;overflow-wrap:anywhere;padding:4px 4px 4px 0}
.fm-option-value{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;font-size:13px;font-weight:700;line-height:1.2;text-align:center}
.front-menu .fm-option-arrow{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font-size:13px;line-height:1;opacity:.8;transition:none}
.fm-option:focus .fm-option-arrow{color:#242830;opacity:1}
.front-menu .fm-option-arrow:hover{opacity:1;background:#ffc42e33}
.fm-setup-aside{position:sticky;top:12px;min-width:0}
.fm-setup-help{padding:16px 18px;background:#1f2228e6;border:1px solid var(--edge);border-left:3px solid var(--red);min-height:130px}
.fm-setup-help strong{display:block;font-size:15px;margin:4px 0 8px}
.fm-setup-help p{font-size:12px;line-height:1.65;color:#c7cad1;margin:0}
.fm-setup-legend{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:10px;padding:10px 0 0;font-size:11px;color:#c7cad1}
.fm-setup-legend span{display:inline-flex;align-items:center;gap:5px}
.fm-room-options{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:12px 14px;background:#1f2228b8;border:1px solid var(--edge)}
.fm-room-options>.fm-eyebrow{flex-basis:100%}
.fm-room-option{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;background:#292d37;border:1px solid #9ca1ac2b;font-size:11px;color:#eaebee}
.fm-room-option b{color:#b6bac2;font-weight:600}
.squad-player-top .fpx-form{margin-left:2px}
.fm-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Focused row's description under the row; only where the side panel falls below all rows. */
.fm-setup-tip{display:none}
@media(max-width:1100px){.fm-setup-layout{grid-template-columns:minmax(0,1fr) 230px}.fm-setup-sections{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.fm-setup-layout{grid-template-columns:1fr}.fm-setup-aside{position:static}.fm-setup-help{min-height:0;padding:12px 14px}
  .fm-setup-tip{display:block;margin:-4px 0 6px;padding:8px 12px;background:#1f2228e6;border:1px solid var(--edge);border-top:0;border-left:3px solid var(--red);font-size:12px;line-height:1.5;color:#d4d7dc}
  .fm-option{scroll-margin:70px 0 190px}}
@media(max-width:600px){
  .fm-setup-summary{grid-template-columns:1fr;padding:10px 12px;gap:8px}
  .fm-setup-vs{display:none}
  .fm-setup-team,.fm-setup-team[data-team=orange]{flex-direction:row;text-align:left;gap:10px}
  .fm-setup-team[data-team=orange] .fm-setup-meta{justify-content:flex-start}
  .fm-setup-team .fm-crest,.fm-setup-team .fm-open-seat{width:38px;height:38px}
  .fm-setup-team-copy{gap:3px}.fm-setup-team-copy strong{font-size:14px}.fm-setup-meta{font-size:10px;gap:6px}
  .fm-option{grid-template-columns:minmax(0,1fr) 44px minmax(0,1.2fr) 44px;padding-left:10px}
  .fm-option-label{font-size:10px;letter-spacing:.3px}.fm-option-value{font-size:12px}
  .front-menu[data-screen=match-setup] .fm-actions{flex-direction:row;gap:8px;padding:10px 0 max(10px,env(safe-area-inset-bottom))}
  .front-menu[data-screen=match-setup] .fm-actions .fm-button{width:auto;min-height:48px}
  .front-menu[data-screen=match-setup] .fm-actions .fm-secondary{flex:0 0 auto;padding:12px 14px;font-size:12px}
  .front-menu[data-screen=match-setup] .fm-actions .fm-primary{flex:1 1 auto;padding:12px 14px;font-size:13px}
  .front-menu[data-screen=match-setup] .fm-actions .fm-primary svg{margin-left:8px}
}
@media(max-width:360px){
  .fm-option{grid-template-columns:44px minmax(0,1fr) 44px;padding:0}
  .fm-option-label{grid-column:1/-1;text-align:center;padding:6px 6px 0}
}

/* FUTPIXEL TV skin for the setup screen: the summary as a VS slate, section titles with the red rule, option rows
   that light up with the red edge and a gold value when focused, and the help panel as a lower third. */
.fm-setup-summary{border:1px solid var(--edge);border-top:3px solid var(--red);border-radius:var(--r-sm);background:var(--panel-grad);box-shadow:var(--shadow-2),inset 0 1px 0 #ffffff0d}
.fm-setup-vs{min-width:52px;padding:6px 10px 4px;background:linear-gradient(180deg,var(--red-hi),var(--red) 55%,var(--red-deep));color:#fff;font-family:var(--tv-font);font-style:italic;font-weight:900;font-size:24px;line-height:1;text-align:center;box-shadow:0 6px 18px #e5173a55}
.fm-setup-team-copy strong{font-family:var(--tv-font);font-weight:700;letter-spacing:.3px}
.fm-setup-meta{color:var(--muted)}
.fm-setup-team .fm-open-seat{border-color:var(--edge-strong);color:var(--dim)}
.fm-kit-swatch{box-shadow:0 0 0 1px #07080b,0 0 0 2px #ffffff33}
.fm-setup-section h2{display:flex;align-items:center;gap:8px;color:var(--gold);font-family:var(--tv-font);font-size:12px;letter-spacing:2px}
.fm-setup-section h2::before{content:"";flex:none;width:14px;height:3px;background:var(--red)}
.fm-option{border:1px solid var(--edge);border-radius:var(--r-xs);background:linear-gradient(90deg,#181b22f0,#15181fb3);transition:background var(--dur) ease,box-shadow var(--dur) ease,border-color var(--dur) ease}
.fm-option:hover{border-color:var(--edge-strong)}
.front-menu .fm-option:focus-visible,.fm-option:focus{border-color:#ffffff40;background:linear-gradient(90deg,#2c313c,#1d2129);color:#fff;box-shadow:inset 4px 0 0 var(--red),0 0 0 1px var(--focus),0 8px 20px #0008;outline:none}
.fm-option-label{color:var(--ink-2);font-family:var(--tv-font);letter-spacing:1px}
.fm-option:focus .fm-option-label{color:#fff}
.fm-option-value{font-family:var(--tv-font);letter-spacing:.3px}
.fm-option:focus .fm-option-value{color:var(--gold)}
.fm-option:focus .fm-option-arrow{color:#fff}
.front-menu .fm-option-arrow:hover{background:#e5173a38}
.fm-setup-help,.fm-setup-tip{border:1px solid var(--edge);border-left:4px solid var(--red);background:var(--lt-bg);box-shadow:var(--shadow-1)}
.fm-setup-tip{border-top:0;color:var(--ink-2)}
.fm-setup-help strong{font-family:var(--tv-font);font-size:17px;letter-spacing:.3px}
.fm-setup-help p,.fm-setup-legend{color:var(--muted)}
.fm-room-options{border:1px solid var(--edge);border-top:3px solid var(--red);border-radius:var(--r-sm);background:var(--panel-grad)}
.fm-room-option{border:1px solid var(--edge);border-radius:var(--r-xs);background:var(--well);color:var(--ink)}
.fm-room-option b{color:var(--muted);font-family:var(--tv-font);letter-spacing:.4px}
.front-menu[data-screen=match-setup] .fm-actions{background:linear-gradient(0deg,var(--bg) 70%,#07080b00)}
.front-menu[data-enter=true] .fm-setup-section{animation:fm-rise var(--dur-slow) var(--ease-out) backwards}
.front-menu[data-enter=true] .fm-setup-section:nth-child(2){animation-delay:.05s}.front-menu[data-enter=true] .fm-setup-section:nth-child(3){animation-delay:.1s}.front-menu[data-enter=true] .fm-setup-section:nth-child(4){animation-delay:.15s}

/* Readable match options beside a capture of the actual game stadium. */
.front-menu[data-screen=match-setup] .fm-content{max-width:1360px}
.front-menu[data-screen=match-setup]::before{background:linear-gradient(110deg,#101319f5,#101319de)}
.fm-setup-summary{background:#171b22;border-top-width:2px;box-shadow:none;padding:15px 20px}
.fm-setup-layout{grid-template-columns:minmax(0,1fr) minmax(300px,32%);gap:24px}
.fm-setup-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;padding:18px;background:#10141bea;border:1px solid var(--edge)}
.fm-setup-section{margin:0}
.fm-setup-section h2{margin:0 0 10px;font-size:13px;letter-spacing:1.4px}
.fm-option{min-height:50px;grid-template-columns:minmax(0,1fr) 40px minmax(0,1.4fr) 40px;padding-left:10px;margin:0;border:0;border-bottom:1px solid #ffffff14;border-radius:0;background:var(--panel);box-shadow:none}
.fm-option:nth-of-type(even){background:var(--well)}
.fm-option-label{font-size:12px;letter-spacing:.5px;line-height:1.35}
.fm-option-value{font-size:15px;line-height:1.3}
.front-menu .fm-option-arrow{width:40px;min-height:48px;color:var(--muted)}
.front-menu .fm-option:focus,.front-menu .fm-option:focus-visible{background:#29303a;box-shadow:inset 3px 0 var(--red),0 0 0 2px var(--focus);position:relative;z-index:1}
.fm-setup-aside{display:grid;gap:16px;top:16px}
.fm-setup-help{min-height:0;background:var(--panel);border-left-width:2px;box-shadow:none;padding:14px 16px}
.fm-setup-legend{margin:0;padding-top:0}
.fm-stadium-preview{margin:0;min-width:0;overflow:hidden;background:var(--panel);border:1px solid var(--edge)}
.fm-stadium-media{position:relative;aspect-ratio:944/738;background:var(--well);display:grid;place-items:center;overflow:hidden}
.fm-stadium-photo{width:100%;height:100%;object-fit:contain;display:block;position:absolute;inset:0;image-rendering:pixelated}
.fm-stadium-photo[hidden],.fm-stadium-fallback[hidden],.fm-stadium-auto[hidden]{display:none}
.fm-stadium-reference{position:absolute;left:12px;bottom:12px;background:#000c;padding:5px 8px;color:#fff;font-size:10px;line-height:1.4;letter-spacing:.7px;text-transform:uppercase}
.fm-stadium-fallback{padding:24px;color:#fff;font-size:14px;text-align:center}
.fm-stadium-caption{padding:16px}
.fm-stadium-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.fm-stadium-heading h2{font-family:var(--tv-font);font-size:28px;line-height:1.1;color:#fff;margin:0}
.fm-stadium-auto{font-size:10px;padding:3px 6px;color:var(--gold);border:1px solid #f7c34866;text-transform:uppercase}
.fm-stadium-description{font-size:13px;line-height:1.55;color:var(--ink-2);margin:10px 0 14px}
.fm-stadium-time{font-size:11px;line-height:1.6;color:var(--gold);margin:0}
.fm-stadium-compact{display:none}
@media(max-width:1180px) and (min-width:901px){
 .fm-setup-sections{grid-template-columns:1fr;gap:22px}
 .fm-setup-layout{grid-template-columns:minmax(0,1fr) 36%}
}
@media(max-width:900px){
 .fm-setup-layout{grid-template-columns:1fr;gap:16px}
 .fm-setup-sections{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:24px 18px}
 .fm-setup-aside>.fm-stadium-preview{display:none}
 .fm-stadium-compact{display:block;margin:10px 0 0}
 .fm-stadium-compact .fm-stadium-media{aspect-ratio:944/738}
 .fm-stadium-compact .fm-stadium-caption{padding:10px 12px}
 .fm-stadium-compact .fm-stadium-heading h2{font-size:23px}
 .fm-stadium-compact .fm-stadium-description{display:none}
 .fm-stadium-compact .fm-stadium-time{margin-top:6px;font-size:10px}
 .fm-setup-tip{margin:0 0 5px;font-size:12px}
 .fm-option[data-option=stadium]{scroll-margin-top:310px}
}
@media(max-width:600px){
 .front-menu[data-screen=match-setup]{padding-inline:16px}
 .fm-setup-sections{grid-template-columns:1fr;padding:12px;gap:24px}
 .fm-option-label{font-size:12px;letter-spacing:.2px}
 .fm-option-value{font-size:14px}
 .fm-setup-summary{padding:12px;margin-bottom:14px}
 .fm-setup-team-copy strong{font-size:16px}
}
@media(max-width:360px){
 .front-menu[data-screen=match-setup]{padding-inline:12px}
 .fm-setup-sections{padding:8px}
 .fm-option{grid-template-columns:minmax(0,.95fr) 34px minmax(0,1.2fr) 34px;padding-left:8px}
 .fm-option-label{grid-column:auto;text-align:left;padding:4px 3px 4px 0;font-size:11px}
 .fm-option-value{font-size:13px}
 .front-menu .fm-option-arrow{width:34px}
}
