/* =====================================================================
   Modern Football — tema "Arena" (0.2.0)
   Visual de jogo mobile: azul-marinho profundo, abas ciano, pílulas verdes,
   chips coloridos e barra de ícones no rodapé (referência: Top Eleven).
   Carregado DEPOIS de app.css: redefine tokens e o estilo dos componentes.
   ===================================================================== */
:root, [data-theme="dark"], [data-theme="light"] {
  --font-ui: 'Titillium Web', 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  --font-display: 'Exo 2', 'Titillium Web', 'Segoe UI', Roboto, system-ui, sans-serif;
  --fs-xs: 11px; --fs-sm: 12.5px; --fs-base: 14px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 21px; --fs-2xl: 28px;

  --surface-0: #071530; --surface-1: #10285a; --surface-2: #0c2049; --surface-3: #1b3768;
  --border: rgba(120, 172, 255, .18); --border-strong: rgba(140, 190, 255, .34);
  --text-1: #f1f5ff; --text-2: #c6d4ef; --text-3: #8fa6cf; --text-disabled: #5d7098;
  --row-hover: #16376f; --row-selected: #1c4a8f;
  --chrome-900: #050f24; --chrome-800: #08183a; --chrome-700: #0f2552; --chrome-600: #163064; --chrome-500: #24427c;
  --on-chrome: #fff; --on-chrome-2: #b9c9e6;
  --brand-700: #0a4fa0; --brand-600: #0f78d1; --brand-500: #1e9bf0; --brand-400: #3db1ff; --brand-300: #62d2ff; --brand-100: rgba(56, 170, 255, .16);
  --header-gradient: linear-gradient(180deg, #123473, #0a1f4a);
  --success: #45b81c; --success-dark: #2c7d0f; --success-soft: rgba(80, 200, 40, .14);
  --warning: #f2b51d; --warning-dark: #b98407; --warning-soft: rgba(242, 181, 29, .14);
  --danger: #ec4a45; --danger-dark: #b42724; --danger-soft: rgba(236, 74, 69, .15);
  --info: #29a6f3; --info-dark: #127cc0; --info-soft: rgba(41, 166, 243, .14);
  --pos-gk: #f5a524; --pos-def: #3fb93a; --pos-mid: #f2cf2f; --pos-att: #e8463e;
  --rate-1: #ff6b6b; --rate-2: #ffa94d; --rate-3: #e0d34a; --rate-4: #8ee05a; --rate-5: #43d17a; --rate-6: #4cc9ff;
  --pitch-a: #5aa22c; --pitch-b: #4e9425; --pitch-line: #e9f7df;
  --gala-a: #10295a; --gala-b: #071733; --gala-edge-a: #62d2ff; --gala-edge-b: #2b6fc0; --gala-title: #7fe0ff;
  --skill-purple-soft: rgba(122, 86, 214, .22);
  --r-md: 10px; --r-lg: 14px;
  --sh-1: 0 2px 6px rgba(0, 0, 0, .28); --sh-2: 0 8px 20px rgba(0, 0, 0, .38); --sh-3: 0 18px 44px rgba(0, 0, 0, .55);
  --tab-a: #3cc6ff; --tab-b: #0a84d8;
  --green-a: #9be34a; --green-b: #46a716; --green-edge: #2b7a0c;
  --dock-h: 74px; --top-h: 58px;
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --row-h: 42px; --fs-base: 14.5px; --dock-h: 66px; --top-h: 52px } }

html { background: var(--surface-0); }
body {
  font-family: var(--font-ui); color: var(--text-1);
  background:
    radial-gradient(900px 420px at 15% -8%, rgba(40, 140, 255, .28), transparent 70%),
    radial-gradient(900px 420px at 85% -8%, rgba(40, 140, 255, .22), transparent 70%),
    linear-gradient(180deg, #0b1f4a 0%, #071530 38%, #050f24 100%);
  background-attachment: fixed;
}
a { color: var(--brand-300); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }
::-webkit-scrollbar-thumb { background: rgba(140, 190, 255, .35); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Botões: pílulas brilhantes ---------- */
.btn {
  --b-top: #44c2ff; --b-bot: #0b7fd6; --b-edge: #0a5aa3; --b-ink: #fff;
  height: 38px; padding: 0 20px; border-radius: 999px;
  font: italic 700 14px/1 var(--font-display); letter-spacing: .01em; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, var(--b-top) 0%, var(--b-bot) 100%);
  border: 1px solid var(--b-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 3px 8px rgba(0, 0, 0, .3);
}
.btn--success, .btn--cta { --b-top: var(--green-a); --b-bot: var(--green-b); --b-edge: var(--green-edge); }
.btn--danger { --b-top: #ff7a6e; --b-bot: #d6302b; --b-edge: #9e1d1a; }
.btn--warning { --b-top: #ffd45a; --b-bot: #e09a10; --b-edge: #a96f05; --b-ink: #2a1c00; text-shadow: none; }
.btn--secondary, .btn--dark {
  --b-ink: #e9f1ff; color: #e9f1ff; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  border-color: rgba(160, 200, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 2px 6px rgba(0, 0, 0, .25);
}
.btn--ghost { --b-ink: var(--brand-300); background: transparent; border-color: transparent; box-shadow: none; text-shadow: none; }
.btn--sm { height: 30px; padding: 0 14px; font-size: 12.5px; }
.btn--lg { height: 50px; padding: 0 30px; font-size: 17px; }
.btn--cta { clip-path: none; font: italic 800 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; padding: 0 32px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 22px rgba(130, 230, 60, .35), 0 4px 10px rgba(0, 0, 0, .35); }
.iconbtn { width: 38px; height: 38px; border-radius: 12px; color: #dce9ff; }
.iconbtn:hover { background: rgba(255, 255, 255, .1); }
.roundbtn { background: linear-gradient(180deg, #44c2ff, #0b7fd6); border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 16px rgba(60, 190, 255, .45); }
.roundbtn.is-on { background: linear-gradient(180deg, var(--green-a), var(--green-b)); }

/* ---------- Casca nova ---------- */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 10px;
  padding: 0 10px 0 8px; padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, #16408a 0%, #0c2756 100%);
  border-bottom: 1px solid rgba(98, 210, 255, .35); box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
.tb-logo { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 8px rgba(0, 0, 0, .45); }
.tb-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-club { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: #fff; }
.tb-club:hover { text-decoration: none; }
.tb-club .crest { width: 38px; height: 38px; font-size: 13px; }
.tb-club div { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.tb-club b { font: italic 800 17px/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-club span { font-size: 12px; color: #a9c6f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-next { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.tb-next .crest { width: 26px; height: 26px; font-size: 10px; border-width: 1px; }
.tb-next small { color: #9fbbe6; display: block; font-size: 10.5px; line-height: 1; }
.tb-next b { font-weight: 700; }
.topbar .spacer { flex: 1; }
.tb-date { text-align: right; line-height: 1.1; font-size: 12.5px; color: #fff; white-space: nowrap; }
.tb-date small { display: block; color: #9fbbe6; font-size: 10.5px; }
.continue {
  height: 40px; min-width: 0; padding: 0 20px; border-radius: 999px; border: 1px solid var(--green-edge);
  background: linear-gradient(180deg, var(--green-a), var(--green-b)); color: #fff;
  font: italic 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 16px rgba(130, 230, 60, .3), 0 3px 8px rgba(0, 0, 0, .35);
}
.continue:hover { filter: brightness(1.07); background: linear-gradient(180deg, var(--green-a), var(--green-b)); }
.continue--match { --green-a: #ffd45a; --green-b: #f08a12; --green-edge: #a85a05; animation: pulseGo 1.6s ease-in-out infinite; }
@keyframes pulseGo { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 26px rgba(255, 190, 60, .65), 0 3px 8px rgba(0, 0, 0, .35); } }

/* Aba da seção (estilo "Squad"/"League") + submenus em pílulas */
.sechead { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 0; max-width: 1600px; width: 100%; margin: 0 auto; }
.sec-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 26px 0 14px; flex: none;
  background: linear-gradient(180deg, var(--tab-a), var(--tab-b)); color: #fff; border-radius: 12px 12px 0 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  font: italic 800 17px/1 var(--font-display); text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.sec-tab .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.subtabs { background: rgba(0, 0, 0, .28); border: 1px solid rgba(140, 190, 255, .18); border-radius: 999px; padding: 3px; gap: 3px; display: flex; overflow-x: auto; scrollbar-width: none; margin-bottom: 6px; min-width: 0; }
.subtabs::-webkit-scrollbar { display: none; }
/* 0.2.2: submenus aninhados (Ligas em Jogos, Finanças em Clube) — 2ª linha de abas, menor e recuada */
.sechead { flex-wrap: wrap; }
.sechead-break { flex-basis: 100%; height: 0; }
.subtabs--child { background: rgba(0, 0, 0, .18); margin-top: -2px; }
.subtabs--child a { height: 26px; font-size: 12px; padding: 0 12px; }
.subtabs a { height: 30px; padding: 0 14px; border-radius: 999px; color: #c9d8f2; font-size: 13px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; text-decoration: none; }
.subtabs a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.subtabs a.on { background: linear-gradient(180deg, #f3f6fb, #c7d1df); color: #10264f; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.work { padding: 10px 14px calc(var(--dock-h) + 22px); gap: 14px; }
.foot { display: none; }

/* Barra de ícones (dock) — navegação principal em PC e celular */
.dock {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 45;
  display: flex; align-items: flex-end; gap: 4px; padding: 7px 12px calc(6px + env(safe-area-inset-bottom));
  width: max-content; max-width: 100vw; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6ef 55%, #b9c5d4 100%);
  border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .45), inset 0 1px 0 #fff;
}
.dock::-webkit-scrollbar { display: none; }
.dk { --c1: #4fb8ff; --c2: #136fd0; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; flex: none; text-decoration: none; color: #2a3a57; padding-top: 2px; }
.dk:hover { text-decoration: none; }
.dk-ic { width: 46px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 5px rgba(0, 0, 0, .28); transition: transform .15s ease; }
.dk-ic .icon { width: 24px; height: 24px; stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.dk-lb { font: 700 11px/1 var(--font-ui); white-space: nowrap; }
.dk:hover .dk-ic { transform: translateY(-2px); }
.dk.on .dk-ic { transform: translateY(-5px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c2), 0 6px 14px rgba(0, 0, 0, .35); }
.dk.on .dk-lb { color: #0a4fa0; }
.dk--inicio { --c1: #4fd1ff; --c2: #0f8fd6; } .dk--tatica { --c1: #5be36a; --c2: #1e9a2c; } .dk--treino { --c1: #ffb347; --c2: #e0700f; }
.dk--calendario { --c1: #ff7a7a; --c2: #d0303a; } .dk--competicoes { --c1: #ffd84a; --c2: #d99a07; } .dk--mercado { --c1: #b48cff; --c2: #6d3fd6; }
.dk--financas { --c1: #3fe0b2; --c2: #0e9a78; } .dk--medico { --c1: #ff6e9a; --c2: #d02a5c; } .dk--clube { --c1: #7fa6ff; --c2: #3a5fd0; }

/* ---------- Painéis: corpo azul com aba ciano ---------- */
.panel {
  background: linear-gradient(180deg, #13306a 0%, #0c2150 100%); color: var(--text-1);
  border: 1px solid rgba(120, 175, 255, .24); border-top: 1px solid rgba(120, 175, 255, .24); border-radius: var(--r-lg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden;
}
.panel > header { min-height: 40px; padding: 0 10px 0 0; gap: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .12)); border-bottom: 1px solid rgba(98, 210, 255, .35); }
.panel > header h2 {
  align-self: stretch; display: flex; align-items: center; margin: 0; padding: 0 28px 0 14px;
  background: linear-gradient(180deg, var(--tab-a), var(--tab-b)); color: #fff;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  font: italic 800 15px/1.1 var(--font-display); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); white-space: nowrap; max-width: 75%; overflow: hidden; text-overflow: ellipsis;
}
.panel > header .chip, .panel > header .small { color: #cfe0fb; }
.panel > .body { padding: 14px; }
.panel--dark { background: linear-gradient(180deg, #0f2552, #081a3d); }
.kpi { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(140, 190, 255, .22); border-radius: 12px; box-shadow: none; }
.kpi small { color: #7fd8ff; letter-spacing: .05em; }
.kpi > b { font-family: var(--font-display); font-style: italic; font-weight: 800; }
.notice { background: var(--info-soft); color: var(--text-1); border-radius: 10px; border-left-width: 4px; }
.li { border-bottom: 1px solid rgba(140, 190, 255, .1); }
.li.unread { background: rgba(56, 170, 255, .12); box-shadow: inset 3px 0 0 var(--brand-300); }
.chip { background: rgba(56, 170, 255, .18); color: #9fe2ff; }
.empty { color: var(--text-3); }
.pcard { background: linear-gradient(180deg, #13306a, #0c2150); border-color: rgba(120, 175, 255, .24); border-radius: 12px; }

/* ---------- Tabelas: cabeçalho em pílula cinza, linhas escuras ---------- */
.tbl { border-collapse: separate; border-spacing: 0; }
.tbl th { background: linear-gradient(180deg, #edf1f7, #bcc7d6); color: #1a2c4e; font: 700 12px/1 var(--font-ui); text-transform: none; height: 30px; border-bottom: 0; }
.tbl thead th:first-child { border-radius: 999px 0 0 999px; }
.tbl thead th:last-child { border-radius: 0 999px 999px 0; }
.tbl td { border-bottom: 1px solid rgba(140, 190, 255, .07); }
.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .035); }
.tbl tbody tr:hover { background: var(--row-hover); }
.tbl tbody tr.me { background: rgba(255, 220, 80, .1); box-shadow: inset 4px 0 0 #ffd84a; color: #ffe27a; }
.tbl tr.divider td { background: rgba(0, 0, 0, .25); color: #7fd8ff; }
.panel > .flush { padding: 8px; }

/* ---------- Chips de posição, notas, estrelas, barras ---------- */
.pos { min-width: 40px; height: 21px; border-radius: 6px; font: 800 11px/1 var(--font-ui); letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .35); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.pos--gk { background: linear-gradient(180deg, #ffc14d, #e88d0c); }
.pos--def { background: linear-gradient(180deg, #67d65f, #2c9a27); }
.pos--mid { background: linear-gradient(180deg, #ffe466, #e6b912); color: #3a2c00; text-shadow: none; }
.pos--att { background: linear-gradient(180deg, #ff7b6e, #d6302b); }
.rate { font-family: var(--font-display); font-style: italic; }
.stars { display: inline-flex; gap: 1px; color: #ffcf33; font-size: 13px; letter-spacing: -1px; text-shadow: 0 0 6px rgba(255, 200, 40, .35), 0 1px 0 #6b4a00; white-space: nowrap; vertical-align: middle; }
.stars i { font-style: normal; color: rgba(255, 255, 255, .18); text-shadow: none; }
.bar { background: rgba(0, 0, 0, .35); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.badge { border-radius: 5px; }
.seal { background: linear-gradient(180deg, #3d5b93, #22396a); }
.form b { border-radius: 4px; }
.form .V { background: linear-gradient(180deg, #67d65f, #2c9a27); } .form .D { background: linear-gradient(180deg, #ff7b6e, #d6302b); } .form .E { background: linear-gradient(180deg, #ffd84a, #d99a07); color: #3a2c00; }

/* ---------- Formulários ---------- */
.field label { color: #7fd8ff; letter-spacing: .04em; }
.inp, select.inp { height: 40px; border-radius: 10px; background: #081a3d; color: #fff; border: 1px solid rgba(140, 190, 255, .35); padding: 0 12px; }
.inp:focus { outline: 2px solid var(--brand-300); }
.inp::placeholder { color: #6b84b0; }
.dsel { height: 32px; border-radius: 8px; background: #081a3d; border-color: rgba(140, 190, 255, .35); }
.dimrow { border-color: rgba(140, 190, 255, .12); }

/* ---------- Campo tático ---------- */
.pitch { background: repeating-linear-gradient(180deg, var(--pitch-a) 0 8%, var(--pitch-b) 8% 16%); border-radius: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 8px 22px rgba(0, 0, 0, .4); }
.pitch .plate { background: rgba(8, 20, 45, .88); color: #fff; border-radius: 5px; }
.pitch .plate small { color: #9fe2ff; }
.pm-pitch { background: repeating-linear-gradient(180deg, var(--pitch-a) 0 10%, var(--pitch-b) 10% 20%); }
.tac-squad .sqhead { background: rgba(0, 0, 0, .3); color: #7fd8ff; }

/* ---------- Diálogos, avisos, carregando ---------- */
.overlay { background: rgba(2, 8, 22, .72); backdrop-filter: blur(2px); }
.dialog { background: linear-gradient(180deg, #13306a, #0a1d46); color: var(--text-1); border: 1px solid rgba(120, 175, 255, .3); border-radius: 16px; }
.dialog > header { background: linear-gradient(180deg, var(--tab-a), var(--tab-b)); }
.dialog > header h2 { font: italic 800 17px/1.1 var(--font-display); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.dialog--danger > header { background: linear-gradient(180deg, #ff7a6e, #d6302b); }
.dialog--ok > header { background: linear-gradient(180deg, var(--green-a), var(--green-b)); }
.dialog > footer { border-top: 1px solid rgba(140, 190, 255, .15); background: rgba(0, 0, 0, .15); }
.toasts { top: calc(var(--top-h) + 10px); }
.toast { background: linear-gradient(180deg, #17377a, #0e2554); color: #fff; border: 1px solid rgba(140, 190, 255, .3); border-left: 5px solid var(--info); border-radius: 12px; }
.toast--ok { border-left-color: #6fd43a; } .toast--err { border-left-color: var(--danger); } .toast--warn { border-left-color: var(--warning); }
.busy { background: rgba(2, 8, 22, .75); }
.busy .card { background: linear-gradient(180deg, #13306a, #0a1d46); color: #fff; border: 1px solid rgba(120, 175, 255, .3); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); background-size: 200% 100%; }
.sheet { background: linear-gradient(180deg, #13306a, #0a1d46); }

/* ---------- Partida ---------- */
.matchwrap { background: linear-gradient(180deg, #12306b 0%, #0a1d46 100%); border: 1px solid rgba(120, 175, 255, .25); border-radius: 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.score .big { font-family: var(--font-display); font-style: italic; font-weight: 800; text-shadow: 0 2px 10px rgba(60, 190, 255, .45); }
.speed button.on { background: linear-gradient(180deg, #44c2ff, #0b7fd6); }
.mx-act { font-family: var(--font-display); font-style: italic; }

/* ---------- Entrada (login, nova conta, escolha de clube) ---------- */
.splash { position: relative; isolation: isolate; background: #050f24; place-items: start center; padding: 22px 14px 40px; }
.splash::before { content: ''; position: fixed; inset: -60px; z-index: -1; background: url('../assets/logo.jpg') center 30% / cover no-repeat; filter: blur(30px) brightness(.42) saturate(1.25); }
.splash::after { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 50% 0%, rgba(40, 140, 255, .25), transparent 70%), linear-gradient(180deg, transparent 40%, rgba(3, 9, 24, .85)); }
.splash { grid-template-columns: minmax(0, 1fr); }
.splash .box { width: min(560px, 100%); max-width: 100%; min-width: 0; gap: 16px; justify-items: center; }
.splash .box > * { min-width: 0; max-width: 100%; }
.splash .box--wide { width: min(980px, 100%); }
.splash .box > * { width: 100%; }
.login-logo { display: block; width: min(330px, 74vw) !important; aspect-ratio: 1; margin: 0 auto -6px; border-radius: 28px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.login-logo.sm { width: min(190px, 46vw) !important; margin-bottom: -18px; }
.login-tag { text-align: center; color: #b8cdf0; font-size: 14px; margin-top: -8px; }
.version { background: rgba(98, 210, 255, .16); border-color: rgba(98, 210, 255, .45); color: #bdefff; }
.splash .panel { color: var(--text-1); }
.splash .panel .btnrow .btn { flex: 1 1 auto; }
.login-note { text-align: center; color: #9fb6dd; font-size: 12.5px; }

/* ---------- Links oficiais e redes, na tela de entrada ---------- */
.login-alt { margin-top: 10px; }
.btn--ghost { background: transparent; border: 1px solid rgba(160, 190, 235, .32); color: #cfe0ff; }
.btn--ghost:hover { background: rgba(160, 190, 235, .12); }
.login-links { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 2px; }
.login-site { font-size: 13px; font-weight: 700; color: #bdefff; text-decoration: none; border-bottom: 1px solid rgba(189, 239, 255, .4); padding-bottom: 1px; }
.login-site:hover { color: #fff; }
.login-site.is-off { color: #7f93b5; border-bottom-color: transparent; cursor: default; font-weight: 600; }
.login-site.is-off small { font-size: 11px; opacity: .8; }
.login-socials { display: flex; gap: 12px; }
.login-social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(160, 190, 235, .28); background: rgba(10, 24, 52, .55); color: #cfe0ff; transition: background .15s, color .15s, border-color .15s; }
.login-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a.login-social:hover { background: rgba(40, 140, 255, .22); border-color: rgba(98, 210, 255, .6); color: #fff; }
.login-social.is-off { color: #5d6f8e; border-color: rgba(120, 140, 170, .18); background: rgba(10, 20, 40, .35); cursor: default; }
@media (max-width: 767px) { .login-social { width: 46px; height: 46px; } .login-links { gap: 10px; margin-top: 0; } .login-note { margin: 2px 0 0; } }
.logo { font-family: var(--font-display); font-style: italic; }

/* ---------- Banner de tela cheia ---------- */
.fsbanner { position: fixed; left: 10px; right: 10px; bottom: calc(var(--dock-h) + 14px); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #1a4596, #0d2a5e); border: 1px solid rgba(98, 210, 255, .5); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); animation: up .25s ease; }
.fsbanner img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.fsbanner div { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; }
.fsbanner b { display: block; font: italic 800 15px/1.1 var(--font-display); }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .tb-next, .tb-date small { display: none; }
}
@media (max-width: 767px) {
  .topbar { gap: 6px; padding: 0 6px; }
  .tb-logo { width: 40px; height: 40px; border-radius: 10px; }
  .tb-club .crest { display: none; }
  .tb-club b { font-size: 15px; }
  .tb-club span { font-size: 11px; }
  .tb-date { display: none; }
  .topbar .iconbtn { width: 34px; height: 34px; }
  .continue { height: 36px; padding: 0 14px; font-size: 13px; }
  .continue .icon { display: none; }
  .sechead { padding: 8px 8px 0; gap: 6px; flex-direction: column; align-items: stretch; }
  .sec-tab { align-self: flex-start; height: 34px; font-size: 16px; }
  .subtabs { margin-bottom: 4px; }
  .subtabs a { height: 30px; padding: 0 12px; font-size: 12.5px; }
  .work { padding: 8px 8px calc(var(--dock-h) + 18px); gap: 10px; }
  .dock { left: 0; transform: none; width: 100vw; border-radius: 18px 18px 0 0; padding: 6px 6px calc(5px + env(safe-area-inset-bottom)); gap: 0; justify-content: space-between; }
  .dk { width: auto; flex: 1 0 40px; gap: 2px; }
  .dk-ic { width: 38px; height: 36px; border-radius: 11px; }
  .dk-ic .icon { width: 21px; height: 21px; }
  .dk-lb { font-size: 9px; letter-spacing: -.01em; }
  .dk.on .dk-ic { transform: translateY(-4px) scale(1.04); }
  .panel > header h2 { font-size: 14px; max-width: 70%; }
  .panel > .body { padding: 10px; }
  .tbl:not(.keep):not(.cards-sm) tr { border-bottom: 1px solid rgba(140, 190, 255, .1); }
  .tbl:not(.keep):not(.cards-sm) td[data-label]::before { color: #7fd8ff; }
  .tbl:not(.keep):not(.cards-sm) tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
  .login-logo { width: min(250px, 66vw) !important; }
}
@media (max-width: 380px) { .dk-lb { display: none; } .dock { padding-top: 8px; } }

/* Escudos em formato de brasão */
.crest { border-radius: 9px 9px 50% 50% / 9px 9px 62% 62%; border: 2px solid rgba(255, 255, 255, .85); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 2px 6px rgba(0, 0, 0, .45); font-family: var(--font-display); font-style: italic; font-weight: 800; }
.crest--sm { border-width: 1.5px; border-radius: 6px 6px 50% 50% / 6px 6px 62% 62%; }

/* Ajustes 0.2.0 */
.splash .box { display: flex; flex-direction: column; align-items: center; }
.splash .box > .login-tag { width: auto; max-width: 420px; }
.dialog > footer { flex-wrap: wrap; }
@media (max-width: 767px) {
  .dialog > footer .btn { flex: 1 1 auto; }
  .dk-lb { font-size: 8.5px; max-width: 100%; overflow: hidden; text-overflow: clip; }
  .dk { min-width: 0; }
}
/* Partida ao vivo: foco total no jogo (sem a barra de ícones) */
body[data-sub="partida/aovivo"] .dock { display: none; }
body[data-sub="partida/aovivo"] .work { padding-bottom: 16px; }
.continue { white-space: nowrap; }

/* Indisponíveis para o próximo jogo (0.2.1) */
.abs { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.3; white-space: normal; }
.abs--inj { background: rgba(236, 74, 69, .2); color: #ff9b95; border: 1px solid rgba(236, 74, 69, .55); }
.abs--sus { background: rgba(242, 181, 29, .18); color: #ffd56b; border: 1px solid rgba(242, 181, 29, .55); }
.avail-ok { color: #8ee05a; font-weight: 700; }
.avail-alert { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(236, 74, 69, .18); border: 1px solid rgba(236, 74, 69, .6); color: #ffb3ae; font-weight: 700; }
.avail-list { display: flex; flex-wrap: wrap; gap: 8px; }
.avail-item { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(140, 190, 255, .18); cursor: pointer; }
.avail-role { font: 800 10px/1 var(--font-ui); padding: 3px 6px; border-radius: 5px; letter-spacing: .04em; }
.avail-role--titular { background: #d6302b; color: #fff; }
.avail-role--reserva { background: #e09a10; color: #2a1c00; }
.avail-panel--bad { border-color: rgba(236, 74, 69, .7); box-shadow: 0 0 0 1px rgba(236, 74, 69, .35), 0 8px 22px rgba(0, 0, 0, .35); }
.pitch .slot--out .shirt { --fam: #ff3b30 !important; filter: grayscale(.6) brightness(.85); }
.pitch .slot--out .plate { background: rgba(140, 16, 12, .92); }
.plate-out { color: #fff !important; font-weight: 800; letter-spacing: .04em; }
.slot-warn { position: absolute; top: -6px; left: calc(50% + 10px); width: 18px; height: 18px; border-radius: 50%; background: #ff3b30; color: #fff; font: 900 12px/18px var(--font-ui); text-align: center; box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255, 59, 48, .8); animation: pulseGo 1.4s ease-in-out infinite; }
.idle-alert { padding: 10px 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(236, 74, 69, .3), rgba(160, 20, 20, .25)); border: 1px solid rgba(255, 120, 110, .7); color: #ffe3e0; font-size: 14px; }
.idle-alert a { color: #fff; font-weight: 800; text-decoration: underline; }

/* ---------- APK e dica de virar o telefone ---------- */
.login-apk { display: block; text-align: center; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(98, 210, 255, .45); background: rgba(20, 70, 140, .35); color: #dff2ff; font-weight: 700; font-size: 14px; text-decoration: none; }
.login-apk small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; margin-top: 2px; }
a.login-apk:hover { background: rgba(40, 140, 255, .4); color: #fff; }
.login-apk.is-off { color: #8fa3c4; border-color: rgba(120, 140, 170, .22); background: rgba(10, 20, 40, .35); cursor: default; }
.login-gira { margin: 0; text-align: center; font-size: 12.5px; color: #b8cdf0; }

/* ================= Telefone deitado =================
   Com o telefone na horizontal sobra largura e falta altura: 390 px de altura com 185 px de barras
   deixava só 205 px para o jogo. Aqui as barras encolhem e a navegação vira ícones, devolvendo quase
   100 px de conteúdo. Vale para qualquer tela baixa (celular deitado e janelas curtas). */
@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  :root { --top-h: 44px; --dock-h: 46px; --row-h: 34px; --fs-base: 13px; }

  /* topo mais fino e sem a segunda linha de texto */
  .topbar { gap: 7px; padding: 0 8px; }
  .tb-logo { width: 34px; height: 34px; border-radius: 9px; }
  .tb-club .crest { width: 28px; height: 28px; font-size: 11px; }
  .tb-club b { font-size: 14px; }
  .tb-club span, .tb-date small { display: none; }
  .tb-date b { font-size: 12px; }
  .topbar .continue { height: 34px; padding: 0 14px; font-size: 14px; }
  .topbar .iconbtn { width: 34px; height: 34px; }
  .topbar .iconbtn .icon--lg { width: 20px; height: 20px; }

  /* faixa de abas rente ao topo */
  .sechead { padding: 5px 10px 0; gap: 7px; }
  .sec-tab { height: 28px; font-size: 14px; padding: 0 20px 0 11px; }
  .sec-tab .icon { width: 16px; height: 16px; }
  .subtabs { margin-bottom: 3px; padding: 2px; }
  .subtabs a { height: 25px; font-size: 12px; padding: 0 11px; }
  .subtabs--child a { height: 22px; font-size: 11px; padding: 0 9px; }

  /* dock: só ícones, colado embaixo e ocupando a largura toda */
  .dock { border-radius: 14px 14px 0 0; gap: 2px; padding: 4px 8px calc(2px + env(safe-area-inset-bottom)); }
  .dk { width: 50px; gap: 0; padding-top: 0; }
  .dk-ic { width: 38px; height: 32px; border-radius: 10px; }
  .dk-ic .icon { width: 19px; height: 19px; }
  .dk-lb { display: none; }
  .dk.on .dk-ic { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c2); }

  /* conteúdo: respiro menor e duas colunas aproveitando a largura */
  .work { padding: 7px 10px calc(var(--dock-h) + 10px); gap: 8px; }
  .panel > header { height: 30px; }
  .panel > header h2 { font-size: 14px; }
  .panel .body { padding: 9px 11px; }
  .kpis { gap: 8px; }
  .kpi { padding: 7px 10px; }
  .kpi b { font-size: 17px; }
  .kpi small { font-size: 10px; }
  .li { min-height: var(--row-h); padding: 4px 9px; }
  .tbl th, .tbl td { padding: 4px 7px; font-size: 12.5px; }
  .fsbanner { bottom: calc(var(--dock-h) + 6px); padding: 7px 10px; }
  .fsbanner img { width: 32px; height: 32px; }
  .fsbanner b { font-size: 13px; }
  .fsbanner div { font-size: 11.5px; }

  /* a área de jogo que tem campo desenhado usa a altura que sobrou */
  .pitchwrap, .match-pitch { max-height: calc(100vh - var(--top-h) - var(--dock-h) - 60px); }
}

/* Perfis de teste do PvP: contas que simulam jogadores. Em âmbar, para não se confundir com conta de verdade. */
.chip.chip--teste { background: rgba(242, 181, 29, .18); border-color: rgba(242, 181, 29, .55); color: #ffd25e; }
