:root {
  --ink: #070b14;
  --navy: #0b1424;
  --text: #f4f1ec;
  --muted: rgba(244, 241, 236, .68);
  --line: rgba(255, 255, 255, .16);
  --ball: #e6f23a;
  --ball-ink: #1a1d05;
  --clay: #d4622a;
  --radius: 28px;
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* vidre */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .03) 100%);
  --glass-blur: blur(22px) saturate(160%);
  --glass-edge: rgba(255, 255, 255, .22);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 30px 60px -25px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ball);
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- PISTA DE FONS ---------- */
/* altura fixa (lvh): a mòbil no es redimensiona quan s'amaga la barra del navegador */
.court { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; background: var(--navy); }
.court__img {
  position: absolute; inset: -6%;
  background: url("img/fondo-pista-v3.jpg") center / cover no-repeat;
  background-image: image-set(url("img/fondo-pista-v3.webp") type("image/webp"), url("img/fondo-pista-v3.jpg") type("image/jpeg"));
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
/* s'enfosqueix a mesura que baixes (--dim el posa el JS) */
.court__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(7, 11, 20, .75) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, .1) 30%, rgba(7, 11, 20, .35) 100%),
    rgba(7, 11, 20, var(--dim, 0));
}

/* ---------- VIDRE ---------- */
.glass, .team-card {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
/* reflex que segueix el ratolí */
.glass::before, .team-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgba(255, 255, 255, .16), transparent 45%);
  opacity: var(--glow, .6);
  transition: opacity .3s;
}
.glass:hover, .team-card:hover { --glow: 1; }
.glass--warm { background: linear-gradient(135deg, rgba(255, 170, 120, .2), rgba(212, 98, 42, .1) 50%, rgba(80, 25, 5, .2)); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 14px; z-index: 30;
  width: min(1200px, calc(100% - 32px)); margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .6rem .55rem .9rem;
  border-radius: 999px;
}
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; }
.nav__brand em { font-style: normal; color: var(--ball); }
.nav__links { display: flex; gap: .25rem; }
.nav__links a { text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--muted); padding: .55rem 1rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .1); }

/* ---------- BOTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ball); color: var(--ball-ink); box-shadow: 0 10px 30px -10px rgba(230, 242, 58, .7); }
.btn--glass {
  color: var(--text);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); }

/* ---------- HERO ---------- */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(16px, 4vw, 48px) 0;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center;
  min-height: calc(100vh - 80px);
  align-content: center;
}
.hero__panel { padding: clamp(1.8rem, 4vw, 3.2rem); }
.hero__title { font-size: clamp(4.5rem, 12vw, 9rem); line-height: .9; text-shadow: 0 8px 40px rgba(0, 0, 0, .35); }
.hero__title span { color: var(--ball); display: block; }
.hero__lead { max-width: 32rem; font-size: 1.08rem; color: rgba(244, 241, 236, .85); margin: 1.4rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__season { margin: 1.8rem 0 0; color: var(--muted); font-size: .9rem; letter-spacing: .05em; }
.hero__season strong { color: var(--text); }

.hero__badge { justify-self: center; width: min(100%, 380px); perspective: 900px; }
.hero__disc {
  aspect-ratio: 1; border-radius: 50%; padding: 9%;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  animation: float 7s ease-in-out infinite;
}
.hero__disc img { width: 100%; border-radius: 50%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@keyframes float { 50% { translate: 0 -12px; } }

/* partit destacat */
.match {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-radius: 22px;
  border-color: rgba(230, 242, 58, .45);
}
.match__tag { background: var(--ball); color: var(--ball-ink); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .75rem; border-radius: 10px; transform: rotate(-2deg); }
.match__teams { display: flex; align-items: center; justify-content: center; gap: 1.2rem; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; text-align: center; }
.match__vs { color: var(--ball); font-weight: 400; font-style: italic; }
.match__meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .85rem; color: var(--muted); }
.match__meta span:first-child { color: var(--text); font-weight: 700; }

/* ---------- SECCIONS ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(16px, 4vw, 48px) 0; max-width: 1200px; margin: 0 auto; }
.section__head { max-width: 40rem; margin-bottom: 2rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
.section__lead { color: rgba(244, 241, 236, .82); font-size: 1.05rem; margin: 1rem 0 0; }

/* targetes d'equip */
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.team-card {
  overflow: hidden; text-align: left; cursor: pointer;
  padding: 1.4rem 1.3rem 1.3rem; min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 24px;
  color: var(--text); font: inherit;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.team-card::after {
  content: ""; position: absolute; right: -36px; bottom: -36px; width: 150px; height: 150px; z-index: -1;
  background: url("img/logo-wolf.png") center / contain no-repeat; opacity: .12;
  transition: opacity .3s, transform .3s;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .4); }
.team-card:hover::after { opacity: .22; transform: scale(1.08) rotate(-4deg); }
.team-card.is-active {
  border-color: var(--ball);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--ball), 0 20px 50px -15px rgba(230, 242, 58, .45);
}
.team-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.team-card__name { font-family: var(--display); font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1; text-transform: uppercase; margin: .35rem 0 auto; }
.team-card.is-active .team-card__name { color: var(--ball); }
.team-card__div { display: inline-flex; align-self: flex-start; margin-top: 1rem; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .15); }
.team-card__div--top { background: var(--ball); color: var(--ball-ink); border-color: transparent; }

/* fitxa d'equip */
.team-detail { margin-top: 1.25rem; padding: clamp(1.4rem, 3vw, 2.4rem); }
.team-detail__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-end; }
.team-detail__lema { color: var(--muted); margin: .7rem 0 0; }
.team-detail__facts { display: flex; gap: 2rem; margin: 0; }
.team-detail__facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.team-detail__facts dd { margin: .25rem 0 0; font-weight: 700; font-size: 1.05rem; }

.tabs { display: flex; gap: .3rem; margin: 2rem 0 1.25rem; padding: .3rem; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: rgba(255, 255, 255, .92); color: var(--ink); }

.empty {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.6rem; border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: 20px; color: var(--muted);
}
.empty__ball { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ball); position: relative; box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .12), 0 0 25px rgba(230, 242, 58, .4); }
.empty__ball::before, .empty__ball::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 16px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.empty__ball::before { left: -9px; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.empty__ball::after { right: -9px; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.empty strong { color: var(--text); display: block; }

.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .65rem; list-style: none; padding: 0; margin: 0; }
.players li {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 16px; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .2s, transform .2s;
}
.players li:hover { background: rgba(255, 255, 255, .13); transform: translateX(3px); }
.players__avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); color: var(--ball); font-family: var(--display); font-size: .95rem; }
.players__role { margin-left: auto; font-size: .7rem; font-weight: 800; color: var(--ball-ink); background: var(--ball); padding: .15rem .45rem; border-radius: 6px; }
.players li.is-captain { border-color: rgba(230, 242, 58, .5); background: rgba(230, 242, 58, .1); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
tr.is-us td { background: rgba(230, 242, 58, .1); font-weight: 700; }
tr.is-us td:first-child { box-shadow: inset 3px 0 0 var(--ball); }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 6px; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .1); }
.pill--home { background: rgba(230, 242, 58, .16); color: var(--ball); }
.pill--win { background: rgba(95, 224, 138, .2); color: #8ef0a8; }
.pill--loss { background: rgba(255, 107, 94, .2); color: #ff9a90; }
.fct-note { margin: .9rem 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- DIA DE PARTIT ---------- */
.matchday { padding: clamp(1.6rem, 4vw, 3rem); }
.matchday .section__lead { color: rgba(255, 228, 210, .85); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.perk { padding: 1.4rem; border-radius: 20px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .12); transition: transform .25s, background .25s; }
.perk:hover { transform: translateY(-4px); background: rgba(0, 0, 0, .3); }
.perk__title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 220, 200, .85); }
.perk__value { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.1; color: var(--ball); text-shadow: 0 0 30px rgba(230, 242, 58, .35); }
.perk__note { font-size: .9rem; color: rgba(255, 235, 222, .85); }
.djs { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.djs__label { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.djs ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.djs li { padding: .45rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(230, 242, 58, .5); font-weight: 700; font-size: .9rem; }

/* ---------- CLUB ---------- */
.club { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2.5rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem); }
.club__wolf { width: 100%; max-width: 320px; justify-self: center; opacity: .95; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.club__addr { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 1.8rem; }

/* ---------- PEU ---------- */
.footer {
  width: min(1200px, calc(100% - 32px)); margin: clamp(4rem, 9vw, 7rem) auto 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  padding: .9rem 1.3rem; border-radius: 999px; color: var(--muted); font-size: .85rem;
}
.footer__season { margin-left: auto; }

/* ---------- COMPARTIT: botons, etiquetes, diàlegs, avisos ---------- */
[hidden] { display: none !important; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.tag { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .12); color: var(--text); margin-right: .3rem; text-shadow: none; }
.tag--home { background: rgba(230, 242, 58, .16); color: var(--ball); }
.tag--cap { background: var(--ball); color: var(--ball-ink); }
.tag--ok { background: rgba(80, 220, 120, .2); color: #8ef0a8; }
.tag--warn { background: rgba(255, 107, 94, .2); color: #ff9a90; flex: none; }
/* diàlegs */
.modal { width: min(460px, calc(100% - 32px)); padding: 0; color: var(--text); margin: auto; }
.modal::backdrop { background: rgba(5, 8, 15, .6); backdrop-filter: blur(4px); }
.modal__form { display: grid; gap: .9rem; padding: 1.6rem; }
.modal h2 { font-size: 2rem; }
.modal__hint { margin: 0; color: var(--muted); font-size: .9rem; }
.modal label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.modal input, .modal select, .modal textarea {
  font: inherit; font-size: 1rem; color: var(--text); padding: .7rem .85rem; border-radius: 12px;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .18); width: 100%;
}
.modal select option { color: #111; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--ball); outline-offset: 1px; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.modal__seg { border: 0; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.modal__seg legend { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
.modal__seg label { display: flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .15); color: var(--text); cursor: pointer; }
.modal__seg input { width: auto; }
.modal__error { margin: 0; color: #ff8d82; font-weight: 600; font-size: .9rem; }
.modal__actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .3rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: .8rem 1.2rem; border-radius: 14px; font-weight: 600; animation: toast-in .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- MENÚ MÒBIL ---------- */
.nav__toggle {
  display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: var(--text);
  font-size: 1.15rem; cursor: pointer;
}

/* ---------- CALENDARI: PARTITS INDIVIDUALS ---------- */
.cal__row--open { cursor: pointer; }
.cal__row--open:hover td { background: rgba(255, 255, 255, .05); }
.cal__more { display: inline-block; color: var(--muted); font-size: .75rem; transition: transform .2s; }
.is-expanded .cal__more { transform: rotate(180deg); }
.cal__detail td { padding: .2rem .4rem 1rem; white-space: normal; }
.rubbers { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.rubbers li {
  display: grid; grid-template-columns: 4.2rem 1fr auto 1fr; gap: .7rem; align-items: center;
  padding: .5rem .75rem; border-radius: 12px; background: rgba(0, 0, 0, .22); border-left: 3px solid rgba(255, 255, 255, .2);
  font-size: .88rem;
}
.rubbers li.is-won { border-left-color: #5fe08a; }
.rubbers li.is-lost { border-left-color: #ff6b5e; }
.rubbers__kind { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rubbers__us { font-weight: 700; }
.rubbers__sets { font-family: var(--display); font-size: 1rem; letter-spacing: .04em; color: var(--ball); text-align: center; white-space: nowrap; }
.rubbers__them { color: var(--muted); text-align: right; }

/* ---------- VINE A ANIMAR ---------- */
.home-games { margin-bottom: 1.4rem; }
.home-games__title { font-family: var(--body); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 220, 200, .85); margin: 0 0 .7rem; }
.home-games__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.home-games__list li { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); }
.home-games__date { font-weight: 800; color: var(--ball); }
.home-games__date::first-letter { text-transform: uppercase; }
.home-games__team { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; line-height: 1.1; }
.home-games__rival { color: rgba(255, 235, 222, .85); font-size: .9rem; }

/* ---------- CRÒNIQUES ---------- */
.chronicles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.chronicle { padding: 1.6rem; }
.chronicle h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8rem; }
.chronicle p:not(.eyebrow) { margin: 0 0 .7rem; color: rgba(244, 241, 236, .88); }

/* ---------- HISTÒRIA ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--ball), rgba(230, 242, 58, .1)); }
.timeline__item { padding: 1.3rem 1.5rem; position: relative; }
.timeline__item::after { content: ""; position: absolute; left: -1.55rem; top: 1.6rem; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid var(--ball); }
.timeline__item--top::after { background: var(--ball); box-shadow: 0 0 18px rgba(230, 242, 58, .7); }
.timeline__season { display: inline-block; font-weight: 800; font-size: .75rem; letter-spacing: .14em; color: var(--ball); margin-bottom: .3rem; }
.timeline__item h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .4rem; }
.timeline__item p { margin: 0; color: rgba(244, 241, 236, .85); }

/* ---------- JUGA AMB NOSALTRES · PATROCINADORS ---------- */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.join__card { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.join__card .btn { margin-top: auto; }
.join__card .section__lead { margin: .8rem 0 1rem; }
.join__facts { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; }
.join__facts li::before { content: "🎾"; margin-right: .5rem; }
.tiers { display: grid; gap: .5rem; margin-bottom: 1.4rem; width: 100%; }
.tier { display: grid; gap: .1rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1); }
.tier b { color: var(--ball); }
.tier span { font-size: .88rem; color: var(--muted); }
.sponsors { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.sponsors:empty { display: none; }
.sponsor { display: grid; place-items: center; min-width: 120px; height: 64px; padding: .5rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .9); text-decoration: none; color: var(--ink); font-weight: 800; }
.sponsor img { max-height: 44px; width: auto; }
.modal__check { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.4; }
.modal__check input { width: auto; margin-top: .2rem; }
.hp { position: absolute !important; left: -9999px; }

/* ---------- APARICIÓ ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .teams .team-card { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }
.js .teams.is-in .team-card { opacity: 1; transform: none; }
.js .teams.is-in .team-card:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.js .teams.is-in .team-card:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.js .teams.is-in .team-card:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.js .teams.is-in .team-card:hover { transform: translateY(-5px); transition-delay: 0s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .teams, .perks { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .court__img {
    background-image: url("img/fondo-pista-movil-v3.jpg");
    background-image: image-set(url("img/fondo-pista-movil-v3.webp") type("image/webp"), url("img/fondo-pista-movil-v3.jpg") type("image/jpeg"));
  }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 1.5rem; gap: 1.25rem; }
  .hero__badge { order: -1; width: 52%; max-width: 210px; }
  /* a mòbil la pilota és la de la foto, al costat de la raqueta */
  .hero__panel { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .match { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .match__meta { align-items: center; }
  /* menú desplegable al mòbil */
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    flex-direction: column; gap: .2rem; padding: .5rem;
    border-radius: 20px; background: rgba(12, 18, 32, .92);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav--open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .8rem 1rem; font-size: 1rem; color: var(--text); }
  .club { grid-template-columns: 1fr; text-align: center; }
  .club .hero__cta { justify-content: center; }
  .club__wolf { max-width: 200px; }
  .footer { border-radius: 24px; justify-content: center; text-align: center; }
  .footer__season { margin-left: 0; }
}
@media (max-width: 480px) {
  :root { --radius: 24px; }
  .teams { gap: .65rem; }
  .team-card { min-height: 165px; padding: 1.1rem 1rem; }
  .team-card__name { font-size: clamp(1.7rem, 8.5vw, 2.2rem); white-space: nowrap; }
  .team-detail__facts { gap: 1.2rem; flex-wrap: wrap; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: .6rem .5rem; font-size: .85rem; }
  /* plantilla compacta: dues columnes per veure-la sencera sense fer scroll */
  .players { grid-template-columns: 1fr 1fr; gap: .35rem; }
  .rubbers li { grid-template-columns: auto 1fr auto; gap: .2rem .6rem; }
  .rubbers__them { grid-column: 2 / -1; text-align: left; font-size: .8rem; }
  .players li { gap: .4rem; padding: .3rem .45rem; border-radius: 10px; font-size: .78rem; min-width: 0; }
  .players li:hover { transform: none; }
  .players__avatar { width: 20px; height: 20px; font-size: .68rem; }
  .players__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .players__role { font-size: .6rem; padding: .05rem .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .teams .team-card { opacity: 1; transform: none; }
}
