/* Layout: "console" futuristica — barra di vetro in alto, hero su griglia prospettica, pannelli a taglio diagonale. */
:root {
  --bg: #0b0a18;
  --bg-2: #12102a;
  --surface: #17153a;
  --surface-2: #1f1c4a;
  --line: #2e2a63;
  --fg: #ecebff;
  --muted: #a7a4d1;
  --accent: #8f6dff;
  --accent-2: #2cc6d2;
  --gold: #ffd452;
  --pink: #ff7ae6;
  --ok: #38e08c;
  --bad: #ff6a7a;
  --grad: linear-gradient(100deg, #7f5af0, #2cb1bc);
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --cut: 14px;
  --shadow: 0 18px 50px -20px rgba(80, 50, 200, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f4ff; --bg-2: #ebe9fb; --surface: #ffffff; --surface-2: #f0eefe; --line: #d9d5f5;
    --fg: #17143a; --muted: #57537f; --accent: #5b3fd6; --accent-2: #0d8e98; --gold: #a77a00; --pink: #b8259c;
    --ok: #12894f; --bad: #c22b3c; --shadow: 0 18px 40px -24px rgba(60, 40, 160, .35); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f4ff; --bg-2: #ebe9fb; --surface: #ffffff; --surface-2: #f0eefe; --line: #d9d5f5;
  --fg: #17143a; --muted: #57537f; --accent: #5b3fd6; --accent-2: #0d8e98; --gold: #a77a00; --pink: #b8259c;
  --ok: #12894f; --bad: #c22b3c; --shadow: 0 18px 40px -24px rgba(60, 40, 160, .35); color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent-2); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.eyebrow {
  font: 600 .78rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-2); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack { display: grid; gap: 14px; }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 700 1.12rem var(--font-display); letter-spacing: .04em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted);
  font: 500 .95rem var(--font-display); letter-spacing: .03em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav-links {
    position: absolute; inset: 66px 0 auto 0; flex-direction: column; padding: 12px 20px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); margin: 0;
  }
  .nav-links:not(.open) { display: none; }
  .nav-links a { padding: 12px; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  --c: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--line); background: var(--surface);
  color: var(--c); text-decoration: none; cursor: pointer;
  font: 600 .98rem var(--font-display); letter-spacing: .04em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: var(--c); }
.btn-primary { background: var(--grad); border: 0; --c: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 75% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent 70%);
}
.hero-grid {
  position: absolute; inset: auto -20% -45% -20%; height: 70%; pointer-events: none; opacity: .45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px; transform: perspective(500px) rotateX(62deg);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "copy scene" "dock dock";
  column-gap: 40px; row-gap: 28px; align-items: center; padding-block: clamp(40px, 6vw, 76px);
}
.hero-copy { grid-area: copy; }
.hero-scene { grid-area: scene; position: relative; aspect-ratio: 1 / .9; width: 100%; max-width: 560px; justify-self: end; }
.hero-scene::before {
  content: ""; position: absolute; inset: 12% 8% 18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent-2) 28%, transparent) 55%, transparent);
  filter: blur(34px); opacity: .7;
}
.hero-scene::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 7%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 50%, transparent), transparent); filter: blur(10px); opacity: .55;
}
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .console { grid-area: dock; }
.hero-inner > * { min-width: 0; }
.hero h1 { margin-block: 16px 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg);
  font: 600 .8rem var(--font-display); letter-spacing: .06em; text-transform: uppercase;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "dock" "scene"; }
  .hero-scene { justify-self: center; max-width: 420px; aspect-ratio: 1 / .78; }
}
/* console IP come barra orizzontale sotto il titolo */
@media (min-width: 901px) {
  .hero .console { display: grid; grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 24px; align-items: center; padding: 18px 26px; }
  .hero .console-head { grid-area: 1 / 1; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
  .hero .ip-row { grid-area: 1 / 2; }
  .hero .console-stats { grid-area: 1 / 3; margin: 0; }
  .hero .console .toast { grid-area: 2 / 1 / 3 / -1; margin: 0; min-height: 0; }
  .hero .console .toast:empty { display: none; }
}

/* IP console */
.console {
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px; position: relative;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.console-head .label { font: 600 .76rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 .85rem var(--font-display); }
.status .led { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status[data-state="online"] .led { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.status[data-state="offline"] .led { background: var(--bad); }
.ip-row { display: flex; gap: 10px; align-items: stretch; }
.ip {
  flex: 1; min-width: 0; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  font: 600 clamp(.95rem, 2.4vw, 1.12rem) var(--font-mono); overflow-wrap: anywhere; user-select: all;
}
.copy-btn { flex: none; }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.stat b { display: block; font: 700 1.2rem var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .78rem; }
.toast { min-height: 1.4em; margin-top: 10px; color: var(--accent-2); font-size: .88rem; }

/* ------------------------------------------------------------ features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); padding: 22px; border-radius: var(--radius);
  display: grid; gap: 10px; align-content: start; min-width: 0;
}
.feature .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-2); }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature .kv { font: 600 .82rem var(--font-mono); color: var(--accent); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- progression row */
.progress-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; counter-reset: s; }
.step { padding: 20px 22px; border-left: 1px solid var(--line); min-width: 0; }
.step:first-child { border-left: 0; }
.step .num { font: 700 2rem var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { border-left: 0; } .step { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .step { border-left: 0; } }

/* ----------------------------------------------------------------- news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.news-card {
  display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--fg); }
.news-card p { color: var(--muted); font-size: .95rem; }
.meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font: 500 .8rem var(--font-mono); }
.tag { color: var(--accent-2); font: 600 .72rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.article { max-width: 72ch; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-block: 10px 14px; }
.article .body { display: grid; gap: 14px; margin-top: 26px; }
.article .body h2 { font-size: 1.4rem; margin-top: 12px; }
.article .body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.article .body code { background: var(--surface); padding: 2px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- store */
.notice {
  display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2); padding: 16px 18px; border-radius: 10px; margin-top: 24px;
}
.notice p { color: var(--muted); }
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; align-items: stretch; }
.pkg {
  display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative; min-width: 0;
}
.pkg.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); }
.pkg .ribbon { position: absolute; top: -12px; right: 18px; background: var(--grad); color: #fff; font: 700 .72rem var(--font-display); letter-spacing: .12em; padding: 5px 10px; border-radius: 6px; text-transform: uppercase; }
.pkg-name { font: 700 1.5rem var(--font-display); letter-spacing: .06em; }
.pkg-price { font: 700 2rem var(--font-display); font-variant-numeric: tabular-nums; }
.pkg-price small { font: 500 .85rem var(--font-body); color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.perks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.perks li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; background: var(--grad); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.perks b { font-weight: 700; }
.pkg .btn { margin-top: auto; width: 100%; }
.c-vip { color: #4ee38a; } .c-vipplus { color: #45e0ef; } .c-mvp { color: var(--gold); } .c-legend { color: var(--pink); }
:root[data-theme="light"] .c-vip { color: #1b8a52; } :root[data-theme="light"] .c-vipplus { color: #0d8794; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .c-vip { color: #1b8a52; } :root:not([data-theme="dark"]) .c-vipplus { color: #0d8794; } }
@media (max-width: 1000px) { .packages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .packages { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .94rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { font: 600 .82rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font: 600 1rem var(--font-display); }
details p { color: var(--muted); margin-top: 10px; }

/* ----------------------------------------------------------- guide/rules */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.two-col > * { min-width: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.panel ol, .panel ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.panel li b, .panel li code { color: var(--fg); }
.cmd { display: inline-block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font: 600 .88rem var(--font-mono); color: var(--fg); }
.rules { counter-reset: r; display: grid; gap: 12px; margin-top: 28px; }
.rule { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.rule .n { font: 700 1.5rem var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.rule p { color: var(--muted); }
.staff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.member img { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 10px; background: var(--bg-2); }
.member .role { font: 600 .74rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.member b { overflow-wrap: anywhere; }
@media (max-width: 900px) { .staff { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- page head */
.page-head { border-bottom: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(40px, 7vw, 72px); display: grid; gap: 12px; position: relative; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid > * { min-width: 0; }
.footer-grid h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--fg); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-2); }
.fine { color: var(--muted); font-size: .84rem; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.cta-band { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 28px; border-radius: var(--radius); }
.cta-band > div { min-width: 0; }
.empty { color: var(--muted); padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------- profondita: card inclinabili */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.tilt:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pkg.featured.tilt:hover, .product.tilt:hover { border-color: transparent; }

/* ---------------------------------------------------------- battle pass */
.bp-band { position: relative; overflow: hidden; background: var(--bg-2); border-block: 1px solid var(--line); }
.bp-band::before, .bp-band::after {          /* cubi sfocati sullo sfondo: profondita senza movimento */
  content: ""; position: absolute; pointer-events: none; border-radius: 18%; filter: blur(22px); opacity: .32;
  background: var(--grad); transform: rotate(28deg);
}
.bp-band::before { width: 220px; height: 220px; right: -60px; top: -70px; }
.bp-band::after { width: 150px; height: 150px; left: -50px; bottom: -40px; opacity: .22; transform: rotate(-18deg); }
.bp-band > .wrap { position: relative; }
.bp-headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; }
.bp-headrow > * { min-width: 0; }

.bp-scroll { overflow-x: auto; margin-top: 28px; padding: 26px 4px 30px; perspective: 1500px; perspective-origin: 50% 0%; scrollbar-width: thin; }
.bp-rail {
  --edge-free: color-mix(in srgb, var(--accent-2) 55%, var(--bg));
  --edge-prem: color-mix(in srgb, var(--gold) 60%, var(--bg));
  list-style: none; margin: 0; padding: 0 8px; display: flex; gap: 14px; width: max-content;
  transform: rotateX(11deg); transform-origin: 50% 100%;
}
.bp-col { display: grid; grid-template-rows: auto 1fr 1fr; gap: 12px; min-width: 0; }
.bp-lv { font: 600 .82rem var(--font-display); letter-spacing: .04em; color: var(--muted); text-align: center; white-space: nowrap; }
.bp-mile { width: 168px; }
.bp-mile .bp-lv { color: var(--fg); font-size: .95rem; }
.bp-tile {
  display: grid; gap: 4px; align-content: center; padding: 12px 14px; min-height: 84px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.bp-tile small { font: 600 .72rem var(--font-display); letter-spacing: .04em; color: var(--muted); }
.bp-tile b { font: 600 .95rem/1.3 var(--font-display); }
.bp-tile.free { box-shadow: 0 7px 0 var(--edge-free), 0 22px 26px -18px rgba(0, 0, 0, .55); }
.bp-tile.free small { color: var(--accent-2); }
.bp-tile.prem {
  border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(120deg, var(--gold), var(--pink)) border-box;
  box-shadow: 0 7px 0 var(--edge-prem), 0 22px 26px -18px rgba(0, 0, 0, .55);
}
.bp-tile.prem small { color: var(--gold); }
.bp-star .bp-tile.prem b { background: linear-gradient(100deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bp-pips { display: flex; gap: 7px; align-items: center; min-height: 84px; }
.bp-pips i { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.bp-pips.free i { box-shadow: 0 4px 0 var(--edge-free); }
.bp-pips.prem i { box-shadow: 0 4px 0 var(--edge-prem); }
.bp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; color: var(--muted); font-size: .92rem; }
.bp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bp-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent-2); }
.bp-legend span + span i { background: var(--gold); }

.pass.premium { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--gold), var(--pink)) border-box; box-shadow: var(--shadow); }
.price { font: 700 2rem var(--font-display); font-variant-numeric: tabular-nums; }
.price small { font: 500 .85rem var(--font-body); color: var(--muted); }
.steps.xp-grid .num { font-size: 1.7rem; }

/* prodotti della stagione nello store */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; align-items: stretch; }
.product {
  display: flex; flex-direction: column; gap: 16px; padding: 26px; min-width: 0; border-radius: var(--radius);
  border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--gold), var(--pink)) border-box;
}
.product.key { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--pink), var(--accent)) border-box; }
.product h3 { font-size: 1.5rem; }
.product > p { color: var(--muted); }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }
.odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .94rem; }
.odds li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) 3.2em; gap: 10px; align-items: center; }
.odds b { text-align: right; font-variant-numeric: tabular-nums; }
.odd-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.odd-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--accent)); border-radius: 99px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 480px) {
  .ip-row { flex-wrap: wrap; }
  .ip-row .ip { flex-basis: 100%; }
  .ip-row .copy-btn { flex: 1; }
  .bp-mile { width: 150px; }
}

/* ------------------------------------------------ acquisto dentro al sito */
.shop-dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow);
}
.shop-dialog::backdrop { background: rgba(6, 5, 18, .72); backdrop-filter: blur(3px); }
.shop-dialog form { display: grid; gap: 14px; padding: 26px 24px 22px; }
.shop-dialog h2 { margin: 0; font-size: 1.5rem; }
.shop-price { margin: -8px 0 0; font: 700 1.25rem var(--font-display); color: var(--gold); min-height: 1.4em; }
.shop-step { display: grid; gap: 12px; }
.shop-step[hidden] { display: none; }
.shop-dialog label { font: 600 .9rem var(--font-display); letter-spacing: .04em; }
.shop-dialog input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--fg); font: 600 1.05rem var(--font-mono);
}
.shop-dialog input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-hint, .shop-foot { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.shop-foot { font-size: .8rem; }
.shop-status { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--muted); }
.shop-status.bad { color: var(--bad); }
.shop-done { margin: 0; line-height: 1.6; }
.shop-done b:first-child { color: var(--ok); }
.shop-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.shop-actions .btn { cursor: pointer; }
.shop-actions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 420px) { .shop-actions .btn { flex: 1 1 100%; } }
