@charset "utf-8";
/*
 * GAMELAB.cz – šablona „flow“
 * Princip: pozadí je jedno pro celou stránku (fixní hvězdy + planeta + barvy z flow.js),
 * sekce jsou průhledné. Scény s [data-pin] se připnou a jejich obsah se hýbe
 * podle --p (0..1) – žádné fade, jen transformace svázané se scrollem.
 */

@font-face { font-family: 'Bebas Neue'; src: url('font/Bebas_Neue/BebasNeue-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('font/Titillium_Web/TitilliumWeb-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('font/Titillium_Web/TitilliumWeb-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('font/Titillium_Web/TitilliumWeb-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('font/Press_Start_2P/PressStart2P-Regular.ttf') format('truetype'); font-display: swap; }

:root {
	/* flow.js je průběžně míchá mezi kapitolami */
	--bg: #070b1a;
	--acc: #ff4c29;
	--acc2: #ffb020;
	--gp: 0;

	--ink: #e9ecf5;
	--muted: #9aa3b8;
	--glass: rgba(10, 14, 32, .62);
	--line: rgba(255, 255, 255, .12);
	--display: 'Bebas Neue', Impact, sans-serif;
	--text: 'Titillium Web', system-ui, sans-serif;
	--gutter: clamp(16px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body.flow {
	margin: 0;
	background: var(--bg) !important;
	color: var(--ink);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

.flow a { color: inherit; }
.flow img { max-width: 100%; }
.flow h1, .flow h2, .flow h3 { font-variant: normal; }

/* ---------- pozadí: hvězdy, záře, planeta ---------- */
.flow-stars {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

body.flow::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(60vmax 40vmax at 85% 10%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%),
		radial-gradient(50vmax 50vmax at 0% 100%, color-mix(in srgb, var(--acc2) 14%, transparent), transparent 70%);
}

.flow-planet {
	position: fixed;
	top: 6vh;
	right: -8vmin;
	width: 62vmin;
	z-index: 0;
	pointer-events: none;
	transform:
		translate(calc(var(--gp) * -30vw), calc(var(--gp) * 38vh))
		scale(calc(.75 + var(--gp) * .9))
		rotate(calc(var(--gp) * -28deg));
	will-change: transform;
}
.flow-planet svg { display: block; width: 100%; overflow: visible; }
.fp-s1 { stop-color: color-mix(in srgb, var(--acc2) 70%, #fff); }
.fp-s2 { stop-color: color-mix(in srgb, var(--acc) 55%, #0b0f22); }
.fp-s3 { stop-color: #05060f; }
.fp-ring { fill: none; stroke: color-mix(in srgb, var(--acc2) 65%, #fff); stroke-width: 7; stroke-opacity: .55; }
.fp-bands path { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 9; }
.fp-moon { fill: color-mix(in srgb, var(--acc) 40%, #fff); }

/* ---------- navigace ---------- */
.flow-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px var(--gutter);
	background: linear-gradient(to bottom, rgba(5, 7, 16, .85), rgba(5, 7, 16, 0));
}
.flow-nav__logo img { height: 34px; display: block; }
.flow-nav__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.flow-nav__links a {
	font-family: var(--display);
	font-size: 19px;
	letter-spacing: .08em;
	text-decoration: none;
	color: var(--muted);
	padding: 2px 0;
	border-bottom: 2px solid transparent;
}
.flow-nav__links a:hover,
.flow-nav__links a.is-active { color: #fff; border-bottom-color: var(--acc); }
.flow-nav__links a.flow-nav__cta { color: #fff; border: 1px solid var(--acc); border-radius: 999px; padding: 2px 16px; }

/* ---------- trajektorie (statický bod) ---------- */
.flow-rail {
	position: fixed;
	left: max(12px, calc(var(--gutter) / 3));
	top: 18vh;
	bottom: 18vh;
	width: 14px;
	z-index: 40;
}
.flow-rail__line { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.flow-rail__fill {
	position: absolute;
	inset: 0;
	background: var(--acc);
	transform-origin: top;
	transform: scaleY(var(--gp));
}
.flow-rail__probe {
	position: absolute;
	left: 0;
	top: calc(var(--gp) * 100%);
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 22px var(--acc);
}
.flow-rail__node {
	position: absolute;
	left: 3px;
	top: calc(var(--at, 0) * 100%);
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--muted);
	text-decoration: none;
}
.flow-rail__node span {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translate(-6px, -50%) scaleX(0);
	transform-origin: left;
	white-space: nowrap;
	font-family: var(--display);
	letter-spacing: .1em;
	font-size: 14px;
	color: #fff;
	padding: 1px 10px;
	border-radius: 999px;
	background: rgba(5, 7, 16, .8);
	transition: transform .25s;
}
.flow-rail__node:hover span,
.flow-rail__node.is-current span { transform: translate(0, -50%) scaleX(1); }
.flow-rail__node.is-passed { background: var(--acc); border-color: var(--acc); }

/* ---------- HUD ---------- */
.flow-hud {
	position: fixed;
	right: var(--gutter);
	bottom: 22px;
	z-index: 40;
	text-align: right;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	pointer-events: none;
}
.flow-hud__chapter { font-family: var(--display); font-size: 18px; color: #fff; letter-spacing: .1em; }
.flow-hud__num { color: var(--acc); font-weight: 400; }
.flow-hud__name { display: inline-block; min-width: 7em; text-align: left; margin-left: 6px; }
.flow-hud__meta i { margin: 0 4px 0 10px; color: var(--acc); }
.flow-hud__km { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- společné prvky scén ---------- */
.flow-main { position: relative; z-index: 10; }

.scene { position: relative; }
.scene[data-pin] { height: calc(var(--len, 200) * 1vh); }
.scene__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	/* jen vodorovně – svisle obsah přetéká do další kapitoly, žádná hrana „bloku“ */
	overflow-x: clip;
	overflow-y: visible;
}
.scene--worlds .scene__stage { overflow: hidden; }
/* střepy loga letí k divákovi a perspektiva je zvětší – bez ořezu by nafoukly výšku stránky */
.scene--intro .scene__stage { overflow: hidden; contain: paint; }

.kicker {
	font-family: var(--display);
	letter-spacing: .25em;
	font-size: 15px;
	color: var(--acc);
	margin-bottom: 10px;
}
.flow--home h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(48px, 8vw, 120px);
	line-height: .92;
	margin: 0 0 20px;
	color: #fff;
}
.flow--home p { padding: 0; margin: 0 0 18px; color: #c8cede; max-width: 34em; }

.btn {
	display: inline-block;
	font-family: var(--display);
	font-size: 20px;
	letter-spacing: .12em;
	text-decoration: none;
	color: #fff !important;
	background: var(--acc);
	padding: 10px 28px;
	border-radius: 999px;
	margin: 6px 10px 6px 0;
	box-shadow: 0 10px 30px -10px var(--acc);
	transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1px solid var(--acc); box-shadow: none; }
.btn--big { font-size: 28px; padding: 14px 44px; }

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 6vw;
	padding: 0 var(--gutter) 0 calc(var(--gutter) + 40px);
}
.split--reverse .split__visual { order: 0; }

/* ---------- 01 intro ---------- */
.scene--intro .scene__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.intro__status {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 4vh;
	transform: translateY(calc(var(--p) * -55vh));
}
.chip {
	font-size: 13px;
	letter-spacing: .1em;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--glass);
}
.chip.is-on { border-color: #46e36b; color: #9dffb3; }
.chip.is-off { border-color: #777; color: #aaa; }
.chip--accent { border-color: var(--acc); color: #fff; }

.intro__title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(80px, 19vw, 300px);
	line-height: .85;
	margin: 0;
	color: #fff;
	white-space: nowrap;
}
.intro__title span {
	display: inline-block;
	transform:
		translate(calc(var(--i) * var(--p) * 18vw), calc(var(--i) * var(--i) * var(--p) * -4vh))
		rotate(calc(var(--i) * var(--p) * 9deg))
		scale(calc(1 + var(--p) * 1.4));
	text-shadow: 0 0 60px color-mix(in srgb, var(--acc) 55%, transparent);
}
/* logo rozbité na střepy (flow/logo-shards.php); --sh 0 = celé, 1 = rozletěné */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro__logo {
	--sh: min(1, var(--p) * .95);
	position: relative;
	width: min(84vw, 980px);
	margin: 0;
	aspect-ratio: 643 / 134;
}
.shatter {
	position: absolute;
	inset: 0;
	perspective: 1000px;
	filter: drop-shadow(0 0 40px color-mix(in srgb, var(--acc) 45%, transparent));
}
.shatter i {
	/* každý střep začne letět až po svém zpoždění – praskliny jdou od místa nárazu ven */
	--k: clamp(0, (var(--sh) - var(--dl)) / (1 - var(--dl)), 1);
	position: absolute;
	inset: 0;
	background: url('logo_nocz.png') 0 0 / 100% 100% no-repeat;
	background-image: image-set(url('logo_nocz.webp') type('image/webp'), url('logo_nocz.png') type('image/png'));
	transform-origin: var(--ox) var(--oy);
	transform:
		translate3d(calc(var(--tx) * var(--k)), calc(var(--ty) * var(--k)), calc(var(--tz) * var(--k)))
		rotateX(calc(var(--rx) * var(--k)))
		rotateY(calc(var(--ry) * var(--k)))
		rotateZ(calc(var(--rz) * var(--k)))
		scale(calc(1.006 + var(--k) * .25));
	will-change: transform;
}
.intro__claim {
	font-size: clamp(18px, 2vw, 26px);
	margin: 3vh auto 0 !important;
	transform: translateY(calc(var(--p) * 40vh)) scale(calc(1 - var(--p) * .3));
}
.intro__claim small { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.intro__scroll {
	position: absolute;
	bottom: 4vh;
	font-size: 12px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--muted);
	transform: translateY(calc(var(--p) * 30vh));
}
.intro__scroll span {
	display: block;
	width: 2px;
	height: 44px;
	margin: 0 auto 10px;
	background: linear-gradient(var(--acc), transparent);
}

/* ---------- 02 notifier ---------- */
.scene--notifier .split__text { transform: translateY(calc((.5 - var(--p)) * 24vh)); }
.price { font-family: var(--display); font-size: 54px !important; color: #fff !important; line-height: 1; }
.price small { font-family: var(--text); font-size: 15px; color: var(--muted); }

.phone {
	position: relative;
	width: min(300px, 70vw);
	aspect-ratio: 9 / 18.5;
	margin: 0 auto;
	border-radius: 44px;
	padding: 12px;
	background: linear-gradient(145deg, #2a2f45, #0b0d18);
	box-shadow: 0 40px 80px -30px #000, inset 0 0 0 2px rgba(255, 255, 255, .08), 0 0 80px -20px var(--acc);
	transform: rotate(calc(-10deg + var(--p) * 14deg)) translateY(calc((.5 - var(--p)) * -10vh));
}
.phone__notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #000; z-index: 2; }
.phone__screen {
	position: relative;
	height: 100%;
	border-radius: 34px;
	overflow: hidden;
	container-type: size;
	background:
		radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--acc) 45%, #0b0f22), #070914);
}
.phone__feed {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transform: translateY(calc(var(--p) * -1 * (100% + 40cqh)));
}
.notif {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .1);
	backdrop-filter: blur(8px);
	font-size: 12px;
	line-height: 1.35;
}
.notif i { color: var(--acc); margin-top: 3px; width: 16px; text-align: center; }
.notif b { display: block; color: #fff; font-size: 13px; }
.notif span { color: #c3c9da; }

/* ---------- 03 analyzer ---------- */
.gauge { position: relative; width: min(420px, 70vw); margin: 0 auto; transform: rotate(calc(var(--p) * 30deg - 15deg)); }
.gauge svg { display: block; width: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge__track { stroke: var(--line); }
.gauge__fill {
	stroke: var(--acc);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - min(1, var(--p) * 1.6) * 98);
	filter: drop-shadow(0 0 10px var(--acc));
}
.gauge__value {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: rotate(calc(15deg - var(--p) * 30deg));
}
.gauge__value b { font-family: var(--display); font-weight: 400; font-size: clamp(70px, 10vw, 140px); line-height: 1; color: #fff; }
.gauge__value small { letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li {
	position: relative;
	padding: 10px 0 10px 34px;
	border-bottom: 1px solid var(--line);
	transform: translateX(calc((1 - clamp(0, var(--p) * 5 - var(--i) * .7, 1)) * 60vw));
}
.checks li::before { content: "\2713"; position: absolute; left: 4px; color: var(--acc); font-weight: 600; }

/* ---------- 04 servers – vodorovná jízda ---------- */
.track {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 100%;
	width: max-content;
	padding: 0 var(--gutter) 0 calc(var(--gutter) + 40px);
	transform: translateX(calc(var(--p) * var(--shift, 0px) * -1));
	will-change: transform;
}
.track__intro { width: min(520px, 80vw); flex: none; }
.track__group { display: flex; gap: 18px; flex: none; }
.track__label {
	flex: none;
	font-family: var(--display);
	font-size: clamp(54px, 7vw, 100px);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--acc) 80%, #fff);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	padding: 0 10px;
}
.track__end { flex: none; padding-right: 10vw; }

.feature {
	width: 230px;
	padding: 26px 22px;
	border-radius: 20px;
	background: var(--glass);
	border: 1px solid var(--line);
	backdrop-filter: blur(6px);
}
.feature i { font-size: 30px; color: var(--acc); }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 12px 0 6px; color: #fff; }
.feature p { font-size: 15px; margin: 0; }

.fx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 250px;
	height: 340px;
	padding: 18px;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	background:
		linear-gradient(to top, rgba(4, 6, 14, .96) 30%, rgba(4, 6, 14, .2)),
		var(--img, none) center / cover,
		#151a2e;
	border: 1px solid var(--line);
	transition: transform .25s, border-color .25s;
}
.fx-card:hover { transform: translateY(-6px); border-color: var(--acc); }
.fx-card__title { font-family: var(--display); font-size: 32px; line-height: 1; color: #fff; margin-bottom: 10px; }
.fx-card__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); color: var(--muted); }
.fx-card__row b { color: #fff; font-weight: 600; text-align: right; }
.fx-card__price { align-self: flex-start; font-family: var(--display); letter-spacing: .1em; padding: 2px 12px; border-radius: 999px; background: var(--acc); color: #fff; }
.fx-card--soon { filter: grayscale(.6); }

/* ---------- 05 worlds – střih mezi světy + koláž v hloubce ---------- */
.worlds__layers { position: absolute; inset: 0; }
.worlds__layer {
	--seg: clamp(0, var(--p) * (var(--count) - 1) - (var(--k) - 1), 1);
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	clip-path: inset(calc((1 - var(--seg)) * 100%) 0 0 0);
	transform: scale(calc(1.18 - var(--seg) * .18));
}
.worlds__layer::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(4, 6, 14, .95) 0%, rgba(4, 6, 14, .72) 42%, rgba(4, 6, 14, .5) 100%),
		linear-gradient(to top, rgba(4, 6, 14, .8), transparent 40%);
}
.worlds__layer--minecraft { background-image: url('test/minecraft.png'); background-image: image-set(url('test/minecraft.webp') type('image/webp'), url('test/minecraft.png') type('image/png')); }
.worlds__layer--ets2 { background-image: url('test/scaniawall.jpg'); background-image: image-set(url('test/scaniawall.webp') type('image/webp'), url('test/scaniawall.jpg') type('image/jpeg')); }
.worlds__layer--cs { background-image: url('test/counter.png'); background-image: image-set(url('test/counter.webp') type('image/webp'), url('test/counter.png') type('image/png')); }

.worlds__texts {
	position: relative;
	transform: translateY(calc(var(--p) * (var(--count) - 1) * -100vh));
}
.world {
	/* -1 = přijíždí, 0 = uprostřed, +1 = odjíždí */
	--d: calc(var(--p) * (var(--count) - 1) - var(--k));
	position: relative;
	height: 100vh;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: 4vw;
	padding: 90px var(--gutter) 110px calc(var(--gutter) + 40px);
}
.world__watermark {
	position: absolute;
	left: 0;
	top: 50%;
	font-family: var(--display);
	font-size: 24vw;
	line-height: 1;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, .07);
	transform: translate(calc(var(--d) * -30vw + 4vw), -50%);
	pointer-events: none;
}
.world__info { position: relative; z-index: 2; }
.world__num {
	position: absolute;
	top: -.36em;
	left: -.06em;
	z-index: -1;
	font-family: var(--display);
	font-size: clamp(160px, 20vw, 300px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px color-mix(in srgb, var(--acc) 55%, transparent);
	/* přijíždějící svět má číslo níž, takže nevykukuje do aktuálního */
	transform: translateY(calc(var(--d) * -22vh));
}
.world__ip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--acc2) 70%, transparent);
	background: rgba(4, 6, 14, .6);
	color: var(--acc2);
	font: 11px 'Press Start 2P', monospace;
	cursor: pointer;
}
.world__ip i { font-size: 13px; }
.world__ip:hover { background: color-mix(in srgb, var(--acc2) 18%, rgba(4, 6, 14, .6)); }
.world__ip.is-copied span::after { content: "  copied!"; color: #fff; }
.world__specs { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 6px 0 26px; }
.world__specs b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4vw, 56px); line-height: 1; color: #fff; }
.world__specs span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.world__collage { position: relative; height: min(68vh, 620px); }
.world__img,
.world__trailer {
	position: absolute;
	transform: translateY(calc(var(--d) * var(--depth, 30vh) * -1)) rotate(var(--rot, 0deg));
	will-change: transform;
}
.world__img--shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px #000; object-fit: cover; }
.world__img--logo { border-radius: 10px; box-shadow: 0 20px 40px -14px #000; z-index: 3; }
.world__img--cut { z-index: 4; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); }

.world__trailer {
	right: 0;
	bottom: 6%;
	width: 56%;
	aspect-ratio: 16 / 9;
	z-index: 2;
	--depth: 38vh;
	--rot: -2deg;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	background: var(--thumb) center / cover, #000;
	border: 1px solid var(--acc);
	box-shadow: 0 30px 70px -20px #000, 0 0 50px -20px var(--acc);
}
.world__trailer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 60%); }
.world__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--acc);
	color: #fff;
	font-size: 22px;
	box-shadow: 0 0 0 10px color-mix(in srgb, var(--acc) 30%, transparent);
	transition: transform .2s;
}
.world__trailer:hover .world__play { transform: scale(1.1); }
.world__trailer-label { position: absolute; left: 16px; bottom: 12px; font-family: var(--display); letter-spacing: .12em; font-size: 18px; color: #fff; }
.world__trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.world__trailer.is-playing::before, .world__trailer.is-playing span { display: none; }

/* rozmístění koláže – každý svět jinak */
.world--minecraft picture:nth-child(1) > .world__img { left: -4%; bottom: -2%; width: 40%; --depth: 62vh; }
.world--minecraft picture:nth-child(2) > .world__img { left: 12%; top: 0; width: 62%; aspect-ratio: 16 / 10; --depth: 22vh; --rot: -4deg; }
.world--minecraft picture:nth-child(3) > .world__img { right: 4%; top: 6%; width: 38%; --depth: 74vh; --rot: 5deg; }

.world--ets2 picture:nth-child(1) > .world__img { left: 0; top: 0; width: 64%; --depth: 18vh; --rot: -3deg; }
.world--ets2 picture:nth-child(2) > .world__img { right: 0; top: 30%; width: 50%; --depth: 46vh; --rot: 4deg; }
.world--ets2 picture:nth-child(3) > .world__img { left: 6%; bottom: 0; width: 44%; --depth: 32vh; --rot: -2deg; }
.world--ets2 picture:nth-child(4) > .world__img { right: 12%; top: -4%; width: 36%; --depth: 70vh; --rot: -5deg; }
.world--ets2 .world__trailer { bottom: 0; width: 50%; }

.world--cs picture:nth-child(1) > .world__img { left: 0; top: 2%; width: 82%; aspect-ratio: 16 / 9; --depth: 20vh; --rot: -3deg; }
.world--cs picture:nth-child(2) > .world__img { left: -3%; top: 54%; width: 44%; --depth: 66vh; --rot: 4deg; }

/* přepínač světů s průběhem */
.worlds__nav {
	position: absolute;
	left: calc(var(--gutter) + 40px);
	bottom: 4vh;
	z-index: 5;
	display: flex;
	gap: 26px;
}
.worlds__nav a {
	--d: calc(var(--p) * (var(--count) - 1) - var(--k));
	--fill: clamp(0, 1 - max(var(--d), -1 * var(--d)), 1);
	display: block;
	text-decoration: none;
	font-family: var(--display);
	letter-spacing: .14em;
	font-size: 16px;
	color: color-mix(in srgb, #fff calc(var(--fill) * 100%), var(--muted));
}
.worlds__nav i { display: block; width: 130px; height: 2px; margin-top: 6px; background: var(--line); position: relative; }
.worlds__nav i::after { content: ""; position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(var(--fill)); }

/* ---------- 06 retro ---------- */
.scene--retro .scene__stage { display: flex; flex-direction: column; justify-content: center; }
.retro__row { position: absolute; left: 0; display: flex; gap: 18px; width: max-content; }
.retro__row--a { top: 6vh; }
.retro__row--b { bottom: 6vh; }
.retro__row img { height: 84px; width: auto; border-radius: 10px; background: #fff; filter: saturate(.8); }
.retro__row--a { transform: rotate(-4deg) translateX(calc(var(--p) * -45%)); }
.retro__row--b { transform: rotate(-4deg) translateX(calc(-45% + var(--p) * 45%)); }
.retro__text { margin-top: 15vh; padding: 0 var(--gutter) 0 calc(var(--gutter) + 40px); transform: translateY(calc((.5 - var(--p)) * 16vh)); }
.retro__text h2 { font-size: clamp(42px, 6vw, 86px) !important; }
.retro__row img { height: clamp(56px, 8vh, 84px); }
.pixel { font-family: 'Press Start 2P', monospace; font-size: .42em; color: var(--acc); vertical-align: middle; line-height: 1.6; }
.tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }

/* ---------- 07 status ---------- */
.scene--status {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 5vw;
	align-items: center;
	padding: 18vh var(--gutter) 12vh calc(var(--gutter) + 40px);
}
.terminal {
	border-radius: 16px;
	overflow: hidden;
	background: rgba(3, 6, 12, .85);
	border: 1px solid var(--line);
	box-shadow: 0 30px 80px -30px #000, 0 0 60px -30px var(--acc);
	font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
	font-size: 13px;
	transform: perspective(1200px) rotateY(calc((.5 - var(--p)) * 14deg));
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255, 255, 255, .05); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar b { margin-left: 10px; font-weight: 400; color: var(--muted); }
.terminal__body { padding: 10px 16px 16px; max-height: 60vh; overflow: auto; }
.terminal__row {
	display: grid;
	grid-template-columns: 2fr 1fr 2fr 50px;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, .07);
	color: #b9f6c8;
}
.terminal__row small { display: block; color: var(--muted); font-size: 11px; }
.terminal__row--head { color: var(--acc); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.terminal__row > span:last-child { text-align: right; }
.terminal__prompt { padding-top: 12px; color: #fff; }
.terminal__prompt a { color: var(--acc2); }
.terminal__cursor { display: inline-block; width: 8px; height: 15px; margin-left: 4px; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { background: transparent; } }
.status__side pre {
	font-size: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .4);
	border: 1px solid var(--line);
	overflow-x: auto;
	white-space: pre;
}
.status__side pre b { color: var(--acc); }

/* ---------- 08 domains ---------- */
.scene--domains { padding: 16vh var(--gutter) 16vh calc(var(--gutter) + 40px); }
.scene--domains h2 { transform: translateX(calc((.5 - var(--p)) * 12vw)); }
.domain-search {
	display: flex;
	max-width: 760px;
	margin: 30px 0 18px;
	border-radius: 999px;
	padding: 6px;
	background: var(--glass);
	border: 1px solid var(--acc);
	box-shadow: 0 0 60px -20px var(--acc);
}
.domain-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: 400 clamp(20px, 3vw, 34px) var(--display);
	letter-spacing: .06em;
	padding: 6px 22px;
	outline: none;
}
.domain-search button {
	border: 0;
	border-radius: 999px;
	background: var(--acc);
	color: #fff;
	font: 400 20px var(--display);
	letter-spacing: .12em;
	padding: 0 26px;
	cursor: pointer;
}
.domains__note { font-size: 15px; color: var(--muted) !important; }
.domains__note a { color: var(--acc2); }
.stats { display: flex; flex-wrap: wrap; gap: 4vw; margin: 7vh 0 4vh; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 9vw, 130px); line-height: .9; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

/* ---------- 09 join ---------- */
.scene--join .scene__stage { display: flex; align-items: center; justify-content: center; text-align: center; }
.join__ring {
	position: absolute;
	width: 70vmin;
	height: 70vmin;
	border-radius: 50%;
	border: 2px solid var(--acc);
	box-shadow: 0 0 120px -10px var(--acc), inset 0 0 120px -30px var(--acc);
	transform: scale(calc(.15 + var(--p) * 2.6)) rotate(calc(var(--p) * 90deg));
}
.join__text { position: relative; transform: scale(calc(.75 + var(--p) * .35)); }
.join__text p { margin-left: auto !important; margin-right: auto !important; }

/* ---------- patička ---------- */
.flow-footer {
	position: relative;
	z-index: 10;
	background: rgba(3, 5, 12, .9) !important;
	border-top: 1px solid var(--line) !important;
	color: var(--muted) !important;
	padding: 60px var(--gutter) 100px !important;
	text-align: left !important;
	font-size: 15px;
}
.flow-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.flow-footer h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .1em; color: #fff; margin: 0 0 12px; }
.flow-footer a { display: block; text-decoration: none; padding: 2px 0; }
.flow-footer a:hover { color: var(--acc); }
.flow-footer__logo { height: 36px; margin-bottom: 12px; }
.flow-footer__map { max-height: 140px; opacity: .8; }
.flow-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.flow-footer__bottom a { display: inline; color: #fff; }

/* ---------- GDPR lišta ---------- */
.flow .gdpr-banner {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 60;
	width: min(560px, calc(100% - 32px));
	transform: translateX(-50%);
	box-sizing: border-box;
	padding: 20px 24px;
	border-radius: 18px;
	background: rgba(8, 11, 24, .94);
	border: 1px solid var(--acc);
	backdrop-filter: blur(10px);
	color: var(--ink);
	font-size: 14px;
}
.flow .gdpr-banner h2 { font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; margin: 0 0 6px; }
.flow .gdpr-banner p { padding: 0; margin: 0 0 12px; }
.flow .gdpr-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.flow .gdpr-button {
	font: 400 16px var(--display);
	letter-spacing: .1em;
	border: 1px solid var(--acc);
	border-radius: 999px;
	padding: 8px 18px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.flow .gdpr-banner__actions a:last-child .gdpr-button { background: var(--acc); }

/* ---------- podstránky (?syn=...) ---------- */
.flow--page .flow-main { padding: 110px var(--gutter) 80px; }
.flow--page .container--page {
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 50px);
	box-sizing: border-box;
	border-radius: 24px;
	background: rgba(8, 11, 24, .78);
	border: 1px solid var(--line);
	backdrop-filter: blur(10px);
	color: var(--ink);
	line-height: 1.6;
}
.flow--page .container--page h1 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1;
	letter-spacing: .02em;
	margin: 0 0 18px;
}
.flow--page .container--page h2 { font-family: var(--display); font-weight: 400; font-size: 30px; color: #fff; margin: 30px 0 8px; }
.flow--page .container--page p { padding: 0; margin: 0 0 16px; }
.flow--page .container--page a { color: var(--acc2); }
.flow--page .container--page iframe { border: 0; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 3vh; align-content: center; padding-top: 70px; }
	.split__visual { order: -1; }
	.phone { width: min(190px, 46vw); }
	.gauge { width: min(220px, 50vw); }
	.flow--home h2 { font-size: clamp(40px, 12vw, 70px); }
	.scene--status { grid-template-columns: 1fr; }
	.terminal__row { grid-template-columns: 1.5fr 1fr; }
	.terminal__row > span:nth-child(3), .terminal__row > span:nth-child(4) { display: none; }
	.flow-footer__inner { grid-template-columns: 1fr; }
	.flow-hud__meta, .flow-hud__dist { display: none; }
	.flow-rail__node span { display: none; }
	.world { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 2vh; padding-top: 100px; padding-bottom: 80px; align-items: start; }
	.world__watermark, .world__num { display: none; }
	.world__collage { height: 100%; min-height: 160px; }
	.world__specs { gap: 8px 22px; margin-bottom: 14px; }
	.world__specs b { font-size: 30px; }
	.world__info p { display: none; }
	.worlds__nav { gap: 12px; bottom: 2vh; }
	.worlds__nav i { width: 70px; }
	.worlds__nav a { font-size: 12px; }
	.world__trailer-label { font-size: 12px; left: 10px; bottom: 8px; }
	.world__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 16px; }
	.flow-nav__links a { font-size: 16px; }
}
@media (max-width: 600px) {
	.flow-nav { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
	.flow-nav__logo img { height: 28px; }
	.flow-nav__links { flex-wrap: nowrap; justify-content: flex-start; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.flow-nav__links a { font-size: 15px; flex: none; }
	.flow--home h2 { font-size: clamp(34px, 11vw, 52px); margin-bottom: 12px; }
	.flow--home p { font-size: 15px; margin-bottom: 12px; }
	.split { gap: 2vh; padding-top: 96px; }
	.phone { width: 140px; border-radius: 30px; padding: 8px; }
	.phone__screen { border-radius: 24px; }
	.phone__notch { width: 50px; height: 14px; margin-left: -25px; top: 14px; }
	.notif { font-size: 10px; padding: 6px 8px; }
	.notif b { font-size: 11px; }
	.price { font-size: 40px !important; }
	.btn { font-size: 17px; padding: 8px 20px; }
	.retro__row--a { display: none; }
	.retro__text { margin-top: -6vh; }
	.tags li { font-size: 12px; }
	.checks li { padding: 6px 0 6px 28px; font-size: 15px; }
	.scene--notifier .split__text { transform: translateY(calc((.5 - var(--p)) * 6vh)); }
	.join__text { transform: scale(calc(.92 + var(--p) * .1)); padding: 0 24px 0 44px; }
	.flow-footer { padding-left: calc(var(--gutter) + 30px) !important; }
}

/* ---------- omezení pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.scene[data-pin] { height: auto; }
	.scene__stage { position: relative; height: auto; min-height: 100vh; padding: 100px 0 60px; }
	.flow-main * { transform: none !important; clip-path: none !important; }
	.worlds__layer:not(:first-child) { display: none; }
	.track { width: auto; flex-wrap: wrap; height: auto; }
	.track__label { writing-mode: horizontal-tb; }
	.phone__feed { position: relative; top: 0; }
}

/* karty balíčků jsou na podstránkách odkazy (dřív div s onclick – kvůli CSP bez inline skriptů) */
.flow--page .container--page a.pkg-card { display: block; text-decoration: none; color: inherit; }

/* obrázky jsou v <picture> s atributy width/height – kde CSS určuje jen jeden rozměr, druhý dopočítat */
.flow-nav__logo img, .flow-footer__logo, .retro__row img { width: auto; }
.flow-footer__map, .world__img { height: auto; }
