/* NoSurvivors - sito. Stile: pannelli blu notte con bordo d'oro (come le finestre di NosTale), titoli Luckiest Guy
   con contorno scuro spesso, pulsanti "di gioco", puntatori originali del client. */
@font-face { font-family: "Luckiest Guy"; src: url(fonts/LuckiestGuy-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Titan One"; src: url(fonts/TitanOne-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/Nunito.ttf) format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
	--night: #10142b;
	--night2: #181e45;
	--panel: #222a5e;
	--panel2: #171d48;
	--gold: #ffcf4a;
	--gold2: #f59e1c;
	--goldline: #e2b04a;
	--ink: #f6f2e6;
	--muted: #b8bfe0;
	--fire: #ff6a3d;
	--water: #4fb6ff;
	--light: #ffe27a;
	--shadow: #b77bff;
	--neutral: #8fe07a;
	--red: #ff5a4e;
	--outline: #1c0f04;
	--radius: 16px;
	--nav-h: 68px;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); background: var(--night); }
body {
	margin: 0; color: var(--ink); background: var(--night);
	font: 500 17px/1.6 "Nunito", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

/* puntatori originali di NosTale (solo con il mouse) */
@media (hover: hover) and (pointer: fine) {
	html, body { cursor: url(media/cursor_default.png) 0 0, auto; }
	a, button, summary, label, input[type=range], [role=tab], .sp-card, .gallery a, [data-trailer], .rail-btn {
		cursor: url(media/cursor_hand.png) 4 0, pointer;
	}
}
.click-spark { position: fixed; pointer-events: none; z-index: 9999; width: 6px; height: 6px; border-radius: 50%;
	background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: spark .5s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; position: relative; }
.gold { color: var(--gold); }
.red { color: var(--red); }

/* --- titoli: Luckiest Guy con contorno spesso, come nel trailer --- */
.title, .hero-title, .feat-text h3, .mode-body h3, .dl-head h3 {
	font-family: "Luckiest Guy", "Titan One", sans-serif; letter-spacing: .02em; color: #fff;
	-webkit-text-stroke: 0; paint-order: stroke fill;
	text-shadow:
		0 0 0 var(--outline),
		3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 3px 0 var(--outline), 0 -3px 0 var(--outline),
		2px 2px 0 var(--outline), -2px 2px 0 var(--outline), 2px -2px 0 var(--outline), -2px -2px 0 var(--outline),
		0 6px 0 rgba(0,0,0,.45), 0 10px 22px rgba(0,0,0,.4);
}
.title { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; margin-bottom: 18px; }
.kicker { font-family: "Titan One", sans-serif; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }

/* --- pannelli in stile NosTale --- */
.frame {
	position: relative; border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(180deg, var(--panel), var(--panel2));
	border: 3px solid var(--goldline);
	box-shadow: inset 0 0 0 2px #4b3208, 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,220,120,.15);
}
.frame::before, .frame::after {
	content: ""; position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none;
	background: radial-gradient(circle at 50% 50%, #fff6c8 0 18%, var(--gold) 30%, #9c6510 70%);
	transform: rotate(45deg); top: 6px; left: 6px; border-radius: 2px; box-shadow: 0 0 6px rgba(255,200,80,.6);
}
.frame::after { left: auto; right: 6px; }
.frame img, .frame video { width: 100%; height: auto; }

/* --- pulsanti di gioco --- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; border: 0; text-decoration: none;
	font: 400 18px/1 "Titan One", sans-serif; color: #2b1400; padding: 14px 24px; border-radius: 14px;
	position: relative; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold {
	background: linear-gradient(180deg, #ffe58a 0%, #ffc63b 45%, #f0921a 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(150,70,0,.45), 0 0 0 3px #5b2f02, 0 8px 0 #3a1d00, 0 14px 24px rgba(0,0,0,.4);
}
.btn-blue {
	color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4);
	background: linear-gradient(180deg, #7fd8ff 0%, #2f8ef0 55%, #1d5fc8 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,30,90,.45), 0 0 0 3px #0b2558, 0 8px 0 #071a40, 0 14px 24px rgba(0,0,0,.4);
}
.btn-blue svg { fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 0 0 3px #5b2f02, 0 3px 0 #3a1d00; }
.btn-lg { font-size: 21px; padding: 18px 30px; }
.btn-sm { font-size: 15px; padding: 10px 16px; border-radius: 11px; }

.tag { display: inline-block; font: 400 12px/1 "Titan One", sans-serif; letter-spacing: .06em; text-transform: uppercase;
	padding: 6px 10px; border-radius: 999px; background: rgba(79,182,255,.16); color: #9fdcff; border: 1px solid rgba(79,182,255,.45); }
.tag.proto { background: rgba(255,207,74,.14); color: var(--gold); border-color: rgba(255,207,74,.5); }

/* --- barra di navigazione --- */
.nav {
	position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; gap: 24px;
	padding: 0 max(16px, calc((100% - 1240px) / 2)); transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.solid { background: rgba(14,18,44,.86); backdrop-filter: blur(10px); box-shadow: 0 2px 0 rgba(226,176,74,.35), 0 10px 30px rgba(0,0,0,.35); }
.nav-logo img { height: 46px; width: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: #fff; text-decoration: none; font: 400 15px/1 "Titan One", sans-serif; padding: 10px 12px; border-radius: 10px;
	text-shadow: 0 2px 0 rgba(0,0,0,.5); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.on { background: rgba(255,207,74,.16); color: var(--gold); }
.nav-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255,207,74,.15); padding: 11px; }
.nav-burger span { display: block; height: 3px; margin: 5px 0; background: var(--gold); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* --- lingua (bandiere) --- */
.lang { position: relative; flex: none; }
.lang-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 11px; border: 2px solid rgba(226,176,74,.55);
	background: rgba(14,18,44,.6); color: #fff; font: 400 14px/1 "Titan One", sans-serif; }
.lang-btn:hover, .lang-btn[aria-expanded=true] { background: rgba(255,207,74,.18); border-color: var(--gold); }
.lang svg { width: 26px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); flex: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 180px; border-radius: 14px; z-index: 60;
	background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 3px solid var(--goldline); box-shadow: inset 0 0 0 2px #4b3208, 0 16px 30px rgba(0,0,0,.5); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #fff; text-decoration: none; font: 400 15px/1 "Titan One", sans-serif; }
.lang-menu a:hover { background: rgba(255,207,74,.16); color: var(--gold); }
.lang-menu a[aria-current] { background: rgba(255,207,74,.24); color: var(--gold); }

/* --- hero --- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 170px; }
.hero-bg { position: absolute; inset: -8% -4% -4%; z-index: -3; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2;
	background: radial-gradient(ellipse at 50% 35%, rgba(16,20,43,.05), rgba(16,20,43,.55) 60%, rgba(16,20,43,.95) 100%),
	linear-gradient(180deg, rgba(16,20,43,.35), rgba(16,20,43,0) 25%, rgba(16,20,43,0) 70%, var(--night) 100%); }
.hero-clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-clouds i { position: absolute; width: 60vw; height: 22vw; border-radius: 50%; filter: blur(30px); opacity: .35;
	background: radial-gradient(ellipse, #fff 0%, rgba(255,255,255,0) 70%); animation: drift 40s linear infinite; }
.hero-clouds i:nth-child(1) { top: 8%; left: -30%; }
.hero-clouds i:nth-child(2) { top: 40%; left: -60%; animation-duration: 55s; animation-delay: -20s; opacity: .22; }
.hero-clouds i:nth-child(3) { top: 62%; left: -40%; animation-duration: 70s; animation-delay: -35s; opacity: .18; }
@keyframes drift { to { transform: translateX(170vw); } }
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-mimi { position: absolute; right: max(-40px, calc((100% - 1400px) / 2)); bottom: 130px; height: min(70vh, 660px); width: auto; z-index: 0;
	filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.hero { place-items: center start; }
.hero-inner { position: relative; z-index: 2; text-align: left; width: min(700px, 100% - 32px); margin-left: max(16px, calc((100% - 1240px) / 2)); }
.hero-logo { width: min(640px, 100%); height: auto; margin: 0 0 10px -10px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); animation: pop 1s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes pop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.hero-title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 16px; }
.hero-title span { color: var(--gold); }
.hero-lead { font-size: clamp(17px, 1.6vw, 21px); color: #eef0ff; text-shadow: 0 2px 8px rgba(0,0,0,.8); max-width: 620px; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span { font: 400 13px/1 "Titan One", sans-serif; padding: 8px 12px; border-radius: 999px; background: rgba(12,16,40,.62);
	border: 1px solid rgba(255,207,74,.45); color: #ffe9a8; backdrop-filter: blur(4px); }
.hero-fan { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.75); text-shadow: 0 1px 4px #000; }
.hero-parade { position: absolute; left: 0; right: 0; bottom: 18px; height: 140px; z-index: 1; overflow: hidden; pointer-events: none;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-track { position: absolute; bottom: 0; display: flex; align-items: flex-end; gap: 26px; width: max-content; animation: parade 60s linear infinite; }
@keyframes parade { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-scroll { position: absolute; bottom: 150px; left: 50%; translate: -50% 0; width: 30px; height: 48px; border: 3px solid rgba(255,255,255,.75); border-radius: 18px; z-index: 3; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* --- sprite animati (strisce del gioco) --- */
.sprite { --s: 1; display: block; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px);
	background-repeat: no-repeat; background-size: calc(var(--w) * var(--n) * var(--s) * 1px) calc(var(--h) * var(--s) * 1px);
	animation: sprite calc(var(--n) * 70ms) steps(var(--n)) infinite; image-rendering: auto; }
@keyframes sprite { from { background-position-x: 0; } to { background-position-x: calc(var(--w) * var(--n) * var(--s) * -1px); } }
.shadow-foot { position: relative; }
.shadow-foot::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 60%; height: 12px; translate: -50% 0;
	background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); z-index: -1; }

/* --- sezioni --- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.sec-bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; opacity: .16; z-index: 0; will-change: transform;
	mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.sec > .wrap { z-index: 1; }

.about { background: radial-gradient(ellipse at 50% 0%, #20286a 0%, var(--night) 65%); }
.compare { position: relative; margin: 40px 0 50px; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--goldline);
	box-shadow: inset 0 0 0 2px #4b3208, 0 22px 50px rgba(0,0,0,.55); aspect-ratio: 16 / 9; user-select: none; }
.compare > img, .compare-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 4; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--gold); z-index: 3; box-shadow: 0 0 14px var(--gold); pointer-events: none; }
.compare-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center; font: 400 22px/1 "Titan One"; color: #3a1d00; background: linear-gradient(#ffe58a, #f0921a); border: 3px solid #5b2f02; }
.compare-tag { position: absolute; top: 16px; z-index: 3; font: 400 15px/1 "Titan One"; padding: 9px 14px; border-radius: 10px; background: rgba(10,12,30,.7); border: 1px solid rgba(255,207,74,.5); }
.compare-tag.l { left: 16px; } .compare-tag.r { right: 16px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.pillar { padding: 24px 20px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(40,48,110,.75), rgba(22,27,66,.75));
	border: 2px solid rgba(226,176,74,.45); transition: transform .25s, border-color .25s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--gold); }
.pillar img { width: 52px; height: 52px; border-radius: 10px; border: 2px solid var(--goldline); margin-bottom: 12px; image-rendering: auto; }
.pillar h3 { font: 400 20px/1.2 "Titan One"; margin-bottom: 6px; color: #fff; }
.pillar p { font-size: 15px; color: var(--muted); margin: 0; }
.trailer { max-width: 980px; margin: 0 auto; }
.trailer video { display: block; aspect-ratio: 16 / 9; background: #000; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* funzioni */
.features { background: linear-gradient(180deg, var(--night) 0%, #141a40 50%, var(--night) 100%); }
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin: 70px 0; }
.feat.flip .feat-media { order: 2; }
.feat-media { position: relative; }
.tilt-r .frame { transform: perspective(1200px) rotateY(-7deg) rotateX(2deg); transition: transform .5s; }
.tilt-l .frame { transform: perspective(1200px) rotateY(7deg) rotateX(2deg); transition: transform .5s; }
.feat-media:hover .frame { transform: perspective(1200px) rotateY(0) scale(1.02); }
.feat-npc { position: absolute; bottom: -30px; height: 72%; width: auto; z-index: 4; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); pointer-events: none; }
.tilt-r .feat-npc { right: -40px; } .tilt-l .feat-npc { left: -40px; }
.feat-num { font: 400 64px/1 "Luckiest Guy"; color: transparent; -webkit-text-stroke: 2px rgba(255,207,74,.55); display: block; margin-bottom: 6px; }
.feat-text h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.feat-text p { color: #d5d9f1; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; color: #e7e9f8; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; transform: rotate(45deg) scale(.75); border-radius: 3px;
	background: linear-gradient(135deg, #fff1b0, var(--gold) 45%, #b06a0a); box-shadow: 0 0 8px rgba(255,200,80,.6); }
.stack { position: relative; height: 470px; }
.stack .frame { position: absolute; width: 74%; transition: transform .4s, z-index 0s; }
.stack .s1 { left: 0; top: 0; transform: rotate(-4deg); }
.stack .s2 { left: 14%; top: 70px; transform: rotate(2deg); z-index: 2; }
.stack .s3 { right: 0; top: 150px; transform: rotate(5deg); z-index: 3; }
.stack .frame:hover { transform: rotate(0) scale(1.06); z-index: 5; }
.pet-row { position: absolute; left: 4%; right: 4%; bottom: -36px; display: flex; justify-content: space-around; align-items: flex-end; z-index: 4; pointer-events: none; }

/* carte specialista */
.specialists { background: radial-gradient(ellipse at 50% 30%, #2b1f5e 0%, var(--night) 70%); }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.sp-tabs button { font: 400 15px/1 "Titan One"; color: #e9ebff; padding: 11px 16px; border-radius: 12px; border: 2px solid rgba(226,176,74,.45);
	background: rgba(30,36,90,.7); transition: background .2s, color .2s, transform .2s; }
.sp-tabs button[aria-selected=true] { background: linear-gradient(180deg, #ffe58a, #f0a62b); color: #3a1d00; border-color: #5b2f02; }
.sp-tabs button:hover { transform: translateY(-2px); }
.sp-rail-wrap { position: relative; }
.sp-rail, .mode-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 6px 34px; scrollbar-width: thin; scrollbar-color: var(--goldline) transparent; }
.sp-rail::-webkit-scrollbar, .mode-rail::-webkit-scrollbar { height: 8px; }
.sp-rail::-webkit-scrollbar-thumb, .mode-rail::-webkit-scrollbar-thumb { background: var(--goldline); border-radius: 4px; }
.rail-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 3px solid #5b2f02;
	font: 400 30px/1 "Titan One"; color: #3a1d00; background: linear-gradient(180deg, #ffe58a, #f0921a); box-shadow: 0 6px 0 #3a1d00; }
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }
.rail-btn:hover { filter: brightness(1.1); }
.sp-card { --el: var(--neutral); flex: 0 0 230px; scroll-snap-align: start; position: relative; border-radius: 18px; padding: 14px 14px 16px; text-align: center;
	background: linear-gradient(180deg, color-mix(in srgb, var(--el) 22%, #1d2356) 0%, #141943 60%);
	border: 3px solid color-mix(in srgb, var(--el) 70%, #e2b04a); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45);
	transition: transform .3s cubic-bezier(.2,1.4,.4,1), box-shadow .3s; }
.sp-card:hover, .sp-card:focus-visible { transform: translateY(-10px) rotate(-1deg); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 0 28px color-mix(in srgb, var(--el) 70%, transparent), 0 22px 40px rgba(0,0,0,.5); }
.sp-card.el-fire { --el: var(--fire); } .sp-card.el-water { --el: var(--water); } .sp-card.el-light { --el: var(--light); } .sp-card.el-shadow { --el: var(--shadow); }
.sp-el { position: absolute; top: 10px; right: 10px; font: 400 11px/1 "Titan One"; text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 999px;
	color: #10142b; background: var(--el); }
.sp-stage { height: 190px; display: grid; place-items: end center; position: relative; margin-bottom: 6px;
	background: radial-gradient(ellipse at 50% 92%, color-mix(in srgb, var(--el) 45%, transparent) 0, transparent 55%); }
.sp-stage .sprite.run { display: none; }
.sp-card:hover .sp-stage .sprite.idle { display: none; }
.sp-card:hover .sp-stage .sprite.run { display: block; }
.sp-name { display: flex; align-items: center; gap: 10px; text-align: left; }
.sp-name img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--el); background: #0c0f26; flex: none; }
.sp-name b { font: 400 18px/1.1 "Titan One"; display: block; color: #fff; }
.sp-name small { color: var(--muted); font-size: 13px; }
.sp-skills { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.sp-skills img { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }

/* mondo: classi, mappe, boss */
.world { background: linear-gradient(180deg, var(--night), #0f1b33 50%, var(--night)); }
.classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 34px 0 100px; }
.cls { text-align: center; padding: 18px 12px 20px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(36,44,104,.8), rgba(16,20,52,.85));
	border: 2px solid rgba(226,176,74,.5); transition: transform .3s; }
.cls:hover { transform: translateY(-8px); }
.cls-stage { height: 170px; display: grid; place-items: end center; }
.cls h3 { font: 400 22px/1.1 "Titan One"; margin: 10px 0 4px; }
.cls p { font-size: 14px; color: var(--muted); margin: 0; }
.cls .cnt { display: inline-block; margin-top: 10px; font: 400 12px/1 "Titan One"; color: var(--gold); }
.maps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 100px; }
.map { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 2px solid rgba(226,176,74,.55); aspect-ratio: 16 / 10; }
.map img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.map:hover img { transform: scale(1.08); }
.map figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font: 400 17px/1 "Titan One";
	background: linear-gradient(transparent, rgba(5,8,25,.9)); }
.raid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin: 30px 0 40px; }
.raid-text h3 { font: 400 26px/1.2 "Titan One"; margin-bottom: 12px; color: var(--gold); }
.raid-text p { color: #d5d9f1; }
.bestiary { display: flex; gap: 30px; overflow-x: auto; align-items: flex-end; padding: 30px 10px 20px; scroll-snap-type: x proximity;
	background: linear-gradient(180deg, transparent, rgba(255,90,60,.08)); border-bottom: 3px solid rgba(226,176,74,.4); scrollbar-width: thin; }
.boss { flex: none; text-align: center; scroll-snap-align: center; }
.boss .sprite { margin: 0 auto 8px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.boss b { display: block; font: 400 15px/1.2 "Titan One"; }
.boss small { color: var(--muted); font-size: 12px; }

/* atto 2 */
.act2 { min-height: 80vh; display: grid; align-items: center; background: #1a0508; }
.act2-bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; filter: saturate(1.15) brightness(.6); will-change: transform; }
.act2-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.act2-shot { transform: perspective(1200px) rotateY(-8deg) rotateZ(1deg); border-color: #ff6b5e; box-shadow: inset 0 0 0 2px #4b0808, 0 0 40px rgba(255,60,50,.35), 0 20px 40px rgba(0,0,0,.6); }
.act2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,3,8,.92) 0%, rgba(25,3,8,.7) 50%, rgba(25,3,8,.45) 100%), radial-gradient(ellipse at 80% 50%, rgba(255,40,40,.2), transparent 60%); }
.act2-inner { z-index: 2; }
.act2 .title { font-size: clamp(60px, 10vw, 130px); }
.act2 .lead { color: #f0d6d3; }
.act2-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.act2-list li { padding: 12px 16px; border-left: 4px solid var(--red); background: rgba(255,60,50,.08); border-radius: 0 10px 10px 0; color: #f5e2e0; }
.act2-list b { color: #fff; }

/* modalita' */
.modes { background: radial-gradient(ellipse at 20% 20%, #123d3a 0%, var(--night) 55%), var(--night); }
.mode { --c: var(--gold); flex: 0 0 min(420px, 85vw); scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: #141a40;
	border: 3px solid color-mix(in srgb, var(--c) 70%, #e2b04a); box-shadow: 0 16px 34px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.mode:hover { transform: translateY(-10px) rotate(.6deg); }
.mode-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #0d1230); }
.mode-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .6s; }
.mode-img .mode-logo { object-fit: contain; padding: 16% 10%; }
.mode-img .mode-alt { opacity: 0; }
.mode:hover .mode-img .mode-alt { opacity: 1; }
.mode:hover .mode-img img { transform: scale(1.05); }
.mode-body { padding: 18px 20px 22px; }
.mode-body h3 { font-size: 36px; margin: 12px 0 8px; color: #fff; }
.mode-body p { color: #ccd2f0; font-size: 15px; margin: 0; }

/* multiplayer */
.multi { background: linear-gradient(180deg, var(--night), #152048 60%, var(--night)); }
.multi-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.multi-list { list-style: none; padding: 0; margin: 20px 0 0; }
.multi-list li { margin: 10px 0; padding-left: 34px; position: relative; color: #dfe3fa; }
.multi-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #c9f1ff, #3b9cf2 60%, #164a9c); box-shadow: 0 0 10px rgba(79,182,255,.6); }
.multi-stage { position: relative; height: 380px; border-radius: 24px; overflow: hidden; border: 3px solid var(--goldline);
	background: url(media/art/bg_stone.webp) center / cover; box-shadow: inset 0 0 0 2px #4b3208, 0 20px 40px rgba(0,0,0,.5); }
.multi-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,40,.15), rgba(10,14,40,.35)); }
.multi-ground { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; align-items: flex-end; gap: 2%; z-index: 2; }
.multi-ground .who { text-align: center; }
.multi-ground .who .sprite { margin: 0 auto; }
.multi-ground .who span { display: inline-block; margin-top: 6px; font: 400 12px/1 "Titan One"; padding: 5px 8px; border-radius: 6px; background: rgba(10,12,30,.75); }
.multi-ground .p1 span { color: #ffd84a; } .multi-ground .p2 span { color: #6fd0ff; } .multi-ground .p3 span { color: #95f07a; } .multi-ground .p4 span { color: #ff8fb0; }

/* galleria */
.gallery-sec { background: var(--night); }
.gallery { columns: 3 320px; column-gap: 16px; margin-top: 30px; }
.gallery a { display: block; margin-bottom: 16px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(226,176,74,.5); break-inside: avoid; position: relative; }
.gallery a img { width: 100%; transition: transform .5s, filter .5s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(1.1); }
.gallery a::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font: 400 14px/1.2 "Titan One";
	background: linear-gradient(transparent, rgba(5,8,25,.9)); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }

/* gioca nel browser */
.play { background: var(--night); padding-top: 40px; }
.play-box { min-height: 360px; display: grid; align-items: center; }
.play-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.play-content { position: relative; z-index: 2; padding: clamp(28px, 5vw, 60px); max-width: 760px; }
.play-content .title { margin-top: 14px; }
.play-content p { color: #e1e5fb; }

.play-wrap { margin-top: 30px; }
.play-screen { aspect-ratio: 16 / 9; background: #000; }
.play-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.play-poster { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; filter: brightness(.45) saturate(1.1); }
.play-start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; z-index: 2; }
.play-start p { margin: 0; color: #e7e9fa; font-size: 15px; text-shadow: 0 2px 6px #000; }
.play-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.play-bar .btn[disabled] { opacity: .5; pointer-events: none; }
.play-msg { color: var(--muted); font-size: 14px; }
.play-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 36px; }
.play-info h3 { font: 400 22px/1.2 "Titan One"; color: var(--gold); margin-bottom: 8px; }
@media (max-width: 640px) { .play-info { grid-template-columns: 1fr; } }

/* download */
.download { background: linear-gradient(180deg, var(--night), #1b1f4a); }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.dl { padding: 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(40,48,110,.92), rgba(18,22,58,.95)); border: 3px solid var(--goldline);
	box-shadow: inset 0 0 0 2px #4b3208, 0 18px 40px rgba(0,0,0,.45); }
.dl-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.dl-head svg { width: 54px; height: 54px; fill: #fff; flex: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.dl-head h3 { font-size: 34px; }
.dl-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dl-btn { width: 100%; justify-content: center; margin-bottom: 18px; }
.dl details { border-top: 1px solid rgba(255,255,255,.12); padding: 10px 0; }
.dl summary { font: 400 16px/1.3 "Titan One"; color: var(--gold); list-style: none; }
.dl summary::-webkit-details-marker { display: none; }
.dl summary::before { content: "+ "; }
.dl details[open] summary::before { content: "− "; }
.dl ol, .dl ul { margin: 10px 0 4px; padding-left: 20px; color: #d6daf3; font-size: 15px; }
.dl-note { text-align: center; color: var(--muted); margin-top: 30px; }

/* footer */
.foot { background: #0a0d20; padding: 60px 0 40px; border-top: 3px solid rgba(226,176,74,.35); }
.foot-inner { text-align: center; }
.foot-logo { width: 220px; height: auto; margin: 0 auto 20px; }
.disclaimer { max-width: 820px; margin: 0 auto 16px; color: #c4c9e6; font-size: 15px; }
.foot-small { color: #7f86ad; font-size: 13px; }

/* finestra (dettagli carta, trailer, foto) */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(5,7,20,.82); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { width: min(1100px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.modal-box.wide { padding: 0; background: #000; }
.modal-x { position: absolute; top: 10px; right: 12px; z-index: 6; width: 42px; height: 42px; border-radius: 10px; border: 2px solid #5b2f02;
	background: linear-gradient(#ffe58a, #f0921a); font: 400 26px/1 "Titan One"; color: #3a1d00; }
.modal-body video, .modal-body .lb-img { display: block; width: 100%; height: auto; max-height: calc(100vh - 90px); object-fit: contain; }
.lb-cap { text-align: center; padding: 10px; font: 400 15px/1 "Titan One"; color: #fff; background: #0a0d20; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 6; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.spd { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.spd-stage { height: 280px; display: grid; place-items: end center; border-radius: 14px; background: radial-gradient(ellipse at 50% 90%, rgba(255,207,74,.3), transparent 60%), #10153a; }
.spd h3 { font: 400 34px/1.1 "Luckiest Guy"; margin-bottom: 4px; }
.spd .meta { color: var(--muted); margin-bottom: 14px; }
.spd ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spd li { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 15px; }
.spd li img { width: 34px; height: 34px; border-radius: 6px; }
.spd li small { color: var(--gold); font-size: 11px; margin-left: auto; text-transform: uppercase; }

/* comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* --- schermi piccoli --- */
@media (max-width: 1000px) {
	.nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 16px 20px;
		background: rgba(14,18,44,.97); border-bottom: 2px solid var(--goldline); transform: translateY(-120%); transition: transform .3s; }
	.nav-links.open { transform: none; }
	.nav-links a { padding: 14px 10px; font-size: 18px; }
	.nav-burger { display: block; margin-left: 10px; }
	.lang { margin-left: auto; }
	.nav-cta { display: none; }
	.nav.menu .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.nav.menu .nav-burger span:nth-child(2) { opacity: 0; }
	.nav.menu .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.pillars { grid-template-columns: repeat(2, 1fr); }
	.feat, .feat.flip, .raid, .multi-inner, .act2-inner { grid-template-columns: 1fr; }
	.hero { place-items: center; }
	.hero-inner { margin: 0 auto; text-align: center; }
	.hero-logo { margin: 0 auto 10px; }
	.hero-lead { margin: 0 auto 26px; }
	.hero-cta, .hero-badges { justify-content: center; }
	.feat.flip .feat-media { order: 0; }
	.classes { grid-template-columns: repeat(3, 1fr); }
	.maps { grid-template-columns: repeat(2, 1fr); }
	.hero-mimi { opacity: .45; right: -120px; height: 52vh; }
	.feat-npc { height: 52%; }
	.tilt-r .feat-npc { right: -10px; } .tilt-l .feat-npc { left: -10px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.lead { font-size: 17px; }
	.pillars, .dl-grid { grid-template-columns: 1fr; }
	.classes { grid-template-columns: repeat(2, 1fr); }
	.act2-list { grid-template-columns: 1fr; }
	.stack { height: 330px; }
	.hero { padding-bottom: 150px; }
	.hero-mimi { display: none; }
	.hero-scroll { display: none; }
	.btn-lg { font-size: 18px; padding: 15px 22px; }
	.rail-btn { display: none; }
	.spd { grid-template-columns: 1fr; }
	.spd ul { grid-template-columns: 1fr; }
	.compare-handle::after { width: 44px; height: 44px; }
	.feat-npc { display: none; }
	.multi-stage { height: 300px; }
	.map figcaption { font-size: 13px; padding: 20px 8px 8px; }
	.multi-ground .sprite { --s: .72 !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
	.parade-track { transform: none; }
}
