:root {
    --bg: #0a0a0a;
    --panel: #141414;
    --panel-2: #1c1c1c;
    --line: #2b2b2b;
    --text: #f3f3f3;
    --muted: #9b9b9b;
    --gold: #f2c230;
    --gold-2: #c9961b;
    --red: #d71e28;
    --red-2: #8f0f16;
    --green: #2fbf71;
    --grn: #1f8a4c;
    --grn-2: #0e5a2f;
    --radius: 14px;
    --head: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg) radial-gradient(1200px 500px at 50% -200px, #2a2206 0%, transparent 70%) no-repeat;
    color: var(--text);
    font: 15px/1.45 var(--body);
    min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; margin: 0; line-height: 1; }
h1 { font-size: 44px; }
h2 { font-size: 28px; }
small { color: var(--muted); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.strong { font-weight: 800; }

/* Topo */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 10px 16px;
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 26px/1 var(--head); letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.on { background: var(--gold); color: #111; }
@media (max-width: 640px) {
    .nav { margin-left: 0; width: 100%; }
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 18px 16px 40px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 40px; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 8px; }
.inline { display: inline-flex; gap: 8px; align-items: center; }
.linkish { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }

/* Cartões */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin: 0 0 16px;
}
.card-title { font-size: 26px; color: var(--gold); margin-bottom: 12px; }
.card.empty { text-align: center; padding: 40px 16px; }
.card.empty p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.f-ok { background: #10301f; border: 1px solid #1f6b43; color: #b9f3d2; }
.f-err { background: #3a1013; border: 1px solid #7c1d24; color: #ffc7cb; }

/* Botões e formulários */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gold); color: #111; border: 0; border-radius: 10px;
    padding: 11px 16px; font: 800 14px/1 var(--body); cursor: pointer;
    text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 11px; font-size: 12px; }
.btn-big { width: 100%; padding: 20px; font-size: 20px; border-radius: 14px; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
    width: 100%; background: var(--panel-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 15px var(--body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* Chips e badges */
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 800 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: .04em; border: 1px solid transparent; }
.chip.t-white { background: #f4f4f4; color: #111; }
.chip.t-black { background: #000; color: var(--gold); border-color: var(--gold-2); }
.chip.t-red { background: var(--red); color: #fff; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-2); color: var(--muted); }
.b-publicado, .b-ao_vivo { background: #3a1013; color: #ff8c93; }
.b-encerrado { background: #10301f; color: #8fe3b4; }
.b-rascunho { background: #33290a; color: var(--gold); }
.gk { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--gold); color: #111; margin-left: 6px; vertical-align: middle; }

/* Cabeçalho do dia */
.day-head { margin: 4px 0 16px; }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 0 0 6px; }
.progress { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* Placar */
.live-badge { display: inline-block; background: var(--red); color: #fff; padding: 3px 8px; border-radius: 6px; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; animation: pulse 1.4s infinite; }
.timer { display: block; font: 72px/1 var(--head); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--text); }
.timer.last-minute { color: var(--gold); }
.timer.time-up { color: #ff4d57; animation: pulse 1s infinite; }
.timer-label { display: block; min-height: 16px; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.sound-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.sound-row .sound-hint { flex: 1; margin: 0; }

/* Avatar / foto */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel-2); border: 2px solid var(--gold-2); display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.av-initials { color: var(--gold); font: 700 14px/1 var(--body); }
.av-xs { width: 26px; height: 26px; border-width: 1px; font-size: 10px; margin-right: 4px; }
.av-sm { width: 36px; height: 36px; font-size: 12px; }
.av-lg { width: 64px; height: 64px; font-size: 20px; }
.av-xl { width: 112px; height: 112px; font-size: 34px; border-width: 3px; }
.lineup li .avatar { vertical-align: -6px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; flex-wrap: wrap; }

/* Posições */
.pos { display: inline-block; font: 800 10px/1 var(--body); padding: 3px 5px; border-radius: 4px; margin-right: 3px; letter-spacing: .03em; }
.pos-gol { background: var(--gold); color: #111; }
.pos-zag { background: #2c5f8a; color: #fff; }
.pos-mei { background: #2f7d4f; color: #fff; }
.pos-ata { background: #a33a3a; color: #fff; }
.pos-pick { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.pos-pick label { margin: 0; cursor: pointer; }
.pos-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pos-pick span { display: inline-block; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--line); font: 800 11px/1 var(--body); color: var(--muted); }
.pos-pick input:checked + span { background: var(--gold); color: #111; border-color: var(--gold); }
.pos-pick input:focus-visible + span { outline: 2px solid var(--gold); }
.pos-pick.big span { padding: 9px 12px; font-size: 13px; }

/* Montagem dos times */
.medals { font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.medals.muted { font-size: 11px; letter-spacing: 0; }
.who-name { display: block; overflow: hidden; text-overflow: ellipsis; }
.who-meta { display: block; margin-top: 2px; }
.prev-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; border: 1px solid var(--muted); }
.prev-dot.t-white { background: #f4f4f4; }
.prev-dot.t-black { background: #000; border-color: var(--gold); }
.prev-dot.t-red { background: var(--red); }
.rating-in { width: 52px !important; padding: 7px 6px !important; text-align: center; font-weight: 800; flex-shrink: 0; }
.rating-in.pts-in { width: 84px !important; }
.quick-edit td { vertical-align: middle; }
.quick-edit small { display: block; color: var(--muted); font-size: 11px; }
.cred { margin-bottom: 12px; }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 6px; }
.sound-hint { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #33290a; color: var(--gold); font-size: 13px; font-weight: 600; text-align: center; }
.sound-hint.on { background: #10301f; color: #8fe3b4; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.next-match { background: var(--panel); border: 1px dashed var(--gold-2); border-radius: var(--radius); padding: 14px; text-align: center; margin-bottom: 16px; }
.next-match div { margin-top: 8px; font-size: 18px; }
.next-match .chip { font-size: 16px; padding: 6px 14px; }
.next-match span { margin: 0 8px; color: var(--muted); }

.champion { border-radius: var(--radius); padding: 18px; text-align: center; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--gold); }
.champion small { display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.champion strong { font: 40px/1.1 var(--head); color: var(--gold); }
.champion.t-white { background: #f4f4f4; }
.champion.t-white strong { color: #111; }
.champion.t-white small { color: #555; }
.champion.t-red { background: linear-gradient(160deg, var(--red), var(--red-2)); border-color: var(--red); }
.champion.t-red strong, .champion.t-red small { color: #fff; }
.champion.t-black { background: #000; }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tbl .l { text-align: left; }
.tbl tr.is-leader td { background: rgba(242, 194, 48, .08); }
.tbl tr.is-leader td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

.match-list { list-style: none; padding: 0; margin: 0; }
.match-row > a, .match-row > div { display: grid; grid-template-columns: 26px 1fr auto 1fr 22px; gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.match-row > a:hover { background: var(--panel-2); text-decoration: none; }
.match-row.s-ao_vivo > a, .match-row.s-ao_vivo > div { background: rgba(215, 30, 40, .12); }
.mr-seq { color: var(--muted); font-weight: 800; font-size: 12px; }
.mr-team.r { text-align: right; }
.mr-score { font: 24px/1 var(--head); min-width: 56px; text-align: center; }
.s-agendado .mr-score { color: var(--muted); }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank-list li strong { margin-left: auto; font: 24px var(--head); color: var(--gold); }

/* Escalação estilo arte do grupo */
.lineups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .lineups { grid-template-columns: 1fr; } }
.lineup { border-radius: var(--radius); padding: 14px; border: 2px solid var(--gold-2); }
.lineup.t-white { background: linear-gradient(170deg, #fff, #e6e6e6); color: #111; }
.lineup.t-black { background: linear-gradient(170deg, #1a1a1a, #000); color: #fff; }
.lineup.t-red { background: linear-gradient(170deg, var(--red), var(--red-2)); color: #fff; }
.lineup-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.lineup-head img { width: 46px; height: 46px; border-radius: 50%; }
.lineup-head small { display: block; font: 18px/1 var(--head); color: inherit; opacity: .8; letter-spacing: .06em; }
.lineup-head strong { font: 40px/1 var(--head); letter-spacing: .03em; }
.lineup.t-black .lineup-head strong { color: var(--gold); }
.lineup ol { margin: 0; padding-left: 26px; }
.lineup li { font: 22px/1.35 var(--head); letter-spacing: .03em; }
.lineup li::marker { color: var(--gold-2); }
.lineup.t-red li::marker { color: #ffd9a0; }
.lineup li a { color: inherit; }
.lineup li { margin-bottom: 4px; }
.lineup .title { display: block; font: italic 600 12px/1.2 var(--body); letter-spacing: 0; color: var(--gold-2); }
.lineup.t-black .title { color: var(--gold); }
.lineup.t-red .title { color: #ffd9a0; }
.player-title { display: block; font: italic 600 13px/1.3 var(--body); color: var(--gold); margin-top: 2px; }
.title-hero { font: italic 600 18px/1.2 var(--body); color: var(--gold); margin: 6px 0 0; }
.lineup .nota { float: right; font-family: var(--body); font-size: 13px; font-weight: 800; background: rgba(0, 0, 0, .15); padding: 2px 7px; border-radius: 6px; }
.lineup.t-black .nota { background: rgba(242, 194, 48, .15); color: var(--gold); }

/* Resumo por cor (temporada) */
.color-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .color-cards { grid-template-columns: 1fr; } }
.color-card { border-radius: var(--radius); padding: 16px; text-align: center; border: 2px solid var(--gold-2); position: relative; }
.color-card.t-white { background: #f4f4f4; color: #111; }
.color-card.t-black { background: #000; color: #fff; }
.color-card.t-red { background: linear-gradient(160deg, var(--red), var(--red-2)); color: #fff; }
.color-card .big { font: 64px/1 var(--head); }
.color-card .name { font: 26px/1 var(--head); letter-spacing: .04em; }
.color-card small { color: inherit; opacity: .75; display: block; }
.color-card.is-top::after { content: 'Na frente'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #111; font-weight: 800; font-size: 11px; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); white-space: nowrap; font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--gold); color: #111; border-color: var(--gold); }

/* Jogadores */
.player-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.player-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); }
.player-card:hover { border-color: var(--gold-2); text-decoration: none; }
.player-card strong { font: 24px/1 var(--head); letter-spacing: .03em; }
.player-card .stats { display: flex; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.player-card .stats b { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.kpi b { display: block; font: 36px/1 var(--head); color: var(--gold); }
.kpi span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--gold); stroke: #000; stroke-width: 2; }
.chart .xl { fill: var(--muted); font-size: 12px; text-anchor: middle; font-family: var(--body); }
.chart .vl { fill: var(--text); font-size: 13px; font-weight: 800; text-anchor: middle; font-family: var(--body); }
.chart.pts .line { stroke: var(--green); }
.chart.pts .dot { fill: var(--green); }

/* Painel: presença e montagem dos times */
.presence { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.presence .check { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.presence .check small { margin-left: auto; }
.sticky-bar { position: sticky; bottom: 0; background: rgba(10, 10, 10, .95); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 12px; }

.assign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 760px) { .assign { grid-template-columns: 1fr; } }
.assign-col { border-radius: 12px; padding: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.assign-col h3 { font-size: 24px; margin-bottom: 6px; }
.assign-col.t-white h3 { color: #fff; }
.assign-col.t-black h3 { color: var(--gold); }
.assign-col.t-red h3 { color: #ff6a72; }
.assign-col.t-none h3 { color: var(--muted); }
.assign-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.assign-row .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.assign-row .who small { font-weight: 400; }
.pick { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); flex-shrink: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { margin: 0; padding: 7px 7px; font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.pick input:checked + label.p-white { background: #f4f4f4; color: #111; }
.pick input:checked + label.p-black { background: #000; color: var(--gold); }
.pick input:checked + label.p-red { background: var(--red); color: #fff; }
.pick input:checked + label.p-none { background: var(--line); color: var(--text); }
.pick input:focus-visible + label { outline: 2px solid var(--gold); }
.draw-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.draw-options button { text-align: left; display: block; padding: 14px; height: 100%; }
.draw-options button small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: inherit; opacity: .8; margin-top: 6px; line-height: 1.35; }

/* Mesa */
.mesa-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mesa-side { border-radius: 14px; padding: 10px; }
.mesa-side.t-white { background: #f4f4f4; }
.mesa-side.t-black { background: #111; border: 1px solid var(--gold-2); }
.mesa-side.t-red { background: var(--red-2); }
.mesa-side select { margin-bottom: 8px; font-size: 14px; padding: 10px 8px; }
.mesa-side .btn-big { font-family: var(--head); font-size: 30px; font-weight: 400; letter-spacing: .04em; padding: 22px 8px; }
.mesa-side.t-white .btn-big { background: #111; color: #fff; }
.mesa-side.t-black .btn-big { background: var(--gold); color: #111; }
.mesa-side.t-red .btn-big { background: #fff; color: var(--red-2); }
.mesa-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

.award { background: var(--panel); border: 1px solid var(--gold-2); border-radius: var(--radius); padding: 14px; text-align: center; }
.award small { display: block; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 12px; }
.award a { display: block; font: 30px/1.1 var(--head); color: var(--gold); margin: 6px 0 2px; }
.award span { color: var(--muted); font-size: 13px; }
.award.is-jegue { border-color: #8a5a2b; background: linear-gradient(160deg, #2a1d10, var(--panel)); }
.award.is-jegue a { color: #e8b27a; }
.jegue-card .card-title { color: #e8b27a; }
.play-list li { gap: 8px; }
.wa-text { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 280px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list-plain li .grow { flex: 1; min-width: 160px; }

.login-box { max-width: 380px; margin: 40px auto; }
.login-box img { width: 110px; display: block; margin: 0 auto 16px; border-radius: 50%; }
.player-card .avatar { float: right; margin-left: 8px; }
@media (max-width: 400px) { .assign-row { gap: 6px; } .assign-col { padding: 8px; } }
.adj { display: inline-block; font: 800 12px/1 var(--body); padding: 3px 6px; border-radius: 6px; }
.adj.up { background: #10301f; color: #8fe3b4; }
.adj.down { background: #3a1013; color: #ff8c93; }
.adjust-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.adjust-form h3 { font-size: 22px; color: var(--gold); margin-bottom: 8px; }
.adjust-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.adjust-buttons .btn { font-size: 18px; padding: 14px 6px; }
.danger-zone { border-color: #7c1d24; }
.danger-zone .card-title { color: #ff8c93; }
.catalog input[type=text] { min-width: 180px; }
.rules { margin: 10px 0 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.example { background: var(--panel-2); border-left: 3px solid var(--gold); border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.rule-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); font-size: 14px; }
.rule-field small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }

/* Verde (4º time, Interjegues) */
.chip.t-green { background: var(--grn); color: #fff; }
.champion.t-green { background: linear-gradient(160deg, var(--grn), var(--grn-2)); border-color: var(--grn); }
.champion.t-green strong, .champion.t-green small { color: #fff; }
.lineup.t-green { background: linear-gradient(170deg, var(--grn), var(--grn-2)); color: #fff; }
.lineup.t-green li::marker, .lineup.t-green .title { color: #c8f5d9; }
.color-card.t-green { background: linear-gradient(160deg, var(--grn), var(--grn-2)); color: #fff; }
.prev-dot.t-green { background: var(--grn); }
.assign-col.t-green h3 { color: #5fd892; }
.pick input:checked + label.p-green { background: var(--grn); color: #fff; }
.mesa-side.t-green { background: var(--grn-2); }
.mesa-side.t-green .btn-big { background: #fff; color: var(--grn-2); }

/* Grades com 4 times */
.lineups.cols-4, .assign.cols-4, .color-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .lineups.cols-4, .assign.cols-4, .color-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lineups.cols-4, .assign.cols-4, .color-cards.cols-4 { grid-template-columns: 1fr; } }

/* Interjegues: fases, pênaltis, zona da tabela e pódio */
.match-phase { list-style: none; margin: 14px 0 2px; font: 20px/1 var(--head); letter-spacing: .04em; color: var(--gold); }
.mr-pens { display: block; font: 600 11px/1.2 var(--body); color: var(--muted); }
.zone { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tbl tr.cut td { border-bottom: 2px dashed var(--gold-2); }
.pens-in { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; font-weight: 800; font-size: 13px; }
.pens-in input { width: 64px !important; text-align: center; font-weight: 800; padding: 9px 6px; }
.pens-in > span:first-child { color: var(--gold); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.podium { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: -6px 0 16px; }
@media (max-width: 560px) { .podium { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.podium-step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.podium-step .podium-icon { font-size: 26px; line-height: 1; }
.podium-step .chip { font-size: 15px; padding: 5px 12px; }
.podium-step.p1 { border-color: var(--gold); }
.medal-n { display: inline-block; font: 800 11px/1 var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 5px; vertical-align: 2px; }
.format-pick { display: grid; gap: 6px; }
.format-pick .check { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.format-pick small { font-weight: 400; }

/* Posição individual no dia: bolinha ouro / prata / bronze / cinza */
.rk { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font: 800 14px/1 var(--body); background: #3a3a3a; color: #ddd; border: 3px solid #555; }
.rk-1 { background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, #9a7410); color: #2a1d00; border-color: #7fbf3f; }
.rk-2 { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ced6 55%, #7d838c); color: #222; border-color: #9aa0a8; }
.rk-3 { background: radial-gradient(circle at 35% 30%, #ffd2b0, #c06a35 55%, #7a3a14); color: #fff; border-color: #8a4a22; }
.recent-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 10px; color: var(--text); }
.rd:hover { background: var(--panel-2); text-decoration: none; }
.rd small { color: var(--muted); font-size: 12px; }
.rd-team { font-size: 18px; line-height: 1; min-height: 18px; }

/* Rankings e card do jogador */
.tag-avulso { display: inline-block; font: 800 10px/1 var(--body); text-transform: uppercase; letter-spacing: .05em; padding: 3px 5px; border-radius: 4px; background: #33290a; color: var(--gold); vertical-align: 1px; }
.rk-pos { min-width: 28px; text-align: center; font-weight: 800; color: var(--muted); }
.rank-list li small { color: var(--muted); }
.tabs-group a { font-size: 13px; padding: 6px 12px; }
.explain p { margin: 0 0 8px; font-size: 14px; }
.formula { text-align: center; font: 26px/1.2 var(--head); letter-spacing: .03em; color: var(--gold); background: var(--panel-2); border-radius: 10px; padding: 12px; margin: 10px 0; }
.grade-pill { font-size: 12px; font-weight: 600; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.grade-pill b { color: var(--gold); }
.home-card { margin-bottom: 8px; }
.home-head { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; color: var(--text); }
.home-head:hover { text-decoration: none; }
.home-head span { display: flex; flex-direction: column; min-width: 0; }
.home-head .eyebrow { margin: 0 0 2px; }
.home-head strong { font: 32px/1 var(--head); letter-spacing: .03em; }
.home-head em { font: italic 600 13px/1.3 var(--body); color: var(--gold); }
.month-box .kpi b { font-size: 32px; }
.rank-line { margin: 0; font-size: 14px; color: var(--muted); }
.rank-line strong { color: var(--gold); }

/* Mesa compacta: só a barra do cronômetro fica presa no topo */
.page-mesa .topbar { position: static; }
.mesa-head { margin-bottom: 10px; }
.mesa-head .eyebrow { margin: 0; }
.page-mesa .sound-row { margin-bottom: 8px; }
.page-mesa .sound-hint { padding: 6px 10px; font-size: 12px; }
.score-bar { background: #000; border: 1px solid var(--gold-2); border-radius: 14px; padding: 8px 12px 10px; margin-bottom: 10px; }
.score-bar.is-live { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.score-bar.is-sticky { position: sticky; top: 0; z-index: 9; border-radius: 0 0 14px 14px; margin: 0 -8px 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .7); }
.mb-row { display: flex; align-items: center; gap: 10px; }
.mb-clock { display: flex; flex-direction: column; min-width: 96px; }
.score-bar .timer { display: block; font: 48px/1 var(--head); letter-spacing: .03em; }
.score-bar .timer-label { min-height: 0; font-size: 11px; }
.score-bar.is-paused .timer { color: var(--gold); animation: pulse 1.6s infinite; }
.mb-info .live-badge { margin-top: 4px; }
.mb-info { flex: 1; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.mb-info strong { color: var(--gold); }
.mb-pause .btn { padding: 12px 14px; font-size: 13px; white-space: nowrap; }
.mb-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 6px; }
.mb-side { display: flex; align-items: center; gap: 10px; }
.mb-side.r { justify-content: flex-end; }
.mb-side b { font: 42px/1 var(--head); }
.mb-side .chip { font-size: 13px; padding: 4px 10px; }
.mb-x { font: 26px/1 var(--head); color: var(--muted); }
.mb-pens { margin: 4px 0 0; text-align: center; color: var(--gold); font-weight: 800; font-size: 13px; }
.mb-scorers { margin: -2px 0 10px; font-size: 12px; color: var(--muted); }
.page-mesa .mesa-sides { margin-top: 0; }
.page-mesa .mesa-side { padding: 6px; }
.page-mesa .mesa-side .btn-big { padding: 18px 6px; font-size: 26px; }
.page-mesa .mesa-actions { margin-top: 10px; }
.more-actions, .adjust-box { margin-top: 10px; }
.more-actions summary, .adjust-box summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 0; }
.more-actions .mesa-actions { margin-top: 6px; }
.adjust-box .adjust-form { border-top: 0; margin-top: 6px; padding-top: 0; }

/* Lista de quem fez o gol */
.goal-dialog { width: min(460px, calc(100vw - 24px)); max-height: 85vh; padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--gold-2); border-radius: 16px; }
.goal-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.goal-dialog form { padding: 16px; }
.goal-dialog h3 { margin: 0 0 12px; font: 26px/1.1 var(--head); color: var(--gold); letter-spacing: .03em; }
.goal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.goal-list .btn { width: 100%; min-height: 52px; padding: 10px 8px; text-transform: none; letter-spacing: 0; font-size: 15px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.goal-list .btn:active { background: var(--gold); color: #111; }
.goal-list .btn.alt { grid-column: 1 / -1; min-height: 44px; font-size: 13px; color: var(--muted); }

/* Lances na mesa */
.play-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
@media (max-width: 480px) { .play-fields { grid-template-columns: 1fr; } }
.custom-play { margin-bottom: 8px; }
.custom-play input[type=text] { margin-bottom: 6px; }
.custom-play .check { font-size: 13px; }
.plays-card .card-title { font-size: 22px; }
