:root {
  --bg: #0E1712; --rail: #111D16; --card: #16231B; --card2: #1E2E24; --line: #2A3D31; --line2: #22342A;
  --text: #EEF3EC; --muted: #9DB0A3; --dim: #6F8577; --lime: #C8F04A; --gold: #F2B84B; --red: #FF7A6B; --blue: #9EC1FF;
  --sel: #1F3326;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 var(--body); }
a { color: var(--lime); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.1; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
.muted { color: var(--muted); }
.num { font-family: var(--head); font-weight: 700; }

#app { display: flex; min-height: 100%; }
#rail {
  width: 84px; flex: none; background: var(--rail); border-right: 1px solid var(--line2);
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 2px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  /* menu mais alto que a tela: rola (antes os itens de cima e de baixo ficavam cortados) */
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; padding: 6px 0;
}
#rail > * { flex: none; }
#rail[hidden] { display: none; }
#rail a, #rail button {
  width: 68px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; border-radius: 12px; border: 0; background: none; cursor: pointer;
}
#rail a[hidden] { display: none; }
#rail a.on { color: var(--lime); background: #1B2B21; font-weight: 600; }
#rail a:hover, #rail button:hover { color: var(--text); }
#rail svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#btnLogout { margin-top: 10px; }
#view { flex: 1; min-width: 0; padding: 16px 20px 24px; outline: none; max-width: 1180px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.grid { display: grid; gap: 12px; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.head .grow { flex: 1; }
.badge { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font: 700 17px var(--head); flex: none; }
.badge.lg { width: 58px; height: 58px; font-size: 24px; border-radius: 14px; }
.badge.sm { width: 12px; height: 12px; border-radius: 3px; font-size: 0; }
.tag { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; background: var(--line); color: var(--muted); vertical-align: 1px; }
.tag.novo { background: #2B3A5C; color: var(--blue); }
.tag.voce { background: var(--lime); color: var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #233528; color: var(--lime); font-size: 12px; }
.chip.live { background: #3A1E1B; color: var(--red); }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.btn { min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--lime); color: var(--bg); border: 0; }
.btn.primary:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #3A4D41; }
.stars .half { background: linear-gradient(90deg, var(--gold) 50%, #3A4D41 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tabela */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: center; padding: 6px 4px; }
table.t th.l, table.t td.l { text-align: left; }
table.t td { padding: 6px 4px; border-top: 1px solid #1E2E24; text-align: center; white-space: nowrap; }
table.t tr.mine td { background: var(--sel); font-weight: 600; }
table.t td.pts { font: 700 16px var(--head); }
table.t td.zone { width: 6px; padding: 0; }
table.t td.zone i { display: block; width: 3px; height: 20px; border-radius: 0 3px 3px 0; }
.z-up i { background: var(--lime); } .z-up\? i { background: repeating-linear-gradient(var(--lime) 0 4px, transparent 4px 7px); }
.z-down i { background: var(--red); } .z-down\? i { background: repeating-linear-gradient(var(--red) 0 4px, transparent 4px 7px); }
.club-cell { display: flex; align-items: center; gap: 8px; }
.club-cell a { color: inherit; text-decoration: none; }
.club-cell a:hover { text-decoration: underline; }

/* jogos */
.games { display: flex; flex-direction: column; gap: 4px; }
.game { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 13px; }
.game.mine { background: var(--sel); font-weight: 600; }
.game .h { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game .sc { text-align: center; font: 700 16px var(--head); }
.game .sc small { display: block; font: 500 10px var(--body); color: var(--red); }
.game a.sc { color: var(--text); text-decoration: none; border-radius: 6px; }
.game a.sc:hover { background: var(--card2); }

/* auth */
.auth { min-height: calc(100vh - 40px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; max-width: 980px; margin: 0 auto; }
.auth .hero h1 { font-size: 46px; }
.auth .hero p { color: var(--muted); font-size: 15px; max-width: 420px; }
.auth .rules { margin-top: 18px; display: grid; gap: 8px; font-size: 13px; color: #C9D6CD; }
.auth .rules div { display: flex; gap: 10px; align-items: flex-start; }
.auth .rules b { color: var(--lime); font-family: var(--head); font-size: 16px; min-width: 22px; }
.tabs { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--card2); margin-bottom: 14px; }
.tabs button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-weight: 500; }
.tabs button.on { background: var(--text); color: var(--bg); font-weight: 600; }
form .f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 11px; }
form label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
form input, .f input, .card input:not([type=checkbox]):not([type=range]):not([type=color]) { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; box-sizing: border-box; }
form input:focus, .f input:focus, .card input:focus { outline: 2px solid var(--lime); outline-offset: -1px; }
input:disabled { opacity: .6; cursor: not-allowed; }
.f input { width: 100%; }
form .err { color: var(--red); font-size: 12px; min-height: 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; }
.swatches button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }

/* início */
.home { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.match-card { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; min-height: 250px; }
.vs { display: flex; align-items: center; justify-content: space-around; }
.vs .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 40%; }
.vs .x { font: 700 36px var(--head); color: var(--muted); }
.form { display: flex; gap: 4px; }
.form span { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.form .V { background: #2F6B3E; } .form .E { background: #4A5A50; } .form .D { background: #8A3A33; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .v { font: 700 26px var(--head); }
.bar { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); }
.note { border-left: 3px solid var(--blue); padding: 8px 12px; background: #172430; border-radius: 0 10px 10px 0; font-size: 13px; color: #C9D6CD; }

/* mundo */
.pyr { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pyr .lvl { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pyr .lg { width: 210px; text-decoration: none; color: var(--text); }
.pyr .lg:hover { border-color: var(--lime); }
.pyr .lg.mine { border-color: var(--lime); }

/* dev */
.dev .btns { display: flex; flex-wrap: wrap; gap: 8px; }

#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 9; max-width: 90vw; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 10, 7, .7); display: flex; align-items: center; justify-content: center; z-index: 8; padding: 16px; }
.modal { max-width: 460px; }

@media (max-width: 1000px) {
  .league-grid { grid-template-columns: 1fr !important; }
  table.t .hide-md { display: none; }
}
@media (max-width: 760px) {
  #app { flex-direction: column-reverse; }
  #rail { width: 100%; height: auto; flex-direction: row; position: sticky; bottom: 0; top: auto; border-right: 0; border-top: 1px solid var(--line2); overflow-x: auto; justify-content: flex-start; }
  #rail a, #rail button { min-width: 62px; }
  #btnLogout { margin-top: 0; }
  #view { padding: 14px 16px 20px; }
  .auth, .home { grid-template-columns: 1fr; }
  .auth .hero h1 { font-size: 34px; }
  table.t .hide-sm { display: none; }
}

/* ---------- escalação ---------- */
.lineup { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.pitch {
  position: relative; aspect-ratio: 105 / 68; border-radius: 16px; overflow: hidden; border: 2px solid #3B9B4A;
  background: repeating-linear-gradient(90deg, #2A8A3A 0 9.09%, #2F9440 9.09% 18.18%); user-select: none; touch-action: none;
}
.pl { position: absolute; border: 2px solid rgba(255,255,255,.75); pointer-events: none; }
.pl-line { left: 50%; top: 0; bottom: 0; border-width: 0 0 0 2px; }
.pl-circle { left: 50%; top: 50%; width: 17%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pl-box { top: 20%; bottom: 20%; width: 15.7%; }
.pl-box.l { left: 0; border-left: 0; } .pl-box.r { right: 0; border-right: 0; }
.slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: 104px; }
.slot .stars { font-size: 10px; letter-spacing: 0; text-shadow: 0 1px 2px #000; }
.slot .nm { display: flex; align-items: center; gap: 4px; background: rgba(14,23,18,.88); border-radius: 6px; padding: 1px 4px 1px 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 104px; }
.slot .nm span:first-child { overflow: hidden; text-overflow: ellipsis; }
.role { font-size: 9.5px; font-weight: 700; padding: 1px 4px; border-radius: 4px; }
.role.ok { background: #2FBF71; color: #06210F; } .role.meh { background: #F2B84B; color: #2A1C00; } .role.bad { background: #FF7A6B; color: #2A0500; }
/* jogador com o uniforme: o mesmo desenho da partida (cor 1, modelo com a cor 2, número na cor 3) */
.shirt {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--c1); color: var(--c3, #fff); border: 1.5px solid rgba(0,0,0,.6); font: 700 15px var(--head); box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.shirt.pat { text-shadow: 0 0 2px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.55); }
.slot .drag { position: relative; }
.slot .ovr { position: absolute; top: -8px; right: -20px; background: #0E1712; color: var(--lime); border: 1px solid var(--lime);
  border-radius: 5px; font: 700 11px/15px var(--head); padding: 0 4px; pointer-events: none; }
.drag { cursor: grab; touch-action: none; }
.drag.dragging { opacity: .35; }
.slot.sel .shirt, .brow.sel { outline: 3px solid var(--lime); outline-offset: 2px; }
.slot.over .shirt, .brow.over { outline: 3px dashed var(--lime); outline-offset: 2px; }
.ghost { position: fixed; z-index: 20; pointer-events: none; transform: translate(-50%, -50%) scale(1.08); opacity: .95; }
.ghost.brow { width: 300px; background: var(--card2); border-radius: 10px; }
.side .tabs { margin-bottom: 10px; }
.bench { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.brow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; }
.brow:hover { border-color: var(--line); }
.brow .shirt { width: 30px; height: 30px; font-size: 13px; }
.brow .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.brow .num { font-size: 16px; }
.brow .stars { font-size: 11px; }

/* ---------- editar clube ---------- */
.kit { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kit svg { width: 84px; height: 80px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.vsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vsk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 8px; border-radius: 9px; background: var(--card2); }
.vsk .dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid; flex: none; }

/* ---------- copa ---------- */
.bracket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 470px; }
.bcol { display: flex; flex-direction: column; min-width: 0; }
.rname { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 6px; }
.bties { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; }
.tie { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; font-size: 12px; }
.tie.mine { border-color: var(--lime); background: var(--sel); }
.tie.empty { border-style: dashed; background: transparent; }
.tie .tr { display: flex; justify-content: space-between; gap: 6px; }
.tie .tr .nm { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tie .tr .nm .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tie .tr .nm .tag { font-size: 8px; padding: 0 3px; flex: none; }
.tie .tr.win { font-weight: 700; } .tie .tr.lose { color: var(--dim); }
.tie .ag { font-family: var(--head); font-weight: 700; font-size: 14px; white-space: nowrap; flex: none; }
.tie .ag small { font: 500 10px var(--body); color: var(--muted); }
.tie .legs { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie .legs a { color: var(--lime); }
.final { justify-content: center; }
.fcard { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 8px; }
.fcard .tie { width: 100%; text-align: left; }
.champ { font: 700 18px var(--head); color: var(--gold); }

@media (max-width: 1000px) {
  .lineup { grid-template-columns: 1fr; }
  #editGrid { grid-template-columns: 1fr !important; }
  .bracket { grid-template-columns: repeat(7, 150px); overflow-x: auto; padding-bottom: 8px; }
  .slot { width: 84px; } .slot .shirt { width: 30px; height: 30px; font-size: 12px; } .slot .nm { font-size: 10px; max-width: 84px; }
}

/* notebook (tela até ~940 px de altura): menu um pouco mais justo para caber sem rolar */
@media (max-height: 940px) and (min-width: 761px) {
  #rail { gap: 1px; }
  #rail a, #rail button { min-height: 44px; gap: 2px; }
  #rail svg { width: 19px; height: 19px; }
}

/* celular deitado: menu mais compacto e campo cabendo na altura */
@media (max-height: 520px) and (min-width: 761px) {
  #rail { overflow-y: auto; justify-content: flex-start; padding: 6px 0; }
  #rail a, #rail button { min-height: 42px; font-size: 10px; gap: 1px; }
  #rail svg { width: 18px; height: 18px; }
  #btnLogout { margin-top: 4px; }
  .lineup { grid-template-columns: auto minmax(240px, 1fr); }
  .pitch { height: calc(100vh - 86px); width: auto; }
  .bench { max-height: calc(100vh - 170px); }
  .slot { width: 80px; } .slot .shirt { width: 28px; height: 28px; font-size: 12px; }
  .slot .nm { font-size: 9.5px; max-width: 80px; } .slot .stars { font-size: 8px; }
  #view { padding: 10px 14px 14px; }
  .head { margin-bottom: 8px; }
  h1 { font-size: 22px; }
}

/* ---------- comuns novos ---------- */
.money { font: 700 20px var(--head); color: var(--gold); }
.coins { font: 700 20px var(--head); color: #FFD54A; }
.lbl { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ebar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line2); overflow: hidden; vertical-align: middle; }
.ebar.wide { width: 80px; }
.ebar i { display: block; height: 100%; }
.slot .ebar { width: 36px; height: 4px; margin: 1px 0; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.sel { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; width: 100%; }
.growth { color: var(--lime); font-size: 12px; letter-spacing: -1px; }

/* escudos (loja) */
.badge.crest-escudo { border-radius: 11px 11px 45% 45% / 11px 11px 38% 38%; }
.badge.crest-circulo { border-radius: 50%; }
.badge.crest-diamante { border-radius: 4px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.badge.crest-estrela { border-radius: 11px 11px 45% 45% / 11px 11px 38% 38%; position: relative; }
.badge.crest-estrela::after { content: '★'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #FFD54A; text-shadow: 0 1px 2px #000; }
.badge.sm.crest-estrela::after { display: none; }

/* treino */
.pick { display: grid; gap: 6px; }
.pick.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { text-align: left; border: 1px solid var(--line); background: var(--card2); border-radius: 11px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.opt span { font-size: 11.5px; color: var(--muted); }
.opt.on { border-color: var(--lime); background: var(--sel); }
.opt.on b { color: var(--lime); }

/* mercado / leilão */
.filters { flex-wrap: wrap; margin-bottom: 12px; gap: 10px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.filters select { min-height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); padding: 0 8px; min-width: 130px; text-transform: none; letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pcard.lead { border-color: var(--lime); }
.pcard .ovr { width: 44px; height: 44px; border-radius: 11px; background: var(--line2); display: flex; align-items: center; justify-content: center; font: 700 22px var(--head); flex: none; }
.pcard .price { font: 700 22px var(--head); color: var(--gold); }
.pcard .stars { font-size: 11px; }
.bidin { width: 90px; min-height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); padding: 0 8px; }

/* estrutura */
.fac { display: flex; flex-direction: column; gap: 10px; }
.ficon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--bg); flex: none; }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ficon.stadium { background: #F2C230; } .ficon.ct { background: #7CC4FF; } .ficon.rec { background: #FF9E7A; }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.pips i { height: 6px; border-radius: 2px; background: var(--line2); }
.pips i.on { background: var(--lime); } .pips i.bld { background: var(--gold); }

/* finanças */
.frow { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.frow > span:first-child { width: 150px; flex: none; color: #C9D6CD; }
.frow.small > span:first-child { width: auto; font-size: 12px; }
.frow .fbar { flex: 1; height: 7px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.frow .fbar i { display: block; height: 100%; }
.frow b { min-width: 90px; text-align: right; }

/* loja */
.pack { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card2); }
.pack b { font: 700 18px var(--head); color: #FFD54A; }
.cards.shop { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; }
.item.eq { border-color: var(--lime); }
.kprev { width: 54px; height: 54px; border-radius: 12px; border: 2px solid rgba(255,255,255,.15); }
.pprev { width: 72px; height: 48px; border-radius: 8px; background: #2C8E3C; }
.p-padrao { background: repeating-linear-gradient(90deg, #2C8E3C 0 12px, #33994A 12px 24px); }
.p-xadrez { background: repeating-conic-gradient(#2C8E3C 0 25%, #36A04C 0 50%) 0 0 / 16px 16px; }
.p-circulos { background: repeating-radial-gradient(circle at 50% 50%, #2C8E3C 0 6px, #36A04C 6px 12px); }
.p-diagonal { background: repeating-linear-gradient(45deg, #2C8E3C 0 8px, #36A04C 8px 16px); }
.sprev { width: 72px; height: 40px; border-radius: 6px; background: repeating-linear-gradient(0deg, #6F7B74 0 5px, #59645E 5px 8px); }
.s-clube { background: repeating-linear-gradient(0deg, var(--c1) 0 5px, var(--c2) 5px 8px); }
.s-mosaico { background: linear-gradient(90deg, var(--c1) 33%, var(--c2) 33% 66%, var(--c1) 66%); }
.bprev { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ccc); border: 2px solid #222; }
.b-dourada { background: radial-gradient(circle at 35% 35%, #FFF3B0, #D4A017); }
.b-retro { background: radial-gradient(circle at 35% 35%, #F5E6C8, #B5884D); }

@media (max-width: 1000px) {
  .cards.three { grid-template-columns: 1fr; }
  #trGrid, #finGrid { grid-template-columns: 1fr !important; }
}

#btnBell { position: relative; margin-top: 10px; }
.bell-count { position: absolute; top: 4px; right: 12px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); }
.bell-count[hidden] { display: none; }
#btnBell + #btnLogout { margin-top: 0; }
.frow.unread { background: var(--sel); border-radius: 8px; padding-left: 6px; }
#btnLang { margin-top: 10px; }
#btnLang .lc { font-weight: 700; }
#btnBell { margin-top: 0; }
[hidden] { display: none !important; }

/* ---- Mister Manager: prêmios, itens, sócio, manager, eventos ---- */
.brand { font-family: var(--head); font-weight: 700; letter-spacing: .12em; color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.tag.gold { background: #2A2416; color: var(--gold); border: 1px solid #6B5524; }
.tag.inj { background: #3A1E1B; color: var(--red); }
.chip.item { background: #1E2E24; color: var(--text); border: 1px solid var(--line); }
.chip.item.kit { color: #FF9E92; }
.chip.item.drink { color: #7BE3A3; }
.chip svg.ico, .btn svg.ico { display: inline-block; flex: none; }
td.acts { white-space: nowrap; }
td.acts .btn { margin-left: 4px; }
.card.banner { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); margin-bottom: 12px; border-color: #6B5524; background: #2A2416; }
.card.banner .muted { flex: 1; }
.homeq { margin-bottom: 12px; }
.card.hq { display: flex; flex-direction: column; gap: 4px; text-align: left; text-decoration: none; color: var(--text); cursor: pointer; }
.card.hq b { font-size: 15px; }
.card.hq.hot { border-color: var(--lime); background: var(--sel); }
.lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.dday { border-radius: 12px; background: var(--card2); border: 1px solid var(--line); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 11px; }
.dday b { font-size: 12px; }
.dday span { color: var(--muted); }
.dday.got { opacity: .55; }
.dday.today { border: 2px solid var(--lime); background: var(--sel); }
.dday.today span { color: var(--lime); }
.dday:last-child:not(.got) { border-color: var(--gold); background: #2A2416; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--card2); flex-wrap: wrap; }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); }
.zone { border-radius: 12px; padding: 6px; margin-bottom: 8px; border: 1px dashed transparent; }
.zone.over { border-color: var(--lime); background: var(--sel); }
.brow.inj { opacity: .6; }
.item.locked { opacity: .5; }
button.card.item { cursor: pointer; color: var(--text); font: inherit; }
.mprof { display: flex; flex-direction: column; gap: 8px; }
.avatar { width: 52px; height: 52px; border-radius: 14px; background: #233528; border: 1.5px solid var(--lime); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font: 700 22px var(--head); margin-right: 10px; }
.mstats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mstats div { border-radius: 10px; background: var(--card2); padding: 7px 9px; display: flex; flex-direction: column; }
.mstats b { font: 700 20px var(--head); }
.mstats span { font-size: 10px; color: var(--muted); }
.cards.ach { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.achv { display: flex; flex-direction: column; gap: 6px; }
.achv.ready { border-color: var(--lime); background: var(--sel); }
.evbig { background: #1B3A24; border-color: #3F6A45; }
.ebox { width: 46px; height: 46px; border-radius: 12px; border: 2px dashed #6E8F64; display: inline-flex; align-items: center; justify-content: center; font: 700 20px var(--head); }
.ebox.on { background: var(--lime); border: 0; color: var(--bg); }
.card.socio { background: #2A2416; border-color: #6B5524; color: #E4D6B8; }
.card.socio h1 { color: var(--text); }
.sstar { width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
a.rlink { text-decoration: none; color: var(--text); }
a.rlink .form span { width: 30px; height: 30px; }
@media (max-width: 900px) {
  #mgrGrid, #evGrid, #socioGrid { grid-template-columns: minmax(0, 1fr) !important; }
  .daily { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.row > .grow, .frow > .grow { flex: 1; min-width: 0; }
.auth .logo { width: 96px; height: 96px; border-radius: 22px; display: block; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }


/* ---------------------------------------------------------------- v0.3 */
.badge-svg { display: inline-flex; flex: none; line-height: 0; }
.badge-svg svg { filter: drop-shadow(0 1px 2px #0006); }
.club-cell svg.crest { flex: none; }
.ico { vertical-align: -2px; }

/* entrada */
.enter { min-height: calc(100vh - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; width: 100%; }
.enter .logo { border-radius: 38px; box-shadow: 0 16px 40px #000a; }
.enter .tag-line { color: var(--muted); font-size: 18px; margin: 0; }
.enter .lang { position: absolute; top: 0; right: 0; }
.enter .foot { position: absolute; bottom: 0; font-size: 12px; color: var(--muted); }
.enter .foot a { color: var(--muted); }
.enter .apk { font-size: 13px; text-decoration: none; }
.gbtn { width: 320px; max-width: 100%; height: 50px; border-radius: 25px; border: 1px solid #DADCE0; background: #fff; color: #1F1F1F;
  font: 500 15px 'Work Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; box-shadow: 0 2px 10px #0004; }
.gbtn:hover { background: #F6F8F7; }
.enter.create .who { position: absolute; top: 0; left: 0; font-size: 13px; }
.cform { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.cform h1 { font-size: 32px; line-height: 1.05; margin: 0; }
.cform input { flex: 1; height: 50px; font-size: 17px; }
.cform .sig { width: 70px; height: 50px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: 700 18px var(--head); color: var(--muted); }
.cform .btn.primary { height: 48px; font-size: 15px; }
.recap { display: flex; flex-direction: column; gap: 2px; }
.recap.up h1 { color: var(--lime); }

/* editar clube */
.edit2 { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.edit2 .prev { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; }
.edit2 h3 { font-size: 14px; margin: 14px 0 6px; }
.slots3 { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
.slot3 { flex: 1; min-width: 150px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2, #16231B); color: var(--text); display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: pointer; font: 500 12px 'Work Sans', sans-serif; text-align: left; }
.slot3.on { border: 2px solid var(--lime); }
.slot3 .dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0006; flex: none; }
.pal { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pc { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px #0007; padding: 0; }
.pc.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime); }
.pc.locked { opacity: .3; cursor: not-allowed; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.ltile { height: 66px; border-radius: 11px; border: 1px solid var(--line); background: var(--card2, #16231B); color: var(--text); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 0; font: 500 11px 'Work Sans', sans-serif; }
.ltile.on { border: 2px solid var(--lime); }
.ltile.locked { color: var(--muted); }
.ltile.locked .lt-in { opacity: .45; }
.ltile .lt-in { display: flex; line-height: 0; }
.ltile .lk { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--gold); color: #0E1712; display: flex; align-items: center; justify-content: center; }
.tgl { width: 34px; height: 18px; border-radius: 9px; background: #2A3D31; display: flex; padding: 2px; box-sizing: border-box; }
.tgl i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); }
.tgl.on { background: var(--lime); justify-content: flex-end; }
.pprev, .bprev { width: 44px; height: 28px; border-radius: 5px; display: inline-block; }
@media (max-width: 900px) { .edit2 { grid-template-columns: 1fr; } .edit2 .prev { position: static; } }

/* tática: ganhos e custos */
.tnotes { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; min-height: 16px; }
.tn b { margin-right: 2px; }
.tn.g b { color: #9BD45A; } .tn.b b { color: #FF7A6B; }
.balance { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.bal { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.bal b.g { color: #9BD45A; } .bal b.b { color: #FF7A6B; }
.bbar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #0F1A14; position: relative; }
.bbar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: #4A6150; }
.bbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--muted); }
.bbar i.g { background: #9BD45A; } .bbar i.b { background: #FF7A6B; }
.role.side { color: var(--gold); }

/* treino */
.t.train th.fg, .t.train td.fg { background: #C8F04A14; }
.t.train th.fg { color: var(--lime); }
.t.train small.up { color: var(--lime); font-size: 10px; margin-left: 2px; font-family: 'Work Sans', sans-serif; }
.star { background: none; border: 0; font-size: 16px; color: #3A4D40; cursor: pointer; }
.star.on { color: var(--gold); }

/* amigos e mural */
.code { font-size: 30px; letter-spacing: .12em; color: var(--lime); }
.mural .posts { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.post { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 10px; background: #111D16; font-size: 13px; }
.post.news { background: transparent; border: 1px dashed var(--line); }
.post .btn.sm { padding: 2px 8px; }
.card.danger { border-color: #5A2A2A; }
.btn.danger { background: #3A1D1D; border-color: #E53935; color: #fff; }

/* editar clube em 3 abas */
.subtabs-row { align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.subtabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card2); }
.subtabs button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 13px 'Work Sans', sans-serif; cursor: pointer; }
.subtabs button.on { background: var(--lime); color: var(--bg); }
.kits2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.kitcard { display: flex; flex-direction: column; gap: 8px; }
.kitcard.act { border-color: #4A6A2A; background: #1A2B20; }
.kitcard .kt { font: 700 20px var(--head); letter-spacing: .02em; }
.kitcard .slot3 { min-width: 0; height: 34px; }
.tiles.sm { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles.sm .ltile { height: 52px; font-size: 10px; }
.palbar { padding: 8px 10px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); margin-top: 10px; }
.ltile .bprev { width: 28px; height: 28px; border-radius: 50%; }
.pprev.big { width: 100%; height: 150px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pprev.big .bprev { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 3px 4px #0008; }
.chip.item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-direction: row; }
.chip.item svg { flex: none; }
@media (max-width: 900px) { .kits2 { grid-template-columns: 1fr; } .tiles.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* entrada com e-mail + seja um testador */
.enter.two { flex-direction: row; gap: 72px; padding: 40px 24px; box-sizing: border-box; flex-wrap: wrap; }
.enter .ecol { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 360px; max-width: 100%; }
.ebtn { width: 320px; max-width: 100%; height: 50px; border-radius: 25px; border: 1.5px solid var(--lime); background: #0E1712CC; color: var(--text);
  font: 600 15px 'Work Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; }
.ebtn:hover { background: #1A2B20; }
.eform { width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.eform h2 { margin: 0; font-size: 26px; }
.eform input { height: 46px; font-size: 16px; }
.eform .btn.primary { height: 48px; font-size: 15px; }
.mailline { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.mailline .ok { color: var(--lime); font-size: 12px; } .mailline .new { color: var(--gold); font-size: 12px; } .mailline a { font-size: 12px; }
.tester { width: 480px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.tester h2 { margin: 0; font-size: 32px; }
.tester p { margin: 0; line-height: 1.45; }
.pill.gold { padding: 4px 10px; border-radius: 999px; background: #2A2416; border: 1px solid #6B5524; color: var(--gold); font-size: 12px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li > b { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--bg); font: 700 16px var(--head); display: flex; align-items: center; justify-content: center; flex: none; }
.steps li > div { display: flex; flex-direction: column; gap: 4px; }
.steps .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 900px) { .enter.two { flex-direction: column; gap: 28px; } }
