/* Nitroyale — site styles
   Palette taken from the 2026 logo: cream gold on near-black. */

:root {
	--bg: #090607;
	--bg-raised: #120e0e;
	--surface: #171211;
	--surface-2: #1f1917;
	--line: rgba(241, 220, 174, 0.12);
	--line-strong: rgba(241, 220, 174, 0.28);
	--text: #f3ead7;
	--muted: #b9a98c;
	--gold: #f1dcae;
	--gold-deep: #d8bb7d;
	--radius: 18px;
	--radius-sm: 12px;
	--container: 1120px;
	--font: 'Chakra Petch', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.1; font-weight: 700; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}
.container.narrow { max-width: 720px; }

.skip-link {
	position: absolute; left: -999px; top: 8px;
	padding: 8px 12px; background: var(--gold); color: var(--bg); border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
	text-align: center;
}
.hero-bg {
	position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-bg img, .hero-bg video {
	width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
	opacity: 0.95;
	animation: drift 28s ease-in-out infinite alternate;
}
.hero-bg::after {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(45% 55% at 50% 45%, rgba(9, 6, 7, 0.45), transparent 100%),
		linear-gradient(180deg, rgba(9, 6, 7, 0.45) 0%, rgba(9, 6, 7, 0.08) 30%, rgba(9, 6, 7, 0.25) 70%, var(--bg) 100%);
}
.hero-glow {
	position: absolute; inset: -20% -10% auto; height: 120%;
	background:
		radial-gradient(60% 55% at 50% 30%, rgba(241, 220, 174, 0.06), transparent 70%);
	pointer-events: none;
}
@keyframes drift {
	from { transform: scale(1.04) translateX(-1%); }
	to { transform: scale(1.1) translateX(1%); }
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-mark {
	width: clamp(140px, 22vw, 220px); height: auto;
	filter: drop-shadow(0 0 40px rgba(241, 220, 174, 0.25)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7));
}
.hero-wordmark { width: clamp(240px, 44vw, 420px); height: auto; margin-top: 1.5rem; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7)); }
.hero-tagline {
	margin-top: 1.75rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--gold);
	letter-spacing: 0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.hero-sub { max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.5rem; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 24px; border-radius: 999px; font-weight: 600; letter-spacing: 0.03em;
	border: 0; transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { background: rgba(241, 220, 174, 0.1); color: var(--gold); }
.btn-ghost:hover { background: rgba(241, 220, 174, 0.2); color: #fff; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow {
	margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--gold-deep);
}
.lead { font-size: 1.2rem; color: var(--text); }
.section p:not(.lead):not(.eyebrow) { color: var(--muted); }
.section-head { margin-bottom: 2.5rem; }

/* Games */
.game {
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border-radius: var(--radius);
	padding: 1.75rem;
	transition: transform 0.25s, box-shadow 0.25s;
}
.game:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.game.featured {
	padding: 0; overflow: hidden; margin-bottom: 1.5rem;
	display: grid; grid-template-columns: 1.25fr 1fr;
}
.game-media { display: block; position: relative; min-height: 100%; }
.game-media img { width: 100%; height: 100%; object-fit: cover; }
.game-media::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent 60%, var(--surface-2));
	pointer-events: none;
}
.featured .game-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

.game-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.game-icon { width: 80px; height: 80px; border-radius: 20px; flex: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.game-icon.wide { width: 128px; height: auto; border-radius: 10px; }
.game-title h3 { margin-bottom: 0.15em; }
.platforms { font-size: 0.85rem; color: var(--muted) !important; letter-spacing: 0.04em; }

.badge {
	display: inline-block; margin-bottom: 0.4rem; padding: 3px 10px; border-radius: 999px;
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--bg); background: var(--gold);
}

.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* Unannounced project teaser */
.teaser {
	position: relative; overflow: hidden; margin-top: 1.5rem;
	border-radius: var(--radius);
	min-height: 360px; display: flex; align-items: flex-end;
	transition: transform 0.25s, box-shadow 0.25s;
}
.teaser:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.teaser-img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
	transition: transform 0.8s ease;
}
.teaser:hover .teaser-img { transform: scale(1.03); }
.teaser::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(9, 6, 7, 0.1) 0%, rgba(9, 6, 7, 0.45) 45%, rgba(9, 6, 7, 0.92) 100%);
}
.teaser-body { position: relative; z-index: 1; padding: 2rem; max-width: 560px; }
.teaser-body h3 { font-size: 1.9rem; color: #fff; }
.teaser-body p { color: var(--muted); }
.teaser-body .btn { margin-top: 0.5rem; }
.badge-dark { background: rgba(9, 6, 7, 0.7); color: var(--gold); backdrop-filter: blur(6px); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }

.store-btn {
	display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 14px;
	border-radius: 10px; background: #000; color: #fff; line-height: 1.05;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.store-btn:hover { color: #fff; background: #1a1412; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.store-btn small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }

/* Socials */
.socials { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.socials a {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 18px 10px 14px; border-radius: 999px;
	background: rgba(241, 220, 174, 0.1); color: var(--gold); font-weight: 600;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}
.socials a:hover { background: var(--gold); color: var(--bg); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }
.hero-socials { justify-content: center; margin-top: 1.75rem; gap: 10px; }
.hero-socials a { padding: 8px 16px 8px 12px; font-size: 0.95rem; background: rgba(9, 6, 7, 0.55); backdrop-filter: blur(6px); }
.hero-socials svg { width: 20px; height: 20px; }

/* Footer */
.site-footer { padding: 2rem 0; }
.footer-inner {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
	color: var(--muted); font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* Legal pages */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.2em; }
.legal .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; margin-bottom: 0.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.3rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35em; }
.legal .scope {
	padding: 1rem 1.25rem; border-radius: var(--radius-sm);
	background: rgba(241, 220, 174, 0.08);
}
.legal .scope p { color: var(--text); }
.legal .placeholder {
	padding: 1px 6px; border-radius: 4px;
	background: rgba(241, 220, 174, 0.18); color: var(--gold); font-weight: 600;
}
.legal .back { display: inline-block; margin-bottom: 2rem; color: var(--muted); }
.legal .back:hover { color: var(--gold); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-bg img, .hero-bg video { animation: none; }
	.teaser:hover .teaser-img { transform: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
	.game.featured { grid-template-columns: 1fr; }
	.game-media { aspect-ratio: 16 / 9; min-height: 0; }
	.game-media::after { background: linear-gradient(180deg, transparent 60%, var(--surface-2)); }
	.game-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.game { padding: 1.25rem; }
	.teaser { min-height: 300px; }
	.teaser-body { padding: 1.25rem; }
	.featured .game-body { padding: 1.25rem; }
	.game-icon.wide { width: 104px; }
}
