/* Seven League — minimal / editorial */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #0e0e0f;
  --ink-2: #2b2b2d;
  --muted: #8b877f;
  --muted-2: #b9b5ad;
  --line: rgba(14, 14, 15, 0.08);
  --line-2: rgba(14, 14, 15, 0.14);
  --accent: #ff1f6e;
  --accent-soft: rgba(255, 31, 110, 0.08);
  --mint: #3fc48c;
  --yellow: #e8b400;
  --red: #d90a43;
  --radius: 6px;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 80px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(34px, 9vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; letter-spacing: -0.01em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label, .eyebrow { display: block; font: 500 11px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.section-head a, .more { font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.section-head a::after, .more::after { content: '→'; transition: transform 0.2s var(--ease); }
.section-head a:hover::after, .more:hover::after { transform: translateX(3px); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 238, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; mix-blend-mode: multiply; }
.brand span { font: 600 13px/1.1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.brand span b { display: block; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; font-size: 10px; margin-top: 3px; }
.topnav { margin-left: auto; display: none; gap: 28px; }
.topnav a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 20px 0; position: relative; }
.topnav a[aria-current='page'] { color: var(--ink); }
.topnav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

/* Tab bar mobile */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; padding: 6px 0 4px; color: var(--muted); position: relative; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a[aria-current='page'] { color: var(--ink); }
.tabbar a[aria-current='page']::before { content: ''; position: absolute; top: -7px; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
}

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 44px 0 48px; }
.hero .label { color: rgba(255, 255, 255, 0.5); }
.hero-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.hero h1 { color: #fff; margin-top: 14px; }
.hero h1 span { color: rgba(255, 255, 255, 0.38); }
.hero-stats { display: flex; gap: 28px; }
.hero-stats div { font: 500 11px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.hero-stats b { display: block; font: 600 26px/1 var(--display); letter-spacing: -0.03em; color: #fff; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.feature { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 26px; display: block; }
.feature-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; }
.feature-meta .live { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.feature-meta .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.feature-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.feature-team { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; }
.feature-vs { font: 400 12px var(--body); color: rgba(255, 255, 255, 0.45); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.feature-vs b { display: block; font: 600 34px/1 var(--display); color: #fff; letter-spacing: -0.03em; margin-bottom: 8px; font-variant-numeric: tabular-nums; text-transform: none; }

/* Page title */
.page-title { padding: 44px 0 28px; }
.page-title h1 { margin-top: 12px; }
.page-title p { margin: 14px 0 0; color: var(--muted); max-width: 560px; }

/* Surfaces */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.card-pad { padding: 20px; }
.card + .card { margin-top: 12px; }

/* Partite */
.day + .day { margin-top: 32px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.day-head h3 { font: 500 11.5px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.day-head .tag { font: 500 10.5px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.mrow { display: grid; grid-template-columns: 52px 1fr 72px 1fr; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); min-height: 64px; transition: background 0.2s var(--ease); }
a.mrow:hover { background: rgba(14, 14, 15, 0.025); }
.mrow .time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow .time small { display: block; font-size: 11px; color: var(--muted-2); }
.mrow .team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; font-size: 14.5px; letter-spacing: -0.005em; }
.mrow .team .nm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.mrow .team.home { justify-content: flex-end; text-align: right; }
.mrow .team.home .badge { order: 2; }
.mrow .score { font: 600 19px/1 var(--display); text-align: center; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mrow .score.vs { font: 400 11px var(--body); color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase; }
.mrow .team.lose .nm { color: var(--muted); }
.mrow .pens { display: block; font: 400 10.5px var(--body); color: var(--muted); margin-top: 4px; letter-spacing: 0; }
@media (max-width: 440px) {
  .mrow { grid-template-columns: 40px 1fr 54px 1fr; gap: 8px; }
  .mrow .team { font-size: 13px; gap: 7px; }
  .mrow .team .badge { width: 24px; height: 24px; }
  .mrow .score { font-size: 17px; }
}

/* Badge squadra */
.badge { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 600 10px/1 var(--body); background: var(--ink); overflow: hidden; }
.badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.badge.logo { background: #f3efe6; }
.badge.sm { width: 22px; height: 22px; font-size: 8.5px; }
.badge.lg { width: 64px; height: 64px; font-size: 20px; }
.badge.xl { width: 112px; height: 112px; font-size: 34px; }

/* Classifica */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th { font: 500 10.5px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 14px 6px; border-bottom: 1px solid var(--line-2); }
.standings th.l { text-align: left; }
.standings td { text-align: center; padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.standings tr:last-child td { border-bottom: 0; }
.standings td.pos { width: 40px; font-weight: 500; color: var(--muted); position: relative; }
.standings td.teamcell { text-align: left; }
.standings td.teamcell a { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.standings td.pts { font: 600 16px var(--display); color: var(--ink); }
.standings tr.qual td.pos::before, .standings tr.out td.pos::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; }
.standings tr.qual td.pos::before { background: var(--mint); }
.standings tr.out td.pos::before { background: var(--accent); }
.standings tr.out td, .standings tr.out td.teamcell a { color: var(--muted); }
.standings .hide-sm { display: none; }
@media (min-width: 680px) { .standings .hide-sm { display: table-cell; } }
.form { display: inline-flex; gap: 4px; }
.form i { width: 7px; height: 7px; border-radius: 50%; font-size: 0; }
.form i.V { background: var(--mint); }
.form i.N { background: var(--muted-2); }
.form i.P { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); padding: 14px 16px; border-top: 1px solid var(--line); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 2px; margin-right: 8px; vertical-align: 3px; }
.legend .q::before { background: var(--mint); }
.legend .o::before { background: var(--accent); }

/* Liste */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .rank { width: 22px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.list .val { font: 600 20px/1 var(--display); letter-spacing: -0.02em; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.list .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.list li.lead .val { color: var(--accent); }
.cards-ic { display: inline-block; width: 8px; height: 11px; border-radius: 1.5px; vertical-align: -1px; margin-right: 6px; }
.cards-ic.y { background: var(--yellow); }
.cards-ic.r { background: var(--red); }
.pill { display: inline-block; font: 500 10.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* Statistiche */
.stats-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.leader { display: flex; align-items: center; gap: 18px; padding: 22px 20px; border-bottom: 1px solid var(--line); }
.leader .val { font: 600 48px/1 var(--display); letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.leader b { display: block; font: 600 20px/1.15 var(--display); letter-spacing: -0.02em; }
.team-records { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.team-records > div { background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.team-records .rec { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.team-records .rec .val { margin-left: auto; font: 600 22px/1 var(--display); letter-spacing: -0.02em; }

/* Squadre */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.team-tile { background: var(--surface); padding: 28px 14px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 500; font-size: 14.5px; transition: background 0.2s var(--ease); }
.team-tile:hover { background: #fbfaf7; }
.team-tile small { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: -8px; }

.team-hero { display: flex; align-items: center; gap: 22px; padding: 44px 0 8px; }
.team-hero h1 { font-size: clamp(30px, 8vw, 52px); margin-top: 10px; }
.team-photo { border-radius: var(--radius); margin-top: 24px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); margin-top: 32px; }
.stat { padding: 18px 4px 16px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 14px; }
.stat b { display: block; white-space: nowrap; font: 600 clamp(20px, 6.4vw, 28px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font: 500 10px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.subnav { display: flex; gap: 24px; border-bottom: 1px solid var(--line-2); overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.subnav::-webkit-scrollbar, .admin-nav::-webkit-scrollbar { display: none; }
.subnav a { padding: 12px 0; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; position: relative; }
.subnav a[aria-current='true'] { color: var(--ink); }
.subnav a[aria-current='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

/* Rosa */
.roster-group + .roster-group { margin-top: 32px; }
.roster-group > h3 { font: 500 11px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.roster { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .roster { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.player { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.player .no { width: 28px; font: 600 15px var(--display); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.player .who { flex: 1; min-width: 0; }
.player .who b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.player .who b em { font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.player .who span { font-size: 12.5px; color: var(--muted); }
.player .pstats { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.player .pstats span { display: inline-flex; align-items: center; }

/* Pagina partita */
.scoreboard { background: var(--ink); color: #fff; padding: 40px 20px 34px; border-radius: var(--radius); }
.sb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; text-align: center; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 14px; font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; }
.sb-score { font: 600 64px/1 var(--display); letter-spacing: -0.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-score.vs { font-size: 28px; font-weight: 400; color: rgba(255, 255, 255, 0.5); letter-spacing: 0; }
.sb-meta { text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 13px; margin-top: 22px; }
.sb-top { text-align: center; margin-bottom: 26px; min-height: 11px; }
.fulltime { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--body); letter-spacing: 0.22em; color: #fff; }
.fulltime::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.fulltime.off::before { background: var(--accent); }
.events { display: grid; grid-template-columns: 1fr 1fr; }
.events ul { list-style: none; margin: 0; padding: 14px 18px; }
.events li { padding: 6px 0; font-size: 14px; }
.events li small { color: var(--muted); margin-left: 4px; }
.events ul.away { text-align: right; border-left: 1px solid var(--line); }
.placeholder { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.ball { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); margin-right: 8px; vertical-align: 1px; }
.ball.og { background: var(--muted-2); }

/* Tabellone */
.bracket { display: grid; gap: 28px; }
@media (min-width: 900px) { .bracket { grid-template-columns: repeat(3, 1fr); align-items: center; gap: 24px; } }
.round h3 { font: 500 11px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.round .tie + .tie { margin-top: 12px; }
.tie { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: block; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.2s var(--ease); }
a.tie:hover { box-shadow: 0 0 0 1px var(--line-2), 0 8px 24px -16px rgba(0, 0, 0, 0.3); }
.tie-head { font-size: 11px; color: var(--muted); padding: 12px 14px 4px; display: flex; justify-content: space-between; letter-spacing: 0.04em; }
.tie-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-weight: 500; font-size: 14px; }
.tie-row:last-child { padding-bottom: 14px; }
.tie-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tie-row .tbd { color: var(--muted); font-weight: 400; }
.tie-row .g { font: 600 16px var(--display); font-variant-numeric: tabular-nums; }
.tie-row.winner .grow { font-weight: 600; }
.tie.final { box-shadow: 0 0 0 1px var(--ink); }
.tie.final .tie-head { color: var(--ink); font-weight: 600; }

/* Notice */
.notice { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--radius); padding: 14px 16px 14px 32px; font-size: 14px; color: var(--ink-2); position: relative; }
.notice::before { content: ''; position: absolute; left: 15px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notice.info::before { background: var(--mint); }

/* Footer */
.footer { margin-top: 80px; padding: 32px 0 40px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer .wrap > span { margin-right: auto; }

/* Filtri */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: rgba(14, 14, 15, 0.05); border-radius: 99px; }
.seg a { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 99px; color: var(--ink-2); }
.seg a[aria-current='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* ===== Admin ===== */
.admin-bar { background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.admin-bar span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.admin-nav { scrollbar-width: none; display: flex; gap: 6px; overflow-x: auto; padding: 16px 0 4px; -webkit-overflow-scrolling: touch; }
.admin-nav a { flex: none; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 99px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.admin-nav a[aria-current='page'] { background: var(--ink); color: #fff; box-shadow: none; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font: 500 11px/1.3 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 7px; }
input, select, textarea {
  width: 100%; font: 16px var(--body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 14, 15, 0.08); }
input[type='checkbox'] { width: 20px; height: 20px; min-height: 0; vertical-align: middle; }
input[type='file'] { padding: 9px; }
textarea { min-height: 110px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: 500 14px var(--body); cursor: pointer; transition: opacity 0.2s var(--ease);
}
.btn:hover { opacity: 0.88; }
.btn.pink { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(217, 10, 67, 0.35); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flash { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-left: 2px solid var(--mint); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin: 12px 0 0; }
.flash.err { border-left-color: var(--accent); }
.score-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.score-inputs input { text-align: center; font: 600 32px var(--display); min-height: 68px; }
.score-inputs .sep { font: 300 28px var(--display); padding-bottom: 16px; color: var(--muted); }
.ev-row { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.ev-row .grow { flex: 1; }
details.box { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
details.box > summary { cursor: pointer; padding: 16px 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: '+'; font-weight: 300; font-size: 20px; color: var(--muted); }
details.box[open] > summary::after { content: '−'; }
details.box > div { padding: 0 20px 20px; }
.kbd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kbd-table td, .kbd-table th { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; }
.bulk { width: 100%; border-collapse: collapse; }
.bulk td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.bulk td.n { width: 68px; }
.bulk td.r { width: 46%; }
.bulk input, .bulk select { min-height: 40px; padding: 8px; margin: 0; }
.inline-form { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Account */
.account-link { margin-left: auto; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 760px) { .topnav + .account-link { margin-left: 16px; } }
.account-link:has(.avatar) { padding: 0; box-shadow: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 11px var(--body); letter-spacing: 0.04em; }

/* Live */
.live-dot { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--body); letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 31, 110, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(255, 31, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 31, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }
.mrow.is-live { background: var(--accent-soft); }
.mrow .score.live { color: var(--accent); }
.mrow .time .live-dot { font-size: 9.5px; letter-spacing: 0.12em; }
.scoreboard .live-dot { color: #fff; }
.live-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; margin-top: 20px; }
.live-banner b { font: 600 18px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* MVP */
.mvp-card { display: flex; align-items: center; gap: 18px; padding: 22px 20px; }
.mvp-card .trophy { font: 600 11px/1 var(--body); letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.mvp-card b { display: block; font: 600 24px/1.1 var(--display); letter-spacing: -0.02em; margin-top: 8px; }
.vote-list { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .vote-list { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.vote-opt { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.vote-opt input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--ink); flex: none; }
.vote-opt .badge { width: 22px; height: 22px; }
.vote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
/* ===== Voto MVP con le card dei giocatori ===== */
.vote-intro { margin: 0 0 18px; color: var(--muted); }
.vote-team { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.vote-team-head { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-size: 15px; }
.vote-team-head .badge.sm { width: 26px; height: 26px; }
.vote-team-head .muted { margin-left: auto; }
.vote-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 162px; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  margin: -8px -20px 0; padding: 18px 20px 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
}
.vote-rail::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .vote-rail { grid-auto-columns: 176px; gap: 14px; } }
.vote-pick { position: relative; display: block; scroll-snap-align: start; cursor: pointer; border-radius: 16px 16px 20px 20px; transition: transform .25s var(--ease), opacity .25s var(--ease), filter .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.vote-pick .fcard { pointer-events: none; }
.vote-pick:hover .fcard { transform: translateY(-3px); }
.vote-pick:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.vote-form:has(input:checked) .vote-pick:not(:has(input:checked)) { opacity: .55; filter: saturate(.6); }
.vote-pick:has(input:checked) { transform: translateY(-6px); }
.vote-pick:has(input:checked) .fcard { box-shadow: 0 0 0 3px var(--accent), 0 18px 30px -14px rgba(255, 31, 110, .55); }
.vote-check { position: absolute; top: -11px; right: -10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 4px 12px rgba(255, 31, 110, .45), 0 0 0 3px var(--bg); opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.vote-check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vote-pick:has(input:checked) .vote-check { opacity: 1; transform: scale(1); }
.fc-tag { position: absolute; left: 12px; bottom: 6px; white-space: nowrap; padding: 4px 8px; border-radius: 99px; background: var(--mint); color: var(--ink); font: 700 9.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.fcard:has(.fc-cap) .fc-tag { left: 40px; }
.fcard:has(.fc-cap):has(.fc-mvp) .fc-tag { left: 12px; bottom: 34px; }
.vote-bar {
  position: sticky; bottom: calc(68px + env(safe-area-inset-bottom) + 10px); z-index: 5;
  display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 10px 10px 18px;
  background: var(--ink); color: #fff; border-radius: 16px; box-shadow: 0 16px 36px -18px rgba(14, 14, 15, .6);
}
.vote-choice { flex: 1; min-width: 0; font-size: 14px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-choice b { color: #fff; font-weight: 600; }
.vote-bar .btn { flex: none; background: var(--accent); border-color: var(--accent); color: #fff; }
.vote-form:not(:has(input:checked)) .vote-bar .btn { opacity: .45; }
.vote-done { display: flex; align-items: center; gap: 20px; }
.vote-done-card { width: 132px; flex: none; }

.countdown { font: 500 13px var(--body); color: var(--accent); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--ink); }

/* Admin live */
.live-panel { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }
.live-panel .label { color: rgba(255, 255, 255, 0.55); }
.live-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; margin: 16px 0 18px; }
.live-score b { font: 600 52px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.live-score span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.live-panel .btn { border-color: rgba(255, 255, 255, 0.2); }
.live-panel .btn.ghost { color: #fff; }
.live-panel .btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.quick-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-goals select { min-height: 44px; }

/* ===== Animazioni del marchio — da animazioni/seven-league-home.html e seven-league-live.html ===== */
:root { --brand: #ff1f6e; --stage-h: calc(100svh - 61px - 68px - env(safe-area-inset-bottom)); }
@media (min-width: 760px) { :root { --stage-h: calc(100svh - 61px); } }

/* Elementi condivisi: bande, neve, logo rosa */
.sl-bands { position: absolute; inset: -20%; z-index: 0; pointer-events: none; }
.sl-band { position: absolute; top: -10%; bottom: -10%; width: 9vmax; transform: skewX(-25deg) translateX(-160vw); animation: sl-band-in 1.1s cubic-bezier(.7,0,.2,1) forwards; }
.sl-band.b1 { left: 72%; background: var(--mint); animation-delay: .1s; }
.sl-band.b2 { left: 80%; width: 1.6vmax; background: var(--ink); animation-delay: .22s; }
.sl-band.b3 { left: 12%; width: 1.4vmax; background: var(--brand); animation-delay: .34s; }
@keyframes sl-band-in { to { transform: skewX(-25deg) translateX(0); } }
@media (max-width: 700px) {
  .sl-band.b1 { left: 78%; } .sl-band.b2 { left: 92%; } .sl-band.b3 { left: 6%; }
  .sl-bands { -webkit-mask-image: linear-gradient(to bottom, #000 0 10%, transparent 20% 82%, #000 92%); mask-image: linear-gradient(to bottom, #000 0 10%, transparent 20% 82%, #000 92%); }
}
@media (min-width: 701px) and (max-width: 1100px) { .sl-band.b1 { left: 84%; } .sl-band.b2 { left: 93%; } }
.sl-snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; animation: sl-fade 1.5s ease 1.8s forwards; }
.sl-logo { width: 100%; height: auto; overflow: visible; display: block; }
.sl-seven, .sl-ell, .sl-letter { fill: var(--brand); }
.sl-seven { transform: translate(-220px, -380px); opacity: 0; animation: sl-mark-in .85s cubic-bezier(.2,.9,.25,1.15) .55s forwards; }
.sl-ell { transform: translate(220px, 380px); opacity: 0; animation: sl-mark-in .85s cubic-bezier(.2,.9,.25,1.15) .7s forwards; }
@keyframes sl-mark-in { to { transform: translate(0, 0); opacity: 1; } }
.sl-slash { stroke: var(--ink); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 540; stroke-dashoffset: 540; animation: sl-slash .5s ease-out 1.35s forwards, sl-slash-out .6s ease 2.2s forwards; }
@keyframes sl-slash { to { stroke-dashoffset: 0; } }
@keyframes sl-slash-out { to { stroke-width: 0; } }
.sl-shine { transform: translateX(-200px); animation: sl-shine 4.5s ease-in-out 2.6s infinite; }
@keyframes sl-shine { 0% { transform: translateX(-200px); } 35%, 100% { transform: translateX(900px); } }
.sl-letter { opacity: 0; transform: translateY(40px); animation: sl-letter .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1.55s + var(--i) * .07s); }
.sl-letter-b { animation-delay: calc(1.85s + var(--i) * .07s); }
@keyframes sl-letter { to { opacity: 1; transform: translateY(0); } }
@keyframes sl-up { to { opacity: 1; transform: translateY(0); } }
@keyframes sl-fade { to { opacity: 1; } }
@keyframes sl-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,31,110,.6); } 100% { box-shadow: 0 0 0 12px rgba(255,31,110,0); } }

.sl-btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; transition: transform .15s ease, background .15s, color .15s; }
.sl-btn:hover { transform: translateY(-2px); }
.sl-btn.primary { background: var(--brand); color: #fff; }
.sl-btn.ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.sl-btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---- Home: intro con zoom dentro il logo ---- */
.sl-intro { position: relative; height: 340vh; --snow: rgba(200, 50, 90, 0.16); }
@media (max-width: 700px) { .sl-intro { height: 300vh; } }
.sl-stage { position: sticky; top: 61px; height: var(--stage-h); overflow: hidden; }
.sl-under { --r: 1; position: absolute; inset: 0; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 0 7vw; transform: scale(1.12); transform-origin: 50% 50%;
  background: radial-gradient(120% 70% at 50% 115%, rgba(63, 196, 140, 0.22), transparent 60%), radial-gradient(60% 50% at 90% 0%, rgba(255, 31, 110, 0.18), transparent 70%), linear-gradient(180deg, #121214 0%, #0a0a0b 100%); }
/* sfondo: linee del campo appena accennate + i due tagli diagonali del 7L */
.slu-bg { position: absolute; inset: 0; pointer-events: none; }
.slu-pitch { position: absolute; inset: -4%; width: 108%; height: 108%; fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.5; transform: perspective(900px) rotateX(calc(18deg + 8deg * (1 - var(--r)))); transform-origin: 50% 100%; }
.slu-stripe { position: absolute; top: -10%; bottom: -10%; transform: skewX(-25deg) translateX(calc(40vw * (1 - var(--r)))); opacity: var(--r); }
.slu-stripe.s1 { right: 9%; width: clamp(34px, 6vw, 84px); background: linear-gradient(180deg, var(--brand), rgba(255, 31, 110, 0.15)); }
.slu-stripe.s2 { right: calc(9% - clamp(22px, 3.6vw, 52px)); width: clamp(8px, 1.4vw, 20px); background: linear-gradient(180deg, var(--mint), rgba(63, 196, 140, 0.1)); }
.slu-inner { position: relative; max-width: 760px; }
/* comparsa a cascata guidata dallo scroll (--r da 0 a 1, impostata da intro.js) */
.slu-inner > * { opacity: clamp(0, calc(var(--r) * 2.4 - var(--k) * 0.35), 1); transform: translateY(calc((1 - clamp(0, calc(var(--r) * 2.4 - var(--k) * 0.35), 1)) * 28px)); }
.slu-inner > :nth-child(1) { --k: 0; } .slu-inner > :nth-child(2) { --k: 1; } .slu-inner > :nth-child(3) { --k: 2; } .slu-inner > :nth-child(4) { --k: 3; }
.slu-home > .slu-potm { --k: 1.5; }
.sl-under .kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); font: 600 11px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.sl-under .kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(63, 196, 140, 0.18); }
.sl-under h1 { margin: 22px 0 30px; display: flex; flex-direction: column; font: 700 clamp(48px, 11vw, 128px)/.88 var(--display); letter-spacing: -.045em; text-transform: uppercase; color: #fff; }
.sl-under h1 .l2 { padding-left: .45em; }
.sl-under h1 .l3 { color: var(--brand); }
.sl-facts { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sl-facts div { padding: 16px clamp(16px, 3vw, 28px); }
.sl-facts div + div { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.09); }
.sl-facts b { display: block; font: 600 clamp(24px, 4.4vw, 36px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sl-facts small { display: block; margin-top: 8px; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 600; }
.sl-under-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.sl-under .sl-btn { padding: 15px 26px; }
.sl-under .sl-btn.primary { box-shadow: 0 12px 30px -12px rgba(255, 31, 110, 0.8); }
.sl-under .sl-btn.primary span { display: inline-block; margin-left: 6px; transition: transform .2s var(--ease); }
.sl-under .sl-btn.primary:hover span { transform: translateX(3px); }
.sl-under .sl-btn.ghost { border: 0; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); color: #fff; }
.sl-under .sl-btn.ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 560px) { .sl-under h1 .l2 { padding-left: 0; } .slu-stripe { opacity: calc(var(--r) * 0.55); } }

.sl-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px 36px; overflow: hidden; contain: paint;
  background: radial-gradient(120% 80% at 70% 10%, #fbf1f0 0%, var(--bg) 55%, var(--bg-deep, #eed8d8) 100%); }
.sl-zoom { position: relative; z-index: 1; width: min(56vw, 300px, calc(var(--stage-h) * 0.4)); transform-origin: 35.3% 38%; }
/* a fine zoom lo schermo è tutto rosa: un velo rosa prende il posto del logo ingrandito */
.sl-cover::after { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--brand); opacity: var(--fill, 0); pointer-events: none; }
.sl-cover-ui { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sl-edition { margin: 24px 0 0; display: flex; align-items: center; gap: 12px; font: 700 clamp(12px, 3.2vw, 14px)/1 var(--display); letter-spacing: .32em; text-transform: uppercase; opacity: 0; transform: translateY(12px); animation: sl-up .6s ease 2.4s forwards; }
.sl-edition .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: sl-pulse 1.8s ease-out 3s infinite; }
.sl-edition .mint { color: #1f9e6b; }
.sl-sub { margin: 10px 0 0; font-size: clamp(12.5px, 3.3vw, 15px); color: var(--muted); opacity: 0; animation: sl-up .6s ease 2.55s forwards; font-variant-numeric: tabular-nums; }
.sl-next { margin-top: 24px; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 18px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 14px; width: min(92vw, 460px); opacity: 0; transform: translateY(14px); animation: sl-up .6s ease 2.75s forwards; transition: background .2s var(--ease); }
.sl-next:hover { background: #1c1c1e; }
.sl-next-label { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mint); font-weight: 600; }
.sl-live-tag { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.sl-live-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: sl-pulse 1.8s ease-out infinite; }
.sl-team { display: flex; align-items: center; gap: 10px; font: 600 clamp(13px, 3.6vw, 15.5px)/1.15 var(--display); text-align: left; }
.sl-team.home { justify-content: flex-end; text-align: right; }
.sl-vs { font: 700 14px/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .sl-team .badge { display: none; } }
.sl-scroll { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 10.5px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: sl-up .6s ease 3.1s forwards; }
.sl-scroll i { width: 2px; height: 34px; background: linear-gradient(var(--brand), transparent); animation: sl-drip 1.6s ease-in-out 3.4s infinite; }
@keyframes sl-drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Visite successive nella stessa sessione: intro rapida */
.sl-seen .sl-band { animation-duration: .5s; animation-delay: 0s; }
.sl-seen :is(.sl-seven, .sl-ell, .sl-letter, .sl-edition, .sl-sub, .sl-next, .sl-scroll, .sl-snow) { animation-delay: 0s; animation-duration: .45s; }
.sl-seen .sl-slash { display: none; }

/* ---- Diretta: apertura della partita live ---- */
.sl-live { position: relative; overflow: hidden; isolation: isolate; min-height: var(--stage-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100vw; margin: -28px 0 0 calc(50% - 50vw); padding: 36px 20px 44px; --snow: rgba(200, 50, 90, 0.16);
  background: radial-gradient(120% 80% at 70% 10%, #fbf1f0 0%, var(--bg) 55%, var(--bg-deep, #eed8d8) 100%); }
.sl-live .sl-zoom { width: min(40vw, 210px, calc(var(--stage-h) * 0.26)); transform: none; will-change: auto; }
.sl-badge { position: relative; z-index: 2; margin-top: 26px; display: flex; align-items: center; gap: 14px; background: var(--brand); color: #fff; padding: 12px 28px 12px 22px; border-radius: 999px;
  font: 700 clamp(26px, 7vw, 40px)/1 var(--display); letter-spacing: .18em; opacity: 0; transform: scale(.6); animation: sl-pop .55s cubic-bezier(.2,1.4,.4,1) 2.3s forwards; box-shadow: 0 10px 30px rgba(255,31,110,.35); }
.sl-badge .rec { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: sl-blink 1.2s steps(2, end) 3s infinite; }
.sl-badge .rec::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: sl-ring 1.6s ease-out 3s infinite; }
.sl-badge::before { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--brand); opacity: 0; animation: sl-halo 2s ease-out 3s infinite; }
@keyframes sl-pop { to { opacity: 1; transform: scale(1); } }
@keyframes sl-blink { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes sl-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes sl-halo { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25, 1.6); } }
.sl-board { position: relative; z-index: 2; margin-top: 26px; width: min(100%, 520px); background: var(--ink); color: #fff; border-radius: 18px; padding: 18px 18px 16px; opacity: 0; transform: translateY(16px); animation: sl-up .6s ease 2.7s forwards; box-shadow: 0 18px 40px -24px rgba(14,14,15,.6); }
.sl-board-top { display: flex; justify-content: space-between; gap: 10px; font: 600 10.5px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--mint); }
.sl-board-top .min { color: var(--brand); }
.sl-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.sl-side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 600 clamp(13px, 3.6vw, 15.5px)/1.15 var(--display); }
.sl-side .badge.lg { width: 54px; height: 54px; }
.sl-goals { font: 700 clamp(40px, 11vw, 60px)/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sl-goals span { color: var(--brand); padding: 0 6px; }
.sl-ticker { margin-top: 16px; border-top: 1px solid #262626; padding-top: 12px; font-size: 13px; color: #bbb; display: flex; gap: 10px; align-items: center; }
.sl-ticker b { color: #fff; font-weight: 600; }
.sl-live-cta { position: relative; z-index: 2; margin-top: 22px; opacity: 0; animation: sl-up .6s ease 3s forwards; }
/* dopo il primo aggiornamento automatico niente animazione d'ingresso, solo i dati nuovi */
.settled .sl-live :is(.sl-seven, .sl-ell, .sl-letter, .sl-badge, .sl-board, .sl-live-cta, .sl-snow) { animation: none; opacity: 1; transform: none; }
.settled .sl-live .sl-band { animation: none; transform: skewX(-25deg); }
.settled .sl-live .sl-slash { display: none; }

@media (prefers-reduced-motion: reduce) {
  :is(.sl-intro, .sl-live) * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .sl-shine, .sl-snow { display: none; }
}

/* ===== Tema "cipria" Seven League (sito pubblico) =====
   Sfondo rosa cipria morbido; il rosa acceso #ff1f6e resta solo per i dettagli
   (pulsanti, tagli diagonali, live, MVP). Le schede bianche hanno un'ombra rosata
   così si legano allo sfondo invece di staccare. */
body.theme-pink {
  --bg: #f4e5e4;
  --bg-deep: #eed8d8;
  --surface: #fffdfc;
  --muted: #8d7577;
  --muted-2: #b9a3a5;
  --line: rgba(110, 30, 50, 0.1);
  --line-2: rgba(110, 30, 50, 0.17);
  --accent: #ff1f6e;
  --accent-soft: rgba(255, 31, 110, 0.09);
  --shadow-soft: 0 1px 2px rgba(110, 30, 50, 0.05), 0 10px 28px -18px rgba(110, 30, 50, 0.28);
}
.theme-pink :is(.card, .day, .tie, .events, .notice, .team-grid, .placeholder, .tabbar, .table-wrap, .bulk, .fcard) {
  --bg: #faf3f2;
  --line: rgba(110, 30, 50, 0.07);
  --line-2: rgba(110, 30, 50, 0.13);
}
.theme-pink .topbar { background: rgba(244, 229, 228, 0.86); border-bottom-color: var(--line); }
.theme-pink .brand img { mix-blend-mode: normal; }
.theme-pink .brand span b { color: var(--muted); }
.theme-pink .tabbar { background: rgba(255, 252, 251, 0.94); border-top-color: var(--line); }
.theme-pink .section-head { border-bottom-color: rgba(14, 14, 15, 0.78); }
.theme-pink .day { background: var(--surface); border-radius: 10px; padding: 14px 16px 2px; box-shadow: var(--shadow-soft); }
.theme-pink .day + .day { margin-top: 14px; }
.theme-pink .day .mrow:last-child { border-bottom: 0; }
.theme-pink :is(.card, .team-grid, .tie, .events, .notice) { box-shadow: var(--shadow-soft); border-radius: 10px; }
.theme-pink .footer { border-top-color: var(--line); }
.theme-pink .scoreboard { border-radius: 14px; }

/* ===== Card giocatori stile figurina ===== */
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (min-width: 560px) { .fcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 820px) { .fcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .fcards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fcard {
  --fc-bg: linear-gradient(160deg, #26262a 0%, #0e0e0f 58%);
  --fc-fg: #fff; --fc-soft: rgba(255, 255, 255, 0.55); --fc-line: rgba(255, 255, 255, 0.12); --fc-face: rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 7.4; padding: 12px 12px 12px; border-radius: 14px 14px 18px 18px;
  background: var(--fc-bg); color: var(--fc-fg);
  display: flex; flex-direction: column;
  box-shadow: 0 10px 24px -14px rgba(14, 14, 15, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fcard:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -16px rgba(14, 14, 15, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
/* taglio diagonale del logo 7L */
.fcard::before, .fcard::after { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.fcard::before { content: ''; position: absolute; z-index: -1; top: -10%; bottom: 47%; right: 15%; width: 11%; background: #ff1f6e; transform: skewX(-25deg); transform-origin: bottom; opacity: 0.95; }
.fcard::after { content: ''; position: absolute; z-index: -1; top: -10%; bottom: 47%; right: 7%; width: 3.5%; transform-origin: bottom; background: var(--mint); transform: skewX(-25deg); opacity: 0.9; }
.fc-name, .fc-stats { position: relative; }
.fcard.special {
  --fc-bg: linear-gradient(160deg, #ffffff 0%, #f1ede6 70%);
  --fc-fg: var(--ink); --fc-soft: rgba(14, 14, 15, 0.5); --fc-line: rgba(14, 14, 15, 0.1); --fc-face: rgba(14, 14, 15, 0.1);
  box-shadow: 0 10px 24px -14px rgba(14, 14, 15, 0.45), inset 0 0 0 1px rgba(14, 14, 15, 0.06);
}
.fc-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 40px; }
.fc-num { display: flex; flex-direction: column; gap: 3px; }
.fc-num b { font: 700 30px/0.9 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fc-num span { font: 600 10.5px/1 var(--display); letter-spacing: 0.16em; color: var(--fc-soft); }
.fcard .badge.sm { width: 26px; height: 26px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.fc-face { position: relative; flex: 1; display: grid; place-items: end center; margin: 2px -12px 0; min-height: 0; }
.fc-face svg { width: 74%; height: auto; max-height: 100%; fill: var(--fc-face); display: block; }
.fc-ini { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font: 700 clamp(18px, 6vw, 26px)/1 var(--display); letter-spacing: 0.02em; color: var(--fc-soft); }
.fc-cap { position: absolute; left: 12px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); font: 700 11px/1 var(--display); }
.fc-mvp { position: absolute; right: 12px; bottom: 6px; padding: 4px 7px; border-radius: 99px; background: #ff1f6e; color: #fff; font: 700 9.5px/1 var(--display); letter-spacing: 0.1em; }
.fc-name { text-align: center; padding: 10px 0 9px; border-top: 1px solid var(--fc-line); }
.fc-name span { display: block; font-size: 11.5px; color: var(--fc-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-name b { display: block; font: 700 clamp(13px, 3.8vw, 16px)/1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; margin-top: 2px; overflow-wrap: anywhere; }
.fc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding-top: 9px; border-top: 1px solid var(--fc-line); text-align: center; }
.fc-stats div { min-width: 0; }
.fc-stats dt { font: 600 8.5px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fc-soft); }
.fc-stats dd { margin: 5px 0 0; font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.theme-pink .placeholder { background: var(--surface); border-color: transparent; }
/* card con foto del giocatore: la foto riempie la figurina, sfuma nel nero sotto nome e statistiche */
.fc-photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.fcard.has-photo { --fc-line: rgba(255, 255, 255, 0.16); }
.fcard.has-photo::before, .fcard.has-photo::after { opacity: 0.35; }
.fcard.has-photo .fc-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 14, 15, 0.55) 0%, rgba(14, 14, 15, 0) 22%),
    linear-gradient(180deg, rgba(14, 14, 15, 0) 42%, rgba(14, 14, 15, 0.78) 62%, #0e0e0f 80%);
}
.fcard.has-photo.special .fc-top::before {
  background:
    linear-gradient(180deg, rgba(14, 14, 15, 0.5) 0%, rgba(14, 14, 15, 0) 22%),
    linear-gradient(180deg, rgba(14, 14, 15, 0) 42%, rgba(14, 14, 15, 0.7) 62%, rgba(14, 14, 15, 0.92) 80%);
}
.fcard.has-photo .fc-num b, .fcard.has-photo .fc-num span { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }


/* ===== Media partita: highlights e gallery ===== */
.video-frame { border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-soft, 0 10px 28px -18px rgba(0,0,0,.3)); }
.video-frame video { display: block; width: 100%; max-height: 78vh; background: #000; }
.media-lock {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 14px; padding: 44px 22px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #26262a 0%, #0e0e0f 65%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.media-lock::before { content: ''; position: absolute; z-index: -1; top: -30%; bottom: -30%; right: 14%; width: 12%; background: var(--accent, #ff1f6e); transform: skewX(-25deg); opacity: .9; }
.media-lock::after { content: ''; position: absolute; z-index: -1; top: -30%; bottom: -30%; right: 7%; width: 3%; background: var(--mint); transform: skewX(-25deg); opacity: .85; }
.media-lock.video { aspect-ratio: 16 / 9; justify-content: center; padding: 22px; }
.media-lock b { font: 600 20px/1.15 var(--display); letter-spacing: -0.02em; }
.media-lock p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.62); font-size: 14px; max-width: 320px; }
.media-lock-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); margin-bottom: 4px; }
.media-lock-ic svg { width: 22px; height: 22px; fill: #fff; }
.media-lock-ic svg[fill='none'] { fill: none; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 680px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.g-item { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #1a1a1c; aspect-ratio: 2 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
a.g-item:hover img { transform: scale(1.035); }
a.g-item:focus-visible { outline: 2px solid var(--accent, #ff1f6e); outline-offset: 2px; }
.g-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; color: #fff; background: linear-gradient(160deg, #26262a 0%, #0e0e0f 70%); }
.g-locked b { font: 600 24px/1 var(--display); letter-spacing: -0.02em; }
.g-locked span:last-child { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); max-width: 200px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 11, 0.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.6); font: 500 12px/1 var(--body); letter-spacing: .14em; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.08); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font: 300 28px/1 var(--display); cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; } .lb-prev { left: 22%; } .lb-next { right: 22%; } }
body.theme-pink { overflow-x: clip; }
@media (min-width: 760px) { .vote-bar { bottom: 16px; } }
.mvp-win { gap: 20px; padding: 20px; }
.mvp-win-cards { display: flex; gap: 10px; flex: none; }
.mvp-win .vote-done-card { width: 128px; }
.mvp-win .vote-done-card .fcard { box-shadow: 0 0 0 3px var(--accent), 0 18px 30px -14px rgba(255, 31, 110, .55); }
.mvp-win b { font-size: 26px; }
@media (max-width: 420px) { .mvp-win { flex-direction: column; align-items: flex-start; } .mvp-win .vote-done-card { width: 150px; } }
/* frecce per scorrere le card del voto (utili con il mouse) */
.vote-team-head { width: 100%; }
.vote-nav { margin-left: 4px; display: flex; gap: 8px; }
.vote-nav[hidden] { display: none; }
.vote-arrow { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: opacity .2s var(--ease), transform .15s var(--ease); }
.vote-arrow:hover { transform: scale(1.06); }
.vote-arrow:disabled { opacity: .25; cursor: default; transform: none; }
.vote-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .vote-rail { scrollbar-width: thin; scrollbar-color: rgba(14, 14, 15, .25) transparent; }
  .vote-rail::-webkit-scrollbar { display: block; height: 6px; }
  .vote-rail::-webkit-scrollbar-thumb { background: rgba(14, 14, 15, .25); border-radius: 6px; }
}
.vote-team-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-team-head .muted { white-space: nowrap; }
.vote-team-head .badge.sm { flex: none; }
@media (max-width: 420px) { .vote-team-head .muted { display: none; } .vote-nav { margin-left: auto; } }

/* ===== Intro 3D della home (campo di notte) — da "nuove animazioni" ===== */
.sl-3d-canvas, .sl-shade { display: none; }
.sl-3d .sl-cover { background: #05070d; justify-content: flex-end; padding-bottom: clamp(22px, 5vh, 44px); }
.sl-3d :is(.sl-bands, .sl-snow, .sl-zoom) { display: none; }
.sl-3d .sl-3d-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1s ease; }
.sl-3d.sl-3d-ready .sl-3d-canvas { opacity: 1; }
.sl-3d .sl-shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 22%, transparent 52%, rgba(0, 0, 0, .85)); }
.sl-3d .sl-cover-ui { color: #fff; }
.sl-3d .sl-edition { margin-top: 0; }
.sl-3d .sl-sub { color: rgba(255, 255, 255, .72); }
.sl-3d .sl-next { background: rgba(14, 14, 16, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.sl-3d .sl-scroll { color: #fff; }
/* finché la scena non è pronta: campo buio con un leggero respiro */
.sl-3d:not(.sl-3d-ready) .sl-cover { animation: sl-breathe 1.6s ease-in-out infinite alternate; }
@keyframes sl-breathe { from { background-color: #05070d; } to { background-color: #0d1420; } }

/* Intro con il logo riusata nella Fase finale: più corta della home */
.sl-intro-short { height: 260vh; }
@media (max-width: 700px) { .sl-intro-short { height: 230vh; } }
#tabellone { scroll-margin-top: 70px; }

/* ===== Squadre: card fluttuanti ===== */
.float-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; padding: 18px 0 40px; perspective: 1200px; }
@media (min-width: 640px) { .float-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 26px; } }
.float-team { position: relative; display: block; animation: ft-in 0.8s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.ft-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 14px 20px; border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 249, 0.7));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 24px 40px -26px rgba(110, 30, 50, 0.45);
  transform-style: preserve-3d;
  animation: ft-float calc(5.5s + var(--i) * 0.37s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
  transition: box-shadow 0.35s var(--ease);
  will-change: transform;
}
/* alone colorato della squadra */
.ft-glow { position: absolute; z-index: -1; inset: -30% -20% auto; height: 80%; background: radial-gradient(closest-side, var(--tc), transparent); opacity: 0.16; filter: blur(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.ft-idx { position: absolute; top: 12px; left: 16px; font: 600 11px/1 var(--display); letter-spacing: 0.12em; color: var(--muted-2); }
.ft-logo { position: relative; transform: translateZ(40px); transition: transform 0.4s var(--ease); }
.ft-logo .badge.xl { width: clamp(84px, 22vw, 112px); height: clamp(84px, 22vw, 112px); box-shadow: 0 14px 26px -12px rgba(14, 14, 15, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.9); }
.ft-name { margin-top: 18px; font: 600 clamp(14px, 3.8vw, 17px)/1.15 var(--display); letter-spacing: -0.015em; transform: translateZ(24px); }
.ft-meta { margin-top: 6px; font-size: 12px; color: var(--muted); position: relative; transform: translateZ(16px); }
.ft-arrow { position: absolute; left: 100%; margin-left: 6px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
/* ombra a terra che si stringe quando la card sale */
.ft-shadow { position: absolute; left: 14%; right: 14%; bottom: -18px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 30, 50, 0.28), transparent); animation: ft-shadow calc(5.5s + var(--i) * 0.37s) ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); pointer-events: none; }

.float-team:hover .ft-card, .float-team:focus-visible .ft-card { animation-play-state: paused; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), 0 34px 50px -26px rgba(110, 30, 50, 0.55); }
.float-team:hover .ft-shadow { animation-play-state: paused; }
.float-team:hover .ft-glow { opacity: 0.34; transform: scale(1.15); }
.float-team:hover .ft-logo { transform: translateZ(60px) scale(1.06); }
.float-team:hover .ft-arrow { opacity: 1; transform: none; }
.float-team:focus-visible { outline: none; }
.float-team:focus-visible .ft-card { box-shadow: inset 0 0 0 2px var(--accent), 0 34px 50px -26px rgba(110, 30, 50, 0.55); }

/* translate/rotate separati: il JS usa transform per l'inclinazione e si sommano */
@keyframes ft-float {
  0%, 100% { translate: 0 0; rotate: -0.6deg; }
  50% { translate: 0 -12px; rotate: 0.6deg; }
}
@keyframes ft-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.78); opacity: 0.55; } }
@keyframes ft-in { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .float-team, .ft-card, .ft-shadow { animation: none !important; }
}


/* ===== Home: schermata titolo dinamica (prossima partita + giocatore del mese) ===== */
.sl-under { --mx: 0; --my: 0; }
/* luci che si muovono lente sullo sfondo */
.slu-aurora { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(60px); opacity: .5; mix-blend-mode: screen; will-change: transform; }
.slu-aurora.a1 { left: -20vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(63, 196, 140, .55), transparent); animation: slu-drift1 16s ease-in-out infinite alternate; }
.slu-aurora.a2 { right: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(255, 31, 110, .5), transparent); animation: slu-drift2 19s ease-in-out infinite alternate; }
@keyframes slu-drift1 { to { transform: translate(18vmax, -10vmax) scale(1.15); } }
@keyframes slu-drift2 { to { transform: translate(-14vmax, 12vmax) scale(.9); } }
/* parallasse col puntatore */
.slu-pitch { translate: calc(var(--mx) * -18px) calc(var(--my) * -12px); }
.slu-stripe { translate: calc(var(--mx) * 30px) 0; overflow: hidden; }
.slu-stripe::after { content: ''; position: absolute; left: 0; right: 0; height: 35%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .55), transparent); animation: slu-beam 3.6s cubic-bezier(.5, 0, .5, 1) infinite; }
.slu-stripe.s2::after { animation-delay: 1.4s; }
@keyframes slu-beam { from { top: -40%; } to { top: 110%; } }
/* riflesso che attraversa WINTER */
/* WINTER solo contorno: il riempimento scuro, dipinto sopra il contorno (paint-order), copre le linee
   interne dove il carattere sovrappone due forme (es. la gamba della R) */
.sl-under h1 .l2 { position: relative; color: #0e0e10; -webkit-text-stroke: 3px rgba(255, 255, 255, .78); paint-order: stroke fill; }
.sl-under h1 .l2::after { content: attr(data-t); position: absolute; inset: 0; padding-left: inherit; color: transparent; -webkit-text-stroke: 0; background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%) no-repeat; background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: slu-shine 5.5s ease-in-out 1s infinite; pointer-events: none; }
@keyframes slu-shine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }

.slu-home { width: 100%; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.slu-home.has-potm { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'kick potm' 'title potm' 'match potm' 'cta potm'; column-gap: clamp(28px, 5vw, 72px); }
.slu-home.has-potm > .kicker { grid-area: kick; justify-self: start; }
.slu-home.has-potm > h1 { grid-area: title; }
.slu-home.has-potm > .slu-match { grid-area: match; }
.slu-home.has-potm > .sl-under-cta { grid-area: cta; }
.slu-home > .slu-potm { grid-area: potm; align-self: center; }
.slu-home > .kicker { justify-self: start; }
.slu-home h1 { margin: 18px 0 22px; font-size: clamp(44px, 8.4vw, 112px); }

/* prossima partita */
.slu-match { display: block; max-width: 520px; padding: 16px 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -24px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s var(--ease), transform .25s var(--ease); }
.slu-match:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.slu-match-head { display: flex; justify-content: space-between; gap: 10px; font: 600 10.5px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--mint); }
.slu-match-head > :last-child { color: rgba(255, 255, 255, .6); }
.slu-teams { margin-top: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.slu-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.slu-team b { font: 600 clamp(12.5px, 3.4vw, 15px)/1.15 var(--display); letter-spacing: -.01em; }
.slu-team .badge.lg { width: clamp(42px, 10vw, 56px); height: clamp(42px, 10vw, 56px); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); animation: slu-bob 4s ease-in-out infinite; }
.slu-team:last-child .badge { animation-delay: -2s; }
@keyframes slu-bob { 50% { transform: translateY(-4px); } }
.slu-vs { font: 700 clamp(18px, 4.6vw, 26px)/1 var(--display); color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slu-count { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.slu-count[hidden] { display: none; }
.slu-count b { display: block; font: 600 clamp(18px, 4.6vw, 24px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slu-count small { display: block; margin-top: 5px; font: 600 9px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.slu-count b.tick { animation: slu-tick .35s var(--ease); }
@keyframes slu-tick { from { opacity: .3; transform: translateY(-5px); } }
.slu-home .sl-under-cta { margin-top: 22px; }

/* figurina del giocatore del mese */
.slu-potm { display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 900px; }
.slu-potm-label { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.slu-potm-label b { color: #fff; font-weight: 700; }
.slu-potm-label b::before { content: '·'; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.slu-potm-label .star { color: var(--yellow); font-size: 12px; animation: slu-star 2.4s ease-in-out infinite; }
@keyframes slu-star { 50% { transform: scale(1.25) rotate(18deg); filter: drop-shadow(0 0 6px rgba(232, 180, 0, .8)); } }
.potm-card { position: relative; display: block; width: clamp(200px, 22vw, 250px); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; border-radius: 18px; transform-style: preserve-3d; animation: potm-float 6s ease-in-out infinite; will-change: transform; }
.potm-card .fcard { width: 100%; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 60px -10px rgba(255, 31, 110, .35); transition: none; }
.potm-card .fcard:hover { transform: none; }
.potm-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }
@keyframes potm-float { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -14px; rotate: 1.5deg; } }
/* riflesso olografico */
.potm-sheen { position: absolute; inset: 0; border-radius: 14px 14px 18px 18px; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 45%, rgba(63, 196, 140, .18) 52%, transparent 65%) no-repeat; background-size: 250% 100%; mix-blend-mode: overlay; animation: potm-sheen 4.5s ease-in-out infinite; }
@keyframes potm-sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
.slu-potm-hint { font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.slu-potm-hint::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--mint); vertical-align: 1px; animation: sl-pulse 1.8s ease-out infinite; }

@media (max-width: 760px) {
  .sl-under { padding: 0 20px; }
  .slu-home.has-potm { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'kick kick' 'title potm' 'match match' 'cta cta'; column-gap: 12px; }
  .slu-home h1 { margin: 14px 0 16px; font-size: clamp(38px, 11.5vw, 64px); }
  .slu-home.has-potm h1 { font-size: clamp(34px, 10.4vw, 56px); align-self: center; }
  .slu-home.has-potm h1 .l2 { padding-left: 0; }
  .potm-card { width: clamp(112px, 32vw, 150px); }
  .potm-card .fcard { padding: 8px; border-radius: 10px 10px 13px 13px; }
  .potm-card .fc-num b { font-size: 20px; }
  .potm-card .fc-top { min-height: 28px; }
  .potm-card .fc-stats dd { font-size: 12px; }
  .potm-card .fc-stats dt { font-size: 6.5px; }
  .potm-card .fc-name { padding: 6px 0; }
  .potm-card .fc-name b { font-size: 11px; }
  .potm-card .fc-name span { font-size: 9px; }
  .slu-potm { gap: 8px; }
  .slu-potm-label { font-size: 8.5px; letter-spacing: .14em; flex-wrap: wrap; justify-content: center; white-space: normal; text-align: center; }
  .slu-potm-label b::before { display: none; }
  .slu-potm-label b { display: block; width: 100%; }
  .slu-potm-hint { display: none; }
  .slu-match { padding: 12px 14px; }
  .slu-teams { margin-top: 10px; }
  .slu-count { margin-top: 10px; padding-top: 10px; }
  .slu-home .sl-under-cta { margin-top: 16px; }
  .slu-home .sl-btn { padding: 13px 20px; }
}
@media (max-height: 700px) and (max-width: 760px) { .slu-team .badge.lg { width: 34px; height: 34px; } .slu-count small { display: none; } }

/* ===== Profilo del giocatore del mese ===== */
.potm-dialog { padding: 0; border: 0; background: transparent; color: #fff; max-width: min(860px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; }
.potm-dialog::backdrop { background: rgba(8, 8, 10, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease; }
.potm-dialog.is-open::backdrop { opacity: 1; }
.potm-profile { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #1c1c20, #0c0c0e 70%); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); max-height: calc(100dvh - 24px); overflow-y: auto; backface-visibility: hidden; }
.potm-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: 400 24px/1 var(--body); cursor: pointer; transition: background .2s, transform .2s; }
.potm-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.pp-media { position: relative; min-height: 420px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tc) 45%, transparent), transparent 70%), #141416; }
.pp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.pp-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 12, 14, .85)); }
.pp-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 700 120px/1 var(--display); color: rgba(255, 255, 255, .12); }
.pp-num { position: absolute; z-index: 1; left: 22px; bottom: 14px; font: 700 88px/.8 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); }
.pp-stripes i { position: absolute; z-index: 1; top: -10%; bottom: 40%; transform: skewX(-25deg); opacity: .9; }
.pp-stripes i:first-child { right: 18%; width: 12%; background: linear-gradient(180deg, var(--brand), transparent); }
.pp-stripes i:last-child { right: 9%; width: 3.5%; background: linear-gradient(180deg, var(--mint), transparent); }
.pp-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.pp-eyebrow { font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.pp-body h2 { font: 700 clamp(32px, 5vw, 52px)/.95 var(--display); letter-spacing: -.035em; text-transform: uppercase; color: #fff; }
.pp-body h2 span { display: block; font: 500 clamp(15px, 2vw, 18px)/1.2 var(--body); letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-team, .pp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 13px; font-weight: 500; }
.pp-chip { padding-left: 12px; color: rgba(255, 255, 255, .8); }
.pp-chip.mint { background: rgba(63, 196, 140, .15); color: var(--mint); }
.pp-team:hover { background: rgba(255, 255, 255, .14); }
.pp-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pp-stats div { padding: 14px 10px; text-align: center; }
.pp-stats div + div { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08); }
.pp-stats dt { font: 600 9px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.pp-stats dd { margin: 8px 0 0; font: 700 clamp(24px, 4vw, 32px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pp-note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.pp-body .sl-btn { align-self: flex-start; margin-top: auto; }
/* comparsa a cascata dei contenuti del profilo */
.potm-dialog.is-open .pp-body > * { animation: pp-in .5s var(--ease) both; }
.potm-dialog.is-open .pp-body > :nth-child(2) { animation-delay: .06s; }
.potm-dialog.is-open .pp-body > :nth-child(3) { animation-delay: .12s; }
.potm-dialog.is-open .pp-body > :nth-child(4) { animation-delay: .18s; }
.potm-dialog.is-open .pp-body > :nth-child(5) { animation-delay: .24s; }
.potm-dialog.is-open .pp-body > :nth-child(6) { animation-delay: .3s; }
@keyframes pp-in { from { opacity: 0; transform: translateY(14px); } }
.potm-ghost { position: fixed; z-index: 2147483000; margin: 0; pointer-events: none; transform-origin: 50% 50%; backface-visibility: hidden; }
@media (max-width: 640px) {
  .potm-profile { grid-template-columns: 1fr; }
  .pp-media { min-height: 0; aspect-ratio: 4 / 3.4; }
  .pp-num { font-size: 64px; }
  .pp-stats dt { font-size: 7.5px; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  .slu-aurora, .slu-stripe::after, .sl-under h1 .l2::after, .slu-team .badge.lg, .potm-card, .potm-sheen, .slu-potm-label .star, .potm-dialog.is-open .pp-body > * { animation: none !important; }
}

/* ===== Tema "notte" (prova): sfondo nero, grafiche rosa e verdi Seven =====
   Per tornare al rosa: PUBLIC_THEME = 'theme-pink' in src/views/layout.tsx */
body.theme-night {
  --bg: #0a0a0b;
  --bg-deep: #060607;
  --surface: #141416;
  --ink: #f4f1ec;
  --ink-2: rgba(244, 241, 236, 0.8);
  --muted: rgba(244, 241, 236, 0.5);
  --muted-2: rgba(244, 241, 236, 0.28);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --accent-soft: rgba(255, 31, 110, 0.14);
  --solid: #1d1d21;
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
  background: var(--bg);
}
/* grafiche di fondo: aloni rosa e verde e i due tagli diagonali del 7L, sfumati */
body.theme-night::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vmax 45vmax at 105% -5%, rgba(255, 31, 110, 0.16), transparent 70%),
    radial-gradient(50vmax 45vmax at -10% 105%, rgba(63, 196, 140, 0.12), transparent 70%),
    var(--bg); }
body.theme-night::after { content: ''; position: fixed; z-index: -1; pointer-events: none; top: -10vh; bottom: -10vh; right: 6vw; width: clamp(60px, 9vw, 140px);
  background: linear-gradient(90deg, rgba(255, 31, 110, 0.13) 0 62%, transparent 62% 74%, rgba(63, 196, 140, 0.12) 74% 88%, transparent 88%);
  transform: skewX(-25deg);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); }

.theme-night .topbar { background: rgba(10, 10, 11, 0.78); border-bottom-color: var(--line); }
.theme-night .brand img { mix-blend-mode: normal; filter: invert(1); }
.theme-night .tabbar { background: rgba(14, 14, 16, 0.9); border-top-color: var(--line); }
.theme-night .section-head { border-bottom: 0; position: relative; }
.theme-night .section-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--brand) 0 56px, var(--mint) 56px 72px, rgba(255, 255, 255, 0.14) 72px); }
.theme-night .footer { border-top-color: var(--line); }

/* superfici: vetro scuro con filo di luce in alto */
.theme-night :is(.card, .tie, .events, .notice, .placeholder, .bulk, details.box, .flash) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line), 0 20px 40px -26px rgba(0, 0, 0, 0.9);
  border-radius: 14px; border-color: transparent;
}
.theme-night .day { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--surface); border-radius: 14px; padding: 14px 16px 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line); }
.theme-night .day + .day { margin-top: 14px; }
.theme-night .day .mrow:last-child { border-bottom: 0; }
.theme-night .tie.final { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--brand), 0 0 40px -12px rgba(255, 31, 110, 0.5); }

/* elementi che nel tema chiaro erano "inchiostro" scuro */
.theme-night :is(.hero, .scoreboard, .live-banner, .live-panel, .video-frame) { background: linear-gradient(160deg, #1f1f24, #111113); box-shadow: inset 0 0 0 1px var(--line); }
.theme-night .scoreboard { border-radius: 16px; position: relative; overflow: hidden; }
.theme-night .badge { background: var(--solid); }
.theme-night .badge.logo { background: #f3efe6; }
.theme-night .btn { background: var(--ink); border-color: var(--ink); color: #0a0a0b; }
.theme-night .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.theme-night .btn.pink { background: var(--brand); border-color: var(--brand); color: #fff; }
.theme-night :is(.avatar, .vote-arrow) { background: var(--solid); }
.theme-night .vote-bar { background: #1d1d21; box-shadow: 0 0 0 1px var(--line-2), 0 16px 36px -18px rgba(0, 0, 0, .9); }
.theme-night .bar i { background: linear-gradient(90deg, var(--brand), #ff6a9c); }
.theme-night .ball { background: var(--ink); }
.theme-night .pill { background: rgba(255, 255, 255, 0.07); }
.theme-night .sl-btn.ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.theme-night .sl-btn.ghost:hover { background: #fff; color: #0a0a0b; }
.theme-night :is(input, select, textarea) { background: #17171a; color: var(--ink); border-color: var(--line-2); }
.theme-night :is(input, select, textarea):focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(63, 196, 140, 0.18); }
.theme-night .seg a[aria-current='true'] { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.theme-night :is(.topnav a, .subnav a)[aria-current]::after { background: var(--brand); }

/* figurine: su fondo nero prendono un filo di luce colorato */
.theme-night .fcard { box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.theme-night .fcard:hover { box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 1), inset 0 0 0 1px rgba(255, 31, 110, 0.5), 0 0 30px -8px rgba(255, 31, 110, 0.4); }
.theme-night .fcard.special { box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(232, 180, 0, 0.5), 0 0 34px -10px rgba(232, 180, 0, 0.45); }

/* intro con il logo (senza 3D): fondo nero invece che chiaro */
.theme-night .sl-cover { background: radial-gradient(80% 60% at 50% 40%, #1a1a1e, #0a0a0b); color: #fff; }
.theme-night .sl-band.b2 { background: var(--mint); }
.theme-night .sl-slash { stroke: #fff; }

/* Squadre: card fluttuanti in vetro scuro */
.theme-night .ft-card { background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), #141416; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 26px 44px -26px rgba(0, 0, 0, 1); }
.theme-night .ft-glow { opacity: 0.32; }
.theme-night .float-team:hover .ft-glow { opacity: 0.6; }
.theme-night .float-team:hover .ft-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent), 0 34px 54px -26px rgba(0, 0, 0, 1); }
.theme-night .ft-shadow { background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 45%, transparent), transparent); }
.theme-night .ft-logo .badge.xl { box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(255, 255, 255, 0.08); }

/* ===== Classifica interattiva ===== */
.standings tbody tr { --tc: var(--brand); position: relative; transition: opacity .3s var(--ease), background-color .3s var(--ease); }
.standings tbody tr.st-in { animation: st-in .55s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes st-in { from { opacity: 0; transform: translateX(-18px); } }
.standings td { transition: color .25s var(--ease); }
.standings .tname { display: inline-block; transform-origin: 0 50%; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), letter-spacing .35s var(--ease); }
.standings td.teamcell .badge { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s var(--ease); }
.standings td.pts { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), color .25s; }
.standings td.teamcell a:focus-visible { outline: none; }
/* la riga attiva: nome che cresce, stemma che salta, punti in rosa; le altre si attenuano */
@media (hover: hover) { .standings tbody:hover tr:not(:hover):not(:focus-within) { opacity: .42; } }
.standings tbody:focus-within tr:not(:focus-within) { opacity: .42; }
.standings tbody tr:is(:hover, :focus-within) { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, transparent), color-mix(in srgb, var(--tc) 6%, transparent) 60%, transparent); }
.standings tbody tr:is(:hover, :focus-within) .tname { transform: scale(1.22); letter-spacing: -0.01em; font-weight: 600; }
.standings tbody tr:is(:hover, :focus-within) td.teamcell .badge { transform: scale(1.3) rotate(-8deg); box-shadow: 0 0 0 2px var(--tc), 0 6px 18px -4px color-mix(in srgb, var(--tc) 70%, transparent); }
.standings tbody tr:is(:hover, :focus-within) td.pts { transform: scale(1.35); color: var(--brand); }
.standings tbody tr:is(:hover, :focus-within) td { color: var(--ink); }
.standings tbody tr:is(:hover, :focus-within) td.pos { color: var(--ink); font-weight: 700; }
.standings tbody tr:is(:hover, :focus-within) td.pos::before { top: 4px; bottom: 4px; width: 3px; box-shadow: 0 0 12px currentColor; }
.standings tbody tr { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .standings tbody tr.st-in { animation: none; } .standings :is(.tname, .badge, td.pts) { transition: none; } }

/* ===== Menu dinamico (sito pubblico) ===== */
.topbar.is-dynamic { transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.topbar.is-dynamic.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.theme-night .topbar.is-dynamic.is-scrolled { background: rgba(8, 8, 9, 0.9); }
/* barra di avanzamento della pagina, rosa → verde */
.topbar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--brand), #ff6a9c 55%, var(--mint)); box-shadow: 0 0 10px rgba(255, 31, 110, .6); pointer-events: none; }

/* logo: piccolo giro in 3D e scritta che luccica */
.is-dynamic .brand img { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.is-dynamic .brand:hover img { transform: perspective(200px) rotateY(360deg) scale(1.08); }
.is-dynamic .brand span { background: linear-gradient(100deg, var(--ink) 40%, var(--brand) 50%, var(--ink) 60%) no-repeat 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brand-shine 7s ease-in-out 1.5s infinite; }
.is-dynamic .brand span b { -webkit-text-fill-color: var(--muted); }
@keyframes brand-shine { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }

/* voci del menu: una "pillola" scorre sotto la voce puntata */
.is-dynamic .topnav { position: relative; gap: 2px; align-items: center; }
.is-dynamic .topnav a { padding: 8px 14px; border-radius: 99px; z-index: 1; transition: color .25s var(--ease); }
.is-dynamic .topnav a:hover, .is-dynamic .topnav a:focus-visible { color: var(--ink); outline: none; }
.is-dynamic .topnav a[aria-current]::after { display: none; }
.nav-pill { position: absolute; z-index: 0; top: 50%; left: 0; height: 34px; width: var(--pw, 0); transform: translate(var(--px, 0), -50%); border-radius: 99px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), opacity .25s; pointer-events: none; }
.theme-pink .nav-pill { background: rgba(14, 14, 15, .06); box-shadow: none; }
.nav-pill.on { opacity: 1; }
.nav-pill::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--mint)); transform: scaleX(var(--pc, 0)); transition: transform .35s var(--ease); }

/* Accedi: bordo con luce che gira */
.is-dynamic .account-link:not(:has(.avatar)) { position: relative; isolation: isolate; box-shadow: none; overflow: hidden; transition: transform .2s var(--ease); }
.is-dynamic .account-link:not(:has(.avatar))::before { content: ''; position: absolute; z-index: -2; inset: -150%; background: conic-gradient(from 0deg, transparent 0 70%, var(--brand) 80%, var(--mint) 90%, transparent 100%); animation: acc-spin 4s linear infinite; }
.is-dynamic .account-link:not(:has(.avatar))::after { content: ''; position: absolute; z-index: -1; inset: 1.5px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.is-dynamic .account-link:hover { transform: translateY(-1px); }
@keyframes acc-spin { to { transform: rotate(1turn); } }

/* tab bar mobile: una goccia rosa scorre sulla voce attiva */
.tabbar { isolation: isolate; }
.tab-blob { position: absolute; z-index: -1; top: 6px; left: 6px; height: 50px; width: var(--tw, 0); transform: translateX(var(--tx, 0)); border-radius: 16px; background: radial-gradient(80% 90% at 50% 0%, rgba(255, 31, 110, .22), rgba(255, 31, 110, .05)); box-shadow: inset 0 0 0 1px rgba(255, 31, 110, .18); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; pointer-events: none; }
.tab-blob.on { opacity: 1; }
.tabbar a[aria-current='page']::before { display: none; }
.tabbar a[aria-current='page'] { color: var(--ink); }
.tabbar a[aria-current='page'] svg { color: var(--brand); animation: tab-pop .6s cubic-bezier(.3, 1.6, .5, 1) .15s backwards; }
.tabbar a svg { transition: transform .2s var(--ease); }
.tabbar a:active svg { transform: scale(.82); }
@keyframes tab-pop { from { transform: translateY(6px) scale(.6); } }

@media (prefers-reduced-motion: reduce) {
  .is-dynamic .brand span, .is-dynamic .account-link::before, .tabbar a[aria-current='page'] svg { animation: none !important; }
  .nav-pill, .tab-blob, .is-dynamic .brand img { transition: none; }
}

/* Accesso al pannello: visibile solo agli admin dopo il login */
.admin-link { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(255, 31, 110, .35); transition: background .2s var(--ease); }
.admin-link::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.admin-link:hover { background: rgba(255, 31, 110, .22); }
.admin-link + .account-link { margin-left: 10px; }
@media (min-width: 760px) { .topnav ~ .admin-link { margin-left: 16px; } }
.admin-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(255, 31, 110, .18), rgba(63, 196, 140, .08)); box-shadow: inset 0 0 0 1px rgba(255, 31, 110, .3); font-size: 20px; }
.admin-entry b { display: block; font: 600 16px/1.2 var(--display); }
.admin-entry small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* Figurine cliccabili (rose, partita): si aprono nel profilo */
.pcard-btn { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; border-radius: 14px 14px 18px 18px; }
.pcard-btn .fcard { width: 100%; }
.pcard-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.pcard-btn:active .fcard { transform: scale(.97); }
.pcard-btn:not(.potm-card) .fcard::after { transition: transform .4s var(--ease); }
.pcard-btn:not(.potm-card):hover .fcard { transform: translateY(-5px) rotate(-1deg); }
.pcard-btn:not(.potm-card) { width: 100%; }

/* Menu in alto anche su schermi medi (tablet, finestre strette): versione compatta fino a 1040px */
@media (min-width: 760px) and (max-width: 1039px) {
  .topbar .wrap { gap: 14px; }
  .brand span b { display: none; }
  .is-dynamic .topnav a, .topnav a { padding: 8px 9px; font-size: 13px; }
  .topnav { gap: 0; }
  .topnav + .account-link, .topnav ~ .admin-link { margin-left: 10px; }
  .topnav a, .brand span { white-space: nowrap; }
  /* qui "Admin" diventa solo il pallino rosa, per lasciare spazio alle voci */
  .admin-link { font-size: 0; gap: 0; padding: 0; width: 32px; height: 32px; justify-content: center; }
  .admin-link + .account-link { margin-left: 8px; }
}
@media (min-width: 760px) and (max-width: 879px) { .brand span { display: none; } }

/* Giocatore della settimana: titolo sopra, settimana sotto (non allarga la colonna) */
.slu-potm-label { flex-wrap: wrap; justify-content: center; white-space: normal; text-align: center; row-gap: 6px; max-width: 260px; }
.slu-potm-label b { display: block; width: 100%; font-size: 12px; letter-spacing: .12em; }
.slu-potm-label b::before { display: none; }

/* Admin: formazioni */
.lu-admin { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 760px) { .lu-admin { grid-template-columns: 1fr 1fr; } }
.lu-admin-team h3 { margin-bottom: 4px; }
.lu-bench-pick { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; margin: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.lu-bench-pick legend { font: 500 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.lu-bench-pick .check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-2); }
.lu-bench-pick .check input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; }

/* ===== Formazioni a confronto ===== */
.lu-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto 14px; }
.lu-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); min-width: 0; }
.lu-head.away { flex-direction: row-reverse; text-align: right; }
.lu-head span { min-width: 0; }
.lu-head b { display: block; font: 600 14px/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-head small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.lu-head:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .08); }
.lu-head[aria-pressed='true'] { box-shadow: inset 0 0 0 1.5px var(--tc), 0 0 24px -8px var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.lu-vs { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

.lu-pitch { position: relative; max-width: 560px; margin: 0 auto; aspect-ratio: 100 / 150; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 10%, transparent 10% 20%), radial-gradient(120% 60% at 50% 50%, #17321f, #0d1a11 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.lu-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: .5; vector-effect: non-scaling-stroke; }
.lu-half { position: absolute; left: 0; right: 0; height: 50%; display: flex; flex-direction: column; justify-content: space-around; padding: 3% 2%; transition: opacity .35s var(--ease), filter .35s var(--ease); }
.lu-half.away { top: 0; }
.lu-half.home { bottom: 0; flex-direction: column-reverse; }
.lu-half.away .lu-row { flex-direction: row-reverse; } /* gli ospiti guardano verso il basso: la loro sinistra è la nostra destra */
.lu-row { display: flex; justify-content: space-evenly; align-items: center; }
.lu-empty { width: 54px; }
.lu-missing { margin: auto; padding: 0 20px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* figurina ridotta */
.lu-player { --s: clamp(46px, 12.5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; width: calc(var(--s) + 30px); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.lu-token { position: relative; display: block; width: var(--s); height: calc(var(--s) * 1.3); border-radius: 10px; overflow: visible; background: linear-gradient(160deg, #2a2a30, #121214); box-shadow: 0 0 0 2px var(--tc), 0 10px 18px -8px rgba(0, 0, 0, .9); transition: box-shadow .3s var(--ease); }
.lu-token img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 10px; }
.lu-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 700 calc(var(--s) * .32)/1 var(--display); color: rgba(255, 255, 255, .55); }
.lu-num { position: absolute; left: -7px; top: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--tc); color: #fff; font: 700 11px/1 var(--display); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.lu-cap { position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--yellow); color: #111; font: 800 11px/1 var(--display); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.lu-ev { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 99px; background: rgba(10, 10, 11, .9); font-size: 10px; line-height: 1; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.lu-ev .cards-ic { margin: 0; width: 6px; height: 9px; }
.lu-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(9.5px, 2.6vw, 11.5px)/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.lu-player:hover, .lu-player:focus-visible { transform: translateY(-5px) scale(1.1); outline: none; z-index: 2; }
.lu-player:hover .lu-token, .lu-player:focus-visible .lu-token { box-shadow: 0 0 0 2px var(--tc), 0 0 0 5px color-mix(in srgb, var(--tc) 30%, transparent), 0 0 26px -2px var(--tc), 0 14px 22px -8px rgba(0, 0, 0, .9); }
.lu-player:active { transform: scale(.95); }

/* evidenzia una squadra toccando il suo nome */
.lu-pitch[data-focus='home'] .lu-half.away, .lu-pitch[data-focus='away'] .lu-half.home,
.lineups[data-focus='home'] .lu-bench.away, .lineups[data-focus='away'] .lu-bench.home { opacity: .22; filter: grayscale(.8); }
.lu-pitch[data-focus='home'] .lu-half.home .lu-player, .lu-pitch[data-focus='away'] .lu-half.away .lu-player { transform: scale(1.08); }

/* panchine */
.lu-benches { max-width: 560px; margin: 16px auto 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .lu-benches { grid-template-columns: 1fr 1fr; } }
.lu-bench { padding: 12px 12px 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--tc); transition: opacity .35s var(--ease), filter .35s var(--ease); }
.lu-bench .label { margin-bottom: 12px; }
.lu-bench-row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 4px 6px; scrollbar-width: thin; }
.lu-player.bench { --s: 42px; flex: none; width: 64px; }
.theme-pink .lu-bench, .theme-pink .lu-head { background: var(--surface); }
.theme-pink .lu-head { color: var(--ink); }

/* entrata: i giocatori "scendono in campo" a cascata */
.lineups.lu-anim .lu-player { opacity: 0; transform: translateY(14px) scale(.7); }
.lineups.lu-anim.lu-in .lu-player { opacity: 1; transform: none; transition: opacity .45s var(--ease) calc(var(--i) * 45ms), transform .55s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i) * 45ms); }
.lineups.lu-anim.lu-in .lu-player:hover, .lineups.lu-anim.lu-in .lu-player:focus-visible { transform: translateY(-5px) scale(1.1); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .lu-player, .lu-half, .lu-bench { transition: none !important; } }
/* misure: 4 linee per metà campo devono starci senza toccarsi */
.lu-pitch { aspect-ratio: 100 / 160; max-width: 520px; }
.lu-half { padding: 2.5% 2% 3%; }
.lu-player { --s: clamp(36px, 10vw, 50px); gap: 4px; width: calc(var(--s) + 34px); }
.lu-token { height: calc(var(--s) * 1.22); border-radius: 9px; }
.lu-token img { border-radius: 9px; }
.lu-num { min-width: 19px; height: 19px; font-size: 10px; left: -6px; top: -6px; }
.lu-cap { width: 17px; height: 17px; font-size: 10px; right: -6px; top: -6px; }
.lu-empty { width: calc(clamp(36px, 10vw, 50px) + 34px); }

/* ---------- Statistiche della partita ---------- */
.ms { --ch: var(--mint, #3fc48c); --ca: var(--accent); }
.ms-card { position: relative; padding: 22px 24px 26px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); box-shadow: inset 0 0 0 1px var(--line-2, rgba(0,0,0,.08)), var(--shadow-soft, none); overflow: hidden; isolation: isolate; }
.ms-card::before { content: ''; position: absolute; inset: -40% -10% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 20% 50%, color-mix(in srgb, var(--ch) 14%, transparent), transparent), radial-gradient(closest-side at 80% 50%, color-mix(in srgb, var(--ca) 14%, transparent), transparent); }
.ms-legend { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ms-team { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 600 14px/1.2 var(--display, inherit); cursor: pointer; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease); }
.ms-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-team i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.ms-team.home { --c: var(--ch); }
.ms-team.away { --c: var(--ca); }
.ms-team:hover, .ms-team[aria-pressed='true'] { background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.ms-cols { display: grid; grid-template-columns: 1fr; gap: 6px 28px; }
.ms-col { display: grid; gap: 4px; align-content: start; }
.ms-col + .ms-col { border-top: 1px solid var(--line); padding-top: 8px; }
@media (min-width: 1040px) { .ms-cols { grid-template-columns: repeat(3, 1fr); } .ms-col + .ms-col { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 28px; } }
.ms-row { display: grid; grid-template-columns: 3.2em 1fr 3.2em; grid-template-areas: 'l l l' 'h b a'; align-items: center; column-gap: 12px; row-gap: 6px; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; outline: none; transition: background-color .3s var(--ease); }
.ms-label { grid-area: l; text-align: center; font-size: 14px; color: var(--ink-2); transition: color .3s var(--ease), transform .3s var(--ease); }
.ms-v { font: 700 22px/1 var(--display, inherit); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .3s var(--ease), transform .3s var(--ease); }
.ms-v.h { grid-area: h; }
.ms-v.a { grid-area: a; text-align: right; }
.ms-bar { grid-area: b; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ms-half { position: relative; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.ms-half i { position: absolute; top: 0; bottom: 0; border-radius: inherit; transition: width .9s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 60ms), opacity .3s var(--ease), box-shadow .3s var(--ease); }
.ms-half.h i { right: 0; width: var(--ph); background: linear-gradient(270deg, var(--ch), color-mix(in srgb, var(--ch) 70%, #fff)); }
.ms-half.a i { left: 0; width: var(--pa); background: linear-gradient(90deg, var(--ca), color-mix(in srgb, var(--ca) 75%, #fff)); }
.ms-row.lead-h .ms-v.h { color: var(--ch); }
.ms-row.lead-a .ms-v.a { color: var(--ca); }
.ms-row:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ms-row:is(:hover, :focus-visible) .ms-label { color: var(--ink); transform: scale(1.06); }
.ms-row:is(:hover, :focus-visible) .ms-v { transform: scale(1.15); }
.ms-row:is(:hover, :focus-visible) .ms-half.h i { box-shadow: 0 0 14px var(--ch); }
.ms-row:is(:hover, :focus-visible) .ms-half.a i { box-shadow: 0 0 14px var(--ca); }
.ms-cols:has(.ms-row:hover) .ms-row:not(:hover) { opacity: .55; }
.ms-row { transition: background-color .3s var(--ease), opacity .3s var(--ease); }
/* squadra evidenziata dalla legenda */
.ms[data-focus='home'] :is(.ms-half.a i, .ms-v.a, .ms-team.away) { opacity: .25; }
.ms[data-focus='away'] :is(.ms-half.h i, .ms-v.h, .ms-team.home) { opacity: .25; }
/* entrata: le barre crescono dal centro */
.ms.ms-anim:not(.ms-in) .ms-half i { width: 0; }
@media (max-width: 759px) {
  .ms-card { padding: 16px 14px 18px; border-radius: 18px; }
  .ms-team { font-size: 13px; padding: 6px 8px; }
  .ms-team span { white-space: normal; line-height: 1.15; }
  .ms-team.away { text-align: right; }
  .ms-v { font-size: 19px; }
}
/* admin: modulo statistiche */
.ms-admin { margin-top: 16px; display: grid; gap: 14px; }
.ms-admin-grid { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, 160px) minmax(90px, 160px); gap: 8px 12px; align-items: center; }
.ms-admin-grid > b { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.ms-admin-grid input { width: 100%; }

/* ---------- Pronostici ---------- */
.pred { --ch: var(--mint, #3fc48c); --ca: var(--accent); }
.pr-card { position: relative; padding: 20px 22px 22px; border-radius: 22px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 4%, transparent), color-mix(in srgb, var(--ink) 1%, transparent)); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-soft, none); }
.pr-card::before { content: ''; position: absolute; z-index: -1; inset: -50% -20% auto; height: 90%; pointer-events: none; background: radial-gradient(closest-side at 25% 50%, color-mix(in srgb, var(--ch) 13%, transparent), transparent), radial-gradient(closest-side at 75% 50%, color-mix(in srgb, var(--ca) 13%, transparent), transparent); }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.pr-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); font: 600 12px/1 var(--display, inherit); letter-spacing: .04em; }
.pr-pill b { font-variant-numeric: tabular-nums; }
.pr-pill.open { background: color-mix(in srgb, var(--ch) 16%, transparent); color: var(--ch); }
.pr-pill.open i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pr-pulse 1.6s ease-in-out infinite; }
@keyframes pr-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ch) 0%, transparent); opacity: .5; } 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ch) 50%, transparent); } }
.pr-note { margin: 0; color: var(--ink-2); max-width: 60ch; }
.pr-pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pr-side { display: grid; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.pr-team { font: 600 15px/1.2 var(--display, inherit); }
.pr-colon { font: 700 34px/1 var(--display, inherit); color: var(--muted); padding-top: 60px; }
.pr-step { display: inline-flex; align-items: center; gap: 6px; }
.pr-step input { width: 64px; height: 64px; text-align: center; font: 700 34px/1 var(--display, inherit); font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); -moz-appearance: textfield; appearance: textfield; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.pr-step input::-webkit-inner-spin-button, .pr-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pr-side:first-child .pr-step input:focus { box-shadow: inset 0 0 0 2px var(--ch); outline: none; }
.pr-side:last-child .pr-step input:focus { box-shadow: inset 0 0 0 2px var(--ca); outline: none; }
.pr-step input.bump { animation: pr-bump .3s var(--ease); }
@keyframes pr-bump { 40% { transform: scale(1.12); } }
.pr-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font: 600 20px/1 var(--body, inherit); color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); transition: background-color .2s var(--ease), transform .15s var(--ease); }
.pr-btn:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.pr-btn:active { transform: scale(.9); }
.pr-q { font: 700 34px/64px var(--display, inherit); width: 64px; height: 64px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); }
.pr-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 20px; text-align: center; }
.pr-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; }
.pr-mine b { font: 700 20px/1 var(--display, inherit); }
.pr-pts { padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--display, inherit); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pts-3 .pr-pts { background: var(--ch); color: #062016; }
.pts-1 .pr-pts { background: color-mix(in srgb, var(--ch) 22%, transparent); color: var(--ch); }
.pr-dist-bar { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; }
.pr-dist-bar i { min-width: 3px; transition: flex-grow .8s var(--ease); }
.pr-dist-bar .h { flex: var(--h) 1 0; background: var(--ch); }
.pr-dist-bar .d { flex: var(--d) 1 0; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.pr-dist-bar .a { flex: var(--a) 1 0; background: var(--ca); }
.pr-dist-leg { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.pr-dist-leg span:nth-child(2) { text-align: center; }
.pr-dist-leg span:last-child { text-align: right; }
.pr-dist-leg b { display: block; font: 700 18px/1.1 var(--display, inherit); color: var(--ink); }
.pr-top { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pr-top b { color: var(--ink); }
.pr-board .pr-pos { width: 26px; text-align: center; font: 700 15px/1 var(--display, inherit); color: var(--muted); }
.pr-board li:nth-child(1) .pr-pos { color: var(--accent); }
.pr-board li.me { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pr-total { font: 700 20px/1 var(--display, inherit); font-variant-numeric: tabular-nums; }
.pr-total small { font-size: 12px; color: var(--muted); }
@media (max-width: 759px) {
  .pr-card { padding: 16px 14px 18px; }
  .pr-step { gap: 4px; }
  .pr-step input, .pr-q { width: 52px; height: 52px; font-size: 28px; line-height: 52px; border-radius: 13px; }
  .pr-btn { width: 32px; height: 32px; font-size: 18px; }
  .pr-colon { font-size: 26px; padding-top: 56px; }
  .pr-team { font-size: 13px; }
}

/* ---------- Fase finale: tabellone interattivo ---------- */
.bkx { --ch: var(--mint, #3fc48c); --ca: var(--accent); }
.bkx-today { padding: 16px 18px; border-radius: 20px; background: color-mix(in srgb, var(--ink) 3%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 22px; }
.bkx-today-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.bkx-seeds { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bkx-seeds::-webkit-scrollbar { display: none; }
.bkx-seed { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 13px; cursor: default; transition: background-color .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease); }
.bkx-seed b { font: 700 12px/1 var(--display, inherit); color: var(--muted); min-width: 1.2em; text-align: center; }
.bkx-seed .nm { font-weight: 600; white-space: nowrap; }
.bkx-seed small { color: var(--muted); font-variant-numeric: tabular-nums; }
.bkx-seed.out { opacity: .55; }
.bkx-seed.out .nm { text-decoration: line-through; text-decoration-color: var(--ca); }
.bkx-cut { flex: none; display: flex; align-items: center; padding: 0 4px; }
.bkx-cut span { font: 600 10px/1 var(--display, inherit); letter-spacing: .16em; text-transform: uppercase; color: var(--ca); border-left: 2px dashed color-mix(in srgb, var(--ca) 60%, transparent); padding-left: 10px; height: 26px; display: flex; align-items: center; }
.bkx-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.bkx-hint { margin: 0; font-size: 14px; color: var(--ink-2); display: none; align-items: center; gap: 10px; }
.bkx.is-live .bkx-hint { display: flex; }
.bkx-hint-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--ca) 16%, transparent); flex: none; animation: bkx-tap 2.4s ease-in-out infinite; }
@keyframes bkx-tap { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(2px) scale(.92); } 80% { transform: none; } }
.bkx-reset { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 600 13px/1 var(--display, inherit); color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); transition: background-color .2s var(--ease); }
.bkx-reset:hover { background: color-mix(in srgb, var(--ca) 22%, transparent); }

.bkx-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -2px; scrollbar-width: thin; }
.bkx-col { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bkx-col h3 { margin: 0 0 2px; font: 600 12px/1 var(--display, inherit); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.bkx-col h3 small { letter-spacing: .04em; text-transform: none; color: var(--muted); font-weight: 500; }
.bkx-pair { display: flex; flex-direction: column; gap: 12px; position: relative; }
.bkx-fin { display: flex; flex-direction: column; gap: 12px; }
.bkx-third { margin-top: 12px; }

.bkx-tie { position: relative; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 30px -22px rgba(0, 0, 0, .9); transition: box-shadow .3s var(--ease), opacity .3s var(--ease); }
.bkx-tie.final { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ca) 45%, transparent), 0 0 40px -18px var(--ca); }
.bkx-tie-head { display: flex; justify-content: space-between; gap: 8px; padding: 11px 14px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bkx-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; position: relative; transition: background-color .2s var(--ease), opacity .3s var(--ease); }
.bkx-row:last-of-type { padding-bottom: 12px; }
.bkx-row:disabled { cursor: default; }
.bkx-row:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bkx-row:focus-visible { outline: 2px solid var(--ca); outline-offset: -2px; border-radius: 10px; }
.bkx-nm { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bkx-nm .n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkx-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkx-sub.hyp { color: color-mix(in srgb, var(--ca) 80%, var(--ink)); }
.bkx-row.tbd .n { color: var(--muted); font-weight: 500; }
.bkx-row.tbd .badge { opacity: .4; }
.bkx-g { font: 700 17px/1 var(--display, inherit); font-variant-numeric: tabular-nums; }
.bkx-g small { font-size: 11px; color: var(--muted); }
.bkx-row.win .n { color: var(--ink); }
.bkx-row.win::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ch); }
.bkx-tie.hyp .bkx-row.win::before { background: var(--ca); }
.bkx-row.lose { opacity: .42; }
.bkx-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ca); color: #fff; font-size: 12px; font-weight: 700; animation: bkx-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.bkx-tick:empty { display: none; }
.bkx-row.fresh { animation: bkx-in .5s cubic-bezier(.2, .8, .2, 1); }
.bkx-row.from-hyp .badge { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ca) 55%, transparent); }
@keyframes bkx-in { from { opacity: 0; transform: translateX(-14px); } }
@keyframes bkx-pop { from { transform: scale(0); } }
.bkx-link { display: block; padding: 0 14px 12px; margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bkx-link:hover { color: var(--ink); }

/* percorso di una squadra */
.bkx.hl .bkx-row[data-team]:not(.on), .bkx.hl .bkx-seed:not(.on) { opacity: .3; }
.bkx .bkx-row.on { background: color-mix(in srgb, var(--ch) 12%, transparent); }
.bkx .bkx-seed.on { background: color-mix(in srgb, var(--ch) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ch) 60%, transparent); transform: translateY(-1px); }
.bkx.hl .bkx-tie:has(.bkx-row.on) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ch) 55%, transparent), 0 14px 30px -22px rgba(0, 0, 0, .9); }

/* campione */
.bkx-champ { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease); }
.bkx-champ small { display: block; font: 600 10.5px/1 var(--display, inherit); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.bkx-champ b { font: 700 19px/1.1 var(--display, inherit); }
.bkx-trophy { font-size: 26px; filter: grayscale(1); opacity: .5; transition: filter .4s, opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.bkx-champ.on { color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--ch) 20%, transparent), color-mix(in srgb, var(--ca) 18%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ch) 50%, transparent), 0 18px 40px -20px var(--ca); }
.bkx-champ.on .bkx-trophy { filter: none; opacity: 1; transform: rotate(-10deg) scale(1.1); }
.bkx-champ.on .badge { animation: bkx-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.bkx-confetti { position: absolute; left: 40px; top: 50%; width: 7px; height: 10px; border-radius: 2px; pointer-events: none; animation: bkx-conf 1.05s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes bkx-conf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* computer: tabellone vero con le linee di collegamento */
@media (min-width: 1040px) {
  .bkx-cols { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; overflow: visible; padding: 0; margin: 0; }
  .bkx-col { gap: 14px; }
  .bkx-col.qf { min-height: 800px; }
  .bkx-seeds { flex-wrap: wrap; overflow: visible; }
  .bkx-col > .bkx-pair { flex: 1; justify-content: space-around; gap: 0; }
  .bkx-col.fin { position: relative; }
  .bkx-fin { flex: 1; justify-content: center; position: relative; }
  .bkx-fin > .bkx-champ { position: absolute; left: 0; right: 0; bottom: calc(50% + 104px); }
  .bkx-third { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
  /* linee */
  .bkx-pair > .bkx-tie::after { content: ''; position: absolute; right: -22px; top: 50%; width: 22px; border-top: 1.5px solid var(--line-2); }
  .bkx-pair::after { content: ''; position: absolute; right: -22px; top: 25%; bottom: 25%; border-right: 1.5px solid var(--line-2); }
  .bkx-pair::before { content: ''; position: absolute; right: -44px; top: 50%; width: 22px; border-top: 1.5px solid var(--line-2); }
  .bkx-pair > .bkx-tie.decided::after { border-color: color-mix(in srgb, var(--ch) 70%, transparent); }
  .bkx-pair > .bkx-tie.decided.hyp::after { border-color: color-mix(in srgb, var(--ca) 70%, transparent); }
}

/* ---------- Giocatori nelle classifiche: foto + stemma piccolo, riga apribile ---------- */
.pav { position: relative; flex: none; width: 40px; height: 40px; }
.pav-face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--tc) 55%, #2a2a30), #141416); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 70%, transparent); }
.pav-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pav-ini { font: 700 13px/1 var(--display, inherit); color: #fff; letter-spacing: .02em; }
.pav-team { position: absolute; right: -5px; bottom: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface, #141416); }
.pav-team .badge.sm { width: 18px; height: 18px; font-size: 7px; }
.pav.lg { width: 64px; height: 64px; }
.pav.lg .pav-ini { font-size: 20px; }
.pav.lg .pav-team { right: -4px; bottom: -2px; }
.pav.lg .pav-team .badge.sm { width: 24px; height: 24px; font-size: 8.5px; }
.list.plist li { padding: 0; }
.pa-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s var(--ease); }
.pa-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.pa-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.pa-row .pav-face { transition: transform .3s var(--ease); }
.pa-row:hover .pav-face { transform: scale(1.08); }
.list li.lead .pa-row .val { color: var(--accent); }

/* ---------- Pagina squadra: "La maglia" 3D ---------- */
.team-top.has-kit { display: grid; gap: 8px 40px; align-items: center; }
@media (min-width: 900px) { .team-top.has-kit { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); } }
.team-kit { position: relative; margin-top: 28px; padding: 18px 18px 16px; border-radius: 26px; isolation: isolate; overflow: hidden;
  background: radial-gradient(70% 55% at 30% 18%, rgba(255, 31, 110, .22), transparent 70%), radial-gradient(65% 55% at 78% 88%, rgba(82, 217, 160, .2), transparent 70%), color-mix(in srgb, var(--ink) 3%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-soft, none); }
.team-kit::before { content: ''; position: absolute; z-index: -1; inset: -20% -40%; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 46%, rgba(255, 31, 110, .22) 46.5%, rgba(255, 31, 110, .22) 49%, transparent 49.5%, transparent 52%, rgba(82, 217, 160, .18) 52.5%, rgba(82, 217, 160, .18) 54.5%, transparent 55%); }
.kit-head { display: flex; align-items: center; justify-content: space-between; }
.kit-dots { display: inline-flex; gap: 6px; }
.kit-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff1f6e; }
.kit-dots i + i { background: #52d9a0; }
.kit-stage { padding: 14px 4% 26px; }
.kit-stage .maglia-3d { max-width: 420px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45)); }
.kit-hint { margin: 0; text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.kit-hint span { color: #52d9a0; margin-right: 4px; }
@media (min-width: 900px) { .team-kit { margin-top: 36px; } }
@media (max-width: 759px) { .team-kit { margin-top: 22px; padding: 14px 6px 14px; } .kit-head { padding: 0 8px; } .kit-stage { padding: 10px 0 22px; } }
