@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Urbanist:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
	--bp-gold: #f9b233;
	--bp-gold-soft: rgba(249, 178, 51, 0.18);
	--bp-ink: #121212;
	--bp-paper: #f4efe5;
	--bp-muted: #bfb8aa;
	--bp-line: rgba(255, 255, 255, 0.14);
	--bp-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

html {
	background: #0b0b0b;
}

body.language-page,
body.crimehunt-app {
	color: var(--bp-paper);
	background:
		linear-gradient(135deg, rgba(7, 7, 7, 0.88), rgba(18, 16, 13, 0.7)),
		url('blackwall_light.jpg') center / cover fixed,
		#0b0b0b;
}

body.crimehunt-app {
	padding: 0 20px 58px;
}

body.crimehunt-app.casefile-open {
	overflow: hidden;
}

body.crimehunt-app.casefile-open::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9000;
	background: rgba(0, 0, 0, 0.46);
	backdrop-filter: blur(8px);
}

body.crimehunt-app.casefile-open .brandHeader,
body.crimehunt-app.casefile-open .app-shell {
	filter: blur(6px);
	transition: filter 0.18s ease;
}

.brandHeader {
	width: min(1160px, 100%);
	margin: 0 auto;
	padding: 28px 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brandLogo {
	display: inline-flex;
	align-items: center;
	color: #fff;
	text-decoration: none;
}

.brandLogo img {
	width: min(260px, 64vw);
	height: auto;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.brandLockup {
	display: inline-block;
	font-family: 'Special Elite', 'Courier New', monospace;
	line-height: 0.8;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.brandWord {
	display: inline-flex;
	align-items: center;
	color: #fff;
	font-size: clamp(2.05rem, 4.2vw, 2.85rem);
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.brandBrain {
	width: 0.58em;
	height: 0.7em;
	margin: 0 0.02em 0 0.03em;
	position: relative;
	display: inline-block;
	border: 0.07em solid var(--bp-gold);
	border-radius: 52% 52% 44% 44%;
	transform: translateY(-0.02em);
}

.brandBrain::before {
	content: "";
	position: absolute;
	left: 24%;
	right: 24%;
	bottom: -0.25em;
	height: 0.18em;
	border-top: 0.07em solid var(--bp-gold);
	border-bottom: 0.07em solid var(--bp-gold);
}

.brandBrain::after {
	content: "";
	position: absolute;
	left: 31%;
	right: 31%;
	top: 27%;
	height: 0.22em;
	border: 0.055em solid var(--bp-gold);
	border-top: 0;
	border-radius: 0 0 999px 999px;
}

.brandEvents {
	display: block;
	margin-top: 0.14em;
	padding-right: 0.42em;
	color: var(--bp-gold);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: clamp(0.74rem, 1.25vw, 0.94rem);
	text-align: right;
}

.brandMeta {
	text-align: right;
	color: var(--bp-muted);
	font-size: 0.82rem;
	line-height: 1.35;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.brandMeta strong {
	display: block;
	color: #fff;
	font-size: 0.95rem;
	letter-spacing: 0.18em;
}

.brandActions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
}

.tileLayoutToggle {
	display: none;
}

.app-shell {
	width: min(1160px, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
	align-items: start;
}

.app-shell > * {
	min-width: 0;
}

.crimehunt-app .fullInfo {
	grid-column: 1 / -1;
	margin: 30px 0 2px;
	padding: 14px 18px;
	border: 1px solid rgba(249, 178, 51, 0.38);
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(249, 178, 51, 0.2), rgba(255, 255, 255, 0.055));
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-transform: uppercase;
}

.crimehunt-app .infoContainer {
	display: block;
	min-height: 100%;
	margin: 0;
	padding: 14px;
	position: relative;
	overflow: visible;
	border: 1px solid var(--bp-line);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(23, 23, 23, 0.88), rgba(11, 11, 11, 0.82));
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
	color: var(--bp-muted);
	line-height: 1.45;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	backdrop-filter: blur(8px);
}

.crimehunt-app .infoContainer:hover {
	transform: translateY(-3px);
	border-color: rgba(249, 178, 51, 0.58);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.crimehunt-app.casefile-open .infoContainer {
	transform: none !important;
}

.crimehunt-app .infoContainer.casefile-active {
	z-index: auto;
	transform: none !important;
}

.crimehunt-app .infoContainer > br:first-child {
	display: none;
}

.crimehunt-app .portraitImg {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #1b1b1b;
	filter: saturate(0.94) contrast(1.04);
}

.crimehunt-app .infoContainer strong {
	display: block;
	margin: 13px 0 2px;
	color: #fff;
	font-size: 1.08rem;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.crimehunt-app .infoContent {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 10000;
	width: min(920px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	margin: 0;
	padding: 62px 34px 36px;
	overflow: auto;
	border: 1px solid rgba(249, 178, 51, 0.42);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(12, 12, 12, 0.98)),
		#151515;
	box-shadow: var(--bp-shadow);
	color: #efe8dc;
	cursor: auto;
	transform: translate(-50%, -50%);
	will-change: opacity;
}

.crimehunt-app .infoContent.casefile-floating {
	z-index: 10000;
}

.crimehunt-app .infoContent::before {
	content: "Case File";
	position: absolute;
	top: 18px;
	left: 28px;
	color: var(--bp-gold);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 0.86rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.crimehunt-app .infoContent a {
	color: var(--bp-gold);
	font-weight: 800;
	text-decoration: none;
	border-bottom: 1px solid rgba(249, 178, 51, 0.45);
}

.crimehunt-app .infoContent a:hover {
	border-bottom-color: var(--bp-gold);
}

.crimehunt-app .infoContent img {
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.crimehunt-app .closer {
	top: 14px;
	right: 14px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.88rem;
	line-height: 1;
}

.crimehunt-app .closer:hover {
	background: var(--bp-gold);
	color: #151515;
}

.crimehunt-app .lightbox {
	z-index: 11000;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
}

.crimehunt-app .lightbox[style*="display: block"] {
	display: flex !important;
}

.crimehunt-app .lightbox img {
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 8px;
	box-shadow: 0 22px 80px rgba(0, 0, 0, 0.72);
}

.crimehunt-app .lightbox-close {
	top: 20px;
	right: 22px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
}

.language-page {
	display: block;
	min-height: 100vh;
	margin: 0;
	padding: 28px 20px 46px;
	box-sizing: border-box;
	font-family: 'Urbanist', Helvetica, Arial, sans-serif;
}

.language-page .language-selection {
	width: min(920px, 100%);
	margin: 0 auto;
	text-align: center;
}

.language-page .brandHeader {
	justify-content: center;
	padding-bottom: 54px;
}

.language-page h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 5vw, 4.25rem);
	line-height: 0.98;
	letter-spacing: 0.01em;
}

.language-page .language-kicker {
	margin: 18px auto 0;
	max-width: 620px;
	color: var(--bp-muted);
	font-size: 1.05rem;
	line-height: 1.5;
}

.language-page .language-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 42px;
}

.language-page .lang-button {
	max-width: none;
	padding: 14px;
	border: 1px solid var(--bp-line);
	border-radius: 8px;
	background: rgba(18, 18, 18, 0.74);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
	color: #fff;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	backdrop-filter: blur(8px);
}

.language-page .lang-button:hover {
	transform: translateY(-3px);
	border-color: rgba(249, 178, 51, 0.58);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.language-page .lang-button img {
	width: 100%;
	max-width: none;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: none;
}

.language-page .lang-button:hover img {
	transform: none;
}

.language-page .lang-label {
	margin-top: 14px;
	display: block;
	color: var(--bp-gold);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 720px) {
	body.crimehunt-app {
		padding: 0 14px 36px;
	}

	.brandHeader {
		align-items: flex-start;
		flex-direction: column;
		padding-top: 22px;
	}

	.brandActions {
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.brandMeta {
		text-align: left;
		font-size: 0.76rem;
	}

	.brandMeta strong {
		font-size: 0.86rem;
	}

	.tileLayoutToggle {
		display: inline-flex;
		align-items: center;
		flex: 0 0 auto;
		gap: 4px;
		padding: 4px;
		border: 1px solid var(--bp-line);
		border-radius: 8px;
		background: rgba(12, 12, 12, 0.62);
	}

	.tileLayoutButton {
		width: 32px;
		height: 32px;
		display: grid;
		place-items: center;
		padding: 0;
		border: 1px solid transparent;
		border-radius: 6px;
		background: transparent;
		color: #fff;
		cursor: pointer;
	}

	.tileLayoutButton.is-active {
		border-color: rgba(249, 178, 51, 0.64);
		background: var(--bp-gold-soft);
	}

	.tileIcon {
		width: 18px;
		display: grid;
		gap: 2px;
	}

	.tileIcon-1 {
		width: 13px;
		grid-template-columns: 1fr;
	}

	.tileIcon-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.tileIcon-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.tileIcon span {
		aspect-ratio: 1;
		border: 1px solid currentColor;
		border-radius: 2px;
		background: rgba(255, 255, 255, 0.12);
	}

	.app-shell {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	body.crimehunt-app[data-tile-layout="2"] .app-shell {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	body.crimehunt-app[data-tile-layout="3"] .app-shell {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	body.crimehunt-app[data-tile-layout="2"] .fullInfo,
	body.crimehunt-app[data-tile-layout="3"] .fullInfo {
		grid-column: 1 / -1;
	}

	.crimehunt-app .infoContainer {
		padding: 10px;
		font-size: 0.92rem;
		overflow-wrap: anywhere;
	}

	body.crimehunt-app[data-tile-layout="2"] .infoContainer {
		padding: 8px;
		font-size: 0.78rem;
		line-height: 1.28;
	}

	body.crimehunt-app[data-tile-layout="3"] .infoContainer {
		padding: 5px;
		font-size: 0.64rem;
		line-height: 1.18;
	}

	body.crimehunt-app[data-tile-layout="2"] .infoContainer strong {
		margin-top: 9px;
		font-size: 0.9rem;
	}

	body.crimehunt-app[data-tile-layout="3"] .infoContainer strong {
		margin-top: 6px;
		font-size: 0.7rem;
	}

	body.crimehunt-app[data-tile-layout="3"] .portraitImg {
		border-radius: 4px;
	}

	.crimehunt-app .infoContent {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 24px);
		padding: 58px 20px 26px;
	}

	.language-page .language-buttons {
		grid-template-columns: 1fr;
	}
}
