/* Mesa de futebol de botão: madeira escura, feltro verde, giz e placar âmbar */
:root {
  --mesa: #16110d;
  --mesa-2: #211912;
  --mesa-3: #2c2219;
  --borda: #4a3826;
  --giz: #f3efe2;
  --giz-2: #c9bfa9;
  --giz-3: #8f846f;
  --feltro: #1d6a3a;
  --placar: #ffb627;
  --placar-2: #ffd27a;
  --perigo: #e5482d;
  --ok: #44c071;
  --wa: #25d366;
  --display: "Bowlby One SC", "Arial Black", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--mesa); color: var(--giz); }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.45;
  background:
    radial-gradient(1200px 600px at 50% -200px, #3a2a1c 0%, transparent 70%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    var(--mesa);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 540px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, .tab:focus-visible { outline: 3px solid var(--placar); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
h3 { font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--giz-2); }
.muted { color: var(--giz-2); margin: 6px 0 0; font-size: 15px; }
.kicker { font-family: var(--cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--placar); }

/* topo */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: calc(12px + env(safe-area-inset-top, 0px)) 12px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--mesa) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; }
.brand-disc { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b5a, #c8102e 55%, #7a0716); box-shadow: 0 3px 0 #000, inset 0 0 0 5px rgba(255,255,255,.15); }
.brand-word { font-family: var(--display); font-size: 22px; letter-spacing: .02em; color: var(--giz); }
.top-meta { display: flex; gap: 6px; }
.chip { font-family: var(--cond); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--mesa-3); border: 1px solid var(--borda); color: var(--giz-2); }
.chip-hot { color: var(--placar); border-color: #6b4a14; }

/* botões */
.btn { border: 0; border-radius: 12px; padding: 14px 18px; font-family: var(--cond); font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; min-height: 50px; }
.btn-main { background: var(--placar); color: #2a1a00; box-shadow: 0 4px 0 #9a6a00; }
.btn-main:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a6a00; }
.btn-main:disabled { opacity: .5; cursor: progress; }
.btn-ghost { background: var(--mesa-3); color: var(--giz); border: 1px solid var(--borda); }
.btn-wa { background: var(--wa); color: #06331a; box-shadow: 0 4px 0 #128c4a; }

/* início */
.screen { display: flex; flex-direction: column; gap: 22px; padding-top: 4px; }
.today { background: linear-gradient(160deg, #2a1f16, #1a130e); border: 1px solid var(--borda); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.today .num { font-family: var(--display); font-size: 15px; color: var(--placar); letter-spacing: .04em; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.side .tname { font-family: var(--cond); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.side .you { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #2a1a00; background: var(--placar); border-radius: 6px; padding: 1px 7px; }
.vs { font-family: var(--display); color: var(--giz-3); font-size: 18px; }
.btoken { width: 58px; height: 58px; border-radius: 50%; position: relative; box-shadow: 0 5px 0 rgba(0,0,0,.55), inset 0 -4px 6px rgba(0,0,0,.25), inset 0 3px 5px rgba(255,255,255,.25); display: grid; place-items: center; overflow: hidden; }
.btoken b { position: relative; z-index: 1; font-family: var(--display); font-size: 15px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,239,226,.92); color: #1b140e; box-shadow: inset 0 1px 3px rgba(0,0,0,.3); }
.meta-line { font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--giz-2); letter-spacing: .02em; text-align: center; }
.hook { margin: 0; font-size: 17px; }
.rule { font-size: 14px; color: var(--giz-2); background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 12px; border: 1px dashed var(--borda); }
.played { display: flex; flex-direction: column; gap: 10px; }
.played .grid { font-size: 22px; letter-spacing: 2px; }
.how { background: var(--mesa-2); border: 1px solid var(--borda); border-radius: var(--r); padding: 16px; }
.how ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--giz-2); }
.how b { color: var(--giz); }
.archive-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.arc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 12px; padding: 12px; }
.arc .mini { display: flex; }
.arc .mini .btoken { width: 34px; height: 34px; box-shadow: 0 3px 0 rgba(0,0,0,.55); }
.arc .mini .btoken + .btoken { margin-left: -10px; }
.arc .t { font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; line-height: 1.1; }
.arc .s { font-size: 13px; color: var(--giz-2); }
.arc .go { font-family: var(--cond); font-weight: 800; color: var(--placar); }
.foot { color: var(--giz-3); font-size: 13px; text-align: center; }

/* briefing */
.brief-card { background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.brief-card p { margin: 0; }
.scout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scout .box { background: rgba(0,0,0,.22); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.scout .box h3 { font-size: 14px; margin-bottom: 6px; }
.scout ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.scout li { display: flex; justify-content: space-between; gap: 6px; }
.scout li span:last-child { font-family: var(--cond); font-weight: 700; color: var(--placar-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--cond); font-weight: 700; font-size: 14px; padding: 3px 9px; border-radius: 999px; background: #3b2a12; color: var(--placar-2); border: 1px solid #6b4a14; }
.brief-actions { display: flex; flex-direction: column; }

/* escalação */
.lu-head h2 { font-size: 24px; }
.forms { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.forms button { flex: none; font-family: var(--cond); font-weight: 700; font-size: 16px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--borda); background: var(--mesa-2); color: var(--giz-2); }
.forms button.on { background: var(--giz); color: var(--mesa); border-color: var(--giz); }
.pitch-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 6px #3a2a1d, 0 0 0 8px #120d09, 0 18px 40px rgba(0,0,0,.5); margin: 4px 6px; }
.pitch { display: block; width: 100%; height: auto; touch-action: manipulation; }
.tacs { display: flex; flex-direction: column; gap: 10px; }
.tac-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; }
.tac-row label { font-family: var(--cond); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--giz-2); }
.seg { display: flex; background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 10px; padding: 3px; gap: 3px; min-width: 0; }
.seg button { flex: 1; min-width: 0; border: 0; background: transparent; border-radius: 7px; padding: 8px 2px; font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--giz-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.on { background: var(--giz); color: var(--mesa); }
.bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pl { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; text-align: left; background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.pl .n { font-family: var(--display); font-size: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mesa-3); color: var(--giz-2); }
.pl .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pl .ps { font-family: var(--cond); font-size: 13px; color: var(--giz-3); font-weight: 600; }
.pl .ov { font-family: var(--display); font-size: 16px; color: var(--placar); }
.pl.sel { border-color: var(--placar); box-shadow: 0 0 0 2px var(--placar) inset; }
.pl.off { opacity: .45; }
.sticky-cta { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding-block: 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--mesa) 30%); }
.sticky-cta .btn { font-size: 16px; padding: 12px 10px; }

/* placar */
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: #0b0806; border: 2px solid #3a2a1d; border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 24px rgba(0,0,0,.8); }
.board-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--cond); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.board-team.right { flex-direction: row-reverse; text-align: right; }
.board-team .btoken { width: 30px; height: 30px; flex: none; box-shadow: 0 2px 0 rgba(0,0,0,.6); }
.board-team .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-mid { display: flex; flex-direction: column; align-items: center; }
.board-score { font-family: var(--display); font-size: 34px; color: var(--placar); text-shadow: 0 0 12px rgba(255,182,39,.55); letter-spacing: .04em; line-height: 1; font-variant-numeric: tabular-nums; }
.board-score .x { font-size: 18px; margin: 0 6px; color: #8a6418; vertical-align: middle; }
.board-clock { font-family: var(--cond); font-weight: 800; font-size: 17px; color: var(--placar-2); font-variant-numeric: tabular-nums; }
.board-agg { font-family: var(--cond); font-size: 13px; color: var(--giz-3); font-weight: 600; }
.wp { display: flex; flex-direction: column; gap: 5px; }
.wp-bar { height: 12px; border-radius: 999px; background: var(--mesa-3); overflow: hidden; border: 1px solid var(--borda); }
.wp-bar span { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--placar), #ffe08a); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.wp-text { display: flex; justify-content: space-between; font-family: var(--cond); font-weight: 700; font-size: 15px; color: var(--giz-2); text-transform: uppercase; letter-spacing: .04em; }
.wp-text b { color: var(--placar); font-size: 18px; font-variant-numeric: tabular-nums; }
.flash { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--display); font-size: 64px; color: var(--giz); text-shadow: 0 6px 0 rgba(0,0,0,.5); animation: pop .9s ease-out; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } to { transform: scale(1); opacity: 1; } }
.ticker { min-height: 48px; background: var(--mesa-2); border-left: 4px solid var(--placar); border-radius: 8px; padding: 10px 12px; font-size: 16px; font-weight: 500; }
.ticker .tm { font-family: var(--cond); font-weight: 800; color: var(--placar); margin-right: 6px; }
.speed { display: flex; gap: 6px; flex-wrap: wrap; }
.sp { font-family: var(--cond); font-weight: 700; font-size: 15px; border: 1px solid var(--borda); background: var(--mesa-2); color: var(--giz-2); border-radius: 8px; padding: 6px 12px; }
.sp.on { background: var(--giz); color: var(--mesa); }
#skip { margin-left: auto; }
.gradebar { display: flex; gap: 4px; flex-wrap: wrap; font-size: 22px; min-height: 30px; }
.gradebar .gi { display: inline-grid; place-items: center; }
.gradebar .pending-dot { width: 22px; height: 22px; border-radius: 4px; background: var(--mesa-3); border: 1px dashed var(--giz-3); animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }

/* painel */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(8,5,3,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-inner { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--mesa-2); border-top: 3px solid var(--placar); border-radius: 20px 20px 0 0; padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sheet-kicker { font-family: var(--cond); font-weight: 700; color: var(--placar); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.sheet-head h2 { font-size: 24px; }
.sheet-limits { font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--giz-2); text-align: right; line-height: 1.25; flex: none; }
.report { display: flex; flex-direction: column; gap: 8px; }
.report p { margin: 0; padding: 9px 12px; background: rgba(0,0,0,.25); border-radius: 10px; font-size: 15px; }
.report p b { color: var(--placar-2); }
.report .warn { border-left: 3px solid var(--perigo); }
.report .good { border-left: 3px solid var(--ok); }
.tabs { display: flex; gap: 4px; background: var(--mesa); border-radius: 12px; padding: 4px; }
.tab { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 9px 4px; font-family: var(--cond); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--giz-2); }
.tab.on { background: var(--mesa-3); color: var(--giz); box-shadow: inset 0 0 0 1px var(--borda); }
.tabpane { display: flex; flex-direction: column; gap: 10px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cols > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cols h3 { font-size: 13px; }
.st { font-family: var(--cond); font-weight: 800; font-size: 14px; border-radius: 6px; padding: 1px 6px; }
.st.g { background: #1f4d2e; color: #9be3b2; } .st.y { background: #4d4313; color: #ffe27a; } .st.o { background: #5a3010; color: #ffb27a; } .st.r { background: #5a1610; color: #ff9b8a; }
.card-y { display: inline-block; width: 9px; height: 12px; background: #ffd400; border-radius: 2px; margin-left: 4px; vertical-align: -1px; }
.outlist { display: flex; flex-direction: column; gap: 6px; }
.pl.pend { border-color: #6b4a14; background: #2d2414; }
.swap-to { font-family: var(--cond); font-weight: 800; font-size: 14px; color: var(--placar); white-space: nowrap; }
.repl { position: relative; margin: 4px 0 6px; background: #120d09; border: 2px solid var(--placar); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; animation: drop .18s ease-out; }
.repl::before { content: ""; position: absolute; top: -9px; left: 22px; width: 14px; height: 14px; background: #120d09; border-left: 2px solid var(--placar); border-top: 2px solid var(--placar); transform: rotate(45deg); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.repl-head { font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--giz-2); }
.repl-head b { color: var(--placar); }
.opt { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; text-align: left; background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt.top { border-color: #6b4a14; }
.opt.on { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok) inset; }
.opt .n { font-family: var(--display); font-size: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mesa-3); color: var(--giz-2); }
.opt .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .ps { font-family: var(--cond); font-size: 13px; color: var(--giz-3); font-weight: 600; }
.opt .best { font-family: var(--cond); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #2a1a00; background: var(--placar); border-radius: 4px; padding: 0 5px; vertical-align: 2px; }
.ovbox { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.ovbox b { font-family: var(--display); font-size: 17px; color: var(--placar); }
.ovbox i { font-style: normal; font-family: var(--cond); font-weight: 800; font-size: 13px; color: var(--giz-3); }
.ovbox i.up { color: var(--ok); } .ovbox i.down { color: var(--perigo); }
.repl-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 4px 0; font-family: var(--cond); font-weight: 700; font-size: 15px; color: var(--placar-2); text-decoration: underline; text-underline-offset: 3px; }
.pending { font-size: 14px; color: var(--giz-2); display: flex; flex-direction: column; gap: 4px; }
.pending .it { display: flex; justify-content: space-between; gap: 8px; background: #2d2414; border: 1px solid #6b4a14; border-radius: 8px; padding: 6px 10px; color: var(--placar-2); }
.pending .it button { background: none; border: 0; color: var(--giz-2); font-weight: 700; }
.sheet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); background: var(--mesa-2); padding-block: 8px; }
.sheet-cta .btn { font-size: 16px; padding: 12px 8px; }
.talks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.talks button { text-align: left; background: var(--mesa); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; }
.talks button b { display: block; font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; }
.talks button span { font-size: 13px; color: var(--giz-2); }
.talks button.on { border-color: var(--placar); box-shadow: 0 0 0 2px var(--placar) inset; }

/* pênaltis */
.pens-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.pens-score { font-family: var(--display); font-size: 26px; color: var(--placar); }
.pens-score span { font-family: var(--cond); font-weight: 800; font-size: 18px; color: var(--giz); }
.pens-dots { display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 18px; letter-spacing: 3px; }
.goal { display: flex; justify-content: center; }
.goal-frame { position: relative; width: 100%; max-width: 440px; aspect-ratio: 2.6 / 1; border: 6px solid var(--giz); border-bottom: 0; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(0deg, rgba(243,239,226,.12) 0 2px, transparent 2px 14px), repeating-linear-gradient(90deg, rgba(243,239,226,.12) 0 2px, transparent 2px 14px), #0f3b22; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.gz { border: 0; background: transparent; color: transparent; font-family: var(--cond); font-weight: 800; text-transform: uppercase; }
.goal-frame.pick .gz { color: var(--giz); background: rgba(255,182,39,.08); border-right: 1px dashed rgba(243,239,226,.25); }
.goal-frame.pick .gz:hover, .goal-frame.pick .gz:focus-visible { background: rgba(255,182,39,.28); }
.pn-keeper { position: absolute; bottom: 0; left: 50%; width: 22%; height: 58%; transform: translateX(-50%); border-radius: 12px 12px 4px 4px; background: linear-gradient(#ffb627, #c77d00); box-shadow: 0 4px 0 rgba(0,0,0,.5); transition: left .45s cubic-bezier(.2,.9,.3,1), transform .45s; pointer-events: none; }
.pn-ball { position: absolute; bottom: -18px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfc7b6); box-shadow: 0 3px 0 rgba(0,0,0,.4); transition: left .45s ease-out, bottom .45s ease-out; pointer-events: none; }
.pens-ui { display: flex; flex-direction: column; gap: 12px; }
.pens-ui .seg button { padding: 10px 4px; font-size: 16px; }
.order { display: flex; flex-direction: column; gap: 6px; }
.order .pl { grid-template-columns: 30px 1fr auto auto; }
.order .mv { background: var(--mesa-3); border: 1px solid var(--borda); border-radius: 8px; width: 34px; height: 30px; }

/* fim */
.end-card { background: linear-gradient(160deg, #2a1f16, #1a130e); border: 1px solid var(--borda); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.end-card .verdict { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.end-card .verdict.win { color: var(--placar); }
.end-card .verdict.lose { color: var(--giz-2); }
.end-card .sc { font-family: var(--cond); font-weight: 800; font-size: 22px; }
.nota { display: flex; align-items: center; justify-content: center; gap: 14px; }
.nota .big { font-family: var(--display); font-size: 64px; color: var(--placar); line-height: 1; text-shadow: 0 0 18px rgba(255,182,39,.4); }
.nota .lbl { text-align: left; font-family: var(--cond); font-weight: 700; font-size: 16px; color: var(--giz-2); text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.end-card .grid { font-size: 26px; letter-spacing: 2px; }
.end-card .real { font-size: 15px; color: var(--giz-2); text-align: left; background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px 12px; margin: 0; }
.end-card .like { font-family: var(--cond); font-weight: 800; font-size: 20px; }
.end-card .like b { color: var(--placar); }
.share { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.share-text { white-space: pre-wrap; background: var(--mesa-2); border: 1px dashed var(--borda); border-radius: 10px; padding: 12px; font-size: 14px; color: var(--giz-2); margin: 0; font-family: var(--body); }
.review ol { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.review li { background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 15px; }
.review li .e { font-size: 20px; }
.review li .mm { font-family: var(--cond); font-weight: 800; color: var(--placar); }
.review li .bt { color: var(--giz-2); font-size: 14px; }
.end-actions { display: flex; flex-direction: column; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; background: var(--giz); color: var(--mesa); font-weight: 700; padding: 10px 16px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.4); max-width: calc(100% - 32px); text-align: center; }
.toast.grade { font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .tac-row { grid-template-columns: 78px 1fr; }
  .seg button { font-size: 13px; }
  .board-score { font-size: 28px; }
}

/* ---------- v2: partes novas ---------- */
a { color: var(--placar-2); }
.small { font-size: 13px; }
input, select, textarea { font: inherit; color: var(--giz); background: var(--mesa); border: 1px solid var(--borda); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--placar); outline-offset: 1px; }
.top-meta a.chip { text-decoration: none; }
.today-stats { font-size: 14px; color: var(--giz-2); text-align: center; min-height: 20px; }
.today-stats b { color: var(--placar-2); }
.challenge { background: #2d2414; border: 1px solid #6b4a14; border-radius: 14px; padding: 14px; text-align: center; }
.challenge p { margin: 6px 0; }
.modes { display: flex; flex-direction: column; gap: 22px; }
.pro-teaser { background: var(--mesa-2); border: 1px solid var(--borda); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pro-tile { background: var(--mesa); border: 1px solid var(--borda); border-radius: 12px; padding: 14px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 64px; }
.pro-tile b { font-family: var(--cond); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.pro-tile span { font-size: 13px; color: var(--giz-3); }
.arc.static { cursor: default; }
.camp-step { font-family: var(--cond); font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.doc { background: var(--mesa-2); border: 1px solid var(--borda); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.doc p, .doc ul, .doc ol, .doc dl { margin: 0; }
.doc h3 { margin-top: 6px; }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--giz-2); }
#page-body { display: flex; flex-direction: column; gap: 14px; }
.qa { background: var(--mesa); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; }
.qa summary { cursor: pointer; font-weight: 600; }
.qa p { margin-top: 8px; color: var(--giz-2); }
.gl dt { font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--placar-2); margin-top: 8px; }
.gl dd { margin: 2px 0 0; color: var(--giz-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.kpis > div { background: var(--mesa); border: 1px solid var(--borda); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.kpis b { font-family: var(--display); font-size: 26px; color: var(--placar); font-variant-numeric: tabular-nums; }
.kpis span { font-family: var(--cond); font-weight: 700; font-size: 13px; color: var(--giz-3); text-transform: uppercase; letter-spacing: .04em; }
.hist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; height: 130px; }
.hb { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 3px; }
.hb i { display: block; width: 100%; background: linear-gradient(var(--placar), #b07a10); border-radius: 4px 4px 0 0; min-height: 2px; }
.hb span { font-family: var(--cond); font-size: 12px; color: var(--giz-3); }
ol.top { padding: 0 !important; list-style: none; counter-reset: t; }
ol.top li { counter-increment: t; display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; background: var(--mesa); border-radius: 8px; color: var(--giz) !important; }
ol.top li::before { content: counter(t) "º"; font-family: var(--cond); font-weight: 800; color: var(--giz-3); width: 30px; }
ol.top li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.top li i { color: var(--giz-3); font-style: normal; font-size: 13px; }
ol.top li b { font-family: var(--display); color: var(--placar); }
.daynav { display: flex; align-items: center; gap: 10px; font-family: var(--cond); font-size: 18px; }
.big-price { font-family: var(--display); font-size: 34px; color: var(--placar); }
.big-price span { font-family: var(--cond); font-size: 18px; color: var(--giz-2); }
.ticks { list-style: none; padding: 0 !important; }
.ticks li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--mesa); padding: 2px 8px; border-radius: 6px; color: var(--placar-2); user-select: all; }
.locked { background: #2d2414; border: 1px solid #6b4a14; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.inrow { display: flex; gap: 8px; align-items: center; }
.inrow input { flex: 1; min-width: 0; }
.form label { font-family: var(--cond); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--giz-2); }
.chk { display: flex; gap: 8px; align-items: center; text-transform: none !important; font-family: var(--body) !important; font-weight: 500 !important; color: var(--giz) !important; }
.chk input { width: 20px; min-height: 20px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.badge { background: var(--mesa); border: 1px solid var(--borda); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; opacity: .55; }
.badge.got { opacity: 1; border-color: #6b4a14; }
.badge b { font-family: var(--cond); font-weight: 800; font-size: 16px; }
.badge span { font-size: 13px; color: var(--giz-2); }
.indiv-box summary, .lances-box summary { cursor: pointer; font-family: var(--cond); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--giz-2); padding: 8px 0; }
.indiv { display: flex; flex-direction: column; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; align-items: center; font-size: 15px; }
.fn-row i { font-style: normal; color: var(--giz-3); font-family: var(--cond); font-size: 13px; }
.lances { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.lance { display: grid; grid-template-columns: 52px 1fr; gap: 6px; font-size: 14px; padding: 6px 8px; border-radius: 8px; background: var(--mesa-2); border-left: 3px solid var(--borda); }
.lance.mine { border-left-color: var(--placar); }
.lance.goal { background: #2d2414; font-weight: 700; }
.lm { font-family: var(--cond); font-weight: 800; color: var(--placar); }
#restart { align-self: flex-start; color: var(--giz-3); }
.wp-delta { font-family: var(--display); font-size: 18px; margin-right: 8px; animation: pop .6s ease-out; }
.wp-delta.up, .dl.up { color: var(--ok); } .wp-delta.down, .dl.down { color: var(--perigo); }
.dl { font-family: var(--cond); font-weight: 800; }
.note { margin: 0; font-size: 15px; color: var(--giz-2); text-align: left; background: rgba(0,0,0,.2); border-radius: 10px; padding: 10px 12px; }
.note b { color: var(--giz); }
.letter { font-family: var(--display); color: var(--placar); font-size: 20px; }
.end-next { display: flex; flex-direction: column; gap: 8px; }
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.pc-num { font-family: var(--display); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--giz); color: var(--mesa); font-size: 18px; }
.pc-ovr { font-family: var(--display); font-size: 34px; color: var(--placar); }
.attr { display: grid; grid-template-columns: 112px 1fr 32px; gap: 8px; align-items: center; font-size: 14px; }
.ab { height: 8px; background: var(--mesa); border-radius: 99px; overflow: hidden; }
.ab i { display: block; height: 100%; background: linear-gradient(90deg, #b07a10, var(--placar)); }
.attr b { font-family: var(--cond); text-align: right; }
.pc-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--giz-2); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8,5,3,.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-inner { position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 18px; padding: 20px 18px 18px; }
#modal-body { display: flex; flex-direction: column; gap: 10px; }
#modal-body h2 { font-size: 24px; padding-right: 30px; }
#modal-body p { margin: 0; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borda); background: var(--mesa); }
.coach-tip { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 45; width: min(520px, calc(100% - 32px)); background: var(--giz); color: var(--mesa); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: up .25s ease-out; }
.coach-tip p { margin: 0; font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 8px; }
.foot-links a, .foot-links .linkbtn { color: var(--giz-2); font-size: 14px; }
.foot { padding-block: 24px 8px; }

/* computador: campo à esquerda, painel à direita */
@media (min-width: 960px) {
  #app { max-width: 1120px; }
  .screen#home { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; }
  .screen#home .today { grid-row: span 2; }
  .lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .lu-left { position: sticky; top: 70px; }
  .m-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
  .m-left { position: sticky; top: 70px; }
  .m-right { display: flex; flex-direction: column; gap: 16px; }
  .sheet { justify-content: flex-end; align-items: stretch; background: rgba(8,5,3,.35); }
  .sheet-inner { max-width: 520px; max-height: 100vh; border-radius: 20px 0 0 20px; border-top: 0; border-left: 3px solid var(--placar); }
  .pitch-wrap { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 959px) {
  .lu-grid, .m-grid, .m-right, .lu-right { display: flex; flex-direction: column; gap: 14px; }
  .lu-left { display: flex; flex-direction: column; gap: 10px; }
}
/* celular deitado */
@media (orientation: landscape) and (max-height: 520px) {
  #app { max-width: 100%; }
  .m-grid { display: grid !important; grid-template-columns: auto 1fr; gap: 14px; }
  .m-left .pitch-wrap { width: calc((100vh - 40px) / 1.36); }
  .m-right { overflow-y: auto; max-height: calc(100vh - 70px); }
  .sheet { justify-content: flex-end; align-items: stretch; }
  .sheet-inner { max-width: 55vw; max-height: 100vh; border-radius: 16px 0 0 16px; }
}

.archive.hot { background: #2d2414; border: 1px solid #6b4a14; border-radius: var(--r); padding: 16px; }

.like .why { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--giz-2); margin-top: 4px; }

/* ---------- v3: escudos, espaçamentos e ajustes de UX ---------- */
.btoken.crest-crest { background: none !important; box-shadow: none; overflow: visible; }
.btoken.crest-crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.btoken.crest-flag { background: #0b0806 !important; box-shadow: 0 4px 0 rgba(0,0,0,.55), inset 0 0 0 3px rgba(243,239,226,.85); overflow: hidden; }
.btoken.crest-flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; clip-path: circle(46%); }
.arc .mini .btoken.crest-crest { width: 34px; height: 34px; }
.arc .mini .btoken + .btoken { margin-left: -6px; }
.top-meta { align-items: center; }
.chip.icon { display: inline-flex; align-items: center; gap: 6px; color: var(--giz-2); }
.chip.icon svg { width: 16px; height: 16px; }
.chip.icon span { display: none; }
@media (min-width: 720px) { .chip.icon span { display: inline; } }
.num-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.num-row .diff { color: var(--placar); font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.today .matchup .btoken { width: 64px; height: 64px; }
.brief-match { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.brief-match h2 { font-size: 26px; text-align: center; line-height: 1.05; }
.brief-match h2 span { color: var(--giz-3); font-size: 18px; }
.brief-match .btoken { width: 52px; height: 52px; }
.end-score { display: flex; align-items: center; justify-content: center; gap: 16px; }
.end-score .btoken { width: 56px; height: 56px; }
.end-score b { font-family: var(--display); font-size: 46px; color: var(--giz); font-variant-numeric: tabular-nums; }
.end-score b span { color: var(--giz-3); font-size: 26px; }
.end-card .sc { font-size: 17px; color: var(--giz-2); font-weight: 700; }
#sh-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#sh-title .ts { display: none; }
@media (max-width: 560px) { #sh-title { flex-wrap: nowrap; font-size: 22px; white-space: nowrap; } #sh-title .tl { display: none; } #sh-title .ts { display: inline; } }
#sh-title .btoken { width: 26px; height: 26px; box-shadow: none; }
#sh-title .btoken b { font-size: 9px; width: 18px; height: 18px; }
.sheet-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.peek-btn { background: var(--mesa); border: 1px solid var(--borda); border-radius: 999px; padding: 5px 10px; font-family: var(--cond); font-weight: 700; font-size: 13px; color: var(--giz-2); white-space: nowrap; }
.sheet.peek { background: transparent; pointer-events: none; }
.sheet.peek .sheet-inner { pointer-events: auto; max-height: 128px; overflow: hidden; }
.sheet.peek .sheet-inner > :not(.sheet-head) { visibility: hidden; }
.forms { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
body:not([data-screen="home"]):not([data-screen="page"]) .foot { display: none; }
body:not([data-screen]) .foot { display: block; }
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "pitch" "rest"; gap: 14px; }
.m-top { grid-area: top; display: flex; flex-direction: column; gap: 12px; }
.m-left { grid-area: pitch; }
.m-right { grid-area: rest; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) {
  .m-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "pitch top" "pitch rest"; align-items: start; column-gap: 24px; row-gap: 16px; }
  .m-left { position: sticky; top: 70px; grid-row: 1 / span 2; }
  body.sheet-open #app { max-width: none; margin-left: max(16px, calc((100vw - 1120px) / 2)); margin-right: 540px; }
  body.sheet-open .sheet { background: transparent; pointer-events: none; }
  body.sheet-open .sheet-inner { pointer-events: auto; box-shadow: -18px 0 40px rgba(0,0,0,.45); }
  .peek-btn { display: none; }
  .screen#brief, .screen#end, .screen#pens, #page-body { max-width: 760px; margin-inline: auto; width: 100%; }
}
@media (max-width: 959px) { .m-grid { display: grid !important; } }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis b { font-size: 22px; }
.form .share { grid-template-columns: 1fr; }
.doc .share .btn { font-size: 16px; }
.screen { gap: 18px; }
.today { gap: 16px; padding: 20px 18px; }
.arc { padding: 12px 14px; }
.sheet-inner { gap: 12px; }
.report p { line-height: 1.4; }
.board { padding: 10px 14px; }
.board-team .btoken { width: 32px; height: 32px; }
.btoken.crest-crest img, .btoken.crest-flag img { position: absolute; inset: 0; width: 100%; height: 100%; }
.btoken.crest-flag img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
@media (min-width: 960px) {
  .screen#home .today { grid-row: auto; grid-column: 1; }
  .screen#home .modes { grid-column: 2; grid-row: 1 / span 2; }
  .screen#home .how { grid-column: 1; grid-row: 2; }
  .m-grid { grid-template-rows: auto 1fr; }
  .m-top, .m-right { align-self: start; }
}
.pens-score { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pens-score .btoken { width: 40px; height: 40px; }
.goal { flex-direction: column; align-items: center; }
.goal-frame { box-shadow: 0 10px 0 -2px #1b6538, 0 26px 0 -2px #175a31; margin-bottom: 26px; }
.gz { display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-size: 14px; position: relative; z-index: 2; }
.pn-keeper { z-index: 1; }
.pn-ball { z-index: 3; }
.pen-step { font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--placar); }
body[data-screen="match"] .toast, body[data-screen="pens"] .toast { top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; }
.tn-short { display: none; }
@media (min-width: 960px) { #match.long-names .tn-long { display: none; } #match.long-names .tn-short { display: inline; } }
@media (max-width: 440px) { #match.long-names .tn-long { display: none; } #match.long-names .tn-short { display: inline; } }
@media (min-width: 960px) { body.sheet-open .tn-long { display: none; } body.sheet-open .tn-short { display: inline; } }
.sugg { display: flex; flex-direction: column; gap: 8px; }
.sugg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; text-align: left; background: var(--mesa); border: 1px solid var(--borda); border-radius: 12px; padding: 10px; min-height: 76px; }
.sg-i { font-size: 20px; line-height: 1.1; }
.sg-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sg-t b { font-family: var(--cond); font-weight: 800; font-size: 16px; line-height: 1.15; }
.sg-t span { font-size: 13px; color: var(--giz-2); line-height: 1.3; }
.sg.on { border-color: var(--placar); box-shadow: 0 0 0 2px var(--placar) inset; background: #2d2414; }
.sugg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sugg-head h3 { margin: 0; }
.more-btn { background: none; border: 1px solid var(--borda); color: var(--placar); border-radius: 999px; font-family: var(--cond); font-weight: 800; font-size: 15px; min-height: 40px; padding: 6px 14px; cursor: pointer; }
.more-btn:hover { border-color: var(--placar); }
.sg { position: relative; }
.sg-ck { position: absolute; top: 8px; right: 10px; color: var(--placar); font-weight: 800; font-size: 15px; }
.sg.on .sg-t { padding-right: 16px; }
.pkg { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--placar); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.pkg .est { margin: 0; font-size: 15px; }
#sh-lock:disabled { opacity: .45; cursor: not-allowed; }
.adv { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 360px) { .sugg-grid { grid-template-columns: 1fr; } }
.est { font-style: normal; font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .02em; margin-top: 2px; }
.est.up { color: var(--ok); } .est.down { color: var(--perigo); } .est.flat, .est.wait { color: var(--giz-3); }

/* rosto do jogador */
.face { position: relative; overflow: hidden; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; background: var(--mesa-3); }
.face.big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--display); font-size: 22px; background: var(--mesa-3); color: var(--giz-2); box-shadow: 0 0 0 2px var(--placar); }
.face i { font-style: normal; }
.pl .n.face { width: 34px; height: 34px; }
.pl { grid-template-columns: 34px 1fr auto; }
.order .pl { grid-template-columns: 34px 1fr auto auto; }
.nn { font-style: normal; font-family: var(--display); font-size: 12px; color: var(--placar); background: var(--mesa-3); border-radius: 6px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
.pc-head h2 .nn { font-size: 15px; vertical-align: 3px; }
.opt { grid-template-columns: 34px 1fr auto; }
.opt .n.face { width: 34px; height: 34px; }
.bench .pl { grid-template-columns: 30px 1fr auto; gap: 6px; padding: 8px; }
.bench .pl .n.face { width: 30px; height: 30px; }
.bench .pl .nm { font-size: 14px; }
.bench .nn { margin-right: 4px; padding: 1px 4px; font-size: 11px; }
@media (max-width: 420px) { .bench { grid-template-columns: 1fr; } }
.pcard .pc-head { padding-right: 40px; }

/* ---------- v4: pente fino de telas ---------- */
/* campo sempre na proporção certa e cabendo na altura da tela */
.pitch { aspect-ratio: 1 / 1.36; }
@media (min-width: 960px) {
  .m-left .pitch-wrap, .lu-left .pitch-wrap { width: min(100%, 560px, calc((100vh - 96px) / 1.36)); margin-inline: auto; }
}
/* avisos de cor embaixo, sem cobrir o placar */
body[data-screen="match"] .toast, body[data-screen="pens"] .toast { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { body.sheet-open .toast { left: calc((100vw - 520px) / 2); } }
/* celular deitado: campo à esquerda na altura da tela, o resto à direita */
@media (orientation: landscape) and (max-height: 520px) {
  .m-grid { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pitch top" "pitch rest"; align-items: start; column-gap: 16px; }
  .m-left { grid-row: 1 / span 2; position: sticky; top: 56px; }
  .m-left .pitch-wrap, .lu-left .pitch-wrap { width: calc((100vh - 72px) / 1.36); margin: 4px 6px; }
  .m-right { max-height: none; overflow: visible; }
  .lu-grid { display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
  .lu-left { position: sticky; top: 56px; }
  body.sheet-open .sheet { background: transparent; pointer-events: none; }
  body.sheet-open .sheet-inner { pointer-events: auto; }
  .peek-btn { display: none; }
  body[data-screen="match"] .toast { left: 30%; }
}
/* briefing no celular estreito: as duas colunas de elenco viram uma */
@media (max-width: 400px) { .scout { grid-template-columns: 1fr; } }

.toast.grade { pointer-events: none; }
@media (max-width: 959px) { body[data-screen="match"] .toast.grade { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); opacity: .97; } }
/* computador estreito com o painel aberto: o campo ocupa a coluna toda em vez de virar um selo */
@media (min-width: 960px) and (max-width: 1279px) {
  body.sheet-open .m-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "pitch" "rest"; }
  body.sheet-open .m-left { position: static; grid-row: auto; }
  body.sheet-open .m-right { display: none; }
  body.sheet-open .m-left .pitch-wrap { width: min(100%, calc((100vh - 230px) / 1.36)); min-width: 260px; }
}

/* ligas e métricas */
.league { background: var(--mesa-2); border: 1px solid var(--borda); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.lg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lg-head b { font-family: var(--cond); font-weight: 800; font-size: 19px; }
.lg-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-act .btn { flex: 1; min-width: 180px; }
.league table, .metrics table { width: 100%; border-collapse: collapse; font-size: 14px; }
.league th, .metrics th { text-align: left; font-family: var(--cond); font-weight: 700; color: var(--giz-3); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; padding: 6px 6px; border-bottom: 1px solid var(--borda); }
.league td, .metrics td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.league td i, .metrics td i { color: var(--giz-3); font-style: normal; font-size: 12px; }
.league tr.me td { color: var(--placar); font-weight: 700; }
.metrics section { overflow-x: auto; }
.league-new { display: flex; flex-direction: column; gap: 10px; }

/* ajustes */
.prefs { display: flex; flex-direction: column; gap: 12px; }
.prefs .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.prefs .chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--placar); flex: none; }
.prefs .chk span { display: flex; flex-direction: column; gap: 2px; }
.prefs .chk i { font-style: normal; font-size: 14px; color: var(--giz-3); }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--giz-2); font-family: var(--cond); font-weight: 800; font-size: 15px; padding: 8px 14px; min-height: 40px; }
.seg button.on { background: var(--giz); color: var(--mesa); }
body.big .sg-t b { font-size: 18px; } body.big .sg-t span { font-size: 15px; }
body.big .report p, body.big .report div { font-size: 18px; }
body.big #ticker, body.big .ticker { font-size: 19px; }
body.big .pl .nm, body.big .opt .nm { font-size: 17px; } body.big .pl .ps, body.big .opt .ps { font-size: 15px; }
body.big .doc p, body.big .doc li { font-size: 18px; }
body.big .bt { font-size: 16px; }
/* a lista do ranking herdava o estilo da barra do topo (mesmo nome) */
ol.top { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; position: static; background: none; margin: 0 0 6px; }
.seg button { white-space: nowrap; min-width: 52px; }
.pref-row .seg { flex: none; }

.push-row { align-items: center; }
.push-row > span { flex: 1; min-width: 200px; }
.push-row .btn { min-width: 110px; }

.archive.copa { background: linear-gradient(135deg, #2d2414, #1d1510); border: 1px solid #6b4a14; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.archive.copa .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.archive.copa .btn .btoken { width: 28px; height: 28px; }

.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* pagamentos */
.pay-btns { display: flex; flex-direction: column; gap: 10px; }
.pix { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.pix-qr { display: block; width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 12px; padding: 8px; }
.pix-qr svg { width: 100%; height: 100%; display: block; }
.pix-code { width: 100%; font: 12px/1.4 ui-monospace, Menlo, monospace; background: var(--mesa); color: var(--giz-2); border: 1px solid var(--borda); border-radius: 10px; padding: 8px; resize: none; word-break: break-all; }
.pix-wait { text-align: center; color: var(--giz-2); margin: 0; }
.don-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }

.brand-logo { width: 32px; height: 32px; display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.don-vals .btn { white-space: nowrap; padding-inline: 6px; font-size: 16px; }

/* cabeçalho com respiro (antes a regra da lista do ranking zerava o espaçamento dele) */
.top { padding-block: calc(16px + env(safe-area-inset-top, 0px)) 16px; margin-bottom: 8px; }
.top-meta { gap: 8px; }
.top-meta .chip { padding: 6px 12px; }
.screen { padding-top: 8px; }
@media (min-width: 960px) {
  .top { padding-block: 22px 20px; margin-bottom: 12px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-word { font-size: 26px; }
  .top-meta .chip { padding: 7px 14px; font-size: 15px; }
}
/* ---------- respiro: modais, cartões e formulários ---------- */
.modal-inner { padding: 26px 22px 22px; border-radius: 20px; }
#modal-body { gap: 16px; }
#modal-body > div, #modal-body > section, #modal-body > form { display: flex; flex-direction: column; gap: 14px; }
#modal-body h2 { margin: 0; padding-right: 48px; line-height: 1.1; }
#modal-body .muted { margin: 0; line-height: 1.45; }
#modal-body input, #modal-body select { margin: 2px 0; }
#modal-body .btn { width: 100%; }
#modal-body .btn + .btn { margin-top: -4px; }
.modal-x { top: 16px; right: 16px; }
.doc { padding: 20px 18px; gap: 14px; }
.doc h2 { margin: 0 0 2px; }
.doc h3 { margin: 8px 0 0; }
.doc p { line-height: 1.5; }
.doc form, form.form, .form { display: flex; flex-direction: column; gap: 12px; }
.doc label { display: block; margin-top: 4px; }
.inrow { gap: 10px; }
.screen { gap: 20px; }
@media (min-width: 960px) { .doc { padding: 24px 24px; gap: 16px; } .modal-inner { padding: 30px 28px 26px; } }

/* planos do Pro */
.big-price .or { font-style: normal; font-size: .5em; color: var(--giz-3); margin: 0 6px; vertical-align: middle; }
.plans { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; background: var(--mesa); border: 1px solid var(--borda); border-radius: 14px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.plan.best { border-color: var(--placar); box-shadow: 0 0 0 1px var(--placar) inset; }
.plan-tag { position: absolute; top: -11px; left: 14px; background: var(--placar); color: var(--mesa); font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.plan-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-h b { font-family: var(--cond); font-weight: 800; font-size: 22px; }
.plan-p { font-family: var(--display); font-size: 26px; color: var(--placar); white-space: nowrap; }
.plan-p small { font-family: var(--cond); font-size: 15px; color: var(--giz-3); }
.plan .muted { margin: 0; }
.plan .btn { margin-top: auto; }

.pen-help { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
@media (min-width: 640px) { .pen-help { grid-template-columns: 2fr 1fr; } }
.pen-help .btn { font-size: 15px; text-transform: none; }
