html {
  width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: #060608;
}
body {
  width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  background-color: #060608;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb),.22), transparent 22%),
    radial-gradient(circle at left center, rgba(255,255,255,.06), transparent 18%),
    linear-gradient(180deg, #050507 0%, #0b0c10 48%, #060608 100%);
}

.app-shell,
.topbar,
.bottom-nav,
.view,
.card,
.table-wrap,
.modal-content,
.home-grid,
.club-grid,
.photo-grid {
  max-width: 100%;
}
.app-shell {
  width: min(820px, 100%);
  overflow-x: hidden;
}
.home-live-center.hidden { display: none !important; }

/* =====================================================================
 * FunFacts ticker — integrado dentro do card "App oficial" (topbar),
 * abaixo do logo+título. Texto passa horizontalmente em loop.
 * Visibilidade controlada pelo JS (renderFunFactsTicker): só aparece se
 * houver texto definido E a data atual estiver dentro de funfactsWindow.
 * ===================================================================== */
.funfacts-ticker {
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(243, 179, 29, 0.16);
  padding: 6px 0;
  pointer-events: none;
  /* Máscara suave nas pontas para o texto entrar/sair sem corte abrupto. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.funfacts-ticker.hidden { display: none !important; }

.funfacts-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: funfacts-scroll 30s linear infinite;
  will-change: transform;
}

.funfacts-text {
  color: var(--gold-2, #ffd86d);
  font-size: .86rem;
  letter-spacing: .02em;
  font-weight: 600;
  padding: 0 4px;
}

.funfacts-sep {
  color: rgba(243, 179, 29, .55);
  padding: 0 16px;
  font-weight: 700;
}

@keyframes funfacts-scroll {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Reduz a letra em ecrãs pequenos (smartphones em portrait). */
@media (max-width: 480px) {
  .funfacts-ticker {
    margin-top: 8px;
    padding: 5px 0;
    border-radius: 12px;
  }
  .funfacts-text {
    font-size: .72rem;
    padding: 0 3px;
  }
  .funfacts-sep {
    padding: 0 12px;
    font-size: .72rem;
  }
}

/* Ecrãs muito pequenos (< 360px) ainda mais compacto. */
@media (max-width: 360px) {
  .funfacts-text { font-size: .68rem; }
  .funfacts-sep { padding: 0 10px; font-size: .68rem; }
}

/* Acessibilidade: respeita "prefers-reduced-motion" e congela o ticker. */
@media (prefers-reduced-motion: reduce) {
  .funfacts-ticker-track {
    animation: none;
    transform: translateX(0);
  }
}

/* Quando a app está em loading inicial, atenua o ticker. */
body.app-loading .funfacts-ticker { opacity: .55; }

/* Variante tema claro */
body[data-theme="light"] .funfacts-ticker {
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
  border-color: rgba(214, 163, 23, .3);
}
body[data-theme="light"] .funfacts-text {
  color: #8c5b00;
}
body[data-theme="light"] .funfacts-sep {
  color: rgba(140, 91, 0, .5);
}
#view-home .hero-native + .native-section,
#view-home .native-section + .native-section { margin-top: 1rem; }
#view-estatisticas .stats-grid { margin-bottom: 1rem; }
#view-estatisticas .panel-card + .panel-card { margin-top: 1rem; }

.hero-native {
  min-height: 250px;
  background: #050507;
}
.hero-native picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-native-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: .42;
}
.hero-native-cover.hero-fit,
.hero-native-cover.no-blur {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0d0d10;
  filter: none !important;
  image-rendering: auto;
}
.hero-year-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: .45rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.94), rgba(255,255,255,.92));
  color: #101014;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

.home-live-center { margin-bottom: 1rem; }
.home-live-grid,
.live-center-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}
.live-center-list.is-row-layout { grid-template-columns: 1fr; }
.live-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .7rem;
}
.live-center-head span {
  color: var(--accent-2);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.live-center-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(var(--accent-rgb), .28);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .18);
  color: var(--accent-2);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.live-center-card {
  padding: .95rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}
.live-center-item {
  width: 100%;
  display: grid;
  gap: .18rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.live-center-item:hover {
  border-color: rgba(var(--accent-rgb), .32);
  background: rgba(var(--accent-rgb), .08);
}
.live-center-item:active { transform: scale(.985); }
.live-center-item .teams { font-weight: 700; }
.live-center-item .teams small,
.live-center-item small { color: var(--muted); }

.menu-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: .25rem;
  color: #fff;
  opacity: .98;
}
.menu-icon svg,
.menu-icon img {
  width: 100%;
  height: 100%;
}
.menu-icon img {
  position: static;
  inset: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.28));
  transform: none;
}
.home-action-card .quick-card-icon {
  align-self: flex-start;
  flex: 0 0 auto;
}
.home-action-card .quick-card-icon img,
.home-action-card .quick-card-icon svg {
  width: 100%;
  height: 100%;
}
.menu-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-action-card::before,
.home-action-card::after { pointer-events: none; }
.home-action-card {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(214,163,23,.26) 0%, rgba(214,163,23,.12) 34%, rgba(10,10,12,0) 72%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 42%, rgba(12,12,14,.98) 100%);
}
.home-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(75% 115% at 100% 0%, rgba(214,163,23,.34) 0%, rgba(214,163,23,.15) 36%, rgba(214,163,23,0) 70%),
    linear-gradient(120deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 35%, rgba(0,0,0,0) 100%);
  opacity: .95;
}
.home-action-card > img {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  inset: -1px;
  object-position: center center;
  transform: scale(1.02);
}
.home-card-copy { backdrop-filter: blur(1px); }
.home-action-card {
  box-shadow: inset 0 0 0 1px rgba(214, 163, 23, .16), 0 16px 30px rgba(0,0,0,.16);
}
.home-action-card:hover {
  box-shadow: inset 0 0 0 1px rgba(214, 163, 23, .24), 0 18px 34px rgba(0,0,0,.22);
}

.standing-group-title,
.standing-modality-title,
.final-overall-title,
.final-match-title {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  margin: 0 0 .9rem;
  padding: .78rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.title-gold {
  background: linear-gradient(90deg, rgba(255, 202, 76, .98), rgba(244, 172, 47, .9));
  border-color: rgba(255, 216, 109, .35);
  color: #18120a;
}
.title-silver {
  background: linear-gradient(90deg, rgba(244, 247, 252, .98), rgba(196, 204, 214, .92));
  border-color: rgba(238, 242, 247, .35);
  color: #15171c;
}
.final-vs { padding: 0 .45rem; }

/* Destaque do nome do clube campeão no título "%Clube% Campeão do Escalão...".
   O título tem fundo dourado (.title-gold) ou prateado (.title-silver) — o
   nome do campeão fica BRANCO e BOLD para evidenciar contra o gradiente. */
.final-winner-name {
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  letter-spacing: -.005em;
}
/* Em fundo prateado (Liga Prata), branco puro perderia contraste — usar
   um tom mais escuro com text-shadow inverso. */
.title-silver .final-winner-name {
  color: #1a1f2b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

/* Lado vencedor dos penáltis: bold + cor dourada para destacar. */
.final-penalty-line .pen-winner {
  font-weight: 800;
  color: var(--gold-2, #ffd86d);
}

.top-two-row td { font-weight: 400; }
.final-qualified-row .final-club-name,
.final-qualified-row .final-club-name strong {
  font-weight: 800;
}
.final-qualified-row td:first-child,
.final-qualified-row .final-total-points,
.final-qualified-row .final-total-points strong {
  color: var(--gold-2);
  font-weight: 800;
}
.favorite-row { background: rgba(var(--accent-rgb), .08); }
.favorite-row td { background: rgba(var(--accent-rgb), .10); }
.favorite-row td:first-child {
  position: relative;
  font-weight: 800;
}

.pos-cell {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding-top: 1px;
}
.pos-cell strong { position: relative; z-index: 1; }
.pos-star {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 900;
  isolation: isolate;
}
.pos-star::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(50% 2%, 61% 36%, 98% 36%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 36%, 39% 36%);
  background: linear-gradient(180deg, rgba(255,216,109,.98), rgba(243,179,29,.98));
  box-shadow: 0 8px 18px rgba(0,0,0,.26);
}
.pos-star.silver::before {
  background: linear-gradient(180deg, rgba(238,242,247,.98), rgba(188,196,207,.98));
}
.pos-star .star-number {
  position: relative;
  top: -1px;
  font-size: .82rem;
  line-height: 1;
  color: #1a1a1f;
}
.fav-star-overlay { display: none !important; }

.favorites-strip {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fav-pill {
  align-items: center;
  min-width: 0;
  padding: .8rem .9rem;
}
.fav-pill-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fav-pill-logo .favorite-team-badge {
  width: 52px;
  height: 52px;
  padding: .12rem;
  border-radius: 16px;
}
.fav-pill-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  min-width: 0;
}
.fav-pill-copy strong {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fav-pill-copy small { display: block; }

.club-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
}
.club-card {
  min-height: 280px;
  padding: .9rem .85rem;
  border-width: 1px;
  border-color: rgba(var(--accent-rgb), .2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}
.club-card:hover { transform: translateY(-1px); }
.club-card.is-favorite {
  border-color: rgba(var(--accent-rgb), .72);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .22), 0 0 22px rgba(var(--accent-rgb), .14), inset 0 0 0 1px rgba(var(--accent-rgb), .1);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .10), rgba(255,255,255,.02));
  filter: brightness(1.03);
}
.club-card.league-gold-card {
  border-color: rgba(243,179,29,.2);
  box-shadow: inset 0 0 0 1px rgba(243,179,29,.18), 0 14px 28px rgba(0,0,0,.16);
}
.club-card.league-silver-card {
  border-color: rgba(188,196,207,.22);
  box-shadow: inset 0 0 0 1px rgba(188,196,207,.20), 0 14px 28px rgba(0,0,0,.16);
}
.club-open {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.club-card-head.centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  min-height: 100%;
  padding-top: .65rem;
  text-align: center;
}
.club-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  min-width: 0;
}
.club-logo-wrap {
  width: min(100%, 150px);
  height: 150px;
  margin: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.club-grid-logo {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.club-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.12;
  word-break: break-word;
}
.club-scale {
  margin: 0;
  color: var(--accent-2);
  font-size: .98rem;
  font-weight: 800;
}
.club-meta,
.club-tags { display: none; }
.club-favorite-badge {
  top: .75rem;
  right: .75rem;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 2rem;
  line-height: 1;
}
.favorite-active {
  border-color: transparent;
  background: transparent;
  color: var(--accent-2);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .12);
}
.league-silver-card .club-favorite-badge { color: var(--silver-2); }

.club-page-head-refined {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 4px 0 2px;
}
.club-page-logo {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.club-dialog-logo {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}
.club-page-copy h2 { margin-bottom: .25rem; }
.club-page-meta-line {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
}
.club-page-meta-line span { color: rgba(255,255,255,.38); }
.club-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.club-stats-grid .mini-stat {
  min-height: 92px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.push-simple-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(214, 163, 23, .16), 0 14px 34px rgba(0,0,0,.20);
}
.push-simple-shell.enabled {
  border-color: rgba(var(--accent-rgb),.34);
  box-shadow: inset 0 0 0 1px rgba(214, 163, 23, .22), 0 12px 36px rgba(var(--accent-rgb),.12);
}
.switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.switch-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-slider {
  position: relative;
  display: block;
  width: 58px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  transition: .2s ease;
}
.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: .2s ease;
}
.switch-toggle input:checked + .switch-slider {
  border-color: rgba(var(--accent-rgb),.6);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.switch-toggle input:checked + .switch-slider::after {
  transform: translateX(26px);
  background: #111;
}
.switch-toggle.is-disabled { opacity: .55; }

.match-card { will-change: transform; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.match-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .28);
}
.match-card .match-actions { position: relative; z-index: 2; }

#installNowBtn[disabled] {
  opacity: .7;
  cursor: not-allowed;
}
img[loading="lazy"] { content-visibility: auto; }
.view,
.card,
.match-card,
.club-card,
.field-card { contain: layout paint style; }
.match-card,
.club-card,
.field-card,
.photo-card { transform: translateZ(0); }
body.app-loading #appMain { opacity: 0; }
body.app-loading .topbar,
body.app-loading .bottom-nav { opacity: .55; }
body.page-transitioning .view.active { animation: viewOut .16s ease forwards; }
body.app-syncing .topbar-action { animation: spinFab 1s linear infinite; }
.primary-btn,
.secondary-btn,
.small-btn { transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.primary-btn:active,
.secondary-btn:active,
.small-btn:active { transform: scale(.985); }
.skeleton-block,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.skeleton-block::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: shimmer 1.35s infinite;
}

@keyframes spinFab {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes viewOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: .2; transform: translateY(8px); }
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}


/* Mobile refinement: club page stats in 2 columns */
@media (max-width: 700px) {
  .club-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }
  .club-stats-grid .mini-stat {
    min-height: 0;
    padding: .8rem .85rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .45rem .75rem;
    text-align: left;
  }
  .club-stats-grid .mini-stat span {
    margin: 0;
    font-size: .8rem;
    line-height: 1.2;
  }
  .club-stats-grid .mini-stat strong {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1;
    text-align: right;
  }
}


/* Link discreto para a política de privacidade, no fim do card Definições. */
.privacy-link-row {
  margin: 14px 0 0;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}
.privacy-link-row a {
  color: inherit;
  opacity: .75;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.18);
  transition: opacity .18s ease, text-decoration-color .18s ease;
}
.privacy-link-row a:hover,
.privacy-link-row a:focus-visible {
  opacity: 1;
  text-decoration-color: var(--gold, currentColor);
  outline: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
/* Quando o backoffice esconde alguns dos 3 cards de Definições, os restantes
   ocupam toda a largura disponível (1 ou 2 colunas em desktop). O atributo
   data-visible-cards é definido pelo renderPushCard().
   IMPORTANTE: estas regras só se aplicam em desktop (>980px) para não
   competirem com a media-query mobile (1 coluna sempre, mais abaixo neste
   ficheiro). [data-visible-cards] tem especificidade superior a .settings-grid
   sozinha — sem este wrap em min-width, o mobile ficaria sempre com 2/3 colunas. */
@media (min-width: 981px) {
  .settings-grid[data-visible-cards="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid[data-visible-cards="1"] {
    grid-template-columns: minmax(0, 1fr);
  }
}
.settings-grid-compact {
  align-items: stretch;
}
.settings-compact-card {
  min-height: 0;
  padding: 14px 16px;
  border-radius: 16px;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.settings-compact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(214, 163, 23, .18);
}
.settings-compact-card .push-simple-copy {
  display: grid;
  gap: 4px;
}
.settings-compact-card .push-simple-copy strong {
  line-height: 1.1;
}
.settings-compact-card .muted {
  margin: 0;
}
.sync-simple-shell {
  align-items: stretch;
}
.sync-copy-block {
  flex: 1;
}

.preferences-notices-link {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), .26);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .18), rgba(255,255,255,.05));
  color: #f8f8fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.preferences-notices-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.3));
}
.preferences-notices-link:hover,
.preferences-notices-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .38);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .23), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 12px 28px rgba(0,0,0,.24);
  outline: none;
}

.topbar-settings-action::before {
  content: "⚙";
  font-size: 1.15rem;
}
.sync-now-btn {
  min-width: 58px;
  width: 58px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
}
.sync-now-btn.is-syncing {
  animation: spinFab 1s linear infinite;
}
.theme-simple-shell {
  border-color: rgba(var(--accent-rgb),.18);
}
.settings-auto-btn {
  margin-top: 12px;
  width: 100%;
}

/* ===== LIGHT THEME REFINEMENT ===== */
body[data-theme="light"] {
  --bg: #f4efe5;
  --bg-2: #fbf8f1;
  --card: rgba(255,255,255,0.92);
  --card-soft: rgba(118, 91, 37, 0.06);
  --line: rgba(122, 93, 45, 0.12);
  --line-strong: rgba(122, 93, 45, 0.18);
  --text: #221d16;
  --muted: #6c6358;
  --shadow: 0 16px 38px rgba(101, 76, 35, 0.10);
}
body[data-theme="light"] html,
html body[data-theme="light"] {
  background: linear-gradient(180deg, #f7f3ea 0%, #f2ece2 55%, #eee6d8 100%);
}
body[data-theme="light"] {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb),.12), transparent 22%),
    radial-gradient(circle at left center, rgba(255,255,255,.58), transparent 22%),
    linear-gradient(180deg, #f7f3ea 0%, #f2ece2 55%, #eee6d8 100%);
}
body[data-theme="light"] .ambient-a { background: rgba(var(--accent-rgb),.16); opacity: .42; }
body[data-theme="light"] .ambient-b { background: rgba(255,255,255,.55); opacity: .55; }
body[data-theme="light"] .ambient-c { background: rgba(var(--accent-rgb),.10); opacity: .36; }
body[data-theme="light"] .card,
body[data-theme="light"] .topbar,
body[data-theme="light"] .bottom-nav,
body[data-theme="light"] .modal-content,
body[data-theme="light"] .native-section,
body[data-theme="light"] .panel-card,
body[data-theme="light"] .match-day,
body[data-theme="light"] .standing-card,
body[data-theme="light"] .field-card,
body[data-theme="light"] .club-card,
body[data-theme="light"] .scoreboard-card,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .mini-stat,
body[data-theme="light"] .compact-row,
body[data-theme="light"] .push-simple-shell,
body[data-theme="light"] .match-card,
body[data-theme="light"] .fav-pill,
body[data-theme="light"] .search-shell,
body[data-theme="light"] .small-btn,
body[data-theme="light"] .text-btn,
body[data-theme="light"] .detail-team,
body[data-theme="light"] .detail-score-box,
body[data-theme="light"] .live-pill,
body[data-theme="light"] .chip,
body[data-theme="light"] .premium-toggle .toggle-slider,
body[data-theme="light"] .switch-slider,
body[data-theme="light"] .club-stats-grid .mini-stat {
  background: rgba(255,255,255,.78);
  border-color: rgba(122, 93, 45, 0.12);
  box-shadow: 0 8px 24px rgba(101, 76, 35, 0.06);
}
body[data-theme="light"] .hero-logo,
body[data-theme="light"] .topbar-logo,
body[data-theme="light"] .favorite-team-badge,
body[data-theme="light"] .team-badge,
body[data-theme="light"] .club-grid-logo,
body[data-theme="light"] .club-dialog-logo {
  background: rgba(255,255,255,.86);
  border-color: rgba(122, 93, 45, 0.10);
}
body[data-theme="light"] .eyebrow { color: #8b6a2f; }
body[data-theme="light"] .hero-copy p,
body[data-theme="light"] .home-card-copy small,
body[data-theme="light"] .page-banner-copy .eyebrow { color: rgba(255,255,255,.88); }
body[data-theme="light"] .home-action-card::after {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(26,19,10,.28) 55%, rgba(26,19,10,.72) 100%);
}
body[data-theme="light"] .home-action-card {
  box-shadow: inset 0 0 0 1px rgba(184, 164, 84, .24), 0 12px 28px rgba(101, 76, 35, 0.08);
}
body[data-theme="light"] .banner-overlay::after {
  background: linear-gradient(180deg, rgba(18,14,8,.05), rgba(18,14,8,.30) 58%, rgba(18,14,8,.68) 100%);
}
body[data-theme="light"] .topbar-action,
body[data-theme="light"] .primary-btn,
body[data-theme="light"] .nav-btn.active,
body[data-theme="light"] .chip.active {
  color: #251b0e;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.24), rgba(var(--accent-rgb),.12));
  border-color: rgba(var(--accent-rgb),.28);
}
body[data-theme="light"] .nav-btn { color: #716658; }
body[data-theme="light"] .nav-btn.active small,
body[data-theme="light"] .nav-btn.active .nav-icon { color: #251b0e; }
body[data-theme="light"] .score,
body[data-theme="light"] .score-chip {
  background: rgba(var(--accent-rgb),.10);
  border: 1px solid rgba(var(--accent-rgb),.14);
}
body[data-theme="light"] .club-scale { color: #8c7962; }
body[data-theme="light"] .club-page-meta-line span { color: rgba(34,29,22,.28); }
body[data-theme="light"] .table th,
body[data-theme="light"] .table td { border-bottom-color: rgba(122, 93, 45, 0.12); }
body[data-theme="light"] .table th { color: #7a705f; }
body[data-theme="light"] .match-card.is-upcoming::before { box-shadow: 0 0 0 1px rgba(var(--accent-rgb),.08); }
body[data-theme="light"] .search-input::placeholder { color: #8d8272; }
body[data-theme="light"] .switch-slider::after,
body[data-theme="light"] .toggle-slider::after { background: #ffffff; }
body[data-theme="light"] .switch-toggle input:checked + .switch-slider::after { background: #fff8ea; }
body[data-theme="light"] .preferences-notices-link {
  color: #251b0e;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.24), rgba(var(--accent-rgb),.12));
  border-color: rgba(var(--accent-rgb),.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 22px rgba(101, 76, 35, .10);
}
body[data-theme="light"] .live-dot { box-shadow: 0 0 0 6px rgba(var(--accent-rgb),.10); }
body[data-theme="light"] .detail-score-box small,
body[data-theme="light"] .toggle-text,
body[data-theme="light"] .scoreboard-row span,
body[data-theme="light"] .intro-text,
body[data-theme="light"] .muted { color: var(--muted); }
body[data-theme="light"] .topbar h1,
body[data-theme="light"] .section-head h3,
body[data-theme="light"] .club-card h4,
body[data-theme="light"] .standing-card h4,
body[data-theme="light"] .table td,
body[data-theme="light"] .team-line strong,
body[data-theme="light"] .compact-row strong,
body[data-theme="light"] .push-simple-copy strong { color: var(--text); }

@media (max-width: 980px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .sync-simple-shell {
    align-items: center;
  }
  .sync-now-btn {
    width: 58px;
    justify-self: center;
  }
  .preferences-notices-link {
    width: 44px;
    height: 44px;
  }
}



body[data-theme="light"] .club-card.is-favorite {
  border-color: rgba(var(--accent-rgb), .82);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .28), 0 14px 30px rgba(var(--accent-rgb), .16), inset 0 0 0 1px rgba(var(--accent-rgb), .16);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(255,255,255,.88));
}
body[data-theme="light"] .club-card.league-silver-card.is-favorite {
  border-color: rgba(184, 164, 84, .95);
  box-shadow: 0 0 0 2px rgba(184, 164, 84, .34), 0 14px 30px rgba(184, 164, 84, .16), inset 0 0 0 1px rgba(184, 164, 84, .18);
}
body[data-theme="light"] .club-card.league-gold-card.is-favorite {
  border-color: rgba(214, 163, 23, .95);
  box-shadow: 0 0 0 2px rgba(214, 163, 23, .34), 0 14px 30px rgba(214, 163, 23, .16), inset 0 0 0 1px rgba(214, 163, 23, .18);
}
body[data-theme="light"] .club-favorite-badge {
  color: #8c7b5a;
  text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 0 10px rgba(214, 163, 23, .16);
}
body[data-theme="light"] .favorite-active {
  color: #d6a317;
  text-shadow: 0 0 14px rgba(214, 163, 23, .28);
  filter: drop-shadow(0 4px 8px rgba(214, 163, 23, .22));
}
body[data-theme="light"] .league-silver-card .favorite-active {
  color: #b7a24f;
  text-shadow: 0 0 14px rgba(183, 162, 79, .24);
  filter: drop-shadow(0 4px 8px rgba(183, 162, 79, .20));
}
body[data-theme="light"] .premium-toggle {
  padding: .85rem .95rem;
  border: 1px solid rgba(122, 93, 45, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(101, 76, 35, 0.06);
}
body[data-theme="light"] .premium-toggle .toggle-slider {
  background: linear-gradient(180deg, rgba(140, 124, 96, .20), rgba(140, 124, 96, .12));
  border-color: rgba(122, 93, 45, .24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
body[data-theme="light"] .premium-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, rgba(214, 163, 23, .92), rgba(245, 208, 88, .88));
  border-color: rgba(214, 163, 23, .54);
}
body[data-theme="light"] .toggle-text {
  color: #4f463b;
  font-weight: 600;
}


.game-meta-tags {
  gap: .95rem;
}
.game-meta-tags .badge {
  margin-right: 0;
}
.detail-grid.one {
  display: block;
}
.detail-grid-card--single {
  padding-block: 1rem;
}
.game-location-card {
  display: grid;
  gap: .95rem;
}
.game-location-name {
  margin: 0;
}
.game-map-shell {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  aspect-ratio: 16 / 7;
}
.game-map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}
.game-map-link {
  width: 100%;
  justify-content: center;
}
body[data-theme="light"] .page-banner-copy h2,
body[data-theme="light"] .home-card-copy strong,
body[data-theme="light"] .page-banner-copy p,
body[data-theme="light"] .page-banner-copy .muted {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,.38);
}
body[data-theme="light"] .page-banner-copy,
body[data-theme="light"] .home-card-copy {
  color: #ffffff;
}
body[data-theme="light"] .live-center-badge,
body[data-theme="light"] .badge.live {
  background: linear-gradient(135deg, rgba(25,25,28,.92), rgba(var(--accent-rgb),.96));
  border-color: rgba(255,255,255,.18);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
body[data-theme="light"] .live-pill {
  color: #221d16;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,241,.92));
  border-color: rgba(var(--accent-rgb),.26);
}
body[data-theme="light"] .live-pill strong {
  color: #8b640e;
}
@media (max-width: 760px) {
  .game-meta-tags {
    gap: .55rem;
  }
  .game-map-shell {
    aspect-ratio: 16 / 10;
  }
  .game-map-embed {
    min-height: 220px;
  }
}
@media (min-width: 980px) {
  .game-map-shell {
    aspect-ratio: 16 / 6;
  }
  .game-map-embed {
    min-height: 300px;
  }
}


/* Game page spacing refinement */
.detail-hero {
  padding-bottom: 1.1rem;
}
.detail-scoreline {
  gap: 1rem;
  margin-top: 1rem;
}
.game-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .7rem;
  row-gap: .65rem;
  margin-top: .95rem;
  padding-left: 0;
}
.game-meta-tags .badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .52rem .9rem;
  margin-right: 0;
  white-space: nowrap;
}
.game-location-card {
  gap: .65rem;
}
.game-location-card .eyebrow {
  margin: 0;
}
.game-location-name {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}
.game-map-shell {
  margin-top: .15rem;
  border-radius: 20px;
}
.game-map-link {
  margin-top: .1rem;
}

/* Mobile club page stats layout */
@media (max-width: 700px) {
  .club-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: .75rem;
  }
  .club-stats-grid .mini-stat:nth-child(1),
  .club-stats-grid .mini-stat:nth-child(3),
  .club-stats-grid .mini-stat:nth-child(5) {
    grid-column: 1;
  }
  .club-stats-grid .mini-stat:nth-child(2),
  .club-stats-grid .mini-stat:nth-child(4),
  .club-stats-grid .mini-stat:nth-child(6) {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .detail-scoreline {
    gap: .8rem;
  }
  .game-meta-tags {
    column-gap: .55rem;
    row-gap: .55rem;
  }
  .game-meta-tags .badge {
    min-height: 34px;
    padding: .48rem .78rem;
    font-size: .8rem;
  }
  .game-location-name {
    font-size: 1.04rem;
  }
  .game-map-shell {
    aspect-ratio: 16 / 10.5;
  }
}


.match-penalties {
  margin-top: .7rem;
  padding-left: .5rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.detail-penalties {
  display: block;
  margin-top: .25rem;
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-2);
}
.final-result-stack { display: grid; gap: .18rem; }
.final-result-stack small { color: var(--muted); }
.final-row-clickable { cursor: pointer; }
.final-row-clickable:hover { background: rgba(255,255,255,.03); }

@media (max-width: 700px) {
  .match-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .team-line {
    grid-template-columns: 42px minmax(0,1fr) auto;
    gap: .6rem;
  }
  .team-line strong {
    min-width: 0;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }
  .score {
    min-width: 2.45rem;
    padding: .34rem .45rem;
  }
  .match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
  }
}

@media (max-width: 560px) {
  .match-card { padding: 1rem .9rem 1rem 1rem; }
  .match-meta span:first-child { line-height: 1.35; }
  .team-line { grid-template-columns: 38px minmax(0,1fr) 40px; }
  .team-badge { width: 38px; height: 38px; }
  .match-footer { gap: .65rem; margin-top: .75rem; }
  .detail-scoreline {
    grid-template-columns: minmax(0,1fr) 104px minmax(0,1fr);
    gap: .7rem;
  }
  .detail-team {
    min-width: 0;
    padding: 12px 8px;
    gap: 8px;
  }
  .detail-team img {
    width: 48px;
    height: 48px;
  }
  .detail-team strong {
    font-size: .9rem;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .detail-score-box {
    min-width: 0;
    padding: 12px 10px;
  }
  .detail-score-box span { font-size: 1.35rem; }
  .detail-penalties { font-size: .9rem; }
}



/* Better mobile game detail layout */
.detail-scoreline--match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 140px) minmax(0, 1fr);
  align-items: stretch;
}
.detail-team {
  min-width: 0;
}
.detail-team-name {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.detail-score-box--match {
  display: grid;
  align-content: center;
  gap: .25rem;
}
.detail-score-box--match span {
  line-height: 1.05;
}
.detail-score-box--match small {
  display: block;
}
.detail-hero,
#view-jogo .panel-card,
#view-clube .panel-card,
.native-filters {
  overflow: hidden;
}
.native-filters .filter-block {
  min-width: 0;
}

@media (min-width: 761px) {
  .native-filters .segmented-control {
    justify-content: flex-start;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .detail-hero {
    padding-inline: .9rem;
  }
  .detail-scoreline--match {
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    gap: .65rem;
    align-items: stretch;
  }
  .detail-team {
    padding: 12px 8px;
    border-radius: 18px;
  }
  .detail-team img {
    width: 52px;
    height: 52px;
  }
  .detail-team-name {
    font-size: .88rem;
  }
  .detail-score-box--match {
    padding: 12px 8px;
    border-radius: 18px;
    min-width: 0;
  }
  .detail-score-box--match span {
    font-size: 1.45rem;
  }
  .detail-penalties {
    font-size: .86rem;
    margin-top: .15rem;
  }
  .game-meta-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }
  .game-meta-tags .badge {
    width: 100%;
    justify-content: center;
    min-width: 0;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .match-day-header {
    gap: .65rem;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .detail-scoreline--match {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    gap: .5rem;
  }
  .detail-team {
    padding: 10px 6px;
  }
  .detail-team img {
    width: 46px;
    height: 46px;
  }
  .detail-team-name {
    font-size: .82rem;
  }
  .detail-score-box--match span {
    font-size: 1.25rem;
  }
  .detail-penalties {
    font-size: .78rem;
  }
  .game-meta-tags {
    grid-template-columns: 1fr;
  }
}


.page-banner,
.photo-card,
.field-card,
.club-card,
.match-card {
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}

.compact-banner img,
.field-cover,
.photo-card img,
.home-action-card > img {
  display: block;
}

.photo-card img {
  background: rgba(255,255,255,.04);
}

.club-logo-wrap,
.fav-pill-logo {
  contain: layout paint;
}

#view-estatisticas .stats-league-summary,
#view-estatisticas .stats-team-league-list {
  display: grid;
  gap: 1rem;
}

.stats-league-card {
  padding: 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(214, 156, 46, .55);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 34px rgba(0,0,0,.2);
}

.stats-league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}

.stats-league-head h4,
.stats-league-group h4 {
  margin: 0;
  font-size: 1.05rem;
}

.stats-league-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: .7rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  color: rgba(255,255,255,.9);
  font-weight: 600;
}

.stats-league-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.stats-league-mini-card {
  padding: .9rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.stats-league-mini-card span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .45rem;
}

.stats-league-mini-card strong {
  font-size: 1.08rem;
}

.stats-league-group + .stats-league-group {
  margin-top: .2rem;
}

.stats-team-rank-list {
  display: grid;
  gap: .75rem;
  margin-top: .8rem;
}

.stats-team-rank-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}

.stats-team-rank-left {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  flex: 1;
}

.stats-team-rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  font-weight: 800;
  flex: 0 0 auto;
}

.stats-team-rank-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  flex: 0 0 auto;
}

.stats-team-rank-copy {
  min-width: 0;
}

.stats-team-rank-copy strong,
.stats-team-rank-copy span {
  display: block;
}

.stats-team-rank-copy strong {
  font-size: 1rem;
  line-height: 1.15;
  margin-bottom: .22rem;
}

.stats-team-rank-copy span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.25;
}

.stats-team-rank-goals {
  padding: .85rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .stats-league-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-league-pill {
    min-width: 0;
  }

  .stats-league-mini-grid {
    grid-template-columns: 1fr;
  }

  .stats-team-rank-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-team-rank-goals {
    width: 100%;
    text-align: center;
  }
}

/* Patch: home quick-card icons larger, consistent and fixed across breakpoints */
:root {
  --quick-card-icon-size: 64px;
  --quick-card-icon-gap: 8px;
}

.home-action-card .home-card-copy {
  inset: 0;
  padding: .85rem .9rem;
  justify-content: flex-start;
  align-items: flex-start;
  gap: .18rem;
}

.home-action-card .quick-card-icon,
.home-action-card.no-card-image .quick-card-icon,
.home-action-card .menu-icon.quick-card-icon {
  width: var(--quick-card-icon-size);
  height: var(--quick-card-icon-size);
  min-width: var(--quick-card-icon-size);
  min-height: var(--quick-card-icon-size);
  max-width: var(--quick-card-icon-size);
  max-height: var(--quick-card-icon-size);
  margin: 0 0 var(--quick-card-icon-gap) 0;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 1;
}

.home-action-card .quick-card-icon img,
.home-action-card .quick-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}

.home-action-card .home-card-copy strong {
  margin-top: 0;
  line-height: 1.05;
}

.home-action-card .home-card-copy small {
  line-height: 1.18;
}


/* Patch: normalizar visibilidade/tamanho dos ícones rápidos e destacar menu ativo */
.home-action-card .quick-card-icon {
  overflow: visible;
}

.home-action-card .quick-card-icon img.quick-icon-img,
.home-action-card .quick-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: scale(var(--quick-icon-scale, 1));
  transform-origin: center;
  filter:
    brightness(1.12)
    contrast(1.08)
    saturate(1.18)
    drop-shadow(0 2px 3px rgba(0,0,0,.34));
}

.home-action-card .quick-card-icon img[data-quick-icon="iconbacup"] {
  --quick-icon-scale: 1.18;
}

.home-action-card .quick-card-icon img[data-quick-icon="iconcampeonato"],
.home-action-card .quick-card-icon img[data-quick-icon="iconarbitro"],
.home-action-card .quick-card-icon img[data-quick-icon="iconclube-de-futebol"] {
  --quick-icon-scale: 1.08;
}

.nav-btn.active,
.nav-btn.active small {
  font-weight: 800;
}

.nav-btn.active .nav-icon {
  font-weight: 800;
}

/* Patch: preencher corretamente a imagem do hero/card em mobile */
.hero-native {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #050507;
}

.hero-native picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-native .hero-native-cover,
.hero-native-cover.hero-fit,
.hero-native-cover.no-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-action-card.has-card-image {
  background: #111;
}

.home-action-card.has-card-image > img,
.home-action-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

@media (max-width: 640px) {
  .hero-native {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 24px;
  }

  .home-action-card {
    min-height: 156px;
  }

  .home-action-card.has-card-image > img {
    object-fit: cover;
  }
}
.notice-card {
  display: grid;
  gap: .75rem;
}

.notice-preview,
.notice-detail-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

.notice-countdown {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: .42rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 700;
}

.notice-detail {
  display: grid;
  gap: .75rem;
}

.notice-detail h3 {
  margin: 0;
}
