/* ——— Carriera Giocatore · "Notte di gala allo stadio" ——— */
:root {
  --bg: #050d0a;
  --bg-2: #0a1712;
  --surface: rgba(16, 32, 26, .78);
  --surface-solid: #10201a;
  --surface-2: rgba(28, 50, 41, .7);
  --surface-3: #22392f;
  --border: rgba(160, 255, 200, .12);
  --border-strong: rgba(200, 255, 62, .45);
  --text: #eef6f0;
  --muted: #8fa89c;
  --accent: #c8ff3e;          /* lime da maglia moderna */
  --accent-2: #f2c14e;        /* oro trofei */
  --pink: #ff5c9d;            /* rosa da quotidiano sportivo */
  --accent-ink: #0b1500;
  --danger: #ff5a5f;
  --warn: #ffae42;
  --info: #5ec8ff;
  --paper: #fbe3ea;
  --paper-ink: #2b0d18;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  --font: 'Archivo', system-ui, sans-serif;
  --display: 'Big Shoulders Display', 'Archivo', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --glow: 0 0 24px rgba(200, 255, 62, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eaf1ea; --bg-2: #dde8df; --surface: rgba(255, 255, 255, .86); --surface-solid: #fff; --surface-2: rgba(240, 246, 241, .9); --surface-3: #dfe9e2;
    --border: rgba(20, 60, 40, .14); --border-strong: rgba(60, 120, 0, .5); --text: #0d1d15; --muted: #54695e; --accent: #5a9a00; --accent-2: #b8860b;
    --accent-ink: #fff; --pink: #d6286f; --danger: #d63031; --warn: #c9700a; --info: #1878b8; --glow: 0 0 18px rgba(90, 154, 0, .25);
    --shadow: 0 16px 36px -20px rgba(10, 40, 25, .35); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eaf1ea; --bg-2: #dde8df; --surface: rgba(255, 255, 255, .86); --surface-solid: #fff; --surface-2: rgba(240, 246, 241, .9); --surface-3: #dfe9e2;
  --border: rgba(20, 60, 40, .14); --border-strong: rgba(60, 120, 0, .5); --text: #0d1d15; --muted: #54695e; --accent: #5a9a00; --accent-2: #b8860b;
  --accent-ink: #fff; --pink: #d6286f; --danger: #d63031; --warn: #c9700a; --info: #1878b8; --glow: 0 0 18px rgba(90, 154, 0, .25);
  --shadow: 0 16px 36px -20px rgba(10, 40, 25, .35); color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg);
  color: var(--text); font: 15px/1.55 var(--font); min-height: 100vh; -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
/* Il prato di notte: righe di taglio, riflettori, grana */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(200, 255, 62, .13), transparent 60%),
    radial-gradient(800px 480px at 95% -5%, rgba(94, 200, 255, .10), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(30, 110, 60, .35), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 90px, transparent 90px 180px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] body::before { background: radial-gradient(900px 520px at 8% -8%, rgba(120, 190, 0, .12), transparent 60%), repeating-linear-gradient(90deg, rgba(0, 60, 20, .03) 0 90px, transparent 90px 180px), var(--bg); }

a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .4em; line-height: .98; letter-spacing: .01em; }
h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 900; text-transform: uppercase; }
h2 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .14em; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
code { font-size: 13px; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; }
.boot .ball { font-size: 52px; animation: spin 1s linear infinite; filter: drop-shadow(var(--glow)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— layout ——— */
.wrap { max-width: 1240px; margin: 0 auto; padding: 22px 16px 90px; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(5, 13, 10, .92), rgba(5, 13, 10, .72)); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .topbar { background: rgba(234, 241, 234, .85); }
.brand { font-family: var(--display); font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: .04em; white-space: nowrap; }
.brand .logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 18px; transform: skewX(-8deg); box-shadow: var(--glow); }
.brand b { color: var(--accent); }
.topbar .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); min-width: 0; backdrop-filter: blur(10px);
}
.card::before { /* filo di luce sul bordo alto */
  content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 62, .5), transparent); opacity: .5;
}
.card.flat { box-shadow: none; }
.card.hl { border-color: var(--border-strong); box-shadow: var(--shadow), var(--glow); }
.card h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3::before { content: ''; width: 4px; height: 18px; background: var(--accent); transform: skewX(-12deg); border-radius: 1px; }

/* stagger all'apertura */
.reveal > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.reveal > *:nth-child(2) { animation-delay: .05s; } .reveal > *:nth-child(3) { animation-delay: .1s; } .reveal > *:nth-child(4) { animation-delay: .15s; }
.reveal > *:nth-child(5) { animation-delay: .2s; } .reveal > *:nth-child(6) { animation-delay: .25s; } .reveal > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ——— controlli ——— */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 700 14px var(--font);
  padding: 10px 18px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .2s, filter .15s; white-space: nowrap; letter-spacing: .01em;
}
.btn:hover { border-color: var(--border-strong); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary, .btn.gold {
  font-family: var(--display); font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: .06em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); border: 0; padding: 12px 24px; border-radius: 0;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
.btn.gold { background: linear-gradient(120deg, #ffe08a, var(--accent-2) 45%, #d49b21); color: #251a00; }
.btn.gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 16px 30px; font-size: 20px; }
.btn.primary.sm, .btn.gold.sm { font-size: 14px; padding: 7px 16px; }
.btn.block { width: 100%; justify-content: center; }
input, select, textarea {
  font: 15px var(--font); color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
:root[data-theme="light"] input, :root[data-theme="light"] select { background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 255, 62, .15); outline: none; }
.btn:focus-visible, .chip:focus-visible, .choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
select option, select optgroup { background: var(--surface-solid); color: var(--text); }
label.field { display: block; }
label.field > span { display: block; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 7px; }
input[type=range] { padding: 0; accent-color: var(--accent); background: transparent; border: 0; box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 12px; padding: 11px 13px; cursor: pointer; text-align: left;
  font: 600 14px var(--font); display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: border-color .15s, transform .12s, background .15s;
}
.chip:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--border-strong); }
.chip small { font-size: 12px; line-height: 1.35; font-weight: 400; }
.chip.on { border-color: var(--accent); background: linear-gradient(135deg, rgba(200, 255, 62, .18), rgba(200, 255, 62, .04)); box-shadow: inset 0 0 0 1px var(--accent); }
.chip.bad.on { border-color: var(--danger); background: linear-gradient(135deg, rgba(255, 90, 95, .2), rgba(255, 90, 95, .04)); box-shadow: inset 0 0 0 1px var(--danger); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; font: 700 12px var(--font); background: var(--surface-3); color: var(--text); white-space: nowrap; }
.badge.green { background: rgba(200, 255, 62, .15); color: var(--accent); }
.badge.gold { background: rgba(242, 193, 78, .18); color: var(--accent-2); }
.badge.red { background: rgba(255, 90, 95, .18); color: var(--danger); }
.badge.blue { background: rgba(94, 200, 255, .16); color: var(--info); }
.badge.pink { background: rgba(255, 92, 157, .16); color: var(--pink); }

/* ——— OVR ——— */
.ovr { font-family: var(--display); font-weight: 900; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 9px; font-size: 24px; color: #1a1300; line-height: 1; }
.ovr.big { min-width: 86px; height: 86px; font-size: 56px; border-radius: 18px; }
.ovr.t1 { background: linear-gradient(135deg, #fff2b8, #f2c14e 45%, #b8841b); box-shadow: 0 0 18px rgba(242, 193, 78, .45); }
.ovr.t2 { background: linear-gradient(135deg, #ffffff, #c9d3da 50%, #8a979f); }
.ovr.t3 { background: linear-gradient(135deg, #ffd0a3, #d0884a 50%, #8c4f1f); }
.ovr.t4 { background: linear-gradient(135deg, #dfffa0, #9bd53a 55%, #4f7e12); }

/* ——— Carta giocatore stile "Ultimate" ——— */
.pcard {
  --c1: #d9a15a; --c2: #7a4a1f; --ink: #221306; --shine: rgba(255, 255, 255, .35);
  position: relative; width: 210px; aspect-ratio: 3 / 4.25; flex: none; color: var(--ink); isolation: isolate;
  /* sagoma sinuosa stile carta da collezione: spalle curve, fianchi morbidi, punta dolce */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 142' preserveAspectRatio='none'%3E%3Cpath d='M50 2C60 2 64 8 76 9C86 10 94 6 98 4C99.5 14 98 26 99 40C100 60 99 86 99 104C99 118 80 126 62 132C56 134 52 137 50 140C48 137 44 134 38 132C20 126 1 118 1 104C1 86 0 60 1 40C2 26 0.5 14 2 4C6 6 14 10 24 9C36 8 40 2 50 2Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 142' preserveAspectRatio='none'%3E%3Cpath d='M50 2C60 2 64 8 76 9C86 10 94 6 98 4C99.5 14 98 26 99 40C100 60 99 86 99 104C99 118 80 126 62 132C56 134 52 137 50 140C48 137 44 134 38 132C20 126 1 118 1 104C1 86 0 60 1 40C2 26 0.5 14 2 4C6 6 14 10 24 9C36 8 40 2 50 2Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 142' preserveAspectRatio='none'%3E%3Cpath d='M50 2C60 2 64 8 76 9C86 10 94 6 98 4C99.5 14 98 26 99 40C100 60 99 86 99 104C99 118 80 126 62 132C56 134 52 137 50 140C48 137 44 134 38 132C20 126 1 118 1 104C1 86 0 60 1 40C2 26 0.5 14 2 4C6 6 14 10 24 9C36 8 40 2 50 2Z' transform='translate%284.5 5.5%29 scale%280.91%29' fill='none' stroke='rgba%28255%2C255%2C255%2C.45%29' stroke-width='0.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat, radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(160deg, var(--c1), var(--c2));
  padding: 26px 20px 30px; font-family: var(--display);
}
.pcard-wrap { display: inline-block; flex: none; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pcard-wrap:hover { transform: translateY(-5px) rotate(-1.5deg); }
.pcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .06) 14px 15px), radial-gradient(120% 70% at 20% 0%, var(--shine), transparent 55%); }
.pcard.silver { --c1: #eef2f5; --c2: #8f9ca4; --ink: #121a20; }
.pcard.gold { --c1: #ffe9a0; --c2: #b8841b; --ink: #251a00; }
.pcard.icon { --c1: #1b1f2e; --c2: #07080d; --ink: #f7f2dd; --shine: rgba(200, 255, 62, .25); }
.pcard.icon::after { /* olografico */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 92, 157, .5) 35%, rgba(94, 200, 255, .5) 50%, rgba(200, 255, 62, .5) 65%, transparent 80%);
  background-size: 250% 100%; animation: holo 4s linear infinite;
}
@keyframes holo { from { background-position: 150% 0; } to { background-position: -150% 0; } }
/* contenuto dentro la cornice interna: margini in % della larghezza, così vale per ogni taglia */
.pcard { padding: 15% 15% 26%; display: flex; flex-direction: column; }
.pcard .top { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 2%; }
.pcard .top > div { display: flex; flex-direction: column; align-items: center; }
.pcard .rating { font-size: 50px; font-weight: 900; line-height: .82; color: inherit; background: none; box-shadow: none; display: block; min-width: 0; height: auto; border-radius: 0; font-family: var(--display); }
.pcard .pos { font-size: 17px; font-weight: 800; line-height: 1; margin-top: 3px; }
.pcard .flag { height: 12px; margin-top: 5px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.pcard .num { position: absolute; right: 16%; top: 13%; font-size: 52px; font-weight: 900; opacity: .14; line-height: 1; }
.pcard .pname { text-align: center; font-size: 20px; font-weight: 900; text-transform: uppercase; margin: auto 2% 7px; line-height: 1.05; border-bottom: 1px solid currentColor; padding-bottom: 5px; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pstats { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 3px 18px; font-size: 16px; font-weight: 800; line-height: 1.25; }
.pcard .pstats span { white-space: nowrap; }
.pcard .pstats span b { display: inline-block; min-width: 22px; text-align: right; margin-right: 3px; font-weight: 900; }
.pcard.sm { width: 132px; }
.pcard.sm .rating { font-size: 32px; } .pcard.sm .pos { font-size: 11px; } .pcard.sm .flag { height: 8px; margin-top: 3px; }
.pcard.sm .num { font-size: 32px; }
.pcard.sm .pname { font-size: 12.5px; margin: auto 2% 4px; padding-bottom: 3px; }
.pcard.sm .pstats { font-size: 10px; gap: 1px 9px; } .pcard.sm .pstats span b { min-width: 13px; margin-right: 2px; }

/* ——— barre e stat ——— */
.bar { height: 8px; background: rgba(255, 255, 255, .06); border-radius: 2px; overflow: hidden; transform: skewX(-12deg); }
:root[data-theme="light"] .bar { background: rgba(0, 0, 0, .07); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, rgba(200, 255, 62, .55), var(--accent)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar.warn > i { background: linear-gradient(90deg, rgba(255, 174, 66, .5), var(--warn)); }
.bar.bad > i { background: linear-gradient(90deg, rgba(255, 90, 95, .5), var(--danger)); }
.stat-row { display: grid; grid-template-columns: 1fr 46px; gap: 12px; align-items: center; }
.stat-row + .stat-row { margin-top: 11px; }
.stat-row .lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.stat-row .val { font-family: var(--display); font-size: 26px; font-weight: 900; text-align: right; line-height: 1; }
.weight { font-size: 11px; color: var(--muted); font-weight: 500; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.kpi { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1; }
.kpi span { font: 800 11px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.kpi::after { content: ''; position: absolute; right: -10px; bottom: -18px; width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .05); }

/* ——— tabelle tipo tabellone ——— */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 800 11px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; }
:root[data-theme="light"] td { border-bottom-color: rgba(0, 0, 0, .05); }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: rgba(255, 255, 255, .03); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.me td { background: linear-gradient(90deg, rgba(200, 255, 62, .16), rgba(200, 255, 62, .04)); font-weight: 700; }
tr.promo td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.releg td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
tr.po td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); }
.crest { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.crest.lg { width: 56px; height: 56px; }
.crest-ph { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px 6px 50% 50%; background: linear-gradient(160deg, var(--surface-3), rgba(255, 255, 255, .05)); font: 800 10px var(--display); color: var(--muted); vertical-align: middle; border: 1px solid var(--border); }
.crest-ph.lg { width: 56px; height: 56px; font-size: 20px; }
.flag { height: 12px; border-radius: 2px; vertical-align: middle; }
.team-cell { display: inline-flex; align-items: center; gap: 8px; }

/* ——— home ——— */
.hero { position: relative; text-align: center; padding: 56px 0 34px; overflow: hidden; }
.hero .beams { position: absolute; inset: -40% -10% auto; height: 520px; pointer-events: none; z-index: -1;
  background: conic-gradient(from 200deg at 15% 0%, transparent 0 8deg, rgba(255, 255, 255, .06) 10deg 14deg, transparent 16deg), conic-gradient(from 130deg at 85% 0%, transparent 0 8deg, rgba(255, 255, 255, .06) 10deg 14deg, transparent 16deg);
  animation: sweep 9s ease-in-out infinite alternate; }
@keyframes sweep { to { transform: translateX(3%) rotate(1deg); } }
.hero .kicker { display: inline-block; font: 800 13px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--border-strong); padding: 6px 14px; margin-bottom: 18px; transform: skewX(-10deg); }
.hero h1 { font-size: clamp(46px, 9vw, 112px); line-height: .88; margin-bottom: 18px; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero h1 b { color: var(--accent); text-shadow: 0 0 40px rgba(200, 255, 62, .35); }
.hero p { color: var(--muted); max-width: 660px; margin: 0 auto 26px; font-size: 18px; }
.hero .cards-fan { display: flex; justify-content: center; margin: 34px 0 0; height: 200px; }
.hero .cards-fan .pcard-wrap { position: relative; }
.hero .cards-fan .pcard-wrap:nth-child(1) { transform: rotate(-12deg) translate(34px, 18px); z-index: 1; }
.hero .cards-fan .pcard-wrap:nth-child(2) { z-index: 3; transform: translateY(-8px); }
.hero .cards-fan .pcard-wrap:nth-child(3) { transform: rotate(12deg) translate(-34px, 18px); z-index: 2; }
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: rgba(0, 0, 0, .25); margin: 8px 0 28px; white-space: nowrap; }
.ticker .lbl { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: grid; place-items: center; padding: 0 14px; background: var(--pink); color: #fff; font: 900 13px var(--display); letter-spacing: .16em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.ticker .track { display: inline-block; padding: 10px 0 10px 140px; animation: tick 45s linear infinite; font: 700 15px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ticker .track span { margin-right: 44px; } .ticker .track span::before { content: '●'; color: var(--accent); margin-right: 12px; font-size: 9px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }
.career-card { display: flex; gap: 16px; align-items: center; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.career-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow), var(--glow); }
.career-card .meta { flex: 1; min-width: 0; }
.career-card .meta b { font-family: var(--display); font-size: 24px; font-weight: 900; text-transform: uppercase; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-title { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 14px; }
.section-title h2 { margin: 0; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* ——— wizard ——— */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 20px; }
.steps .s { height: 6px; background: var(--surface-3); transform: skewX(-20deg); }
.steps .s.on { background: var(--accent); box-shadow: var(--glow); }
.pitch { position: relative; aspect-ratio: 68 / 60; border-radius: 12px; overflow: hidden; max-width: 420px; border: 2px solid rgba(255, 255, 255, .5);
  background: repeating-linear-gradient(180deg, #1d7a43 0 10%, #1a6f3c 10% 20%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .35); }
.pitch::before { content: ''; position: absolute; left: 22%; right: 22%; bottom: 0; height: 17%; border: 2px solid rgba(255, 255, 255, .5); border-bottom: 0; }
.pitch::after { content: ''; position: absolute; left: 50%; top: -14%; width: 28%; aspect-ratio: 1; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.pitch .pos { position: absolute; z-index: 2; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .45); color: #fff; font: 900 13px var(--display); letter-spacing: .06em; border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: transform .15s, background .15s; }
.pitch .pos:hover { transform: translate(-50%, -50%) scale(1.12); }
.pitch .pos.on { background: var(--accent); color: var(--accent-ink); border-color: #fff; box-shadow: 0 0 18px rgba(200, 255, 62, .8); }
.preview-card { position: sticky; top: 84px; }
.preview-card .pcard-wrap { display: block; width: fit-content; margin: 0 auto 16px; }

/* ——— dashboard ——— */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash > * { min-width: 0; }
.side { position: sticky; top: 80px; align-self: start; }
@media (max-width: 900px) { .side { position: static; } }
.nav { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 900px) { .nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .nav .btn { flex: none; } }
.nav .btn { justify-content: flex-start; background: transparent; border-color: transparent; font-weight: 600; border-radius: 10px; }
.nav .btn:hover { background: var(--surface-2); }
.nav .btn.on { background: linear-gradient(90deg, rgba(200, 255, 62, .16), transparent); border-color: transparent; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.nav .btn .n { margin-left: auto; }
.hero-career { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 26px; align-items: center; overflow: hidden; }
.hero-career > .pcard-wrap { justify-self: center; margin: 4px 0; }
.hero-career .glowbg { position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 255, 62, .14), transparent); pointer-events: none; }
@media (max-width: 760px) { .hero-career { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.player-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.player-head .who { flex: 1; min-width: 0; }
.player-head .name { font-family: var(--display); font-size: clamp(34px, 5vw, 58px); font-weight: 900; text-transform: uppercase; line-height: .9; }
.player-head .name .first { display: block; font-size: .45em; color: var(--muted); letter-spacing: .1em; }
.player-head .nick { font-family: var(--serif); font-style: italic; color: var(--accent-2); font-size: 18px; }
.club-pill { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); margin-top: 12px; }
.club-pill b { font-family: var(--display); font-size: 20px; text-transform: uppercase; display: block; line-height: 1; }

.phasebar { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 18px 0 14px; }
.phasebar .ph { position: relative; text-align: center; font: 800 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.phasebar .ph::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--surface-3); transform: skewX(-20deg); }
.phasebar .ph.done { color: var(--text); } .phasebar .ph.done::before { background: rgba(200, 255, 62, .55); }
.phasebar .ph.now { color: var(--accent); } .phasebar .ph.now::before { background: var(--accent); box-shadow: var(--glow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (max-width: 620px) { .phasebar .ph span { display: none; } }
.action-panel { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.action-panel .btn.lg { flex: 1; justify-content: center; min-width: 230px; }

.gauge { display: flex; align-items: center; gap: 12px; }
.gauge .ring { --v: 50; --c: var(--accent); width: 68px; height: 68px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .07) 0); display: grid; place-items: center; flex: none; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .3)); }
.gauge .ring::after { content: attr(data-v); width: 54px; height: 54px; border-radius: 50%; background: var(--surface-solid); display: grid; place-items: center; font: 900 22px var(--display); }
.gauge .txt b { display: block; font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }

/* partite: tabellone */
.match-list { display: flex; flex-direction: column; gap: 6px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center; background: linear-gradient(90deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .04); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.match .h { text-align: right; }
.match .score { font: 900 22px var(--display); min-width: 64px; text-align: center; padding: 2px 8px; border-radius: 6px; background: #020604; color: #fff; letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.match .score.win { color: var(--accent); } .match .score.loss { color: var(--danger); } .match .score.draw { color: #d7e2dc; }
.match .me-stats { display: flex; gap: 5px; justify-content: flex-end; min-width: 96px; align-items: center; }
.match .comp { grid-column: 1 / -1; font: 800 11px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: -5px; }
.rating { display: inline-grid; place-items: center; min-width: 38px; height: 26px; border-radius: 6px; font: 900 16px var(--display); color: #0b1500; }
.r-hi { background: var(--accent); box-shadow: 0 0 10px rgba(200, 255, 62, .5); } .r-mid { background: #9be15d; } .r-ok { background: var(--accent-2); } .r-lo { background: #ff8a5d; } .r-bad { background: var(--danger); }
.win { color: var(--accent); } .loss { color: var(--danger); } .draw { color: var(--muted); }
.form-dots { display: inline-flex; gap: 4px; } .form-dots i { width: 22px; height: 22px; display: grid; place-items: center; font: 900 12px var(--display); font-style: normal; border-radius: 5px; color: #0b1500; }
.form-dots i.W { background: var(--accent); } .form-dots i.D { background: #c7d2cc; } .form-dots i.L { background: var(--danger); color: #fff; }

/* coppe europee: identità ufficiali */
.match.ucl { border-left: 3px solid #5ab4ff; background: linear-gradient(90deg, rgba(10, 29, 86, .55), rgba(255, 255, 255, .015)); }
.match.uel { border-left: 3px solid #ff6900; background: linear-gradient(90deg, rgba(255, 105, 0, .18), rgba(255, 255, 255, .015)); }
.match.uecl { border-left: 3px solid #00a651; background: linear-gradient(90deg, rgba(0, 166, 81, .18), rgba(255, 255, 255, .015)); }
.match.mine { box-shadow: inset 0 0 0 1px var(--border-strong); }
.card.uefa { background: radial-gradient(600px 240px at 0% 0%, color-mix(in srgb, var(--uefa) 70%, transparent), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--uefa-2) 40%, transparent); }
.card.uefa::before { background: linear-gradient(90deg, transparent, var(--uefa-2), transparent); opacity: .9; }
.uefa-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.uefa-head > div { min-width: 0; flex: 1; }
.uefa-head img { height: 54px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.uefa-head b { display: block; font: 900 26px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.uefa-head small { color: var(--muted); }
.uefa-head .badge { margin-left: auto; }

/* cronaca e momenti chiave */
.story { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.story ul, .story ol { margin: 0; padding-left: 18px; }
.story li { margin: 3px 0; font-size: 14px; }
.timeline { list-style: none; padding-left: 0 !important; border-left: 2px solid var(--border-strong); }
.timeline li { padding-left: 12px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li b { font-family: var(--display); font-size: 16px; margin-right: 6px; }
.modal[data-cat="partita"]::before { background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); height: 6px; }

/* notizie: carta rosa da quotidiano sportivo */
.news { display: flex; flex-direction: column; gap: 12px; }
.news article { position: relative; background: var(--paper); color: var(--paper-ink); padding: 12px 14px 12px 16px; border-radius: 4px; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .7); transform: rotate(-.25deg); }
.news article:nth-child(even) { transform: rotate(.25deg); }
.news article::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pink); }
.news article.good::before { background: #1f9d55; } .news article.bad::before { background: #c0392b; }
.news article .src { font: 800 11px var(--display); text-transform: uppercase; letter-spacing: .14em; color: #a0305e; }
.news article b { display: block; font-family: var(--serif); font-weight: 900; font-size: 20px; line-height: 1.15; margin: 2px 0 3px; }
.news article small { color: #6b3a4b; }

/* post social stile Instagram */
.ig { background: #fff; color: #111; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8); max-width: 470px; border: 1px solid #dbdbdb; font: 14px/1.4 -apple-system, 'Segoe UI', Roboto, sans-serif; }
.ig header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig header small { display: block; color: #737373; font-size: 12px; }
.ig .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); color: #fff; background: linear-gradient(135deg, #111, #444); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d62976; }
.ig .tick { color: #0095f6; font-size: 12px; } .ig .dots { margin-left: auto; color: #737373; }
.ig-img { aspect-ratio: 1.6; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #3a3a3a, #0c0c0c); position: relative; overflow: hidden; }
.ig-img::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px); }
.ig-img span { position: relative; font: 900 clamp(34px, 7vw, 56px) var(--display); color: #fff; letter-spacing: .02em; text-shadow: 0 0 30px rgba(255, 60, 60, .6); transform: rotate(-4deg); }
.ig-img span::before { content: '🚨 '; }
.ig-actions { display: flex; padding: 8px 12px 0; font-size: 20px; }
.ig-body { padding: 6px 12px 12px; } .ig-body p { margin: 4px 0 0; }
.ig .hwg { font-weight: 900; color: #d62976; }
.news .ig { transform: none !important; }

/* bacheca */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.trophy { position: relative; overflow: hidden; background: linear-gradient(170deg, rgba(242, 193, 78, .12), rgba(255, 255, 255, .02) 60%); border: 1px solid rgba(242, 193, 78, .25); border-radius: 14px; padding: 16px 12px; text-align: center; }
.trophy::after { content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; transform: rotate(25deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 140%; } }
.trophy .ic { font-size: 36px; filter: drop-shadow(0 4px 10px rgba(242, 193, 78, .45)); }
.trophy b { display: block; font-family: var(--display); font-size: 16px; text-transform: uppercase; line-height: 1.1; margin: 6px 0; }
.trophy.locked { opacity: .35; filter: grayscale(1); border-color: var(--border); background: var(--surface-2); }
.trophy.locked::after { display: none; }

.offer { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.offer .fee { font: 900 22px var(--display); color: var(--accent-2); }
@media (max-width: 620px) { .offer { grid-template-columns: auto 1fr; } .offer .actions { grid-column: 1 / -1; } }

/* ——— modali ——— */
#modal-root .overlay { position: fixed; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .8)); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .18s; }
.modal { position: relative; background: linear-gradient(170deg, #13261f, #0a1511); border: 1px solid var(--border); border-radius: 20px; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); padding: 26px; animation: pop .26s cubic-bezier(.2, .9, .3, 1.2); }
:root[data-theme="light"] .modal { background: #fff; }
.modal.wide { width: min(940px, 100%); }
.modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--info), var(--pink)); }
.modal .cat { display: inline-flex; align-items: center; gap: 8px; font: 900 13px var(--display); text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2); }
.modal .ev-icon { float: right; font-size: 54px; line-height: 1; margin: -4px 0 8px 12px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.modal h2 { margin-top: 6px; font-size: 34px; }
.modal[data-cat="lutto"]::before { background: linear-gradient(90deg, #6b7c93, #aab4c3); }
.modal[data-cat="scandalo"]::before, .modal[data-cat="media"]::before { background: linear-gradient(90deg, var(--pink), #ff9f5a); }
.modal[data-cat="infortunio"]::before, .modal[data-cat="salute"]::before { background: linear-gradient(90deg, var(--danger), #ff9f5a); }
.modal[data-cat="amore"]::before { background: linear-gradient(90deg, #ff6fae, #ffb3d1); }
.modal[data-cat="soldi"]::before { background: linear-gradient(90deg, var(--accent-2), #fff0a8); }
.choice { position: relative; display: block; width: 100%; text-align: left; margin-top: 9px; padding: 15px 18px 15px 46px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--text); font: 700 15px var(--font); cursor: pointer; transition: border-color .15s, transform .12s, background .15s; counter-increment: ch; }
.modal { counter-reset: ch; }
.choice::before { content: counter(ch, upper-alpha); position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-3); font: 900 13px var(--display); color: var(--muted); }
.choice:hover { border-color: var(--accent); background: rgba(200, 255, 62, .07); transform: translateX(3px); }
.choice:hover::before { background: var(--accent); color: var(--accent-ink); }
.choice small { display: block; font-weight: 500; margin-top: 3px; }
.changes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.changes .badge { animation: rise .35s both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(.96); opacity: 0; } }
#toast-root { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface-solid); border: 1px solid var(--border-strong); padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); animation: pop .22s; font-weight: 600; }
.toast.err { border-color: var(--danger); }

.attr-train { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.attr-train .chip b { font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1; }
.grade { font: 900 96px var(--display); line-height: .85; }
.grade.A { color: var(--accent); text-shadow: 0 0 30px rgba(200, 255, 62, .6); } .grade.B { color: #9be15d; } .grade.C { color: var(--accent-2); } .grade.D { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 26px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; font-size: 13px; color: var(--text); }
.pill.on { border-color: var(--accent); color: var(--accent); }

/* ——— telefono ——— */
@media (max-width: 620px) {
  .hide-sm { display: none; }
  .brand { font-size: 19px; } .brand .logo { width: 28px; height: 28px; font-size: 15px; }
  .card { padding: 15px; }
  .modal { padding: 18px; } .modal h2 { font-size: 26px; } .modal .ev-icon { font-size: 40px; }
  .action-panel .btn.lg { min-width: 0; width: 100%; }
  .action-panel > div { flex-basis: 100%; }
  .match { grid-template-columns: 1fr auto 1fr; }
  .match .me-stats { grid-column: 1 / -1; justify-content: center; }
  .pcard { width: 180px; } .pcard .rating { font-size: 42px; } .pcard .pname { font-size: 16px; } .pcard .pstats { font-size: 13px; }
  .hero .cards-fan { transform: scale(.72); height: 150px; }
  .ovr.big { min-width: 64px; height: 64px; font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.card > table { display: block; overflow-x: auto; }
@media (max-width: 420px) {
  .topbar { padding: 8px 10px; gap: 6px; }
  .brand { font-size: 16px; gap: 6px; }
  .topbar .btn.sm { padding: 6px 9px; }
  .wrap { padding-inline: 12px; }
}
@media (max-width: 620px) {
  .action-panel { gap: 8px; }
  .action-panel .btn.lg { font-size: 16px; padding: 13px 16px; white-space: normal; text-align: center; line-height: 1.1; flex: 1 1 100%; }
  .action-panel .btn.lg[data-act="match"], .action-panel .btn.lg[data-act="advance"] { flex-basis: calc(50% - 4px); }
  .action-panel .badge { flex-basis: 100%; justify-content: center; }
}

/* ——— sharecard & sfida ——— */
.challenge-card { position: relative; overflow: hidden; margin-top: 22px; border-color: rgba(255, 92, 157, .35); }
.challenge-card::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px 260px at 100% 0%, rgba(255, 92, 157, .16), transparent 60%), radial-gradient(500px 240px at 0% 100%, rgba(200, 255, 62, .08), transparent 60%); }
.challenge-card > * { position: relative; z-index: 1; }
.challenge-card .ch-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.challenge-card .ch-head > div:first-child { flex: 1 1 320px; }
.challenge-card h2 { margin: 10px 0 6px; font-size: clamp(28px, 4.4vw, 42px); }
.challenge-card .ch-side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 200px; }
.challenge-card .ch-side .btn { justify-content: center; text-align: center; }
.ch-timer { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 14px; text-align: center; background: var(--surface-2); }
.ch-timer small { display: block; font: 800 11px var(--display); letter-spacing: .18em; text-transform: uppercase; }
.ch-timer b { font: 900 24px var(--display); color: var(--accent); text-transform: uppercase; }
.ch-table tr.podium td:first-child { font-size: 18px; }
.ch-table tr.p1 td { background: linear-gradient(90deg, rgba(242, 193, 78, .14), transparent 70%); }
.hof-tabs .pill { font: 700 14px var(--font); }
@media (max-width: 620px) {
  .challenge-card .ch-side { width: 100%; }
}
