:root {
  --yellow: #e8e800;
  --yellow-soft: #f4f448;
  --red: #c40000;
  --dark: #070b0f;
  --panel: rgba(10, 14, 18, 0.82);
  --panel-strong: rgba(4, 6, 8, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2f5f7;
  --muted: rgba(242, 245, 247, 0.62);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--dark);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Moderniz", "Arial Black", Impact, "Arial Narrow", "Roboto Condensed", "Segoe UI Condensed", Arial, sans-serif;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

button,
a {
  font: inherit;
}

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

.site-bg,
.site-bg::after,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-bg {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.92), rgba(1, 6, 7, 0.50) 45%, rgba(1, 4, 5, 0.88)),
    linear-gradient(0deg, rgba(3, 7, 6, 0.78), rgba(3, 7, 6, 0.14) 43%, rgba(3, 7, 6, 0.88)),
    url("../assets/background.webp") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.02);
}

.site-bg::after {
  content: "";
  z-index: -2;
  background:
    radial-gradient(circle at 25% 22%, rgba(52, 255, 98, 0.16), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(232, 232, 0, 0.13), transparent 22%),
    radial-gradient(circle at 55% 88%, rgba(196, 0, 0, 0.18), transparent 32%);
  mix-blend-mode: screen;
}


/* Sfondo speciale quando è attiva la sezione Champions League. */
body.is-world-cup-active .site-bg {
  background:
    radial-gradient(circle at 50% 18%, rgba(109, 132, 255, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(1, 5, 16, 0.62), rgba(1, 7, 20, 0.22) 42%, rgba(1, 5, 16, 0.68)),
    linear-gradient(180deg, rgba(4, 8, 32, 0.26), rgba(4, 8, 32, 0.06) 46%, rgba(4, 8, 32, 0.40)),
    url("../assets/champions-global-background.webp") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.06) brightness(0.94);
}

body.is-world-cup-active .site-bg::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.10), transparent 19%),
    repeating-radial-gradient(circle at 50% 50%, rgba(135, 156, 255, 0.035) 0 1px, transparent 1px 34px),
    linear-gradient(115deg, transparent 18%, rgba(86, 126, 255, 0.08) 42%, transparent 62%);
}

.noise {
  z-index: -1;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
}

.app-shell {
  width: min(1440px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 24px;
  display: flex;
  flex-direction: column;
}

.top-hud {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(2, 4, 6, 0.76), rgba(2, 4, 6, 0.18), rgba(2, 4, 6, 0.76));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.brand-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 18px rgba(196, 0, 0, 0.35));
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy .eyebrow {
  color: var(--muted);
  font-size: clamp(0.62rem, 0.8vw, 0.82rem);
  letter-spacing: 0.19em;
}

.brand-copy strong {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 2rem);
  letter-spacing: 0.15em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
}

.hud-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hud-stat {
  min-width: 112px;
  padding: 10px 14px 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hud-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.hud-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.08em;
}

.hud-stat.accent {
  border-color: rgba(232, 232, 0, 0.32);
}

.hud-stat.accent strong {
  color: var(--yellow-soft);
}

.main-tabs {
  height: 74px;
  display: flex;
  align-items: end;
  gap: clamp(16px, 4.8vw, 72px);
  padding: 0 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  letter-spacing: 0.11em;
}

.tab::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -18px;
  height: 4px;
  background: var(--yellow);
  transition: left 180ms ease, right 180ms ease;
}

.tab.is-active {
  color: var(--yellow);
}

.tab.is-active::after,
.tab:hover::after {
  left: 0;
  right: 0;
}

.tab[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
}

.menu-panel[hidden] {
  display: none !important;
}

.menu-panel {
  animation: panelIn 180ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-stage {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 26px 0 18px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-left: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
}

.section-title h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.12em;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, 18vh);
  gap: 8px;
  padding: 0;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.46));
}

.tile {
  position: relative;
  isolation: isolate;
  grid-column: span 6;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 6, 8, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}

button.tile {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  padding: 0;
  font: inherit;
  text-align: left;
}

.tile-large {
  min-height: 190px;
}

.tile:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.86;
  transform: scale(1.01);
  filter: saturate(1.05) contrast(1.08) brightness(0.92);
  transition: transform 420ms ease, filter 220ms ease, opacity 180ms ease;
}

/* Velatura scura: lascia vedere l'immagine, ma mantiene leggibile il testo. */
.tile-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 5, 8, 0.70), rgba(2, 5, 8, 0.42) 46%, rgba(2, 5, 8, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 58%);
  transition: opacity 170ms ease, background 170ms ease;
}

/* Stato selezionato in giallo, senza nascondere la foto sotto. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(232, 232, 0, 0.70), rgba(232, 232, 0, 0.48) 48%, rgba(232, 232, 0, 0.16));
  opacity: 0;
  transition: opacity 160ms ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
  opacity: 0.76;
  transition: opacity 160ms ease;
}

.tile:hover,
.tile.is-selected,
.tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 232, 0, 0.92);
  box-shadow:
    0 0 0 3px rgba(232, 232, 0, 0.18),
    0 22px 55px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.tile:hover::before,
.tile.is-selected::before,
.tile:focus-visible::before {
  opacity: 1;
}

.tile:hover .tile-bg,
.tile.is-selected .tile-bg,
.tile:focus-visible .tile-bg {
  opacity: 0.26;
}

.tile:hover::after,
.tile.is-selected::after,
.tile:focus-visible::after {
  opacity: 0.18;
}

.tile:hover .tile-media img,
.tile.is-selected .tile-media img,
.tile:focus-visible .tile-media img {
  opacity: 1;
  transform: scale(1.065);
  filter: saturate(1.22) contrast(1.08) brightness(1.10);
}

.tile-content {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(18px, 2vw, 28px);
}

.tile-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.72rem, 1.1vw, 0.94rem);
  letter-spacing: 0.18em;
  transition: color 160ms ease;
}

.tile-title {
  max-width: 92%;
  color: #f7f7f7;
  font-size: clamp(1.45rem, 2.8vw, 3.7rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.055em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.82);
  transition: color 160ms ease, text-shadow 160ms ease;
}

.tile:hover .tile-kicker,
.tile.is-selected .tile-kicker,
.tile:focus-visible .tile-kicker {
  color: rgba(0, 0, 0, 0.72);
}

.tile:hover .tile-title,
.tile.is-selected .tile-title,
.tile:focus-visible .tile-title {
  color: #080808;
  text-shadow: none;
}

.tile.is-disabled {
  cursor: not-allowed;
}

.tile.is-disabled .tile-media img {
  filter: saturate(0.78) contrast(1.04) brightness(0.92);
}

.news-tile {
  cursor: default;
}

.news-copy {
  padding-bottom: 58px;
}

.news-caption {
  width: fit-content;
  max-width: 92%;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.75rem, 1.15vw, 1rem);
  letter-spacing: 0.11em;
  transition: color 160ms ease;
}

.news-tile:hover .news-caption,
.news-tile.is-selected .news-caption,
.news-tile:focus-visible .news-caption {
  color: rgba(0, 0, 0, 0.76);
}

.news-controls {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.news-btn {
  width: 34px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 1.4rem;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.news-btn:hover,
.news-btn:focus-visible {
  background: var(--yellow);
  color: #111;
  transform: translateY(-1px);
  outline: none;
}

.news-counter {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.08em;
}

.objectives-grid .tile:nth-child(5) {
  grid-column: span 12;
}

.objective-caption {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.72rem, 1.05vw, 0.96rem);
  letter-spacing: 0.10em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.tile:hover .objective-caption,
.tile.is-selected .objective-caption,
.tile:focus-visible .objective-caption {
  color: rgba(0, 0, 0, 0.76);
}

.footer-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  letter-spacing: 0.11em;
}

.footer-hints kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-right: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: none;
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 28px, 760px);
    padding-top: 18px;
  }

  .top-hud {
    align-items: flex-start;
    flex-direction: column;
  }

  .hud-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .hud-stat {
    flex: 1 1 140px;
  }

  .main-tabs {
    gap: 34px;
    padding-inline: 8px;
  }

  .section-title {
    padding-left: 4px;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(190px, auto);
  }

  .tile {
    grid-column: auto;
  }

  .objectives-grid .tile:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 18px, 460px);
  }

  .top-hud {
    padding-inline: 10px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .hud-stats {
    display: none;
  }

  .main-tabs {
    height: 62px;
  }

  .section-title {
    display: grid;
    gap: 4px;
  }

  .tiles-grid {
    gap: 10px;
  }

  .tile-content {
    padding: 18px;
  }

  .tile-title {
    max-width: 100%;
  }

  .news-controls {
    left: 16px;
    right: auto;
  }

  .footer-hints {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* === Obiettivi / Challenge Hub === */
.objectives-panel {
  align-content: start;
  padding-top: 24px;
}

.objectives-title {
  margin-bottom: 14px;
}

.objectives-title h1 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
}

.objectives-command {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  align-items: center;
  gap: 28px;
  min-height: 188px;
  margin-bottom: 18px;
  padding: clamp(22px, 2.8vw, 36px);
  border: 1px solid rgba(232, 232, 0, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(100deg, rgba(232, 232, 0, 0.20), rgba(3, 6, 8, 0.92) 38%, rgba(3, 6, 8, 0.88)),
    url("../assets/gamepass.webp") center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255,255,255,.04);
  isolation: isolate;
}

.objectives-command::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2,4,6,.28), rgba(2,4,6,.8)),
    radial-gradient(circle at 8% 50%, rgba(232,232,0,.24), transparent 28%);
}

.command-copy {
  min-width: 0;
  max-width: 820px;
}

.command-kicker,
.save-status {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: clamp(.68rem, .9vw, .82rem);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.command-copy strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  line-height: .98;
  letter-spacing: .05em;
  text-shadow: 0 8px 28px rgba(0,0,0,.66);
}

.command-copy p {
  max-width: 760px;
  margin: 13px 0 14px;
  color: rgba(255,255,255,.76);
  font-size: clamp(.76rem, 1vw, .92rem);
  line-height: 1.5;
  letter-spacing: .06em;
}

.objectives-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.objectives-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.62);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.objectives-summary b {
  color: var(--yellow);
  font-size: .88rem;
}

.command-actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.objective-main-btn,
.objective-secondary-btn {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  font: inherit;
  letter-spacing: .08em;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.objective-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #090909;
  background: var(--yellow);
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0,0,0,.34);
}

.objective-main-btn .btn-icon {
  font-size: 1.25em;
  line-height: 1;
}

.objective-secondary-btn {
  color: rgba(255,255,255,.74);
  background: rgba(0,0,0,.48);
}

.objective-main-btn:hover,
.objective-main-btn:focus-visible,
.objective-secondary-btn:hover,
.objective-secondary-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  outline: none;
  box-shadow: 0 22px 46px rgba(0,0,0,.42), 0 0 0 3px rgba(232,232,0,.14);
}

.objectives-list {
  display: grid;
  gap: 18px;
}

.objectives-list.is-revealing .objective-card {
  animation: objectiveReveal 280ms ease both;
}

.objectives-list.is-revealing .objective-card:nth-child(2) { animation-delay: 45ms; }
.objectives-list.is-revealing .objective-card:nth-child(3) { animation-delay: 90ms; }

@keyframes objectiveReveal {
  from { opacity: 0; transform: translateY(10px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.objective-category {
  --category-accent: 232, 232, 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12,16,20,.88), rgba(4,6,8,.82));
  box-shadow: 0 18px 42px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.025);
}

.objective-category[data-category="live"] { --category-accent: 52, 255, 98; }
.objective-category[data-category="match"] { --category-accent: 80, 174, 255; }
.objective-category[data-category="cursed"] { --category-accent: 229, 46, 46; }

.objective-category::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(var(--category-accent), .15), transparent 32%),
    linear-gradient(90deg, rgba(var(--category-accent), .07), transparent 38%);
}

.objective-category-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.18);
}

.objective-category-kicker {
  display: block;
  margin-bottom: 6px;
  color: rgba(var(--category-accent), .92);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.objective-category-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  line-height: 1;
  letter-spacing: .06em;
}

.objective-category-count {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(var(--category-accent), .26);
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  background: rgba(var(--category-accent), .08);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.objective-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.objective-card {
  --rarity: 255,255,255;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 176px;
  padding: 17px;
  border: 1px solid rgba(var(--rarity), .34);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(var(--rarity), .10), rgba(5,7,9,.94) 45%),
    rgba(5,7,9,.9);
  box-shadow: inset 0 3px 0 rgba(var(--rarity), .70);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.objective-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--rarity), .18), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 15px);
}

.objective-card.bronze { --rarity: 198, 121, 62; }
.objective-card.silver { --rarity: 205, 214, 224; }
.objective-card.gold { --rarity: 255, 204, 51; }

.objective-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--rarity), .75);
  box-shadow: inset 0 3px 0 rgba(var(--rarity), .95), 0 12px 26px rgba(0,0,0,.30);
}

.objective-card-top,
.objective-card-rule,
.objective-card-foot {
  position: relative;
  z-index: 1;
}

.objective-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.58);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.objective-card-top strong {
  padding: 5px 8px;
  border: 1px solid rgba(var(--rarity), .32);
  border-radius: 999px;
  color: rgb(var(--rarity));
  background: rgba(var(--rarity), .07);
  font-size: .68rem;
}

.objective-card-rule {
  margin: 18px 0;
  color: #fff;
  font-size: clamp(.92rem, 1.15vw, 1.12rem);
  line-height: 1.34;
  letter-spacing: .025em;
  text-shadow: 0 5px 18px rgba(0,0,0,.62);
}

.objective-card-foot {
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.075);
  color: rgba(255,255,255,.43);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.objectives-error {
  padding: 22px;
  border: 1px solid rgba(196,0,0,.5);
  border-radius: 12px;
  background: rgba(196,0,0,.18);
  color: #fff;
}

@media (max-width: 1100px) {
  .objectives-command {
    grid-template-columns: 1fr;
  }

  .command-actions {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .objective-cards {
    grid-template-columns: 1fr;
  }

  .objective-card {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .objectives-command,
  .objective-category {
    border-radius: 12px;
  }

  .objective-category-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .objective-category-count {
    align-self: flex-start;
  }
}

/* Champions League section: font di sistema, senza dipendenze esterne. */
.world-cup-panel {
  font-family: "InlandersDemo", "Arial Black", Impact, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.world-cup-shell {
  display: grid;
  gap: 18px;
  min-height: 58vh;
  align-content: center;
}

.world-cup-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 210px) 1fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 220, 255, 0.22), transparent 32%),
    radial-gradient(circle at 78% 0%, rgba(255, 214, 0, 0.20), transparent 30%),
    radial-gradient(circle at 92% 92%, rgba(31, 199, 92, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(5, 18, 35, 0.94), rgba(8, 38, 58, 0.88) 45%, rgba(5, 10, 22, 0.94));
  box-shadow: var(--shadow);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.world-cup-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.14), transparent 28%, transparent 72%, rgba(255,255,255,0.10)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 18px);
  opacity: 0.46;
  mix-blend-mode: screen;
}

.world-cup-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(210px, 100%);
  border-radius: 50%;
  color: #06111e;
  font-size: clamp(4.8rem, 10vw, 9rem);
  line-height: 1;
  background:
    radial-gradient(circle at 38% 28%, #ffffff, #ffe66b 34%, #20d47b 64%, #0a78ff 100%);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.46),
    0 0 0 10px rgba(255,255,255,0.06),
    inset 0 0 28px rgba(255,255,255,0.44);
}

.world-cup-title-block {
  position: relative;
  z-index: 1;
}

.world-cup-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(255, 230, 120, 0.92);
  font-size: clamp(1rem, 1.7vw, 1.6rem);
}

.world-cup-title-block h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.78;
  text-shadow: 0 16px 50px rgba(0,0,0,0.58);
}

.world-cup-title-block p {
  max-width: 920px;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.78);
  font-family: "Moderniz", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.78rem, 1.15vw, 1rem);
  line-height: 1.55;
}

.world-cup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.world-cup-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 0, 0.18), transparent 30%),
    radial-gradient(circle at 90% 22%, rgba(0, 180, 255, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(4, 18, 34, 0.90), rgba(4, 42, 58, 0.76));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  cursor: default;
}

.world-cup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.12), transparent 30%, transparent 70%, rgba(255,255,255,0.08));
  opacity: 0.54;
}

.world-cup-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
}

.world-cup-card:hover,
.world-cup-card.is-selected,
.world-cup-card:focus-visible {
  border-color: rgba(255, 214, 0, 0.90);
  box-shadow:
    0 0 0 3px rgba(255, 214, 0, 0.16),
    0 22px 55px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.world-cup-card:hover::before,
.world-cup-card.is-selected::before,
.world-cup-card:focus-visible::before {
  background: linear-gradient(90deg, rgba(255, 214, 0, 0.72), rgba(255, 214, 0, 0.26));
  opacity: 1;
}

.world-card-number,
.world-cup-card h2,
.world-cup-card p {
  position: relative;
  z-index: 2;
}

.world-card-number {
  color: rgba(255, 230, 120, 0.86);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1;
}

.world-cup-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 0.82;
}

.world-cup-card p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-family: "Moderniz", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  line-height: 1.45;
}

.world-cup-card:hover .world-card-number,
.world-cup-card.is-selected .world-card-number,
.world-cup-card:focus-visible .world-card-number,
.world-cup-card:hover h2,
.world-cup-card.is-selected h2,
.world-cup-card:focus-visible h2,
.world-cup-card:hover p,
.world-cup-card.is-selected p,
.world-cup-card:focus-visible p {
  color: #071018;
  text-shadow: none;
}

@media (max-width: 980px) {
  .world-cup-hero {
    grid-template-columns: 1fr;
  }

  .world-cup-mark {
    width: 150px;
  }

  .world-cup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .world-cup-grid {
    grid-template-columns: 1fr;
  }

  .world-cup-card {
    min-height: 190px;
  }
}

/* Champions League v10: griglia stile Home, testi più contenuti per evitare tagli nei box. */
.world-cup-panel {
  font-family: "InlandersDemo", "Arial Black", Impact, sans-serif;
}

.world-cup-section-title h1,
.world-cup-section-title p,
.world-cup-tile .tile-title,
.world-cup-tile .tile-kicker,
.world-flag-label {
  font-family: "InlandersDemo", "Arial Black", Impact, sans-serif;
}

.world-cup-section-title h1 {
  font-size: clamp(2rem, 3.3vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.world-cup-section-title p {
  color: rgba(185, 201, 255, 0.94);
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  letter-spacing: 0.08em;
}

.world-cup-tiles {
  grid-auto-rows: minmax(185px, 20vh);
}

.world-cup-tiles .tile:nth-child(5) {
  grid-column: span 12;
}

.world-cup-tile {
  background: rgba(4, 8, 14, 0.72);
}

.world-cup-tile .tile-content {
  gap: 7px;
  padding: clamp(14px, 1.7vw, 24px);
}

.world-cup-tile .flag-media {
  background-position: 82% 50%;
  background-size: clamp(118px, 30%, 240px) auto;
  background-repeat: no-repeat;
  opacity: 0.96;
  transform: scale(1);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.58)) saturate(1.05) contrast(1.04);
  transition: transform 420ms ease, filter 220ms ease, opacity 180ms ease;
}

.world-cup-tile:hover .flag-media,
.world-cup-tile.is-selected .flag-media,
.world-cup-tile:focus-visible .flag-media {
  opacity: 1;
  transform: scale(1.035);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.66)) saturate(1.10) contrast(1.06) brightness(1.06);
}

.world-cup-tile .tile-bg {
  background:
    linear-gradient(90deg, rgba(0, 8, 16, 0.82), rgba(0, 8, 16, 0.46) 48%, rgba(0, 8, 16, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent 58%);
}

.world-cup-tile::before {
  background: linear-gradient(90deg, rgba(91, 126, 255, 0.90), rgba(92, 86, 255, 0.55) 48%, rgba(122, 78, 255, 0.18));
}

.world-cup-tile .tile-title {
  max-width: min(96%, 760px);
  font-size: clamp(1.75rem, 2.85vw, 3.7rem);
  line-height: 0.93;
  letter-spacing: 0.012em;
  overflow-wrap: anywhere;
}

.world-cup-tile .tile-kicker {
  color: rgba(185, 201, 255, 0.94);
  font-size: clamp(0.75rem, 1.05vw, 1.05rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.world-flag-label {
  width: fit-content;
  max-width: 92%;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.68rem, 0.85vw, 0.9rem);
  line-height: 1;
  letter-spacing: 0.03em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.world-cup-tile:hover .world-flag-label,
.world-cup-tile.is-selected .world-flag-label,
.world-cup-tile:focus-visible .world-flag-label {
  color: rgba(0, 0, 0, 0.82);
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 980px) {
  .world-cup-tiles .tile:nth-child(5) {
    grid-column: auto;
  }

  .world-cup-tile .tile-title {
    font-size: clamp(1.65rem, 9vw, 3.2rem);
    line-height: 0.95;
  }
}

@media (max-width: 560px) {
  .world-cup-section-title h1 {
    font-size: clamp(2rem, 14vw, 3.5rem);
  }

  .world-cup-tile .tile-title {
    font-size: clamp(1.45rem, 10vw, 2.6rem);
  }

  .world-cup-tile .tile-content {
    padding: 16px;
  }
}


/* === FUT === */
.fut-panel {
  align-content: start;
  padding-top: 26px;
}

.fut-section-title h1 {
  font-size: clamp(2.2rem, 4.2vw, 5.6rem);
}

.fut-tiles {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.fut-tiles .fut-tile {
  grid-column: span 6;
  min-height: clamp(210px, 30vh, 320px);
}

.fut-tile .tile-content {
  justify-content: flex-end;
}

.fut-tile .tile-title {
  max-width: 100%;
  font-size: clamp(1.55rem, 3vw, 3.9rem);
}

.fut-subtitle {
  display: block;
  max-width: min(620px, 94%);
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  transition: color 160ms ease, text-shadow 160ms ease;
}

.fut-tile:hover .fut-subtitle,
.fut-tile.is-selected .fut-subtitle,
.fut-tile:focus-visible .fut-subtitle {
  color: rgba(0, 0, 0, 0.78);
  text-shadow: none;
}

.fut-tile.is-disabled {
  cursor: not-allowed;
}

.fut-tile.is-disabled::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.20), rgba(255,255,255,0.10));
}

.fut-tile.is-disabled:hover,
.fut-tile.is-disabled.is-selected,
.fut-tile.is-disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 980px) {
  .fut-tiles .fut-tile {
    grid-column: span 12;
  }
}

/* Abbonati */

/* === Altri progetti === */
.projects-panel {
  align-content: start;
  padding-top: 26px;
}

.projects-section-title h1 {
  font-size: clamp(2.1rem, 4vw, 5.4rem);
}

.projects-tiles {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.projects-tiles .project-tile {
  grid-column: span 6;
  min-height: clamp(220px, 31vh, 330px);
}

.project-tile .tile-content {
  justify-content: flex-end;
  gap: 10px;
}

.project-tile .tile-title {
  max-width: 100%;
  font-size: clamp(1.65rem, 3.1vw, 4rem);
}

/* Titolo del primo minigame sempre su una sola riga. */
.fantaballa-zero-tile .tile-title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.2rem, 2.75vw, 3rem);
  letter-spacing: 0.025em;
}

.fantaballa-zero-tile .tile-kicker {
  font-size: clamp(0.68rem, 0.92vw, 0.84rem);
  letter-spacing: 0.10em;
}

.project-subtitle {
  display: block;
  max-width: min(620px, 92%);
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.project-tile:hover .project-subtitle,
.project-tile.is-selected .project-subtitle,
.project-tile:focus-visible .project-subtitle {
  color: rgba(0, 0, 0, 0.78);
  text-shadow: none;
}

@media (max-width: 980px) {
  .projects-tiles .project-tile {
    grid-column: span 12;
  }
}

.subscribers-panel {
  --twitch: #9146ff;
  --twitch-soft: rgba(145, 70, 255, 0.22);
}

.subscribers-section-title h1 {
  text-shadow:
    0 0 24px rgba(145, 70, 255, 0.28),
    0 12px 34px rgba(0, 0, 0, 0.52);
}

.subscribers-board {
  display: grid;
  gap: 18px;
}

.subscribers-list-card,
.benefits-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(5, 5, 9, 0.90), rgba(18, 8, 32, 0.82)),
    radial-gradient(circle at 12% 0%, rgba(145, 70, 255, 0.22), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(232, 232, 0, 0.10), transparent 32%);
  box-shadow: var(--shadow);
}

.subscribers-list-card::before,
.benefits-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
}

.subscribers-list-card {
  min-height: 320px;
  padding: clamp(18px, 2.2vw, 32px);
}

.subscribers-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.subscribers-kicker,
.benefits-head span {
  display: block;
  color: rgba(232, 232, 0, 0.90);
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);
  letter-spacing: 0.16em;
  line-height: 1;
}

.subscribers-head h2,
.benefits-head h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.52);
}

.subscribers-channel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.92), rgba(89, 38, 172, 0.90));
  box-shadow: 0 12px 30px rgba(145, 70, 255, 0.22);
  transition: transform 160ms ease, filter 160ms ease;
}

.subscribers-channel:hover,
.subscribers-channel:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.subscribers-note {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
}

.subscribers-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.subscriber-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.subscriber-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #050508;
  background: var(--yellow);
  font-size: 0.9rem;
  line-height: 1;
}

.subscriber-main {
  min-width: 0;
}

.subscriber-name {
  display: block;
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-meta {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.subscriber-tier {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(145, 70, 255, 0.36);
  background: rgba(145, 70, 255, 0.16);
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.subscribers-empty {
  padding: 20px;
  color: rgba(255, 255, 255, 0.70);
  border: 1px dashed rgba(255, 255, 255, 0.20);
  background: rgba(0, 0, 0, 0.28);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
}

.benefits-panel {
  padding: clamp(18px, 2.2vw, 30px);
}

.benefits-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.benefits-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benefit-card {
  position: relative;
  min-height: 230px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 80% 0%, rgba(145, 70, 255, 0.24), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.22);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(232, 232, 0, 0.20), transparent 36%, rgba(145, 70, 255, 0.22));
  opacity: 0;
  transition: opacity 160ms ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 232, 0, 0.44);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-number {
  position: absolute;
  top: 16px;
  left: 16px;
  color: rgba(232, 232, 0, 0.86);
  font-size: 1.05rem;
  line-height: 1;
}

.benefit-card h3 {
  position: relative;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  line-height: 0.95;
}

.benefit-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}

@media (max-width: 1120px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .subscribers-head {
    display: grid;
  }

  .subscribers-channel {
    width: fit-content;
  }

  .subscriber-row {
    grid-template-columns: auto 1fr;
  }

  .subscriber-tier {
    grid-column: 2;
    width: fit-content;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 190px;
  }
}


/* Abbonati v13: lista in formazione su campi da calcio */
.subscribers-board {
  gap: 22px;
}

.subscribers-list-card {
  padding: clamp(16px, 2vw, 28px);
}

.subscribers-list.subscriber-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.subscriber-pitch-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.08);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.subscriber-pitch-head {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.subscriber-pitch-head span {
  display: inline-flex;
  padding: 7px 9px;
  color: #050508;
  background: rgba(232, 232, 0, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.22);
  font-size: clamp(0.66rem, 0.85vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.subscriber-pitch-head strong {
  display: inline-flex;
  padding: 7px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(0.66rem, 0.85vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: right;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.subscriber-pitch {
  position: relative;
  min-height: 660px;
  aspect-ratio: 675 / 945;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.08)),
    url('../assets/subscriber-field.png');
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.subscriber-pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(232,232,0,0.08), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.16));
}

.player-token {
  position: absolute;
  z-index: 2;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  width: clamp(98px, 9.2vw, 136px);
  min-height: 52px;
  padding: 6px 7px 6px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(6, 14, 10, 0.86), rgba(3, 8, 6, 0.76)),
    radial-gradient(circle at 50% 0%, rgba(145, 70, 255, 0.22), transparent 72%);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.player-token:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(232, 232, 0, 0.70);
  filter: brightness(1.08);
  z-index: 8;
}

.player-role {
  display: inline-flex;
  justify-content: center;
  min-width: 32px;
  margin-bottom: 4px;
  padding: 3px 6px;
  color: #050508;
  background: var(--yellow);
  border-radius: 999px;
  font-size: clamp(0.55rem, 0.72vw, 0.68rem);
  line-height: 1;
  letter-spacing: 0.05em;
}

.player-name {
  display: block;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(0.54rem, 0.78vw, 0.74rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.player-info {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.70);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.46rem, 0.62vw, 0.58rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: none;
}


.player-token.name-medium .player-name {
  font-size: clamp(0.50rem, 0.70vw, 0.66rem);
  letter-spacing: 0;
}

.player-token.name-long .player-name {
  font-size: clamp(0.46rem, 0.62vw, 0.58rem);
  letter-spacing: -0.01em;
}

.player-token.name-xl .player-name {
  font-size: clamp(0.40rem, 0.56vw, 0.52rem);
  letter-spacing: -0.018em;
  line-height: 0.95;
}

.player-token.tier-3,
.player-token.tier-2 {
  background:
    linear-gradient(180deg, rgba(42, 22, 4, 0.92), rgba(16, 8, 2, 0.78)),
    radial-gradient(circle at 50% 0%, rgba(255, 207, 64, 0.34), transparent 72%);
  border-color: rgba(255, 207, 64, 0.36);
}

.player-token.is-founder::after {
  content: "★";
  position: absolute;
  right: -7px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #050508;
  background: var(--yellow);
  border: 1px solid rgba(0,0,0,0.24);
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
}

.subscriber-legend {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.subscriber-legend span {
  display: inline-flex;
  padding: 6px 8px;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.54);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.62rem, 0.8vw, 0.76rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
}

@media (max-width: 980px) {
  .subscriber-pitch {
    min-height: 760px;
  }

  .player-token {
    width: clamp(78px, 18vw, 118px);
  }
}

@media (max-width: 540px) {
  .subscriber-pitch {
    min-height: 640px;
  }

  .subscriber-pitch-head {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .player-token {
    width: 74px;
    min-height: 46px;
    padding: 5px 5px 4px;
  }

  .player-role {
    min-width: 26px;
    padding: 2px 5px;
  }

  .player-name {
    font-size: 0.58rem;
  }

  .player-info {
    font-size: 0.5rem;
  }
}


/* Header più compatto: evita che le sezioni del menu vengano tagliate. */
@media (max-width: 1100px) {
  .main-tabs {
    gap: 18px;
    padding-inline: 12px;
  }

  .tab {
    font-size: 0.84rem;
    letter-spacing: 0.075em;
  }
}

@media (max-width: 760px) {
  .top-hud {
    min-height: auto;
  }

  .main-tabs {
    min-height: 56px;
    gap: 14px;
    padding: 10px 8px 12px;
  }

  .tab {
    font-size: 0.78rem;
  }
}

/* Override v15: header/menu compatto su tutte le dimensioni. */
.main-tabs {
  min-height: 64px;
  height: auto;
  align-items: center;
  gap: clamp(10px, 2.7vw, 34px);
  padding: 12px 18px 14px;
  overflow-x: auto;
  overflow-y: visible;
}

.tab {
  flex: 0 0 auto;
  padding: 8px 0 10px;
  font-size: clamp(0.82rem, 1.28vw, 1.18rem);
  line-height: 1.08;
  letter-spacing: 0.095em;
  white-space: nowrap;
}

.tab::after {
  bottom: 0;
}

/* === FUT v17: Vetrina carte casuali === */
.fut-card-showcase-tile {
  overflow: hidden;
}

.fut-showcase-content {
  justify-content: space-between;
}

.fut-random-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1vw, 12px);
  width: min(560px, 96%);
  margin-top: auto;
  padding-top: 8px;
}

.fut-random-card,
.fut-card-placeholder {
  position: relative;
  display: block;
  min-height: clamp(92px, 16vh, 150px);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.fut-card-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.38);
}

.fut-random-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.05);
}

.fut-random-card::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.fut-random-card-meta {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.90);
}

.fut-random-card-meta strong {
  font-size: clamp(0.58rem, 0.9vw, 0.78rem);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fut-random-card-meta small {
  font-size: clamp(0.50rem, 0.75vw, 0.64rem);
  line-height: 1.1;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fut-random-card.is-broken {
  display: none;
}

.fut-cards-error {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
}

.fut-card-showcase-tile:hover .fut-random-card,
.fut-card-showcase-tile.is-selected .fut-random-card,
.fut-card-showcase-tile:focus-visible .fut-random-card {
  border-color: rgba(0, 0, 0, 0.42);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

@media (max-width: 720px) {
  .fut-random-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fut-random-card,
  .fut-card-placeholder {
    min-height: 118px;
  }
}


/* === FUT v18: box separati e vetrina carte senza sovrapposizioni === */
.fut-tiles {
  grid-auto-rows: clamp(230px, 28vh, 310px);
  gap: 10px;
  align-items: stretch;
}

.fut-tiles .fut-tile {
  min-height: 0;
  height: 100%;
}

.fut-tile .tile-content {
  min-height: 100%;
  gap: 7px;
  padding: clamp(16px, 1.8vw, 24px);
}

.fut-tile .tile-title {
  font-size: clamp(1.35rem, 2.45vw, 3.25rem);
  line-height: .96;
  overflow-wrap: anywhere;
}

.fut-card-showcase-tile .tile-content {
  position: relative;
  justify-content: flex-end;
  padding-right: clamp(210px, 43%, 470px);
}

.fut-card-showcase-tile .tile-title {
  max-width: 100%;
  font-size: clamp(1.25rem, 2.05vw, 2.75rem);
}

.fut-card-showcase-tile .fut-subtitle {
  max-width: 100%;
}

.fut-card-showcase-tile .fut-random-cards {
  position: absolute;
  right: clamp(14px, 1.8vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: min(40%, 420px);
  height: min(78%, 245px);
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: clamp(6px, .8vw, 10px);
}

.fut-card-showcase-tile .fut-random-card,
.fut-card-showcase-tile .fut-card-placeholder {
  min-height: 0;
  height: 100%;
  border-radius: 10px;
}

.fut-card-showcase-tile .fut-random-card-meta {
  left: 6px;
  right: 6px;
  bottom: 6px;
}

.fut-card-showcase-tile .fut-random-card-meta strong {
  font-size: clamp(.52rem, .72vw, .68rem);
}

.fut-card-showcase-tile .fut-random-card-meta small {
  font-size: clamp(.46rem, .62vw, .58rem);
}

@media (max-width: 980px) {
  .fut-tiles {
    grid-auto-rows: auto;
  }

  .fut-tiles .fut-tile {
    min-height: clamp(220px, 33vh, 320px);
  }
}

@media (max-width: 760px) {
  .fut-card-showcase-tile .tile-content {
    padding-right: clamp(16px, 1.8vw, 24px);
    padding-bottom: clamp(142px, 33vw, 185px);
  }

  .fut-card-showcase-tile .fut-random-cards {
    left: clamp(16px, 1.8vw, 24px);
    right: clamp(16px, 1.8vw, 24px);
    top: auto;
    bottom: clamp(14px, 1.8vw, 24px);
    transform: none;
    width: auto;
    height: clamp(110px, 27vw, 150px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
}

@media (max-width: 520px) {
  .fut-card-showcase-tile .fut-random-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 210px;
  }

  .fut-card-showcase-tile .tile-content {
    padding-bottom: 250px;
  }
}

/* === FUT v19: vetrina carte libera, fuori dai box === */
.fut-panel {
  overflow: visible;
  align-content: start;
}

.fut-intro-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 64px);
  min-height: clamp(250px, 35vh, 420px);
  margin: clamp(-8px, -1vw, 0px) 0 clamp(14px, 2vw, 28px);
  padding: 0 clamp(10px, 2vw, 30px);
  overflow: visible;
  filter: drop-shadow(0 26px 45px rgba(0, 0, 0, 0.50));
}

.fut-intro-copy {
  position: relative;
  z-index: 4;
  flex: 0 0 min(44%, 560px);
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.82);
}

.fut-intro-copy span {
  display: block;
  color: var(--yellow);
  font-size: clamp(2.35rem, 5.2vw, 7rem);
  line-height: 0.90;
  letter-spacing: 0.05em;
}

.fut-intro-copy strong {
  display: block;
  margin-top: clamp(8px, 1.2vw, 18px);
  color: #ffffff;
  font-size: clamp(1.05rem, 2.05vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: 0.07em;
}

.fut-card-stack {
  position: relative;
  z-index: 3;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: visible;
  pointer-events: none;
}

.fut-card-stack .fut-random-card,
.fut-card-stack .fut-card-placeholder {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(132px, 13.2vw, 230px);
  height: clamp(190px, 25.5vw, 365px);
  min-height: 0;
  margin-left: clamp(-46px, -3.1vw, -20px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fut-card-stack .fut-random-card:first-child,
.fut-card-stack .fut-card-placeholder:first-child {
  margin-left: 0;
}

.fut-card-stack .fut-random-card:nth-child(1) { transform: rotate(-8deg) translateY(16px); z-index: 1; }
.fut-card-stack .fut-random-card:nth-child(2) { transform: rotate(-2deg) translateY(-8px); z-index: 3; }
.fut-card-stack .fut-random-card:nth-child(3) { transform: rotate(5deg) translateY(12px); z-index: 2; }
.fut-card-stack .fut-random-card:nth-child(4) { transform: rotate(10deg) translateY(-4px); z-index: 1; }

.fut-card-stack .fut-card-placeholder {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.24);
}

.fut-card-stack .fut-random-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  opacity: 1;
  filter:
    saturate(1.08)
    contrast(1.05)
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.55));
}

.fut-card-stack .fut-random-card::after,
.fut-card-stack .fut-random-card-meta {
  display: none;
}

.fut-card-stack .fut-cards-error {
  min-height: auto;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.50);
  border-radius: 12px;
}

.fut-tiles {
  grid-auto-rows: clamp(210px, 25vh, 290px);
}

.fut-tiles .fut-tile {
  grid-column: span 4;
}

@media (max-width: 1100px) {
  .fut-intro-showcase {
    min-height: clamp(230px, 32vh, 360px);
  }

  .fut-intro-copy {
    flex-basis: min(40%, 460px);
  }

  .fut-card-stack .fut-random-card,
  .fut-card-stack .fut-card-placeholder {
    width: clamp(112px, 15vw, 185px);
    height: clamp(165px, 28vw, 285px);
  }
}

@media (max-width: 860px) {
  .fut-intro-showcase {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: 14px;
    padding: 0 12px;
  }

  .fut-intro-copy {
    flex: none;
    max-width: 100%;
  }

  .fut-card-stack {
    width: 100% !important;
    justify-content: center;
    padding: 8px 0 16px;
  }

  .fut-card-stack .fut-random-card,
  .fut-card-stack .fut-card-placeholder {
    width: clamp(92px, 24vw, 150px);
    height: clamp(140px, 36vw, 225px);
    margin-left: clamp(-34px, -7vw, -18px);
  }

  .fut-tiles .fut-tile {
    grid-column: span 12;
  }
}

@media (max-width: 520px) {
  .fut-intro-copy span {
    font-size: clamp(2rem, 13vw, 4.4rem);
  }

  .fut-intro-copy strong {
    font-size: clamp(0.95rem, 5vw, 1.5rem);
  }

  .fut-card-stack .fut-random-card,
  .fut-card-stack .fut-card-placeholder {
    width: clamp(78px, 25vw, 112px);
    height: clamp(120px, 39vw, 170px);
    margin-left: clamp(-28px, -8vw, -15px);
  }
}

/* Abbonati v20: alert scadenza solo per Prime */
.player-token.is-prime-expiring,
.player-token.is-prime-expired {
  border-color: rgba(255, 42, 42, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 42, 42, 0.58),
    0 0 20px rgba(255, 42, 42, 0.46),
    0 14px 32px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.player-token.is-prime-expired {
  filter: grayscale(0.18) brightness(0.92);
}

.player-prime-alert {
  position: absolute;
  z-index: 4;
  top: -9px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #ffffff;
  background: #ff2020;
  border: 2px solid rgba(255,255,255,0.92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 14px rgba(255, 32, 32, 0.72);
}

.player-expiry {
  display: block;
  margin: 3px auto 0;
  padding: 2px 4px;
  width: max-content;
  max-width: 100%;
  color: #fff;
  background: rgba(255, 32, 32, 0.82);
  border: 1px solid rgba(255,255,255,0.20);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.42rem, 0.55vw, 0.52rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================================================
   CHAMPIONS LEAGUE — LOGHI HQ REMOTI
   Le immagini arrivano dalla sorgente Wikimedia/Wikipedia e
   vengono visualizzate come stemmi, senza crop o sfondo bianco.
   ========================================================= */
.world-cup-tile .flag-media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(18px, 2.4vw, 34px) clamp(22px, 3vw, 48px);
  background-image: none !important;
  opacity: 1;
  transform: none;
  filter: none;
  overflow: hidden;
}

.world-cup-tile .flag-media::after {
  content: "";
  position: absolute;
  right: clamp(16px, 2.2vw, 36px);
  top: 50%;
  width: clamp(128px, 19vw, 250px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(255,255,255,0.14), transparent 32%),
    radial-gradient(circle, rgba(73,108,255,0.17), rgba(31,26,105,0.08) 54%, transparent 72%);
  border: 1px solid rgba(167, 187, 255, 0.12);
  box-shadow: inset 0 0 40px rgba(93, 100, 255, 0.10), 0 16px 52px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.world-cup-tile .champions-club-logo {
  position: relative;
  z-index: 1;
  width: clamp(110px, 16vw, 205px);
  height: clamp(110px, 16vw, 205px);
  max-width: 42%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, 0.48));
  transition: transform 260ms ease, filter 260ms ease;
}

.world-cup-tile:hover .champions-club-logo,
.world-cup-tile.is-selected .champions-club-logo,
.world-cup-tile:focus-visible .champions-club-logo {
  transform: scale(1.055);
  filter: drop-shadow(0 17px 24px rgba(0, 0, 0, 0.58));
}

.world-cup-tile:hover .flag-media,
.world-cup-tile.is-selected .flag-media,
.world-cup-tile:focus-visible .flag-media {
  opacity: 1;
  transform: none;
  filter: none;
}

.world-cup-tile .flag-media.is-logo-loading::before,
.world-cup-tile .flag-media.is-logo-fallback::before {
  content: attr(data-initials);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(100px, 14vw, 174px);
  height: clamp(100px, 14vw, 174px);
  border-radius: 50%;
  border: 1px solid rgba(188, 202, 255, 0.25);
  background: linear-gradient(145deg, rgba(79, 104, 255, 0.54), rgba(25, 24, 83, 0.78));
  color: rgba(255,255,255,0.92);
  font-family: "InlandersDemo", "Arial Black", Impact, sans-serif;
  font-size: clamp(1.35rem, 3vw, 3.25rem);
  letter-spacing: 0.05em;
  text-shadow: 0 3px 12px rgba(0,0,0,0.44);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28), inset 0 0 30px rgba(255,255,255,0.06);
}

.world-cup-tile .flag-media.is-logo-loading::before {
  opacity: 0.45;
  animation: championsLogoPulse 1.1s ease-in-out infinite alternate;
}

.world-cup-tile .flag-media.is-logo-loading .champions-club-logo {
  display: none;
}

@keyframes championsLogoPulse {
  from { transform: scale(0.97); opacity: 0.30; }
  to   { transform: scale(1.02); opacity: 0.60; }
}

@media (max-width: 720px) {
  .world-cup-tile .flag-media {
    padding: 15px 18px;
  }

  .world-cup-tile .champions-club-logo {
    width: clamp(88px, 25vw, 132px);
    height: clamp(88px, 25vw, 132px);
    max-width: 38%;
  }

  .world-cup-tile .flag-media::after {
    width: clamp(108px, 31vw, 158px);
    right: 10px;
  }
}


/* =========================================================
   CHAMPIONS LEAGUE — WALLPAPER LOCALI NEI QUADRANTI
   Usa due immagini 1800x600 come sfondo dei box.
   ========================================================= */
.world-cup-tile .flag-media {
  display: block;
  padding: 0;
  background-image: none;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  opacity: 0.96;
  transform: scale(1);
  filter: saturate(1.03) contrast(1.02) brightness(0.98);
  overflow: hidden;
}

.world-cup-tile .flag-media::after {
  display: none;
}

.world-cup-tile .flag-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 14, 0.88) 0%, rgba(2, 8, 18, 0.76) 28%, rgba(4, 12, 28, 0.42) 56%, rgba(4, 8, 16, 0.16) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.07), transparent 28%, transparent 72%, rgba(0,0,0,0.18));
  z-index: 0;
  pointer-events: none;
}

.world-cup-tile:hover .flag-media,
.world-cup-tile.is-selected .flag-media,
.world-cup-tile:focus-visible .flag-media {
  opacity: 1;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.06) brightness(1.02);
}

.world-cup-tile .champions-club-logo {
  display: none !important;
}

.world-cup-tile .tile-bg {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 58%);
}

.world-cup-tile .tile-content {
  position: relative;
  z-index: 1;
}

.world-flag-label {
  background: rgba(2, 8, 18, 0.56);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}


/* =========================================================
   CHAMPIONS WALLPAPER FIX v2
   Isola la sezione Champions dagli hover generici delle tile.
   ========================================================= */
.world-cup-tile .flag-media {
  background-color: #071439 !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: saturate(1.04) contrast(1.03) brightness(1.02) !important;
}

.world-cup-tile .flag-media::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 20, 0.62) 0%, rgba(2, 8, 22, 0.40) 35%, rgba(2, 9, 24, 0.13) 72%, rgba(2, 6, 16, 0.06) 100%) !important;
}

/* Disattiva il grande velo giallo ereditato dalle tile generiche. */
.world-cup-tile::before {
  background: transparent !important;
  opacity: 0 !important;
}

.world-cup-tile::after {
  background: linear-gradient(0deg, rgba(0,0,0,0.46), transparent 72%) !important;
  opacity: 0.52 !important;
}

.world-cup-tile .tile-bg {
  background: linear-gradient(90deg, rgba(1,5,14,0.54) 0%, rgba(1,5,14,0.26) 44%, rgba(1,5,14,0.06) 76%) !important;
  opacity: 1 !important;
}

.world-cup-tile:hover .tile-bg,
.world-cup-tile.is-selected .tile-bg,
.world-cup-tile:focus-visible .tile-bg {
  opacity: 0.88 !important;
}

.world-cup-tile:hover .flag-media,
.world-cup-tile.is-selected .flag-media,
.world-cup-tile:focus-visible .flag-media {
  opacity: 1 !important;
  transform: scale(1.025) !important;
  filter: saturate(1.09) contrast(1.05) brightness(1.07) !important;
}

/* I testi restano bianchi anche in hover/selezione. */
.world-cup-tile .tile-kicker,
.world-cup-tile .tile-title,
.world-cup-tile .world-flag-label,
.world-cup-tile:hover .tile-kicker,
.world-cup-tile:hover .tile-title,
.world-cup-tile:hover .world-flag-label,
.world-cup-tile.is-selected .tile-kicker,
.world-cup-tile.is-selected .tile-title,
.world-cup-tile.is-selected .world-flag-label,
.world-cup-tile:focus-visible .tile-kicker,
.world-cup-tile:focus-visible .tile-title,
.world-cup-tile:focus-visible .world-flag-label {
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.72) !important;
}

.world-cup-tile:hover,
.world-cup-tile.is-selected,
.world-cup-tile:focus-visible {
  border-color: rgba(111, 157, 255, 0.96) !important;
  box-shadow:
    0 0 0 2px rgba(94, 132, 255, 0.20),
    0 18px 44px rgba(0,0,0,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.10) !important;
}


/* =========================================================
   SFONDO GLOBALE CHAMPIONS — immagine fornita dall'utente
   File sorgente: assets/champions-global-background.webp
   Dimensioni originali: 1672x941 px
   ========================================================= */


/* =========================================================
   MOBILE UX PASS — HOME / CHAMPIONS LEAGUE
   ========================================================= */
@media (max-width: 760px) {
  .app-shell {
    width: calc(100% - 12px);
    padding: max(10px, env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom));
  }

  .top-hud {
    min-height: 66px;
    gap: 10px;
    padding: 6px 8px;
  }

  .main-tabs {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 6px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-tabs::-webkit-scrollbar { display: none; }
  .main-tabs .tab {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .world-cup-section-title {
    padding-inline: 4px;
    margin-bottom: 6px;
  }

  .world-cup-section-title h1 {
    font-size: clamp(2rem, 11.5vw, 3.3rem);
    line-height: .92;
  }

  .world-cup-tiles {
    gap: 7px;
    grid-auto-rows: minmax(148px, auto);
  }

  .world-cup-tile,
  .world-cup-tile.tile-large {
    min-height: 148px;
  }

  .world-cup-tile .tile-content {
    padding: 15px 14px;
    gap: 5px;
  }

  .world-cup-tile .tile-title {
    max-width: 94%;
    font-size: clamp(1.6rem, 9.5vw, 2.55rem);
    line-height: .94;
  }

  .world-cup-tile .tile-kicker {
    font-size: .68rem;
  }

  .world-flag-label {
    max-width: 86%;
    padding: 5px 7px;
    font-size: .66rem;
  }

  .world-cup-tile .flag-media {
    background-position: center center !important;
  }
}

@media (max-width: 390px) {
  .app-shell { width: calc(100% - 8px); }
  .world-cup-tile .tile-title { font-size: clamp(1.5rem, 9.2vw, 2.25rem); }
}


/* =========================================================
   SFONDI MODALITÀ — FIX
   Default: assets/background.webp
   Champions League: assets/champions-global-background.webp
   ========================================================= */
body:not(.is-world-cup-active) .site-bg {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.92), rgba(1, 6, 7, 0.50) 45%, rgba(1, 4, 5, 0.88)),
    linear-gradient(0deg, rgba(3, 7, 6, 0.78), rgba(3, 7, 6, 0.14) 43%, rgba(3, 7, 6, 0.88)),
    url("../assets/background.webp") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.02);
}

body.is-world-cup-active .site-bg {
  background:
    radial-gradient(circle at 50% 18%, rgba(109, 132, 255, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(1, 5, 16, 0.62), rgba(1, 7, 20, 0.22) 42%, rgba(1, 5, 16, 0.68)),
    linear-gradient(180deg, rgba(4, 8, 32, 0.26), rgba(4, 8, 32, 0.06) 46%, rgba(4, 8, 32, 0.40)),
    url("../assets/champions-global-background.webp") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.06) brightness(0.94);
  transform: scale(1.03);
}


/* =========================================================
   FUT — SPACCHETTO: titolo sempre su una sola riga
   ========================================================= */
.fut-tile[data-title="Spacchetto"] .tile-title {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  font-size: clamp(1.15rem, 2.05vw, 2.85rem);
  letter-spacing: 0.005em;
}

@media (max-width: 1100px) and (min-width: 861px) {
  .fut-tile[data-title="Spacchetto"] .tile-title {
    font-size: clamp(1.2rem, 3.5vw, 2.6rem);
  }
}

@media (max-width: 860px) {
  .fut-tile[data-title="Spacchetto"] .tile-title {
    font-size: clamp(1.65rem, 9vw, 3.1rem);
  }
}


/* =========================================================
   FUT — HALL OF FAME + GRIGLIA 2x2
   Quattro riquadri equilibrati su desktop, uno per riga mobile.
   ========================================================= */
@media (min-width: 861px) {
  .fut-tiles .fut-tile {
    grid-column: span 6;
  }
}

.fut-tile[data-title="Hall Of Fame"] .tile-title {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  font-size: clamp(1.25rem, 2.35vw, 3.1rem);
}

.fut-tile[data-title="Hall Of Fame"] .tile-media img {
  object-position: center 46%;
}

@media (max-width: 860px) {
  .fut-tile[data-title="Hall Of Fame"] .tile-title {
    font-size: clamp(1.55rem, 8.6vw, 3rem);
  }
}

@media (max-width: 390px) {
  .fut-tile[data-title="Hall Of Fame"] .tile-title {
    font-size: clamp(1.4rem, 8vw, 2.55rem);
  }
}


/* Hall Of Fame — sfondo dedicato */
.hall-of-fame-tile .tile-media img {
  object-position: center center;
  opacity: 0.94;
  filter: saturate(1.08) contrast(1.08) brightness(0.90);
}

.hall-of-fame-tile .tile-bg {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.42), transparent 62%);
}

@media (max-width: 760px) {
  .hall-of-fame-tile .tile-media img {
    object-position: 52% center;
  }
}
