/* Landing pública do campeonato (Claude Design: Home, Cabecalho, Rodape...). Tema = 4 tokens no <body>. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink-900); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
@keyframes pulso { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.page { container-type: inline-size; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* Cabeçalho */
.lh { background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; }
.lh-top { position: relative; padding-top: 12px; display: flex; align-items: center; gap: 12px; }
.lh-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lh-name b { font-size: 17px; line-height: 1; font-weight: 800; font-stretch: 78%; text-transform: uppercase; letter-spacing: .01em; }
.lh-name span { font-size: 12px; opacity: .78; }
.lh-chip { height: 36px; padding: 0 10px 0 12px; border: 0; border-radius: 8px; background: color-mix(in oklab, var(--on-primary) 16%, transparent); color: var(--on-primary); font: 700 14px var(--font); display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; }
.lh-chip::-webkit-details-marker { display: none; }
.lh-ed { position: relative; }
.lh-ed-menu { position: absolute; right: 0; top: 42px; z-index: 20; min-width: 160px; background: #fff; color: var(--ink-900); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); padding: 6px; display: flex; flex-direction: column; }
.lh-ed-menu a { padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.lh-ed-menu a:hover { background: var(--line-soft); text-decoration: none; }
.lh-ed-menu .muted { color: var(--ink-500); font-weight: 500; }
.lh-share { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--on-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lh-nav { position: relative; margin-top: 6px; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; font-size: 14px; white-space: nowrap; }
.lh-nav::-webkit-scrollbar { display: none; }
.lh-nav a { height: 44px; padding: 0 12px; display: flex; align-items: center; font-weight: 600; opacity: .85; flex: none; }
.lh-nav a:hover { text-decoration: none; opacity: 1; }
.lh-nav a.on { font-weight: 800; opacity: 1; box-shadow: inset 0 -3px 0 var(--secondary); }
.lh-line { position: relative; height: 1px; background: color-mix(in oklab, var(--on-primary) 18%, transparent); }
.stripes { position: relative; overflow: hidden; }
.stripes::before, .stripes::after { content: ""; position: absolute; top: -40px; height: calc(100% + 80px); background: var(--secondary); transform: skewX(-16deg); }
.stripes::before { right: -5%; width: clamp(48px, 7cqi, 110px); }
.stripes::after { right: calc(-5% + clamp(62px, 9.5cqi, 145px)); width: clamp(10px, 1.6cqi, 22px); }
.lh-title { position: relative; padding-top: clamp(20px, 3cqi, 40px); padding-bottom: clamp(22px, 3cqi, 40px); display: flex; flex-direction: column; gap: 8px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.lh-title h1 { margin: 0; font-size: clamp(44px, 6.4cqi, 84px); line-height: .86; font-weight: 800; font-stretch: 70%; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lh-title .sub { font-size: 14px; opacity: .85; max-width: 640px; line-height: 1.4; }

/* Hero da home */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; top: -40px; height: calc(100% + 80px); background: var(--secondary); transform: skewX(-16deg); }
.hero::before { right: -6%; width: clamp(60px, 9cqi, 130px); }
.hero::after { right: calc(-6% + clamp(78px, 12cqi, 170px)); width: clamp(14px, 2cqi, 28px); }
.hero-year { position: absolute; left: -1cqi; bottom: -6cqi; font-size: clamp(200px, 48cqi, 640px); line-height: .8; font-weight: 900; font-stretch: 62%; font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--on-primary); opacity: .09; pointer-events: none; letter-spacing: -.02em; }
.hero-in { position: relative; padding-top: clamp(24px, 4cqi, 56px); padding-bottom: clamp(28px, 4cqi, 56px); display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.hero-txt { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-size: clamp(52px, 9.4cqi, 120px); line-height: .84; font-weight: 800; font-stretch: 70%; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { height: 28px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--on-primary) 35%, transparent); }
.chip.hl { background: var(--secondary); color: var(--on-secondary); box-shadow: none; font-weight: 800; }
.live-card { flex: 0 1 420px; min-width: 0; width: 100%; background: #fff; color: var(--ink-900); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); overflow: hidden; }
.live-card:hover { text-decoration: none; }
.live-card .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.live-card .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 14px 12px 16px; }
.live-card .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; font-size: 14px; line-height: 1.15; font-weight: 700; font-stretch: 88%; }
.live-card .big { font-size: 60px; line-height: .9; font-weight: 800; font-stretch: 70%; font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: center; }
.live-card .big .x { font-size: 28px; color: var(--ink-300); }
.live-card .foot { padding: 11px 16px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.live-card .foot b { color: var(--ink-900); display: flex; align-items: center; gap: 2px; white-space: nowrap; }

/* Conteúdo */
.lmain { flex: 1; padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 36px; }
.cols { display: flex; flex-wrap: wrap; gap: 36px 28px; align-items: flex-start; }
.col-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.col-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head h2 { margin: 0; font-size: clamp(22px, 2.4cqi, 28px); font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.more { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.daylabel { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-700); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.gridcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.box { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--line-soft); border-radius: 10px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.tabs a, .tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; display: flex; align-items: center; font: 600 14px var(--font); color: var(--ink-700); white-space: nowrap; cursor: pointer; flex: none; }
.tabs a:hover { text-decoration: none; color: var(--ink-900); }
.tabs .on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); font-weight: 700; color: var(--ink-900); }

/* Card de próximo jogo (hora à esquerda) */
.gcard { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); display: grid; grid-template-columns: 64px 1fr; overflow: hidden; }
.gcard:hover { text-decoration: none; box-shadow: 0 0 0 1.5px var(--ink-300); }
.gcard .when { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--bg-soft); border-right: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; text-align: center; padding: 4px; }
.gcard .when b { font-size: 22px; line-height: 1; font-weight: 800; font-stretch: 72%; }
.gcard .when span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-500); text-transform: uppercase; }
.gcard .body { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; min-width: 0; }
.tline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tline .tn { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; font-stretch: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tline .sc { font-size: 24px; line-height: 1; font-weight: 800; font-stretch: 72%; font-variant-numeric: tabular-nums; }
.tline .pen { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tline.lost { color: var(--ink-500); }
.tline.lost .tn { font-weight: 500; }
.tline .pen.win { color: var(--win); }
.venue { font-size: 12px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; min-width: 0; }
.venue span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card de resultado */
.rcard { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.rcard:hover { text-decoration: none; box-shadow: 0 0 0 1.5px var(--ink-300); }
.rcard.live { box-shadow: 0 0 0 1.5px var(--live); }
.rcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px 0; }
.rcard .lines { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; }
.rcard .foot { padding: 9px 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-700); background: var(--bg-soft); display: flex; justify-content: space-between; gap: 8px; }

/* Badges (iguais ao painel) */
.badge { height: 22px; padding: 0 8px; border-radius: 4px; background: var(--line-soft); color: var(--ink-700); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; width: max-content; }
.badge.sm { height: 20px; padding: 0 7px; font-size: 10.5px; }
.badge.live { background: var(--live); color: #fff; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulso 1.4s ease-in-out infinite; }
.badge.done { background: var(--done); color: #fff; }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.wo { background: var(--wo-bg); color: var(--wo-fg); }
.badge.red { background: var(--card-red); color: #fff; }
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; animation: pulso 1.4s ease-in-out infinite; }
.cardmark { width: 10px; height: 14px; border-radius: 2px; display: inline-block; flex: none; }
.cardmark.y { background: var(--card-yellow); } .cardmark.r { background: var(--card-red); }
.notice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-size: 13.5px; line-height: 1.35; }

/* Tabela de classificação */
.stand { font-variant-numeric: tabular-nums; }
.stand .hd, .stand .rw { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px 34px 40px; align-items: center; padding-right: 8px; }
.stand .hd { height: 32px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-500); }
.stand .hd span, .stand .rw > span { text-align: center; }
.stand .hd span:nth-child(2) { text-align: left; }
.stand .rw { height: 48px; font-size: 14px; border-top: 1px solid var(--line-soft); position: relative; }
.stand .rw .zone { position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; }
.stand .rw .zone.direct { background: var(--primary); }
.stand .rw .zone.best { background: repeating-linear-gradient(var(--primary) 0 4px, transparent 4px 7px); }
.stand .rw .team { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 700; font-stretch: 90%; font-size: 14.5px; text-align: left; }
.stand .rw .team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand .pts { font-weight: 800; font-size: 16px; }
.stand .dim { color: var(--ink-700); }
.legend { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-500); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.legend i { width: 4px; height: 14px; border-radius: 2px; background: var(--primary); display: inline-block; vertical-align: middle; margin-right: 6px; }

/* Artilharia (linha) */
.prow { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px 9px 8px; border-top: 1px solid var(--line-soft); }
.prow:first-child { border-top: 0; }
.prow:hover { text-decoration: none; background: var(--bg-soft); }
.prow .rk { text-align: center; font-size: 15px; font-weight: 800; font-stretch: 80%; color: var(--ink-500); }
.prow .who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prow .who b { font-size: 15px; font-weight: 700; font-stretch: 90%; }
.prow .who span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; }
.prow .val { display: flex; align-items: baseline; gap: 4px; }
.prow .val b { font-size: 28px; line-height: 1; font-weight: 800; font-stretch: 70%; font-variant-numeric: tabular-nums; }
.prow .val span { font-size: 11px; font-weight: 700; color: var(--ink-500); }

/* Fotos e patrocinadores */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); gap: 8px; }
.photo { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; position: relative; background: repeating-linear-gradient(135deg, #E2E5DF 0 10px, #EAECE7 10px 20px); display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(17,20,23,.55)); color: #fff; font-size: 12.5px; font-weight: 600; }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 170px), 1fr)); gap: 8px; }
.sponsor { height: 64px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; padding: 8px 10px; text-align: center; font-size: 12px; line-height: 1.2; font-weight: 700; color: #8A9096; text-transform: uppercase; letter-spacing: .04em; }
.sponsor img { max-height: 44px; width: auto; object-fit: contain; }
.sponsors-sec { padding-top: 8px; border-top: 1px solid var(--line); }

/* Estado vazio */
.empty { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ink-700); }
.empty .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--ink-500); }
.empty b { font-size: 20px; font-weight: 800; font-stretch: 78%; text-transform: uppercase; color: var(--ink-900); }
.empty p { margin: 0; max-width: 360px; font-size: 14.5px; line-height: 1.5; }

/* Botões */
.lbtn { height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--font); cursor: pointer; }
.lbtn:hover { text-decoration: none; filter: brightness(1.05); }
.lbtn.outline { background: #fff; color: var(--ink-900); box-shadow: inset 0 0 0 1.5px var(--ink-900); }
.lbtn.hl { background: var(--secondary); color: var(--on-secondary); }

/* Rodapé */
.lf { background: var(--ink-900); color: #fff; margin-top: auto; }
.lf .in { padding-top: 28px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.lf .who { display: flex; gap: 12px; align-items: center; }
.lf .who b { font-size: 15px; }
.lf small, .lf .meta { font-size: 13px; color: var(--ink-300); }
.lf .meta { display: flex; flex-direction: column; gap: 6px; }
.lf .meta b { color: #fff; }

/* Escudo / avatar (mesmos do painel) */
.shield { flex: none; position: relative; display: inline-block; }
.shield img { width: 100%; height: 100%; object-fit: contain; }
.shield .gen { position: absolute; inset: 0; border-radius: 14% 14% 50% 50% / 10% 10% 46% 46%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-stretch: 75%; letter-spacing: .02em; line-height: 1; }
.avatar { flex: none; position: relative; overflow: hidden; display: inline-block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .silh { position: absolute; left: 50%; bottom: -18%; width: 86%; height: 62%; transform: translateX(-50%); border-radius: 50% 50% 0 0; }
.avatar .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-stretch: 80%; }
.avatar .nr { position: absolute; right: 0; bottom: 0; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
/* Faixas diagonais ficam atrás do conteúdo. */
.hero-in, .lh-title { z-index: 1; }
