.intro-page {
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	overflow-x: hidden;
	background: var(--game-page-background);
	color: var(--game-surface-text);
}

.intro-stage {
	position: relative;
	isolation: isolate;
	display: grid;
	box-sizing: border-box;
	width: min(100%, 560px);
	margin: 0 auto;
	min-height: 100vh;
	min-height: 100dvh;
	place-items: center;
	padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
	overflow: hidden;
}

.intro-stage::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--game-intro-glow);
	pointer-events: none;
}

.intro-content {
	display: flex;
	width: 100%;
	min-height: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, calc(2.5vh + 8px), 30px);
	text-align: center;
}

.intro-brand-logo {
	display: block;
	width: min(265px, 74vw);
	height: auto;
	filter:
		drop-shadow(0 5px 7px rgb(var(--game-shadow-rgb) / .72))
		drop-shadow(0 0 11px rgb(var(--game-accent-rgb) / .3));
	animation: intro-item-in .55s ease-out both;
}

.intro-mascot {
	display: block;
	width: min(230px, 61vw);
	max-height: 39dvh;
	object-fit: contain;
	filter: drop-shadow(0 16px 18px rgb(var(--game-shadow-rgb) / .32));
	animation: intro-mascot-in .7s cubic-bezier(.2, .85, .3, 1.16) both .12s;
}

.intro-summary {
	width: 100%;
	margin: 0;
	animation: intro-item-in .5s ease-out both .3s;
}

.intro-summary h1 {
	margin: 0;
	color: var(--game-surface-text);
	font-size: clamp(25px, 7vw, 34px);
	line-height: 1.12;
	text-shadow: 0 3px 8px rgb(var(--game-shadow-rgb) / .3);
}

.intro-summary > p {
	margin: 8px 0 0;
	color: var(--game-surface-muted);
	font-size: clamp(17px, 4.8vw, 20px);
	line-height: 1.35;
}

.start-game {
	position: relative;
	display: inline-flex;
	box-sizing: border-box;
	width: min(100%, 340px);
	min-height: 60px;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border: 1px solid var(--game-button-border);
	border-radius: 24px;
	background: var(--game-button-background);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .72),
		0 7px 0 rgb(var(--game-deep-rgb) / .22),
		0 13px 24px rgb(var(--game-shadow-rgb) / .3);
	color: var(--game-button-text);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .02rem;
	text-decoration: none;
	text-transform: uppercase;
	animation: intro-item-in .5s ease-out both .42s;
	transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.start-game::after {
	content: '';
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 11px;
	height: 11px;
	margin-left: 18px;
	border-top: 3px solid currentColor;
	border-right: 3px solid currentColor;
	transform: rotate(45deg);
}

.start-game:hover,
.start-game:focus {
	color: var(--game-button-text);
}

.start-game:focus-visible {
	outline: 3px solid var(--game-focus-ring);
	outline-offset: 3px;
}

.start-game:active {
	box-shadow:
		inset 0 2px 4px rgb(var(--game-deep-rgb) / .18),
		0 3px 0 rgb(var(--game-deep-rgb) / .2),
		0 8px 16px rgb(var(--game-shadow-rgb) / .26);
	transform: translateY(3px);
}

.cookie-dialog-icon {
	display: block;
	width: 62px;
	height: 62px;
	margin: 0 auto 12px;
	filter: drop-shadow(0 6px 8px rgb(var(--game-shadow-rgb) / .2));
}

.cookie-dialog-retry {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	padding: 0 26px;
	border: 1px solid var(--game-button-border);
	border-radius: 18px;
	background: var(--game-button-background);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 5px 12px rgb(var(--game-deep-rgb) / .18);
	color: var(--game-button-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cookie-dialog-retry:focus-visible {
	outline: 3px solid var(--game-focus-ring);
	outline-offset: 3px;
}

@keyframes intro-item-in {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
}

@keyframes intro-mascot-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 30px, 0) scale(.78);
	}
	68% {
		opacity: 1;
		transform: translate3d(0, -7px, 0) scale(1.04);
	}
	100% {
		opacity: 1;
		transform: none;
	}
}

@media (max-height: 680px) {
	.intro-stage {
		padding-top: calc(14px + env(safe-area-inset-top));
		padding-bottom: calc(14px + env(safe-area-inset-bottom));
	}

	.intro-content {
		gap: 18px;
	}

	.intro-brand-logo {
		width: min(207px, 58vw);
	}

	.intro-mascot {
		width: min(162px, 46vw);
		max-height: 31dvh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.intro-brand-logo,
	.intro-mascot,
	.intro-summary,
	.start-game {
		animation: none;
		transition: none;
	}
}
