/* ==========================================================================
   Playtale — design system
   Sticker style: 3px Notte outlines, hard offset shadows, chunky radii.
   ========================================================================== */
:root {
  --notte: #24124A;
  --luna: #F3F0FF;
  --fragola: #FF3D7F;
  --limone: #FFD23F;
  --menta: #22D3A6;
  --cielo: #4D7CFE;
  --viola: #9B6BFF;
  --rosso: #E5243B; /* the Black Week red: header countdown, «Tempo limitato» */
  --white: #FFFFFF;
  --notte-70: rgba(36, 18, 74, .72);
  --notte-10: rgba(36, 18, 74, .1);
  --line: 3px solid var(--notte);
  --shadow: 5px 5px 0 var(--notte);
  --shadow-sm: 3px 3px 0 var(--notte);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Silkscreen', monospace;
  --r-lg: 32px; --r-md: 22px; --r-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1300px; /* 16 nov 2026: wider, less empty space at the sides */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--luna); color: var(--notte); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img, svg, canvas, iframe { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border: var(--line); border-radius: 12px; }
.skip:focus { left: 8px; }

/* type */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7.4vw, 78px); font-weight: 800; }
h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; text-wrap: balance; }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 38ch; text-wrap: balance; }
.muted { color: var(--notte-70); }
.small { font-size: 14px; }

/* layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 18px; max-width: 52ch; text-wrap: balance; }
.grid { display: grid; gap: 22px; }
.band-notte { background: var(--notte); color: var(--white); }
.band-white { background: var(--white); border-top: var(--line); border-bottom: var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none; color: var(--white); background: var(--fragola); border: var(--line); border-radius: 999px; padding: 15px 26px; box-shadow: 4px 4px 0 var(--notte); cursor: pointer; transition: transform .1s ease, box-shadow .1s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--notte); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--notte); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn-lg { font-size: 18px; padding: 18px 32px; }
.btn-sm { font-size: 14px; padding: 10px 16px; box-shadow: 3px 3px 0 var(--notte); }
.btn-white { background: var(--white); color: var(--notte); }
.btn-limone { background: var(--limone); color: var(--notte); }
.btn-notte { background: var(--notte); color: var(--white); border-color: var(--notte); box-shadow: 4px 4px 0 var(--fragola); }
.band-notte .btn { border-color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.band-notte .btn-white { border-color: var(--white); }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--fragola); }

/* sticker primitives */
.sticker { background: var(--white); border: var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; background: var(--white); border: 2.5px solid var(--notte); border-radius: 999px; padding: 5px 12px; }
.pill-limone { background: var(--limone); }
.pill-menta { background: var(--menta); }
.pill-fragola { background: var(--fragola); color: var(--white); }
.tilt-l { transform: rotate(-2.5deg); }
.tilt-r { transform: rotate(2deg); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 240, 255, .92); backdrop-filter: blur(10px); border-bottom: 3px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--notte); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .icon { display: block; width: 40px; height: 40px; flex: none; }
.logo .word { display: block; height: 28px; aspect-ratio: 600 / 160; background: #160828; -webkit-mask: url(../img/wordmark-mask.png) center / contain no-repeat; mask: url(../img/wordmark-mask.png) center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 800; text-decoration: none; padding: 9px 12px; border-radius: 12px; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current='page'] { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--notte); }
.nav-cta { margin-left: 8px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav { gap: 8px; height: 64px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 14px; padding: 8px 7px; }
  .nav-cta { margin-left: 2px; }
  .nav-cta .btn { padding: 9px 12px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 520px) { .logo .word { display: none; } } /* phones: the icon is the logo */
@media (max-width: 360px) { .nav-long { display: none; } }
/* the Black Week countdown in the header, red like the other buttons: in the middle on computers, a strip under the logo on phones */
.nav-launch .btn { background: var(--rosso); font-variant-numeric: tabular-nums; }
.nav-launch-cd { display: inline-block; text-align: left; } /* hours and minutes always have two digits: the text does not shift */
@media (min-width: 1241px) { .nav-launch { position: absolute; left: 0; right: 0; top: 0; height: 72px; display: flex; align-items: center; justify-content: center; pointer-events: none; } .nav-launch .btn { pointer-events: auto; } }
@media (min-width: 1241px) and (max-width: 1360px) { .nav-launch .btn { font-size: 13px; padding: 10px 14px; } } /* smaller laptops: room on both sides */
@media (max-width: 1240px) { .nav-launch { padding: 0 var(--gutter) 10px; } body .games-show [id] { scroll-margin-top: 140px; } .nav-launch .btn { display: flex; width: 100%; max-width: 620px; margin: 0 auto; padding: 8px 12px; font-size: 13px; white-space: nowrap; } }
/* phones: «BLACK WEEK · 3gg - 19h 16min», so it stays on one line */
.nl-short { display: none; }
@media (max-width: 600px) { .nl-long { display: none; } .nl-short { display: inline; } }
@media (max-width: 480px) { .nav-launch .btn { font-size: 11.5px; padding: 8px 10px; } }
@media (max-width: 370px) { .nav-launch .btn { font-size: 11px; padding: 8px; } }

/* hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(84px, 10vw, 120px); overflow: hidden; } /* room under the phones before the pixel edge */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 22px; font-size: clamp(36px, 5vw, 64px); text-wrap: balance; }
.hero h1 .name-slot { display: inline-block; background: var(--limone); border: var(--line); border-radius: 18px; padding: 0 .18em; box-shadow: var(--shadow-sm); transform: rotate(-2deg); min-width: 2ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* phone frame */
.phone { position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 18.5; background: var(--notte); border: var(--line); border-radius: 46px; padding: 12px; box-shadow: 10px 10px 0 var(--fragola), 10px 10px 0 3px var(--notte); }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%); background: #120830; border: 2px solid #3a2a6e; border-radius: 50%; z-index: 2; }
.phone iframe, .phone .phone-screen { width: 100%; height: 100%; border: 0; border-radius: 34px; display: block; background: #2a1a5e; }
.phone video.phone-screen { object-fit: cover; }
.phone-sm { width: min(260px, 70vw); border-radius: 38px; padding: 10px; }
.phone-sm iframe { border-radius: 28px; }

/* hero (chosen 16 nov 2026): a big scene in the gallery style, the Adventure on a phone in front, Heart Run sideways at the bottom left */
.hero-visual { position: relative; padding: 0 0 19%; }
.hero-scene { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: #120830; box-shadow: 0 0 0 3px var(--notte), 12px 12px 0 var(--fragola), 12px 12px 0 3px var(--notte); }
.hero-scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.hero-front { position: absolute; z-index: 2; right: -3%; bottom: 0; width: 33%; min-width: 0; aspect-ratio: 9 / 17; padding: 7px; border-radius: 26px; transform: rotate(4deg); box-shadow: 8px 8px 0 var(--limone), 8px 8px 0 3px var(--notte); }
.hero-front::before { top: 11px; width: 8px; height: 8px; }
.hero-front .phone-screen { border-radius: 20px; }
.hero-land { position: absolute; z-index: 2; left: -7%; bottom: -1%; width: 47%; aspect-ratio: 17 / 9; padding: 7px 11px; border-radius: 24px; transform: rotate(-4deg); box-shadow: 8px 8px 0 var(--menta), 8px 8px 0 3px var(--notte); }
.hero-land::before { top: 50%; left: 4px; width: 8px; height: 8px; transform: translateY(-50%); }
.hero-land .phone-screen { border-radius: 16px; }
.hero-visual .float-tag { position: absolute; z-index: 3; }
.hero-visual .float-tag.a { top: -14px; left: 18px; }
.hero-visual .float-tag.b { bottom: 1%; left: 49%; }
@media (max-width: 960px) {
  .hero-visual { margin-top: 26px; padding-bottom: 22%; }
  .hero-land { left: -2%; width: 50%; }
  .hero-front { width: 34%; right: 0; }
}

/* entrance: one orchestrated moment on the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise .7s cubic-bezier(.2, .9, .3, 1.2) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  .hero-scene, .hero .phone { animation: phoneIn .9s .2s cubic-bezier(.2, .9, .3, 1.15) both; }
  .hero-front { animation-delay: .45s; }
  .hero-land { animation-delay: .6s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }
}

/* steps */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { padding: 26px; position: relative; }
.step .num { font-family: var(--pixel); font-size: 15px; display: inline-block; background: var(--notte); color: var(--white); border-radius: 10px; padding: 4px 10px; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }
.step:nth-child(2) { transform: translateY(18px); }
.step:nth-child(3) { transform: translateY(36px); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step:nth-child(n) { transform: none; } }

/* home games: two cards with the same layout (clips on top, words below); the whole card leads to the configurator */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); align-items: stretch; }
.kind { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); color: var(--notte); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.kind:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--notte); }
.kind:focus-visible { outline: 4px solid var(--cielo); outline-offset: 4px; }
.kind-adv { background: var(--limone); }
.kind-media { position: relative; aspect-ratio: 16 / 10; background: #120830; border-bottom: var(--line); overflow: hidden; }
.kind-clip { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.kind-clip.on { opacity: 1; }
.kind-clip video { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.kind-clip.fill-mem video { object-position: 50% 46%; } /* the memory board: the band with the cards turning over */
.kind-clip.whole { background: #2a1f45; }
.kind-clip.whole video { object-fit: contain; } /* Quiz of Us stays whole, on its own colour */
.kind-now { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 14px 18px 34px; background: linear-gradient(rgba(14, 6, 36, .85), transparent); color: var(--white); font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px); pointer-events: none; }
.kind-body { padding: 20px 24px 0; }
.kind h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.kind-label { font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--notte-70); margin: 0 0 4px; }
.kind-lead { font-weight: 600; margin-bottom: 14px; }
.kind-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.kind-list li { position: relative; padding-left: 26px; font-weight: 600; }
.kind-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 5px; background: var(--fragola); border: 2px solid var(--notte); }
.mini-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mini { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 8px 12px; border-radius: 12px; border: 2px solid transparent; transition: background .3s, border-color .3s; }
.mini b { font-family: var(--display); font-size: 17px; }
.mini span { font-weight: 600; color: var(--notte-70); font-size: 14px; }
.mini em { font-style: normal; font-weight: 800; font-size: 12px; white-space: nowrap; }
.mini.on { background: var(--luna); border-color: var(--notte); }
.kind-foot { margin: auto 0 0; padding: 14px 24px 18px; border-top: 2.5px dashed rgba(36, 18, 74, .25); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; font-weight: 800; }
.kind-foot b { font-family: var(--display); font-size: 20px; }
@media (max-width: 860px) { .kinds { grid-template-columns: minmax(0, 1fr); } .mini { grid-template-columns: 1fr auto; } .mini span { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .kind, .kind-clip { transition: none; } .kind:hover { transform: none; } }

/* a phone that plays one game video (games page, modal) */
.phone-solo { width: min(280px, 72vw); aspect-ratio: 9 / 17; padding: 10px; border-radius: 40px; }
.phone-solo .phone-screen { border-radius: 30px; }
.phone-land-solo { width: min(500px, 100%); aspect-ratio: 17 / 9; padding: 9px 14px; border-radius: 30px; box-shadow: 10px 10px 0 var(--menta), 10px 10px 0 3px var(--notte); }
.phone-land-solo::before { top: 50%; left: 5px; width: 8px; height: 8px; transform: translateY(-50%); }
.phone-land-solo .phone-screen { border-radius: 20px; }
.modal .phone-solo { width: auto; height: min(78vh, 640px); }
.modal .phone-land-solo { width: min(86vw, 760px); height: auto; }

/* gallery: real scenes on two rows that scroll sideways, the picture is the protagonist */
.g2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.g2-head .section-head { margin-bottom: 0; }
.g2-arrows { display: flex; gap: 10px; flex: none; }
.g2-arrows button { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--white); background: transparent; color: var(--white); font: 800 22px var(--display); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.g2-arrows button:hover:not(:disabled) { background: var(--limone); border-color: var(--limone); color: var(--notte); }
.g2-arrows button:disabled { opacity: .3; cursor: default; }
.g2-wrap { position: relative; margin-top: clamp(28px, 4vw, 44px); }
.g2-wrap::after { content: ''; position: absolute; top: 0; right: 0; bottom: 14px; width: 90px; pointer-events: none; background: linear-gradient(90deg, rgba(20, 10, 46, 0), #140a2e); transition: opacity .3s; }
.g2-wrap.at-end::after { opacity: 0; }
.g2 { --row: clamp(180px, 23vh, 240px); --col: calc(var(--row) * 1.6);
  display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(2, var(--row)); grid-auto-columns: var(--col); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 14px; scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
.g2::-webkit-scrollbar { height: 6px; }
.g2::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); border-radius: 6px; }
.tile { scroll-snap-align: start; position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #120830; cursor: zoom-in; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; transition: transform .5s ease; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; background: linear-gradient(transparent, rgba(14, 6, 36, .88)); color: var(--white); font-weight: 600; font-size: 15px; line-height: 1.3; pointer-events: none; }
.tile figcaption b { display: block; font-family: var(--display); font-size: 19px; color: var(--limone); }
.tile.big figcaption { padding: 60px 24px 20px; font-size: 17px; }
.tile.big figcaption b { font-size: clamp(22px, 2.6vw, 30px); }
.tile-tag { position: absolute; top: 12px; left: 12px; font-weight: 800; font-size: 12px; color: var(--notte); background: var(--limone); border-radius: 999px; padding: 3px 10px; pointer-events: none; }
@media (max-width: 760px) {
  .g2 { --row: 150px; gap: 10px; }
  .g2-arrows { display: none; } /* phones: swipe */
  .g2-wrap::after { width: 40px; }
  .tile figcaption { padding: 26px 12px 10px; font-size: 13px; }
  .tile figcaption b { font-size: 16px; }
  .tile:not(.big) figcaption { font-size: 0; padding-top: 22px; } /* small tiles on phones: just the place, the picture stays visible */
  .tile:not(.big) figcaption b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .g2 { scroll-behavior: auto; } .tile img, .tile video { transition: none; } .tile:hover img, .tile:hover video { transform: none; } }
/* the big view */
.lightbox .modal-inner { max-width: min(1100px, 94vw); }
.lb-media img, .lb-media video { display: block; max-width: min(1100px, 94vw); max-height: 78vh; width: auto; height: auto; border-radius: 18px; border: 3px solid var(--white); image-rendering: pixelated; background: #120830; }
.lb-cap { margin: 0; color: var(--white); font-weight: 600; text-align: center; }
.lb-cap b { font-family: var(--display); color: var(--limone); margin-right: 8px; }

/* games page (17 nov 2026): compact header, the Adventure as the big feature, the three minigames as cartridges */
.page-hero-compact { padding: clamp(28px, 4vw, 48px) 0 0; }
.page-hero-compact .container { display: grid; gap: 10px; } /* the subtitle under the title */
.page-hero-compact h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 0; }
.page-hero-compact p { font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; max-width: 50ch; margin: 0; text-wrap: balance; }
.page-hero-compact mark { background: none; color: inherit; font-weight: 800; box-shadow: inset 0 -.42em 0 var(--limone); }
.plan-jump { align-self: flex-start; margin: -10px 0 16px; font-weight: 800; font-size: 14px; text-decoration: none; border-bottom: 2.5px solid var(--fragola); }

.games-show [id] { scroll-margin-top: 96px; } /* the "Guarda … ↓" links land below the sticky header */
.games-show { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.games-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 22px; }
.games-head p { margin: 0; color: var(--notte-70); font-weight: 600; }
.games-head .offer-pill { margin: 0; color: var(--notte); }
.sec-label { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; margin: 0; }
.sec-label .play { flex: none; width: 34px; height: 34px; border: 2.5px solid var(--notte); border-radius: 10px; background: var(--fragola); box-shadow: 2px 2px 0 var(--notte); position: relative; }
.sec-label .play::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 11px solid var(--white); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.games-sub { margin: clamp(44px, 6vw, 72px) 0 24px; align-items: center; }
.offer-pill { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; background: var(--limone); border: var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 15px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.tagline { font-family: var(--display); font-weight: 600; color: var(--fragola); }

/* the Adventure */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--notte); color: var(--white); border: var(--line); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--fragola), 8px 8px 0 3px var(--notte); padding: clamp(28px, 4vw, 56px); overflow: hidden; position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.feature-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 10px 0; }
.feature-caption { margin: 0; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .72); text-align: center; }
.feature-visual .phone { transform: rotate(-3deg); box-shadow: 10px 10px 0 var(--limone), 10px 10px 0 3px var(--white); border-color: var(--white); z-index: 1; }
.postcard { position: absolute; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--white); border-radius: 10px; box-shadow: 0 0 0 3px var(--notte), 6px 6px 0 3px var(--notte); image-rendering: pixelated; }
.pc-1 { left: -2%; top: 8%; transform: rotate(-9deg); }
.pc-2 { right: -2%; bottom: 10%; transform: rotate(7deg); }
.feature h3 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; margin-bottom: 6px; }
.feature .tagline { font-size: 20px; color: var(--limone); margin-bottom: 16px; }
.feature-info > p:not(.offer-pill):not(.tagline) { color: rgba(255, 255, 255, .86); }
.feature .offer-pill { color: var(--notte); border-color: var(--white); box-shadow: 3px 3px 0 var(--fragola); }
/* the two sizes of the big game */
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.level { background: var(--white); color: var(--notte); border: var(--line); border-color: var(--white); border-radius: var(--r-md); box-shadow: 0 0 0 3px var(--notte) inset; padding: 18px 20px 20px; display: flex; flex-direction: column; }
.level-pop { background: var(--limone); }
.level-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.level-head span { font-family: var(--display); font-weight: 700; font-size: 17px; }
.level-head b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.level-what { font-weight: 800; font-size: 14px; color: var(--notte-70); margin: 2px 0 12px; }
.level ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.level li { padding-left: 24px; position: relative; font-weight: 600; font-size: 15px; line-height: 1.35; }
.level li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 5px; background: var(--menta); border: 2px solid var(--notte); }
.level .btn { align-self: flex-start; margin-top: auto; }
.level-head b span { font: inherit; }
.level-head .pill { font-family: var(--body); font-weight: 800; font-size: 13px; padding: 3px 10px; white-space: nowrap; }
.level .btn[data-notify] { align-self: stretch; white-space: normal; line-height: 1.2; }

/* price sticker on each cartridge */
.price-tag { position: absolute; top: 18px; right: 14px; z-index: 2; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--limone); color: var(--notte); border: var(--line); border-radius: 12px; padding: 4px 12px; box-shadow: var(--shadow-sm); transform: rotate(6deg); }

.game-meta { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: 14px; }
.peek { margin: 0 0 20px; }
.peek summary { cursor: pointer; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; list-style: none; border-bottom: 2.5px dashed currentColor; }
.peek summary::-webkit-details-marker { display: none; }
.peek summary::after { content: '▾'; transition: transform .2s; }
.peek[open] summary::after { transform: rotate(180deg); }
.peek p { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.feature .peek p { color: rgba(255, 255, 255, .86); }

/* the cartridges */
.carts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; } /* all three cartridges as tall as the tallest */
.cart { --c: var(--fragola); background: var(--white); border: var(--line); border-radius: 22px 22px var(--r-md) var(--r-md); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.cart:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 8px 9px 0 var(--notte); }
.cart-label { position: relative; height: 380px; background: var(--c); border-bottom: var(--line); padding: 24px 12px 12px; }
.cart-screen { display: block; width: 100%; height: 100%; object-fit: cover; border: var(--line); border-radius: 14px; background: #120830; image-rendering: pixelated; }
.cart-label::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 46%; height: 16px; background: repeating-linear-gradient(90deg, var(--notte) 0 3px, transparent 3px 9px); opacity: .35; } /* the grip ridges on top of a cartridge */
.cart-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cart h4 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.cart .tagline { font-size: 16px; margin-bottom: 12px; }
.cart .btn { align-self: flex-start; margin-top: auto; }
.carts.has-open { align-items: start; } /* one card open: only that one grows */
.carts.has-open .cart { min-height: var(--cart-h, 0); }

@media (max-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-visual .phone { width: min(250px, 64vw); }
  .feature-info { max-width: 640px; margin: 0 auto; }
  /* phones and tablets: the cartridges become a row you swipe */
  .carts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter); }
  .cart { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; }
  .cart:hover { transform: none; box-shadow: var(--shadow); }
  .cart-label { height: 330px; }
}
@media (max-width: 560px) { .levels { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cart, .peek summary::after { transition: none; } .cart:hover { transform: none; } }

/* personalization showcase */
.story-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.story-switch button { font: inherit; font-weight: 800; background: var(--white); border: var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--notte); }
.story-switch button[aria-pressed='true'] { background: var(--notte); color: var(--white); box-shadow: 3px 3px 0 var(--fragola); }
.showcase { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.ingredients { padding: 24px; }
.ingredients dl { margin: 0; display: grid; gap: 14px; }
.ingredients dt { font-size: 13px; font-weight: 800; color: var(--fragola); }
.ingredients dd { margin: 0; font-weight: 700; }
.ingredients .faces { display: flex; gap: 6px; align-items: flex-end; }
.showcase .arrow { font-family: var(--display); font-size: 40px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; justify-items: center; } .showcase .arrow { transform: rotate(90deg); } .ingredients { width: 100%; } }

/* pricing */
.pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; max-width: 1160px; margin-left: auto; margin-right: auto; } /* three cards never stretch too wide */
.plan { min-width: 0; overflow-wrap: anywhere; }
.plan { padding: 28px 26px; display: flex; flex-direction: column; border-radius: var(--r-lg); position: relative; }
.plan .plan-name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--notte); margin: 0 0 2px; }
.plan .plan-games { font-weight: 700; margin: 4px 0 18px; }
.plan h3 { font-size: 28px; margin: 2px 0 4px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; margin: 6px 0 4px; }
.plan .price small { font-size: 20px; }
/* same look as the «Black Friday» label */
.plan .delivery { display: inline-flex; gap: 6px; align-items: center; background: var(--notte); color: var(--white); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; border-radius: 8px; padding: 5px 10px; margin: 10px 0 18px; align-self: flex-start; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.plan li { padding-left: 28px; position: relative; font-weight: 600; }
.plan li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 6px; background: var(--menta); border: 2px solid var(--notte); }
.plan .btn { margin-top: auto; }
.plan.popular { background: var(--limone); } /* same size, shadow and position as the other card: only the colour and the badge stand out */
.plan.popular .badge { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 16.5px; padding: 7px 18px; }
@media (max-width: 960px) { .pricing { row-gap: 44px; } } /* phones: a little more room between the two offers, for the «Consigliato» badge */
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }
.addons-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.addons-table th, .addons-table td { text-align: left; padding: 14px 16px; border-bottom: 2px solid var(--notte-10); }
.addons-table th { font-size: 14px; }
.compare-wrap { max-width: none; }
.compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.compare .c-label { width: 24%; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 2px solid var(--notte-10); text-align: left; vertical-align: middle; }
@media (min-width: 701px) { .compare th + th, .compare th + td, .compare td + td { border-left: 2px solid var(--notte-10); } .compare thead th + th { border-left-color: rgba(255, 255, 255, .22); } .compare tfoot td + td { border-left: 2px solid var(--notte-10); } } /* a line between the columns */
.compare tbody th { text-align: left; font-weight: 800; }
.compare thead th { background: var(--notte); color: var(--white); font-family: var(--display); padding: 18px; position: relative; }
.compare thead th:first-child { border-top-left-radius: calc(var(--r-md) - 3px); }
.compare thead th:last-child { border-top-right-radius: calc(var(--r-md) - 3px); }
.compare-what { display: block; font-size: 19px; }
.compare-price { display: block; font-size: 14px; opacity: .8; margin-top: 2px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tfoot td { border-bottom: 0; padding: 4px 18px 20px; }



/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--white); border: var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 18px 56px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
/* +/– drawn with two bars (no font glyph), so it is always centred in its box */
.faq summary::after { content: ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); box-sizing: border-box; width: 30px; height: 30px; border: 2px solid var(--notte); border-radius: 9px; transition: background-color .2s;
  background: linear-gradient(var(--notte), var(--notte)) center / 14px 3px no-repeat, linear-gradient(var(--notte), var(--notte)) center / 3px 14px no-repeat, var(--limone); }
.faq details[open] summary::after { background: linear-gradient(var(--white), var(--white)) center / 14px 3px no-repeat, var(--fragola); }
.faq .answer { padding: 0 20px 20px; max-width: 68ch; }
.faq .answer p:last-child { margin: 0; }

/* cta band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16ch; margin: 0 auto 18px; }
.cta-band p { margin: 0 auto 28px; max-width: 46ch; font-size: 18px; text-wrap: balance; }

/* footer */
.site-footer { background: var(--notte); color: var(--white); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: 15px; margin-bottom: 14px; color: var(--limone); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo .word { background: var(--white); }
.footer-bottom { border-top: 2px solid rgba(255, 255, 255, .15); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; opacity: .8; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label { font-weight: 800; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--notte-70); }
input[type='text'], input[type='email'], input[type='date'], input[type='password'], select, textarea {
  font: inherit; font-weight: 600; color: var(--notte); background: var(--white); border: var(--line); border-radius: var(--r-sm); padding: 12px 14px; width: 100%; min-height: 50px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--cielo); }
input::placeholder, textarea::placeholder { color: rgba(36, 18, 74, .45); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--fragola); flex: none; margin-top: 2px; }
.form-error { background: #FFE3EC; border: 2.5px solid var(--fragola); border-radius: 12px; padding: 10px 14px; font-weight: 700; margin-bottom: 14px; }
.form-ok { background: #DDFBF1; border: 2.5px solid var(--menta); border-radius: 12px; padding: 12px 16px; font-weight: 700; }
[hidden] { display: none !important; }

/* generic page header */
.page-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.page-hero p { font-size: 19px; max-width: 54ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }
.notice { background: var(--white); border: 2.5px dashed var(--notte); border-radius: 14px; padding: 14px 18px; font-weight: 600; }

/* modal (game video) */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(36, 18, 74, .7); padding: 16px; }
.modal[hidden] { display: none; }
.modal-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.modal-close { position: absolute; top: -8px; right: -8px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: var(--line); background: var(--white); font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm); }
.modal-phone { display: flex; justify-content: center; }

/* about */
/* Chi siamo: the four values, two by two, each with a character from the games on a coloured tile */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 26px 22px 22px; }
.value h3 { margin: 0 0 6px; font-size: clamp(20px, 2vw, 24px); text-wrap: balance; }
.value p { font-size: 16.5px; max-width: 46ch; }
.value-art { width: 112px; height: 112px; display: grid; place-items: end center; padding-bottom: 6px; background: var(--v, var(--luna)); border: var(--line); border-radius: var(--r-sm); box-shadow: inset 0 -16px 0 rgba(36, 18, 74, .14); }
.value-art canvas { display: block; image-rendering: pixelated; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .value { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; } .value-art { width: 96px; height: 96px; } .value-art canvas { width: 72px !important; height: auto !important; } }
/* Chi siamo: hero with the cast standing on a little stage; contacts */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; text-wrap: balance; margin-bottom: 20px; }
.about-hero p { font-size: clamp(17px, 1.5vw, 19px); max-width: 52ch; }
.about-stage { position: relative; padding: 0 12px; }
.about-cast { display: flex; justify-content: center; align-items: flex-end; gap: 0; position: relative; z-index: 1; margin-bottom: -10px; }
.about-cast canvas { display: block; width: 20%; max-width: 132px; height: auto !important; image-rendering: pixelated; }
.about-stage::after { content: ''; display: block; height: 38px; background: var(--menta); border: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-hero-grid { grid-template-columns: minmax(0, 1fr); } .about-stage { max-width: 460px; } }
.contact-intro p { max-width: 46ch; }
.contact-mail { display: grid; gap: 2px; padding: 16px 20px; margin: 24px 0 22px; max-width: 420px; background: var(--limone); }
.contact-mail-label { font-weight: 800; font-size: 14px; color: var(--notte-70); }
.contact-mail a { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 23px); text-decoration: none; overflow-wrap: anywhere; }
.contact-mail a:hover, .contact-mail a:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.contact-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 46ch; }
.contact-tips li { position: relative; padding-left: 22px; font-weight: 600; }
.contact-tips li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--fragola); border: 2px solid var(--notte); border-radius: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-row .sticker { padding: 18px; }
.stat-row strong { display: block; font-family: var(--display); font-size: 28px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* personalization: three cards side by side, the client's words on top of the scene */
.io-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.io-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.io-say { position: relative; align-self: flex-start; background: #FFFDF2; border: 2.5px solid var(--notte); border-radius: 14px; padding: 9px 16px 8px; box-shadow: 3px 3px 0 var(--notte); transform: rotate(-1.5deg); }
.io-say::after { content: ''; position: absolute; left: 26px; bottom: -8px; width: 13px; height: 13px; background: #FFFDF2; border-right: 2.5px solid var(--notte); border-bottom: 2.5px solid var(--notte); transform: rotate(45deg); }
.io-say small { display: block; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--notte-70); }
.io-say p { font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.05; margin: 0; color: var(--notte); }
.io-shot { border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 5px 5px 0 var(--notte); background: #24124A; }
.io-shot canvas { display: block; width: 100%; aspect-ratio: 16 / 10; image-rendering: pixelated; }
.io-card figcaption { font-weight: 600; font-size: 15px; line-height: 1.45; margin: 0; }
@media (max-width: 900px) { .io-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 34px; } }
.plan .badge { align-self: flex-start; margin-bottom: 10px; }
.plan-title { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.25; margin: 0 0 8px; }
.plan-missing { border-top: 2px dashed var(--notte-10); padding-top: 12px; margin: -8px 0 20px; }
.plan-missing strong { font-size: 14px; }
.plan-missing ul { margin: 6px 0 6px; gap: 6px; }
.plan-missing li { color: var(--notte-70); font-weight: 600; }
.plan-missing li::before { content: '✕'; background: none; border: 0; width: auto; height: auto; top: 0; left: 4px; color: var(--notte-70); font-weight: 800; }
.plan-missing a { font-weight: 800; font-size: 14px; color: var(--notte); }
/* launch price: the «Black Friday» label with the countdown next to it, the price, then the price after the offer (no blinking) */
/* the label and the countdown in one red pill: «BLACK WEEK | Finisce tra 3gg - 21h 05min» */
.launch-top { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 6px 0 8px; background: var(--rosso); color: var(--white); border-radius: 8px; padding: 5px 10px; font-weight: 800; font-size: 13px; line-height: 1.2; }
.launch-tag { letter-spacing: .08em; text-transform: uppercase; }
.launch-cd { padding-left: 8px; border-left: 2px solid rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
/* «Tempo limitato»: small, white on red, no outline, top right of the price card */
.plan-limited { position: absolute; top: 24px; right: 18px; background: var(--rosso); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 11px; line-height: 1.2; border: 2.5px solid var(--notte); border-radius: 8px; padding: 5px 9px; box-shadow: var(--shadow-sm); } /* like the header buttons */
.launch-after { display: block; font-weight: 700; font-size: 14.5px; color: var(--notte-70); margin: 4px 0 14px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price-row .launch-after-short { margin: 0; font-size: 16px; }
.launch { display: grid; gap: 2px; }
.launch .launch-top { margin: 0; }
.launch .launch-after { margin: 4px 0 0; }
.launch-box .launch-cd-lead { display: none; } /* narrow box: the countdown stays next to the label */
@media (max-width: 480px) { .launch-cd-lead { display: none; } }
.launch-box { background: var(--white); border: 2.5px solid var(--notte); border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; }
/* hidden packages (Legend): the grids close up around the cards that are left */
@media (min-width: 961px) { .pricing:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; } }
.levels:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
.plan.soon h3 { margin-bottom: 14px; }
.plan.soon li::before { background: var(--luna); }
.notify-box { width: min(440px, calc(100vw - 32px)); padding: 26px; }
.notify-box h2 { font-size: 24px; margin-bottom: 6px; }
.notify-box .btn { width: 100%; margin: 4px 0 12px; }
.compare .ok { color: #11a37f; font-weight: 800; }
.compare .ko { color: var(--notte-70); font-weight: 800; }

/* hero: the name is typed straight into the headline */
.hero h1 .name-slot { position: relative; display: flex; width: fit-content; max-width: 100%; align-items: center; margin: .06em 0 .12em; cursor: text; transition: transform .15s, box-shadow .15s; } /* own line: typing never reflows the rest of the title */
.hero h1 .name-slot:hover { transform: rotate(-1deg) scale(1.03); }
.hero h1 .name-slot:focus-within { transform: rotate(0); box-shadow: 0 0 0 4px var(--fragola), var(--shadow-sm); }
.hero h1 input.name-input { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; width: 3ch; min-width: 24px; outline: none; box-shadow: none; }
.hero h1 input.name-input:focus { outline: none; box-shadow: none; }
.name-measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; font: inherit; letter-spacing: inherit; }
.name-caret { display: none; width: .1em; height: .82em; margin-left: .04em; background: var(--notte); animation: name-blink 1s steps(2) infinite; }
.name-slot.auto .name-caret { display: inline-block; }
@keyframes name-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .name-caret { animation: none; } }
html, body { overflow-x: clip; } /* hard shadows and tilted phones must never cause sideways scrolling */

/* comparison on phones: each row's label goes on its own line, the two packages side by side under it (no sideways scrolling) */
@media (max-width: 700px) {
  .compare, .compare thead, .compare tbody, .compare tfoot { display: block; }
  .compare colgroup { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare thead th:first-child, .compare tfoot td:first-child { display: none; }
  .compare tbody th { grid-column: 1 / -1; padding: 12px 14px 4px; border-bottom: 0; font-size: 14px; }
  .compare td { padding: 6px 12px 12px; font-size: 14.5px; }
  .compare thead th { padding: 18px 10px 14px; }
  .compare thead th:nth-child(2) { border-top-left-radius: calc(var(--r-md) - 3px); }
  .compare-what { font-size: 16px; }
  .compare tfoot td { padding: 6px 10px 16px; }
  .compare tfoot .btn { width: 100%; padding: 10px 8px; }
}
@media (max-width: 560px) { .btn { max-width: 100%; white-space: normal; text-align: center; } } /* long labels wrap instead of pushing out of the screen */

/* hero tag: a little arcade label, pixel corners and a blinking star */
.game-tag { display: inline-block; margin: 0 0 18px; filter: drop-shadow(4px 4px 0 var(--fragola)); } /* shadow lives outside the clipped label */
.game-tag-in { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 9px 12px; background: var(--notte); color: #FFE04D; font-family: var(--pixel); font-weight: 700; font-size: 16px; letter-spacing: .05em; text-transform: uppercase;
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)); }
.game-tag-gift { width: 22px; height: 22px; image-rendering: pixelated; flex: none; animation: tag-bob 1.2s steps(2) infinite; }
@keyframes tag-bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .game-tag-gift { animation: none; } }
.game-tag-text { text-shadow: 2px 2px 0 #7A1F3D; } /* hard pixel shadow: the yellow pops off the dark label */

/* desktop hero: fills exactly the first screen. Tag at the top, big title, text and buttons lower down */
@media (min-width: 961px) {
  .hero { padding: clamp(12px, 2.5vh, 32px) 0 clamp(64px, 9vh, 96px); min-height: min(calc(100vh - 74px), 960px); display: flex; align-items: stretch; }
  .hero > .hero-grid { width: 100%; align-items: center; }
  .hero-grid > :first-child { display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; padding: clamp(4px, 1.5vh, 20px) 0 clamp(20px, 6.5vh, 70px); }
  .hero-grid > :first-child > h1 { margin-top: auto; } /* free space goes above the title: title, text and buttons stay together */
  .game-tag { margin-bottom: clamp(10px, 2vh, 22px); align-self: flex-start; }
  .hero > .container { max-width: 1440px; padding-left: clamp(40px, 5.5vw, 88px); } /* the hero is wider than the rest of the site, the text a little to the right */
  .hero h1 { font-size: clamp(44px, min(4.3vw, 8.8vh), 66px); line-height: 1.02; margin-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  /* the scene starts just under the header, the phones hang below it */
  .hero-visual { align-self: start; margin-top: clamp(24px, 4.5vh, 48px); padding-bottom: 12%; margin-right: 2%; }
  .hero h1 .name-slot { margin: .05em 0 .07em; }
  .hero-bottom { margin-top: clamp(22px, 4.2vh, 44px); }
  .hero .lead { font-size: clamp(18px, 2.2vh, 21px); margin-bottom: 0; max-width: 42ch; }
  .hero-actions { margin: clamp(16px, 2.6vh, 28px) 0 0; flex-wrap: nowrap; } /* the two buttons side by side */
  .hero-actions .btn-lg { font-size: 16px; padding: 15px 22px; white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1100px) { /* small laptops: a touch smaller, so both still fit on one line */
  .hero-actions { gap: 10px; }
  .hero-actions .btn-lg { font-size: 15px; padding: 13px 16px; }
}
@media (min-width: 861px) { .steps { margin-top: 116px; } } /* room above the blocks for the jumping characters */

/* delivery line (home prices, games page) */
.deadline-note { max-width: 760px; margin: 34px auto 0; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.deadline-note.light { color: var(--notte-70); margin-top: 12px; }

/* phones: "Crea il tuo gioco" fixed at the bottom */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; z-index: 60; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform .3s ease; pointer-events: none; }
  .sticky-cta.show { transform: none; pointer-events: auto; }
  .sticky-cta .btn { width: 100%; padding: 15px 18px; font-size: 17px; box-shadow: 4px 4px 0 var(--notte), 0 8px 24px rgba(36, 18, 74, .25); }
  .has-sticky-cta .site-footer { padding-bottom: 96px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
/* the gallery comes right after the dark prices band: a deeper night and a thin line keep them apart */
#galleria.band-notte { background: #140a2e; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .08); }

/* a band that starts with a pixel-art edge instead of a straight line (used under the hero) */
.pixel-edge { border-top: 0; }
.pixel-edge::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' shape-rendering='crispEdges'%3E%3Crect x='12' y='1.5' width='24' height='7' fill='%23fff'/%3E%3Crect y='7.5' width='48' height='6.5' fill='%23fff'/%3E%3Cpath d='M0 7.5H12V1.5H36V7.5H48' fill='none' stroke='%2324124A' stroke-width='3'/%3E%3C/svg%3E") repeat-x left top / 48px 14px; }

/* closing band: a game title screen */
.cta-start { background: var(--fragola); background-image: radial-gradient(rgba(255, 255, 255, .22) 2px, transparent 2px); background-size: 18px 18px; color: var(--white); border-top: var(--line); overflow: hidden; }
.cta-start .container { position: relative; z-index: 1; }
.cta-start h2 { color: var(--white); text-shadow: 4px 4px 0 var(--notte); }
.cta-start p { color: var(--white); font-weight: 600; }
.cta-start .press-start { font-family: var(--pixel); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--limone); text-shadow: 2px 2px 0 var(--notte); margin: 0 auto 14px; animation: press-blink 1.1s steps(1) infinite; }
@keyframes press-blink { 60% { opacity: 0; } }
.cta-start .btn-limone { font-size: 19px; }
.start-hero { position: absolute; bottom: 0; width: 96px; height: 144px; image-rendering: pixelated; z-index: 0; }
.start-hero.l { left: max(24px, calc((100vw - var(--max)) / 2 + 40px)); }
.start-hero.r { right: max(24px, calc((100vw - var(--max)) / 2 + 40px)); transform: scaleX(-1); }
@media (max-width: 760px) { .start-hero { width: 56px; height: 84px; } .start-hero.l { left: 10px; } .start-hero.r { right: 10px; } }
@media (prefers-reduced-motion: reduce) { .cta-start .press-start { animation: none; } }

/* the minigame card with title, how it is played and «Cosa metti tu → cosa diventa» (Quiz of Us, 26 nov 2026) */
.cart-headline { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; margin: 4px 0 6px; }
.cart-how { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.becomes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.becomes b { font-weight: 800; }
.becomes span { color: var(--c, var(--fragola)); font-weight: 900; margin: 0 4px; }
.cart .btn.cart-go { align-self: stretch; text-align: center; justify-content: center; font-size: 17px; padding: 14px 18px; }
/* home, «Personalizza la vostra storia» on computers: a little less space above the title, the subtitle on one line */
@media (min-width: 961px) { #esempi { padding-top: 100px; } #esempi .section-head { max-width: none; } #esempi .section-head h2 { max-width: 680px; } #esempi .section-head p { max-width: none; } }
/* Giochi e prezzi, «A confronto» on computers: less empty space above the title */
@media (min-width: 961px) { #confronto { padding-top: 64px; } }
