/* slazh.net — colors follow the app icon: night blue velvet, bronze, ember red. */
:root {
	color-scheme: dark;
	--ink: #05080f;
	--night: #0a1222;
	--panel: #0e182b;
	--panel-edge: rgba(214, 160, 104, .18);
	--text: #ece4d6;
	--muted: #a3adc0;
	--bronze: #d09a5f;
	--bronze-light: #f0c792;
	--bronze-deep: #9a6232;
	--ember: #e0542f;
	--velvet: #2f5d9e;
	--display: "Cinzel", "Trajan Pro", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gutter: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--ink);
	color: var(--text);
	font: 17px/1.6 var(--body);
	overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--bronze-light); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.skip {
	position: absolute; left: 16px; top: -48px; z-index: 50;
	padding: 8px 14px; border-radius: 8px; background: var(--bronze); color: var(--ink);
}
.skip:focus { top: 12px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 14px;
	font: 600 16px/1 var(--body); letter-spacing: .02em; text-decoration: none;
	color: var(--text); background: rgba(14, 24, 43, .72);
	border: 1px solid rgba(240, 199, 146, .35);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--bronze-light); }
.button span {
	font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .12);
}
.button.primary {
	color: #24150a; border-color: #f6d3a2;
	background: linear-gradient(180deg, #f6d4a3 0%, var(--bronze) 55%, var(--bronze-deep) 100%);
	box-shadow: 0 10px 30px rgba(208, 154, 95, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.button.primary span { background: rgba(36, 21, 10, .16); }
.button.primary:hover { box-shadow: 0 14px 38px rgba(224, 84, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .55); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.button.is-pending { pointer-events: none; opacity: .62; }

/* Navigation */
.nav {
	position: fixed; inset: 0 0 auto; z-index: 20;
	display: flex; align-items: center; gap: 24px;
	padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
	transition: background .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}
.nav.is-solid {
	background: rgba(5, 8, 15, .84);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom-color: var(--panel-edge);
}
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--text); text-decoration: none; font-size: 15px; opacity: .85; }
.nav nav a:hover { opacity: 1; color: var(--bronze-light); }
.brand {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
	font: 700 18px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-light);
}
.brand img { height: 32px; width: auto; }

/* Hero */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: grid; place-items: center;
	padding: 96px var(--gutter) 120px;
	text-align: center;
}
.hero-slides, .hero-slides img { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
	width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
	opacity: 0; animation: slide 35s linear infinite;
}
.hero-slides img:nth-child(1) { animation-delay: -2s; }
.hero-slides img:nth-child(2) { animation-delay: 5s; }
.hero-slides img:nth-child(3) { animation-delay: 12s; }
.hero-slides img:nth-child(4) { animation-delay: 19s; }
.hero-slides img:nth-child(5) { animation-delay: 26s; }
@keyframes slide {
	0% { opacity: 0; transform: scale(1.12); }
	5% { opacity: 1; }
	20% { opacity: 1; }
	26% { opacity: 0; transform: scale(1.02); }
	100% { opacity: 0; transform: scale(1.02); }
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgba(5, 8, 15, .2) 0%, rgba(5, 8, 15, .78) 100%),
		linear-gradient(180deg, rgba(5, 8, 15, .7) 0%, rgba(5, 8, 15, 0) 22%, rgba(5, 8, 15, 0) 62%, var(--ink) 100%);
}
.hero-content { max-width: 780px; }
.logo { margin: 0; line-height: 0; }
.logo img {
	width: clamp(200px, 30vw, 330px); height: auto;
	filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 46px rgba(47, 93, 158, .45));
	animation: float 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.eyebrow {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	margin: 26px 0 0; color: var(--bronze-light); text-wrap: balance;
	font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
	content: ""; width: 48px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--bronze));
}
.eyebrow::after { transform: scaleX(-1); }
.lead {
	margin: 14px auto 0; max-width: 34em;
	font-size: clamp(18px, 2.2vw, 21px); text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
.scroll-hint {
	position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%);
	width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(240, 199, 146, .55);
}
.scroll-hint span {
	position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: var(--bronze-light); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Rising embers */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers i {
	position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
	background: radial-gradient(circle, #ffd9a0 0%, var(--ember) 55%, transparent 72%);
	box-shadow: 0 0 10px 2px rgba(224, 84, 47, .55);
	opacity: 0; animation: rise var(--t) linear var(--d) infinite;
}
.embers i:nth-child(1) { --x: 8%; --s: 5px; --t: 11s; --d: 0s; }
.embers i:nth-child(2) { --x: 17%; --s: 3px; --t: 14s; --d: 3s; }
.embers i:nth-child(3) { --x: 26%; --s: 4px; --t: 12s; --d: 6s; }
.embers i:nth-child(4) { --x: 34%; --s: 3px; --t: 16s; --d: 1s; }
.embers i:nth-child(5) { --x: 45%; --s: 5px; --t: 13s; --d: 8s; }
.embers i:nth-child(6) { --x: 55%; --s: 3px; --t: 15s; --d: 4s; }
.embers i:nth-child(7) { --x: 63%; --s: 4px; --t: 12s; --d: 10s; }
.embers i:nth-child(8) { --x: 71%; --s: 6px; --t: 17s; --d: 2s; }
.embers i:nth-child(9) { --x: 79%; --s: 3px; --t: 13s; --d: 7s; }
.embers i:nth-child(10) { --x: 86%; --s: 4px; --t: 15s; --d: 5s; }
.embers i:nth-child(11) { --x: 92%; --s: 3px; --t: 11s; --d: 9s; }
.embers i:nth-child(12) { --x: 4%; --s: 4px; --t: 18s; --d: 12s; }
@keyframes rise {
	0% { opacity: 0; transform: translate(0, 0); }
	10% { opacity: .9; }
	50% { transform: translate(18px, -50vh); }
	85% { opacity: .5; }
	100% { opacity: 0; transform: translate(-12px, -100vh); }
}

/* Numbers */
.stats {
	position: relative; z-index: 3;
	display: flex; flex-wrap: wrap; justify-content: center;
	width: min(980px, calc(100% - 32px)); margin: -64px auto 0; padding: 18px 8px; list-style: none;
	background: linear-gradient(180deg, rgba(20, 32, 56, .92), rgba(10, 18, 34, .94));
	border: 1px solid var(--panel-edge); border-radius: 20px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.stats li { flex: 1 1 0; min-width: 110px; padding: 8px 12px; text-align: center; }
.stats li + li { border-left: 1px solid rgba(214, 160, 104, .14); }
.stats strong {
	display: block; font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display);
	background: linear-gradient(180deg, #ffe2b5, var(--bronze) 70%, var(--bronze-deep));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* Sections */
.section { width: min(1180px, 100%); margin: 0 auto; padding: 104px var(--gutter) 24px; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p:not(.kicker) { color: var(--muted); margin: 0; }
.kicker {
	margin: 0 0 10px; color: var(--ember);
	font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
h2 {
	margin: 0 0 18px; font-size: clamp(30px, 5vw, 48px); letter-spacing: .02em;
	background: linear-gradient(180deg, #fff1d8 10%, var(--bronze-light) 60%, var(--bronze) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Features */
.features {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px;
	margin: 0; padding: 0; list-style: none;
}
.feature {
	position: relative; padding: 26px 26px 24px; border-radius: 20px;
	background: linear-gradient(160deg, #13203a 0%, var(--night) 70%);
	border: 1px solid var(--panel-edge);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(240, 199, 146, .45); box-shadow: 0 20px 44px rgba(0, 0, 0, .4); }
.feature > img { width: 80px; height: 80px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); }
.feature h3 { margin: 14px 0 8px; font-size: 21px; color: var(--bronze-light); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.mount-row { display: flex; height: 80px; align-items: center; }
.mount-row img { width: 96px; height: 96px; margin-right: -26px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }

/* Dungeons */
.dungeons { padding-bottom: 112px; }
.vista {
	position: relative; overflow: hidden; isolation: isolate;
	aspect-ratio: 2 / 1; border-radius: 24px;
	background: var(--night); border: 1px solid rgba(240, 199, 146, .28);
	box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 6px rgba(208, 154, 95, .06);
	scroll-margin-top: 84px;
}
.vista-art {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
	transition: opacity .35s ease, transform 6s ease;
}
.vista:hover .vista-art { transform: scale(1.03); }
.vista.is-loading .vista-art { opacity: .35; }
.vista::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(5, 8, 15, .94) 0%, rgba(5, 8, 15, .72) 34%, rgba(5, 8, 15, 0) 64%);
}
.vista-text {
	position: absolute; inset: 0 auto 0 0; width: min(48%, 540px);
	display: flex; flex-direction: column; justify-content: center; padding: 44px;
}
.vista-level {
	align-self: flex-start; margin: 0; padding: 5px 11px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: #24150a; background: linear-gradient(180deg, #f6d4a3, var(--bronze));
}
.vista h3 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 48px); color: #fff3df; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.vista-desc { margin: 0; color: #d6dbe6; }
.vista-facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 28px; margin: 22px 0 0; }
.vista-facts div:first-child { grid-column: 1 / -1; }
.vista-facts dt { color: var(--bronze); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.vista-facts dd { margin: 2px 0 0; font-size: 15px; }
.vista-nav { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 10px; }
.vista-nav button {
	width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
	font: 400 28px/1 var(--display); color: var(--bronze-light);
	background: rgba(5, 8, 15, .7); border: 1px solid rgba(240, 199, 146, .4);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vista-nav button:hover { background: rgba(208, 154, 95, .25); }
.dungeon-grid {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
	margin: 22px 0 0; padding: 0; list-style: none;
}
.dungeon-card {
	position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden;
	padding: 0; border-radius: 13px; cursor: pointer; text-align: left;
	background: var(--night); border: 1px solid rgba(255, 255, 255, .08);
	color: var(--text); font: inherit;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dungeon-card img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease, filter .3s ease; filter: saturate(.85) brightness(.85);
}
.dungeon-card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(5, 8, 15, .1) 30%, rgba(5, 8, 15, .88) 100%);
}
.dungeon-card:hover { transform: translateY(-2px); border-color: rgba(240, 199, 146, .5); }
.dungeon-card:hover img { transform: scale(1.07); filter: none; }
.dungeon-card[aria-pressed="true"] {
	border-color: var(--bronze-light);
	box-shadow: 0 0 0 2px rgba(240, 199, 146, .55), 0 12px 30px rgba(224, 84, 47, .25);
}
.dungeon-card[aria-pressed="true"] img { filter: none; }
.dungeon-card:focus-visible, .vista-nav button:focus-visible, .button:focus-visible { outline: 3px solid var(--bronze-light); outline-offset: 3px; }
.dungeon-level, .dungeon-name { position: absolute; z-index: 1; }
.dungeon-level {
	top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .06em;
	color: var(--bronze-light); background: rgba(5, 8, 15, .78); border: 1px solid rgba(240, 199, 146, .3);
}
.dungeon-name {
	left: 10px; right: 10px; bottom: 7px;
	font: 600 15px/1.2 var(--display); color: #fff3df; text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

/* Call to action */
.cta {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; place-items: center; min-height: 560px;
	padding: 112px var(--gutter); text-align: center;
	border-top: 1px solid var(--panel-edge);
}
.cta-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 60% 70% at 50% 50%, rgba(5, 8, 15, .42) 0%, rgba(5, 8, 15, .9) 100%),
		linear-gradient(180deg, var(--ink) 0%, rgba(5, 8, 15, 0) 25%, rgba(5, 8, 15, 0) 75%, var(--ink) 100%);
}
.cta-content { max-width: 680px; }
.cta-content p:not(.kicker) { color: #d6dbe6; margin: 0; }

/* Footer */
.site-footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
	padding: 30px var(--gutter) max(30px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--panel-edge); color: var(--muted); font-size: 15px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--bronze-light); }
.site-footer .brand { font-size: 15px; color: var(--bronze-light); }
.site-footer .brand img { height: 28px; }

/* Legal pages */
.page { flex: 1; width: min(760px, 100%); margin: 0 auto; padding: 112px var(--gutter) 64px; }
.page h1 { margin: 0 0 18px; font-size: clamp(32px, 6vw, 44px); color: var(--bronze-light); }
.page h2 { margin: 36px 0 8px; font-size: 22px; background: none; color: var(--bronze-light); }
.page p { color: #d3d8e2; }
body.legal { background: radial-gradient(ellipse 80% 40% at 50% 0%, #142039 0%, var(--ink) 70%); }
body.legal .nav { background: rgba(5, 8, 15, .84); border-bottom-color: var(--panel-edge); }

@media (max-width: 1000px) {
	.dungeon-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
	.nav nav { display: none; }
	.nav .button { margin-left: auto; }
	.hero { padding-bottom: 132px; }
	.scroll-hint { display: none; }
	.stats { margin-top: -84px; padding: 10px 4px; }
	.stats li { flex-basis: 33%; min-width: 0; padding: 10px 6px; }
	.stats li + li { border-left: 0; }
	.section { padding-top: 80px; }
	.vista { aspect-ratio: auto; display: flex; flex-direction: column; }
	.vista-art { position: relative; z-index: 0; aspect-ratio: 2 / 1; height: auto; }
	.vista::before { display: none; }
	.vista-text { position: static; width: auto; padding: 22px 20px 24px; background: linear-gradient(180deg, #111c33, var(--night)); }
	.vista-facts { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
	.vista-nav { top: 12px; right: 12px; bottom: auto; }
	.vista-nav button { width: 40px; height: 40px; font-size: 24px; }
	.dungeon-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.dungeon-name { font-size: 13px; }
}
@media (max-width: 520px) {
	.dungeon-grid { grid-template-columns: repeat(2, 1fr); }
	.eyebrow::before, .eyebrow::after { display: none; }
	.eyebrow { letter-spacing: .14em; font-size: 12px; }
	.actions .button { flex: 1 1 100%; }
	.feature { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 20px; }
	.feature > img { grid-row: span 2; width: 64px; height: 64px; }
	.feature h3 { margin: 2px 0 6px; font-size: 19px; }
	.feature.mounts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-slides img, .logo img, .scroll-hint span { animation: none; }
	.hero-slides img:first-child { opacity: 1; }
	.embers { display: none; }
	.feature, .dungeon-card, .dungeon-card img, .vista-art, .button { transition: none; }
}
