/* golo. — frente a frente (head to head) */
.h2h-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:8px;margin:18px 20px 0}
.h2h-pick{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;text-align:center;cursor:pointer}
.h2h-pick .crest{width:clamp(64px,20vw,88px);height:clamp(64px,20vw,88px)}
.h2h-pick b{font:800 clamp(9.5px,2.75vw,14px)/1.15 var(--disp);letter-spacing:-.04em;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px 18px 6px 8px;border-radius:10px;background:var(--card);position:relative}
.h2h-pick b::after{content:"";position:absolute;right:8px;top:50%;width:6px;height:6px;border:solid var(--ink3);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg)}
.h2h-pick select{position:absolute;inset:0;z-index:2;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px;-webkit-appearance:none;appearance:none}
.h2h-vs{align-self:center;margin-top:-30px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--bg);font:900 14px var(--disp)}
.h2h-card{margin:18px 20px 0;padding:6px 16px;border-radius:22px;background:var(--card)}
.h2h-line{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--hair)}
.h2h-line:first-child{border-top:0}
.h2h-line>b{font:800 18px var(--disp);letter-spacing:-.03em;color:var(--ink2)}
.h2h-line>b:last-child{text-align:right}
.h2h-line>b.win{color:var(--c,var(--l1))}
.h2h-line>span{text-align:center;font-size:12.5px;font-weight:700;color:var(--ink2)}
.h2h-split{display:block;height:5px;margin-top:6px;border-radius:3px;background:color-mix(in srgb,var(--ink) 14%,transparent);overflow:hidden}
.h2h-split i{display:block;height:100%;background:var(--c,var(--l1));border-radius:3px}
.h2h-line.top{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.h2h-line.top>span:last-child{display:flex;justify-content:flex-end}
.h2h-form{display:flex;gap:3px}
.h2h-form i{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;font:800 10px var(--txt);font-style:normal;color:#fff}
.h2h-form .fV{background:#1DB954}.h2h-form .fE{background:#8a8a94}.h2h-form .fD{background:var(--l1)}
.h2h-stars{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;padding:14px 16px}
.h2h-stars>span{font-size:12.5px;font-weight:700;color:var(--ink2)}
.h2h-stars>div:last-child{text-align:right}
.h2h-stars b{display:block;font:800 14px var(--disp);letter-spacing:-.02em}
.h2h-stars small{color:var(--ink2);font-weight:600;font-size:12px}
/* arquivo: position change since the previous round */
.mv{font-style:normal;font:800 10px var(--txt);margin-left:6px;vertical-align:1px}
.mv.up{color:#1DB954}.mv.dn{color:var(--l1)}
button.back{background:none;border:0;padding:0;cursor:pointer}
/* team picker: button + bottom sheet (replaces the native select) */
button.h2h-pick{background:none;border:0;padding:0;color:inherit;font:inherit}
.h2h-pick .crest{transition:transform .15s}
.h2h-pick:active .crest{transform:scale(.94)}
.sheet-wrap{position:fixed;inset:0;z-index:1000}
.sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.5);opacity:0;transition:opacity .25s}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:78vh;display:flex;flex-direction:column;background:var(--bg);border-radius:28px 28px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.9,.25,1);box-shadow:0 -20px 50px rgba(0,0,0,.35)}
.sheet-wrap.open .sheet-bg{opacity:1}
.sheet-wrap.open .sheet{transform:none}
.sheet-grip{width:40px;height:5px;border-radius:3px;background:var(--hair);margin:4px auto 10px}
.sheet-h{display:flex;align-items:center;justify-content:space-between;padding:0 4px 10px}
.sheet-h b{font:800 18px var(--disp);letter-spacing:-.03em}
.sheet-list{overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-bottom:4px}
.sheet-team{display:grid;grid-template-columns:22px 34px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:16px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.sheet-team .ps{font:800 13px var(--disp);color:var(--ink3)}
.sheet-team .crest{width:34px;height:34px}
.sheet-team b{font:800 14.5px var(--txt);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-team small{font-size:12px;font-weight:700;color:var(--ink2)}
.sheet-team.on{box-shadow:inset 0 0 0 2px var(--c,var(--l1))}
.sheet-team:disabled{opacity:.4;cursor:default}
/* on wider screens the sheet becomes a centred card */
@media (min-width:600px){
  .sheet{left:50%;right:auto;bottom:auto;top:50%;width:440px;max-height:min(640px,82vh);border-radius:28px;padding-bottom:16px;transform:translate(-50%,-46%) scale(.96);opacity:0;transition:transform .25s cubic-bezier(.2,.9,.25,1),opacity .2s}
  .sheet-wrap.open .sheet{transform:translate(-50%,-50%);opacity:1}
  .sheet-grip{display:none}
  .sheet-h{padding-top:8px}
}
button.sw{border:0;font:inherit;cursor:pointer}
.num-p[hidden]{display:none}
.bubbles{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.bub{min-width:0}
.bub .s{white-space:normal;line-height:1.3}
.facts b{white-space:nowrap;font-size:clamp(20px,6.4vw,28px)}
.bub-t{display:flex;align-items:center;gap:8px}
.bub-t .crest{width:26px;height:26px;flex:none}
.bub-pair{display:flex;flex:none}.bub-pair .crest+.crest{margin-left:-8px}
/* player profile */
a.pl,a.rk,a.hero-rk{color:inherit;text-decoration:none}
.pl-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;margin:8px 20px 0}
.pl-num{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;background:var(--c,var(--l1));color:#fff;font:900 30px var(--disp);letter-spacing:-.05em}
.pl-hero .pill .crest{width:22px;height:22px}
.pl-games{display:flex;flex-direction:column;gap:8px;margin:0 20px}
.pl-g{border-radius:20px;background:var(--card);overflow:hidden}
.pl-g .fx{background:none}
.pl-ev{display:flex;flex-wrap:wrap;gap:12px;padding:0 16px 12px 92px;font-size:13px;font-weight:700;color:var(--ink2)}
.pl-ev>span{display:inline-flex;align-items:center;gap:6px}
.pl-ev .ic{width:15px;display:inline-grid}
.pl-st{grid-template-columns:70px minmax(0,1fr) 28px 28px 28px!important}
.fx-m .tag.cup{display:block;margin-top:4px;width:max-content;background:color-mix(in srgb,var(--cup) 18%,transparent);color:var(--cup);font-size:10px}
.tl-p{color:inherit;text-decoration:none;border-bottom:1px dashed color-mix(in srgb,currentColor 35%,transparent)}
/* share card */
.share-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}
.share-btn svg,.share-btns svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.share-sheet{gap:12px}
.share-img{display:block;width:auto;max-width:100%;max-height:52vh;margin:0 auto;border-radius:18px;box-shadow:0 16px 40px rgba(0,0,0,.35)}
.share-btns{display:grid;gap:8px}
.share-btns>*{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}
button.btn-main,button.btn-ghost{border:0;cursor:pointer}
/* "Clube atualizado" badge */
.upd{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:6px;border-radius:50%;background:linear-gradient(135deg,#FF2E8A,#FF3D2E);color:#fff;vertical-align:1px}
.upd svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:3}
.upd.big{display:inline-flex;width:auto;height:auto;gap:6px;margin:10px auto 0;padding:6px 12px 6px 9px;border-radius:999px;font:800 12.5px var(--txt);letter-spacing:.02em}
.upd.big svg{width:14px;height:14px}
.rk b .upd{margin-left:6px}
/* "Esta jornada": one line per division, games open on tap */
.grp-d{margin:0 0 8px}
.grp-d summary{list-style:none;display:grid;grid-template-columns:10px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:14px 16px;border-radius:20px;background:var(--card);cursor:pointer}
.grp-d summary::-webkit-details-marker{display:none}
.grp-d summary .pip{width:10px;height:10px;border-radius:50%;background:var(--c,var(--l1))}
.grp-d summary b{display:block;font:800 15px var(--disp);letter-spacing:-.02em}
.grp-d summary small{display:block;color:var(--ink2);font-size:12.5px;font-weight:600;margin-top:2px}
.grp-d summary svg{width:18px;height:18px;fill:none;stroke:var(--ink3);stroke-width:2.4;transition:transform .2s}
.grp-d[open] summary svg{transform:rotate(180deg)}
.grp-d[open] summary{border-radius:20px 20px 0 0}
.grp-d .group{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}
.grp-d .group-h{display:none}
/* header and games form one card, same width */
.grp-d{margin:0 20px 8px;border-radius:20px;overflow:hidden;background:var(--card)}
.grp-d summary{border-radius:0;background:none}
.grp-d[open] summary{border-radius:0;border-bottom:1px solid var(--hair)}
.grp-d .group{margin:0;border-radius:0;background:none;box-shadow:none}
/* live clock under the score; time-out marker in the events list */
.mp-clock{display:table;margin:8px auto 0;padding:3px 10px;border-radius:999px;background:rgba(0,0,0,.22);font:900 14px var(--txt);letter-spacing:.04em;color:#fff;font-variant-numeric:tabular-nums}
.tl-to{display:inline-grid;place-items:center;min-width:24px;height:20px;padding:0 5px;border-radius:6px;background:var(--ink);color:var(--bg);font:800 11px var(--txt)}
.tl-to svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4}
.tl-sep{display:flex;align-items:center;gap:10px;margin:6px 0;font:800 11px var(--txt);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}
.tl-sep::before,.tl-sep::after{content:"";flex:1;height:1px;background:var(--hair)}
/* app confirmation */
.cf-sheet{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.cf-msg{display:block;font:800 19px/1.25 var(--disp);letter-spacing:-.03em;padding:6px 6px 0}
.cf-note{margin:8px 6px 0;color:var(--mid);font-size:14px}
.cf-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.cf-btn{border:0;border-radius:14px;padding:14px;font-weight:700;font-size:15px;font-family:inherit;background:var(--soft);color:inherit;cursor:pointer}
.cf-btn.ok{background:var(--ink);color:var(--bg)}
.cf-btn.ok.bad{background:var(--red);color:#fff}
.share-fmt{flex:none;margin:0 0 12px;padding:0;justify-content:center;overflow:visible}
.share-img.sq{max-height:44vh}
/* share window on a phone: the image takes what is left, the buttons always show (side by side) */
.sheet.share-sheet{max-height:94vh;max-height:94dvh}
.share-sheet .share-img,.share-sheet .share-img.sq{max-height:calc(94vh - 290px);max-height:calc(94dvh - 290px);max-width:100%;flex:none}
.share-btns:has(>:nth-child(2)){grid-template-columns:1fr 1fr}
.share-sheet .fine{margin:0}
@media (min-width:700px){.sheet.share-sheet{max-height:min(860px,92vh)}.share-sheet .share-img,.share-sheet .share-img.sq{max-height:min(560px,calc(92vh - 290px))}}
/* Novidades: what changed in each update */
.news-r{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:20px;background:var(--card)}
.news-r+.news-r{margin-top:10px}
.news-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.news-h b{font:800 15px/1.25 var(--disp);letter-spacing:-.02em;min-width:0}
.news-h small{flex:none;font:700 12px var(--txt);color:var(--ink3)}
.news-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.news-l li{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;align-items:start;font:600 14px/1.4 var(--txt)}
.news-k{padding:3px 8px;border-radius:999px;font:800 10.5px/1.3 var(--txt);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;margin-top:1px;justify-self:start;background:var(--soft);color:var(--ink2)}
.news-k.novo{background:color-mix(in srgb,var(--l1) 20%,transparent);color:var(--ink)}
.news-k.melhor{background:color-mix(in srgb,var(--ok) 22%,transparent);color:var(--ink)}
.news-sheet .sheet-list{gap:0}
.news-btns{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:12px;flex:none}
.news-btns .btn-main{width:100%}
.news-page{padding:0 16px}
button.adm-row{width:100%;border:0;font:inherit;text-align:left;cursor:pointer}
/* Guia: the step-by-step tour */
.tour{position:fixed;inset:0;z-index:200}
.tour-hole{position:fixed;border-radius:18px;box-shadow:0 0 0 9999px rgba(6,6,10,.74),0 0 0 2px var(--l1);transition:all .3s cubic-bezier(.2,.9,.25,1);pointer-events:none}
.tour.center .tour-hole{left:50%;top:50%;width:0;height:0;box-shadow:0 0 0 9999px rgba(6,6,10,.8)}
.tour-card{position:fixed;left:16px;right:16px;max-width:420px;margin:0 auto;display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:24px;background:var(--card);border:1px solid color-mix(in srgb,var(--ink) 10%,transparent);color:var(--ink);box-shadow:0 20px 50px rgba(0,0,0,.4);transition:top .3s,bottom .3s}
.tour.center .tour-card{top:50%;transform:translateY(-50%)}
.tour-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px}
.tour-dots{display:flex;gap:5px}.tour-dots i{width:6px;height:6px;border-radius:99px;background:var(--soft)}.tour-dots i.on{width:18px;background:var(--l1)}
.tour-t{font:900 21px/1.15 var(--disp);letter-spacing:-.03em}
.tour-d{margin:0;font:600 14.5px/1.45 var(--txt);color:var(--ink2)}
.tour-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.tour-end{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:6px}.tour-end .link-btn{align-self:center;margin-top:2px}
.tour-btns.one{grid-template-columns:1fr}
.pick-q{flex:none;margin:0 0 10px;padding:12px 14px;border:0;border-radius:14px;background:var(--card);color:var(--ink);font:600 15px var(--txt);width:100%;box-sizing:border-box}
a.bub{display:block;color:inherit;text-decoration:none}
.news-gm{display:inline-block;margin-right:6px;padding:2px 7px;border-radius:999px;background:color-mix(in srgb,var(--gm,#8A4DFF) 22%,transparent);color:var(--ink);font:800 10px/1.4 var(--txt);text-transform:uppercase;letter-spacing:.05em;vertical-align:1px}

/* códigos golo.: folha do scanner e página dos códigos */
.scan-box{position:relative;aspect-ratio:3/4;max-height:58vh;margin:0 auto;width:100%;border-radius:24px;overflow:hidden;background:#111114}
.scan-box video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s}
.scan-box.on video{opacity:1}
.scan-frame{position:absolute;left:8%;right:8%;top:38%;height:24%;border-radius:18px;box-shadow:0 0 0 2px rgba(255,255,255,.9),0 0 0 999px rgba(17,17,20,.35);opacity:0;transition:box-shadow .2s}
.scan-box.on .scan-frame{opacity:1}
.scan-box.hit .scan-frame{box-shadow:0 0 0 3px #11A86B,0 0 0 999px rgba(17,17,20,.5)}
.scan-ask{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;color:#fff}
.scan-ask b{font:800 17px var(--txt)}
.scan-ask p{margin:0;font:500 14px/1.5 var(--txt);color:rgba(255,255,255,.75)}
.scan-ask .btn-main{background:#fff;color:#111114;margin-top:8px;max-width:280px}
.scan-ic{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1)}
.scan-ic svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.scan-msg{text-align:center;margin:12px 6px 0}
.gc-big{background:#fff;border-radius:28px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.gc-big svg{display:block;width:100%;height:auto}
.gc-list{background:var(--card);border-radius:24px;overflow:hidden;box-shadow:0 0 0 1px var(--hair)}
.gc-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px 16px;border-top:1px solid var(--hair)}
.gc-row:first-child{border-top:0}
.gc-mini{display:block;background:#fff;border-radius:10px;padding:4px 6px}
.gc-mini svg{display:block;width:120px;height:auto}
.gc-tx{min-width:0;display:flex;flex-direction:column;gap:2px;color:inherit}
.gc-tx b{font:800 15px var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-tx small{font:600 12.5px var(--txt);color:var(--ink3)}
.gc-dl{height:34px;padding:0 14px;border-radius:999px;background:var(--ink);color:var(--bg);font:800 13px var(--txt);flex:none}
@media (max-width:420px){.gc-mini svg{width:90px}}

.gc-pill{display:inline-flex;align-items:center;gap:6px}
.gc-pill svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.scan-dbg{position:absolute;right:8px;top:8px;width:42%;height:auto;border-radius:10px;opacity:.92;pointer-events:none}
