/* ============================================================
   KINGSFOOT — visual inspirado na Kings League
   preto, branco e dourado (#f4af23), tipografia condensada
   ============================================================ */
:root {
  --bg: #070707; --bg2: #0f0f10; --panel: #151517; --panel2: #1c1c1f; --line: #2a2a2e; --line2: #38383d;
  --gold: #f4af23; --gold2: #ffcf5a; --gold3: #b97f0a; --white: #f5f5f5; --muted: #8d8d95; --muted2: #5d5d64;
  --green: #22c55e; --blue: #2f7cf6; --red: #ef4444; --yellow: #facc15; --purple: #a855f7;
  --head: 'Anton', 'Impact', 'Arial Narrow', sans-serif; --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--white); font-family: var(--body); font-size: 14px; }
body { overflow: hidden; }
button { font-family: var(--cond); cursor: pointer; }
a { color: var(--gold); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: #0b0b0c; } ::-webkit-scrollbar-thumb { background: #34343a; border-radius: 6px; } ::-webkit-scrollbar-thumb:hover { background: var(--gold3); }
#app { height: 100%; }
.muted { color: var(--muted); } .good { color: var(--green); } .bad { color: var(--red); } .warn { color: var(--gold); } .gold { color: var(--gold); }
.n { text-align: right; font-variant-numeric: tabular-nums; } .c { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .mt { margin-top: 12px; } .mb8 { margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0; }

/* ---------- botões ---------- */
.btn { background: #222226; color: var(--white); border: 1px solid #3a3a40; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; transition: .12s; }
.btn:hover { border-color: var(--gold); color: var(--gold2); }
.btn.on { background: var(--gold); color: #000; border-color: var(--gold); }
.btn.sm { padding: 3px 8px; font-size: 12.5px; }
.btn.go { background: var(--gold); color: #000; border-color: var(--gold); }
.btn.go:hover { background: var(--gold2); color: #000; }
.btn.red { border-color: #6b1f1f; color: #ff9d9d; }
.btn:disabled { opacity: .35; cursor: not-allowed; border-color: #3a3a40 !important; color: var(--muted) !important; }
.bigbtn { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #000; border: 0; padding: 10px 22px; border-radius: 8px; font-family: var(--head); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 0 var(--gold3), 0 8px 24px rgba(244,175,35,.25); }
.bigbtn:hover { filter: brightness(1.08); } .bigbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold3); }
.bigbtn.sm { font-size: 16px; padding: 7px 16px; }
input[type=text], input[type=number], select { background: #0c0c0d; color: var(--white); border: 1px solid #3a3a40; border-radius: 6px; padding: 6px 9px; font-family: var(--body); font-size: 14px; }
input:focus, select:focus { outline: none; border-color: var(--gold); }

/* ---------- tela inicial ---------- */
.title { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: radial-gradient(ellipse at 50% 30%, #2a1f06 0%, #0b0905 45%, #000 80%); position: relative; overflow: hidden; }
.title::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(244,175,35,.035) 60px 62px); pointer-events: none; } /* só decoração: o clique passa */
.logo { text-align: center; position: relative; }
.logo .crown { font-size: 64px; filter: drop-shadow(0 0 22px rgba(244,175,35,.6)); }
.logo h1 { font-family: var(--head); font-size: 86px; margin: 0; line-height: .95; letter-spacing: 2px; background: linear-gradient(180deg, #fff 0%, #ffe39a 55%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo h1 b { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.logo .sub { font-family: var(--cond); font-size: 20px; letter-spacing: 6px; color: var(--muted); text-transform: uppercase; }
.tmenu { display: flex; flex-direction: column; gap: 12px; width: 340px; position: relative; }
.tmenu .bigbtn { width: 100%; }
.tmenu .btn { width: 100%; padding: 10px; font-size: 16px; }
.slots { display: grid; gap: 8px; }
.slot { background: rgba(20,20,22,.9); border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; text-align: left; color: var(--white); font-family: var(--body); }
.slot:hover { border-color: var(--gold); }
.slot b { font-family: var(--cond); font-size: 17px; color: var(--gold); }
.credits { position: absolute; bottom: 14px; color: var(--muted2); font-size: 12px; text-align: center; width: 100%; }

/* ---------- novo jogo ---------- */
.newg { height: 100%; display: grid; grid-template-rows: auto auto auto 1fr; background: var(--bg); }
.newg .top { display: flex; align-items: center; gap: 16px; padding: 14px 22px; background: #000; border-bottom: 2px solid var(--gold); }
.newg .top h2 { font-family: var(--head); font-size: 28px; margin: 0; letter-spacing: 1px; }
.ltabs { display: flex; gap: 4px; padding: 10px 22px 0; background: #0b0b0c; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ltab { background: transparent; border: 0; color: var(--muted); padding: 10px 16px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border-bottom: 3px solid transparent; white-space: nowrap; }
.ltab:hover { color: var(--white); } .ltab.on { color: var(--gold); border-color: var(--gold); }
.ngbody { display: grid; grid-template-columns: 1fr 420px; gap: 18px; padding: 18px 22px; overflow: hidden; min-height: 0; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; overflow-y: auto; align-content: start; padding-right: 6px; }
.tcard { border-radius: 10px; padding: 14px 12px; cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; transition: .12s; }
.tcard:hover { transform: translateY(-2px); }
.tcard.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 8px 26px rgba(244,175,35,.25); }
.tcard .sn { font-family: var(--head); font-size: 34px; line-height: 1; opacity: .95; }
.tcard .nm { font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; }
.tcard .pw { position: absolute; right: 10px; top: 10px; font-family: var(--head); font-size: 20px; }
.tside { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; display: flex; flex-direction: column; }
.tside .hd { padding: 18px; display: flex; gap: 14px; align-items: center; }
.tside .hd h3 { margin: 0; font-family: var(--head); font-size: 28px; letter-spacing: .5px; }
.tside .bd { padding: 14px 18px; flex: 1; }
.tside .ft { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }

/* ---------- casca do jogo ---------- */
.shell { height: 100%; display: grid; grid-template-rows: 58px 1fr; grid-template-columns: 220px 1fr; }
.topbar { grid-column: 1 / 3; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #000; border-bottom: 2px solid var(--gold); }
.brand { font-family: var(--head); font-size: 22px; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 400; }
.topbar .club { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-left: 1px solid var(--line); }
.topbar .club .nm { font-family: var(--cond); font-weight: 800; font-size: 19px; text-transform: uppercase; }
.topbar .date { font-family: var(--cond); font-weight: 700; font-size: 17px; color: var(--muted); text-transform: uppercase; }
.topbar .next { font-size: 12.5px; color: var(--muted); max-width: 360px; line-height: 1.25; }
.topbar .next b { color: var(--white); }
.side { background: #0b0b0c; border-right: 1px solid var(--line); overflow-y: auto; padding: 10px 0 20px; }
.side h4 { margin: 14px 16px 6px; font-family: var(--cond); font-size: 12.5px; letter-spacing: 2px; color: var(--muted2); text-transform: uppercase; }
.side button { display: flex; width: 100%; align-items: center; gap: 10px; background: transparent; border: 0; color: #c9c9cf; text-align: left; padding: 8px 16px; font-size: 15.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-left: 3px solid transparent; }
.side button:hover { color: #fff; background: #151517; }
.side button.on { color: var(--gold); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(244,175,35,.12), transparent); }
.side button i { font-style: normal; width: 20px; text-align: center; }
.side .badge { margin-left: auto; background: var(--gold); color: #000; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.main { overflow-y: auto; padding: 18px 22px 40px; min-width: 0; }
.ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ph h2 { margin: 0; font-family: var(--head); font-size: 30px; letter-spacing: .8px; text-transform: uppercase; font-weight: 400; }
.ph h2 small { font-family: var(--cond); font-size: 17px; color: var(--muted); letter-spacing: .5px; margin-left: 8px; }

/* ---------- painéis e tabelas ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; overflow-x: auto; }
.panel > h3 { margin: 0; padding: 10px 14px; font-family: var(--cond); font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: #1d1d20; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.panel > h3 .row { margin-left: auto; }
.panel > h3::before { content: ''; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.pb { padding: 12px 14px; }
.cols { display: grid; gap: 14px; } .c2 { grid-template-columns: 1fr 1fr; } .c3 { grid-template-columns: 1fr 1fr 1fr; } .c21 { grid-template-columns: 2fr 1fr; } .c12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1150px) { .c2, .c3, .c21, .c12 { grid-template-columns: 1fr; } }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-family: var(--cond); font-weight: 800; font-size: 12.5px; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; padding: 7px 8px; border-bottom: 1px solid var(--line2); background: #18181b; position: sticky; top: 0; white-space: nowrap; }
table.t th.n, table.t th.c { text-align: center; }
table.t th.sort { cursor: pointer; } table.t th.sort:hover, table.t th.on { color: var(--gold); }
table.t td { padding: 6px 8px; border-bottom: 1px solid #222226; white-space: nowrap; }
table.t tr:hover td { background: #1d1d21; }
table.t tr.click { cursor: pointer; }
table.t tr.me td { background: rgba(244,175,35,.09); }
table.t tr.sel td { background: rgba(244,175,35,.2); }
table.t td.nm { font-weight: 600; white-space: normal; }
.zone { display: inline-block; width: 4px; height: 20px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.z1 { background: var(--gold); } .z2 { background: var(--green); } .z3 { background: var(--blue); } .z4 { background: var(--red); } .z0 { background: transparent; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; } .legend span { display: flex; align-items: center; gap: 4px; }
.form { display: inline-flex; gap: 2px; } .form i { width: 17px; height: 17px; border-radius: 3px; font-style: normal; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: var(--cond); }
.form i.V { background: var(--green); color: #000; } .form i.D { background: #4a1d1d; color: #ff9d9d; }
.kv { width: 100%; border-collapse: collapse; } .kv td { padding: 5px 0; border-bottom: 1px solid #222226; } .kv td:first-child { color: var(--muted); } .kv td:last-child { text-align: right; font-weight: 600; }

/* escudos, posições, médias */
.crest { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-family: var(--head); letter-spacing: .3px; flex-shrink: 0; border: 2px solid; line-height: 1; }
.tn { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.pos { display: inline-block; min-width: 24px; text-align: center; border-radius: 4px; padding: 1px 4px; font-family: var(--cond); font-weight: 800; font-size: 12.5px; color: #000; }
.ovr { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; border-radius: 5px; font-family: var(--head); font-size: 15px; letter-spacing: .3px; }
.o90 { background: linear-gradient(135deg, #fff4c2, var(--gold) 60%, #ffdf7e); color: #000; } .o85 { background: var(--gold); color: #000; } .o80 { background: #d9d9de; color: #000; } .o75 { background: #8d6a3c; color: #fff; } .o70 { background: #4a4a50; color: #fff; } .o0 { background: #2a2a2e; color: #bbb; }
.att { display: inline-block; min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.a90 { color: #ffd45e; } .a80 { color: #b6f09c; } .a70 { color: #e8e8e8; } .a60 { color: #aaa; } .a0 { color: #777; }
.cond { display: inline-block; width: 46px; height: 7px; background: #2a2a2e; border-radius: 4px; overflow: hidden; vertical-align: middle; } .cond i { display: block; height: 100%; }
.flag { font-family: var(--cond); font-weight: 700; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.wild { font-family: var(--cond); font-size: 11px; font-weight: 800; background: var(--purple); color: #fff; border-radius: 3px; padding: 0 4px; margin-left: 4px; vertical-align: middle; }
.tag { font-family: var(--cond); font-size: 11px; font-weight: 800; border-radius: 3px; padding: 0 5px; margin-left: 4px; vertical-align: middle; background: #333; color: #ddd; text-transform: uppercase; }

/* abas */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line2); margin-bottom: 14px; flex-wrap: wrap; }
.tab { background: transparent; border: 0; color: var(--muted); padding: 9px 14px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--white); } .tab.on { color: var(--gold); border-bottom-color: var(--gold); }

/* caixa de entrada */
.inbox { display: grid; grid-template-columns: 380px 1fr; gap: 14px; min-height: 520px; }
.mlist { max-height: calc(100vh - 170px); overflow-y: auto; }
.mi { padding: 10px 14px; border-bottom: 1px solid #222226; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.mi:hover { background: #1b1b1e; } .mi.sel { background: rgba(244,175,35,.13); box-shadow: inset 3px 0 0 var(--gold); }
.mi .s { font-weight: 600; } .mi.unread .s { font-weight: 800; color: #fff; } .mi.unread .s::before { content: '● '; color: var(--gold); font-size: 10px; }
.mi .f { color: var(--muted); font-size: 12.5px; } .mi .d { color: var(--muted); font-size: 12px; text-align: right; }
.mview2 { padding: 18px 22px; } .mview2 h3 { font-family: var(--cond); font-size: 24px; margin: 0 0 4px; font-weight: 800; } .mview2 .meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.mview2 .txt { white-space: pre-wrap; line-height: 1.55; font-size: 14.5px; color: #e2e2e6; }

/* notícias */
.news { display: grid; gap: 10px; }
.nitem { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; border-left: 4px solid var(--line2); }
.nitem.big { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(244,175,35,.08), var(--panel) 40%); }
.nitem h4 { margin: 2px 0 6px; font-family: var(--cond); font-size: 19px; font-weight: 800; }
.nitem .cat { font-family: var(--cond); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.nitem p { margin: 0; white-space: pre-wrap; color: #cfcfd5; line-height: 1.45; }

/* ficha (carta) do jogador */
.pcard { width: 250px; border-radius: 16px; padding: 16px; position: relative; color: #000; background: linear-gradient(160deg, #fff6d6 0%, var(--gold) 45%, #c48612 100%); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.4); flex-shrink: 0; }
.pcard.silver { background: linear-gradient(160deg, #ffffff 0%, #c9ccd3 50%, #8e939d 100%); }
.pcard.bronze { background: linear-gradient(160deg, #f3d3b0 0%, #b07b4a 50%, #6e4523 100%); }
.pcard.dark { background: linear-gradient(160deg, #3a3a40 0%, #1a1a1d 60%, #000 100%); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 2px var(--gold); }
.pcard .o { font-family: var(--head); font-size: 54px; line-height: .9; }
.pcard .ps { font-family: var(--cond); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.pcard .num { position: absolute; right: 16px; top: 14px; font-family: var(--head); font-size: 42px; opacity: .25; }
.pcard .nm { font-family: var(--head); font-size: 24px; text-transform: uppercase; margin: 46px 0 6px; line-height: 1.05; border-bottom: 2px solid rgba(0,0,0,.25); padding-bottom: 8px; }
.pcard.dark .nm { border-color: var(--gold); }
.pcard .at { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-family: var(--cond); font-size: 18px; font-weight: 800; }
.pcard .at span b { font-family: var(--head); font-weight: 400; font-size: 20px; margin-right: 6px; }
.pcard .club { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--cond); font-weight: 800; font-size: 14px; text-transform: uppercase; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 10px; font-family: var(--cond); font-size: 15px; font-weight: 700; text-transform: uppercase; }
.bar .tr { height: 9px; background: #2a2a2e; border-radius: 5px; overflow: hidden; } .bar .tr i { display: block; height: 100%; border-radius: 5px; }
.bar b { text-align: right; font-family: var(--head); font-weight: 400; font-size: 17px; }

/* tática */
.tacw { display: grid; grid-template-columns: 460px 1fr; gap: 14px; }
@media (max-width: 1150px) { .tacw { grid-template-columns: 1fr; } }
.tpitch { position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 3 / 4; background: repeating-linear-gradient(0deg, #1f7a3a 0 10%, #23853f 10% 20%); border-radius: 10px; border: 3px solid #0a0a0a; box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); overflow: hidden; }
.tpitch .ln { position: absolute; border: 2px solid rgba(255,255,255,.7); }
.tpitch .slot2 { position: absolute; transform: translate(-50%, -50%); text-align: center; width: 90px; }
.tpitch .slot2[data-k] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.tpitch .slot2.moving { cursor: grabbing; z-index: 5; opacity: .9; }
.tpitch .slot2.moving .dot { transform: scale(1.12); }
.tpitch .slot2.sel .dot, .tpitch .slot2.tgt .dot { box-shadow: 0 0 0 3px var(--gold), 0 0 16px var(--gold); }
.tpitch .slot2:focus-visible { outline: none; } .tpitch .slot2:focus-visible .dot { outline: 3px solid var(--gold); outline-offset: 2px; }
.tpitch .dot { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 16px; border: 3px solid; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.tpitch .lbl2 { font-family: var(--cond); font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px #000, 0 0 2px #000; margin-top: 2px; line-height: 1.05; }
.tpitch .ord { position: absolute; top: -6px; right: 18px; background: #000; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; width: 19px; height: 19px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--cond); }
.olist .ent { display: grid; grid-template-columns: 34px 28px 1fr auto auto auto auto; gap: 8px; align-items: center; padding: 5px 10px; border-bottom: 1px solid #222226; }
.olist .ent.gk { background: rgba(244,175,35,.06); }
.olist .ent .k { font-family: var(--head); font-size: 15px; color: var(--gold); text-align: center; }
.olist .ent.bench .k { color: var(--muted); }
.olist .sep { padding: 6px 10px; font-family: var(--cond); font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; background: #18181b; }
.olist .ent.dragging { opacity: .4; } .olist .ent.over { box-shadow: inset 0 2px 0 var(--gold); }
.olist .ent[draggable=true] { cursor: grab; }
.seg { display: inline-flex; border: 1px solid #3a3a40; border-radius: 6px; overflow: hidden; }
.seg button { background: #1a1a1d; color: var(--muted); border: 0; padding: 6px 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; border-right: 1px solid #3a3a40; }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--gold); color: #000; }

/* cartas secretas */
.kcard { display: inline-flex; flex-direction: column; justify-content: space-between; width: 130px; height: 180px; border-radius: 12px; padding: 12px; color: #000; font-family: var(--head); position: relative; box-shadow: 0 8px 22px rgba(0,0,0,.5); vertical-align: top; }
.kcard .kn { font-size: 22px; line-height: 1; }
.kcard .kd { font-family: var(--body); font-size: 11.5px; line-height: 1.25; font-weight: 600; }
.kcard .kc { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: 54px; opacity: .2; }
.cards { display: flex; gap: 10px; flex-wrap: wrap; }

/* chaveamento */
.bracket { display: flex; gap: 26px; overflow-x: auto; padding: 6px 2px 10px; }
.bcol { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 230px; }
.bcol h5 { margin: 0 0 4px; font-family: var(--cond); font-size: 13px; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; text-align: center; }
.bm { background: #1b1b1e; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.bm .bt { display: flex; align-items: center; gap: 8px; padding: 6px 9px; font-weight: 600; }
.bm .bt + .bt { border-top: 1px solid #2a2a2e; }
.bm .bt.w { color: #fff; background: rgba(244,175,35,.12); } .bm .bt.l { color: var(--muted); }
.bm .bt .sc { margin-left: auto; font-family: var(--head); font-size: 16px; }
.bm .bt .so { font-size: 11px; color: var(--gold); font-family: var(--cond); font-weight: 800; }
.champ { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; background: linear-gradient(90deg, rgba(244,175,35,.25), transparent); border: 1px solid var(--gold3); margin-bottom: 14px; }
.champ .tr { font-size: 36px; }
.champ b { font-family: var(--head); font-size: 26px; font-weight: 400; letter-spacing: .5px; }

/* resultados */
.res { display: grid; grid-template-columns: 1fr 74px 1fr; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #222226; }
.res .h { text-align: right; justify-content: flex-end; } .res .sc { text-align: center; font-family: var(--head); font-size: 17px; background: #0c0c0d; border-radius: 5px; padding: 2px 0; }
.res .sc small { display: block; font-family: var(--cond); font-size: 11px; color: var(--gold); font-weight: 800; letter-spacing: .5px; }
.res.me { background: rgba(244,175,35,.07); }
.res .tn { font-weight: 600; }

/* calendário */
.fx { display: grid; grid-template-columns: 120px 1fr 90px 1fr 260px; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #222226; }
.fx .d { color: var(--muted); font-family: var(--cond); font-weight: 700; font-size: 15px; } .fx .cmp { color: var(--muted); font-size: 12.5px; }
.fx .h { text-align: right; justify-content: flex-end; display: flex; } .fx .sc { text-align: center; font-family: var(--head); font-size: 17px; }
.fx.done .sc.V { color: var(--green); } .fx.done .sc.D { color: var(--red); }
.fx.ev { color: var(--gold); font-family: var(--cond); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }

/* modal e aviso */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(3px); }
#modal.open { display: flex; }
.mbox { background: var(--panel); border: 1px solid var(--gold3); border-radius: 12px; width: min(560px, 94vw); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.mbox.lg { width: min(980px, 96vw); }
.mhead { padding: 12px 16px; background: #000; border-bottom: 2px solid var(--gold); display: flex; align-items: center; font-family: var(--head); font-size: 20px; letter-spacing: .6px; text-transform: uppercase; border-radius: 12px 12px 0 0; }
.mhead .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; }
.mbody { padding: 16px; overflow-y: auto; line-height: 1.5; }
.mfoot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.mfoot:empty { display: none; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(30px); background: #000; border: 1px solid var(--gold); color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; font-weight: 600; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.pick { display: grid; gap: 6px; } .pick button { text-align: left; }
.choice { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line2); background: #1b1b1e; border-radius: 8px; color: var(--white); font-family: var(--body); font-size: 14px; width: 100%; }
.choice:hover { border-color: var(--gold); }

/* regras */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.rule .rt { font-family: var(--head); font-size: 15px; color: var(--gold); letter-spacing: .5px; }
.rule h4 { margin: 2px 0 6px; font-family: var(--cond); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.rule p { margin: 0; color: #cfcfd5; line-height: 1.5; }

/* ======================== PARTIDA ======================== */
.match { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; background: #050505; }
.sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; background: #000; border-bottom: 2px solid var(--gold); }
.sbt { display: flex; align-items: center; gap: 14px; padding: 8px 18px; font-family: var(--head); font-size: 24px; letter-spacing: .5px; text-transform: uppercase; overflow: hidden; }
.sbt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbt.away { flex-direction: row-reverse; text-align: right; }
.sbt .g { font-size: 46px; min-width: 56px; text-align: center; background: rgba(0,0,0,.6); border-radius: 8px; line-height: 1.15; color: #fff; text-shadow: 0 1px 2px #000; } /* sempre branco: o lado de dentro da faixa é preto (times de cor clara sumiam) */
.sbt.home .g { margin-left: auto; } .sbt.away .g { margin-right: auto; }
.sbc { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 24px; min-width: 200px; background: #0c0c0d; }
.sbc .clk { font-family: var(--head); font-size: 40px; color: #fff; line-height: 1; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.sbc .ph2 { font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 3px; white-space: nowrap; }
.tl { position: relative; height: 26px; background: #0d0d0e; border-bottom: 1px solid var(--line); display: flex; }
.tl .seg2 { position: relative; height: 100%; border-right: 1px solid #000; font-family: var(--cond); font-size: 11.5px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.65); text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.tl .esc { background: #2b2b31; } .tl .nor { background: #1a1a1d; } .tl .x2 { background: #6b4a05; color: #ffd36b; } .tl .dice { background: #263c66; color: #9fc2ff; } .tl .mb { background: #5b1414; color: #ffb3b3; }
.tl .cur { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--gold); box-shadow: 0 0 8px var(--gold); z-index: 2; transition: left .2s linear; }
.tl .mk { position: absolute; top: 3px; font-size: 13px; z-index: 1; transform: translateX(-50%); }
.mgrid { display: grid; grid-template-columns: 1fr 330px; gap: 0; min-height: 0; }
.mleft { display: grid; grid-template-rows: 1fr auto auto; min-height: 0; min-width: 0; }
.pitchwrap { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px; background: radial-gradient(ellipse at center, #121212, #000 75%); }
.pitchwrap canvas { max-width: 100%; max-height: 100%; aspect-ratio: 1000 / 640; border-radius: 10px; }
.banner { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-family: var(--head); font-size: 22px; letter-spacing: 2px; padding: 6px 22px; border-radius: 30px; background: rgba(0,0,0,.75); border: 2px solid var(--gold); color: var(--gold); text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.flash { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.flash .fx2 { font-family: var(--head); font-size: 110px; letter-spacing: 4px; color: #fff; text-shadow: 0 0 30px var(--gold), 0 6px 0 #000; animation: pop 1.6s ease-out forwards; text-transform: uppercase; text-align: center; line-height: .95; }
.flash .fx2 small { display: block; font-size: 34px; color: var(--gold); letter-spacing: 2px; }
.flash .cardfx { animation: flip 1.8s ease-out forwards; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 15% { transform: scale(1.12); opacity: 1; } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes flip { 0% { transform: rotateY(90deg) scale(.6); opacity: 0; } 20% { transform: rotateY(0) scale(1.15); opacity: 1; } 35% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.dicebox { width: 150px; height: 150px; border-radius: 26px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 90px; box-shadow: 0 0 40px rgba(244,175,35,.6), inset 0 -8px 0 #ccc; }
.dicebox.roll { animation: roll .25s linear infinite; }
@keyframes roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.9); } 100% { transform: rotate(360deg) scale(1); } }
.cmbar2 { padding: 10px 18px; font-size: 17px; font-weight: 600; min-height: 46px; display: flex; align-items: center; gap: 12px; background: #141416; border-top: 1px solid var(--line); transition: background .2s; }
.cmbar2 .t { font-family: var(--head); font-size: 16px; opacity: .8; min-width: 48px; }
.cmbar2.goal { font-family: var(--head); font-size: 24px; letter-spacing: 1px; animation: gpulse .6s ease-in-out 3; }
@keyframes gpulse { 50% { filter: brightness(1.4); } }
.mctl2 { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #000; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mctl2 .lbl { font-family: var(--cond); font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin: 0 4px 0 8px; }
.mright { border-left: 1px solid var(--line); background: #0b0b0c; display: grid; grid-template-rows: auto auto 1fr; min-height: 0; }
.kact { padding: 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.kbtn { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 0; color: #fff; text-align: left; font-family: var(--head); font-size: 18px; letter-spacing: .8px; text-transform: uppercase; box-shadow: 0 4px 0 rgba(0,0,0,.45); transition: .1s; }
.kbtn small { display: block; font-family: var(--cond); font-size: 13px; letter-spacing: .5px; opacity: .85; font-weight: 700; }
.kbtn .ic { font-size: 26px; }
.kbtn.card { background: linear-gradient(180deg, #2fd46d, #149447); }
.kbtn.pres { background: linear-gradient(180deg, #4b8dff, #1d56d1); }
.kbtn:hover:not(:disabled) { filter: brightness(1.1); } .kbtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.45); }
.kbtn:disabled { filter: grayscale(.85) brightness(.55); cursor: not-allowed; }
.mtabs2 { display: flex; border-bottom: 1px solid var(--line); }
.mtabs2 button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 9px 4px; font-weight: 800; font-size: 13.5px; text-transform: uppercase; border-bottom: 3px solid transparent; }
.mtabs2 button.on { color: var(--gold); border-color: var(--gold); }
.mpane { overflow-y: auto; min-height: 0; padding: 8px 10px; }
.evl { display: grid; gap: 4px; }
.evr { display: grid; grid-template-columns: 44px 22px 1fr; gap: 6px; align-items: center; font-size: 13.5px; padding: 5px 7px; border-radius: 6px; background: #141416; border-left: 3px solid; }
.evr .mn { font-family: var(--head); font-size: 14px; color: var(--muted); }
.comm2 .l { padding: 4px 4px; border-bottom: 1px solid #18181b; font-size: 13.5px; color: #c8c8ce; }
.comm2 .l b { font-family: var(--head); font-weight: 400; color: var(--muted); margin-right: 6px; font-size: 13px; }
.comm2 .l.i2 { color: #fff; } .comm2 .l.i3 { color: var(--gold2); font-weight: 700; }
.mst { width: 100%; border-collapse: collapse; font-size: 14px; } .mst td { padding: 6px 4px; border-bottom: 1px solid #1f1f22; text-align: center; } .mst td:nth-child(2) { color: var(--muted); font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.mst td:first-child, .mst td:last-child { font-weight: 700; width: 60px; }
.rt2 td { padding: 4px 5px !important; font-size: 13px; }

/* pré-jogo / relatório */
.pre { max-width: 1100px; margin: 0 auto; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px; border-radius: 14px; background: linear-gradient(90deg, var(--hc, #222) 0%, #0b0b0c 42%, #0b0b0c 58%, var(--ac, #222) 100%); border: 1px solid var(--line2); margin-bottom: 14px; }
.vs .t { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-size: 30px; text-transform: uppercase; letter-spacing: .5px; }
.vs .t.a { flex-direction: row-reverse; text-align: right; }
.vs .mid { text-align: center; } .vs .mid .big { font-family: var(--head); font-size: 54px; line-height: 1; white-space: nowrap; } .vs .mid .sm { font-family: var(--cond); font-weight: 800; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.soseq { display: flex; gap: 6px; flex-wrap: wrap; } .soseq i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; }
.soseq i.ok { background: var(--green); color: #000; } .soseq i.no { background: #5a1d1d; color: #ff9d9d; }

/* ---------- telas menores ---------- */
.topbar .club .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 178px 1fr; }
  .side button { font-size: 14px; padding: 7px 12px; }
  .inbox { grid-template-columns: 1fr; } .mlist { max-height: 240px; }
  .topbar .next { display: none; }
  .fx { grid-template-columns: 70px 1fr 70px 1fr; } .fx .cmp { grid-column: 1 / -1; padding-left: 70px; }
  .ngbody { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .brand span { display: none; }
  .topbar .club .flag { display: none; }
  .main { padding: 14px 14px 40px; }
}
@media (max-width: 1000px) {
  .match { display: block; overflow-y: auto; }
  .mgrid { grid-template-columns: 1fr; }
  .mright { border-left: 0; border-top: 1px solid var(--line); }
  .mpane { max-height: 420px; }
  .sbt { font-size: 17px; padding: 8px 10px; gap: 8px; } .sbt .g { font-size: 34px; min-width: 44px; } .sbc { min-width: 130px; padding: 4px 10px; } .sbc .clk { font-size: 30px; }
  .kact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) { .vs { padding: 14px; gap: 10px; } .vs .t { font-size: 20px; gap: 8px; } .vs .t .crest { width: 44px !important; height: 44px !important; font-size: 18px !important; } .vs .mid .big { font-size: 40px; } }

.stars { color: var(--gold); letter-spacing: 1px; font-size: 15px; white-space: nowrap; } .stars.sm { font-size: 12px; letter-spacing: 0; }
.plwrap { display: flex; gap: 18px; align-items: flex-start; }
.seg { max-width: 100%; }
@media (max-width: 1000px) { .plwrap { flex-direction: column; align-items: stretch; } .plwrap .pcard { margin: 0 auto; } }
.mpst { font-size: 12px; color: var(--muted); max-width: 200px; text-align: right; line-height: 1.25; }

/* APOIE (doações) */
.side { display: flex; flex-direction: column; }
.side .apoie { margin-top: auto; position: sticky; bottom: 0; padding: 12px 10px 4px; background: linear-gradient(0deg, #0b0b0c 75%, transparent); }
.side .apoie button { justify-content: center; border: 1px solid var(--gold3); border-left: 1px solid var(--gold3); border-radius: 8px; color: var(--gold); background: rgba(244,175,35,.08); font-family: var(--head); font-weight: 400; letter-spacing: 1px; padding: 9px 10px; }
.side .apoie button:hover { background: var(--gold); color: #000; }
.side .apoie button i { color: #ff4d6d; }
.side .apoie button:hover i { color: #b00020; }
.apoie-qr { display: flex; gap: 18px; align-items: flex-start; margin-top: 10px; flex-wrap: wrap; }
.apoie-qr #apqr { background: #fff; border-radius: 12px; padding: 6px; width: 250px; height: 250px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.apoie-qr #apqr svg { width: 100%; height: 100%; }
.apoie-info { flex: 1; min-width: 220px; }
.apoie-amt { font-family: var(--head); font-size: 34px; color: var(--gold); line-height: 1.1; }

/* central do clube */
.meter { margin: 8px 0; } .meter .mv2 { display: flex; align-items: baseline; gap: 8px; } .meter .mv2 b { font-family: var(--head); font-size: 26px; font-weight: 400; } .meter .mv2 span { color: var(--muted); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; }
.meter .tr { height: 10px; background: #2a2a2e; border-radius: 6px; overflow: hidden; margin-top: 4px; } .meter .tr i { display: block; height: 100%; border-radius: 6px; }
.bigstat { font-family: var(--head); font-size: 30px; line-height: 1.1; } .bigstat small { font-family: var(--cond); font-size: 15px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; cursor: pointer; } .chips span { background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 5px 12px; font-size: 13px; color: #cfcfd5; } .chips span:hover { border-color: var(--gold); } .chips b { color: #fff; font-family: var(--cond); font-size: 15px; }

/* configuração remota: aviso e bloqueio */
#kfbanner { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 40; background: #000; border: 1px solid var(--gold); color: #fff; border-radius: 10px; padding: 8px 10px 8px 14px; display: flex; gap: 12px; align-items: center; max-width: min(760px, 94vw); box-shadow: 0 8px 24px rgba(0,0,0,.6); font-weight: 600; }
#kfbanner button { background: none; border: 0; color: var(--muted); font-size: 16px; }
#kfover { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.kfover-box { max-width: 460px; text-align: center; background: var(--panel); border: 1px solid var(--gold3); border-radius: 14px; padding: 26px; }
.kfover-box h2 { font-family: var(--head); font-weight: 400; letter-spacing: 1px; margin: 6px 0; } .kfover-box p { color: #cfcfd5; line-height: 1.5; }

/* ======================== ACESSIBILIDADE ======================== */
:root { --muted2: #7a7a83; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible) { outline: none; }
.menu-btn, .menu-scrim { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ======================== CELULAR ======================== */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .btn { min-height: 38px; } .btn.sm { min-height: 32px; padding: 4px 10px; }
  .seg { flex-wrap: wrap; } .seg button { padding: 8px 10px; }
  table.t td, table.t th { padding: 7px 6px; }

  /* casca: menu vira gaveta */
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1; gap: 6px; padding: 6px 8px; min-height: 56px; }
  .topbar .brand { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; background: #1a1a1d; border: 1px solid var(--line2); border-radius: 8px; color: var(--gold); font-size: 22px; }
  .topbar .club { padding: 0 2px; border-left: 0; gap: 6px; min-width: 0; }
  .topbar .club .nm { font-size: 14px; max-width: 30vw; }
  .topbar .club .crest { width: 28px !important; height: 28px !important; }
  .topbar .date { font-size: 12px; line-height: 1.2; }
  .topbar .bigbtn.sm, #contbtn { font-size: 14px; padding: 9px 12px; white-space: nowrap; flex-shrink: 0; }
  .mpst { display: none; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(82vw, 300px); z-index: 46; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(0,0,0,.6); padding-top: 14px; }
  .shell.menu-open .side { transform: none; }
  .shell.menu-open .menu-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 45; }
  .side button { padding: 11px 18px; font-size: 15px; }
  .main { padding: 12px 12px 90px; }
  .ph { gap: 8px; margin-bottom: 10px; } .ph h2 { font-size: 23px; } .ph h2 small { display: block; margin: 2px 0 0; font-size: 14px; }

  /* cartão do próximo jogo / placar do pré-jogo e relatório */
  .vs { grid-template-columns: 1fr auto 1fr; padding: 12px 8px; gap: 6px; }
  .vs .t, .vs .t.a { flex-direction: column; text-align: center; gap: 4px; font-size: 14px !important; line-height: 1.1; }
  .vs .t span { font-size: 14px !important; }
  .vs .t .crest { width: 38px !important; height: 38px !important; font-size: 14px !important; }
  .vs .mid .big { font-size: 30px !important; } .vs .mid .sm { font-size: 11px; letter-spacing: .5px; }
  .chips { gap: 6px; } .chips span { font-size: 12.5px; padding: 4px 9px; }

  /* caixa de entrada */
  .mlist { max-height: 220px; }
  .mview2 { padding: 14px; } .mview2 h3 { font-size: 20px; }
  .choice { flex-wrap: wrap; } .choice .muted { margin-left: 0 !important; text-align: left !important; width: 100%; }

  /* tela inicial e escolha de time */
  .title { justify-content: flex-start; padding: 40px 0 20px; overflow-y: auto; }
  .logo .crown { font-size: 44px; } .logo h1 { font-size: 52px; }
  .tmenu { width: min(360px, 92vw) !important; }
  .credits { position: static; padding: 18px 16px 0; }
  .newg { display: block; height: 100%; overflow-y: auto; }
  .newg .top { flex-wrap: wrap; padding: 10px 12px; gap: 8px; } .newg .top h2 { font-size: 20px; }
  .ltabs { padding: 6px 8px 0; } .ltab { padding: 8px 10px; font-size: 14px; }
  .ngbody { grid-template-columns: 1fr; padding: 12px; overflow: visible; }
  .tgrid { grid-template-columns: repeat(2, 1fr); overflow: visible; padding-right: 0; }
  .tcard { min-height: 86px; padding: 10px; } .tcard .sn { font-size: 26px; } .tcard .nm { font-size: 14px; }
  .tside { overflow: visible; }

  /* tática */
  .olist .ent { grid-template-columns: 30px 28px 1fr auto auto; gap: 6px; padding: 6px 8px; }
  .olist .ent .cond { display: none; }
  .tpitch .slot2 { width: 70px; } .tpitch .dot { width: 34px; height: 34px; font-size: 14px; } .tpitch .lbl2 { font-size: 12px; }

  /* janelas: viram folha de baixo */
  #modal { align-items: flex-end; }
  .mbox, .mbox.lg { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
  .mbody { padding: 14px; } .mfoot { flex-wrap: wrap; } .mfoot .btn { flex: 1; }
  .apoie-qr #apqr { width: 220px; height: 220px; margin: 0 auto; }

  /* partida */
  .sb { grid-template-columns: 1fr auto 1fr; }
  .sbt { font-size: 12px; padding: 6px 6px; gap: 5px; }
  .sbt .nm { display: none; }
  .sbt .crest { width: 30px !important; height: 30px !important; }
  .sbt .g { font-size: 30px; min-width: 38px; }
  .sbc { min-width: 104px; padding: 2px 6px; } .sbc .clk { font-size: 24px; } .sbc .ph2 { font-size: 10px; letter-spacing: 1px; }
  .tl { height: 14px; } .tl .seg2 { font-size: 0; } .tl .mk { font-size: 10px; top: 0; }
  .pitchwrap { padding: 4px; }
  .banner { font-size: 12px; padding: 3px 10px; top: 8px; letter-spacing: 1px; }
  .flash .fx2 { font-size: 52px; } .flash .fx2 small { font-size: 16px; }
  .dicebox { width: 96px; height: 96px; font-size: 56px; border-radius: 18px; }
  .cmbar2 { font-size: 14px; padding: 8px 10px; min-height: 54px; }
  .mctl2 { gap: 5px; padding: 6px 8px; } .mctl2 .lbl { display: none; } .mctl2 .grow { display: none; }
  .kact { grid-template-columns: 1fr 1fr; padding: 8px; gap: 6px; }
  .kbtn { font-size: 14px; padding: 8px 10px; gap: 8px; } .kbtn .ic { font-size: 20px; } .kbtn small { font-size: 11px; }
  .mtabs2 button { font-size: 12.5px; padding: 9px 2px; }
  .mpane { max-height: none; }
  #kfbanner { top: 62px; }
}
@media (max-width: 380px) {
  .topbar .club .nm { display: none; }
  .tgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
.mcomm { display: contents; }
@media (max-width: 760px) { .mcomm { display: none; } .mctl2 .btn { flex: 1 1 auto; } }
@media (max-width: 760px) {
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcard .nm { overflow-wrap: anywhere; line-height: 1.1; }
  .cols, .ngbody, .inbox, .tacw, .plwrap > div { min-width: 0; }
  .cols > *, .ngbody > *, .inbox > * { min-width: 0; }
}
@media (max-width: 760px) {
  table.sticky3 td:nth-child(3), table.sticky3 th:nth-child(3) { position: sticky; left: 0; z-index: 2; background: var(--panel); box-shadow: 6px 0 8px -6px rgba(0,0,0,.8); }
  table.sticky3 th:nth-child(3) { background: #18181b; z-index: 3; }
  table.sticky3 td.nm { min-width: 120px; max-width: 150px; white-space: normal; }
}
@media (max-width: 760px) { .shell { grid-template-columns: minmax(0, 1fr); } .main { min-width: 0; max-width: 100vw; } .topbar { min-width: 0; max-width: 100vw; } }

/* treino: vantagem e desvantagem */
.seg.wrap { flex-wrap: wrap; height: auto; }
.drill { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.drill .pl { color: #4ade80; } .minus { color: #f87171; }
/* pênaltis especiais */
#flash.drama .fx2 { animation: kfpulse .5s ease-in-out 4 alternate, kfout .3s ease-in 2.6s forwards; }
@keyframes kfout { to { opacity: 0; } }
@keyframes kfpulse { from { transform: scale(.96); } to { transform: scale(1.05); } }
.flash .fx2.pgol { animation: pop 3s ease-out forwards; }
.flash .fx2.pmiss { color: #fecaca; animation: kfshake .45s, kfout .4s ease-in 2.4s forwards; }
@keyframes kfpop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes kfshake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-14px); } 40% { transform: translateX(12px); } 60% { transform: translateX(-8px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { #flash.drama .fx2, .flash .fx2.pmiss { animation: kfout .3s 2.4s forwards; } }

/* treino individual */
.trn td { vertical-align: middle; }
.trn select { max-width: 130px; }
.ldseg button { padding: 4px 8px; font-size: 11px; }
.ldseg button.on.ld-extra { background: #f97316; color: #000; }
.ldseg button.on.ld-poupar { background: #38bdf8; color: #000; }

/* negociação */
.offerbox { border: 1px solid #2a2a2e; border-radius: 10px; padding: 10px 12px; background: #141416; }

/* gritos, instruções e replay */
.mshout { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 2px 0; }
.mshout .lbl { font-family: var(--cond); font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; font-size: 12px; }
.mshout .btn.on { background: var(--gold); color: #000; }
.instsel { margin-left: 6px; font-size: 11px; padding: 2px 4px; max-width: 150px; }
.evr .rpb { padding: 0 6px; font-size: 10px; margin-top: 3px; }
.need { outline: 2px solid #ef4444 !important; }
.fuzzy { opacity: .75; font-style: italic; }

/* conquistas */
.achgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #2a2a2e; border-radius: 10px; background: #141416; opacity: .45; filter: grayscale(1); }
.ach.on { opacity: 1; filter: none; border-color: var(--gold); background: rgba(244,175,35,.08); }
.ach.old { opacity: .75; filter: grayscale(.4); }
.ach .ai { font-size: 30px; }
.ach small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* como jogar */
.helpstep { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #222226; }
.helpstep .hn { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; font-family: var(--head); }
.helpstep p { margin: 4px 0 6px; color: var(--muted); }

/* preleção e coletiva */
.talks { display: flex; flex-wrap: wrap; gap: 8px; }
.talks .choice { flex: 1 1 220px; text-align: left; }
.talks .choice.sel { border-color: var(--gold); background: rgba(244,175,35,.12); }
.talks .choice[disabled] { opacity: .55; cursor: default; }

/* Modo Criativo: editor (lista de times + time) */
.crgrid { grid-template-columns: minmax(180px, 240px) 1fr; align-items: start; }
@media (max-width: 760px) {
  .crgrid { grid-template-columns: 1fr; }
  .crgrid .crteams { max-height: 220px; overflow-y: auto; }
}

/* dado do intervalo: gira em 3D e cai com impacto */
.dicebox.roll3d { animation: tumble .5s linear infinite; box-shadow: 0 0 40px rgba(244,175,35,.5); }
.dicebox.land { animation: land .7s cubic-bezier(.2,1.6,.4,1) both; box-shadow: 0 0 0 6px var(--gold), 0 0 60px rgba(244,175,35,.9); }
@keyframes tumble { 0% { transform: rotateX(0) rotateY(0) translateY(0); } 25% { transform: rotateX(90deg) rotateY(45deg) translateY(-30px); } 50% { transform: rotateX(180deg) rotateY(90deg) translateY(0); } 75% { transform: rotateX(270deg) rotateY(135deg) translateY(-20px); } 100% { transform: rotateX(360deg) rotateY(180deg) translateY(0); } }
@keyframes land { 0% { transform: scale(1.6) translateY(-60px); } 60% { transform: scale(.9) translateY(0); } 80% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* pessoas online agora */
.kfon { display: inline-flex; align-items: center; gap: 4px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .5px; color: #9ae6b4; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.kfon:empty { display: none; }
@media (max-width: 760px) { .topbar .kfon { font-size: 11px; padding: 1px 7px; } }

/* apagar save na tela inicial */
.slotrow { display: flex; gap: 6px; align-items: stretch; }
.slotrow .slot { flex: 1; min-width: 0; }
.slotx { flex: 0 0 42px; background: rgba(20,20,22,.9); border: 1px solid var(--line2); border-radius: 8px; color: #f87171; font-size: 18px; cursor: pointer; }
.slotx:hover { background: #7f1d1d; color: #fff; border-color: #ef4444; }
/* Salvar/Opções no celular: cada save em duas linhas (info em cima, botões embaixo) */
@media (max-width: 760px) {
  .slott tr { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
  .slott td { border: 0 !important; }
  .slott td:nth-child(2) { flex: 1 1 60%; min-width: 0; white-space: normal; }
  .slott td:nth-child(3) { flex: 1 1 100%; padding-top: 0; }
}

/* botão do Discord oficial (ao lado do contador de online) */
.kfdc { display: inline-flex; align-items: center; gap: 5px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .5px; color: #fff; background: #5865f2; border: 1px solid #7983f5; border-radius: 999px; padding: 2px 10px; text-decoration: none; white-space: nowrap; margin-left: 6px; }
.kfdc:hover { background: #4752c4; }
.kfdc svg { flex-shrink: 0; }
.kfx { background: #000; border-color: #3a3a40; }
.kfx:hover { background: #1d1d20; }
@media (max-width: 760px) { .topbar .kfdc { padding: 3px 6px; margin-left: 4px; } .topbar .kfdc span { display: none; } }

/* aviso de cookies (barra discreta no rodapé, uma vez) */
#kfck { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 620px; margin: 0 auto; z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(20,20,22,.97); border: 1px solid var(--line2, #333); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #cfcfd4; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#kfck a { color: var(--gold, #f4af23); }
#kfck button { margin-left: auto; background: var(--gold, #f4af23); color: #000; border: 0; border-radius: 6px; padding: 5px 14px; font-weight: 700; cursor: pointer; }

/* Liga Viva: subiu ou desceu na última rodada real */
.vwar { display: inline-block; margin-left: 3px; font-size: 10px; line-height: 1; vertical-align: middle; }
.vwar.up { color: #22c55e; }
.vwar.dn { color: #ef4444; }
.pcard .o .vwar { font-size: 14px; margin-left: 2px; }

/* sanções em andamento (cartões e suspensão): quem joga com 1 a menos */
.msanc { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .5px; min-height: 0; }
.msanc span { background: rgba(239, 68, 68, .18); color: #fca5a5; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.msanc span.me { background: rgba(250, 204, 21, .18); color: #fde68a; }

/* marketing (Finanças) */
.mktgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 1000px) { .mktgrid { grid-template-columns: 1fr; } }
.mktc { border: 1px solid var(--line, #333); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.02); }
.mktc p { margin: 2px 0; font-size: 13px; line-height: 1.4; }
.mktc .btn { margin-top: auto; white-space: normal; }
.mktc.mk-big { border-color: var(--gold); }
.mkh, .mktcur { display: flex; gap: 10px; align-items: center; }
.mki { font-size: 26px; }
.mkb { font-size: 13px; color: var(--gold); }
.mkr { color: #fca5a5; }
.mkhist { margin-top: 10px; font-size: 13px; line-height: 1.8; }

/* avanço dia a dia: manchetes do dia */
.kfday { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px); z-index: 60; width: min(560px, calc(100vw - 32px)); background: #111114; border: 1px solid var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 6px 24px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.kfday.on { opacity: 1; transform: translate(-50%, 0); }
.kfday b { font-family: var(--head); color: var(--gold); letter-spacing: .5px; }
.kfday .kc { font-family: var(--cond); font-size: 11px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

/* campeonato personalizado: lista de times da janela */
.cmteams { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
.cmt { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line, #2a2a30); border-radius: 8px; cursor: pointer; }
.cmt.on { border-color: var(--gold, #f4af23); background: rgba(244, 175, 35, .08); }
.cmt .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .cmteams { grid-template-columns: 1fr; max-height: 260px; } }

/* carta secreta: escolha entre cartas viradas (verso = logo do KingsFoot) */
.kpick { display: grid; grid-template-columns: repeat(3, 74px); gap: 10px; justify-content: center; }
.kflip { width: 74px; height: 104px; perspective: 700px; cursor: pointer; }
.kflip .kin { position: relative; width: 100%; height: 100%; transition: transform .75s cubic-bezier(.3,.7,.3,1.2); transform-style: preserve-3d; }
.kflip:hover .kin, .kflip:focus .kin { transform: translateY(-5px); }
.kflip.on .kin { transform: rotateY(180deg) scale(1.08); }
.kflip .kb, .kflip .kf { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.55); }
.kflip .kb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 38%, #3a2a08, #0b0b0c 72%); border: 2px solid #f4af23; }
.kflip .kb .kbl { font-family: var(--head); font-size: 10px; letter-spacing: .5px; color: #fff; }
.kflip .kb .kbl b { color: #f4af23; font-weight: normal; }
.kflip .kf { transform: rotateY(180deg); overflow: hidden; }
.kflip .kfc { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-family: var(--head); color: #000; font-size: 14px; line-height: 1.05; border-radius: 10px; }
.kpick.done .kflip:not(.on) { opacity: .2; transition: opacity .5s .3s; pointer-events: none; }
.kpick.done .kflip { cursor: default; }

/* barra de cima em celular estreito: selo online compacto, só o escudo do clube (nada se sobrepõe) */
@media (max-width: 480px) { .topbar .kfon .w { display: none; } .topbar .kfon { flex-shrink: 0; white-space: nowrap; } .topbar .club .nm { display: none; } .topbar .club > div { min-width: 0; } .topbar .date { font-size: 11px; } .topbar .kfdc { flex-shrink: 0; margin-left: 0; } .topbar { gap: 5px; } }

/* busca do mercato */
input.mq { width: 220px; max-width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #111114; color: #fff; font: inherit; }
input.mq:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
@media (max-width: 760px) { input.mq { width: 100%; } }

/* música de fundo: botão de tocar/pausar (tela inicial, opções e menu) */
.kfmus { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid #3a3a40; background: #000; color: #fff; font-family: var(--cond); font-weight: 800; font-size: 14px; cursor: pointer; }
.kfmus[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.kfmusw { padding: 8px 12px 4px; }
.kfmusm { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: var(--cond); font-weight: 800; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.kfmusm[aria-pressed="true"] { color: var(--gold); border-color: rgba(244,175,35,.5); }

/* música: botão só com ícone na barra de cima do jogo */
.kfmust { flex-shrink: 0; width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #3a3a40; background: #000; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.kfmust[aria-pressed="true"] { border-color: var(--gold); }
@media (max-width: 480px) { .topbar .kfmust { display: none; } .kfmust { width: 30px; height: 28px; font-size: 14px; } } /* no celular a música fica no menu lateral; o X volta para a barra */
@media (max-width: 370px) { .topbar #contbtn { padding: 8px 9px; font-size: 13px; } .topbar { gap: 4px; padding-left: 6px; padding-right: 6px; } }

/* Campanha #KingsFoot (post no X) */
.xpsteps { display: flex; gap: 8px; flex-wrap: wrap; }
.xpsteps .btn { text-decoration: none; }
.xpc h3 small { margin-left: 6px; }

/* seletor de idioma (js/i18n.js) */
.kflang button { min-width: 84px; }

/* cena do pênalti do presidente: o letreiro sobe e diminui para não cobrir o campo */
#flash.pscene { align-items: flex-start; padding-top: 2%; }
#flash.pscene .fx2 { font-size: 46px; } #flash.pscene .fx2 small { font-size: 18px; }
@media (max-width: 760px) { #flash.pscene .fx2 { font-size: 24px; letter-spacing: 2px; } #flash.pscene .fx2 small { font-size: 11px; } }
.choice .psty { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.choice .psty .ic { font-size: 22px; flex: none; width: 30px; text-align: center; } .choice .psty .tx { flex: 1; min-width: 0; } .choice .psty .gold { flex: none; font-size: 18px; }
