/* ============================================================
   FOOTBALL WAVES — Design System v3 "KINETIC ZINE"
   Brutalist sport-zine: square corners, flood-inversion hovers,
   condensed ultra-black display type (Bricolage wdth axis),
   ghost numerals, hazard tape, hard offset shadows.
   Brand: #ED5555 red · #98ED73 lime (sampled from logo).
   ============================================================ */

@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/Bricolage.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* Brand — exact, sampled from logo */
  --red: #ed5555;
  --red-deep: #c93a3a;
  --lime: #98ed73;
  --lime-deep: #6ed447;

  /* Ink & paper */
  --ink: #121309;
  --ink-2: #1a1b10;
  --ink-3: #242617;
  --ink-line: #383a26;
  --ink-line-2: #4d4f35;

  --paper: #f2efe2;            /* constant: light on red/dark fills */
  --on-bright: #121309;        /* constant: dark on lime/bright fills */

  --fg: #f2efe2;
  --fg-2: #b0b09c;
  --fg-3: #7a7b66;

  --maxw: 1280px;
  --header-h: 70px;
  --bw: 2px;                               /* border weight */
  --shadow: 6px 6px 0 0 rgba(0,0,0,.9);
  --shadow-sm: 4px 4px 0 0 rgba(0,0,0,.9);

  --lime-text: #98ed73;          /* readable accent-green for numbers */
  --font: "Bricolage", system-ui, sans-serif;
  --disp: 800 1em/0.92 var(--font);

  --ease: cubic-bezier(.2,.9,.25,1);

  /* 4pt spacing scale — tight inside groups, generous between sections */
  --s-1: 8px; --s-2: 12px; --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: clamp(56px, 8vw, 96px);
}

[data-theme="light"] {
  --ink: #f2efe2;
  --ink-2: #faf8ef;
  --ink-3: #e7e2cd;
  --ink-line: #d8d2b8;
  --ink-line-2: #b9b294;
  --fg: #16170c;
  --fg-2: #585943;
  --fg-3: #8b8c72;
  --shadow: 6px 6px 0 0 rgba(18,19,9,.95);
  --shadow-sm: 4px 4px 0 0 rgba(18,19,9,.95);
  --lime-text: #3c8c18;
}

/* ============================================================ BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.45;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* print grain — soft-light keeps brand colors vivid */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .45; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; color: inherit; }
svg { display: block; }
h1, h2, h3, h4 { line-height: .92; letter-spacing: -.025em; font-weight: 800; }

::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--ink-line-2); border: 3px solid var(--ink); }
::-webkit-scrollbar-track { background: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* View transitions between routes */
::view-transition-old(root) { animation: vt-out .14s ease-in both; }
::view-transition-new(root) { animation: vt-in .2s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ============================================================ MOTIFS */
/* sunburst (logo mark) */
.burst {
  aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(var(--lime) 0deg 7deg, transparent 7deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%);
  mask: radial-gradient(circle, transparent 34%, #000 35%);
}
.burst.red { background: repeating-conic-gradient(var(--red) 0deg 7deg, transparent 7deg 15deg); }
.burst.spin { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hazard tape divider */
.tape {
  height: 14px; border-block: var(--bw) solid var(--fg);
  background: repeating-linear-gradient(-45deg, var(--lime) 0 16px, transparent 16px 32px);
}
.tape.red { background: repeating-linear-gradient(-45deg, var(--red) 0 16px, transparent 16px 32px); }

/* ghost display text (outline) */
.ghost {
  font-stretch: 78%; font-weight: 900; text-transform: uppercase; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-line-2);
  user-select: none; pointer-events: none; letter-spacing: -.02em;
}

/* ============================================================ LAYOUT */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s-7) 0; position: relative; }
.section + .section { padding-top: 0; }

/* zine section head: number + rule + title */
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lead { margin-top: var(--s-3); }
.kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-2);
  font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2);
}
.kicker .no { color: var(--red); font-weight: 900; letter-spacing: 0; }
.kicker::after { content: ""; flex: 1; height: var(--bw); background: var(--ink-line); }
.kicker .mark { width: 14px; height: 14px; flex-shrink: 0;
  background: repeating-conic-gradient(var(--lime) 0deg 9deg, transparent 9deg 18deg);
  border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 28%, #000 30%); mask: radial-gradient(circle, transparent 28%, #000 30%); }

.title-xl { font-size: clamp(52px, 11vw, 148px); font-weight: 900; font-stretch: 78%; letter-spacing: -.02em; line-height: .84; text-transform: uppercase; }
.title-lg { font-size: clamp(36px, 6vw, 76px); font-weight: 900; font-stretch: 80%; letter-spacing: -.02em; line-height: .88; text-transform: uppercase; }
.title-md { font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--fg-2); font-size: clamp(16px, 1.7vw, 18px); max-width: 58ch; font-weight: 500; }

.text-red { color: var(--red); }
.text-lime, .text-green { color: var(--lime); }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ============================================================ HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 19, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(242, 239, 226, 0.08);
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}
[data-theme="light"] .site-header {
  background: rgba(242, 239, 242, 0.85);
  border-bottom-color: rgba(22, 23, 12, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav a, .nav-trigger {
  padding: 8px 16px; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--fg-2); white-space: nowrap; text-transform: uppercase;
  background: transparent; border: none; border-radius: 999px;
  transition: all 0.25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav-trigger:hover {
  color: var(--fg);
  background: rgba(242, 239, 226, 0.06);
}
[data-theme="light"] .nav a:hover, [data-theme="light"] .nav-trigger:hover {
  background: rgba(22, 23, 12, 0.04);
}
.nav a.active, .nav-trigger.active {
  color: var(--red);
  background: rgba(237, 85, 85, 0.08);
  font-weight: 800;
}
[data-theme="light"] .nav a.active, [data-theme="light"] .nav-trigger.active {
  color: var(--red);
  background: rgba(237, 85, 85, 0.06);
}
.nav-group { position: relative; }
.nav-trigger .caret { display: inline-flex; transition: transform .15s; }
.nav-trigger .caret svg { width: 12px; height: 12px; }
.nav-group:hover .caret, .nav-group.open .caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; right: 0; min-width: 220px;
  background: var(--ink-2); border: var(--bw) solid var(--fg);
  display: none; flex-direction: column; z-index: 130; box-shadow: var(--shadow);
}
.nav-group:hover .nav-menu, .nav-group.open .nav-menu { display: flex; }
.nav-menu a { padding: 13px 15px; border-bottom: 1px solid var(--ink-line); }
.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover { background: var(--lime); color: var(--on-bright); }
.nav-menu a.active { background: var(--red); color: var(--paper); }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 900; letter-spacing: .12em;
  background: var(--red); color: var(--paper); text-transform: uppercase;
  border-radius: 999px; transition: .1s;
}
.live-badge:hover { background: var(--paper); color: var(--red); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent;
  color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px; flex-shrink: 0; transition: all 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--fg); background: rgba(242, 239, 226, 0.06); }
[data-theme="light"] .theme-toggle:hover { background: rgba(22, 23, 12, 0.04); }
.theme-toggle svg { width: 18px; height: 18px; }

.burger {
  display: none; margin-left: auto; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.25s var(--ease);
}
.burger:hover { background: rgba(242, 239, 226, 0.06); }
[data-theme="light"] .burger:hover { background: rgba(22, 23, 12, 0.04); }
.burger span { width: 16px; height: 2px; background: var(--fg); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 340px);
  background: rgba(18, 19, 9, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(242, 239, 226, 0.08); padding: 24px;
  display: flex; flex-direction: column; gap: 4px; animation: slidein .25s var(--ease); overflow-y: auto;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5); border-top-left-radius: 20px; border-bottom-left-radius: 20px;
}
[data-theme="light"] .drawer-panel {
  background: rgba(242, 239, 242, 0.95); border-left-color: rgba(22, 23, 12, 0.08);
}
@keyframes slidein { from { transform: translateX(100%); } }
.drawer-panel a {
  padding: 12px 16px; font-weight: 800; color: var(--fg-2); text-transform: uppercase; font-size: 14px;
  border: none; border-radius: 8px; transition: all 0.2s var(--ease); display: flex; align-items: center;
}
.drawer-panel a:hover { background: rgba(242, 239, 226, 0.05); color: var(--fg); }
[data-theme="light"] .drawer-panel a:hover { background: rgba(22, 23, 12, 0.04); }
.drawer-panel a.active {
  background: rgba(237, 85, 85, 0.08);
  color: var(--red);
  font-weight: 800;
  box-shadow: none;
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(242, 239, 226, 0.08);
}
[data-theme="light"] .drawer-head { border-bottom-color: rgba(22, 23, 12, 0.08); }
.drawer-head button {
  background: none; border: none; color: var(--fg); font-size: 28px; line-height: 1;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background-color 0.2s;
}
.drawer-head button:hover { background: rgba(242, 239, 226, 0.08); }
.drawer-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--red); margin: 18px 4px 6px; font-weight: 900; }
.drawer-theme {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px;
  padding: 12px 16px; border: 1px solid rgba(242, 239, 226, 0.1); background: none; cursor: pointer;
  border-radius: 8px; transition: all 0.2s;
}
.drawer-theme:hover { background: rgba(242, 239, 226, 0.05); border-color: rgba(242, 239, 226, 0.2); }
.drawer-theme .dt-label { font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--fg-2); display: flex; align-items: center; gap: 9px; }
.drawer-theme .dt-label svg { width: 16px; height: 16px; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; font-weight: 900; font-size: 14px; letter-spacing: .07em;
  text-transform: uppercase; border: var(--bw) solid var(--fg); line-height: 1;
  background: transparent; color: var(--fg); transition: background .1s, color .1s, transform .1s, box-shadow .1s;
  cursor: pointer; position: relative;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translate(2px,2px); }
.btn-primary { background: var(--red); color: var(--paper); border-color: var(--fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--fg); color: var(--ink); }
.btn-primary:active { box-shadow: 0 0 0 0 rgba(0,0,0,.9); }
.btn-green { background: var(--lime); color: var(--on-bright); border-color: var(--fg); box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--fg); color: var(--ink); }
.btn-green:active { box-shadow: 0 0 0 0 rgba(0,0,0,.9); }
.btn-ghost { border-color: var(--ink-line-2); }
.btn-ghost:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn-sm { padding: 10px 15px; font-size: 12px; }
.btn-block { width: 100%; }

/* ============================================================ CARDS & CHIPS */
.card { background: var(--ink-2); border: var(--bw) solid var(--ink-line); padding: 26px; transition: border-color .1s, transform .12s, box-shadow .12s; }
.card-hover { cursor: pointer; }
.card-hover:hover { border-color: var(--fg); transform: translate(-3px,-3px); box-shadow: var(--shadow); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
  font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  border: var(--bw) solid var(--ink-line-2); color: var(--fg-2); background: transparent;
}
.pill svg { width: 13px; height: 13px; }
.pill.red { color: var(--red); border-color: var(--red); }
.pill.green { color: var(--lime); border-color: var(--lime); }
[data-theme="light"] .pill.green { color: var(--lime-deep); border-color: var(--lime-deep); }
.pill.solid-green { background: var(--lime); color: var(--on-bright); border-color: var(--fg); }
.pill.solid-red { background: var(--red); color: var(--paper); border-color: var(--fg); }

.grid { display: grid; gap: 20px; }
.grid-list { gap: var(--s-2); }   /* rows of same items: tight */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================ HERO (pre-event) */
.hero { position: relative; min-height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 64px 0; overflow: hidden; }
.hero-burst { position: absolute; width: 740px; max-width: 120vw; right: -180px; top: 50%; transform: translateY(-50%); opacity: .12; z-index: 0; pointer-events: none; }
.hero-ghost { position: absolute; left: -1vw; bottom: -2vw; font-size: clamp(120px, 24vw, 340px); z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-logo { width: min(660px, 88vw); margin: 0 auto 32px; }
.hero-sub { text-align: center; }
.hero .lead { margin: 16px auto 0; text-align: center; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.sponsor-hero { margin-top: 52px; padding: 30px; border: var(--bw) solid var(--fg); text-align: center; background: var(--ink-2); box-shadow: var(--shadow); }
.sponsor-hero .label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-3); font-weight: 900; }
.sponsor-hero .name { font-size: clamp(32px, 6vw, 58px); font-weight: 900; font-stretch: 80%; margin-top: 8px; text-transform: uppercase; }
.sponsor-hero img { max-height: 76px; margin: 12px auto 0; width: auto; }

/* champion */
.champion-card { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; border: var(--bw) solid var(--fg); background: var(--ink-2); }
.champion-media { position: relative; min-height: 340px; background: var(--lime); display: flex; align-items: center; justify-content: center; border-right: var(--bw) solid var(--fg); }
.champion-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.champion-media .icon-xl { width: 120px; height: 120px; color: var(--on-bright); }
.champion-body { padding: 46px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }

/* ============================================================ LIVE HOME — scoreboard strip */
.scorestrip { border: var(--bw) solid var(--fg); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink-2); }
.scorestrip.cols-4 { grid-template-columns: repeat(4, 1fr); }
.scorestrip > div { padding: 24px; border-right: var(--bw) solid var(--ink-line); }
.scorestrip > div:last-child { border-right: none; }
.scorestrip .ss-label { font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.scorestrip .ss-label svg { width: 13px; height: 13px; }
.scorestrip .ss-value { font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; font-stretch: 85%; text-transform: uppercase; line-height: .95; }
.scorestrip .ss-sub { color: var(--fg-2); font-size: 13px; font-weight: 700; margin-top: 6px; }

/* ============================================================ TEAM CARDS */
.team-card {
  position: relative; border: var(--bw) solid var(--ink-line); overflow: hidden;
  background: var(--ink-2); aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; transition: border-color .1s, transform .12s, box-shadow .12s; cursor: pointer;
}
.team-card .corner { position: absolute; top: 0; right: 0; width: 56px; height: 56px; background: var(--team, var(--red)); clip-path: polygon(100% 0, 0 0, 100% 100%); transition: .15s; }
.team-card .num-watermark {
  position: absolute; top: -14px; right: 6px; font-size: 140px; font-weight: 900; font-stretch: 78%;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-line); line-height: 1; z-index: 0; transition: .15s;
}
.team-card:hover { border-color: var(--fg); transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.team-card:hover .corner { width: 76px; height: 76px; }
.team-card:hover .num-watermark { -webkit-text-stroke-color: var(--team, var(--red)); }
.team-card .team-logo {
  position: relative; z-index: 1; width: 74px; height: 74px;
  background: var(--team, var(--red)); color: var(--on-bright); display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; margin-bottom: auto; border: var(--bw) solid var(--fg);
}
.team-card .team-logo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .team-name { position: relative; z-index: 1; font-size: 24px; font-weight: 900; font-stretch: 82%; text-transform: uppercase; line-height: .92; }
.team-card .team-meta { position: relative; z-index: 1; color: var(--fg-3); font-size: 12px; font-weight: 800; margin-top: 7px; text-transform: uppercase; letter-spacing: .05em; }

/* team detail */
.team-hero { position: relative; border: var(--bw) solid var(--fg); padding: 44px; background: var(--ink-2); display: flex; align-items: center; gap: 30px; flex-wrap: wrap; overflow: hidden; box-shadow: var(--shadow); }
.team-hero::before { content: ""; position: absolute; inset: 0; background: var(--team); opacity: .1; }
.team-hero > * { position: relative; z-index: 1; }
.team-hero .big-logo { width: 122px; height: 122px; background: var(--team); color: var(--on-bright); display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 900; flex-shrink: 0; border: var(--bw) solid var(--fg); }
.team-hero .big-logo img { width: 100%; height: 100%; object-fit: cover; }

.roster-row { display: flex; align-items: center; gap: 16px; padding: 13px 16px; border: var(--bw) solid var(--ink-line); background: var(--ink-2); transition: .1s; }
.roster-row:hover { border-color: var(--team, var(--fg)); background: var(--ink-3); }
.roster-row .num { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; background: var(--team, var(--red)); color: var(--on-bright); font-variant-numeric: tabular-nums; }
.roster-row .rname { font-weight: 800; font-size: 16px; }
.roster-row .rrole { color: var(--fg-3); font-size: 12px; font-weight: 800; margin-left: auto; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================ TABLES */
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--fg); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-bright); font-weight: 900; padding: 13px 14px; background: var(--lime); border-bottom: var(--bw) solid var(--fg); }
table.data td { padding: 14px; border-top: 1px solid var(--ink-line); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--ink-3); }
table.data td.center, table.data th.center { text-align: center; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-weight: 900; font-size: 14px; background: var(--ink-3); }
.rank.r1 { background: var(--lime); color: var(--on-bright); border: var(--bw) solid var(--fg); }
.rank.r2, .rank.r3 { border: var(--bw) solid var(--lime-text); color: var(--lime-text); background: transparent; }
.team-cell { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.team-chip { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; background: var(--ink-3); color: var(--fg); overflow: hidden; }
.team-chip img { width: 100%; height: 100%; object-fit: cover; }
.pts-cell { font-weight: 900; color: var(--lime-text); font-size: 17px; }

/* ============================================================ MATCHES */
.match-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 20px; border: var(--bw) solid var(--ink-line); background: var(--ink-2); transition: .1s; }
.match-card:hover { border-color: var(--fg); }
.match-card .side { display: flex; align-items: center; gap: 11px; min-width: 0; }
.match-card .side.away { flex-direction: row-reverse; text-align: right; }
.match-card .side .tn { font-weight: 800; font-size: 15px; text-transform: uppercase; }
.match-card .score { font-size: 30px; font-weight: 900; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.match-card .score .vs { color: var(--fg-3); font-size: 13px; font-weight: 900; letter-spacing: .15em; }
.match-card.played .score { color: var(--lime-text); }
.match-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }

/* ============================================================ SCORERS */
.scorer-row { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border: var(--bw) solid var(--ink-line); background: var(--ink-2); transition: .1s; }
.scorer-row:hover { border-color: var(--fg); transform: translateX(5px); }
.scorer-row .pos { font-weight: 900; font-size: 20px; width: 34px; color: var(--fg-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.scorer-row .pos.top { color: var(--red); }
.scorer-row .pos svg { width: 19px; height: 19px; }
.scorer-row .pn { font-weight: 800; font-size: 16px; text-transform: uppercase; }
.scorer-row .pteam { color: var(--fg-3); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.scorer-row .goals { margin-left: auto; font-weight: 900; font-size: 26px; display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; color: var(--lime-text); }
.scorer-row .goals small { font-size: 11px; color: var(--fg-3); font-weight: 900; text-transform: uppercase; }

.spotlight { border: var(--bw) solid var(--fg); padding: 36px; background: var(--red); color: var(--paper); display: flex; align-items: center; gap: 26px; flex-wrap: wrap; box-shadow: var(--shadow); }
.spotlight .pill { border-color: var(--paper); color: var(--paper); }
.spotlight .lead { color: rgba(242,239,226,.85); }
.spotlight .avatar { width: 90px; height: 90px; flex-shrink: 0; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 900; color: var(--red); border: var(--bw) solid rgba(0,0,0,.55); overflow: hidden; }
.spotlight .avatar img { width: 100%; height: 100%; object-fit: cover; }
.text-lime, .text-green { color: var(--lime-text); }
.stat-big { font-size: clamp(48px, 9vw, 80px); font-weight: 900; font-stretch: 80%; line-height: .8; font-variant-numeric: tabular-nums; }

/* ============================================================ IL VIAGGIO — route timeline */
.route { position: relative; padding: var(--s-4) 0; }
/* dashed spine like a route on a map */
.route::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--ink-line-2) 0 14px, transparent 14px 26px);
}
.route-stop { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; margin-bottom: var(--s-5); }
.route-stop:last-child { margin-bottom: 0; }
/* node on the spine */
.route-stop .node {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-stretch: 80%; font-size: 20px; font-variant-numeric: tabular-nums;
  background: var(--ink); border: var(--bw) solid var(--ink-line-2); color: var(--fg-3);
}
.route-stop.done .node { background: var(--lime); border-color: var(--fg); color: var(--on-bright); }
.route-stop.current .node { background: var(--red); border-color: var(--fg); color: var(--paper); box-shadow: var(--shadow-sm); animation: nodepulse 1.6s ease-in-out infinite; }
@keyframes nodepulse { 50% { transform: scale(1.12); } }
/* stage card — alternating sides */
.stage-card {
  grid-row: 1; padding: 20px 22px; background: var(--ink-2); border: var(--bw) solid var(--ink-line);
  position: relative; transition: border-color .12s, transform .12s, box-shadow .12s;
}
.route-stop:nth-child(odd) .stage-card { grid-column: 1; justify-self: end; text-align: right; width: min(100%, 480px); }
.route-stop:nth-child(even) .stage-card { grid-column: 3; justify-self: start; width: min(100%, 480px); }
.route-stop:nth-child(odd) .stage-card .stage-meta { justify-content: flex-end; }
.stage-card:hover { border-color: var(--fg); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.route-stop.done .stage-card { border-color: var(--lime-deep); }
.route-stop.current .stage-card { border-color: var(--fg); box-shadow: var(--shadow); }
.route-stop.future .stage-card { border-style: dashed; }
.stage-card .stage-tag { font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.route-stop.done .stage-tag { color: var(--lime-text); }
.route-stop.current .stage-tag { color: var(--red); }
.stage-card h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; font-stretch: 82%; text-transform: uppercase; }
.stage-card .stage-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; color: var(--fg-2); font-size: 13px; font-weight: 700; }
.stage-card .stage-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.stage-card .stage-meta span { display: inline-flex; align-items: center; gap: 5px; }
.stage-card .stage-note { color: var(--fg-2); font-size: 14px; font-weight: 500; margin-top: 8px; }
/* giant ghost number floating on the opposite side */
.route-stop .ghost-n {
  grid-row: 1; align-self: center; font-size: clamp(64px, 9vw, 130px); font-weight: 900; font-stretch: 78%;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-line); line-height: .8; user-select: none; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.route-stop:nth-child(odd) .ghost-n { grid-column: 3; justify-self: start; }
.route-stop:nth-child(even) .ghost-n { grid-column: 1; justify-self: end; }
.route-stop.done .ghost-n { -webkit-text-stroke-color: color-mix(in srgb, var(--lime) 45%, transparent); }
.route-stop.current .ghost-n { -webkit-text-stroke-color: var(--red); }
/* finish flag */
.route-finish { display: flex; justify-content: center; margin-top: var(--s-4); position: relative; z-index: 1; }
.route-finish .flag {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; font-size: 13px; border: var(--bw) solid var(--fg); background: var(--ink-2); box-shadow: var(--shadow-sm);
}
.route-finish .flag svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .route::before { left: 26px; }
  .route-stop { grid-template-columns: 52px 1fr; margin-bottom: var(--s-4); }
  .route-stop .node { grid-column: 1; width: 44px; height: 44px; font-size: 16px; justify-self: start; }
  .route-stop:nth-child(odd) .stage-card,
  .route-stop:nth-child(even) .stage-card { grid-column: 2; grid-row: 1; justify-self: stretch; text-align: left; width: 100%; }
  .route-stop:nth-child(odd) .stage-card .stage-meta { justify-content: flex-start; }
  .route-stop .ghost-n { display: none; }
}

/* value rows — editorial list, breaks card-grid monotony */
.value-row { display: grid; grid-template-columns: 84px 220px 1fr; gap: var(--s-4);
  align-items: start; padding: var(--s-4) 0; border-top: var(--bw) solid var(--ink-line); }
.value-row:last-child { border-bottom: var(--bw) solid var(--ink-line); }
.value-row .vr-idx { font-size: 52px; font-weight: 900; font-stretch: 78%; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-line-2); font-variant-numeric: tabular-nums; }
.value-row .vr-head { display: flex; align-items: center; gap: 12px; font-weight: 900;
  font-size: 19px; text-transform: uppercase; letter-spacing: -.01em; }
.value-row .vr-head svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.value-row .vr-text { color: var(--fg-2); font-weight: 500; max-width: 52ch; }
.value-row:hover .vr-idx { -webkit-text-stroke-color: var(--red); }

/* ============================================================ BONUS / MALUS */
.bm-card { border: var(--bw) solid var(--ink-line); padding: 22px; background: var(--ink-2); display: flex; flex-direction: column; gap: 8px; transition: background .12s, color .12s, border-color .12s; }
.bm-card .bm-pts { font-size: 44px; font-weight: 900; font-stretch: 80%; line-height: .85; font-variant-numeric: tabular-nums; }
.bm-card .bm-name { font-weight: 900; font-size: 17px; text-transform: uppercase; }
.bm-card .bm-desc { color: var(--fg-2); font-size: 14px; font-weight: 500; transition: color .12s; }
.bm-card.bonus { border-color: var(--lime-deep); }
.bm-card.bonus .bm-pts { color: var(--lime-text); }
.bm-card.bonus:hover { background: var(--lime); border-color: var(--fg); }
.bm-card.bonus:hover, .bm-card.bonus:hover .bm-pts { color: var(--on-bright); }
.bm-card.bonus:hover .bm-desc { color: rgba(18,19,9,.72); }
.bm-card.malus { border-color: var(--red); }
.bm-card.malus .bm-pts { color: var(--red); }
.bm-card.malus:hover { background: var(--red); border-color: var(--fg); }
.bm-card.malus:hover, .bm-card.malus:hover .bm-pts { color: var(--paper); }
.bm-card.malus:hover .bm-desc { color: rgba(242,239,226,.82); }

/* ============================================================ RULES */
.rule-section { border: var(--bw) solid var(--ink-line); background: var(--ink-2); transition: border-color .1s; }
.rule-section.open { border-color: var(--fg); }
.rule-head { width: 100%; text-align: left; background: none; border: none; padding: 21px 22px; font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 16px; text-transform: uppercase; }
.rule-head .idx { width: 36px; height: 36px; background: var(--lime); color: var(--on-bright); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; flex-shrink: 0; border: var(--bw) solid var(--fg); font-variant-numeric: tabular-nums; }
.rule-head .chev { margin-left: auto; transition: transform .2s; color: var(--fg-3); }
.rule-head .chev svg { width: 18px; height: 18px; }
.rule-section.open .chev { transform: rotate(180deg); }
.rule-body { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s var(--ease); color: var(--fg-2); font-weight: 500; }
.rule-section.open .rule-body { max-height: 1400px; padding: 0 22px 24px 76px; }
.rule-body p { margin-bottom: 12px; }
.rule-body ul { padding-left: 20px; }
.rule-body li { margin-bottom: 8px; }
.rule-body strong { color: var(--fg); }

/* ============================================================ EDITIONS */
.edition-card { display: grid; grid-template-columns: 230px 1fr; overflow: hidden; border: var(--bw) solid var(--ink-line); background: var(--ink-2); transition: .12s; }
.edition-card:hover { border-color: var(--fg); transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.edition-media { position: relative; background: var(--ink-3); min-height: 200px; display: flex; align-items: center; justify-content: center; border-right: var(--bw) solid var(--ink-line); overflow: hidden; }
.edition-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edition-media .yr { font-size: 64px; font-weight: 900; font-stretch: 78%; color: transparent; -webkit-text-stroke: 2px var(--ink-line-2); }
.edition-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.edition-year { font-size: 42px; font-weight: 900; font-stretch: 80%; line-height: .85; }

/* ============================================================ PARTNERS */
.partner-tier-label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); font-weight: 900; margin: 10px 0 18px; display: flex; align-items: center; gap: 12px; }
.partner-tier-label::after { content: ""; flex: 1; height: var(--bw); background: var(--ink-line); }
.partner-logo { aspect-ratio: 16/9; border: var(--bw) solid var(--ink-line); background: var(--ink-2); display: flex; align-items: center; justify-content: center; padding: 24px; transition: .12s; font-weight: 900; font-stretch: 85%; font-size: 21px; color: var(--fg-2); text-align: center; text-transform: uppercase; }
.partner-logo:hover { border-color: var(--fg); color: var(--ink); background: var(--lime); transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.partner-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ============================================================ PHOTOS */
.photo-day { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: var(--bw) solid var(--ink-line); background: var(--ink-2); transition: .12s; }
.photo-day:hover { border-color: var(--fg); background: var(--lime); color: var(--on-bright); }
.photo-day:hover .lead { color: rgba(18,19,9,.7); }
.photo-day .pd-icon { width: 52px; height: 52px; flex-shrink: 0; background: var(--ink-3); color: var(--fg); border: var(--bw) solid var(--ink-line-2); display: flex; align-items: center; justify-content: center; transition: .12s; }
.photo-day:hover .pd-icon { background: var(--on-bright); color: var(--lime); border-color: var(--on-bright); }
.photo-day .pd-icon svg { width: 22px; height: 22px; }
.photo-day .pd-arrow { margin-left: auto; }
.photo-day .pd-arrow svg { width: 20px; height: 20px; }

/* ============================================================ CONTACT */
.contact-item { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: var(--bw) solid var(--ink-line); }
.contact-item .ci-icon { width: 48px; height: 48px; background: var(--ink-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--lime); border: var(--bw) solid var(--ink-line-2); }
[data-theme="light"] .contact-item .ci-icon { color: var(--lime-deep); }
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.social-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn { width: 52px; height: 52px; background: transparent; border: var(--bw) solid var(--ink-line-2); display: flex; align-items: center; justify-content: center; transition: .1s; color: var(--fg); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--red); border-color: var(--fg); color: var(--paper); transform: translate(-2px,-2px); box-shadow: var(--shadow-sm); }

/* ============================================================ FOOTER */
.site-footer { border-top: var(--bw) solid var(--fg); padding: 0 0 36px; margin-top: 96px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-top: 56px; }
.footer-grid img { height: 30px; margin-bottom: 18px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .22em; color: var(--red); margin-bottom: 16px; font-weight: 900; }
.footer-col a { display: block; color: var(--fg-2); padding: 6px 0; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: var(--bw) solid var(--ink-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-3); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================ FORMS */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 8px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .08em; }
.input, .textarea, .select { width: 100%; padding: 13px 15px; background: var(--ink); border: var(--bw) solid var(--ink-line); color: var(--fg); font-family: inherit; font-size: 15px; font-weight: 600; transition: border-color .1s; border-radius: 0; -webkit-appearance: none; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--red); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { display: none; }
.toggle .track { width: 54px; height: 30px; background: var(--ink-3); border: var(--bw) solid var(--ink-line-2); position: relative; transition: .12s; flex-shrink: 0; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--fg); transition: .12s; }
.toggle input:checked + .track { background: var(--lime); border-color: var(--fg); }
.toggle input:checked + .track::after { transform: translateX(24px); background: var(--on-bright); }

/* ============================================================ ADMIN */
.admin-layout { display: grid; grid-template-columns: 248px 1fr; gap: 28px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 0; border: var(--bw) solid var(--ink-line); background: var(--ink-2); }
.admin-nav button { text-align: left; padding: 13px 15px; background: none; border: none; border-bottom: 1px solid var(--ink-line); color: var(--fg-2); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 10px; transition: .1s; text-transform: uppercase; letter-spacing: .03em; }
.admin-nav button svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav button:last-child { border-bottom: none; }
.admin-nav button:hover { background: var(--ink-3); color: var(--fg); }
.admin-nav button.active { background: var(--red); color: var(--paper); }

.admin-card { background: var(--ink-2); border: var(--bw) solid var(--ink-line); padding: 24px; margin-bottom: 18px; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: var(--bw) solid var(--ink-line); margin-bottom: 10px; background: var(--ink); flex-wrap: wrap; }
.admin-row .grow { flex: 1; min-width: 0; }
.icon-btn { width: 44px; height: 44px; background: var(--ink-3); border: var(--bw) solid var(--ink-line); color: var(--fg-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .1s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--fg); border-color: var(--fg); }
.icon-btn.danger:hover { color: var(--paper); background: var(--red); border-color: var(--fg); }

/* image picker */
.img-picker { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.img-picker .preview { width: 84px; height: 84px; border: var(--bw) solid var(--ink-line); background: var(--ink); display: flex; align-items: center; justify-content: center; color: var(--fg-3); overflow: hidden; flex-shrink: 0; }
.img-picker .preview img { width: 100%; height: 100%; object-fit: cover; }
.img-picker .preview svg { width: 26px; height: 26px; }
.img-picker .ip-meta { font-size: 11px; color: var(--fg-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.img-picker .ip-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* dashboard tiles */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-tile { border: var(--bw) solid var(--ink-line); background: var(--ink-2); padding: 18px; }
.dash-tile .dt-n { font-size: 38px; font-weight: 900; font-stretch: 80%; line-height: .9; font-variant-numeric: tabular-nums; }
.dash-tile .dt-l { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin-top: 6px; }
.dash-tile.hot { background: var(--red); border-color: var(--fg); color: var(--paper); }
.dash-tile.cool { background: var(--lime); border-color: var(--fg); color: var(--on-bright); }
.dash-tile.cool .dt-l, .dash-tile.hot .dt-l { color: inherit; opacity: .75; }

.quick-match { display: grid; grid-template-columns: 1fr 64px 24px 64px auto; align-items: center; gap: 10px; padding: 12px; border: var(--bw) solid var(--ink-line); background: var(--ink); margin-bottom: 10px; }
.quick-match .qm-names { font-weight: 800; font-size: 14px; text-transform: uppercase; min-width: 0; }
.quick-match .qm-sub { font-size: 11px; color: var(--fg-3); font-weight: 700; }
.quick-match input { text-align: center; font-weight: 900; font-size: 18px; padding: 9px 4px; }
.quick-match .qm-x { text-align: center; color: var(--fg-3); font-weight: 900; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--lime); color: var(--on-bright); padding: 15px 26px; font-weight: 900; z-index: 500; transition: transform .25s var(--ease); text-transform: uppercase; letter-spacing: .05em; border: var(--bw) solid var(--fg); box-shadow: var(--shadow-sm); }
.toast.show { transform: translateX(-50%) translateY(0); }
.login-box { max-width: 400px; margin: 70px auto; }

/* ============================================================ MISC */
.empty { text-align: center; padding: 70px 20px; color: var(--fg-3); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 14px; }
.divider { height: var(--bw); background: var(--ink-line); margin: 28px 0; border: none; }
.tabs { display: flex; flex-wrap: wrap; margin-bottom: 28px; border: var(--bw) solid var(--fg); width: fit-content; overflow: hidden; }
.tab { padding: 12px 22px; background: var(--ink-2); border: none; border-right: var(--bw) solid var(--ink-line); font-weight: 900; font-size: 13px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .06em; transition: .1s; }
.tab:last-child { border-right: none; }
.tab:hover { background: var(--fg); color: var(--ink); }
.tab.active { background: var(--red); color: var(--paper); }
.mb-0{margin-bottom:0}.mt-2{margin-top:14px}.mt-3{margin-top:22px}.mt-4{margin-top:32px}
.flex{display:flex}.between{justify-content:space-between}.center-y{align-items:center}.gap{gap:12px}.wrap{flex-wrap:wrap}
.fade-up { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ============================================================ RESPONSIVE */
@media (max-width: 940px) {
  .site-header { top: 0 !important; margin-top: 0 !important; width: 100% !important; border-radius: 0 !important; }
  .nav { display: none; }
  .burger { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .champion-card { grid-template-columns: 1fr; }
  .champion-media { min-height: 240px; border-right: none; border-bottom: var(--bw) solid var(--fg); }
  .scorestrip { grid-template-columns: 1fr; }
  .scorestrip.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .scorestrip > div { border-right: none; border-bottom: var(--bw) solid var(--ink-line); }
  .scorestrip > div:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; border-bottom: none; border-right: 1px solid var(--ink-line); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .edition-card { grid-template-columns: 1fr; }
  .edition-media { min-height: 150px; border-right: none; border-bottom: var(--bw) solid var(--ink-line); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-hero { padding: 28px; }
  .spotlight { padding: 26px; }
  .rule-section.open .rule-body { padding-left: 22px; }
  .quick-match { grid-template-columns: 1fr 54px 16px 54px auto; }
  .hero-ghost { display: none; }
  .value-row { grid-template-columns: 56px 1fr; }
  .value-row .vr-text { grid-column: 2; }
  .scorestrip.cols-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   v3.5 "FLUID" — via le box: hairline invece di bordi,
   pannelli morbidi arrotondati, pillole, onde, marquee.
   ============================================================ */
:root { --r-lg: 30px; --r-md: 18px; --r-sm: 12px; }

/* — onde (brand!) al posto del nastro — */
.wave { height: 26px; background-repeat: repeat-x; background-size: 92px 26px; border: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='26' viewBox='0 0 92 26'%3E%3Cpath d='M0 13 Q 23 -7 46 13 T 92 13' fill='none' stroke='%2398ed73' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.wave.red { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='26' viewBox='0 0 92 26'%3E%3Cpath d='M0 13 Q 23 -7 46 13 T 92 13' fill='none' stroke='%23ed5555' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tape { border: none; height: 26px; background: none; }

/* — marquee tipografica gigante — */
.marquee { overflow: hidden; padding: clamp(18px, 4vw, 34px) 0; }
.marquee-track { display: flex; width: max-content; align-items: baseline; animation: mq 38s linear infinite; }
.marquee-track span { font-size: clamp(46px, 8vw, 112px); font-weight: 900; font-stretch: 78%;
  text-transform: uppercase; line-height: 1; padding-right: .45em; white-space: nowrap; letter-spacing: -.02em; }
.marquee-track .ghosted { color: transparent; -webkit-text-stroke: 2px var(--ink-line-2); }
.marquee-track .star { color: var(--red); -webkit-text-stroke: 0; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* — header/footer: hairline, non muri — */
.site-header { border-bottom: 1px solid var(--ink-line-2); }
.site-footer { border-top: none; }
.footer-grid { padding-top: var(--s-6); }

/* — bottoni: pillole fluide — */
.btn { border-radius: 999px; box-shadow: none; }
.btn-primary, .btn-green { box-shadow: none; border-color: transparent; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:active, .btn-green:active { box-shadow: none; }
.live-badge { border-radius: 999px; border-color: transparent; }
.tabs { border: none; gap: 8px; overflow: visible; }
.tab { border: none; border-radius: 999px; background: var(--ink-2); }
.nav-menu { border-radius: var(--r-md); border: 1px solid var(--ink-line-2); box-shadow: 0 22px 48px -18px rgba(0,0,0,.55); overflow: hidden; }
.nav-menu a:hover { border-radius: 0; }

/* — pannelli morbidi: niente bordi, raggio, aria — */
.card { border: none; border-radius: var(--r-md); }
.card-hover:hover { border: none; box-shadow: none; transform: translateY(-4px); background: var(--ink-3); }
.sponsor-hero { border: none; box-shadow: none; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 44px); }
.champion-card { border: none; border-radius: var(--r-lg); }
.champion-media { border-right: none; }
.team-hero { border: none; box-shadow: none; border-radius: var(--r-lg); }
.team-hero .big-logo { border: none; border-radius: var(--r-md); }
.spotlight { border: none; box-shadow: none; border-radius: var(--r-lg); }
.spotlight .avatar { border: none; border-radius: var(--r-md); }
.edition-card { border: none; border-radius: var(--r-lg); overflow: hidden; }
.edition-card:hover { border: none; box-shadow: none; transform: translateY(-4px); }
.edition-media { border-right: none; }
.partner-logo { border: none; border-radius: var(--r-md); }
.partner-logo:hover { box-shadow: none; transform: translateY(-4px); }
.twitch-hero { border: none; border-radius: var(--r-lg); }
.empty { border: none; }
.login-box.card, .login-box .card, .login-box { box-shadow: none; }

/* — liste aperte: righe con filetto, non scatole — */
.match-card, .scorer-row, .roster-row, .photo-day {
  border: none; border-bottom: 1px solid var(--ink-line); background: transparent; border-radius: 0;
}
.match-card:hover, .scorer-row:hover, .roster-row:hover, .photo-day:hover {
  border-color: var(--ink-line); background: var(--ink-2); box-shadow: none;
}
.scorer-row:hover { transform: translateX(8px); }
.photo-day:hover { transform: translateX(8px); color: inherit; }
.photo-day:hover .lead { color: var(--fg-2); }
.photo-day:hover .pd-icon { background: var(--lime); color: var(--on-bright); border: none; }
.photo-day .pd-icon { border: none; border-radius: 50%; }
.contact-item { border-bottom: 1px solid var(--ink-line); }
.contact-item .ci-icon { border: none; border-radius: 50%; }
.social-btn { border: none; background: var(--ink-2); border-radius: 50%; }
.social-btn:hover { box-shadow: none; transform: translateY(-4px); }

/* — team card: blocco colore fluido, non box — */
.team-card { border: none; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--team, var(--red)) 13%, var(--ink-2)); overflow: hidden; }
.team-card:hover { border: none; box-shadow: none; transform: translateY(-5px);
  background: color-mix(in srgb, var(--team, var(--red)) 26%, var(--ink-2)); }
.team-card .team-logo { border: none; border-radius: var(--r-sm); }
.team-card .corner { clip-path: circle(100% at 100% 0); width: 64px; height: 64px; }
.team-card:hover .corner { width: 84px; height: 84px; }

/* — tabella: pannello morbido — */
.table-wrap { border: none; border-radius: var(--r-md); background: var(--ink-2); }
table.data th { border-bottom: none; }
.rank { border-radius: 50%; }
.rank.r1 { border: none; }
.team-chip { border-radius: 50%; }

/* — scoreboard aperto: colonne con asta, non celle — */
.scorestrip { border: none; background: transparent; gap: clamp(18px, 3vw, 40px); }
.scorestrip > div { border-right: none !important; border-bottom: none !important;
  border-left: 3px solid var(--ink-line-2); padding: 6px 0 6px 22px; }
.scorestrip .ss-value { font-size: clamp(24px, 2.8vw, 36px); }

/* — regolamento: accordion a filetti — */
.rule-section { border: none; border-bottom: 1px solid var(--ink-line); background: transparent; border-radius: 0; }
.rule-section.open { border-color: var(--ink-line-2); }
.rule-head { padding-left: 0; padding-right: 0; }
.rule-head .idx { border: none; border-radius: 50%; }
.rule-body { padding-left: 0 !important; padding-right: 0; }
.rule-section.open .rule-body { padding-left: 52px !important; }

/* — bonus/malus: tinte morbide — */
.bm-card { border: none; border-radius: var(--r-md); }
.bm-card.bonus { background: color-mix(in srgb, var(--lime) 9%, var(--ink-2)); }
.bm-card.malus { background: color-mix(in srgb, var(--red) 9%, var(--ink-2)); }
.bm-card.bonus:hover, .bm-card.malus:hover { border: none; }

/* — il viaggio: tappe libere sul percorso — */
.stage-card { border: none !important; background: transparent; box-shadow: none !important; padding: 4px 0; }
.stage-card:hover { transform: none; }
.route-stop .node { border: none; border-radius: 50%; background: var(--ink-3); }
.route-stop.future .stage-card h3 { color: var(--fg-2); }
.route-stop.current .stage-card h3 { color: var(--red); }
.route-finish .flag { border: none; border-radius: 999px; background: var(--ink-2); box-shadow: none; }

/* — valori: filetti ok (linee, non box) — */

/* — form & admin: morbidi — */
.input, .textarea, .select { border-radius: var(--r-sm); border-width: 1px; }
.toggle .track { border: none; }
.toggle .track::after { border-radius: 50%; }
.icon-btn { border: none; border-radius: var(--r-sm); }
.admin-card { border: none; border-radius: var(--r-md); }
.admin-row { border: none; border-bottom: 1px solid var(--ink-line); background: transparent; border-radius: 0; }
.admin-nav { border: none; background: transparent; gap: 4px; }
.admin-nav button { border: none; border-radius: 999px; }
.admin-nav button.active { border-radius: 999px; }
.dash-tile { border: none; border-radius: var(--r-md); }
.quick-match { border: none; border-bottom: 1px solid var(--ink-line); background: transparent; }
.img-picker .preview { border: none; border-radius: var(--r-sm); background: var(--ink-3); }
.toast { border: none; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }
.kicker::after { height: 1px; }
.partner-tier-label::after { height: 1px; }
.divider { height: 1px; }
.value-row { border-top-width: 1px; }
.value-row:last-child { border-bottom-width: 1px; }

/* ============================================================
   v3.6 — HERO "WOW": logo ricostruito in tipografia cinetica,
   onde parallasse, reveal a sipario, pointer parallax.
   ============================================================ */
.hero2 { position: relative; min-height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; padding: 40px 0 140px; }
.hero2 .container { position: relative; z-index: 2; }

/* type lockup — il logo, gigante e vivo */
.h-mask { overflow: hidden; display: block; }
.h-rev { display: block; transform: translateY(108%); animation: hup .7s var(--ease) forwards; }
@keyframes hup { to { transform: none; } }
.h-football { font-size: clamp(30px, 5.6vw, 84px); font-weight: 600; color: var(--lime); line-height: 1;
  letter-spacing: .01em; }
[data-theme="light"] .h-football { color: var(--lime-deep); }
.h-waves { font-size: clamp(96px, 19vw, 300px); font-weight: 900; font-stretch: 75%; color: var(--red);
  line-height: .78; letter-spacing: -.03em; display: inline-flex; align-items: baseline; }
.h-burst { display: inline-block; width: .54em; aspect-ratio: 1; margin-left: .06em; align-self: center;
  background: repeating-conic-gradient(var(--lime) 0deg 7deg, transparent 7deg 15deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 31%); mask: radial-gradient(circle, transparent 30%, #000 31%);
  animation: spin 16s linear infinite, burstin .9s var(--ease) .45s backwards; }
@keyframes burstin { from { transform: scale(0) rotate(-120deg); } }
.h-ghost-n { position: absolute; right: -2vw; top: 50%; transform: translateY(-58%); z-index: 1;
  font-size: clamp(180px, 34vw, 560px); font-weight: 900; font-stretch: 75%; line-height: .8;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--fg) 16%, transparent);
  user-select: none; pointer-events: none; font-variant-numeric: tabular-nums; }
.hero2 .lead {
  margin-top: var(--s-4);
  color: var(--fg);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  max-width: 60ch;
}
[data-theme="light"] .hero2 .lead {
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.6);
}
.hero2 .h-football, .hero2 .h-waves {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .hero2 .h-football, [data-theme="light"] .hero2 .h-waves {
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}
.hero2 .hero-cta { justify-content: flex-start; margin-top: var(--s-5); display: flex; gap: 14px; flex-wrap: wrap; }
.hero2 .pill { margin-bottom: var(--s-3); }

/* fade-in ritardato per pill/lead/cta */
.h-late { opacity: 0; animation: hfade .6s ease .55s forwards; }
@keyframes hfade { to { opacity: 1; } }

/* onde parallasse sul fondo */
.hero-waves { position: absolute; left: 0; right: 0; bottom: -4px; height: 150px; z-index: 1; pointer-events: none; }
.wlayer { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%;
  background-repeat: repeat-x; background-position: bottom; animation: drift linear infinite; }
.wlayer.w1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='150' viewBox='0 0 600 150'%3E%3Cpath d='M0 90 Q 150 30 300 90 T 600 90' fill='none' stroke='%2398ed73' stroke-width='5' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E");
  background-size: 600px 150px; animation-duration: 16s; }
.wlayer.w2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='150' viewBox='0 0 520 150'%3E%3Cpath d='M0 110 Q 130 60 260 110 T 520 110' fill='none' stroke='%23ed5555' stroke-width='5' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E");
  background-size: 520px 150px; animation-duration: 11s; animation-direction: reverse; }
.wlayer.w3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='150' viewBox='0 0 700 150'%3E%3Cpath d='M0 130 Q 175 95 350 130 T 700 130 L 700 150 L 0 150 Z' fill='%23242617' opacity='.9'/%3E%3C/svg%3E");
  background-size: 700px 150px; animation-duration: 22s; }
[data-theme="light"] .wlayer.w3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='150' viewBox='0 0 700 150'%3E%3Cpath d='M0 130 Q 175 95 350 130 T 700 130 L 700 150 L 0 150 Z' fill='%23e7e2cd' opacity='.95'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translateX(-50%); } }

/* burst gigante dietro */
.hero2 .hero-burst { width: min(900px, 110vw); right: -260px; top: 38%; opacity: .1; }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fg-3);
  font-size: 10px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue svg { width: 16px; height: 16px; animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* parallax layers seguono il puntatore via --px/--py (JS) */
.hero2 [data-depth] { transition: transform .25s cubic-bezier(.2,.8,.3,1); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .h-rev { animation: none; transform: none; }
  .h-late { animation: none; opacity: 1; }
  .wlayer, .h-burst { animation: none !important; }
}
@media (max-width: 600px) {
  .hero2 { padding-bottom: 110px; }
  .h-ghost-n { right: -8vw; }
  .hero-waves { height: 100px; }
}

/* parallax compose: base transform + pointer offset via custom props */
.hero2 .hero-burst { transform: translateY(-50%) translate(var(--px, 0px), var(--py, 0px)); }
.h-ghost-n { transform: translateY(-58%) translate(var(--px, 0px), var(--py, 0px)); }

/* fix: niente rientro accordion su mobile (vince sull'!important del layer fluid) */
@media (max-width: 600px) {
  .rule-section.open .rule-body { padding-left: 0 !important; }
}

/* ============================================================
   v3.7 — GDPR: banner cookie, consent gate, pagina legale
   ============================================================ */
.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600;
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--ink-2); color: var(--fg); padding: 18px 22px; border-radius: var(--r-md);
  border: 1px solid var(--ink-line-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  max-width: 880px; margin: 0 auto; }
.cookiebar.show { display: flex; animation: cbup .35s var(--ease); }
@keyframes cbup { from { transform: translateY(20px); opacity: 0; } }
.cookiebar .cb-text { flex: 1; min-width: 240px; font-size: 13.5px; font-weight: 500; color: var(--fg-2); line-height: 1.5; }
.cookiebar .cb-text strong { color: var(--fg); }
.cookiebar .cb-text a { color: var(--fg); text-decoration: underline; }
.cookiebar .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.consent-gate { padding: clamp(28px, 6vw, 56px) 24px; display: flex; flex-direction: column; align-items: center;
  text-align: center; background: var(--ink); border-radius: var(--r-sm); }
.consent-gate .cg-icon { width: 46px; height: 46px; color: var(--fg-3); margin-bottom: 14px; }
.consent-gate .cg-icon svg { width: 100%; height: 100%; }

/* pagina legale: tipografia leggibile */
.legal h2 { font-size: clamp(19px, 2.4vw, 24px); text-transform: uppercase; margin: var(--s-6) 0 var(--s-2); }
.legal p, .legal li { color: var(--fg-2); font-weight: 500; font-size: 15.5px; line-height: 1.65; }
.legal p { margin-bottom: var(--s-2); }
.legal ul { padding-left: 22px; margin-bottom: var(--s-2); }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--fg); }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0; font-size: 14px; }
.legal th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-bright);
  background: var(--lime); padding: 10px 12px; font-weight: 900; }
.legal td { padding: 11px 12px; border-bottom: 1px solid var(--ink-line); color: var(--fg-2); font-weight: 600; }
.legal td:first-child { color: var(--fg); font-family: ui-monospace, monospace; font-size: 13px; }

@media (max-width: 600px) { .cookiebar { left: 10px; right: 10px; bottom: 10px; } }

/* ============================================================ HERO & TEAM CARD BACKGROUND PHOTOS */
.hero2.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.team-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.team-card:hover .team-card-bg {
  opacity: 0.45;
  transform: scale(1.04);
}
.team-card.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,19,9,0.85) 0%, rgba(18,19,9,0) 70%);
  z-index: 0;
  pointer-events: none;
}
.team-card.has-photo {
  color: var(--paper) !important;
}
.team-card.has-photo .team-meta {
  color: rgba(242,239,226,0.7) !important;
}

/* ============================================================ SPONSORS GLOBAL SECTION */
.footer-sponsors {
  border-top: var(--bw) solid var(--fg);
  padding: var(--s-5) 0;
  background: var(--ink-2);
  margin-top: var(--s-7);
}
.footer-sponsors + .site-footer {
  margin-top: 0;
  border-top: none;
}
.fs-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fs-title::after, .fs-title::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-line);
}
.fs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}
.fs-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(34px, 5vw, 50px);
  max-width: 150px;
  opacity: 0.65;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.fs-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.fs-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.fs-logo span {
  font-size: 15px;
  font-weight: 900;
  color: var(--fg-2);
  text-transform: uppercase;
  font-stretch: 85%;
}
