/* Dragons Foot — visual inspirado em dashboards de recuperação (cards claros, blocos em gradiente, números em matriz de pontos) */
:root {
  --bg: #e6e5ee;
  --card: #ffffff;
  --ink: #1b1a21;
  --muted: #7d7b8a;
  --line: #ecebf2;
  --soft: #f4f3f8;
  --green1: #dcf7bd; --green2: #7fd35f; --green3: #2f9e4f; --greenInk: #173d0e;
  --pink1: #ffd6e0; --pink2: #ff7a9a; --pink3: #e2375c; --pinkInk: #4b1124;
  --sea1: #d6f3f4; --sea2: #6fc7d6; --sea3: #2c7f9e; --seaInk: #0d3340;
  --sun1: #fff1c9; --sun2: #ffc96b; --sun3: #f08a3c; --sunInk: #4a2608;
  --lilac1: #f3f1ff; --lilac2: #d4ccff; --lilacInk: #2c2466;
  --amber: #f4a62a; --red: #e5484d; --blue: #4b6bfb;
  --r: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; }
button, input, select { font-family: inherit; font-size: 14px; }
a { color: inherit; text-decoration: none; cursor: pointer; }
.dot { font-family: 'Teko', 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: 0.3px; line-height: 1; font-variant-numeric: tabular-nums; font-size-adjust: cap-height 0.78; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }

/* layout */
.app { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 18px; min-height: 100vh; }
.side { background: var(--card); border-radius: var(--r); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 18px; height: calc(100vh - 36px); overflow: auto; }
.logo { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; font-size: 20px; font-weight: 300; letter-spacing: 1px; }
.logo b { font-weight: 700; }
.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: #3b3a45; cursor: pointer; font-weight: 500; }
.nav:hover { background: var(--soft); }
.nav.on { background: var(--ink); color: #fff; }
.nav .ic { width: 20px; text-align: center; opacity: .85; }
.side .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.top { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r); padding: 12px 16px 12px 14px; }
.top .tname { font-size: 18px; font-weight: 600; }
.top .grow { flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.green { background: var(--green1); color: var(--greenInk); }
.chip.pink { background: var(--pink1); color: var(--pinkInk); }
.chip.lilac { background: var(--lilac1); color: var(--lilacInk); }

.btn { border: 0; background: var(--soft); color: var(--ink); padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { filter: brightness(.96); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.pink { background: linear-gradient(135deg, var(--pink2), var(--pink3)); color: #fff; }
.btn.green { background: linear-gradient(135deg, var(--green2), var(--green3)); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.big { padding: 14px 22px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: default; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21, .g12, .g3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.tile { border-radius: var(--r); padding: 18px 20px; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile .lbl { font-size: 13px; font-weight: 500; opacity: .85; line-height: 1.3; }
.tile .val { font-size: 50px; line-height: 1; margin: 12px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-box: trim-both cap alphabetic; }
.tile .val small { font-size: .5em; margin-left: 3px; letter-spacing: 0; opacity: .8; }
.tile .sub { font-size: 12px; opacity: .85; line-height: 1.45; margin-top: auto; }
.t-green { background: linear-gradient(165deg, var(--sea1) 0%, var(--sea2) 62%, var(--sea3) 100%); color: var(--seaInk); }
.t-pink { background: linear-gradient(165deg, var(--sun1) 0%, var(--sun2) 60%, var(--sun3) 100%); color: var(--sunInk); }
.t-lilac { background: linear-gradient(165deg, #ffffff 0%, var(--lilac1) 40%, var(--lilac2) 100%); color: var(--lilacInk); }
.t-white { background: var(--card); }

.banner { border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(90deg, var(--pink1), #ffe6ec); color: var(--pinkInk); }

/* tabelas */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default; }
table.t th.s { cursor: pointer; }
table.t td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.me td { background: #f7f5ff; font-weight: 600; }
table.t tr.hov:hover td { background: var(--soft); cursor: pointer; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.c, table.t th.c { text-align: center; }
.zone-up { box-shadow: inset 3px 0 0 var(--green3); }
.zone-mid { box-shadow: inset 3px 0 0 var(--blue); }
.zone-down { box-shadow: inset 3px 0 0 var(--red); }
.scroll { overflow: auto; }

.ovr { display: inline-block; min-width: 30px; text-align: center; padding: 2px 6px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.o1 { background: #e9f8dd; color: #245c12; } .o2 { background: #f0f7c9; color: #4d5a0a; } .o3 { background: #fff1d6; color: #7a4c00; } .o4 { background: #ffe1e6; color: #8a1630; } .o0 { background: #e8ecff; color: #22307a; }
.pos { display: inline-block; width: 22px; text-align: center; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 2px 0; }
.pG { background: #fff1c2; color: #6b4e00; } .pL { background: #dff2ff; color: #0b4a72; } .pZ { background: #dbe4ff; color: #1e2f78; } .pM { background: #e5f7d9; color: #245c12; } .pA { background: #ffe0e6; color: #84122d; }
.bar { display: inline-block; width: 56px; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.form { display: inline-flex; gap: 3px; }
.form b { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.form .V { background: var(--green3); } .form .E { background: #a5a3b3; } .form .D { background: var(--pink3); }

.tl { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.tl:hover span { text-decoration: underline; }
.pl:hover { text-decoration: underline; cursor: pointer; }
.crest { flex: none; display: inline-block; vertical-align: middle; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 7px 12px; border-radius: 999px; background: var(--soft); cursor: pointer; font-size: 12px; font-weight: 600; border: 0; }
.pill.on { background: var(--ink); color: #fff; }

input[type=text], input[type=number], select { background: var(--soft); border: 1px solid transparent; padding: 9px 12px; border-radius: 12px; outline: none; color: var(--ink); }
input:focus, select:focus { border-color: var(--lilac2); background: #fff; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv span:nth-child(odd) { color: var(--muted); }

/* campo */
/* campo: listras de gramado, linhas brancas, grande área em cima e embaixo, meio-campo e círculo central */
.pitch { --ln: rgba(255,255,255,.75); background: repeating-linear-gradient(180deg, transparent 0 56px, rgba(255,255,255,.16) 56px 112px), linear-gradient(180deg, #e2f4d0, #c4e6a6); border-radius: 20px; padding: 30px 16px; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; position: relative; overflow: hidden; }
.pitch::before { content: ''; position: absolute; inset: 10px; border: 2px solid var(--ln); border-radius: 12px; background: linear-gradient(var(--ln), var(--ln)) center / 100% 2px no-repeat; pointer-events: none; }
.pitch .pk { position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid var(--ln); pointer-events: none; }
.pitch .pk-t { top: 10px; width: 44%; height: 13%; border-top: 0; border-radius: 0 0 10px 10px; }
.pitch .pk-b { bottom: 10px; width: 44%; height: 13%; border-bottom: 0; border-radius: 10px 10px 0 0; }
.pitch .pk-c { top: 50%; width: 110px; height: 110px; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .ln { display: flex; justify-content: space-around; gap: 4px; position: relative; z-index: 1; }
.pchip { background: #fff; border-radius: 12px; padding: 5px 8px; font-size: 11px; text-align: center; min-width: 70px; max-width: 96px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pchip b { display: block; font-size: 17px; line-height: 1.05; }
.pchip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pchip.bad { outline: 2px solid var(--amber); }
.pchip.empty { background: rgba(255,255,255,.4); color: var(--muted); }

/* jogo ao vivo */
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.score .side-t { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.score .side-t.r { justify-content: flex-end; text-align: right; }
.score .num { font-size: 80px; line-height: 1; white-space: nowrap; text-box: trim-both cap alphabetic; padding: 6px 0; }
.feed { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.fe { display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.fe .m { width: 38px; font-weight: 700; color: var(--muted); flex: none; }
.fe.goal { background: linear-gradient(90deg, var(--green1), #f1fbe7); font-weight: 600; }
.fe.red { background: #ffe3e7; }
.fe.yellow { background: #fff6d8; }
.fe.inj { background: #ffeede; }
.fe.sub { background: var(--lilac1); }
.mini { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini:last-child { border-bottom: 0; }
.mini .r { text-align: right; }
.awl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wmeta { display: grid; grid-template-columns: 1fr 110px 1fr; gap: 6px; margin: -2px 0 6px; font-size: 11px; line-height: 1.3; }
.wmeta .r { text-align: right; } .wmeta .c { text-align: center; } .pinkt { color: var(--pink3); }
.mini .sc { text-align: center; font-weight: 700; background: var(--soft); border-radius: 8px; padding: 2px 0; }
.mini.flash .sc { background: var(--green2); color: #fff; }

/* modal */
#modal { position: fixed; inset: 0; background: rgba(27, 26, 33, .38); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
#modal .box { background: #fff; border-radius: 28px; padding: 24px; width: min(640px, 100%); max-height: 90vh; overflow: auto; }
#modal .box.wide { width: min(900px, 100%); }
#modal h2 { margin: 0 0 8px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 60; font-weight: 500; }

/* tela inicial */
.start { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; }
.start .hero { background: linear-gradient(165deg, #fff 0%, var(--lilac1) 45%, var(--lilac2) 100%); border-radius: 36px; padding: 48px; width: min(760px, 100%); text-align: center; }
.start .hero h1 { font-size: 64px; margin: 6px 0; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tcard { background: var(--card); border-radius: 20px; padding: 14px; cursor: pointer; display: flex; gap: 12px; align-items: center; border: 2px solid transparent; }
.tcard:hover { border-color: var(--lilac2); }
.tcard.on { border-color: var(--ink); }
.stars { color: #f0a400; letter-spacing: 1px; font-size: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
pre.txt { white-space: pre-wrap; font-family: inherit; margin: 0; line-height: 1.6; }

/* copas, estaduais e calendário multi-competição */
.pill.cup { background: var(--pink1); }
.pill.cup.on { background: var(--ink); color: #fff; }
.cups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cupc { padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--green1), var(--lilac2)); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cupc:hover { filter: brightness(.97); }
.comp { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 11px; font-weight: 600; }
.comp.cup { background: var(--pink1); color: var(--pinkInk); }
.win { font-weight: 700; }
.mini.hov { cursor: pointer; }
/* marca */
:root { --brand: #173f30; }
.brandimg { display: inline-block; width: auto; object-fit: contain; vertical-align: middle; }
.logo { color: var(--brand); }
.hero h1 { color: var(--brand); }

/* sala de troféus */
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.trophy { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--soft); }
.trophy .cup { display: flex; flex-direction: column; align-items: center; font-size: 22px; line-height: 1; min-width: 34px; }
.trophy .cup b { font-size: 13px; margin-top: 2px; }

/* escalação por arrastar */
.pchip.slot, .pchip.res { cursor: grab; user-select: none; }
.pchip.res { min-width: 64px; }
.pchip.off { opacity: .45; cursor: not-allowed; }
.pchip.sel { outline: 2px solid #4b6bfb; }
.pchip.dragging { opacity: .4; }
.over { outline: 2px dashed #4b6bfb !important; outline-offset: 2px; }
.dropzone { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 8px; border: 2px dashed var(--line); border-radius: 14px; }
tr[draggable="true"] { cursor: grab; }
.subgrid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
#modal .pitch .pchip { min-width: 0; flex: 1 1 0; max-width: 84px; padding: 5px 4px; }
#modal .pitch .ln { gap: 6px; }
#modal .pitch { min-height: 420px; padding: 24px 10px; }
#modal .pitch .pk-c { width: 80px; height: 80px; }

/* calendário mensal */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cwd { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.cday { min-height: 84px; border-radius: 12px; background: var(--soft); padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.cday.void { background: transparent; }
.cday.has { cursor: pointer; }
.cday.has:hover { outline: 2px solid var(--line); }
.cday.past { opacity: .8; }
.cday.today { outline: 2px solid var(--brand, #6c5ce7); background: #fff; }
.cday .cn { font-weight: 700; font-size: 12px; }
.cm { background: #fff; border-radius: 8px; padding: 4px 6px; display: flex; flex-direction: column; gap: 1px; border-left: 3px solid #b8c3ff; line-height: 1.25; }
.cm.cup { border-left-color: #f7b267; }
.cm.V { border-left-color: #2ecc71; } .cm.E { border-left-color: #b0b0b0; } .cm.D { border-left-color: #e74c3c; }
.cm .cc { font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* resumo pós-jogo */
.strow { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 6px 0; }
.strow > span:last-child { text-align: right; }
.stmid { text-align: center; }
.stbar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: var(--soft); margin-top: 3px; }
.stbar i { background: var(--sea3); } .stbar b { background: var(--sun2); }
.tvbox { background: #16161d; color: #f3f1ff; border-radius: 18px; padding: 16px 18px; position: relative; }
.tvbox .tvtag { display: inline-block; background: #ffc96b; color: #2a1806; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.tvbox p { margin: 0; line-height: 1.6; font-size: 14px; }

/* auxiliar */
.asst { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.asst:last-child { border-bottom: 0; }
.asst > span { font-size: 16px; line-height: 1.2; }
.asst.hot { background: #fff4e0; border-radius: 10px; padding: 8px; border-bottom: 0; margin-bottom: 4px; }

/* saúde financeira */
.grade { width: 74px; height: 74px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-family: 'Teko', sans-serif; font-weight: 600; font-size-adjust: cap-height 0.78; font-size: 40px; }
.grade.gA { background: linear-gradient(160deg, var(--sea1), var(--sea2)); color: var(--seaInk); }
.grade.gB { background: linear-gradient(160deg, #f3f1ff, var(--lilac2)); color: var(--lilacInk); }
.grade.gC { background: linear-gradient(160deg, var(--sun1), var(--sun2)); color: var(--sunInk); }
.grade.gD { background: #1b1a21; color: #ffc96b; }
.biz { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz:last-child { border-bottom: 0; }

/* navegação de ligas */
.navgrp { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ng { display: flex; flex-direction: column; gap: 6px; }
.nglab { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.ng select { min-width: 220px; }
.tile .val small.ord { font-size: .42em; vertical-align: .9em; margin-left: 2px; }

/* seletor de divisão: controle segmentado, distinto das pílulas de país */
.divsel { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 20, 40, .08); }
.segb { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 6px 12px 6px 6px; border-radius: 10px; font: 600 12px/1 inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.segb b.dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--soft); color: var(--ink); font-size: 16px; line-height: 1; padding-top: 2px; }
.segb:hover { color: var(--ink); }
.segb.on { background: var(--lilac1); color: var(--lilacInk); }
.segb.on b.dot { background: var(--lilacInk); color: #fff; }

.nf { display: inline-block; margin-right: 6px; font-size: 13px; line-height: 1; vertical-align: -1px; }

/* ícones da sala de troféus por tipo de competição */
.trophy .cup { min-width: 40px; gap: 4px; }
.trophy .cup b { font-family: 'Teko', sans-serif; font-weight: 600; font-size: 18px; line-height: 1; margin: 0; }
.tic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; }
.tic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tc-world .tic { background: linear-gradient(160deg, #ffe9a8, #f5c04a); color: #6b4a00; }
.tc-cont .tic { background: linear-gradient(160deg, #e6e3ff, #b9b2ff); color: #2f2780; }
.tc-cont .tic svg { fill: rgba(47, 39, 128, .18); }
.tc-league .tic { background: linear-gradient(160deg, #d9f1f4, #9dd3dc); color: #0f4c58; }
.tc-cup .tic { background: linear-gradient(160deg, #ffe2d1, #ffb995); color: #7a3210; }
.tc-super .tic { background: linear-gradient(160deg, #fff1c7, #ffd66e); color: #6b4a00; }
.tc-super .tic svg { fill: rgba(107, 74, 0, .2); }
.tc-state .tic { background: linear-gradient(160deg, #f6e4f4, #e3b6dd); color: #6a2462; }
.tc-lower .tic { background: #e9e9ef; color: #4b4b5c; }

/* caixa de mensagens */
.nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sun2); color: var(--sunInk); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav.on .nbadge { background: #fff; color: var(--ink); }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; cursor: pointer; }
.msg + .msg { margin-top: 4px; }
.msg:hover { background: var(--soft); }
.msg.open { background: var(--soft); }
.msg .mic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; }
.msg .mb { flex: 1; min-width: 0; }
.msg .mh { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg .mh b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.unread .mh b { font-weight: 700; }
.msg.unread .mic { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sun2); }
.msg .mprev { color: #5b5a66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.msg .mtx { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.msg.hot .mh b::before { content: '🚨 '; }
.mf-aux, .mf-car { background: var(--lilac1); color: var(--lilacInk); }
.mf-dir { background: var(--sun1); color: var(--sunInk); }
.mf-mer { background: var(--sea1); color: var(--seaInk); }
.mf-med { background: #ffe3e7; color: #8a1f33; }
.mf-ele { background: #e6f0ff; color: #23407a; }
.mf-imp { background: var(--soft); color: var(--ink); }
.hsub { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; } .hsub span { white-space: nowrap; }

/* busca de jogadores */
.bq select, .bq input { font-size: 13px; }
.bqf { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }

.monhint { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.bqf .monhint, .row > .monhint { margin: 0 0 0 -2px; }
.zone-po { box-shadow: inset 3px 0 0 #f2a541; }

/* ---------- celular (app instalado / PWA) ---------- */
.menubtn, .navback { display: none; }
@media (max-width: 760px) {
  html, body { font-size: 13px; }
  .app { display: block; padding: 0 8px calc(12px + env(safe-area-inset-bottom)); }
  .main { gap: 10px; }
  #content > .grid, .grid { gap: 10px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: 250px; z-index: 70; border-radius: 0 24px 24px 0; transform: translateX(-105%); transition: transform .22s ease; padding-top: calc(18px + env(safe-area-inset-top)); box-shadow: 0 0 40px rgba(0,0,0,.18); }
  body.navopen .side { transform: none; }
  .navback { position: fixed; inset: 0; background: rgba(27,26,33,.35); z-index: 65; }
  body.navopen .navback { display: block; }
  .menubtn { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--soft); font-size: 18px; cursor: pointer; flex: none; }
  .menubtn i { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink3); }
  .top { position: sticky; top: 0; z-index: 40; flex-wrap: wrap; gap: 8px 10px; padding: calc(8px + env(safe-area-inset-top)) 10px 10px; margin: 0 -8px; border-radius: 0 0 20px 20px; box-shadow: 0 6px 18px rgba(27,26,33,.06); }
  .top .tname { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .hsub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .wchip, .top .boardwrap { display: none; }
  #hdract { order: 10; width: 100%; }
  #hdract .btn, #hdract .chip { width: 100%; justify-content: center; }
  #hdract .btn.big { padding: 12px 16px; }
  .card { padding: 14px; border-radius: 20px; overflow-x: auto; }
  .tile { padding: 14px; border-radius: 20px; }
  .tile .val { font-size: 38px; }
  .score .num { font-size: 56px; }
  table.t { font-size: 12px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex: none; }
  .seg { overflow-x: auto; max-width: 100%; }
  #modal { padding: 6px; align-items: flex-end; }
  #modal .box, #modal .box.wide { border-radius: 22px 22px 16px 16px; padding: 16px; max-height: 92vh; width: 100%; }
  .pitch { min-height: 380px; }
  .cal .cday { min-height: 54px; font-size: 10px; }
}
