/* Categoria de Base — interface orgânica com o MCO; esboços funcionais. */
.season-base-page{min-height:calc(100vh - 170px);padding:18px 8px 35px;color:#ecf1f7}
.season-base-heading{text-align:center}
.season-base-heading h1{font-size:clamp(24px,2.7vw,32px);letter-spacing:.035em;font-weight:820;margin:8px auto 30px}
.season-base-landing{display:flex;flex-direction:column;align-items:center;gap:20px;padding:10px}
.season-base-landing>p{font-size:12px;color:#8f9daa}
.base-btn{color:#eff6fc;border-radius:10px;padding:12px 21px;font-weight:700;line-height:1.2;box-shadow:none;transition:background .2s,border-color .2s}
.base-primary{background:linear-gradient(180deg,#176a9a,#134763);border:1px solid #3284af}
.base-primary:hover:enabled{background:linear-gradient(180deg,#227fad,#175e83);border-color:#66b3de;box-shadow:0 8px 20px #0004}
.base-secondary{background:#1b222a;border:1px solid #404e5a;color:#dae4ed}
.base-secondary:hover:enabled{background:#283641;border-color:#7790a5}
.base-danger{background:#6a2930;border:1px solid #995057;color:#fff}
.base-danger:hover:enabled{background:#843139;border-color:#c0666e}
.base-overlay{position:fixed;inset:0;z-index:9500;background:#05090ccc;backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:22px}
.base-dialog{width:min(1100px,100%);max-height:calc(100vh - 44px);overflow:auto;background:linear-gradient(155deg,#242f3a,#17212a 75%);border:1px solid #ffffff1e;border-radius:17px;padding:26px 30px 28px;color:#eff5fa;box-shadow:0 24px 75px #0009}
.base-dialog-header{position:relative;display:flex;align-items:center;justify-content:center;min-height:38px;margin-bottom:24px}
.base-dialog-header h2{background:#143f64;border:1px solid #39678466;letter-spacing:.02em;font-size:17px;font-weight:800;text-align:center;border-radius:13px;min-width:min(370px,85%);padding:9px 16px;margin:0}
.base-dialog-header>button{position:absolute;right:0;top:0;width:37px;height:37px;padding:0;border:1px solid #ffffff20;background:#1c2a35;color:#c9d2db;font-size:26px;box-shadow:none}
.base-dialog-header>button:hover:enabled{background:#2f4252;color:white}
.base-form-grid{display:grid;grid-template-columns:.96fr 1.13fr 1.11fr;gap:0;align-items:start}
.base-form-section{position:relative;min-width:0;padding:0 30px 8px}
.base-form-section+.base-form-section{border-left:1px solid #94a6b24f}
.base-form-section h3{font-size:13px;letter-spacing:.025em;color:#e7f2fb;background:#20567d;border:1px solid #3d779761;border-radius:20px;padding:8px 11px;text-align:center;margin:0 0 23px;white-space:nowrap}
.base-investments{display:flex;flex-direction:column;gap:13px}
.base-invest{width:100%;min-height:67px;color:#e8eef5;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:linear-gradient(145deg,#34424f,#222e3b);border:1px solid #57677878;border-radius:12px;padding:10px 12px}
.base-invest strong{font-size:13px;font-weight:850}
.base-invest span{font-size:13px;color:#adbfcf}
.base-invest:hover:enabled{background:linear-gradient(145deg,#43586b,#2a3e50);border-color:#90b9ce}
.base-invest.is-selected{background:linear-gradient(145deg,#1a5378,#113950);border-color:#79badf;box-shadow:0 0 0 1px #5da2ce44,inset 0 1px 0 #ffffff16;color:white}
.base-invest.is-selected span{color:#edfaff}
.base-cash{font-size:12px;text-align:center;margin-top:19px;color:#91a8bd}
.base-cash strong{display:block;color:#e9f5ff;font-size:14px;margin-top:3px}
.base-field{display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:6px;margin:0 0 15px;font-weight:500;min-width:0}
.base-field>span{font-size:13px;color:#dae5ef}
.base-field input,.base-field select,.base-country-trigger{height:39px;min-height:39px;padding:6px 12px;background:#111920;border:1px solid #465766;color:#f6faff;border-radius:10px;margin:0;text-align:center;font-size:13px;box-shadow:none}
.base-field input::placeholder{color:#7f91a0}
.base-field input:focus,.base-field select:focus{border-color:#70b5e4;background:#182a36}
.base-field select{cursor:pointer;appearance:auto}
.base-nation-field{position:relative;z-index:5}
.base-country-trigger{display:flex;align-items:center;justify-content:center;gap:9px;font-weight:500;width:100%;cursor:pointer}
.base-country-trigger:hover:enabled{background:#1a2c3a;border-color:#7093a9}
.base-country-trigger>span:last-child{margin-left:auto;color:#b7cedd}
.base-country-dropdown{position:absolute;z-index:20;left:0;right:0;top:100%;background:#182631;border:1px solid #5a778c;border-radius:11px;padding:8px;box-shadow:0 12px 36px #0009}
.base-country-dropdown>input{width:100%;height:36px;min-height:36px;margin:0 0 6px;text-align:left}
.base-country-options{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:2px;scrollbar-color:#506b7d #182631}
.base-country-options button{display:flex;align-items:center;gap:11px;text-align:left;color:#e2edf5;background:transparent;border:0;box-shadow:none;min-height:34px;border-radius:6px;padding:5px 9px;font-size:12px}
.base-country-options button:hover:enabled{background:#2b465a}
.base-country-options button[hidden]{display:none}
.base-country-options .mco-circle-flag,.base-country-trigger .mco-circle-flag,.base-data-row .mco-circle-flag{width:20px;height:20px;object-fit:contain;flex:0 0 20px}
.base-note{font-size:12px;line-height:1.5;color:#93abbb;margin:18px 0}
.base-dialog-actions{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:27px}
.base-dialog-actions .base-btn{min-width:135px}
.base-error{background:#501f28;border:1px solid #b95b65;border-radius:9px;padding:11px 13px;color:#ffced2!important;font-size:13px;text-align:center;margin:18px 0 0}
.base-reveal{max-width:920px}
.base-reveal .base-dialog-header{margin-bottom:18px}
.base-status{position:absolute;right:4px;color:#8bd7ac;font-size:10px;letter-spacing:.09em;font-weight:800}
.base-invest-paid{display:flex;flex-direction:column;align-items:center;gap:2px;width:fit-content;margin:0 auto 19px;border:1px solid #8b4747;background:#5f272b;border-radius:12px;padding:10px 32px;font-size:12px}
.base-invest-paid strong{font-size:17px;color:#fff}
.base-player-banner{display:flex;align-items:center;gap:15px;border:1px solid #ffffff1d;border-radius:13px;padding:12px 16px;width:min(420px,100%);margin:0 auto 21px;background:#131d26}
.base-avatar{width:57px;height:62px;background:#30414e;color:#99afbf;display:grid;place-items:center;border-radius:8px;flex:0 0 auto}
.base-player-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.base-player-name strong{font-size:17px;color:#f5f8fb;overflow-wrap:anywhere}
.base-player-name span{font-size:12px;color:#a1b3c3;overflow-wrap:anywhere}
.base-ovr{font-size:25px;font-weight:900;color:#12212d;background:linear-gradient(155deg,#f6f6f6,#abbcca);padding:11px 13px;border-radius:10px}
.base-ovr.gold{background:linear-gradient(155deg,#ffe59e,#d8aa45)}.base-ovr.silver{background:linear-gradient(155deg,#f4f6f9,#aebccc)}.base-ovr.bronze{background:linear-gradient(155deg,#f9caa0,#ba825d)}
.base-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 auto;max-width:780px}
.base-result-card{background:#131e27;border:1px solid #ffffff17;border-radius:12px;padding:19px 20px}
.base-result-card h3{font-size:15px;text-align:center;color:#e8f2fa;margin:0 0 17px}
.base-result-card dl{margin:0;display:flex;flex-direction:column;gap:11px}
.base-data-row{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;min-height:28px;gap:12px}
.base-data-row dt{font-size:12px;text-align:right;color:#a7bdce}
.base-data-row dd{font-size:13px;text-align:left;color:#f3f8fd;font-weight:700;margin:0;border-left:1px solid #71859765;min-height:28px;padding-left:17px;display:flex;align-items:center;gap:6px}
.base-pos-pill{background:#1c5a88;border:1px solid #4b91c2;border-radius:7px;padding:4px 10px;display:inline-flex}
.base-pace{display:flex;flex-direction:column;align-items:start;gap:3px}
.base-pace input{width:75px;height:30px;min-height:30px;padding:4px 7px;border-radius:7px;text-align:center;background:#080f16;color:#fff}
.base-pace span{font-size:10px;color:#8fa8b9}
.base-reveal-actions{margin-top:24px;display:flex;align-items:start;justify-content:center;gap:16px;flex-wrap:wrap}
.base-reveal-actions>div{display:flex;flex-direction:column;gap:7px;align-items:center}
.base-reveal-actions .base-btn{max-width:235px;min-height:51px}
.base-reveal-actions small{font-size:11px;max-width:235px;color:#94a9b9;text-align:center}
.base-confirm-overlay{position:fixed;inset:0;z-index:9600;display:grid;place-items:center;background:#000b;padding:20px}
.base-confirm{background:linear-gradient(145deg,#283847,#14202b);width:min(470px,100%);border:1px solid #7894a366;border-radius:14px;padding:25px 26px;text-align:center;box-shadow:0 25px 80px #000b}
.base-confirm h3{font-size:20px;margin-bottom:15px;color:#fff}
.base-confirm p{color:#b8c7d3;line-height:1.6;font-size:14px}
.base-confirm strong{color:#fff}
@media(max-width:850px){
 .base-dialog{padding:20px 14px}
 .base-form-grid{grid-template-columns:1fr}
 .base-form-section{padding:14px 5px 22px!important}
 .base-form-section+.base-form-section{border-left:0;border-top:1px solid #8ca5b54f}
 .base-investments{display:grid;grid-template-columns:1fr 1fr}
 .base-form-section h3{margin-bottom:15px}
 .base-result-grid{grid-template-columns:1fr}
 .base-status{position:static;margin-left:9px}
 .base-dialog-header{justify-content:start}
 .base-dialog-header h2{min-width:0;max-width:82%;font-size:14px}
}
@media(max-width:490px){
 .base-overlay{padding:8px}
 .base-dialog{max-height:calc(100vh - 16px)}
 .base-investments{grid-template-columns:1fr 1fr;gap:8px}
 .base-invest{min-height:60px;padding:9px 3px}
 .base-invest strong{font-size:11px}
 .base-reveal-actions{flex-direction:column;align-items:center}
 .base-data-row{grid-template-columns:1fr 1fr}
}


/* Refinamento V1: três colunas simétricas, painel interno e altura compacta no desktop. */
@media(min-width:851px){
 .base-overlay{padding:12px}
 .base-dialog{width:min(1120px,100%);max-height:calc(100dvh - 24px);padding:17px 21px 19px}
 .base-dialog-header{margin-bottom:13px;min-height:36px}
 .base-dialog-header h2{padding:7px 15px;font-size:16px}
 .base-form-inner{padding:15px 10px 11px}
 .base-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
 .base-form-section{padding:0 17px 0}
 .base-form-section h3{font-size:12px;white-space:normal;min-height:30px;margin-bottom:12px;padding:6px 7px}
 .base-investments{gap:8px}
 .base-invest{min-height:53px;padding:6px 10px;gap:0}
 .base-invest strong{font-size:12px}
 .base-invest span{font-size:12px}
 .base-field{gap:3px;margin:0 0 8px}
 .base-field>span{font-size:12px}
 .base-field input,.base-country-trigger{height:35px;min-height:35px;padding:5px 9px;font-size:12px}
 .base-note{font-size:11px;margin-top:16px;line-height:1.45}
 .base-dialog-actions{margin-top:14px}
 .base-dialog-actions .base-btn{padding:9px 22px;font-size:12px;min-height:36px}
}
.base-form-inner{
 background:linear-gradient(155deg,rgba(10,18,25,.35),rgba(10,19,26,.20));
 border:1px solid rgba(132,166,186,.19);
 border-radius:13px;
}
/* Dropdowns personalizados usam o mesmo padrão, conteúdo centralizado e seta isolada. */
.base-custom-field{position:relative;z-index:4}
.base-country-trigger{
 position:relative;display:flex;align-items:center;justify-content:center;
 width:100%;padding:6px 12px;gap:0;
 background:#111920;border:1px solid #465766;color:#f6faff;
 border-radius:10px;font-size:12px;font-weight:600;
 box-shadow:none;transition:background .16s,border-color .16s;
}
.base-country-trigger .base-trigger-content{
 flex:1;min-width:0;display:flex;align-items:center;justify-content:center;
 text-align:center;gap:7px;padding:0 19px;line-height:1.3;
}
.base-country-trigger .base-dropdown-chevron{
 position:absolute;right:11px;top:50%;transform:translateY(-50%);
 font-size:14px;color:#a7bccb;margin:0;line-height:1;pointer-events:none;
}
.base-country-trigger:hover:enabled,.base-country-trigger[aria-expanded="true"]{
 background:#1a2c3a;border-color:#7093a9;color:#fff;box-shadow:none;transform:none;
}
.base-country-trigger.has-selection{color:#f4faff}
.base-country-dropdown{z-index:60;box-shadow:0 16px 42px #000c}
.base-dropdown-options{max-height:225px}
.base-dropdown-options button[aria-selected="true"]{background:rgba(56,119,158,.31);color:#fff}
.base-country-dropdown input[type="search"]{
 min-height:35px;height:35px;padding:6px 9px;text-align:left;border-radius:7px;
}
.base-custom-field:has(.base-country-dropdown),.base-nation-field:has(.base-country-dropdown){z-index:70}
.base-dialog-header>button.mco-modal-close{
 position:absolute;right:0;top:0;width:36px;height:36px;min-height:36px;
 display:grid;place-items:center;border-radius:50%;padding:0;font-size:0;
 border:1px solid #e1eef733;background:#121d266f;
}
.base-dialog-header>button.mco-modal-close:hover:enabled{
 background:rgba(52,72,88,.78);border-color:#b5cddf57;transform:none;
}
/* Avisos de validação/serviço: diálogo centralizado independente da altura do formulário. */
.base-notice-overlay{position:fixed;inset:0;z-index:9800;display:grid;place-items:center;background:#020507c9;padding:20px;backdrop-filter:blur(3px)}
.base-notice{
 width:min(410px,100%);padding:25px 26px 22px;display:flex;flex-direction:column;
 align-items:center;gap:15px;text-align:center;
 border:1px solid rgba(217,99,106,.52);border-radius:14px;
 background:linear-gradient(160deg,#302027,#1b2028);box-shadow:0 22px 70px #000b;
}
.base-notice-symbol{
 width:39px;height:39px;border-radius:50%;display:grid;place-items:center;
 font-size:23px;font-weight:800;color:#ffd5d5;
 background:#732e39;border:1px solid #c66c76;
}
.base-notice p{margin:0;color:#f6d8db;font-size:14px;line-height:1.55;max-width:350px}
.base-notice button{min-width:115px}
@media(max-width:850px){
 .base-form-inner{padding:9px}
 .base-dialog{max-height:calc(100dvh - 20px)}
 .base-form-section{min-width:0}
 .base-country-trigger .base-trigger-content{padding:0 12px}
 .base-dialog-header>button.mco-modal-close{right:0}
}


/* Categoria de Base V1 — refinamento de entrada e ficha revelada. */
.base-dialog-header h2,
.base-reveal .base-dialog-header h2{
  font-size:20px;
  line-height:1.25;
  font-weight:820;
  padding:9px 18px;
  min-width:min(420px,83%);
}
.base-dialog footer.base-dialog-actions{
  border-top:0;
  padding:0;
  margin:15px 0 0;
  gap:15px;
  color:inherit;
  font-size:inherit;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}
.base-dialog .base-form-section .base-field input::placeholder{
  color:transparent;
}
.base-reveal{
  max-width:940px;
  padding:18px 24px 21px;
}
.base-reveal .base-dialog-header{
  margin-bottom:12px;
}
.base-reveal .base-invest-paid{
  padding:8px 26px;
  margin-bottom:10px;
}
.base-reveal .base-invest-paid strong{
  font-size:16px;
}
.base-revealed-label{
  margin:0 auto 8px;
  color:#9de5bb;
  text-align:center;
  font-size:12px;
  font-weight:800;
  letter-spacing:.13em;
}
.base-reveal .base-player-banner{
  width:min(460px,100%);
  min-height:67px;
  padding:7px 15px;
  margin-bottom:14px;
}
.base-reveal-portrait{
  width:58px;
  height:57px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  background:transparent;
  border:0;
}
.base-reveal-portrait .season-roster-face{
  width:52px;
  height:54px;
}
.base-reveal-portrait .season-roster-face-placeholder svg{
  width:32px;
  height:38px;
}
.base-reveal-portrait .season-roster-face::after{
  width:52px;
}
.base-reveal .base-result-grid{
  max-width:845px;
  gap:16px;
}
.base-reveal .base-result-card{
  min-width:0;
  padding:15px 16px;
}
.base-reveal .base-result-card h3{
  font-size:15px;
  margin:0 0 10px;
}
/* Uma única linha vertical, contínua do primeiro ao último item.
   Conteúdo e títulos centralizados nas respectivas metades. */
.base-reveal .base-result-card dl{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
}
.base-reveal .base-result-card dl::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:1px;
  background:rgba(153,177,194,.40);
  pointer-events:none;
}
.base-reveal .base-data-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  min-height:38px;
  padding:0;
  align-items:stretch;
}
.base-reveal .base-data-row dt,
.base-reveal .base-data-row dd{
  min-width:0;
  padding:5px 7px;
  border:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal;
}
.base-reveal .base-data-row dt{
  color:#a7bdce;
  font-size:12px;
  line-height:1.35;
}
.base-reveal .base-data-row dd{
  color:#f3f8fd;
  font-size:13px;
  font-weight:750;
  gap:0;
}
.base-reveal .base-data-row dd .mco-circle-flag{
  display:inline-flex;
  width:24px;
  height:24px;
  flex:0 0 24px;
  margin:0 auto;
}
.base-reveal .base-data-row dd .mco-details-position{
  padding:6px 16px;
  min-width:57px;
  font-size:13px;
}
/* O valor de ritmo é preenchido até o teto sorteado.
   Perna ruim tem seletor de estrelas com o mesmo mecanismo. */
.base-reveal .base-attribute-picker{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:0;
}
.base-reveal .base-attribute-picker input,
.base-reveal .base-attribute-picker select{
  display:block;
  width:94px;
  min-height:30px;
  height:30px;
  margin:0;
  padding:3px 8px;
  border-radius:8px;
  border:1px solid #4c6575;
  background:#090f15;
  color:#f3f7fb;
  font-size:13px;
  font-weight:750;
  text-align:center;
  box-shadow:none;
}
.base-reveal .base-attribute-picker select{
  width:113px;
  cursor:pointer;
  padding:3px 6px;
  color-scheme:dark;
}
.base-reveal .base-attribute-picker :is(input,select):focus{
  border-color:#88b7d8;
  outline:2px solid rgba(112,181,228,.20);
  outline-offset:1px;
}
.base-reveal .base-attribute-picker>span{
  display:block;
  font-size:11px;
  line-height:1.2;
  color:#9eb2c1;
  font-weight:500;
}
.base-reveal .base-reveal-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,260px));
  justify-content:center;
  align-items:stretch;
  gap:16px;
  margin:16px auto 0;
}
.base-reveal .base-reveal-actions .base-btn{
  width:100%;
  max-width:none;
  min-height:53px;
  height:100%;
  padding:10px 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  font-size:13px;
  line-height:1.25;
}
.base-reveal .base-reveal-actions .base-integrate,
.base-reveal .base-reveal-actions .base-integrate:disabled{
  background:linear-gradient(180deg,#0d8150,#08643f);
  border:1px solid #259866;
  color:#d5f7e6;
  box-shadow:none;
  opacity:.68;
  cursor:not-allowed;
}
.base-reveal .base-reveal-actions .base-danger{
  background:linear-gradient(180deg,#87323a,#68262d);
  border-color:#a64c55;
}
@media(max-width:850px){
  .base-dialog-header h2,.base-reveal .base-dialog-header h2{
    font-size:17px;
    min-width:0;
    max-width:85%;
  }
  .base-reveal .base-result-grid{grid-template-columns:1fr}
  .base-reveal .base-reveal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .base-reveal .base-reveal-actions{
    grid-template-columns:1fr;
    max-width:270px;
  }
  .base-reveal .base-result-card{padding:14px 10px}
}


/* Categoria de Base V1 — linhas uniformes de características.
   O campo principal fica no eixo vertical da linha; a indicação "até"
   permanece logo abaixo do campo, sem deslocar os demais itens. */
.base-reveal .base-result-card:nth-child(2) .base-data-row{
  height:58px;
  min-height:58px;
  box-sizing:border-box;
}
.base-reveal .base-result-card:nth-child(2) .base-data-row dt,
.base-reveal .base-result-card:nth-child(2) .base-data-row dd{
  height:100%;
  box-sizing:border-box;
}
.base-reveal .base-result-card:nth-child(2) .base-data-row dd:has(.base-attribute-picker){
  padding:0;
}
.base-reveal .base-result-card:nth-child(2) .base-attribute-picker{
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  display:block;
  margin:0;
  padding:0;
}
.base-reveal .base-result-card:nth-child(2) .base-attribute-picker :is(input,select){
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:112px;
  height:30px;
  min-height:30px;
  box-sizing:border-box;
  padding:3px 8px;
  margin:0;
  text-align:center;
}
.base-reveal .base-result-card:nth-child(2) .base-attribute-picker>span{
  position:absolute;
  top:calc(50% + 15px);
  left:0;
  right:0;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
  pointer-events:none;
}
.base-reveal .base-invest-paid{
  margin-bottom:17px;
}
.base-reveal .base-revealed-label{
  margin-bottom:3px;
}


/* Categoria de Base — cada ficha encerra na última linha exibida, sem
   esticar artificialmente a menor ficha até a altura da maior. */
.base-reveal .base-result-grid{
  align-items:start;
}
.base-reveal .base-result-card{
  align-self:start;
  height:auto;
  min-height:0;
}
.base-reveal .base-result-card:first-child .base-data-row{
  height:58px;
  min-height:58px;
  box-sizing:border-box;
}
.base-reveal .base-result-card:first-child .base-data-row dt,
.base-reveal .base-result-card:first-child .base-data-row dd{
  height:100%;
  box-sizing:border-box;
}
/* Pequeno respiro entre as caixas e suas legendas, dentro da mesma linha. */
.base-reveal .base-result-card:nth-child(2) .base-attribute-picker>span{
  top:calc(50% + 18px);
  font-size:10px;
  line-height:1;
}
/* Quadro de confirmação reservado para a futura integração profissional. */
.base-integrate-warning{
  font-size:13px;
  line-height:1.6;
  color:#c1d4e2;
}
.base-integrate-warning strong{
  color:#f5fbff;
}
.base-integrate-acknowledgment{
  display:flex;
  gap:10px;
  align-items:flex-start;
  text-align:left;
  margin:16px 0 0;
  padding:11px;
  border:1px solid #54708066;
  border-radius:9px;
  background:#13202a;
  color:#d5e4ef;
  font-size:12px;
  line-height:1.45;
}
.base-integrate-acknowledgment input{
  flex:0 0 auto;
  margin:2px 0 0;
  accent-color:#3188a4;
}


/* Acabamento da integração profissional e ajuste fino solicitado.
   Uma única divisória de 1px, com posicionamento idêntico nas duas fichas. */
.base-reveal .base-result-card dl::before{
  content:"";
  width:1px;
  border:0;
  left:50%;
  transform:translateX(-50%);
  box-sizing:content-box;
  background:rgba(153,177,194,.40);
}
/* Rótulos "até" com respiro sob os controles sem sobrepor a próxima linha. */
.base-reveal .base-result-card .base-data-row,
.base-reveal .base-result-card:first-child .base-data-row,
.base-reveal .base-result-card:nth-child(2) .base-data-row{
  height:60px;
  min-height:60px;
}
.base-reveal .base-result-card:nth-child(2) .base-attribute-picker>span{
  top:calc(50% + 20px);
}
/* A integração agora é uma ação real, mas permanece protegida pela
   confirmação, verificação de limite no banco e seleção de atributos. */
.base-reveal .base-reveal-actions .base-integrate:not(:disabled){
  opacity:1;
  cursor:pointer;
  background:linear-gradient(180deg,#138858,#096c45);
  border-color:#41ae7a;
  color:#f3fff9;
}
.base-reveal .base-reveal-actions .base-integrate:not(:disabled):hover{
  background:linear-gradient(180deg,#1c9863,#127e52);
  border-color:#68d49b;
  box-shadow:0 7px 18px rgba(0,0,0,.25);
}
.base-integration-success{
  margin:3px auto 0;
  max-width:570px;
  text-align:center;
  color:#bdf3d3;
  border:1px solid rgba(73,174,119,.45);
  background:rgba(12,82,50,.25);
  padding:12px 17px;
  border-radius:9px;
  line-height:1.5;
}


/* Revelação: o investimento já foi confirmado na etapa anterior. */
.base-reveal .base-dialog-header{
  margin-bottom:14px;
}
.base-reveal .base-revealed-label{
  margin-bottom:4px;
}
/* Confirmação da integração — reaproveita o cartão centralizado e o check
   verde animado de "Resultado confirmado" do Calendário. */
.season-calendar-result-confirmation-overlay.base-integration-success-overlay{
  z-index:9900;
}
.base-integration-success-card{
  width:min(460px,calc(100vw - 36px));
  min-height:230px;
  padding:34px 30px 30px;
}
.base-integration-success-title{
  display:block;
  max-width:365px;
  color:#f5f7f8;
  font-size:21px;
  font-weight:780;
  line-height:1.4;
  text-align:center;
  overflow-wrap:anywhere;
}
.base-integration-success-card .season-calendar-result-confirmation-check{
  margin-top:26px;
}
@media(max-width:520px){
  .base-integration-success-card{
    min-height:215px;
    padding:28px 20px;
  }
  .base-integration-success-title{
    font-size:18px;
  }
}


/* Fotos da Categoria de Base — modal e recorte no estilo MCO.
   A prévia é local e o WebP final preserva transparência. */
.base-photo-action-row{
  display:flex;justify-content:center;align-items:center;
  margin:-10px auto 16px;
}
.base-photo-add{
  padding:7px 13px;
  min-height:30px;
  border-radius:9px;
  font-size:12px;
  font-weight:720;
  color:#bedef3;
  background:rgba(23,80,115,.26);
  border:1px solid rgba(83,154,193,.4);
}
.base-photo-add:hover:enabled{
  color:#fff;background:rgba(30,112,160,.42);
}
.base-reveal-custom-img{
  position:absolute;inset:0;display:block;
  width:100%;height:100%;
  object-fit:contain;object-position:center bottom;
  opacity:1;
  clip-path:inset(0 0 1px);
}
.base-reveal-portrait .season-roster-face.is-loaded .season-roster-face-placeholder{
  opacity:0;
}
.base-photo-editor-overlay{
  position:fixed;inset:0;z-index:10100;
  display:grid;place-items:center;
  padding:17px;
  background:rgba(1,7,12,.88);
  backdrop-filter:blur(5px);
}
.base-photo-editor{
  box-sizing:border-box;
  width:min(790px,100%);
  max-height:calc(100dvh - 34px);
  overflow:auto;
  background:linear-gradient(145deg,#243441,#17232d);
  border:1px solid rgba(140,173,196,.33);
  border-radius:19px;
  padding:21px clamp(18px,3.3vw,32px) 24px;
  box-shadow:0 24px 70px rgba(0,0,0,.42);
  color:#eef6fb;
}
.base-photo-editor-heading{
  position:relative;
  display:flex;justify-content:center;align-items:center;
  min-height:42px;
}
.base-photo-editor-heading h2{
  width:min(370px,78%);margin:0;
  padding:9px 16px;
  background:#194b72;
  border:1px solid rgba(108,161,203,.23);
  border-radius:12px;
  font-size:18px;font-weight:800;
  text-align:center;
}
.base-photo-editor-heading .mco-modal-close{
  position:absolute;right:0;top:0;
  width:37px;height:37px;
  display:grid;place-items:center;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(153,186,211,.38);
  background:#213341;
  /* O X já é desenhado pelos pseudo-elementos do botão padrão do MCO. */
  color:transparent;font-size:0;line-height:0;
}
.base-photo-editor-name{
  margin:10px 0 20px;
  text-align:center;
  color:#bed0de;
  font-size:13px;
}
.base-photo-editor-grid{
  display:grid;
  grid-template-columns:minmax(0,265px) minmax(0,1fr);
  justify-content:center;
  gap:27px;align-items:center;
}
.base-photo-editor-preview{
  display:flex;flex-direction:column;align-items:center;gap:7px;
}
.base-photo-canvas-wrap{
  width:240px;height:270px;max-width:100%;
  position:relative;
  background:repeating-conic-gradient(#2d3d48 0% 25%,#1f303b 0% 50%) 50%/22px 22px;
  border:1px solid rgba(166,192,213,.42);
  border-radius:9px;
  overflow:hidden;
}
.base-photo-canvas-wrap canvas{
  display:block;width:100%;height:100%;
  cursor:grab;touch-action:none;
}
.base-photo-canvas-wrap canvas:active{cursor:grabbing;}
.base-photo-editor-guide{
  position:absolute;inset:0;
  display:block;width:100%;height:100%;
  pointer-events:none;
  color:rgba(233,243,248,.65);
}
.base-photo-caption{
  font-size:11px;color:#b1c2cf;
  text-align:center;
}
.base-photo-editor-options{
  min-width:0;display:flex;flex-direction:column;gap:13px;
  font-size:13px;
}
.base-photo-editor-options p{
  margin:0;color:#d2e1eb;line-height:1.65;
}
.base-photo-file-button{
  position:relative;
  width:fit-content;
  padding:11px 17px;
  border-radius:9px;
  background:#195f8c;
  border:1px solid #3e83aa;
  color:#f4fafe;
  font-weight:770;
  cursor:pointer;
}
.base-photo-file-button input{
  position:absolute;width:1px;height:1px;opacity:0;
  overflow:hidden;clip-path:inset(50%);
}
.base-photo-file-button:focus-within{outline:2px solid #8fc9eb;outline-offset:2px;}
.base-photo-zoom{
  display:flex;align-items:center;gap:12px;
  color:#e7eff5;font-weight:710;
}
.base-photo-zoom input{
  width:min(250px,100%);accent-color:#4d9ed0;min-height:23px;
}
.base-photo-editor-options small{color:#9fb3c1;line-height:1.4;}
.base-photo-error{
  margin:16px auto 0;
  padding:11px;
  text-align:center;
  border:1px solid rgba(219,110,121,.53);
  border-radius:10px;
  color:#ffd9de;
  background:rgba(105,37,47,.45);
}
.base-photo-error[hidden]{display:none;}
.base-photo-editor-actions{
  display:flex;justify-content:center;gap:13px;
  margin-top:24px;
}
.base-photo-editor-actions .base-btn{
  min-width:145px;
}
@media(max-width:650px){
 .base-photo-editor-grid{
   grid-template-columns:minmax(0,1fr);gap:17px;
 }
 .base-photo-editor-name{margin-bottom:13px;}
 .base-photo-editor-options{align-items:center;text-align:center;}
 .base-photo-zoom{justify-content:center;width:100%;}
 .base-photo-editor-actions .base-btn{min-width:0;flex:1;}
}


/* Revelação: botão de foto na lateral esquerda, cartão central preservado. */
.base-photo-reveal-row{
  display:grid;
  grid-template-columns:minmax(0,145px) minmax(0,460px) minmax(0,145px);
  gap:12px;
  align-items:center;
  justify-content:center;
  width:min(845px,100%);
  margin:0 auto 18px;
}
.base-photo-reveal-row .base-photo-action-row{
  margin:0;
  display:flex;
  justify-content:center;
  align-items:center;
}
.base-photo-reveal-row .base-player-banner{
  width:100%;
  box-sizing:border-box;
  min-width:0;
  margin:0;
}
.base-photo-reveal-row .base-photo-add{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:1px;
  width:130px;
  min-height:44px;
  max-width:100%;
  padding:6px 8px;
  text-align:center;
  white-space:normal;
  line-height:1.3;
}
.base-reveal-portrait .season-roster-face.has-photo img{
  /* O CSS global mantém a imagem oculta até o evento load. */
  opacity:0;
}
.base-reveal-portrait .season-roster-face.is-loaded img{
  opacity:1;
}
.base-photo-editor-guide{
  color:rgba(225,237,246,.49);
}
.base-photo-caption{
  font-size:11px;
}
.base-photo-editor-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(560px,100%);
  margin:24px auto 0;
  gap:10px;
}
.base-photo-editor-actions .base-btn{
  min-width:0;
  width:100%;
  min-height:42px;
  padding:9px 12px;
  white-space:normal;
  font-size:12px;
}
.base-photo-editor-actions .base-preview{
  background:linear-gradient(180deg,#27485e,#1b3648);
  border:1px solid rgba(113,173,205,.55);
  color:#e5f5fc;
}
.base-photo-editor-actions .base-preview:enabled:hover{
  background:linear-gradient(180deg,#32647e,#20506d);
}
.base-photo-editor-actions .base-preview:disabled{
  opacity:.45;
}
/* Prévia comparativa estática: quatro retratos FC 26 fixos por ID,
   apenas a terceira linha usa o recorte atual, OVR e posição do revelado. */
.base-photo-compare-overlay{
  position:fixed;
  z-index:2;
  inset:0;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(2,8,13,.86);
  backdrop-filter:blur(3px);
}
.base-photo-compare-dialog{
  box-sizing:border-box;
  width:min(575px,100%);
  max-height:min(750px,calc(100dvh - 40px));
  overflow:auto;
  background:linear-gradient(150deg,#293946,#1b2934);
  border:1px solid rgba(151,186,209,.37);
  border-radius:17px;
  padding:22px clamp(15px,3vw,27px);
  box-shadow:0 18px 54px rgba(0,0,0,.4);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
}
.base-photo-compare-dialog h2{
  font-size:19px;
  margin:0;
  text-align:center;
  color:#f6faff;
}
.base-photo-compare-dialog p{
  font-size:12px;
  line-height:1.5;
  text-align:center;
  color:#b8cbd9;
  margin:0 0 2px;
  max-width:460px;
}
.base-photo-compare-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  width:100%;
  box-sizing:border-box;
  padding:8px;
  background:#172631;
  border:1px solid rgba(148,175,196,.2);
  border-radius:12px;
}
.base-photo-compare-row{
  display:grid;
  grid-template-columns:42px 47px 53px 30px minmax(0,1fr);
  gap:9px;
  align-items:center;
  min-height:63px;
  padding:5px 11px;
  border-radius:7px;
  background:#273744;
}
.base-photo-compare-row.is-youth{
  background:#274b60;
  outline:1px solid rgba(95,177,220,.57);
  outline-offset:-1px;
}
.base-photo-compare-ovr{
  width:39px;
  height:38px;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-weight:840;
  font-size:19px;
  color:#112231;
  background:linear-gradient(155deg,#f5c29d,#bc845d);
}
.base-photo-compare-ovr.silver{
  background:linear-gradient(155deg,#f4f6f9,#aebccc);
}
.base-photo-compare-ovr.gold{
  background:linear-gradient(155deg,#ffe59e,#d8aa45);
}
.base-photo-compare-position{
  text-align:center;
  font-size:12px;
  font-weight:800;
  color:#e7f0f8;
}
.base-photo-compare-row .season-roster-face{
  width:49px;
  height:49px;
}
.base-photo-compare-row .season-roster-face::after{
  width:46px;
}
.base-photo-compare-flag{
  display:grid;
  place-items:center;
}
.base-photo-compare-flag .mco-circle-flag{
  width:24px;
  height:24px;
}
.base-photo-compare-identity{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  justify-content:center;
}
.base-photo-compare-identity strong{
  font-size:13px;
  font-weight:780;
  color:#f4f8fc;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.base-photo-compare-identity small{
  font-size:10px;
  color:#a3becf;
}
.base-photo-compare-dialog>.base-btn{
  margin-top:5px;
  min-height:37px;
  padding:9px 20px;
}
@media(max-width:750px){
  .base-photo-reveal-row{
    grid-template-columns:minmax(0,96px) minmax(0,460px);
    max-width:100%;
    gap:8px;
  }
  .base-photo-side-spacer{display:none;}
  .base-photo-reveal-row .base-photo-add{
    width:94px;
    font-size:11px;
  }
}
@media(max-width:520px){
  .base-photo-editor-actions{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  .base-photo-editor-actions .base-btn{
    font-size:11px;
    padding:8px 5px;
  }
  .base-photo-reveal-row{
    grid-template-columns:minmax(0,82px) minmax(0,1fr);
    gap:5px;
  }
  .base-photo-reveal-row .base-photo-add{
    width:80px;
    font-size:10px;
    padding:4px;
  }
  .base-photo-reveal-row .base-player-banner{
    gap:8px;
    padding:6px;
  }
  .base-photo-compare-overlay{
    padding:8px;
  }
  .base-photo-compare-row{
    grid-template-columns:31px 31px 41px 22px minmax(0,1fr);
    gap:4px;
    padding:5px;
  }
  .base-photo-compare-ovr{
    width:30px;
    height:33px;
    font-size:14px;
  }
  .base-photo-compare-row .season-roster-face{
    width:39px;
    height:43px;
  }
  .base-photo-compare-identity strong{
    font-size:11px;
  }
}


/* Categoria de Base: pés preferidos no primeiro item da ficha revelada.
   Reutiliza as duas pegadas da ficha universal do jogador. */
.base-reveal .base-result-card:nth-child(2) .base-data-row:first-child .mco-details-footprints{
  width:100%;
  justify-content:center;
  height:30px;
}
.base-reveal .base-result-card:nth-child(2) .base-data-row:first-child .mco-details-footprint{
  flex-shrink:0;
}

/* Categoria de Base — alinhar o primeiro investimento ao input de
   Nome completo, e não ao topo da legenda do primeiro campo. */
@media(min-width:851px){
  /* Alinha o topo de Básico ao topo do input de Nome completo,
     compensando a legenda acima do campo. */
  .base-form-section:first-child .base-investments{
    margin-top:34px;
  }
}

/* Editor de fotografia — aviso discreto sobre remoção de fundo. */
.base-photo-remove-bg-tip{
  padding:11px 13px;
  margin:0;
  border:1px solid rgba(104,161,194,.35);
  background:rgba(20,64,87,.32);
  border-radius:9px;
  font-size:12px;
  font-weight:480;
  line-height:1.55;
  color:#c6d9e6;
}
.base-photo-remove-bg-tip a{
  color:#94cef6;
  font-weight:780;
  text-decoration:underline;
  text-underline-offset:2px;
}
.base-photo-remove-bg-tip a:hover{
  color:#d9f1ff;
}
.base-photo-remove-bg-tip a:focus-visible{
  outline:2px solid #9edaff;
  outline-offset:3px;
  border-radius:2px;
}

/* A comparação mostra somente o nome, sem rótulo de clube. */
.base-photo-compare-identity{
  justify-content:center;
}


/* Categoria de Base: dois controles compactos no mesmo espaço lateral.
   Sem foto, permanece o botão único Adicionar foto do jogador. */
.base-photo-reveal-row .base-photo-action-row.has-photo-actions{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
}
.base-photo-reveal-row .base-photo-action-row.has-photo-actions .base-photo-add,
.base-photo-reveal-row .base-photo-action-row.has-photo-actions .base-photo-remove{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(130px,100%);
  height:25px;
  min-height:25px;
  max-height:25px;
  padding:3px 6px;
  margin:0;
  border-radius:7px;
  line-height:1.1;
  font-size:11px;
  font-weight:730;
  text-align:center;
  white-space:nowrap;
}
.base-photo-reveal-row .base-photo-action-row.has-photo-actions .base-photo-remove{
  color:#f6d9db;
  border:1px solid rgba(200,98,108,.6);
  background:rgba(110,43,53,.60);
  cursor:pointer;
}
.base-photo-reveal-row .base-photo-action-row.has-photo-actions .base-photo-remove:hover:enabled{
  color:#fff;
  border-color:rgba(229,125,133,.8);
  background:rgba(147,57,67,.82);
}
.base-photo-reveal-row .base-photo-action-row.has-photo-actions .base-photo-remove:focus-visible{
  outline:2px solid #ef9ca6;
  outline-offset:2px;
}


/* Categoria de Base: pés 30% maiores APENAS no resumo do jogador revelado.
   A ficha universal do jogador mantém suas dimensões originais. */
.base-reveal .base-result-card:nth-child(2) .base-data-row:first-child .mco-details-footprints{
  height:32px;
}
.base-reveal .base-result-card:nth-child(2) .base-data-row:first-child .mco-details-footprint{
  width:16.575px;
  height:28.275px;
  flex:0 0 16.575px;
}

/* Categoria de Base: compactação exclusiva do jogador revelado para telas desktop comuns (sem esconder a rolagem de acessibilidade). */
@media(min-width:851px){
  .base-dialog.base-reveal{
    padding:13px 20px 14px;
  }
  .base-reveal .base-dialog-header{
    margin-bottom:7px;
    min-height:32px;
  }
  .base-reveal .base-dialog-header h2{
    font-size:18px;
    line-height:1.2;
    padding:7px 16px;
  }
  .base-reveal .base-revealed-label{
    font-size:11px;
    margin-bottom:3px;
  }
  .base-reveal .base-photo-reveal-row{
    margin-bottom:9px;
    gap:10px;
  }
  .base-reveal .base-player-banner{
    min-height:61px;
    padding:5px 12px;
    margin-bottom:0;
  }
  .base-reveal .base-reveal-portrait{
    width:54px;
    height:53px;
  }
  .base-reveal .base-reveal-portrait .season-roster-face{
    width:49px;
    height:51px;
  }
  .base-reveal .base-result-grid{
    gap:14px;
  }
  .base-reveal .base-result-card{
    padding:10px 13px;
  }
  .base-reveal .base-result-card h3{
    font-size:14px;
    margin-bottom:7px;
  }
  /* A última regra antiga fixava todas as linhas em 60px; 46px permite
     sete características, incluindo os dois pés, sem estender a janela. */
  .base-reveal .base-result-card .base-data-row,
  .base-reveal .base-result-card:first-child .base-data-row,
  .base-reveal .base-result-card:nth-child(2) .base-data-row{
    height:46px;
    min-height:46px;
  }
  .base-reveal .base-data-row dt{
    font-size:11.5px;
  }
  .base-reveal .base-data-row dd{
    font-size:12px;
  }
  .base-reveal .base-result-card:nth-child(2) .base-attribute-picker :is(input,select){
    height:27px;
    min-height:27px;
    width:108px;
  }
  .base-reveal .base-result-card:nth-child(2) .base-attribute-picker>span{
    top:calc(50% + 14px);
    font-size:9px;
  }
  .base-reveal .base-reveal-actions{
    margin:10px auto 0;
    gap:12px;
  }
  .base-reveal .base-reveal-actions .base-btn{
    min-height:43px;
    padding:8px 12px;
    font-size:12px;
    line-height:1.2;
  }
}


/* Revelação: respirar entre os campos e as legendas de limite sem voltar a exigir rolagem padrão. */
@media (min-width:851px) and (min-height:720px){
  /* A altura cresce sem ultrapassar a área visível no desktop. */
  .base-dialog.base-reveal{
    padding:18px 22px 20px;
    max-height:calc(100dvh - 22px);
  }
  .base-dialog.base-reveal .base-result-card .base-data-row,
  .base-dialog.base-reveal .base-result-card:first-child .base-data-row,
  .base-dialog.base-reveal .base-result-card:nth-child(2) .base-data-row{
    height:60px;
    min-height:60px;
  }
  .base-dialog.base-reveal .base-result-card:nth-child(2) .base-attribute-picker :is(input,select){
    height:27px;
    min-height:27px;
  }
  .base-dialog.base-reveal .base-result-card:nth-child(2) .base-attribute-picker>span{
    top:calc(50% + 20px);
    font-size:10px;
    line-height:1;
  }
  .base-dialog.base-reveal .base-reveal-actions{
    margin-top:14px;
  }
}

/* Tela inicial da Categoria de Base: botão mais abaixo e ligeiramente maior. */
.season-base-page .season-base-landing{padding:48px 10px 10px}
.season-base-page .season-base-landing>[data-base-open]{
  font-size:16px;min-height:54px;padding:14px 30px;
}
