﻿:root {
	--ink: #fff8dc;
	--ink-muted: #d9ead9;
	--panel: rgba(17, 44, 39, 0.88);
	--panel-deep: rgba(9, 27, 26, 0.96);
	--gold: #ffdd70;
	--gold-deep: #f59d36;
	--mint: #63e7a7;
	--mint-deep: #18ad83;
	--danger: #ff8c7a;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: #102b28;
	color: var(--ink);
	font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

button {
	font: inherit;
}

[hidden] {
	display: none !important;
}

.intro-screen {
	--intro-night: #07150f;
	--intro-card: rgba(18, 47, 31, 0.62);
	--intro-card-soft: rgba(255, 255, 255, 0.07);
	--intro-leaf: #74f29b;
	--intro-leaf-bright: #b4ff7a;
	--intro-gold: #ffd86b;
	--intro-ink: #f6fff5;
	--intro-soft: #d6ead4;
	--intro-dim: #9bb69c;
	--intro-line: rgba(210, 255, 210, 0.18);
	position: fixed;
	z-index: 50;
	inset: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--intro-night);
	color: var(--intro-ink);
	font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
	font-size: 15px;
	line-height: 1.85;
	opacity: 1;
	visibility: visible;
	-webkit-overflow-scrolling: touch;
	transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.intro-screen--leaving {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.intro-bg,
.intro-grid,
.intro-bits {
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.intro-bg {
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 55% at 80% 8%, rgba(116, 242, 155, 0.18) 0%, transparent 58%),
		radial-gradient(ellipse 70% 50% at 10% 26%, rgba(255, 216, 107, 0.12) 0%, transparent 52%),
		radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 154, 60, 0.11) 0%, transparent 58%),
		linear-gradient(180deg, #06130d 0%, #0c2418 42%, #07150f 100%);
}

.intro-grid {
	z-index: 1;
	opacity: 0.18;
	background-image:
		linear-gradient(rgba(180, 255, 122, 0.18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(180, 255, 122, 0.18) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: linear-gradient(#000, transparent 82%);
	mask-image: linear-gradient(#000, transparent 82%);
}

.intro-bits {
	z-index: 2;
}

.intro-bits i {
	position: absolute;
	width: var(--bit-size, 4px);
	height: var(--bit-size, 4px);
	border-radius: 50%;
	background: var(--bit-color, var(--intro-leaf));
	box-shadow: 0 0 16px var(--bit-color, var(--intro-leaf));
	opacity: 0.55;
	animation: intro-twinkle var(--bit-duration, 3s) ease-in-out infinite alternate;
}

.intro-wrap {
	position: relative;
	z-index: 5;
	width: min(1050px, 100%);
	margin: 0 auto;
	padding: 0 24px 90px;
}

.intro-cover {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 82vh;
	padding: 82px 20px 44px;
	text-align: center;
}

.intro-tag {
	margin-bottom: 18px;
	color: var(--intro-leaf);
	font-size: 12px;
	letter-spacing: 5px;
}

.intro-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border: 1px solid rgba(116, 242, 155, 0.4);
	border-radius: 999px;
	background: rgba(116, 242, 155, 0.1);
	color: var(--intro-leaf);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
}

.intro-cover h1 {
	margin: 18px 0 0;
	color: var(--intro-ink);
	font-size: clamp(36px, 7vw, 72px);
	font-weight: 900;
	line-height: 1.16;
	letter-spacing: 2px;
	text-shadow: 0 0 34px rgba(116, 242, 155, 0.34);
}

.intro-green {
	color: var(--intro-leaf-bright);
}

.intro-gold {
	color: var(--intro-gold);
}

.intro-subtitle {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--intro-soft);
	font-size: clamp(15px, 2.2vw, 20px);
	letter-spacing: 1px;
}

.intro-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}

.intro-meta span {
	padding: 7px 18px;
	border: 1px solid var(--intro-line);
	border-radius: 30px;
	background: rgba(18, 47, 31, 0.72);
	color: var(--intro-soft);
	font-size: 12.5px;
}

.intro-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 34px;
}

.intro-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--intro-gold), #fff0a8);
	box-shadow: 0 12px 32px rgba(255, 216, 107, 0.25);
	color: #10210f;
	cursor: pointer;
	font-weight: 900;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.intro-btn:hover,
.intro-btn:focus-visible {
	box-shadow: 0 16px 40px rgba(255, 216, 107, 0.38);
	filter: brightness(1.04);
	transform: translateY(-2px);
}

.intro-btn:focus-visible {
	outline: 3px solid rgba(116, 215, 255, 0.8);
	outline-offset: 3px;
}

.intro-btn[disabled] {
	cursor: wait;
	filter: saturate(0.5);
	opacity: 0.7;
	transform: none;
}

.intro-btn--alt {
	border: 1px solid var(--intro-line);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	color: var(--intro-ink);
}

.intro-btn--large {
	padding: 17px 38px;
	font-size: 20px;
}

.intro-section {
	margin-top: 44px;
	padding: 34px 36px;
	border: 1px solid var(--intro-line);
	border-radius: 20px;
	background: var(--intro-card);
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	scroll-margin-top: 24px;
}

.intro-section h2 {
	margin: 0 0 15px;
	color: #fff;
	font-size: 26px;
	line-height: 1.35;
}

.intro-section h3 {
	margin: 5px 0;
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.45;
}

.intro-section p {
	margin: 0;
	color: var(--intro-soft);
}

.intro-section strong {
	color: var(--intro-gold);
}

.intro-number {
	display: inline-block;
	margin-right: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--intro-leaf), var(--intro-gold));
	color: #172613;
	font-size: 12px;
	vertical-align: middle;
}

.intro-lead {
	font-size: 17px;
}

.intro-section blockquote {
	margin: 20px 0;
	padding: 17px 20px;
	border: 0;
	border-left: 4px solid var(--intro-leaf);
	border-radius: 12px;
	background: rgba(116, 242, 155, 0.08);
	color: var(--intro-soft);
}

.intro-grid-2,
.intro-grid-3,
.intro-flow {
	display: grid;
	gap: 16px;
}

.intro-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-card,
.intro-step {
	padding: 18px;
	border: 1px solid var(--intro-line);
	border-radius: 16px;
	background: var(--intro-card-soft);
}

.intro-card-kicker {
	color: var(--intro-leaf);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
}

.intro-card p,
.intro-step p {
	font-size: 14px;
}

.intro-flow {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.intro-step {
	min-height: 150px;
	padding: 17px 13px;
}

.intro-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--intro-leaf), var(--intro-gold));
	color: #15240f;
	font-weight: 900;
}

.intro-step h3 {
	margin-top: 10px;
	font-size: 16px;
}

.intro-tutorials {
	display: grid;
	gap: 22px;
	margin-top: 24px;
}

.intro-tutorial {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--intro-line);
	border-radius: 20px;
	background: rgba(7, 21, 15, 0.68);
	box-shadow: 0 18px 60px rgba(116, 242, 155, 0.12);
}

.intro-tutorial img {
	display: block;
	width: 100%;
	height: auto;
}

.intro-tutorial figcaption {
	padding: 12px 16px;
	border-top: 1px solid var(--intro-line);
	background: rgba(7, 21, 15, 0.86);
	color: var(--intro-soft);
	font-size: 14px;
}

.intro-tutorial figcaption strong {
	color: var(--intro-leaf-bright);
}

.intro-table-wrap {
	overflow-x: auto;
	border-radius: 14px;
}

.intro-section table {
	width: 100%;
	margin-top: 15px;
	border-collapse: collapse;
}

.intro-section th,
.intro-section td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--intro-line);
	color: var(--intro-soft);
	text-align: left;
	vertical-align: top;
}

.intro-section th {
	background: rgba(116, 242, 155, 0.1);
	color: #fff;
}

.intro-section tr:last-child td {
	border-bottom: 0;
}

.intro-timeline {
	display: grid;
	gap: 13px;
	margin-top: 18px;
}

.intro-timeline article {
	display: grid;
	grid-template-columns: 58px 1fr;
	align-items: start;
	gap: 14px;
}

.intro-timeline h3 {
	margin-top: 0;
}

.intro-timeline p {
	font-size: 14px;
}

.intro-timeline-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(116, 242, 155, 0.35);
	border-radius: 16px;
	background: rgba(116, 242, 155, 0.16);
	color: var(--intro-leaf);
	font-weight: 900;
}

.intro-final {
	padding: 42px 24px;
	background: linear-gradient(180deg, rgba(255, 216, 107, 0.13), rgba(116, 242, 155, 0.1));
	text-align: center;
}

.intro-final h2 {
	font-size: 32px;
}

.intro-final p {
	max-width: 720px;
	margin: 0 auto 24px;
}

.intro-footer {
	margin-top: 34px;
	color: var(--intro-dim);
	font-size: 12px;
	text-align: center;
}

.intro-sticky {
	position: fixed;
	z-index: 6;
	right: 22px;
	bottom: 22px;
}

.intro-sticky .intro-btn {
	padding: 12px 20px;
}

.no-script-message {
	position: fixed;
	z-index: 100;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: #07150f;
	color: #fff;
	font-size: 18px;
	text-align: center;
}

.intro-active .buttonarea {
	visibility: hidden;
}

.game-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100vh;
	min-width: 0;
	min-height: 100vh;
	margin: 0;
	overflow: hidden;
	background: #071d1d;
}

.emscripten {
	display: block;
	margin: auto;
	padding: 0;
	border: 0;
	outline: none;
	opacity: 0;
	background: #071d1d;
	transition: opacity 480ms ease;
}

.game-shell--ready .emscripten {
	opacity: 1;
}

#canvas:not([fullscreen]) {
	margin: auto;
	max-width: 100%;
	max-height: 100vh;
}

.loading-screen {
	position: fixed;
	z-index: 20;
	inset: 0;
	display: grid;
	place-items: end center;
	isolation: isolate;
	padding:
		max(18px, env(safe-area-inset-top))
		max(18px, env(safe-area-inset-right))
		max(28px, env(safe-area-inset-bottom))
		max(18px, env(safe-area-inset-left));
	overflow: hidden;
	background: #274d39;
	opacity: 1;
	visibility: visible;
	transition: opacity 620ms ease, visibility 0s linear 620ms;
}

.loading-screen::before,
.loading-screen::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
}

.loading-screen::before {
	background:
		url("loading-screen/td-loading-bg.webp") center center / cover no-repeat;
	transform: scale(1.015);
	animation: scene-breathe 14s ease-in-out infinite alternate;
}

.loading-screen::after {
	z-index: -1;
	background:
		radial-gradient(circle at 50% 35%, rgba(255, 247, 189, 0.05) 0 20%, rgba(7, 27, 26, 0.08) 50%, rgba(3, 17, 18, 0.42) 100%),
		linear-gradient(180deg, rgba(14, 34, 31, 0.02) 48%, rgba(8, 28, 27, 0.48) 76%, rgba(5, 20, 21, 0.78) 100%);
}

.loading-screen--leaving {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.loading-card {
	position: relative;
	width: min(680px, calc(100vw - 36px));
	margin-bottom: clamp(0px, 2.8vh, 32px);
	padding: 24px 30px 21px;
	border: 1px solid rgba(255, 239, 166, 0.38);
	border-radius: 30px;
	background:
		linear-gradient(145deg, rgba(35, 75, 56, 0.92), var(--panel) 54%, var(--panel-deep));
	box-shadow:
		0 22px 70px rgba(2, 16, 18, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		inset 0 -2px 0 rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(14px) saturate(1.12);
	-webkit-backdrop-filter: blur(14px) saturate(1.12);
	text-align: center;
}

.loading-card::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px solid rgba(255, 219, 112, 0.15);
	border-radius: 23px;
	pointer-events: none;
}

.game-mark {
	position: absolute;
	top: -45px;
	left: 50%;
	width: 82px;
	height: 82px;
	transform: translateX(-50%);
	filter: drop-shadow(0 8px 15px rgba(4, 28, 22, 0.48));
}

.game-mark__gem {
	position: absolute;
	left: 20px;
	bottom: 3px;
	width: 43px;
	height: 49px;
	border: 3px solid rgba(255, 255, 255, 0.76);
	border-radius: 48% 48% 52% 52%;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 36%),
		linear-gradient(145deg, #6ff2e7, #7d82ff 55%, #e66cd4);
	box-shadow:
		0 0 0 7px rgba(116, 237, 220, 0.16),
		0 0 24px rgba(167, 127, 255, 0.72);
	transform: rotate(45deg);
}

.game-mark__leaf {
	position: absolute;
	z-index: 2;
	top: 3px;
	width: 23px;
	height: 42px;
	border: 3px solid rgba(255, 255, 255, 0.4);
	border-radius: 90% 10% 90% 10%;
	background: linear-gradient(155deg, #bff56b, #35bf69 70%);
}

.game-mark__leaf--left {
	left: 20px;
	transform: rotate(-30deg);
}

.game-mark__leaf--right {
	right: 18px;
	transform: scaleX(-1) rotate(-26deg);
}

.title-lockup {
	margin: 2px 0 15px;
}

.title-kicker {
	display: block;
	margin-bottom: 2px;
	color: #bceccc;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.28em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.title-lockup h1 {
	margin: 0;
	color: var(--ink);
	font-size: clamp(32px, 4.5vw, 50px);
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: 0.08em;
	text-shadow:
		0 3px 0 #8d5c29,
		0 6px 20px rgba(0, 0, 0, 0.42);
}

.title-lockup p {
	margin: 8px 0 0;
	color: var(--ink-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.loading-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 9px;
	color: #efffe6;
	font-size: 13px;
	font-weight: 700;
}

.loading-status strong {
	min-width: 44px;
	color: var(--gold);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.loading-track {
	position: relative;
	height: 18px;
	padding: 4px;
	overflow: hidden;
	border: 1px solid rgba(255, 233, 146, 0.5);
	border-radius: 999px;
	background: rgba(4, 23, 24, 0.82);
	box-shadow:
		inset 0 3px 7px rgba(0, 0, 0, 0.4),
		0 2px 0 rgba(255, 255, 255, 0.08);
}

.loading-bar {
	position: relative;
	width: 0%;
	height: 100%;
	overflow: hidden;
	border-radius: inherit;
	background:
		linear-gradient(90deg, var(--mint-deep), var(--mint) 42%, var(--gold) 76%, #fff3aa);
	box-shadow:
		0 0 14px rgba(89, 238, 169, 0.6),
		inset 0 1px 1px rgba(255, 255, 255, 0.68);
	transition: width 260ms ease-out;
}

.loading-bar::after {
	content: "";
	position: absolute;
	top: -3px;
	right: -2px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #fff9c6;
	box-shadow: 0 0 13px 5px rgba(255, 228, 120, 0.78);
}

.loading-bar__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.72) 48%, transparent 60% 100%);
	transform: translateX(-130%);
	animation: bar-shimmer 1.9s ease-in-out infinite;
}

.loading-detail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 20px;
	margin-top: 9px;
	color: rgba(226, 245, 226, 0.78);
	font-size: 12px;
}

.loading-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 4px rgba(99, 231, 167, 0.15);
	animation: dot-pulse 1.4s ease-in-out infinite;
}

.loading-tip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
	padding-top: 13px;
	border-top: 1px solid rgba(224, 242, 201, 0.12);
	color: rgba(234, 246, 220, 0.72);
	font-size: 11px;
}

.loading-tip__badge {
	flex: 0 0 auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255, 216, 105, 0.15);
	color: var(--gold);
	font-size: 10px;
	font-weight: 800;
}

.loading-error {
	position: relative;
	z-index: 1;
	padding: 2px 4px 4px;
}

.loading-error h2 {
	margin: 0 0 7px;
	color: #ffe5b2;
	font-size: 20px;
}

.loading-error p {
	max-height: 88px;
	margin: 0 auto 14px;
	overflow: auto;
	color: #ffd5cd;
	font-size: 12px;
	line-height: 1.55;
	white-space: pre-wrap;
}

.loading-error button,
.dev-controls button {
	border: 1px solid rgba(255, 239, 179, 0.62);
	border-radius: 999px;
	background: linear-gradient(180deg, #ffe784, #f4a43c);
	box-shadow: 0 6px 16px rgba(51, 25, 4, 0.28);
	color: #513318;
	cursor: pointer;
	font-weight: 900;
}

.loading-error button {
	min-width: 126px;
	padding: 10px 20px;
}

.loading-error button:hover,
.loading-error button:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.loading-screen--error .loading-progress-group,
.loading-screen--error .loading-tip {
	display: none;
}

.loading-screen--error .title-lockup {
	margin-bottom: 11px;
}

.legacy-load-tasks {
	display: none;
}

.loading-sparkles i {
	position: absolute;
	z-index: -1;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #fff9cc;
	box-shadow: 0 0 16px 4px rgba(255, 246, 179, 0.58);
	transform: rotate(45deg);
	animation: sparkle 2.8s ease-in-out infinite;
}

.loading-sparkles i:nth-child(1) { top: 14%; left: 13%; animation-delay: -0.4s; }
.loading-sparkles i:nth-child(2) { top: 24%; right: 17%; animation-delay: -1.6s; }
.loading-sparkles i:nth-child(3) { top: 48%; left: 9%; animation-delay: -2.2s; }
.loading-sparkles i:nth-child(4) { top: 38%; right: 8%; animation-delay: -0.9s; }
.loading-sparkles i:nth-child(5) { top: 11%; right: 38%; animation-delay: -2.5s; }

.buttonarea {
	position: fixed;
	z-index: 30;
	inset: 0;
	min-height: 0;
	pointer-events: none;
}

.fullscreen-button {
	position: absolute;
	right: max(14px, env(safe-area-inset-right));
	bottom: max(14px, env(safe-area-inset-bottom));
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 15px;
	background: rgba(8, 31, 31, 0.62);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
	color: white;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	opacity: 0.58;
	pointer-events: auto;
	backdrop-filter: blur(8px);
	transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible {
	background: rgba(20, 68, 57, 0.9);
	opacity: 1;
	transform: translateY(-2px);
}

.dev-controls {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	left: max(12px, env(safe-area-inset-left));
	display: none;
	gap: 8px;
	pointer-events: auto;
}

.debug-mode .dev-controls {
	display: flex;
}

.dev-controls button {
	padding: 7px 12px;
	font-size: 12px;
}

.logwindow {
	display: none;
	position: fixed;
	z-index: 40;
	right: 12px;
	bottom: 64px;
	width: min(520px, calc(100vw - 24px));
	max-height: 30vh;
	padding: 10px;
	overflow: auto;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.76);
	color: white;
	font: 11px/1.45 Consolas, monospace;
}

.debug-mode .logwindow:not(:empty) {
	display: block;
}

.logwindow div {
	margin-bottom: 3px;
}

@keyframes scene-breathe {
	from { transform: scale(1.015); }
	to { transform: scale(1.045); }
}

@keyframes bar-shimmer {
	0%,
	22% { transform: translateX(-130%); }
	72%,
	100% { transform: translateX(130%); }
}

@keyframes dot-pulse {
	0%,
	100% { opacity: 0.55; transform: scale(0.82); }
	50% { opacity: 1; transform: scale(1.08); }
}

@keyframes sparkle {
	0%,
	100% { opacity: 0.2; transform: rotate(45deg) scale(0.5); }
	48% { opacity: 1; transform: rotate(45deg) scale(1.2); }
}

@keyframes intro-twinkle {
	to { opacity: 0.95; transform: scale(1.35); }
}

@media (max-width: 860px) {
	.intro-wrap {
		padding: 0 16px 86px;
	}

	.intro-section {
		padding: 24px 20px;
	}

	.intro-grid-2,
	.intro-grid-3,
	.intro-flow {
		grid-template-columns: 1fr;
	}

	.intro-step {
		min-height: 0;
	}

	.intro-sticky {
		right: 16px;
		left: 16px;
	}

	.intro-sticky .intro-btn {
		width: 100%;
	}
}

@media (max-width: 700px) {
	.loading-screen {
		padding-right: max(12px, env(safe-area-inset-right));
		padding-bottom: max(14px, env(safe-area-inset-bottom));
		padding-left: max(12px, env(safe-area-inset-left));
	}

	.loading-card {
		width: min(600px, calc(100vw - 24px));
		padding: 20px 20px 17px;
		border-radius: 24px;
	}

	.title-lockup h1 {
		font-size: clamp(29px, 9vw, 42px);
	}

	.title-lockup p {
		font-size: 11px;
	}

	.loading-tip {
		font-size: 10px;
	}
}

@media (max-height: 650px) and (orientation: landscape) {
	.loading-screen {
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}

	.loading-card {
		width: min(640px, calc(100vw - 90px));
		margin-bottom: 0;
		padding: 14px 24px 12px;
		border-radius: 24px;
	}

	.game-mark {
		top: -28px;
		width: 58px;
		height: 58px;
		transform: translateX(-50%) scale(0.72);
	}

	.title-lockup {
		margin: 0 0 8px;
	}

	.title-kicker {
		font-size: 8px;
	}

	.title-lockup h1 {
		font-size: clamp(26px, 6.4vh, 38px);
	}

	.title-lockup p {
		display: none;
	}

	.loading-status {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.loading-track {
		height: 15px;
	}

	.loading-detail {
		min-height: 16px;
		margin-top: 6px;
		font-size: 10px;
	}

	.loading-tip {
		display: none;
	}
}

@media (orientation: portrait) {
	.loading-screen::before {
		background-position: 50% center;
	}

	.loading-card {
		align-self: end;
		margin-bottom: max(5vh, 18px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.intro-screen,
	.intro-bits i,
	.loading-screen::before,
	.loading-sparkles i,
	.loading-bar__shine,
	.loading-dot {
		animation: none;
	}

	.intro-screen,
	.loading-screen,
	.emscripten,
	.loading-bar {
		transition-duration: 1ms;
	}
}
