/* ============================================================
   Ultra Project — site theme
   Palette: black + white + electric violet #7000ff (rgb 112,0,255)
   Display font: Kallisto Bold. Body: Inter.
   ============================================================ */

@font-face {
  font-family: 'Kallisto';
  src: url('../assets/fonts/kallistobold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces — pure black base */
  --bg: #000000;
  --bg-2: #070709;
  --surface: #0e0e12;
  --surface-2: #141419;
  --surface-3: #1b1b22;

  /* Borders */
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.16);

  /* Text — white / off-white */
  --text: #ffffff;
  --text-soft: #d3d3da;
  --text-muted: #9a9aa6;
  --text-dim: #61616d;

  /* Brand accent — electric violet #7000ff (rgb 112,0,255). The single accent. */
  --coral: #7000ff;            /* primary violet (var name kept for compatibility) */
  --coral-600: #5a00d6;        /* press / active, darker */
  --coral-soft: rgba(112,0,255,0.16);

  /* Violet family (all derived from #7000ff) */
  --violet: #9b4dff;           /* lighter complementary violet */
  --violet-2: #c19bff;
  --violet-deep: #4a00b0;
  --cyan: #22d3ee;

  /* Fonts */
  --font-display: 'Kallisto', 'Inter', system-ui, sans-serif;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #7000ff 0%, #9b4dff 100%);
  --grad-text: linear-gradient(100deg, #fff 0%, #d9c4ff 42%, #9b4dff 100%);

  /* Glows / shadows */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.5);
  --shadow-2: 0 16px 50px rgba(0,0,0,0.7);
  --glow-coral: 0 8px 30px rgba(112,0,255,0.45);
  --glow-violet: 0 8px 30px rgba(155,77,255,0.4);

  /* Radii (mirror the design system) */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --container: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
}
.doc-section { scroll-margin-top: 88px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--coral); color: #fff; }

/* Display font (Kallisto) on headings, nav, CTAs, stats — body copy stays Inter */
.hero h1, .page-hero h1, .section-head h2, .cta-band h2,
.eyebrow, .brand-sub, .btn, .nav-links a, .mobile-menu a,
.cd-cell .v, .prize .amt, .prize .rank, .penal-group > h2,
.hero-meta .stat .n, .info-card h3, .ct-card h3, .shop-card h3,
.tl-item .t, .badge-status, .acc-head h3, .legal h3, .footer .col h4 {
  font-family: var(--font-display);
}
/* Kallisto is heavy — relax tracking and bump weight rendering */
.hero h1, .page-hero h1, .section-head h2, .cta-band h2 { letter-spacing: -0.01em; font-weight: 700; }

/* Ambient page glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -8%, rgba(112,0,255,0.2), transparent 60%),
    radial-gradient(800px 480px at 10% 0%, rgba(74,0,176,0.18), transparent 60%);
  pointer-events: none; z-index: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em;
  margin: 14px 0 12px; line-height: 1.08;
}
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.section-pad { padding: clamp(72px, 10vw, 120px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--glow-coral); }
.btn-primary:hover { background: var(--coral-600); box-shadow: 0 10px 36px rgba(112,0,255,0.55); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); }
.btn-discord { background: #5865F2; color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-discord:hover { background: #4752e0; box-shadow: 0 10px 36px rgba(88,101,242,0.45); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,10,14,0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 18px; max-width: 1280px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.01em; font-size: 18px; flex: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--grad-brand); box-shadow: var(--glow-coral);
}
.brand .mark svg { width: 18px; height: 18px; }
.brand .ttl small { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.32em; color: var(--text-muted); text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a {
  padding: 9px 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--text); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: rgba(88,101,242,0.18); border-color: #5865F2; color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.hamburger { display: none; }
.hamburger svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transform: scale(1.05); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,14,0.35) 0%, rgba(10,10,14,0.7) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,14,0.92) 0%, rgba(10,10,14,0.45) 45%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 60px; }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin: 22px 0 18px;
}
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-soft); max-width: 600px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta .stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-meta .stat .n .accent { color: var(--coral); }
.hero-meta .stat .l { font-size: 13px; color: var(--text-muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1; color: var(--text-dim); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--coral), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Feature cards (punti forti) ---------- */
.cards-grid { display: grid; gap: 18px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--coral-soft); color: var(--violet); border: 1px solid rgba(112,0,255,0.3);
}
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* ---------- Path cards (percorsi roleplay) ---------- */
.paths-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.path {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px;
  border: 1px solid var(--line); display: flex; align-items: flex-end; isolation: isolate;
}
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; opacity: .85; }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,14,0.1) 0%, rgba(10,10,14,0.6) 55%, rgba(10,10,14,0.96) 100%); }
.path:hover img { transform: scale(1.08); }
.path .body { padding: 22px; width: 100%; }
.path .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.path h3 { font-size: 21px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.01em; }
.path p { font-size: 13.5px; color: var(--text-soft); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.path:hover p { max-height: 80px; opacity: 1; margin-top: 4px; }

/* ---------- Reels ---------- */
.reels-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.reel:hover img { transform: scale(1.07); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,14,0.9) 100%); }
.reel .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: var(--r-full); background: rgba(255,255,255,0.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; z-index: 2; transition: transform .2s ease, background .2s ease; }
.reel:hover .play { transform: translate(-50%,-50%) scale(1.1); background: var(--coral); border-color: var(--coral); }
.reel .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.reel .cap .t { font-size: 14px; font-weight: 700; }
.reel .cap .l { font-size: 11px; color: var(--coral); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }

/* Instagram reel embeds — framed cards, chrome cropped, homogeneous with the site */
.reels-embed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.reel-card { display: flex; flex-direction: column; gap: 11px; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line-2); background: #0c0c12; box-shadow: var(--shadow-2); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.reel-card:hover .reel-frame { transform: translateY(-5px); border-color: rgba(112,0,255,0.55); box-shadow: 0 18px 50px rgba(112,0,255,0.28); }
/* zoom into the video so Instagram's chrome falls toward the edges... */
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transform: scale(1.44); transform-origin: 50% 31%; }
/* ...then mask any residual IG header (top) and the like/comment/"visualizza profilo" bar (bottom) */
.reel-frame::before, .reel-frame::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
.reel-frame::before { top: 0; height: 11%; background: linear-gradient(180deg, #0c0c12 40%, transparent); }
.reel-frame::after { bottom: 0; height: 17%; background: linear-gradient(0deg, #0c0c12 55%, transparent); }
.reel-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.reel-cap .t { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.reel-cap a { font-size: 12px; font-weight: 600; color: var(--coral); display: inline-flex; align-items: center; gap: 4px; }
.reel-cap a svg { width: 13px; height: 13px; }
@media (max-width: 880px) { .reels-embed { grid-template-columns: repeat(2, 1fr); max-width: 560px; gap: 16px; } }
@media (max-width: 440px) { .reels-embed { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Gallery (foto players) ---------- */
/* ---------- Gallery carousel (foto players) ---------- */
.carousel { position: relative; }
.car-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: #07060c; box-shadow: var(--shadow-2); }
.car-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.car-slide.active { opacity: 1; pointer-events: auto; }
.car-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(30px) brightness(.42) saturate(1.1); transform: scale(1.15); }
.car-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; cursor: zoom-in; }
.car-slide .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 46px 22px 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(10,10,14,.55); border: 1px solid var(--line-2); color: #fff; backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease; }
.car-arrow:hover { background: var(--coral); border-color: var(--coral); }
.car-arrow.prev { left: 16px; } .car-arrow.next { right: 16px; }
.car-arrow svg { width: 22px; height: 22px; }
.car-foot { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.car-count { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; flex: none; }
.car-count .cur { font-size: 30px; color: #fff; }
.car-count .sep, .car-count .tot { font-size: 18px; color: var(--text-muted); }
.car-progress { flex: 1; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.car-progress > span { display: block; height: 100%; width: 10%; background: var(--grad-brand); border-radius: 2px; transition: width .45s ease; }
.car-dots { display: flex; gap: 8px; flex: none; }
.car-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--line-2); transition: background .15s ease, width .15s ease; }
.car-dots button.on { background: var(--coral); width: 22px; border-radius: 4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; padding: 32px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.lightbox .close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: var(--r-full); background: rgba(255,255,255,0.1); border: 1px solid var(--line-2); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); padding: clamp(48px, 7vw, 80px); text-align: center; background: linear-gradient(135deg, rgba(112,0,255,0.2), rgba(155,77,255,0.16)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(112,0,255,0.34), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 14px; line-height: 1.05; }
.cta-band p { color: var(--text-soft); font-size: 18px; max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; margin-top: 40px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .desc { color: var(--text-muted); font-size: 14px; max-width: 320px; margin: 16px 0 20px; }
.footer .socials { display: flex; gap: 10px; }
.footer .socials a { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text-soft); transition: all .15s ease; }
.footer .socials a:hover { color: #fff; transform: translateY(-2px); }
.footer .socials a svg { width: 17px; height: 17px; }
.footer .col h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px; }
.footer .col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer .col a { font-size: 14px; color: var(--text-soft); }
.footer .col a:hover { color: var(--coral); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13px; }
.footer-bot a { color: var(--text-muted); }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Base state is VISIBLE. Only when JS is active AND motion is allowed do
   we hide-then-reveal, so no-JS / reduced-motion / print always show content. */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(24px); }
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: rgba(10,10,14,0.98); backdrop-filter: blur(12px); padding: 24px; display: none; flex-direction: column; gap: 6px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 16px 14px; border-radius: var(--r-sm); font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:active { background: rgba(255,255,255,0.06); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  /* Live pill needs room — below this the hero counter carries the live count.
     Higher specificity so it wins over the later base .players-pill rule. */
  .nav-cta .players-pill { display: none; }
}
@media (max-width: 1080px) {
  .paths-grid { grid-template-columns: repeat(3, 1fr); }
  .reels-grid { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  /* Collapse the full nav into the hamburger before the 7 nowrap links + CTAs
     can overflow the container — full nav only shows when it comfortably fits. */
  .nav-links { display: none; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .hamburger { display: grid; }
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr 1fr; }
  .reels-grid { grid-template-columns: 1fr 1fr; }
  .car-stage { aspect-ratio: 4 / 3; }
  .car-count .cur { font-size: 24px; }
  .hero-meta { gap: 18px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .paths-grid, .reels-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-primary { height: 42px; padding: 0 16px; }
}

/* ---------- Mobile polish (phones) ---------- */
@media (max-width: 760px) {
  .tour-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  /* CTAs go full-width so they're easy to tap and tidy */
  .hero-actions, .cta-actions { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 20px 28px; margin-top: 32px; }
  .countdown { flex-wrap: wrap; gap: 8px; }
  .countdown .cd-cell { flex: 1 1 calc(50% - 8px); }
  .penal-toolbar .doc-search { min-width: 100%; }
  .reel-cap { font-size: 13px; }
}
@media (max-width: 380px) {
  .car-arrow { width: 40px; height: 40px; }
  .hero h1 { font-size: 38px; }
}

/* ============================================================
   PAGE-LEVEL COMPONENTS (regolamento, codice penale, torneo,
   shop, contatti, termini)
   ============================================================ */

/* ---------- Page hero (compact) ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(56px, 9vw, 92px) 0 clamp(40px, 6vw, 60px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(700px 360px at 18% -20%, rgba(112,0,255,0.22), transparent 65%),
  radial-gradient(700px 360px at 85% 0%, rgba(74,0,176,0.2), transparent 65%),
  linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 12px; line-height: 1.04; }
.page-hero .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-soft); max-width: 620px; margin: 0; }
.page-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--text-muted); }
.page-hero .meta .pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-full); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.page-hero .meta .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Doc layout (sidebar + content) ---------- */
.doc { display: grid; grid-template-columns: 248px 1fr; gap: 40px; align-items: start; padding: clamp(40px, 6vw, 64px) 0; }
.doc-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.doc-search { position: relative; margin-bottom: 18px; }
.doc-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-family: inherit; font-size: 14px; }
.doc-search input:focus { outline: none; border-color: var(--coral); }
.doc-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.doc-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.doc-nav a { display: block; padding: 9px 14px; font-size: 14px; color: var(--text-muted); border-left: 2px solid transparent; margin-left: -1px; transition: color .15s ease, border-color .15s ease; }
.doc-nav a:hover { color: var(--text); }
.doc-nav a.active { color: var(--coral); border-left-color: var(--coral); }
.doc-main { min-width: 0; }
.doc-section { margin-bottom: 14px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc-section > h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin: 28px 0 12px; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface); overflow: hidden; transition: border-color .2s ease; }
.acc:hover { border-color: var(--line-2); }
.acc-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; user-select: none; }
.acc-head .num { font-size: 12px; font-weight: 700; color: var(--coral); flex: none; min-width: 30px; }
.acc-head h3 { font-size: 16px; font-weight: 600; margin: 0; flex: 1; }
.acc-head .chev { color: var(--text-muted); transition: transform .25s ease; flex: none; }
.acc.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc.open .acc-body { max-height: 600px; }
.acc-body-in { padding: 0 20px 20px 64px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.acc-body-in p { margin: 0 0 10px; }
.acc-body-in ul { margin: 0; padding-left: 18px; }
.acc-body-in li { margin-bottom: 6px; }

/* ---------- Alert / callout ---------- */
.alert { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); font-size: 14.5px; line-height: 1.5; margin: 0 0 22px; border: 1px solid; }
.alert .ai { flex: none; margin-top: 1px; }
.alert.warn { background: rgba(255,96,72,0.08); border-color: rgba(255,96,72,0.3); color: #ffd6cf; }
.alert.warn .ai { color: #ff7a5c; }
.alert.info { background: rgba(155,77,255,0.1); border-color: rgba(155,77,255,0.32); color: #ddd2ff; }
.alert.info .ai { color: var(--violet-2); }
.alert strong { color: #fff; }

/* ---------- Penal code table ---------- */
.penal-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.penal-toolbar .doc-search { margin: 0; flex: 1; min-width: 240px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 15px; border-radius: var(--r-full); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text-soft); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.chip:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.chip.active { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- Live player count ---------- */
.players-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--text-soft); text-decoration: none;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; white-space: nowrap; transition: border-color .2s ease, background .2s ease; }
.players-pill:hover { border-color: rgba(112,0,255,0.55); background: rgba(112,0,255,0.1); color: #fff; }
.players-pill .players-num { color: #fff; font-variant-numeric: tabular-nums; }
.players-pill .pp-label { color: var(--text-muted); font-weight: 500; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex: none; position: relative; }
[data-players-state].is-online .pp-dot { background: #3ad07a; box-shadow: 0 0 0 0 rgba(58,208,122,0.7); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(58,208,122,0.6); } 70% { box-shadow: 0 0 0 7px rgba(58,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(58,208,122,0); } }
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 9px 16px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--text-soft); text-decoration: none;
  font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); transition: border-color .2s ease; }
.live-pill:hover { border-color: rgba(112,0,255,0.55); color: #fff; }
.live-pill .players-num { color: #fff; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.penal-group { margin-bottom: 34px; }
.penal-group > h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.penal-group > h2 .cnt { font-size: 12px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 3px 9px; border-radius: var(--r-full); }
.ptable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ptable th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ptable td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.penal-row:last-child td { border-bottom: none; }
.penal-row:hover td { background: rgba(255,255,255,0.02); }
.ptable .art { font-weight: 700; color: var(--text); white-space: nowrap; }
.ptable .reato { font-weight: 600; color: #fff; }
.ptable .desc { color: var(--text-muted); }
.ptable .money { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.sev { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev.lieve { color: #fbbf24; background: rgba(251,191,36,0.12); }
.sev.medio { color: #fb923c; background: rgba(251,146,60,0.12); }
.sev.grave { color: #f87171; background: rgba(248,113,113,0.14); }
/* Penal class badges A (most severe) → E (lightest) */
.sev.cls-a { color: #f87171; background: rgba(248,113,113,0.14); }
.sev.cls-b { color: #fb923c; background: rgba(251,146,60,0.12); }
.sev.cls-c { color: #fbbf24; background: rgba(251,191,36,0.12); }
.sev.cls-d { color: #c19bff; background: rgba(112,0,255,0.18); }
.sev.cls-e { color: #9aa0aa; background: rgba(255,255,255,0.06); }
.ptable-wrap { overflow-x: auto; border-radius: var(--r-md); }
.ptable .pena { white-space: nowrap; color: var(--text); }
.ptable .proc { display: inline-block; font-size: 11px; font-weight: 700; color: #c19bff; background: rgba(112,0,255,0.16); border: 1px solid rgba(112,0,255,0.3); padding: 3px 8px; border-radius: var(--r-full); white-space: nowrap; }
.art-note { margin-top: 5px; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.penal-note { font-size: 13px; color: var(--text-muted); margin: 18px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proc-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.proc-title { font-size: clamp(22px,3vw,28px); font-weight: 700; margin: 0 0 6px; }
.proc-lead { color: var(--text-muted); margin: 0 0 22px; max-width: 640px; }

/* ---------- Tournament ---------- */
.tour-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: stretch; }
.countdown { display: flex; gap: 12px; }
.cd-cell { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 18px 8px; }
.cd-cell .v { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-cell .l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.info-card h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-muted); display: inline-flex; align-items: center; gap: 9px; }
.info-row .v { font-weight: 600; }
.badge-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: var(--r-full); background: rgba(52,211,153,0.14); color: #34d399; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prize { position: relative; text-align: center; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 18px; }
.prize.first { border-color: rgba(112,0,255,0.45); box-shadow: var(--glow-coral); transform: translateY(-8px); }
.prize .rank { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.prize.first .rank { color: var(--coral); }
.prize .medal { font-size: 34px; margin: 8px 0; }
.prize .amt { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.prize .note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--coral); }
.tl-item.done::before { background: var(--coral); }
.tl-item .d { font-size: 12px; font-weight: 700; color: var(--coral); letter-spacing: 0.04em; }
.tl-item .t { font-size: 16px; font-weight: 600; margin-top: 3px; }
.tl-item .s { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Shop / Tebex ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.shop-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.shop-card .top { height: 130px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, rgba(112,0,255,0.22), rgba(155,77,255,0.18)); border-bottom: 1px solid var(--line); }
.shop-card .top .emoji { font-size: 42px; }
.shop-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card h3 { font-size: 18px; font-weight: 700; margin: 0; }
.shop-card p { font-size: 14px; color: var(--text-muted); margin: 0; flex: 1; }
.secure-note { display: flex; align-items: center; gap: 14px; background: rgba(52,211,153,0.07); border: 1px solid rgba(52,211,153,0.25); border-radius: var(--r-md); padding: 16px 20px; color: #c9f5e4; font-size: 14.5px; }
.secure-note svg { color: #34d399; flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); font-family: inherit; font-size: 14.5px; padding: 12px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--coral); flex: none; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.ct-card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.ct-card.discord .ic { background: rgba(88,101,242,0.16); color: #8b95ff; }
.ct-card.mail .ic { background: var(--coral-soft); color: var(--coral); }
.ct-card.ticket .ic { background: rgba(155,77,255,0.16); color: var(--violet-2); }
.ct-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.ct-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }

/* ---------- Responsive (pages) ---------- */
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .doc-side { position: static; margin-bottom: 8px; }
  .doc-nav { display: none; }
  .tour-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .shop-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .prize.first { transform: none; }
  .field-row { grid-template-columns: 1fr; }
  .ptable .desc, .ptable thead .desc { display: none; }
  .acc-body-in { padding-left: 20px; }
}

/* ============================================================
   TOURNAMENT BRACKET (Ultra Cup — 10 teams, symmetric)
   Fixed design space 1300x480; boxes positioned in % so they
   scale together with the SVG connector layer (same viewBox).
   ============================================================ */
.bracket-shell { position: relative; margin-top: 8px; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(112,0,255,0.20), transparent 60%),
    radial-gradient(80% 70% at 50% 120%, rgba(112,0,255,0.16), transparent 60%),
    linear-gradient(180deg, #0b0912, #07060c); }
.bracket-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 26px 22px; }
.bracket-canvas { position: relative; width: 100%; min-width: 1080px; aspect-ratio: 1300 / 480; margin: 0 auto; }
.bracket-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.br-box { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 11.54%; height: 9.17%; border-radius: 8px; box-sizing: border-box; padding: 3px 8px; line-height: 1.05;
  color: #fff; font-family: var(--font-display); font-size: clamp(11px, 0.95vw, 14px); }
/* gold-framed team box */
.br-team { font-style: italic; font-weight: 700; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #16101f, #0b0912) padding-box,
              linear-gradient(180deg, #ecc873, #856528) border-box;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,0.55); }
/* violet-glow match box (empty: quarti / semifinali) */
.br-match { background: linear-gradient(180deg, #1a1330, #0d0a1a) padding-box,
              linear-gradient(180deg, #7000ff, #3a1a7a) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 16px rgba(112,0,255,0.32), inset 0 0 12px rgba(112,0,255,0.18); }
.br-final { box-shadow: 0 0 26px rgba(112,0,255,0.5), inset 0 0 16px rgba(112,0,255,0.26); }
/* gold champion box */
.br-champ { height: 13.75%; width: 13.85%; flex-direction: column; gap: 3px; font-weight: 800; letter-spacing: 0.12em;
  background: linear-gradient(180deg, #1a1330, #0c0a16) padding-box,
              linear-gradient(180deg, #f3d785, #9a7327) border-box;
  border: 3px solid transparent; border-radius: 10px;
  box-shadow: 0 0 30px rgba(243,215,133,0.32), 0 0 44px rgba(112,0,255,0.28); }
.br-champ .crown { color: #f3d785; }
.br-champ .ct { font-size: clamp(12px, 1.1vw, 17px); }

.br-label { position: absolute; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(9px, 0.8vw, 12.5px);
  letter-spacing: 0.16em; text-transform: uppercase; color: #b69bff; }
.bracket-hint { display: none; text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; letter-spacing: 0.04em; }
@media (max-width: 900px) { .bracket-hint { display: block; } }

/* ============================================================
   ULTRA CUP — tournament overview page (FNCS-style)
   ============================================================ */
.uc-hero { position: relative; text-align: center; padding: clamp(32px,6vw,72px) 0 clamp(8px,3vw,24px); overflow: hidden; }
.uc-hero::before { content: ""; position: absolute; inset: -10% 0 auto; height: 70%; z-index: -1;
  background: radial-gradient(60% 80% at 50% 30%, rgba(112,0,255,0.28), transparent 70%); pointer-events: none; }
.uc-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #b69bff; margin-bottom: 22px; }
.uc-kicker::before, .uc-kicker::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.uc-keyart { display: block; width: 100%; height: auto; max-width: 1040px; margin: 0 auto; border-radius: 18px;
  border: 1px solid var(--line-2); box-shadow: 0 0 70px rgba(112,0,255,0.32), 0 30px 80px rgba(0,0,0,0.6); }
.uc-datechip { display: inline-flex; align-items: center; gap: 11px; margin-top: 26px; padding: 12px 22px 12px 16px;
  border-radius: var(--r-full); background: linear-gradient(180deg, rgba(112,0,255,0.16), rgba(112,0,255,0.07));
  border: 1px solid rgba(112,0,255,0.42); box-shadow: 0 6px 22px rgba(112,0,255,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em; color: #fff; }
.uc-datechip svg { width: 18px; height: 18px; color: var(--violet); flex: none; }

.uc-section { padding: clamp(46px,7vw,82px) 0; }
.uc-head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px,5vw,46px); }
.uc-head h2 { font-size: clamp(28px,4.5vw,46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; margin: 14px 0 12px; }
.uc-head p { color: var(--text-muted); font-size: 17px; margin: 0; line-height: 1.6; }

.uc-path { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.uc-step { position: relative; background: linear-gradient(180deg,var(--surface),var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 24px 26px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.uc-step:hover { transform: translateY(-4px); border-color: rgba(112,0,255,0.45); }
.uc-step .n { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(155,77,255,0.45); position: absolute; top: 10px; right: 16px; opacity: .6; }
.uc-step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0 0 8px; position: relative; }
.uc-step p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0; position: relative; }
.uc-step .ph-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--coral-soft); color: var(--violet); border: 1px solid rgba(112,0,255,0.3); }

.uc-prize { text-align: center; border-radius: var(--r-xl); padding: clamp(40px,6vw,64px) 24px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(112,0,255,0.22), transparent 60%), linear-gradient(180deg,var(--surface),var(--bg-2));
  border: 1px solid rgba(112,0,255,0.4); box-shadow: 0 0 50px rgba(112,0,255,0.2), inset 0 0 40px rgba(112,0,255,0.08); }
.uc-prize .crown { color: #f3d785; margin-bottom: 10px; }
.uc-prize .amt { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px,9vw,88px); line-height: 1; letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.uc-prize .lbl { font-size: 15px; color: var(--text-soft); margin-top: 14px; }

.uc-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.uc-fact { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 20px; text-align: center; min-width: 130px; }
.uc-fact .v { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.uc-fact .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.uc-dates { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.uc-date { background: linear-gradient(180deg,var(--surface),var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 24px 18px; text-align: center; position: relative; }
.uc-date .ph { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.uc-date .day { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3vw,34px); letter-spacing: -0.02em; margin: 8px 0 4px; }
.uc-date .tm { font-size: 13px; color: var(--text-muted); }

.uc-cta { text-align: center; padding: clamp(50px,8vw,100px) 24px; position: relative; overflow: hidden; }
.uc-cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 100% at 50% 100%, rgba(112,0,255,0.22), transparent 65%); }
.uc-cta h2 { font-size: clamp(30px,5vw,52px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.uc-cta p { color: var(--text-soft); font-size: 18px; margin: 0 0 32px; }
.uc-cta .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
#iscrizione { scroll-margin-top: 84px; }
.uc-hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Tournament registration modal */
.tmodal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); overflow-y: auto; }
.tmodal.open { display: flex; }
.tmodal-card { width: 100%; max-width: 640px; position: relative; border-radius: var(--r-lg); padding: 30px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
.tmodal-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.tmodal-card .sub { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.tmodal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.tmodal-close:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.tg-h { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet); margin: 18px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tg-h:first-of-type { margin-top: 4px; }

@media (max-width: 860px) {
  .uc-path { grid-template-columns: 1fr 1fr; }
  .uc-dates { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .uc-path { grid-template-columns: 1fr; }
  .uc-cta .btns { width: 100%; }
  .uc-cta .btns .btn { flex: 1 1 100%; }
}

/* ============================================================
   PAGE TRANSITIONS — smooth fade between page switches.
   Opacity-only (no transform on <body>) so position:sticky nav
   keeps working. JS adds .pt-leave before navigating away.
   ============================================================ */
/* SPA cross-fade. Base body (no class) is fully opaque, so if JS ever fails the
   page is still visible. No keyframe intro animation (it can stick at frame 0 in
   throttled tabs and override opacity) — first load simply shows content. */
@media (prefers-reduced-motion: no-preference) {
  html.js body { transition: opacity .26s ease; }
}
html.js body.pt-shown { opacity: 1; }
html.js body.pt-enter { opacity: 0; transition: none; }
html.js body.pt-leave { opacity: 0; }
/* Thin violet progress sweep shown during navigation */
.pt-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 999;
  background: linear-gradient(90deg, #7000ff, #c19bff); box-shadow: 0 0 12px rgba(112,0,255,0.7);
  opacity: 0; transition: width .4s ease, opacity .2s ease; pointer-events: none; }
.pt-bar.run { opacity: 1; width: 92%; }
