:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.7,0,.3,1);
  --run-ease: cubic-bezier(.2,.1,.8,.9);
  --hover: .12s;
  --pane-time: .3s;
  --count-time: .7s;
}
.atlas { border-bottom: 1px solid var(--night-line); }
.atlas-inner {
  position: relative; isolation: isolate; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: auto;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto 1fr;
  min-height: calc(100svh - 85px);
}
.intro, .directory { padding-left: var(--gutter); padding-right: clamp(18px, 2.25vw, 36px); }
.intro { grid-area: 1 / 1; padding-top: clamp(28px, 3.2vh, 48px); }
.intro h1 { font: 400 clamp(54px, 4.25vw, 68px)/1.03 var(--display); text-transform: uppercase; max-width: 10ch; text-wrap: balance; }
.intro p { color: var(--mist); margin-top: 12px; font-size: 14px; line-height: 1.5; max-width: 34ch; }
.directory { grid-area: 2 / 1; padding-block: 24px 26px; }
.directory-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--night-line); }
.directory-head h2 { font: 650 19px/1.2 var(--cond); }
.directory-head span { font: 500 12px/1 var(--ui); color: var(--mist); }
.league-link {
  width: 100%; min-height: 54px; display: grid; grid-template-columns: 34px 1fr 10px;
  align-items: center; gap: 12px; padding: 7px 4px; text-align: left; border-bottom: 1px solid var(--night-line);
}
.league-link:is(:hover, :focus-visible, [aria-expanded="true"]) { background: var(--tile); }
.league-link:focus-visible { outline-offset: -2px; }
.shape { width: 31px; height: 32px; fill: var(--mist); }
.league-link:is(:hover, [aria-expanded="true"]) .shape { fill: var(--red); }
.league-title { display: block; font: 650 20px/1.18 var(--cond); }
.league-meta { display: block; color: var(--mist); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.chevron { width: 7px; height: 7px; border-top: 1px solid var(--mist); border-right: 1px solid var(--mist); transform: rotate(45deg); }
.stage { position: relative; grid-area: 1 / 2 / 3 / 3; min-width: 0; overflow: hidden; border-left: 1px solid var(--night-line); }
#globo { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; touch-action: none; }
#globo.dragging { cursor: grabbing; }
#globo.selectable { cursor: pointer; }
.map-key, .map-controls { position: absolute; display: flex; align-items: center; pointer-events: none; }
.map-key { top: 32px; right: var(--gutter); gap: 9px; font-size: 12px; color: var(--mist); }
.map-key i { width: 10px; height: 10px; background: var(--red); }
.map-controls { inset: auto var(--gutter) 26px 32px; justify-content: space-between; gap: 16px; color: var(--mist); font-size: 12px; }
.gesture { display: inline-flex; align-items: center; gap: 8px; }
.gesture svg { width: 19px; height: 19px; }
.pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid var(--night-line); border-radius: 24px; background: var(--ink); color: var(--paper); font-size: 12px; }
.pill:hover { border-color: var(--mist); }
#spin i { display: block; width: 7px; height: 10px; border-inline: 2px solid currentColor; }
body.open .map-key, body.open .map-controls { display: none; }

.sheet {
  position: absolute; z-index: 3; top: 20px; right: 20px; width: var(--panel);
  height: min(calc(100% - 40px), calc(100dvh - 123px)); min-height: 240px;
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); scrollbar-color: var(--muted) var(--oat);
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
html:not(.keyboard) #nome-liga:focus { outline: none; }
.sheet-head p { margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sheet-head h2 { font: 400 clamp(30px, 2.5vw, 40px)/1.1 var(--display); text-wrap: balance; }
#fechar { flex: none; min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
#fechar:hover { border-color: var(--ink); }
#fechar i, #fechar i::before { width: 15px; height: 1.5px; display: block; background: currentColor; transform: rotate(45deg); }
#fechar i::before { content: ""; transform: rotate(90deg); }
.sheet-body { position: relative; padding: 12px 20px 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.sheet-body:focus-visible { outline-offset: -3px; }
.sheet-body section + section { margin-top: 16px; }
.sheet-body .live-heading + section { margin-top: 24px; }
.sheet-body h3 { font: 700 24px/1.15 var(--cond); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.section-head small { color: var(--muted); font: 550 12px/1.4 var(--ui); }
time, table, .liga-digits, .liga-fixture, .liga-source-line { font-variant-numeric: tabular-nums; }
.results { background: var(--ink); color: var(--paper); padding-inline: 10px; }
.result {
  display: grid; align-items: center; grid-template-columns: 37px minmax(0,1fr) auto minmax(0,1fr);
  gap: 9px; min-height: 34px; padding: 2px 0; font-size: 12px; line-height: 1.3; font-weight: 600;
}
.result + .result { border-top: 1px solid var(--night-line); }
.result .liga-home { text-align: right; }
.result time { font-size: 12px; color: var(--mist); font-weight: 500; }
.live-status { color: var(--red-light); font: 700 18px/1.1 var(--cond); font-variant-numeric: tabular-nums; }
.live-heading { color: var(--red-ink); }
.liga-digits { display: inline-flex; align-items: center; gap: 4px; }
.liga-digits b { background: var(--tile); padding-bottom: .08em; display: grid; place-items: center; min-width: 23px; height: 29px; border-radius: 2px; position: relative; font: 650 24px/1 var(--cond); }
.liga-digits b::after { content: ""; position: absolute; top: 50%; width: 100%; height: 1px; background: var(--ink); opacity: .6; }
.liga-digits i { width: 2px; height: 7px; border-block: 2px solid var(--mist); }
.penalties { grid-column: 2 / -1; text-align: center; font-size: 11px; color: var(--mist); }
.more-results > summary { display: flex; align-items: center; gap: 8px; padding: 4px 3px; min-height: 30px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.more-results > summary::after { content: "+"; font: 500 18px/1 var(--ui); }
.more-results[open] > summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
.view-switch { display: none; }
.liga-stand-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.25; text-align: right; }
.liga-stand-table caption { text-align: left; }
.liga-stand-table th, .liga-stand-table td { padding: 4px 3px; }
.liga-stand-table th:first-child, .liga-stand-table td:first-child { padding-left: 0; width: 25px; text-align: left; }
.liga-stand-table thead { color: var(--muted); border-block: 1px solid var(--line); }
.liga-stand-table thead th { font-size: 12px; font-weight: 650; }
.liga-stand-table th:nth-child(2) { text-align: left; }
.liga-stand-table tbody tr { height: 31px; border-bottom: 1px solid var(--light-line); }
.liga-stand-table tbody th { font-weight: 600; }
.liga-stand-table .prob { white-space: nowrap; }
.liga-club-name { display: flex; align-items: center; gap: 6px; font-variant-numeric: normal; }
.liga-club-name > span:last-child { min-width: 0; }
.pts { font-weight: 780; }
.liga-kit { flex: none; min-width: 30px; padding: 3px 2px 4px; text-align: center; background: var(--cloth,var(--ink)); color: var(--letter,var(--paper)); font: 700 11px/1.1 var(--cond); letter-spacing: .025em; }
.light-kit { border: 1px solid var(--muted); }
.two-tone { box-shadow: inset 0 -3px var(--ink); }
.liga-rank { width: 21px; height: 22px; display: inline-grid; place-items: center; font: 600 13px/1 var(--cond); }
.topo { background: var(--ink); color: var(--paper); }
.liga-pre { background: var(--oat); border: 1px solid var(--ink); box-shadow: inset 0 -2px var(--ink); }
.playoff { border: 1px solid var(--muted); }
.rebaixamento { border: 1px dashed var(--ink); }
.guaranteed { color: var(--red-ink); font-weight: 700; }
.club-status { display: none; }
.liga-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.liga-legend li { display: flex; align-items: baseline; gap: 6px; }
.liga-legend i { display: inline-block; width: 9px; height: 9px; flex: none; }
.group h4 { font: 650 18px/1.5 var(--cond); margin-bottom: 4px; }
.group + .group { margin-top: 16px; }
.liga-fixture { display: grid; grid-template-columns: 84px 1fr; gap: 3px 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.liga-fixture time { color: var(--muted); font-size: 12px; }
.liga-fixture > time + span { font-variant-numeric: normal; }
.advancement { grid-column: 2; color: var(--red-ink); font-size: 12px; line-height: 1.5; }
.notes p, .empty { margin-top: 8px; font-size: 13px; line-height: 1.55; }
.liga-source-line { display: flex; flex-wrap: wrap; flex: none; align-items: center; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--line); padding: 10px 20px; color: var(--muted); background: var(--oat); font-size: 11.5px; }
.liga-source-line a { color: var(--ink); }
@media (min-width: 1800px) { .intro, .directory { padding-left: var(--gutter); } }
@media (min-width: 851px) and (max-width: 1100px) {
  body.open .atlas-inner { grid-template-columns: 72px minmax(0, 1fr); }
  body.open .intro, body.open .directory-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.open .directory { grid-row: 1 / 3; padding: 20px 7px; }
  body.open .league-link { display: flex; justify-content: center; }
  body.open .league-link > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.open .league-link .chevron { display: none; }
}
@media (max-width: 850px) {
  .atlas-inner { display: block; min-height: 0; }
  .intro { position: relative; padding: 22px 18px 12px; width: 60%; min-height: 157px; }
  .intro h1 { font-size: clamp(38px, 10.65vw, 52px); }
  .intro p { margin-top: 9px; font-size: 12px; line-height: 1.5; }
  .stage { position: absolute; top: 0; right: 0; width: 40%; height: 164px; border: 0; }
  #globo { touch-action: none; cursor: grab; }
  .map-key, .map-controls { display: none; }
  .directory { padding: 6px 18px 19px; }
  .directory-head { padding-bottom: 7px; }
  .league-link { grid-template-columns: 33px 1fr 10px; min-height: 52px; padding: 6px 3px; }
  .league-title { font-size: 19px; }
  .league-meta { font-size: 11.5px; }
  .shape { height: 29px; }
  body.sheet-open { overflow: hidden; }
  .backdrop { position: fixed; inset: 0; z-index: 3; background: color-mix(in srgb, var(--ink) 72%, transparent); }
  .sheet { position: fixed; inset: auto 0 0; width: 100%; height: min(90dvh, 870px); min-height: 0; z-index: 4; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet::before { content: ""; display: block; flex: none; width: 32px; height: 3px; border-radius: 3px; margin: 8px auto 0; background: var(--line); }
  .sheet:not([hidden], .instant, .saindo) { animation: subir .32s var(--ease-out) both; }
  .sheet.saindo { animation: descer .24s var(--ease-io) both; }
  .sheet-head { padding: 8px 16px 13px; }
  .sheet-head h2 { font-size: 32px; }
  .sheet-body { padding: 16px; }
  .sheet-body section + section, .sheet-body .live-heading + section { margin-top: 20px; }
  .sheet-body h3 { font-size: 23px; }
  .view-switch { display: flex; gap: 0; margin-block: 0 9px; }
  .view-switch button { padding: 7px 10px; min-height: 44px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
  .more-results > summary { min-height: 44px; }
  .view-switch button + button { border-left: 0; }
  .view-switch button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
  .liga-standings[data-view="classificacao"] .prob, .liga-standings[data-view="probabilidades"] .basic { display: none; }
  .liga-standings[data-view="classificacao"] .club-status { display: block; color: var(--red-ink); font-size: 10px; }
  .liga-stand-table th, .liga-stand-table td { padding-inline: 3px; }
  .liga-stand-table tbody tr { height: 38px; }
  .liga-standings[data-view="probabilidades"] :is(th, td) { padding-inline: 2px; }
  .liga-standings[data-view="probabilidades"] .liga-club-name { gap: 3px; }
  .liga-standings[data-view="probabilidades"] .liga-kit { min-width: 26px; }
  .liga-fixture:has(.advancement) { padding-block: 4px; }
  .result { grid-template-columns: 36px minmax(0,1fr) auto minmax(0,1fr); min-height: 38px; gap: 6px; }
  .liga-source-line { padding: 10px 14px; font-size: 11px; }

}
@media (max-width: 380px) {
  .sheet-body { padding-inline: 12px; }
}
@keyframes subir { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  #spin { display: none; }
}
.atlas { background: var(--ink); color: var(--paper); }
.atlas [hidden] { display: none !important; }
.atlas button { border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.atlas .league-link { border-bottom: 1px solid var(--night-line); }
.atlas .league-link:is(:hover, :focus-visible, [aria-expanded="true"]) { background: var(--tile); }
.atlas .pill { border: 1px solid var(--night-line); font-size: 12px; min-height: 44px; background: var(--ink); }
#spin:not(.paused) i { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
#spin.paused i { width: 7px; border: 0; border-inline: 2px solid currentColor; }
.atlas :focus-visible { outline-color: var(--red-light); }
.sheet :focus-visible { outline-color: var(--red-ink); }
.sheet-body { scrollbar-gutter: stable; }
#fechar { border: 1px solid var(--line); }
.closed-result { display: grid; grid-template-columns: 42px minmax(0,1fr); column-gap: 10px; align-items: center; min-height: 51px; padding: 4px 0; }
.closed-result + .closed-result { border-top: 1px solid var(--night-line); }
.closed-result time { color: var(--mist); font-size: 12px; }
.closed-side { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; }
.closed-side.loser { color: var(--mist); }
.closed-side b { width: 24px; position: relative; background: var(--tile); text-align: center; font: 650 19px/1.15 var(--cond); }
.closed-side b::after { position: absolute; content: ""; top: 50%; left: 0; right: 0; height: 1px; background: var(--ink); opacity: .6; }
@media (min-width: 851px) {
  .sheet:not([hidden], .instant, .saindo) { animation: mostrar var(--pane-time) var(--ease-out) both; }
  .sheet.saindo { animation: sumir .2s var(--ease-io) both; }
}
@keyframes mostrar { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 850px) {
  .atlas .view-switch button { border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
  .atlas .view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .sheet-body { scrollbar-gutter: auto; }
  .liga-source-line { padding-block: 0; }
  .liga-source-line a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
@media (max-width: 850px) and (max-height: 500px) {
  .sheet { inset: 0 0 0 auto; height: 100dvh; max-width: 650px; }
  .sheet::before { display: none; }
  .sheet-head { padding-block: 6px; }
  .sheet-head h2 { font-size: 26px; }
}
body.sheet-open .mast { z-index: auto; }

.liga-source-line .model-credit { display: block; align-content: center; text-decoration: none; color: var(--muted); }
.model-credit > :first-child { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.compact-label, .compact-guarantee { display: none; }
@media (max-width: 410px) {
  .compact-label { display: inline; }
  .full-label { display: none; }
}
@media (max-width: 380px) {
  .sheet-head h2 { font-size: 28px; }
  .liga-source-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .collection-stamp { display: block; }
  .model-credit .credit-comma { display: none; }
}

/* O índice e o globo compartilham a camada selecionada. */
.intro h1 { max-width: 12ch; font-size: clamp(44px, 3.65vw, 59px); }
.layer-switch { display: inline-flex; margin-top: 18px; border: 1px solid var(--mist); }
.atlas .layer-switch button { min-width: 76px; min-height: 44px; padding: 6px 14px; font: 650 15px/1.1 var(--ui); }
.atlas .layer-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.layer-switch button:focus-visible { outline-offset: -3px; }
.cup-mark { width: 34px; padding: 3px 0; text-align: center; border: 1px solid var(--mist); font: 700 13px/1.2 var(--cond); color: var(--paper); }
.atlas[data-camada="copa"] .map-key i { border-radius: 50%; border: 2px solid var(--red); background: none; }
.zero { color: var(--muted); font-weight: 400; }
.sheet-body > .cup-disclosure, .sheet-body > .draw-note + section, .sheet-body > .cup-disclosure + section { margin-top: 16px; }
.cup-disclosure > summary, .atlas .table-expand { border-bottom: 1px solid var(--line); width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 3px; text-align: left; font: 650 13px/1.35 var(--ui); }
.cup-disclosure > summary::after, .table-expand::after { content: "+"; font-size: 20px; }
.cup-disclosure[open] > summary::after, .table-expand[aria-expanded="true"]::after { content: "−"; }
.cup-disclosure > summary:hover, .table-expand:hover { background: var(--oat); }
.draw-note, .cup-note { padding: 9px 12px; background: var(--oat); font-size: 13px; line-height: 1.5; }
.cup-fixtures li { border-block-start: 1px solid var(--line); padding: 8px 0; }
.fixture-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 600 12px/1.5 var(--ui); color: var(--muted); }
.cup-pair { display: block; margin: 3px 0; font: 700 23px/1.25 var(--cond); }
.cup-location, .odds-label { color: var(--muted); font-size: 12px; line-height: 1.5; }
.odds-label { margin-top: 10px; }
.match-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; padding: 8px; border-block: 1px solid var(--line); background: var(--oat); text-align: center; }
.match-odds div + div { border-left: 1px solid var(--line); }
.match-odds dt { font-size: 12px; }
.match-odds dd { margin: 2px 0 0; font: 700 20px/1.1 var(--cond); }
.title-odds li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px; padding: 5px 0; font-size: 13px; }
.title-odds b, .match-odds dd { font-variant-numeric: tabular-nums; }
.odds-track { grid-column: 1 / -1; height: 3px; background: var(--oat); }
.odds-track i { transform-origin: left; transform: scaleX(var(--chance)); display: block; height: 100%; background: var(--red-ink); }
.counting .odds-track i { animation: preencher var(--count-time) var(--run-ease) both; }
@keyframes preencher { from { transform: scaleX(0); } }
.cup-champion { background: var(--ink); color: var(--paper); padding: 14px 16px; }
.sheet-body .cup-champion h3 { font: 400 clamp(30px, 3vw, 42px)/1.15 var(--display); }
.cup-champion p { font-size: 13px; margin-top: 4px; }
.cup-champion .final-result { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--night-line); font-weight: 650; }
.short-table tbody tr:nth-child(n+9) { display: none; }
.cup-table .campaign { white-space: nowrap; }
.cup-disclosure > section { margin-top: 12px; }
.bracket { position: relative; display: grid; grid-auto-columns: 82%; grid-auto-flow: column; align-items: start; gap: 12px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.bracket-round + .bracket { margin-top: 12px; }
.bracket-round { min-width: 0; scroll-snap-align: start; }
.bracket-round h4 { border-block: 2px solid var(--ink); padding: 6px 0; font: 700 18px/1.2 var(--cond); }
.tie-card { margin-top: 8px; border: 1px solid var(--line); background: var(--oat); padding: 9px; font-size: 12px; }
.tie-card .leg-date { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 5px; color: var(--muted); }
.tie-winner { margin-top: 6px; font-weight: 650; }
.qualifiers { padding-left: 8px; border-left: 2px solid var(--line); }
.qualifier-body { padding: 10px 0 18px; }
.qualifier-body > * + * { margin-top: 14px; }
.liga-source-line { font-size: 12px; padding-block: 0; }
.liga-source-line a { min-height: 44px; align-content: center; }
@media (min-width: 851px) and (max-width: 1100px) {
  body.open .intro { position: static; width: auto; height: auto; clip-path: none; padding: 6px; }
  body.open .intro h1 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  body.open .layer-switch { display: flex; flex-direction: column; margin-top: 0; }
  body.open .layer-switch button { min-width: 44px; padding: 4px; }
  body.open .directory { grid-row: 2; }
}
@media (max-width: 850px) {
  .intro { min-height: 168px; padding-top: 14px; }
  .intro h1 { font-size: clamp(31px, 8vw, 48px); }
  .layer-switch { margin-top: 10px; }
  .atlas .layer-switch button { min-width: 60px; padding: 6px 10px; }
  .atlas-inner { display: grid; grid-template: auto auto auto / minmax(0, 1fr); }
  .intro { width: auto; min-height: 0; grid-area: 1 / 1; }
  .intro h1 { max-width: none; }
  .stage { position: relative; grid-area: 2 / 1; width: 100%; height: clamp(254px, 40vw, 310px); }
  .directory { grid-area: 3 / 1; }
  .liga-standings[data-view="probabilidades"] .pts { display: table-cell; }
  .liga-kit.kit { flex-shrink: 0; }
}
@media (max-width: 450px) {
  .cup-table:has(th:nth-child(8)) .campaign { display: none; }
  .cup-table .liga-club-name { gap: 4px; }
}
@media (max-width: 410px) {
  .liga-stand-table .liga-club-name { contain: inline-size; white-space: nowrap; }
  .liga-stand-table th:nth-child(2) { width: 100%; }
  .liga-club-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .liga-stand-table :is(td, th) { white-space: nowrap; }
}
@media (max-width: 359px) {
  .compact-guarantee { display: inline; text-decoration: none; }
  .full-guarantee { display: none; }
  .liga-standings[data-view="probabilidades"] .liga-kit { width: 26px; }
  .sheet-head { padding-block: 6px 10px; }
  .closed-result { min-height: 45px; }
  .cup-table:has(th:nth-child(8)) tr > :last-child { display: none; }
}
@media (min-width: 768px) {
  .bracket { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(max(184px, calc((100% - 24px) / 3)), 1fr)); grid-auto-columns: auto; overflow: visible; }
}
@media (min-width: 600px) and (max-width: 850px) and (max-height: 480px) {
  .atlas-inner { grid-template: auto auto / minmax(170px, 28%) minmax(0, 1fr); }
  .intro { align-self: center; }
  .intro h1 { font-size: 30px; max-width: 12ch; }
  .stage { grid-area: 1 / 2; height: calc(100dvh - 56px); }
  .directory { grid-area: 2 / 1 / 3 / -1; }
}
.tie-score { width: 100%; border-collapse: collapse; }
.tie-score thead th { color: var(--muted); font-weight: 550; font-size: 12px; text-align: right; }
.tie-score th:first-child { text-align: left; overflow-wrap: anywhere; }
.tie-score tbody :is(th, td) { font: 600 16px/1.35 var(--cond); }
.tie-score td { text-align: right; padding-left: 4px; }
.tie-score tbody .winner :is(th, td) { font-weight: 700; }

.sheet-pane { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.list-stage { position: relative; }
.list-stage .leaving-list { position: absolute; inset: 0 0 auto; pointer-events: none; }
.sheet-pane.panein, #league-list.panein, .map-key.panein { animation: mostrar var(--pane-time) var(--ease-out) both; }
.leaving-list { animation: apagar .12s ease-out both; }
#league-list.panein { animation-delay: 45ms; animation-duration: .255s; }
@keyframes apagar { to { opacity: 0; } }
@keyframes descer { to { transform: translateY(100%); } }
@keyframes sumir { to { opacity: 0; transform: translateY(-12px) scale(.985); } }
.atlas { -webkit-tap-highlight-color: transparent; }
.atlas :is(.league-link, .pill, #fechar, .layer-switch button, .view-switch button) {
  transition: background-color var(--hover), border-color var(--hover), color var(--hover);
}
.atlas :is(.league-link, .pill, #fechar, .layer-switch button, .view-switch button):active {
  background: var(--tile); color: var(--paper);
}
.live-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 3px; vertical-align: middle; border-radius: 50%; background: currentColor; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 850px) {
  .backdrop { opacity: 1; transition: opacity .32s var(--ease-out); }
  @starting-style { .backdrop:not([hidden]) { opacity: 0; } }
  .backdrop.saindo { opacity: 0; transition: opacity .24s var(--ease-io); }
}
@media (prefers-reduced-motion: reduce) {
  .atlas *, .atlas *::before { animation: none !important; transition: none !important; }
}

.zoom-controls { display: flex; gap: 4px; margin-left: auto; }
.zoom-controls .pill { width: 44px; height: 44px; padding: 0; justify-content: center; font: 500 21px/1 var(--ui); }
