/* Stinky Doggy Studios / Kingdom Fall -- one stylesheet for the whole site. */

@font-face {
	font-family: "Cinzel";
	src: url("../fonts/cinzel-latin.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Luckiest Guy";
	src: url("../fonts/luckiest-guy-latin.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--bg: #0e0b08;
	--bg-2: #15110c;
	--panel: #1b1510;
	--panel-2: #231b14;
	--line: rgba(242, 193, 78, 0.16);
	--line-strong: rgba(242, 193, 78, 0.38);
	--gold: #f2c14e;
	--gold-2: #d99b33;
	--gold-deep: #8a5a1c;
	--ember: #e8622c;
	--ember-2: #b8361a;
	--text: #ece3d0;
	--muted: #b5a88f;
	--faint: #7d7262;
	--dog: #ffd21f;
	--stink: #8fbf3a;
	--radius: 14px;
	--max: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
	--display: "Cinzel", "Trajan Pro", Georgia, serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fun: "Luckiest Guy", "Arial Black", Impact, sans-serif;
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: clamp(16px, 1.05vw + 10px, 18px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(242, 193, 78, 0.4); text-underline-offset: 3px; }
a:hover { color: #ffd77a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.02em;
	margin: 0 0 0.5em;
	color: #f6ecd6;
	text-wrap: balance;
}
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: clamp(21px, 1.7vw, 26px); }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--gold); color: #1a1208; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--display); font-size: 13px; font-weight: 700;
	letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
	margin-bottom: 16px;
}
.eyebrow::before, .eyebrow.both::after {
	content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.both::after { background: linear-gradient(90deg, var(--gold), transparent); }

.lead { font-size: clamp(18px, 1.3vw + 10px, 21px); color: #e2d7c0; max-width: 62ch; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ header */

.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.solid, .site-header.open {
	background: rgba(14, 11, 8, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--text); text-decoration: none;
	font-family: var(--fun); font-size: 21px; letter-spacing: 0.03em; line-height: 1;
}
.brand img { width: 44px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.brand span { color: var(--dog); text-shadow: 0 2px 0 #000; padding-top: 3px; }
.brand:hover { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: #dcd1bb; text-decoration: none; font-size: 15px; font-weight: 500;
	transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(242, 193, 78, 0.1); }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links .nav-cta {
	margin-left: 8px; border: 1px solid var(--line-strong); color: var(--gold);
}
.nav-toggle {
	display: none; background: none; border: 1px solid var(--line-strong); color: var(--gold);
	width: 44px; height: 44px; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 820px) {
	.nav-toggle { display: grid; place-items: center; }
	.nav-links {
		position: absolute; top: 72px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 20px;
		background: rgba(14, 11, 8, 0.97);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-header.open .nav-links { display: flex; }
	.nav-links a { padding: 14px 8px; border-radius: 8px; font-size: 17px; }
	.nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ------------------------------------------------------------ buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 10px;
	font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
	text-decoration: none; cursor: pointer; border: 0;
	transition: transform 0.15s, box-shadow 0.2s, filter 0.2s, background-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
	color: #fff6e0;
	background: linear-gradient(180deg, #f07a37 0%, #d2481f 55%, #a8301a 100%);
	box-shadow: inset 0 0 0 2px #f2a54a, inset 0 2px 0 rgba(255, 230, 180, 0.45), 0 10px 30px -10px rgba(232, 98, 44, 0.75);
	text-shadow: 0 1px 0 rgba(80, 20, 0, 0.6);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: inset 0 0 0 2px #ffc067, inset 0 2px 0 rgba(255, 230, 180, 0.5), 0 14px 36px -10px rgba(232, 98, 44, 0.9); }
.btn-ghost {
	color: var(--gold); background: rgba(14, 11, 8, 0.45);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #ffd77a; background: rgba(242, 193, 78, 0.1); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-dog {
	color: #1b1405; background: var(--dog);
	font-family: var(--fun); font-weight: 400; font-size: 19px; letter-spacing: 0.04em;
	box-shadow: inset 0 -4px 0 #d9a800, 0 0 0 3px #000, 0 10px 30px -8px rgba(255, 210, 31, 0.5);
	padding-top: 3px;
}
.btn-dog:hover { color: #000; filter: brightness(1.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* The Steam badge. Not a link until the store page is public. */
.steam-badge {
	display: inline-flex; align-items: center; gap: 14px;
	min-height: 52px; padding: 8px 20px 8px 14px; border-radius: 10px;
	background: linear-gradient(180deg, rgba(27, 40, 56, 0.92), rgba(16, 24, 34, 0.92));
	box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.35);
	color: #c7d5e0; text-decoration: none; line-height: 1.15;
}
.steam-badge svg { width: 30px; height: 30px; flex: none; color: #66c0f4; }
.steam-badge small { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #66c0f4; font-weight: 700; }
.steam-badge strong { display: block; font-size: 16px; font-weight: 600; color: #fff; }
a.steam-badge:hover { box-shadow: inset 0 0 0 1px #66c0f4; color: #fff; }

/* ------------------------------------------------------------ sections */

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head .lead { margin-left: auto; margin-right: auto; }
.section.alt { background: var(--bg-2); }
.section.alt::before, .section.alt::after {
	content: ""; position: absolute; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section.alt::before { top: 0; }
.section.alt::after { bottom: 0; }

.divider {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	color: var(--gold); margin: 0 auto 22px; width: min(320px, 70%);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.divider i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); display: block; }

/* Fade-up on scroll (js/site.js adds .in). */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------ studio page */

.studio-hero {
	min-height: 100svh; display: flex; align-items: center;
	padding: 110px 0 70px; position: relative; overflow: hidden;
	background:
		radial-gradient(60% 55% at 72% 45%, rgba(255, 210, 31, 0.13), transparent 70%),
		radial-gradient(50% 50% at 15% 85%, rgba(143, 191, 58, 0.08), transparent 70%),
		var(--bg);
}
.studio-hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
	background: linear-gradient(180deg, transparent, var(--bg));
	pointer-events: none;
}
.studio-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 1; }
.studio-hero h1 {
	font-family: var(--fun); font-weight: 400; letter-spacing: 0.02em; line-height: 0.95;
	font-size: clamp(46px, 5.6vw, 82px); color: var(--dog);
	text-shadow: 0 4px 0 #000, 0 0 40px rgba(255, 210, 31, 0.25);
	-webkit-text-stroke: 2px #000; paint-order: stroke fill;
	margin-bottom: 22px;
}
.studio-hero h1 .line2 { display: block; color: #fff3c4; margin-top: 6px; }
.studio-hero .lead { margin-bottom: 32px; }
.dog-stage { position: relative; justify-self: center; width: min(520px, 100%); }
.dog-stage img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.65)); animation: bob 6s ease-in-out infinite; }
.stink { position: absolute; z-index: 0; bottom: 62%; width: 46px; height: 140px; opacity: 0; color: var(--stink); animation: waft 5.5s ease-in-out infinite; }
.stink:nth-of-type(1) { left: 26%; animation-delay: 0s; }
.stink:nth-of-type(2) { left: 46%; animation-delay: 1.8s; height: 170px; }
.stink:nth-of-type(3) { left: 66%; animation-delay: 3.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-12px) rotate(0.6deg); } }
@keyframes waft {
	0% { opacity: 0; transform: translateY(40px) scaleY(0.8); }
	25% { opacity: 0.7; }
	100% { opacity: 0; transform: translateY(-120px) scaleY(1.1); }
}

.featured-game {
	position: relative; overflow: hidden; border-radius: 22px;
	min-height: clamp(520px, 56vw, 640px);
	display: flex; align-items: flex-end;
	box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px -40px rgba(0, 0, 0, 0.9);
	isolation: isolate;
}
.featured-game > img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
	transform: scale(1.04); transition: transform 1.6s ease;
}
.featured-game:hover > img { transform: scale(1.08); }
.featured-game::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(10, 8, 6, 0.94) 0%, rgba(10, 8, 6, 0.78) 38%, rgba(10, 8, 6, 0.1) 75%),
		linear-gradient(0deg, rgba(10, 8, 6, 0.9) 0%, transparent 45%);
}
.featured-body { padding: clamp(28px, 4.5vw, 60px); max-width: 660px; }
.featured-body .kf-logo { width: min(300px, 70%); margin: 0 0 18px -6px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8)); }
.featured-body p { color: #e5dbc6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; padding: 0; list-style: none; }
.chips li {
	font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
	padding: 6px 12px; border-radius: 999px;
	background: rgba(242, 193, 78, 0.1); color: #f3d68f; box-shadow: inset 0 0 0 1px var(--line-strong);
}

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border-radius: var(--radius); padding: 30px 28px;
	box-shadow: inset 0 0 0 1px var(--line);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .icon {
	width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
	background: rgba(242, 193, 78, 0.1); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.card .icon svg { width: 26px; height: 26px; }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-copy p { color: #ddd2bc; }

.contact-card {
	text-align: center; max-width: 760px; margin: 0 auto;
	padding: clamp(40px, 6vw, 70px) clamp(22px, 5vw, 60px);
	border-radius: 22px;
	background:
		radial-gradient(70% 90% at 50% 0%, rgba(255, 210, 31, 0.12), transparent 70%),
		linear-gradient(180deg, var(--panel-2), var(--panel));
	box-shadow: inset 0 0 0 1px var(--line-strong);
}
.contact-card .mail { font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; word-break: break-word; }
.contact-card .btn-row { justify-content: center; margin-top: 26px; }

/* ------------------------------------------------------------ Kingdom Fall page */

.kf-hero {
	position: relative; min-height: 100svh; display: flex; align-items: center;
	padding: 120px 0 90px; overflow: hidden; isolation: isolate;
}
.kf-hero picture, .kf-hero picture img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.kf-hero picture img { animation: drift 30s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.13) translateX(-1.5%); } }
.kf-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(80% 70% at 25% 55%, rgba(8, 6, 4, 0.82), rgba(8, 6, 4, 0.35) 70%),
		linear-gradient(0deg, var(--bg) 0%, rgba(14, 11, 8, 0) 32%),
		linear-gradient(180deg, rgba(8, 6, 4, 0.7) 0%, transparent 22%);
}
.kf-hero-inner { max-width: 640px; }
.kf-hero .kf-logo { width: min(440px, 86%, 42vh); margin: 0 0 6px -10px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.85)); }
.kf-hero h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 700; margin-bottom: 16px; color: #fff3d8; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.kf-hero h1 em { font-style: normal; color: var(--gold); }
.kf-hero .lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); margin-bottom: 30px; }
.scroll-cue {
	position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
	color: var(--gold); opacity: 0.8; animation: cue 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 28px; height: 28px; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.facts {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
	background: var(--line); border-radius: var(--radius); overflow: hidden;
	box-shadow: 0 0 0 1px var(--line);
	margin-top: -40px; position: relative; z-index: 2;
}
.facts div { background: var(--panel); padding: 20px 18px; }
.facts dt { font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; color: #e7dcc6; line-height: 1.4; }

/* The trailer: a poster that becomes the YouTube player on click. */
.video {
	position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
	background: #000; max-width: 1060px; margin: 0 auto;
	box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 8px rgba(242, 193, 78, 0.05), 0 50px 100px -40px rgba(0, 0, 0, 0.95);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
	position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
	background: #000; display: block;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.8s; }
.video-play:hover img { opacity: 1; transform: scale(1.02); }
.video-play::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.55) 100%);
}
.play-icon {
	position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: clamp(74px, 9vw, 104px); height: clamp(74px, 9vw, 104px); border-radius: 50%;
	display: grid; place-items: center;
	background: linear-gradient(180deg, #f07a37, #b8361a);
	box-shadow: 0 0 0 3px #f2a54a, 0 0 0 10px rgba(242, 165, 74, 0.18), 0 20px 50px rgba(0, 0, 0, 0.7);
	transition: transform 0.2s, box-shadow 0.2s;
}
.play-icon svg { width: 40%; height: 40%; margin-left: 8%; color: #fff6e0; }
.video-play:hover .play-icon { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 3px #ffc067, 0 0 0 14px rgba(242, 165, 74, 0.22), 0 20px 50px rgba(0, 0, 0, 0.7); }
.play-label {
	position: absolute; z-index: 1; left: 0; right: 0; bottom: 22px; text-align: center;
	font-family: var(--display); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 14px; color: #f3e6c8;
	text-shadow: 0 2px 10px #000;
}
.video-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { text-align: center; padding: 36px 26px; }
.pillar .icon { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; }
.pillar .icon svg { width: 30px; height: 30px; }

.feature {
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip .feature-media { order: 2; }
.feature-media {
	position: relative; border-radius: 16px; overflow: hidden;
	box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s ease; }
.feature-media:hover img { transform: scale(1.04); }
.feature-media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45);
}
.feature-copy .num {
	font-family: var(--display); font-size: 22px; font-weight: 900; letter-spacing: 0.06em; color: var(--gold-2);
	display: block; margin-bottom: 10px;
}
.feature-copy h3 { font-size: clamp(26px, 2.6vw, 36px); }
.feature-copy p { color: #ddd1ba; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li {
	font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px;
	color: #e9cf8a; background: rgba(242, 193, 78, 0.08); box-shadow: inset 0 0 0 1px var(--line);
}

.factions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.faction {
	position: relative; overflow: hidden; border-radius: var(--radius);
	background:
		radial-gradient(90% 60% at 50% 0%, var(--tint, rgba(242, 193, 78, 0.18)), transparent 75%),
		linear-gradient(180deg, var(--panel-2), var(--panel));
	box-shadow: inset 0 0 0 1px var(--line);
	padding: 0 20px 24px; display: flex; flex-direction: column;
	transition: transform 0.25s, box-shadow 0.25s;
}
.faction:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.faction img { width: 112%; max-width: none; margin: 0 -6% -10px; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); }
.faction h3 { font-size: 22px; margin: 6px 0 2px; }
.faction .bonus { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 14px; letter-spacing: 0.08em; margin-bottom: 10px; }
.faction p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.faction .weak { font-size: 13.5px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.faction .weak b { color: #c9a48a; font-weight: 600; }
.faction .units { font-size: 13px; color: #d9c79c; margin: 0 0 12px; }
.faction.human { --tint: rgba(98, 140, 230, 0.28); }
.faction.elf { --tint: rgba(110, 190, 90, 0.26); }
.faction.dwarf { --tint: rgba(230, 150, 70, 0.28); }
.faction.orc { --tint: rgba(170, 60, 40, 0.32); }
.faction.undead { --tint: rgba(140, 90, 200, 0.3); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modes .card h3 { display: flex; align-items: center; gap: 12px; }
.modes .card h3 .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.modes .card h3 .icon svg { width: 22px; height: 22px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a {
	position: relative; display: block; border-radius: 10px; overflow: hidden;
	box-shadow: 0 0 0 1px var(--line);
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease, filter 0.4s; filter: saturate(0.92); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); filter: saturate(1.1); }
.gallery a::after {
	content: attr(data-caption);
	position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
	font-size: 13px; font-weight: 600; color: #fff;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
	opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
	position: fixed; inset: 0; z-index: 200; display: none;
	background: rgba(5, 4, 3, 0.94); align-items: center; justify-content: center;
	padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; text-align: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-strong); }
.lightbox figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.lb-btn {
	position: absolute; background: rgba(27, 21, 16, 0.9); color: var(--gold);
	border: 1px solid var(--line-strong); width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer; padding: 0;
}
.lb-btn:hover { background: #2b2118; color: #ffd77a; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

.coming {
	position: relative; overflow: hidden; text-align: center;
	padding: clamp(80px, 11vw, 140px) 0;
	background:
		radial-gradient(60% 80% at 50% 100%, rgba(232, 98, 44, 0.22), transparent 70%),
		radial-gradient(40% 60% at 50% 30%, rgba(242, 193, 78, 0.1), transparent 70%),
		var(--bg-2);
}
.coming::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.coming .medal {
	width: 132px; margin: 0 auto 26px; border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.45), 0 0 60px rgba(242, 160, 60, 0.35);
	animation: glow 4s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.45), 0 0 50px rgba(242, 160, 60, 0.28); } 50% { box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.7), 0 0 80px rgba(242, 160, 60, 0.5); } }
.coming h2 { font-size: clamp(34px, 4.4vw, 58px); }
.coming .lead { margin: 0 auto 34px; }
.coming .btn-row { justify-content: center; }

/* ------------------------------------------------------------ footer */

.site-footer {
	border-top: 1px solid var(--line); background: #0a0806;
	padding: 48px 0 40px; color: var(--faint); font-size: 14px;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; }
.footer-brand strong { display: block; font-family: var(--fun); font-weight: 400; color: var(--dog); font-size: 20px; letter-spacing: 0.03em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #cfc3ab; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(242, 193, 78, 0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.privacy { margin: 16px 0 0; max-width: 72ch; font-size: 13px; line-height: 1.6; }
.privacy strong { color: #cfc3ab; font-weight: 600; }

/* ------------------------------------------------------------ 404 */

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost img { width: 220px; margin: 0 auto 20px; }
.lost h1 { font-family: var(--fun); font-weight: 400; color: var(--dog); font-size: clamp(54px, 9vw, 96px); -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 4px 0 #000; margin-bottom: 8px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
	.factions { grid-template-columns: repeat(3, 1fr); }
	.facts { grid-template-columns: repeat(3, 1fr); }
	.facts div:nth-child(4), .facts div:nth-child(5) { grid-column: span 1; }
	.gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.studio-hero .wrap, .about-grid, .feature { grid-template-columns: 1fr; }
	.studio-hero { text-align: center; }
	.studio-hero .lead { margin-left: auto; margin-right: auto; }
	.studio-hero .btn-row { justify-content: center; }
	.dog-stage { width: min(380px, 80%); order: -1; }
	.studio-hero .eyebrow { justify-content: center; }
	.studio-hero .eyebrow::before { display: none; }
	.feature.flip .feature-media { order: 0; }
	.cards-3, .pillars, .modes { grid-template-columns: 1fr; }
	.featured-game::before { background: linear-gradient(0deg, rgba(10, 8, 6, 0.96) 0%, rgba(10, 8, 6, 0.75) 55%, rgba(10, 8, 6, 0.2) 100%); }
	.facts { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
	.facts div:last-child { grid-column: span 2; }
	.kf-hero { min-height: 92svh; }
}
@media (max-width: 640px) {
	.factions { grid-template-columns: 1fr 1fr; gap: 12px; }
	.faction { padding: 0 14px 18px; }
	.gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
	.lightbox { padding: 60px 10px; }
	.lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
	.btn-row .btn, .btn-row .steam-badge { width: 100%; }
	.legal { flex-direction: column; }
}
@media (max-width: 420px) {
	.faction img { width: 72%; margin: 0 auto -8px; }
	.factions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
