:root {
      --green: #1F6E43;
      --green-d: #17532F;
      --green-l: #2F8F5C;
      --dark: #2A2118;
      --dark2: #3a3024;
      --dark3: #332a1e;
      --ink: #2A2118;
      --muted: #6b5f4f;
      --muted2: #4a4033;
      --label: #8a7d64;
      --line: #E4D9BF;
      --bg: #F3ECDD;
      --card: #FFFBF2;
      --soft: #EFE6D0;
      --shadow: 0 1px 2px rgba(42, 33, 24, .04), 0 10px 26px -18px rgba(42, 33, 24, .18);
      --stamp-shadow: 0 4px 0 rgba(0, 0, 0, .15);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent
    }

    html,
    body {
      margin: 0;
      padding: 0
    }

    body {
      font-family: 'Libre Franklin', system-ui, Arial, sans-serif;
      color: var(--ink);
      background: var(--bg);
      background-image: radial-gradient(rgba(42, 33, 24, .05) 1px, transparent 0);
      background-size: 16px 16px;
      -webkit-font-smoothing: antialiased
    }

    button {
      font-family: inherit;
      cursor: pointer
    }

    a {
      color: inherit;
      text-decoration: none;
      cursor: pointer
    }

    .num {
      font-family: 'Bebas Neue', sans-serif;
      font-variant-numeric: tabular-nums
    }

    .label {
      font-family: 'Barlow Condensed', sans-serif;
      text-transform: uppercase
    }

    /* ---------- LOGO ---------- */
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px
    }

    .logo .mark {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--green);
      border: 2px solid var(--dark);
      display: grid;
      place-items: center;
      flex: none
    }

    .logo .ltxt b {
      display: block;
      font-family: 'Bebas Neue', sans-serif;
      font-weight: 400;
      font-size: 17px;
      letter-spacing: .02em;
      line-height: 1
    }

    .logo .ltxt i {
      display: block;
      font-style: normal;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 9px;
      letter-spacing: .14em;
      color: var(--label);
      font-weight: 700;
      text-transform: uppercase;
      margin-top: 3px
    }

    .logo.on-dark .ltxt b {
      color: #fff
    }

    .logo.on-dark .ltxt i {
      color: rgba(255, 255, 255, .6)
    }

    /* ---------- SITE HEADER (público — landing + campeonato) ---------- */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(243, 236, 221, .92);
      backdrop-filter: blur(10px);
      border-bottom: 2px solid var(--dark)
    }

    .site-header-in {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 18px;
      height: 64px;
      display: flex;
      align-items: center;
      gap: 22px
    }

    @media(min-width:860px) {
      .site-header-in {
        height: 76px;
        padding: 0 clamp(18px, 4vw, 40px)
      }
    }

    .site-nav {
      display: none;
      align-items: center;
      gap: 2px;
      margin-left: 4px
    }

    @media(min-width:860px) {
      .site-nav {
        display: flex
      }
    }

    .site-nav a {
      padding: 9px 12px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 15px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .02em;
      color: var(--muted2);
      border-radius: 6px
    }

    .site-nav a:hover,
    .site-nav a.active {
      background: rgba(42, 33, 24, .06);
      color: var(--green)
    }

    .burger {
      margin-left: auto;
      width: 42px;
      height: 42px;
      border-radius: 8px;
      border: 2px solid var(--dark);
      background: var(--card);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex: none
    }

    @media(min-width:860px) {
      .burger {
        display: none
      }
    }

    .burger span {
      width: 18px;
      height: 2px;
      background: var(--dark);
      border-radius: 1px
    }

    .mobile-menu {
      position: fixed;
      left: 0;
      right: 0;
      top: 64px;
      z-index: 49;
      background: var(--card);
      border-bottom: 2px solid var(--dark);
      box-shadow: 0 14px 30px rgba(42, 33, 24, .12);
      padding: 6px 14px 14px;
      display: flex;
      flex-direction: column
    }

    .mobile-menu a {
      padding: 14px 8px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 17px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .02em;
      color: var(--ink);
      border-bottom: 1px dashed var(--line)
    }

    .mobile-menu a:last-child {
      border-bottom: 0
    }

    /* ---------- HERO ---------- */
    .hero {
      position: relative;
      background: var(--green);
      color: #fff;
      overflow: hidden
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: .1;
      background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 26px)
    }

    .hero-in {
      position: relative;
      max-width: 1180px;
      margin: 0 auto;
      padding: 52px 20px 70px
    }

    @media(min-width:760px) {
      .hero-in {
        padding: 74px 20px 96px
      }
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, .14);
      border: 1.5px solid rgba(255, 255, 255, .4);
      padding: 6px 14px;
      border-radius: 100px;
      margin-bottom: 22px;
      transform: rotate(-1deg)
    }

    .hero-badge span {
      font-family: 'Barlow Condensed', sans-serif;
      color: #fff;
      font-size: 12.5px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase
    }

    .eyebrow {
      color: var(--green);
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800;
      font-size: 13px;
      letter-spacing: .09em;
      text-transform: uppercase;
      margin: 0
    }

    .hero h1 {
      font-family: 'Bebas Neue', sans-serif;
      font-weight: 400;
      font-size: clamp(38px, 8vw, 66px);
      line-height: .98;
      letter-spacing: .01em;
      margin: 0 0 18px;
      max-width: 14ch
    }

    .hero p.lead {
      color: rgba(255, 255, 255, .88);
      font-size: clamp(15px, 2.2vw, 18px);
      line-height: 1.5;
      margin: 0 0 30px;
      max-width: 38ch
    }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 13px
    }

    .hero-edge {
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 100%;
      height: 24px;
      display: block
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: 'Bebas Neue', sans-serif;
      font-weight: 400;
      font-size: 16px;
      letter-spacing: .02em;
      padding: 13px 22px;
      border-radius: 10px;
      border: 2px solid var(--dark);
      transition: .15s
    }

    .btn svg {
      width: 17px;
      height: 17px
    }

    .btn.green {
      background: var(--green);
      color: #fff;
      border-color: var(--dark)
    }

    .btn.green:hover {
      background: var(--green-l)
    }

    .btn.white {
      background: #fff;
      color: var(--green)
    }

    .btn.white:hover {
      background: #f2f2f2
    }

    .btn.ghost {
      background: transparent;
      color: #fff;
      border-color: rgba(255, 255, 255, .6)
    }

    .btn.ghost:hover {
      border-color: #fff;
      background: rgba(255, 255, 255, .1)
    }

    .btn.outline {
      background: var(--card);
      color: var(--ink);
      border-color: var(--line)
    }

    .btn.outline:hover {
      border-color: #c8bb99;
      background: var(--soft)
    }

    /* ---------- FEATURES ---------- */
    .features {
      background: var(--bg);
      padding: 46px 20px
    }

    .features-in {
      max-width: 1180px;
      margin: 0 auto;
      display: grid;
      gap: 30px 26px;
      grid-template-columns: 1fr 1fr
    }

    @media(min-width:820px) {
      .features-in {
        grid-template-columns: repeat(4, 1fr)
      }
    }

    .feat .fi {
      color: var(--green);
      width: 28px;
      height: 28px
    }

    .feat h3 {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
      margin: 12px 0 6px
    }

    .feat p {
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.5;
      margin: 0
    }

    /* ---------- HUB DE CAMPEONATOS (landing) ---------- */
    .hub {
      max-width: 1180px;
      margin: 0 auto;
      padding: 12px 20px 66px
    }

    .sec-eyebrow {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--green);
      margin: 0 0 6px
    }

    .sec-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(26px, 3.4vw, 34px);
      letter-spacing: .01em;
      margin: 0 0 24px
    }

    .hub-grid {
      display: grid;
      gap: 20px;
      grid-template-columns: 1fr
    }

    @media(min-width:680px) {
      .hub-grid {
        grid-template-columns: 1fr 1fr
      }
    }

    @media(min-width:1000px) {
      .hub-grid {
        grid-template-columns: 1fr 1fr 1fr
      }
    }

    .hub-card {
      position: relative;
      display: block;
      width: 100%;
      text-align: left;
      background: var(--ac, var(--green));
      color: #fff;
      border: 0;
      border-radius: 12px;
      padding: 20px 20px 18px;
      cursor: pointer;
      box-shadow: var(--stamp-shadow)
    }

    .hub-grid .hub-card:nth-child(3n+1) {
      transform: rotate(-1.2deg)
    }

    .hub-grid .hub-card:nth-child(3n+2) {
      transform: rotate(.8deg)
    }

    .hub-grid .hub-card:nth-child(3n+3) {
      transform: rotate(-.5deg)
    }

    .hub-stamp {
      position: absolute;
      top: 14px;
      right: 16px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1.5px dashed rgba(255, 255, 255, .55);
      display: grid;
      place-items: center;
      font-size: 15px
    }

    .hub-cat {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 10.5px;
      color: rgba(255, 255, 255, .78);
      text-transform: uppercase;
      letter-spacing: .09em
    }

    .hub-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 26px;
      letter-spacing: .01em;
      margin: 2px 0 18px;
      line-height: 1.05;
      padding-right: 30px
    }

    .hub-foot {
      border-top: 1px dashed rgba(255, 255, 255, .35);
      padding-top: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px
    }

    .hub-foot .st-txt {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 12.5px;
      color: rgba(255, 255, 255, .82);
      text-transform: uppercase;
      letter-spacing: .05em
    }

    .hub-foot .st-txt .pip {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff;
      flex: none
    }

    .hub-foot .st-txt .pip.live {
      animation: pulse 1.5s infinite
    }

    .hub-foot .go {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 14px;
      letter-spacing: .02em
    }

    .hub-card.off {
      opacity: .55;
      cursor: default
    }

    /* ---------- FOOTER ---------- */
    footer.foot {
      background: var(--dark);
      color: #fff;
      margin-top: auto
    }

    .foot-top {
      max-width: 1180px;
      margin: 0 auto;
      padding: 44px 22px 30px;
      display: grid;
      gap: 30px;
      grid-template-columns: 1fr
    }

    @media(min-width:680px) {
      .foot-top {
        grid-template-columns: 1.3fr 1fr 1fr
      }
    }

    .foot-slogan {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 26px;
      line-height: 1.1;
      color: #fff;
      margin: 0 0 8px
    }

    .foot-slogan span {
      color: var(--green-l)
    }

    .foot-sub {
      color: rgba(255, 255, 255, .55);
      font-size: 13.5px;
      line-height: 1.5;
      margin: 0;
      max-width: 34ch
    }

    .foot-col-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .03em;
      text-transform: uppercase;
      margin: 0 0 14px
    }

    .foot-links {
      display: flex;
      flex-direction: column;
      gap: 11px
    }

    .foot-links a,
    .foot-links span {
      font-size: 13.5px;
      color: rgba(255, 255, 255, .6);
      font-weight: 500
    }

    .foot-bar {
      border-top: 1px solid rgba(255, 255, 255, .14);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      color: rgba(255, 255, 255, .45);
      font-size: 12px;
      padding: 20px 22px;
      max-width: 1180px;
      margin: 0 auto
    }

    .socials {
      display: flex;
      gap: 10px;
      margin-top: 16px
    }

    .socials a {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .1);
      display: grid;
      place-items: center;
      color: #fff
    }

    .socials a:hover {
      background: var(--green)
    }

    /* ================= CHAMPIONSHIP VIEW (admin — layout com sidebar) ================= */
    .champ {
      min-height: 100vh;
      display: flex;
      flex-direction: column
    }

    .layout {
      display: flex;
      flex: 1
    }

    .sidebar {
      display: none
    }

    @media(min-width:1000px) {
      .sidebar {
        display: flex;
        flex-direction: column;
        width: 240px;
        flex: none;
        background: var(--dark);
        color: #fff;
        padding: 22px 16px;
        position: sticky;
        top: 0;
        height: 100vh
      }
    }

    .side-nav {
      display: flex;
      flex-direction: column;
      gap: 3px;
      margin-top: 26px
    }

    .side-nav a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 13px;
      border-radius: 11px;
      color: rgba(255, 255, 255, .68);
      font-weight: 600;
      font-size: 14px
    }

    .side-nav a svg {
      width: 18px;
      height: 18px
    }

    .side-nav a:hover {
      background: rgba(255, 255, 255, .07);
      color: #fff
    }

    .side-nav a.active {
      background: var(--green);
      color: #fff
    }

    .side-foot {
      margin-top: auto
    }

    .side-foot .lbl {
      font-size: 11px;
      color: rgba(255, 255, 255, .45);
      margin-bottom: 8px
    }

    .main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      background: var(--bg)
    }

    .mtop {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 14px;
      background: var(--dark);
      color: #fff;
      position: sticky;
      top: 0;
      z-index: 30
    }

    @media(min-width:1000px) {
      .mtop {
        display: none
      }
    }

    .mtop .back {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 0;
      background: rgba(255, 255, 255, .14);
      color: #fff;
      font-size: 19px;
      flex: none
    }

    .mtop .back svg {
      width: 18px;
      height: 18px
    }

    .mtop .mt-name {
      font-weight: 800;
      font-size: 15px;
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .content {
      max-width: 1080px;
      width: 100%;
      margin: 0 auto;
      padding: 22px 16px calc(90px + var(--safe-bottom))
    }

    @media(min-width:1000px) {
      .content {
        padding: 30px 30px 50px
      }
    }

    .crumb {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 6px
    }

    .crumb b {
      color: var(--ink);
      font-weight: 600
    }

    .toolbar {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 18px
    }

    .page-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 32px;
      letter-spacing: .01em;
      margin: 0
    }

    .page-sub {
      color: var(--muted);
      font-size: 14px;
      margin: 5px 0 0
    }

    .selector {
      position: relative
    }

    .selector .ic {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--green);
      pointer-events: none
    }

    /* select customizado — usado em todo <select> do projeto (ver .sel abaixo
       e a variante .selector select, que só ajusta o padding esquerdo pra
       abrir espaço pro ícone que .selector .ic já posiciona) */
    .sel,
    .selector select {
      appearance: none;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 34px 10px 12px;
      font-family: inherit;
      font-weight: 600;
      font-size: 14px;
      color: var(--ink);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7d64' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 11px
    }

    .sel:focus,
    .selector select:focus {
      outline: 2px solid var(--green);
      outline-offset: -1px
    }

    .selector select {
      padding-left: 38px;
      box-shadow: var(--shadow)
    }

    /* ================= CAMPEONATO (público) ================= */
    .champ-banner {
      position: relative;
      background: var(--ac, var(--green));
      color: #fff;
      overflow: hidden
    }

    .champ-banner::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: .1;
      background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 26px)
    }

    .champ-banner-in {
      position: relative;
      max-width: 1240px;
      margin: 0 auto;
      padding: 22px clamp(18px, 4vw, 40px) 32px
    }

    .champ-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: rgba(255, 255, 255, .85);
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 18px
    }

    .champ-head {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 20px
    }

    .champ-badge {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: #fff;
      border: 2.5px solid var(--dark);
      display: grid;
      place-items: center;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 24px;
      color: var(--ac, var(--green));
      flex: none
    }

    .champ-title {
      font-family: 'Bebas Neue', sans-serif;
      font-weight: 400;
      font-size: clamp(28px, 4.4vw, 42px);
      color: #fff;
      letter-spacing: .01em;
      margin: 0 0 9px;
      line-height: 1.02
    }

    .champ-chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap
    }

    .champ-chip {
      background: rgba(255, 255, 255, .16);
      border: 1.5px solid rgba(255, 255, 255, .35);
      color: #fff;
      padding: 6px 12px;
      border-radius: 100px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .02em
    }

    .champ-switcher {
      display: flex;
      gap: 8px;
      flex-wrap: wrap
    }

    .champ-switcher a {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .03em;
      padding: 8px 16px;
      border-radius: 100px;
      border: 1.5px solid rgba(255, 255, 255, .35);
      color: #fff
    }

    .champ-switcher a.active {
      border-color: rgba(255, 255, 255, .9);
      background: rgba(255, 255, 255, .22)
    }

    .champ-tabs {
      position: sticky;
      top: 64px;
      z-index: 40;
      background: rgba(243, 236, 221, .95);
      backdrop-filter: blur(10px);
      border-bottom: 2px solid var(--dark)
    }

    @media(min-width:860px) {
      .champ-tabs {
        top: 76px
      }
    }

    .champ-tabs-in {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 clamp(18px, 4vw, 40px);
      display: flex;
      gap: clamp(16px, 3vw, 28px);
      overflow-x: auto;
      scrollbar-width: none
    }

    .champ-tabs-in::-webkit-scrollbar {
      display: none
    }

    .champ-tabs-in button {
      padding: 15px 2px;
      margin-bottom: -2px;
      background: none;
      border: 0;
      border-bottom: 3px solid transparent;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 600;
      font-size: 16px;
      text-transform: uppercase;
      letter-spacing: .02em;
      color: var(--label);
      white-space: nowrap
    }

    .champ-tabs-in button.active {
      font-weight: 800;
      color: var(--ink);
      border-bottom-color: var(--ac, var(--green))
    }

    .champ-body {
      max-width: 1240px;
      margin: 0 auto;
      padding: clamp(24px, 4vw, 36px) clamp(18px, 4vw, 40px) clamp(50px, 6vw, 80px)
    }

    /* round tabs (usado no público e no admin) */
    .rounds {
      display: flex;
      gap: 2px;
      overflow-x: auto;
      border-bottom: 1px solid var(--line);
      margin-bottom: 18px;
      scrollbar-width: none
    }

    .rounds::-webkit-scrollbar {
      display: none
    }

    .rounds button {
      padding: 13px 15px;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: .02em;
      color: var(--label);
      border: 0;
      background: none;
      border-bottom: 2px solid transparent;
      white-space: nowrap;
      margin-bottom: -1px
    }

    .rounds button.active {
      color: var(--green-d);
      border-bottom-color: var(--green)
    }

    .date-h {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: .03em;
      margin: 20px 2px 11px;
      color: var(--muted2)
    }

    .date-h:first-child {
      margin-top: 0
    }

    /* match card */
    .mcard {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 12px;
      margin-bottom: 12px;
      overflow: hidden
    }

    .mrow {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      padding: 16px 18px
    }

    @media(min-width:760px) {
      .mrow {
        grid-template-columns: 1fr auto 1fr 168px
      }
    }

    .side {
      display: flex;
      align-items: center;
      gap: 11px;
      min-width: 0
    }

    .side.home {
      flex-direction: row-reverse;
      text-align: right
    }

    .side .tn {
      font-weight: 700;
      font-size: 14px;
      line-height: 1.2;
      min-width: 0
    }

    .crest {
      width: 30px;
      height: 32px;
      flex: none
    }

    .scoreb {
      display: flex;
      align-items: center;
      gap: 9px;
      justify-content: center
    }

    .scoreb .sv {
      font-size: 25px;
      line-height: 1;
      min-width: 22px;
      text-align: center;
      color: var(--ink)
    }

    .scoreb .xx {
      color: var(--label);
      font-size: 13px;
      font-weight: 600
    }

    .scoreb .pend {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--muted);
      background: var(--soft);
      padding: 7px 12px;
      border-radius: 8px
    }

    .venue {
      display: none;
      text-align: right;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.45
    }

    @media(min-width:760px) {
      .venue {
        display: block
      }
    }

    .venue b {
      color: var(--ink);
      font-weight: 700;
      display: block
    }

    .venue.tap {
      cursor: pointer
    }

    .venue.tap:hover b {
      color: var(--green-d)
    }

    .mvenue-mob {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 18px;
      border-top: 1px dashed var(--line);
      background: transparent;
      font-size: 12.5px;
      color: var(--muted)
    }

    @media(min-width:760px) {
      .mvenue-mob {
        display: none
      }
    }

    .mvenue-mob .field-btn {
      border: 0;
      background: var(--bg);
      border: 1px solid var(--line);
      color: var(--green-d);
      font-weight: 700;
      font-size: 12px;
      padding: 6px 11px;
      border-radius: 18px;
      display: inline-flex;
      align-items: center;
      gap: 5px
    }

    .mcode {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: .02em;
      color: var(--label)
    }

    .mstatus {
      display: block;
      font-style: normal;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .02em;
      color: var(--label);
      margin-top: 4px
    }

    .mstatus.done {
      color: var(--green-d)
    }

    .mvenue-mob .mstatus {
      display: inline;
      margin: 0
    }

    /* standings */
    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      margin-bottom: 16px
    }

    .grp-head {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 14px 16px;
      border-bottom: 2px solid var(--dark)
    }

    .grp-badge {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--ac, var(--green));
      color: #fff;
      font-family: 'Bebas Neue', sans-serif;
      display: grid;
      place-items: center;
      font-size: 15px
    }

    .grp-head h3 {
      margin: 0;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted2)
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px
    }

    thead th {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .04em;
      color: var(--label);
      font-weight: 800;
      padding: 11px 6px;
      text-align: center
    }

    thead th.left {
      text-align: left;
      padding-left: 14px
    }

    tbody td {
      padding: 11px 6px;
      text-align: center;
      border-bottom: 1px dashed var(--line);
      font-variant-numeric: tabular-nums
    }

    tbody tr:last-child td {
      border-bottom: 0
    }

    td.team {
      text-align: left;
      padding-left: 10px
    }

    .team-cell {
      display: flex;
      align-items: center;
      gap: 9px;
      font-weight: 700;
      font-size: 13.5px;
      line-height: 1.15
    }

    .team-cell .crest {
      width: 24px;
      height: 26px
    }

    .pos {
      display: inline-grid;
      place-items: center;
      width: 24px;
      height: 24px;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 15px;
      color: var(--label)
    }

    tr.qual .pos {
      color: var(--ac, var(--green))
    }

    tr.qual td:first-child {
      border-left: 4px solid var(--ac, var(--green))
    }

    tr.qual td {
      background: color-mix(in srgb, var(--ac, var(--green)) 8%, var(--card))
    }

    /* Veterano: 3º (Taça Prata) e 4º (Taça Bronze) de cada grupo — mesmas
       cores de medalha já usadas em .art-medal/.taca */
    tr.prata .pos {
      color: #8a8f93
    }

    tr.prata td:first-child {
      border-left: 4px solid #B9C0C4
    }

    tr.prata td {
      background: color-mix(in srgb, #B9C0C4 12%, var(--card))
    }

    tr.bronze .pos {
      color: #C1673A
    }

    tr.bronze td:first-child {
      border-left: 4px solid #C1673A
    }

    tr.bronze td {
      background: color-mix(in srgb, #C1673A 10%, var(--card))
    }

    td.pts {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 16px;
      color: var(--ink)
    }

    .hide-mob {
      display: none
    }

    @media(min-width:600px) {
      .hide-mob {
        display: table-cell
      }
    }

    .qual-note {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--muted2);
      padding: 4px;
      margin-top: 4px;
      display: flex;
      gap: 8px;
      align-items: center
    }

    .qual-dot {
      width: 14px;
      height: 14px;
      border-radius: 4px;
      background: var(--ac, var(--green))
    }

    .qual-dot.prata {
      background: #B9C0C4
    }

    .qual-dot.bronze {
      background: #C1673A
    }

    /* empty / bracket */
    .empty {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 46px 22px;
      text-align: center
    }

    .empty .ico {
      font-size: 38px;
      margin-bottom: 10px
    }

    .empty h3 {
      margin: 0 0 6px;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 21px;
      font-weight: 400
    }

    .empty p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
      max-width: 34ch;
      margin-inline: auto
    }

    .taca-row {
      display: flex;
      justify-content: center;
      gap: 9px;
      margin: 18px 0 0;
      flex-wrap: wrap
    }

    .taca {
      padding: 8px 14px;
      border-radius: 20px;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 13px
    }

    .taca.o {
      background: rgba(217, 164, 65, .2);
      color: #8a641a
    }

    .taca.p {
      background: #eceef0;
      color: #737d86
    }

    .taca.b {
      background: rgba(193, 103, 58, .18);
      color: #9a4f28
    }

    .taca.n {
      background: color-mix(in srgb, var(--ac, var(--green)) 16%, var(--card));
      color: color-mix(in srgb, var(--ac, var(--green)) 70%, var(--ink))
    }

    /* ---------- MATA-MATA (público) ---------- */
    .chave-section {
      margin-bottom: 30px
    }

    .chave-head {
      margin-bottom: 16px
    }

    .bracket {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 20px
    }

    @media(min-width:760px) {
      .bracket {
        flex-direction: row;
        align-items: stretch;
        gap: 34px;
        overflow-x: auto;
        padding-bottom: 6px
      }
    }

    .bracket-col {
      position: relative;
      display: flex;
      flex-direction: column
    }

    @media(min-width:760px) {
      .bracket-col {
        min-width: 260px;
        flex: none
      }
    }

    /* título da fase tem altura FIXA e fica FORA do container que distribui
       os cards verticalmente (.bracket-col-body). Se o título entrasse nesse
       cálculo, cada coluna teria uma proporção de espaço diferente (o texto
       "SEMIFINAL" não tem a mesma altura reservada que "FINAL" a menos que
       seja fixada), e isso é o que fazia os quadrados ficarem desalinhados
       entre si. Com o título isolado, sobra só os cards dividindo o espaço,
       e a centralização entre fases fica exata (ver .bracket-col-body). */
    .bracket-col h4 {
      margin: 0 0 12px;
      height: 15px;
      line-height: 15px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: var(--label)
    }

    .bracket-col-body {
      display: flex;
      flex-direction: column;
      gap: 12px
    }

    /* só no desktop (colunas lado a lado) a centralização entre fases faz
       sentido — no mobile o .bracket empilha tudo em sequência, cada
       confronto no fluxo normal, sem cálculo de centro nenhum. */
    @media(min-width:760px) {
      .bracket-col-body {
        flex: 1;
        justify-content: space-around
      }
    }

    .confronto-card {
      position: relative;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px 16px
    }

    /* altura fixa por coluna (jogo único x ida-volta, sabido já no render,
       sem medir nada) — todo card de uma mesma coluna precisa ter a MESMA
       altura pra .bracket-col-body centralizar certo entre fases. */
    @media(min-width:760px) {
      .confronto-card {
        height: 122px;
        display: flex;
        flex-direction: column;
        justify-content: center
      }

      .bracket-col.iv .confronto-card {
        height: 140px
      }
    }

    .cf-row {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px
    }

    .cf-row .side {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
      min-width: 0;
      text-align: center
    }

    .cf-row .tn {
      font-weight: 600;
      font-size: 12.5px;
      line-height: 1.2;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .cf-row .tn.win {
      font-weight: 800;
      color: var(--ac, var(--green))
    }

    .cf-tbd {
      color: var(--label);
      font-style: italic;
      font-weight: 600 !important
    }

    .confronto-foot {
      margin-top: 11px;
      padding-top: 10px;
      border-top: 1px dashed var(--line);
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 4px
    }

    .confronto-legenda,
    .confronto-badge {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .03em;
      color: var(--muted)
    }

    .confronto-badge.pendente {
      color: #b8741c
    }

    /* ---------- MATA-MATA (admin) ---------- */
    .adm-row.confronto {
      flex-direction: column;
      align-items: stretch;
      gap: 10px
    }

    .cf-check {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      color: var(--muted);
      white-space: nowrap
    }

    .cf-fases-form {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
      margin: 12px 0
    }

    .cf-fase-bloco {
      margin-bottom: 18px
    }

    .cf-fase-bloco h4 {
      margin: 0 0 8px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: var(--label)
    }

    .cf-times-fixo {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 13.5px
    }

    .cf-times-fixo .tn {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .cf-times {
      display: flex;
      align-items: center;
      gap: 8px
    }

    .cf-time-pick {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      min-width: 0
    }

    .cf-time-pick select,
    .cf-time-pick input {
      width: 100%
    }

    .cf-vs {
      color: var(--label);
      font-size: 13px;
      flex: none
    }

    .cf-placar {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      padding-top: 10px;
      border-top: 1px dashed var(--line)
    }

    .cf-placar .adm-score-in {
      width: 60px
    }

    .cf-resultado {
      font-size: 12.5px;
      color: var(--muted);
      font-weight: 600;
      flex: 1 1 100%
    }

    .cf-resultado.ok {
      color: var(--green-d)
    }

    .cf-resultado.pend {
      color: #b8741c
    }

    .cf-resultado .sel {
      font-size: 12.5px;
      padding: 4px 26px 4px 8px;
      background-position: right 8px center;
      background-size: 9px
    }

    .cf-del {
      flex: none
    }

    /* ---------- ARTILHARIA (público) ---------- */
    .art-list {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden
    }

    .art-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 13px 18px;
      border-bottom: 1px dashed var(--line)
    }

    .art-row:last-child {
      border-bottom: 0
    }

    .art-medal {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 15px;
      flex: none;
      background: var(--line);
      color: var(--label)
    }

    .art-row:nth-child(1) .art-medal {
      background: #D9A441;
      color: #fff
    }

    .art-row:nth-child(2) .art-medal {
      background: #B9C0C4;
      color: #fff
    }

    .art-row:nth-child(3) .art-medal {
      background: #C1673A;
      color: #fff
    }

    .art-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 15px;
      color: #fff;
      flex: none
    }

    .art-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 4px
    }

    .art-info .nm {
      font-size: 14.5px;
      font-weight: 700;
      line-height: 1.2;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .art-info .tm {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12.5px;
      color: var(--muted);
      font-weight: 600
    }

    .art-info .tm .crest {
      width: 18px;
      height: 20px
    }

    .art-goals {
      text-align: right;
      flex: none
    }

    .art-goals .g {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 22px;
      color: #C1673A
    }

    .art-goals .lbl {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      color: var(--label);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em
    }

    /* bottom tabs (mobile, admin) */
    .tabbar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 35;
      background: var(--card);
      border-top: 1px solid var(--line);
      display: flex;
      padding: 6px 6px calc(6px + var(--safe-bottom));
      box-shadow: 0 -2px 14px rgba(42, 33, 24, .08)
    }

    @media(min-width:1000px) {
      .tabbar {
        display: none
      }
    }

    .tabbar button {
      flex: 1;
      border: 0;
      background: none;
      padding: 7px 2px;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 600
    }

    .tabbar button svg {
      width: 20px;
      height: 20px
    }

    .tabbar button.active {
      color: var(--green-d)
    }

    /* address sheet */
    .sheet-bg {
      position: fixed;
      inset: 0;
      background: rgba(42, 33, 24, .5);
      z-index: 60;
      opacity: 0;
      pointer-events: none;
      transition: .2s
    }

    .sheet-bg.show {
      opacity: 1;
      pointer-events: auto
    }

    .sheet {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 61;
      background: var(--card);
      border-radius: 22px 22px 0 0;
      padding: 8px 22px calc(26px + var(--safe-bottom));
      transform: translateY(100%);
      transition: .25s cubic-bezier(.2, .8, .2, 1);
      max-width: 520px;
      margin: 0 auto;
      box-shadow: 0 -8px 34px rgba(42, 33, 24, .22)
    }

    .sheet.show {
      transform: translateY(0)
    }

    .sheet .grab {
      width: 42px;
      height: 4px;
      background: var(--line);
      border-radius: 3px;
      margin: 6px auto 16px
    }

    .sheet h4 {
      margin: 0 0 5px;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 20px;
      font-weight: 400
    }

    .sheet .addr {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
      margin: 0 0 18px
    }

    .sheet .map-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      background: var(--green);
      color: #fff;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 16px;
      padding: 14px;
      border-radius: 10px
    }

    .admin-stub {
      max-width: 420px;
      margin: 70px auto;
      text-align: center;
      padding: 0 24px
    }

    /* ---------- TOAST ---------- */
    .toast {
      position: fixed;
      left: 50%;
      bottom: calc(22px + var(--safe-bottom));
      transform: translate(-50%, 12px);
      background: var(--dark);
      color: #fff;
      font-size: 13.5px;
      font-weight: 600;
      padding: 12px 18px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(42, 33, 24, .3);
      z-index: 80;
      opacity: 0;
      pointer-events: none;
      transition: .2s;
      max-width: calc(100% - 40px);
      text-align: center
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0)
    }

    /* ---------- ADMIN ---------- */
    .adm-logout {
      width: 100%;
      justify-content: center;
      margin-top: 14px;
      font-size: 13px;
      padding: 11px 16px
    }

    .adm-login-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 280px;
      margin: 0 auto
    }

    .adm-input {
      font-family: inherit;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 14px;
      color: var(--ink);
      background: var(--card)
    }

    .adm-input:focus {
      outline: 2px solid var(--green);
      outline-offset: -1px
    }

    .adm-input-lg {
      padding: 13px 14px;
      font-size: 15px;
      text-align: center
    }

    .adm-picker {
      margin-bottom: 16px
    }

    .adm-hint {
      margin: -6px 0 14px !important
    }

    .adm-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 18px
    }

    .adm-row {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 14px
    }

    .adm-row .adm-team {
      display: flex;
      align-items: center;
      gap: 9px;
      flex: 1;
      min-width: 0;
      font-weight: 600;
      font-size: 13.5px
    }

    .adm-row .adm-team span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .adm-row .adm-team-away {
      flex-direction: row-reverse;
      text-align: right
    }

    .adm-row .adm-team .crest {
      width: 26px;
      height: 28px;
      flex: none
    }

    .adm-score {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: none
    }

    .adm-score .adm-input {
      width: 52px;
      text-align: center;
      font-family: 'Bebas Neue';
      font-size: 17px;
      padding: 8px 4px
    }

    .adm-score span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 600
    }

    .adm-adjust-in {
      width: 72px;
      text-align: center;
      flex: none
    }

    .adm-save {
      margin-top: 4px
    }

    .adm-textarea {
      width: 100%;
      font-family: 'Libre Franklin', monospace;
      font-size: 13.5px;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px;
      resize: vertical;
      line-height: 1.6;
      margin-bottom: 16px;
      background: var(--card);
      color: var(--ink)
    }

    .adm-textarea:focus {
      outline: 2px solid var(--green);
      outline-offset: -1px
    }

    .adm-backup-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 18px
    }

    .adm-file-btn {
      position: relative;
      overflow: hidden
    }

    .adm-file-btn input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer
    }

    .adm-warning {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      background: rgba(217, 140, 40, .1);
      color: #8a5c14;
      border: 1px solid rgba(217, 140, 40, .25);
      border-radius: 12px;
      padding: 13px 15px;
      font-size: 13px;
      line-height: 1.5
    }

    .adm-warning svg {
      flex: none;
      margin-top: 1px
    }