/**
 * Ultras World — zaślepka „coming soon”. Kolory i kroje z księgi wizerunku
 * (ultrasworld.net/ksiega-wizerunku/KSIEGA-WIZERUNKU.md): tryb ciemny, żółć #FFD200 jako akcent,
 * Barlow Condensed (nagłówki, wersaliki), Inter (tekst), Permanent Marker (jedno hasło).
 * Czerwień wyłącznie w oczach logo i w racach.
 */

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/barlow-condensed-600-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/barlow-condensed-600-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url(../fonts/barlow-condensed-800i-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url(../fonts/barlow-condensed-800i-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/inter-400-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/inter-400-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/inter-600-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/inter-600-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Permanent Marker";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/permanent-marker-400-latin.woff2) format("woff2");
}

:root {
	--uw-yellow: #ffd200;
	--uw-yellow-hi: #ffe14d;
	--uw-white: #fff;
	--uw-text: #d5d5d5;
	--uw-muted: #9a9a9a;
	--uw-line: #2c2c2c;
	--uw-panel: #141414;
	--uw-bg: #0b0b0a;
	--uw-on-accent: #0b0b0b;
	--f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--f-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-brush: "Permanent Marker", "Comic Sans MS", cursive;
	--logo: clamp(130px, 25vh, 240px);
}

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

html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
}

body {
	background: var(--uw-bg);
	color: var(--uw-white);
	font: 400 15px/1.45 var(--f-body);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.cs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ── Scena ─────────────────────────────────────────────────────────── */

.cs-stage {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: linear-gradient(#030409, #0d0f18);
	cursor: crosshair;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.cs-stage.is-on {
	opacity: 1;
}

.cs-c {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Przyciemnienie pod treścią: race i fajerwerki nie zagłuszają logo ani tekstu. */
.cs-shade {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 34% 46% at 50% 46%, rgba(0, 0, 0, 0.66) 0, rgba(0, 0, 0, 0.42) 45%, transparent 100%),
		linear-gradient(rgba(0, 0, 0, 0.35), transparent 22%, transparent 82%, rgba(0, 0, 0, 0.55));
	transition: opacity 0.4s ease;
}

/* Przy włączonych jupiterach trybuna jest jasna i ruchliwa — mocniejsze przyciemnienie pod tekstem. */
.cs-shade::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 30% 40% at 50% 54%, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0.3) 55%, transparent 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.cs-lit .cs-shade::after {
	opacity: 1;
}

.cs-embers {
	position: fixed;
	inset: 0;
	z-index: 2;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
}

/* ── Warstwa treści ────────────────────────────────────────────────── */

.cs-layer {
	position: fixed;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(56px, env(safe-area-inset-top)) 16px calc(max(16px, env(safe-area-inset-bottom)) + 40px);
	pointer-events: none; /* klik przez tekst trafia w trybunę; linki i przyciski mają pointer-events: auto */
	text-align: center;
}

.cs-card {
	max-width: 560px;
}

.cs-card a,
.cs-card button,
.cs-card input,
.cs-card label {
	pointer-events: auto;
}

.cs-logo {
	width: var(--logo);
	margin: 0 auto 6px;
}

.cs-logo__burn {
	display: block;
	aspect-ratio: 1;
}

.cs-logo__burn img {
	display: block;
	width: 100%;
	height: auto;
}

.cs-kicker {
	margin: 0;
	font: 600 clamp(13px, 1.6vh, 16px)/1 var(--f-head);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--uw-yellow);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.cs-kicker::before,
.cs-kicker::after {
	content: "//";
	margin: 0 0.6em;
	letter-spacing: 0;
}

.cs-title {
	margin: 4px 0 0;
	font: italic 800 clamp(52px, min(11vw, 11vh), 108px)/0.92 var(--f-head);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--uw-white);
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 0, 0, 0.85);
}

.cs-lead {
	max-width: 440px;
	margin: 12px auto 0;
	font-size: clamp(14px, 1.8vh, 16px);
	color: var(--uw-text);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.cs-brush {
	margin: 12px 0 0;
	font: 400 clamp(17px, 2.4vh, 22px)/1.1 var(--f-brush);
	color: var(--uw-yellow);
	transform: rotate(-2deg);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.cs-contact {
	margin: 18px 0 0;
}

.cs-mail {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid var(--uw-yellow);
	border-radius: 6px;
	background: rgba(11, 11, 10, 0.55);
	color: var(--uw-white);
	font: 600 18px/1 var(--f-head);
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

.cs-mail:hover,
.cs-mail:focus-visible {
	background: var(--uw-yellow);
	color: var(--uw-on-accent);
	outline: none;
}

/* ── Przełącznik świateł, licznik, komunikaty ──────────────────────── */

.cs-hud {
	position: fixed;
	top: max(12px, env(safe-area-inset-top));
	right: 12px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.cs-btn,
.cs-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--uw-line);
	border-radius: 999px;
	background: rgba(11, 11, 10, 0.78);
	color: var(--uw-text);
	font: 600 14px/1 var(--f-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cs-btn {
	cursor: pointer;
}

.cs-btn:hover,
.cs-btn:focus-visible {
	border-color: var(--uw-yellow);
	color: var(--uw-white);
	outline: none;
}

.cs-btn b {
	min-width: 2.2em;
	text-align: left;
	color: var(--uw-muted);
}

.cs-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3a3d44;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.cs-lights[aria-pressed="true"] .cs-dot {
	background: var(--uw-yellow);
	box-shadow: 0 0 10px var(--uw-yellow);
}

.cs-lights[aria-pressed="true"] b {
	color: var(--uw-yellow);
}

.cs-count {
	min-height: 28px;
	padding: 0 12px;
	font-size: 12.5px;
	color: var(--uw-muted);
}

.cs-count b {
	color: var(--uw-white);
}

.cs-count.is-full b {
	color: var(--uw-yellow);
}

.cs-count.is-shake {
	animation: cs-shake 0.45s ease;
	border-color: var(--uw-yellow);
}

.cs-toast {
	position: fixed;
	left: 50%;
	bottom: calc(max(12px, env(safe-area-inset-bottom)) + 34px);
	z-index: 4;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 9px 16px;
	border: 1px solid var(--uw-line);
	border-radius: 8px;
	background: rgba(11, 11, 10, 0.88);
	color: var(--uw-white);
	font: 600 15px/1.25 var(--f-head);
	letter-spacing: 0.04em;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.cs-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.cs-foot {
	position: fixed;
	left: 0;
	right: 0;
	bottom: max(10px, env(safe-area-inset-bottom));
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	padding: 0 16px;
	font: 400 11.5px/1.3 var(--f-body);
	color: var(--uw-muted);
	pointer-events: none;
	text-shadow: 0 1px 4px #000;
}

.cs-age {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.cs-age b {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--uw-yellow);
	color: var(--uw-on-accent);
	font: 800 11px/1 var(--f-head);
	font-style: italic;
	text-shadow: none;
}

.cs-debug {
	position: fixed;
	left: 8px;
	top: 8px;
	z-index: 9;
	margin: 0;
	padding: 6px 8px;
	background: rgba(0, 0, 0, 0.75);
	color: var(--uw-yellow);
	font: 11px/1.3 ui-monospace, Menlo, monospace;
	pointer-events: none;
}

@keyframes cs-shake {

	20%,
	60% {
		transform: translateX(-5px);
	}

	40%,
	80% {
		transform: translateX(5px);
	}
}

/* ── Mały ekran ────────────────────────────────────────────────────── */

@media (max-width: 600px) {

	:root {
		--logo: clamp(120px, 36vw, 190px);
	}

	.cs-layer {
		align-items: flex-start;
		padding-top: max(84px, calc(env(safe-area-inset-top) + 70px));
	}

	.cs-hud {
		left: 12px;
		right: 12px;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.cs-copy {
		display: none;
	}
}

@media (max-height: 620px) {

	.cs-brush,
	.cs-lead {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.cs-stage,
	.cs-toast,
	.cs-mail {
		transition: none;
	}

	.cs-count.is-shake {
		animation: none;
	}
}
