/* linkquiz.app home pages (index.html, de/, ru/), built by build-pages.mjs */

/* Nunito, the game's font, self-hosted: no request to Google Fonts (OFL, fonts/OFL.txt) */
@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url('fonts/nunito-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
		U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url('fonts/nunito-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
	--ink: #172038;
	--muted: #59627d;
	--bg: #f4f6fc;
	--surface: #ffffff;
	--line: #e2e6f2;
	--blue: #2f6fe0;
	--yellow: #ffd54a;
	--green: #4fb779;
	--red: #e0607a;
	--link: #2a66c9;
	--hero: radial-gradient(70% 90% at 0% 100%, rgba(192, 86, 143, 0.75), transparent 60%),
		radial-gradient(60% 70% at 100% 0%, rgba(120, 190, 255, 0.45), transparent 60%),
		linear-gradient(140deg, #3a49b0 0%, #2f6fe0 55%, #3d8ff0 100%);
	--daily: linear-gradient(150deg, #5b3fc4 0%, #8a46b0 50%, #c04a8f 100%);
	--shadow: 0 20px 50px rgba(22, 40, 110, 0.18);
	--radius: 24px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #e9ecf8;
		--muted: #a5adc6;
		--bg: #0d1122;
		--surface: #161c33;
		--line: #262e4d;
		--link: #8fb4ff;
		--shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul {
	margin: 0;
}

ol,
ul {
	padding: 0;
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: var(--link);
}

h2 {
	font-size: clamp(2rem, 4.2vw, 3rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

h3 {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
}

:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 3px;
	border-radius: 8px;
}

.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: 96px 0;
}

.section-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px;
}

.section-head p {
	color: var(--muted);
	font-size: 1.15rem;
	margin-top: 14px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-yellow {
	background: var(--yellow);
	color: #1d2448;
	box-shadow: 0 10px 24px rgba(255, 196, 0, 0.35);
}

.btn-yellow:hover {
	box-shadow: 0 14px 30px rgba(255, 196, 0, 0.45);
}

.btn-big {
	padding: 16px 30px;
	font-size: 1.15rem;
}

.btn-small {
	padding: 9px 18px;
	font-size: 0.95rem;
}

.btn-ghost {
	padding: 12px 22px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
}

.stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.stores img {
	height: 50px;
	width: auto;
	transition: transform 0.15s ease;
}

.stores a:hover img {
	transform: translateY(-2px);
}

/* ---------- Top bar ---------- */

.top {
	position: absolute;
	inset: 0 0 auto;
	z-index: 5;
}

.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 900;
	font-size: 1.35rem;
	text-decoration: none;
}

.brand img {
	width: 38px;
	height: 38px;
	border-radius: 10px;
}

.top-nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.languages {
	display: flex;
	gap: 12px;
	font-weight: 800;
	font-size: 0.95rem;
}

.languages a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.languages a[aria-current='page'] {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--hero);
	color: #fff;
	padding: 120px 0 150px;
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.hero h1 {
	margin: 22px 0 20px;
	font-size: clamp(3rem, 7vw, 5.2rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
}

.hero h1 em {
	font-style: normal;
	color: var(--yellow);
}

.lead {
	font-size: 1.2rem;
	max-width: 34em;
	color: rgba(255, 255, 255, 0.92);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin: 32px 0 22px;
}

.cta-note {
	font-weight: 700;
	color: rgba(255, 255, 255, 0.8);
}

/* Topic words drifting up behind the hero */
.drift {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.drift span {
	position: absolute;
	bottom: -60px;
	left: var(--x);
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	opacity: 0;
	animation: drift var(--t) linear var(--d) infinite;
}

@keyframes drift {
	0% {
		transform: translateY(0);
		opacity: 0;
	}

	15%,
	70% {
		opacity: 0.3;
	}

	100% {
		transform: translateY(-900px);
		opacity: 0;
	}
}

.wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 3;
	width: 100%;
	height: 80px;
	fill: var(--bg);
}

/* ---------- The puzzle in the hero ---------- */

.puzzle {
	width: 100%;
	max-width: 430px;
	justify-self: center;
}

.puzzle-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-weight: 800;
}

.streak {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.18);
}

.puzzle-count {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

.puzzle-card {
	background: #fff;
	color: #2b3247;
	border-radius: 22px;
	padding: 16px 20px 12px;
	box-shadow: 0 24px 60px rgba(10, 20, 70, 0.35);
	transform: rotate(-1.5deg);
}

.puzzle-question {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 14px;
	background: #eef3fd;
	font-weight: 700;
	font-size: 0.98rem;
}

.puzzle-question span:first-child {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #2f80e0;
	color: #fff;
	font-size: 0.95rem;
}

.links {
	margin-top: 6px;
	text-align: center;
}

.links li {
	padding: 8px 0;
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--blue);
	border-bottom: 1px solid #e8ecf5;
	animation: link-in 0.45s ease both;
	animation-delay: calc(var(--i, 0) * 110ms);
}

.links li:last-child {
	border-bottom: 0;
}

@keyframes link-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.answers {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.answer {
	min-height: 54px;
	padding: 10px 16px;
	border: 0;
	border-radius: 14px;
	font: inherit;
	font-weight: 800;
	font-size: 1.08rem;
	color: #fff;
	background: linear-gradient(90deg, #a54a8c, #5747c2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 22px rgba(10, 20, 70, 0.3);
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease, opacity 0.2s ease;
}

.answer:hover:enabled {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

.answer:disabled {
	cursor: default;
	opacity: 0.55;
}

.answer.is-correct {
	opacity: 1;
	background: var(--green);
}

.answer.is-correct::before {
	content: '✓ ';
}

.answer.is-wrong {
	opacity: 1;
	background: var(--red);
	animation: shake 0.4s ease;
}

@keyframes shake {
	25% {
		transform: translateX(-6px);
	}

	75% {
		transform: translateX(6px);
	}
}

.result {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(20, 28, 90, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	animation: link-in 0.35s ease both;
}

.result strong {
	display: block;
	font-size: 1.1rem;
	font-weight: 900;
}

.result p {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.9);
}

.result .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

[hidden] {
	display: none !important;
}

/* ---------- How it works ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	counter-reset: step;
}

.step {
	position: relative;
	padding: 30px 26px 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.step-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 18px;
	border-radius: 18px;
	font-size: 1.8rem;
	background: linear-gradient(140deg, #3a49b0, #3d8ff0);
	box-shadow: 0 10px 22px rgba(47, 111, 224, 0.3);
}

.step::after {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: 18px;
	right: 24px;
	font-size: 3.4rem;
	font-weight: 900;
	line-height: 1;
	color: var(--line);
}

.step p {
	margin-top: 8px;
	color: var(--muted);
}

/* ---------- Phone frames around bare screen captures ---------- */

.phone {
	position: relative;
	width: 290px;
	padding: 11px;
	border-radius: 54px;
	background: #0b0c10;
	box-shadow: 0 0 0 2px #4a4e57, 0 30px 70px rgba(10, 10, 40, 0.45);
}

.phone img {
	width: 100%;
	height: auto;
	border-radius: 44px;
}

/* ---------- Daily challenge ---------- */

.daily {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
	padding: 64px 64px 0;
	border-radius: 36px;
	background: var(--daily);
	color: #fff;
}

.daily-text {
	padding-bottom: 64px;
}

.daily h2 {
	margin: 18px 0 16px;
}

.daily-text > p {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
	max-width: 32em;
}

.themes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.themes li {
	padding: 7px 14px;
	border-radius: 999px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.themes li:first-child {
	background: #fff;
	color: #6a3fb8;
}

.daily .phone {
	justify-self: center;
	align-self: end;
	margin-bottom: -170px;
	transform: rotate(4deg);
}

/* ---------- Screenshots ---------- */

.shots {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	/* The first screenshot lines up with the page content */
	padding: 10px max(20px, calc((100% - 1120px) / 2)) 26px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.shots img {
	flex: 0 0 auto;
	width: 250px;
	height: auto;
	border-radius: 22px;
	box-shadow: var(--shadow);
	scroll-snap-align: center;
}

/* ---------- Features (bento) ---------- */

.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-areas:
		'quests quests picture picture'
		'quests quests timeline description'
		'noads offline achievements languages';
	gap: 20px;
}

.tile {
	position: relative;
	overflow: hidden;
	padding: 26px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
}

.tile p {
	margin-top: 8px;
	color: var(--muted);
}

.tile-icon {
	display: block;
	font-size: 1.9rem;
	margin-bottom: 10px;
}

.tile-color {
	color: #fff;
	border: 0;
}

.tile-color p {
	color: rgba(255, 255, 255, 0.9);
}

.tile-quests {
	grid-area: quests;
	min-height: 440px;
	background: linear-gradient(150deg, #3a49b0, #2f6fe0 60%, #3d8ff0);
}

.tile-quests > :not(.phone) {
	max-width: 54%;
}

.tile-quests h3 {
	font-size: 1.9rem;
}

.hubs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.hubs li {
	padding: 5px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.tile-quests .phone {
	position: absolute;
	right: -24px;
	top: 64px;
	width: 230px;
	padding: 8px;
	border-radius: 40px;
	transform: rotate(-5deg);
}

.tile-quests .phone img {
	border-radius: 33px;
}

.tile-picture {
	grid-area: picture;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
	background: linear-gradient(140deg, #10857c, #2f8ee0);
}

/* A picture opening tile by tile */
.reveal-grid {
	display: grid;
	grid-template-columns: repeat(4, 34px);
	gap: 5px;
}

.reveal-grid i {
	height: 34px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.22);
}

.reveal-grid i.open {
	background: linear-gradient(140deg, #ffd54a, #ff9f5a);
	animation: pop 2.8s ease-in-out infinite;
	animation-delay: var(--d);
}

@keyframes pop {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.35;
	}
}

.tile-timeline {
	grid-area: timeline;
	background: linear-gradient(150deg, #a8457a, #e0607a);
}

.years {
	position: relative;
	display: grid;
	gap: 8px;
	margin-top: 16px;
	padding-left: 14px;
	border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.years li {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
}

.years b {
	display: block;
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--yellow);
}

.tile-description {
	grid-area: description;
}

.redacted {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--bg);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--muted);
}

.redacted mark {
	padding: 0 4px;
	border-radius: 4px;
	color: transparent;
	background: var(--ink);
}

.tile-noads {
	grid-area: noads;
	background: var(--yellow);
	border: 0;
	color: #1d2448;
}

.tile-noads p {
	color: #3d4566;
}

.big-zero {
	display: block;
	font-size: 3.6rem;
	font-weight: 900;
	line-height: 1;
}

.tile-offline {
	grid-area: offline;
}

.tile-achievements {
	grid-area: achievements;
}

.tile-languages {
	grid-area: languages;
}

.lang-codes {
	display: block;
	font-size: 1.9rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	background: linear-gradient(90deg, #3a49b0, #c04a8f);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 6px;
}

@media (prefers-color-scheme: dark) {
	.lang-codes {
		background: linear-gradient(90deg, #8fb4ff, #ff8fc6);
		-webkit-background-clip: text;
		background-clip: text;
	}
}

.note {
	margin-top: 26px;
	text-align: center;
	color: var(--muted);
}

/* ---------- Final call ---------- */

.final {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: center;
	padding: 60px 64px;
	border-radius: 36px;
	background: var(--hero);
	color: #fff;
}

.final p {
	margin: 14px 0 26px;
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
	max-width: 34em;
}

.final .cta-row {
	margin: 0 0 18px;
}

.qr {
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
}

.qr img {
	width: 170px;
	height: 170px;
	margin: 0 auto 10px;
	padding: 12px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.2);
}

/* ---------- Footer ---------- */

.footer {
	padding: 56px 0 40px;
	color: var(--muted);
	font-size: 0.95rem;
}

.footer .wrap {
	display: grid;
	gap: 14px;
	justify-items: center;
	text-align: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	font-weight: 700;
}

.footer-links a {
	text-decoration: none;
}

.attribution {
	max-width: 46em;
	font-size: 0.85rem;
}

/* ---------- Appear on scroll (only with JS) ---------- */

.js .appear {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .appear.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
	.hero-inner,
	.daily {
		grid-template-columns: 1fr;
	}

	.drift {
		display: none;
	}

	.hero {
		padding-top: 110px;
	}

	.bento {
		grid-template-columns: repeat(2, 1fr);
		grid-template-areas:
			'quests quests'
			'picture picture'
			'timeline description'
			'noads offline'
			'achievements languages';
	}

	.daily {
		padding: 48px 32px 0;
	}

	.daily-text {
		padding-bottom: 0;
	}

	.daily .phone {
		margin-bottom: -220px;
	}

	.final {
		grid-template-columns: 1fr;
		padding: 48px 32px;
	}
}

@media (max-width: 680px) {
	body {
		font-size: 16px;
	}

	.section {
		padding: 72px 0;
	}

	.top .wrap {
		padding-top: 14px;
	}

	.top-nav .btn-small {
		display: none;
	}

	.hero {
		padding: 96px 0 120px;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.bento {
		grid-template-columns: 1fr;
		grid-template-areas: 'quests' 'picture' 'timeline' 'description' 'noads' 'offline' 'achievements' 'languages';
	}

	.tile-quests {
		min-height: 0;
		padding-bottom: 300px;
	}

	.tile-quests > :not(.phone) {
		max-width: none;
	}

	.tile-quests .phone {
		top: auto;
		bottom: -140px;
		right: 50%;
		transform: translateX(50%) rotate(-4deg);
	}

	.tile-picture {
		grid-template-columns: 1fr;
	}

	.daily,
	.final {
		border-radius: 28px;
		padding-left: 22px;
		padding-right: 22px;
	}

	.daily .phone {
		width: 250px;
	}

	.qr {
		display: none;
	}

	.shots img {
		width: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.drift {
		display: none;
	}

	.js .appear {
		opacity: 1;
		transform: none;
	}
}
