/* =========================================================
   SAIYAN EMPIRE — design system
   ========================================================= */
:root {
  --bg: #0a0806;
  --bg-2: #120e0a;
  --panel: #17120c;
  --panel-2: #1f1810;
  --line: rgba(232, 184, 74, 0.16);
  --line-2: rgba(232, 184, 74, 0.32);
  --text: #f6efe2;
  --muted: #a99b85;
  --gold-1: #fff3c4;
  --gold-2: #f5cf5f;
  --gold-3: #d99a1e;
  --gold-4: #8a5a10;
  --red: #d8341e;
  --red-2: #ff5a2a;
  --orange: #ff9a1f;
  --green: #4ade80;
  --gold-grad: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 70%, var(--gold-4) 100%);
  --gold-flat: linear-gradient(135deg, #ffe58a, #e3a52a 55%, #b67710);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--gold-3); color: #000; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

#ki { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.55; }
main, header, footer, .announce { position: relative; z-index: 1; }

.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.4));
}

/* ---------------- buttons ---------------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 700; letter-spacing: 0.02em; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold { background: var(--gold-flat); color: #1a1004; box-shadow: 0 10px 30px -10px rgba(245, 180, 40, 0.7), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(245, 180, 40, 0.9), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 220, 140, 0.04); }
.btn-ghost:hover { border-color: var(--gold-2); background: rgba(255, 220, 140, 0.1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; position: relative; }
.icon-btn:hover { background: rgba(255, 220, 140, 0.08); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- announcement ---------------- */
.announce {
  height: 36px; overflow: hidden;
  background: linear-gradient(90deg, #4a0c04, #8f1e0b 50%, #4a0c04);
  border-bottom: 1px solid rgba(255, 140, 60, .25);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.announce-track { display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.announce-track div { height: 36px; display: grid; place-items: center; text-align: center; padding: 0 16px; }

/* ---------------- header ---------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(10, 8, 6, 0.9); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 0 24px -4px rgba(245, 180, 40, .5); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 900 20px/1 var(--display); letter-spacing: .08em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text i { font: 700 11px/1.3 var(--display); font-style: normal; letter-spacing: .42em; color: var(--gold-2); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #d9ccb4;
  transition: color .2s, background .2s; position: relative;
}
.nav a:hover { color: var(--gold-1); background: rgba(255, 220, 140, .06); }
.nav a.active { color: var(--gold-2); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); box-shadow: 0 0 10px var(--orange); }
.nav-drop { position: relative; display: flex; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop > a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px; margin-top: 6px; z-index: 60;
  display: flex; flex-direction: column; gap: 2px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(14, 10, 7, .97); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.nav-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; } /* ponte: il menu non si chiude passando dal link al menu */
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-drop:hover > a svg, .nav-drop:focus-within > a svg { transform: rotate(180deg); }
.nav-menu a { white-space: nowrap; }
.nav-menu a.sub { padding-left: 28px; font-size: .92em; color: var(--muted); }
/* Molte sottocategorie (espansioni): due colonne, con "Tutto …" in cima su tutta la larghezza */
.nav-menu.wide { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.nav-menu .all { grid-column: 1 / -1; color: var(--gold-2); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.nav-menu a.active::after { display: none; }
/* Carte singole: una colonna per gioco, con il nome del gioco in cima */
.nav-menu.mega { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 4px 12px; }
.nav-menu.mega { left: 50%; transform: translate(-50%, -4px); }
.nav-drop:hover .nav-menu.mega, .nav-drop:focus-within .nav-menu.mega { transform: translate(-50%, 0); }
.nav-col + .nav-col { border-left: 1px solid var(--line-2); padding-left: 12px; }
.nav-col { display: flex; flex-direction: column; gap: 2px; }
/* Tante espansioni: due colonne lette dall'alto in basso (FB11…FB06, poi FB05…) */
.nav-col.two { display: block; columns: 2; column-gap: 12px; }
.nav-col.two a { display: block; break-inside: avoid; margin-bottom: 2px; }
.nav-col.two .all { column-span: all; }
.header-actions { display: flex; gap: 4px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: radial-gradient(circle at 35% 30%, #ffd27a, #ff8a00 60%, #c25400);
  color: #2a1300; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.burger { display: none; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: absolute; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.burger.open span:nth-child(1) { transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 112px 0 0; z-index: 49; background: rgba(10,8,6,.97);
  padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; /* scorre con il dito quando le voci sono tante */
  transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
}
.mobile-nav > * { flex: none; } /* le voci non si schiacciano: la lista scorre */
.mobile-nav.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a { font: 700 26px/1.2 var(--display); padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav a.sub { font-size: 20px; padding-left: 26px; color: var(--muted); }
.mobile-nav a.sub2 { font-size: 16px; padding-left: 46px; }
/* Gruppi apribili: "Carte singole" e le categorie con espansioni */
.m-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.m-row a { flex: 1; border-bottom: 0; }
.m-toggle, .m-head { color: var(--muted); }
.m-toggle { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.m-head { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; font: 700 26px/1.2 var(--display); color: var(--gold-2); padding: 14px 4px; border-bottom: 1px solid var(--line); }
.m-toggle svg, .m-head svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.m-group.open > .m-row .m-toggle svg, .m-group.open > .m-head svg { transform: rotate(180deg); }
.m-subs { display: none; flex-direction: column; }
.m-group.open > .m-subs { display: flex; }
.m-group.singles > .m-subs { padding-left: 16px; }
.m-group.singles > .m-subs > a, .m-group.singles .m-row a { font-size: 22px; }
.m-group.singles .m-subs .m-subs a.sub { font-size: 17px; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -5%; width: 70vw; max-width: 980px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 52, 30, .55) 0%, rgba(216, 52, 30, .18) 35%, transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 200, 100, .05); font-size: 13px; font-weight: 600; color: var(--gold-1);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe2a0, #ff9a1f 55%, #c55a00); color: #a8170b; font-size: 11px; }
.hero h1 {
  font: 900 clamp(40px, 5vw, 74px)/1 var(--display);
  letter-spacing: -0.01em; margin: 22px 0 20px;
}
.hero h1 .hl { display: block; }
.hero h1 .red { background: linear-gradient(180deg, #ffb27a, #ff5a2a 45%, #a3180a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.35vw, 19px); color: #cfc1a8; max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 900 30px/1 var(--display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 13px; color: var(--muted); margin-top: 6px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 600px; justify-self: center; width: 100%; }
.hero-visual .aura {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 190, 60, .55), transparent 30%, rgba(255, 90, 40, .45), transparent 60%, rgba(255, 220, 120, .5), transparent 90%);
  filter: blur(28px); animation: spin 14s linear infinite;
}
.hero-visual .ring { position: absolute; inset: 2%; border-radius: 50%; border: 1px dashed rgba(245, 207, 95, .28); animation: spin 60s linear infinite reverse; }
.hero-visual .ring.r2 { inset: -4%; border-style: solid; border-color: rgba(245, 207, 95, .1); animation-duration: 90s; }
.hero-visual .logo-big {
  position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.8));
  animation: float 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%);
  mask-image: radial-gradient(circle, #000 62%, transparent 71%);
}
.hero-visual .float-card { position: absolute; width: 24%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.7)); animation: float 7s ease-in-out infinite; }
.hero-visual .float-card.c1 { left: -4%; top: 14%; transform: rotate(-14deg); animation-delay: -2s; }
.hero-visual .float-card.c2 { right: -3%; top: 52%; transform: rotate(11deg); animation-delay: -4s; }
.hero-visual .float-card svg { width: 100%; height: auto; border-radius: 6%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------------- trust strip ---------------- */
.trust { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,200,100,.03), transparent); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 180, 40, .1); color: var(--gold-2); }
.trust-item .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item b { display: block; font-size: 14px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---------------- sections ---------------- */
.section { padding: 88px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.kicker { font: 600 12px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head h2 { font: 900 clamp(32px, 4vw, 52px)/1.05 var(--display); margin: 12px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-2); font-size: 15px; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------- categories ---------------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 16px; }
.cat {
  --h: 28;
  position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(120% 90% at 85% 10%, hsla(var(--h), 90%, 55%, .38), transparent 60%),
    linear-gradient(160deg, var(--panel-2), #0d0a07);
  transition: transform .4s var(--ease), border-color .3s;
}
.cats > .cat:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.cats > .cat:nth-child(2) { grid-column: span 3; }
.cats > .cat:nth-child(3) { grid-column: 4 / span 1; }
.cats > .cat:nth-child(4) { grid-column: 5 / span 1; }
.cats > .cat:nth-child(5) { grid-column: 6 / span 1; }
.cats > .cat:nth-child(n+6) { grid-column: span 3; }
.cats > .cat:nth-child(n+6) .cat-art { width: 34%; right: 6%; top: 50%; opacity: .9; }
/* Sesto riquadro da solo sull'ultima riga: prende tutta la larghezza invece di lasciare mezza riga vuota */
.cats > .cat:nth-child(6):last-child { grid-column: 1 / -1; }
.cats > .cat:nth-child(6):last-child .cat-art { width: clamp(90px, 16%, 170px); right: 8%; }
.nav a { padding: 10px 11px; font-size: 13.5px; }
.cat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.cat .cat-art { position: absolute; right: -6%; top: 50%; translate: 0 -50%; width: 52%; z-index: -1; transition: transform .6s var(--ease); opacity: .95; }
.cat:nth-child(1) .cat-art { width: 40%; right: 6%; }
.cats > .cat:nth-child(2) .cat-art { width: 24%; right: 8%; }
.cats > .cat:nth-child(n+3) .cat-art { width: 46%; right: 8%; top: 38%; opacity: .9; }
.cat:hover .cat-art { transform: rotate(-4deg) scale(1.06); }
.cat .cat-art svg, .cat .cat-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.cat .cat-art img { border-radius: 5%; rotate: 6deg; }
.cat h3 { font: 900 clamp(20px, 2vw, 30px)/1.05 var(--display); margin: 0; }
.cat:nth-child(1) h3 { font-size: clamp(30px, 3.6vw, 52px); }
.cats > .cat:nth-child(n+3) h3 { font-size: clamp(18px, 1.5vw, 22px); }
.cats > .cat:nth-child(n+3) p { font-size: 12.5px; }
.cat p { margin: 6px 0 0; font-size: 14px; color: #cdbfa6; }
.cat .count { position: absolute; top: 20px; left: 24px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.cat .go { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); transition: .3s var(--ease); }
.cat .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cat:hover .go { background: var(--gold-2); color: #1a1004; transform: rotate(-45deg); }

/* ---------------- product grid & cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), #0f0b08);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(255, 150, 30, .35); }
.pcard-media {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; padding: 22px;
  background: radial-gradient(80% 70% at 50% 40%, rgba(255, 170, 60, .12), transparent 70%);
  perspective: 900px; overflow: hidden;
}
.pcard-media .art {
  width: 72%; transition: transform .25s ease-out; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; position: relative; border-radius: 5%;
}
.pcard-media .art.wide { width: 86%; }
.pcard-media .art svg, .pcard-media .art img { width: 100%; height: auto; display: block; border-radius: inherit; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.pcard-media .art img { aspect-ratio: 1; object-fit: contain; }
.pcard-media .holo {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 40%),
    linear-gradient(115deg, transparent 20%, rgba(255, 0, 140, .25) 35%, rgba(0, 200, 255, .25) 50%, rgba(255, 230, 0, .25) 65%, transparent 80%);
  background-size: 100% 100%, 250% 250%;
  background-position: center, var(--mx) var(--my);
  mix-blend-mode: color-dodge;
}
.pcard:hover .holo { opacity: .8; }
.badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; }
.badge.new { background: var(--gold-flat); color: #1a1004; }
.badge.sale { background: linear-gradient(135deg, #ff6a3a, #c4200c); color: #fff; }
.badge.out { background: #2a241c; color: var(--muted); border: 1px solid var(--line); }
.badge.excl { background: #1b130a; color: var(--gold-2); border: 1px solid var(--line-2); }
.pcard-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.specs { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard-stock { font-size: 12px; font-weight: 600; color: #7fd18b; display: flex; align-items: center; gap: 6px; }
.pcard-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.pcard-stock.last, .stock.last { color: #ffb21e; }
.spec { font: 700 10.5px/1 var(--body); letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; color: #d4c7af; background: rgba(255, 220, 140, .06); border: 1px solid var(--line); }
.spec.grade { color: #1a1004; background: var(--gold-flat); border-color: transparent; }
.spec.sealed { color: var(--gold-1); border-color: var(--gold-3); background: rgba(245, 180, 40, .14); letter-spacing: .06em; }
.spec.code { color: var(--muted); font-weight: 600; }
.pdp-info .specs { margin: -6px 0 16px; }
.pdp-info .spec { font-size: 12px; padding: 6px 10px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font: 800 20px/1 var(--body); color: var(--gold-1); }
.price s { color: var(--muted); font-size: 14px; }
.add-btn {
  position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe2a0, #ff9a1f 55%, #c55a00);
  color: #2a1300; box-shadow: 0 8px 20px -6px rgba(255, 140, 0, .7), inset 0 -3px 6px rgba(0,0,0,.2);
  transition: transform .25s var(--ease);
}
.add-btn:hover { transform: scale(1.1) rotate(90deg); }
.add-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.add-btn[disabled] { background: #2a241c; color: var(--muted); box-shadow: none; }

/* ---------------- feature banner ---------------- */
.feature {
  position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(216, 52, 30, .45), transparent 60%),
    radial-gradient(40% 60% at 0% 0%, rgba(245, 180, 40, .15), transparent 60%),
    linear-gradient(135deg, #1a120a, #0b0806);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: clamp(32px, 5vw, 72px);
}
.feature h2 { font: 900 clamp(32px, 4.2vw, 58px)/1.02 var(--display); margin: 14px 0 18px; }
.feature p { color: #cfc1a8; max-width: 520px; margin: 0 0 28px; }
.feature ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.feature li::before { content: "★"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: radial-gradient(circle at 35% 30%, #ffe2a0, #ff9a1f 55%, #c55a00); color: #a8170b; flex-shrink: 0; }
.feature-cards { position: relative; height: 420px; }
.feature-cards .fc { position: absolute; width: 46%; top: 50%; left: 50%; transition: transform .6s var(--ease); }
.feature-cards .fc svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
.feature-cards .fc:nth-child(1) { transform: translate(-110%, -50%) rotate(-14deg); }
.feature-cards .fc:nth-child(2) { transform: translate(-50%, -56%) scale(1.12); z-index: 2; }
.feature-cards .fc:nth-child(3) { transform: translate(10%, -50%) rotate(14deg); }
.feature:hover .fc:nth-child(1) { transform: translate(-125%, -50%) rotate(-20deg); }
.feature:hover .fc:nth-child(3) { transform: translate(25%, -50%) rotate(20deg); }

/* ---------------- dragon ball loyalty ---------------- */
.balls-sec { text-align: center; }
.balls-sec h2 { font: 900 clamp(30px, 4vw, 50px)/1.1 var(--display); margin: 14px 0 12px; }
.balls-sec .kicker { justify-content: center; }
.balls-sec .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.balls-sec > .wrap > p { color: #cfc1a8; max-width: 620px; margin: 0 auto 44px; }
.balls { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 28px); flex-wrap: wrap; margin-bottom: 40px; }
.ball {
  width: clamp(54px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 28%, #fff6d8 0%, #ffc04a 18%, #ff8a00 55%, #b84a00 100%);
  box-shadow: inset -8px -10px 20px rgba(120, 30, 0, .55), inset 6px 6px 14px rgba(255,255,255,.35), 0 10px 40px -8px rgba(255, 140, 0, .7);
  display: grid; place-items: center;
  animation: bob 4s ease-in-out infinite;
}
.ball:nth-child(2n) { animation-delay: -1s; }
.ball:nth-child(3n) { animation-delay: -2s; }
.ball .stars { display: flex; flex-wrap: wrap; justify-content: center; width: 62%; gap: 1px; color: #c8170c; font-size: clamp(9px, 1.25vw, 15px); line-height: 1; }
.ball .stars span { text-shadow: 0 0 2px rgba(255, 80, 0, .5); }
.ball::after { content: ""; position: absolute; left: 18%; top: 12%; width: 30%; height: 20%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(4px); transform: rotate(-30deg); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------------- reviews ---------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), transparent); }
.review .stars { color: var(--gold-2); letter-spacing: 3px; }
.review .eval { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #4ade80; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); }
.review-sum { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.review-sum .big { font: 900 44px/1 var(--display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-sum p { margin: 10px 0 18px; }
a.perk:hover { border-color: var(--line-2); color: var(--gold-1); }
.review p { margin: 14px 0 20px; color: #ddd0b8; }
.review footer { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gold-flat); color: #1a1004; }

/* ---------------- newsletter ---------------- */
.newsletter {
  border-radius: 28px; padding: clamp(32px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(70% 140% at 50% 0%, rgba(245, 180, 40, .2), transparent 60%), #120d08;
}
.newsletter h2 { font: 900 clamp(28px, 3.6vw, 46px)/1.1 var(--display); margin: 0 0 12px; }
.newsletter p { color: #cfc1a8; margin: 0 auto 28px; max-width: 520px; }
.nl-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.nl-form input { flex: 1; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); outline: none; min-width: 0; }
.nl-form input:focus { border-color: var(--gold-2); }

/* ---------------- shop page ---------------- */
.page-hero { padding: 48px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 120% at 80% 0%, rgba(216, 52, 30, .25), transparent 60%); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }
.page-hero h1 { font: 900 clamp(36px, 5vw, 64px)/1.05 var(--display); margin: 14px 0 8px; }
.page-hero p { color: #cfc1a8; margin: 0; }
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 36px 0 90px; }
.filters { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.filters h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.chips { display: flex; flex-direction: column; gap: 4px; }
.chip {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #d9ccb4; transition: .2s; text-align: left; width: 100%;
}
.chip span { font-size: 12px; color: var(--muted); }
.chip:hover { background: rgba(255,220,140,.06); color: var(--text); }
.chip.on { background: rgba(245, 180, 40, .12); color: var(--gold-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.filters-scrim { display: none; }
.chip.sub { padding-left: 30px; font-size: 13.5px; }
/* Categoria con espansioni nel filtro: freccia che apre e chiude l'elenco */
.cat-row { display: flex; align-items: center; gap: 2px; }
.cat-row .chip { flex: 1; }
.cat-toggle { flex: none; width: 36px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: .2s; }
.cat-toggle:hover { background: rgba(255,220,140,.06); color: var(--gold-1); }
.cat-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.cat-group.open .cat-toggle svg { transform: rotate(180deg); }
.cat-subs { display: none; flex-direction: column; gap: 4px; margin-top: 4px; }
.cat-group.open .cat-subs { display: flex; }
.chips:not(.all) .chip.more { display: none; }
.chip-more { align-self: flex-start; margin-top: 4px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--gold-2); }
.chip-more:hover { color: var(--gold-1); }
.facet + .facet { margin-top: 28px; }
#facets:empty { display: none; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: #2a231a; position: relative; transition: .2s; cursor: pointer; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8d806b; transition: .25s var(--ease); }
.toggle input:checked { background: var(--gold-3); }
.toggle input:checked::after { left: 21px; background: #fff3c4; }
.range-row { display: flex; gap: 8px; }
.range-row input { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.35); outline: none; }
.range-row input:focus { border-color: var(--gold-2); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar-r { display: flex; gap: 10px; align-items: center; }
.select { height: 42px; padding: 0 38px 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5cf5f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; outline: none; cursor: pointer; }
.select option { background: #17120c; }
.shop-search { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.35); outline: none; width: 220px; }
.shop-search:focus { border-color: var(--gold-2); }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty .ball { margin: 0 auto 20px; width: 70px; filter: grayscale(.7) brightness(.6); animation: none; }
.empty.soon { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 90px 20px 110px; }
.empty.soon .ball { filter: none; animation: float 6s ease-in-out infinite; }
.empty.soon h2 { font: 900 clamp(28px, 4vw, 44px)/1.1 var(--display); color: var(--text); margin: 0; }
.empty.soon p { max-width: 420px; margin: 0 0 8px; }
.empty.soon .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ---------------- product page ---------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; padding: 36px 0 80px; }
.gallery { position: sticky; top: 100px; align-self: start; }
.gallery-main {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); display: grid; place-items: center; padding: 8%;
  background: radial-gradient(70% 60% at 50% 40%, rgba(255, 150, 40, .2), transparent 70%), linear-gradient(180deg, var(--panel), #0c0906);
  perspective: 1200px; position: relative; overflow: hidden;
}
.gallery-main .art { width: 62%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .2s ease-out; position: relative; border-radius: 5%; }
.gallery-main .art.wide { width: 82%; max-width: 440px; } /* le foto sono circa 860 px: oltre 440 px a schermo si ingrandirebbero e sgranerebbero */
.gallery-main .art svg, .gallery-main .art img { width: 100%; height: auto; border-radius: inherit; filter: drop-shadow(0 40px 50px rgba(0,0,0,.7)); }
.gallery-main .holo { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .6; mix-blend-mode: color-dodge;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 40%), linear-gradient(115deg, transparent 20%, rgba(255,0,140,.22) 35%, rgba(0,200,255,.22) 50%, rgba(255,230,0,.22) 65%, transparent 80%);
  background-size: 100% 100%, 250% 250%; background-position: center, var(--mx) var(--my); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumbs button { width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); padding: 6px; }
.thumbs button.on { border-color: var(--gold-2); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font: 900 clamp(28px, 3.2vw, 44px)/1.1 var(--display); margin: 12px 0 18px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pdp-price b { font: 800 36px/1 var(--body); color: var(--gold-1); }
.pdp-price s { color: var(--muted); font-size: 18px; }
.pdp-price .save { font-size: 13px; font-weight: 700; color: #ff8a5a; background: rgba(255, 90, 42, .12); padding: 4px 10px; border-radius: 6px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 8px 0 26px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.stock.out::before { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }
.stock.last::before { background: #ffb21e; box-shadow: 0 0 0 4px rgba(255, 178, 30, .18); }
.variants { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.variants button { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
.variants button.on { border-color: var(--gold-2); background: rgba(245, 180, 40, .12); color: var(--gold-1); }
.variants button[disabled] { opacity: .4; text-decoration: line-through; }
.buy-row { display: flex; gap: 12px; margin-bottom: 26px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; font-size: 20px; color: var(--gold-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.buy-row .btn { flex: 1; }
/* Spedizione nella scheda: quando parte, quanto costa, come viaggia */
.ship-box { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 220, 140, .04); font-size: 13.5px; color: #e4d8c0; }
.ship-box > div { display: flex; gap: 10px; align-items: center; }
.ship-box svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#shipWhen { font-weight: 700; color: var(--gold-1); }
/* Avvisami quando torna disponibile (carta esaurita) */
.restock { display: grid; gap: 10px; padding: 16px; margin: -10px 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 10, 7, .6); }
.restock[hidden] { display: none; }
.restock-row { display: flex; gap: 8px; }
.restock input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); color: inherit; font: inherit; }
.restock small { color: var(--muted, #a99c84); font-size: 12px; }
.restock small a { text-decoration: underline; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.ask-photos { margin: -14px 0 22px; --h: 48px; font-size: 14px; }
.perk { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; color: #d4c7af; }
.perk svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 22px; color: var(--gold-2); transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 20px; color: #cfc1a8; font-size: 15px; }

/* ---------------- cart drawer ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .35s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 100;
  background: linear-gradient(180deg, #16110b, #0c0906); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 900 22px/1 var(--display); }
.ship-meter { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ship-meter p { margin: 0 0 10px; }
.ship-meter b { color: var(--gold-2); }
.meter { height: 8px; border-radius: 99px; background: #2a2219; overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ff6a1f, #ffc24a); box-shadow: 0 0 16px rgba(255, 160, 40, .7); transition: width .6s var(--ease); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-media { width: 76px; height: 76px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; padding: 8px; }
.line-media svg, .line-media img { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.line h5 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.line small { color: var(--muted); }
.line .qty { height: 34px; margin-top: 8px; width: max-content; }
.line .qty button { width: 32px; font-size: 16px; }
.line-price { text-align: right; font-weight: 700; color: var(--gold-1); }
.line-remove { font-size: 12px; color: var(--muted); display: block; margin-top: 6px; text-decoration: underline; }
.drawer-foot { padding: 20px 22px 24px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.sum b { font-size: 24px; color: var(--gold-1); }
.drawer-foot small { display: block; color: var(--muted); margin-bottom: 16px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer-empty .ball { margin: 0 auto 22px; width: 80px; }

/* ---------------- search ---------------- */
.search-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(8, 6, 4, .94); backdrop-filter: blur(10px); padding: 12vh 20px 40px; opacity: 0; pointer-events: none; transition: opacity .25s; overflow-y: auto; }
.search-overlay.on { opacity: 1; pointer-events: auto; }
.search-box { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--gold-3); padding: 10px 4px; }
.search-box svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-2); stroke-width: 2; flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: 0; outline: none; font: 700 clamp(20px, 3vw, 32px)/1.2 var(--display); min-width: 0; }
.search-box input::placeholder { color: #5e5446; }
kbd { font: 600 11px var(--body); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.search-results { max-width: 760px; margin: 24px auto 0; display: grid; gap: 6px; }
.sr { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; transition: background .2s; }
.sr:hover, .sr.focus { background: rgba(255, 220, 140, .07); }
.sr .line-media { width: 56px; height: 56px; }
.sr b { font-weight: 600; }
.sr small { display: block; color: var(--muted); font-size: 12px; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, calc(100% + 40px));
  padding: 14px 22px; border-radius: 999px; background: #1d160d; border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); text-align: center;
  /* nascosto del tutto quando non c'è un messaggio: prima ne restava visibile un bordino in fondo alla pagina */
  opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s, visibility 0s; }

/* ---------------- info pages ---------------- */
.prose { max-width: 760px; padding: 40px 0 90px; color: #d9ccb4; }
.prose h2 { font: 900 28px/1.2 var(--display); color: var(--text); margin: 36px 0 12px; }
.prose a { color: var(--gold-2); text-decoration: underline; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(216, 52, 30, .06)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.footer-brand img { width: 110px; height: 110px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.jp { font-family: var(--jp); color: var(--gold-3); letter-spacing: .3em; font-size: 13px; }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer li a { color: #cfc1a8; font-size: 14px; }
.footer li a:hover { color: var(--gold-1); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pay span { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }

.demo-flag { position: fixed; left: 16px; bottom: 16px; z-index: 60; font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 99px; background: rgba(30, 22, 12, .9); border: 1px dashed var(--gold-3); color: var(--gold-2); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* skeleton */
/* Testo delle pagine generate per Google: leggibile dai motori di ricerca, non visibile mentre l'app si carica */
.seo-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skel { border-radius: var(--radius); background: linear-gradient(90deg, #15100b 25%, #1f180f 50%, #15100b 75%); background-size: 200% 100%; animation: sk 1.4s infinite; aspect-ratio: 1/1.45; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-inner { gap: 8px; }
  .brand { margin-right: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cats > .cat:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .cats > .cat:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .cat:nth-child(n+2) .cat-art { width: 48%; right: -8%; top: 50%; opacity: .7; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { max-width: 400px; order: -1; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature { grid-template-columns: 1fr; }
  .feature-cards { height: 300px; }
  .reviews { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 80vh; overflow-y: auto; z-index: 95; background: #120d08; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; padding: 26px 20px 30px; transform: translateY(100%); transition: transform .4s var(--ease); }
  .filters.on { transform: none; }
  /* La pagina (main, livello 1) sale sopra intestazione e sfondi solo mentre il pannello filtri è aperto */
  main:has(.filters.on) { z-index: 96; }
  .filters-scrim { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .filters-scrim.on { opacity: 1; pointer-events: auto; }
  .filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
  .shop-search { width: 100%; }
  .toolbar-r { width: 100%; }
  .toolbar-r .shop-search { flex: 1; }
}
@media (max-width: 600px) {
  .toolbar-r { flex-wrap: wrap; }
  .toolbar-r .shop-search { flex: 1 1 100%; }
  .toolbar-r .select { flex: 1; }
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-media { padding: 14px; }
  .pcard-body { padding: 2px 12px 14px; }
  .pcard-title { font-size: 13.5px; }
  .price b { font-size: 17px; }
  .add-btn { width: 38px; height: 38px; }
  .section { padding: 60px 0; }
  .cats { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .cat { padding: 16px; }
  .cat .count { top: 14px; left: 16px; }
  .cat .go { display: none; }
  .cat p { display: none; }
  .cats > .cat:nth-child(1) p { display: block; }
  .trust-item { padding: 16px 10px; gap: 10px; }
  .trust-item .ic { width: 36px; height: 36px; }
  .trust-item span { display: none; }
  .nl-form { flex-direction: column; }
  .perks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text b { font-size: 17px; }
  .hero-stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .cats > .cat:nth-child(n) .cat-art { width: 40%; right: 6%; top: 40%; opacity: .9; }
  .cats > .cat:nth-child(1) .cat-art { width: 30%; top: 34%; }
  .cats > .cat:nth-child(3) .cat-art { width: 28%; }
  .cats > .cat:nth-child(1) h3 { font-size: 28px; }
  .price { flex-direction: column; gap: 2px; align-items: flex-start; }
  .price s { font-size: 12px; }
  .demo-flag { font-size: 11px; padding: 6px 10px; left: 10px; bottom: 10px; }
}

/* ---------------- gioco delle 7 sfere ---------------- */
.hunt-ball {
  position: absolute; z-index: 30; width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  transition: transform .2s var(--ease); animation: hunt-glow 3.2s ease-in-out infinite;
}
.hunt-ball svg { width: 100%; height: 100%; display: block; }
.hunt-ball:hover, .hunt-ball:focus-visible { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.35); }
@keyframes hunt-glow { 50% { filter: drop-shadow(0 0 6px rgba(255, 178, 30, .75)); } }
.hunt-ball.flying { position: fixed; z-index: 300; transform: none; animation: none; pointer-events: none; transition: transform .75s cubic-bezier(.5, -0.2, .4, 1), opacity .75s ease-in; }

.hunt-radar {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14, 10, 7, .92);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); font: 800 14px/1 var(--body); color: var(--gold-1);
}
.hunt-screen { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #1f7a3a, #0a2e15 70%); box-shadow: inset 0 0 0 2px #c9d6cf; }
.hunt-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#ffffff40 1px, transparent 1px) 0 0 / 100% 8px, linear-gradient(90deg, #ffffff40 1px, transparent 1px) 0 0 / 8px 100%; }
.hunt-screen i { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(160, 255, 170, .55) 360deg); animation: hunt-sweep 2.4s linear infinite; }
.hunt-screen::after { content: ""; position: absolute; left: 60%; top: 30%; width: 6px; height: 6px; border-radius: 50%; background: #ffb21e; box-shadow: 0 0 8px #ffb21e; animation: hunt-blink 1.2s steps(2) infinite; }
@keyframes hunt-sweep { to { transform: rotate(360deg); } }
@keyframes hunt-blink { 50% { opacity: .2; } }
.hunt-radar.bump { animation: hunt-bump .5s var(--ease); }
@keyframes hunt-bump { 40% { transform: scale(1.18); } }
.hunt-radar.done { border-color: var(--gold-2); box-shadow: 0 0 30px -4px rgba(255, 178, 30, .6); }

.hunt-tip {
  position: fixed; left: 16px; bottom: 70px; z-index: 80; max-width: 250px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: #1d160d; border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.45; color: #d9ccb4; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.hunt-tip b { color: var(--gold-1); }
.hunt-tip.on { opacity: 1; transform: none; }

.hunt-panel { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.hunt-panel.on { opacity: 1; pointer-events: auto; }
.hunt-card {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px 26px 24px; border-radius: 22px;
  background: linear-gradient(180deg, #1a130b, #0f0b08); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  display: flex; flex-direction: column; gap: 14px; color: #d9ccb4; font-size: 15px; line-height: 1.55;
}
.hunt-card h2 { font: 900 30px/1.1 var(--display); color: var(--text); margin: 0; }
.hunt-card p { margin: 0; }
.hunt-x { position: absolute; top: 14px; right: 14px; }
.hunt-slots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0; }
.hunt-slots .slot { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--line-2); color: var(--muted); font-weight: 800; }
.hunt-slots .slot.on { border: 0; }
.hunt-slots .slot svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(255, 150, 30, .4)); }
.hunt-small { font-size: 13px; color: var(--muted); }
.hunt-hints { display: flex; flex-direction: column; gap: 6px; }
.hunt-hints:empty { display: none; }
.hunt-hints span { padding: 10px 12px; border-radius: 10px; background: rgba(255, 220, 140, .06); border: 1px solid var(--line); font-size: 14px; }
.hunt-win { font: 900 20px/1.3 var(--display); color: var(--gold-1); }
.hunt-code { display: flex; gap: 10px; align-items: center; }
.hunt-code code { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--gold-2); font: 800 20px/1 var(--body); letter-spacing: .12em; color: var(--gold-1); text-align: center; background: rgba(255, 220, 140, .06); user-select: all; }
.hunt-rules { align-self: center; font-size: 13px; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .hunt-ball { width: 28px; height: 28px; }
  .hunt-radar { left: 12px; bottom: 12px; }
  .hunt-tip { left: 12px; bottom: 64px; }
}

/* ---------------- lingua ---------------- */
.lang-switch { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); font: 800 12.5px/1 var(--body); letter-spacing: .08em; color: var(--gold-2); }
.lang-switch:hover { border-color: var(--gold-2); color: var(--gold-1); }
.lang-hint { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px 9px 16px; background: #1a120a; border-bottom: 1px solid var(--line-2); font-size: 13.5px; text-align: center; }
.lang-hint b { color: var(--gold-1); }
.lang-hint button { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted); }
.lang-hint button:hover { color: var(--text); }

/* Con un menu o il carrello aperti, radar e suggerimento del gioco delle sfere non coprono le voci */
body.lock .hunt-tip, body.lock .hunt-radar { opacity: 0; pointer-events: none; }

/* Testo introduttivo della categoria (numeri veri del negozio) */
.page-hero .cat-intro { max-width: 760px; margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #cbbda3; }
