:root {
	--tutorial-gold: #f5c45b;
	--tutorial-ink: #3a190d;
	--tutorial-red: #9f2e20;
	--tutorial-cream: #fff2cc;
}

body[data-game-tutorial="feast"],
body[data-game-tutorial="dodging"],
body[data-game-tutorial="candy"] {
	min-width: 100vw;
	min-height: 100vh;
}

body[data-game-tutorial="feast"]::before,
body[data-game-tutorial="dodging"]::before,
body[data-game-tutorial="candy"]::before,
body[data-game-tutorial="feast"]::after,
body[data-game-tutorial="dodging"]::after,
body[data-game-tutorial="candy"]::after {
	content: "";
	position: fixed;
	inset: -32px;
	z-index: 0;
	pointer-events: none;
}

body[data-game-tutorial="feast"]::before {
	background: url("../images/background-sheet0.png") center / cover no-repeat;
}

body[data-game-tutorial="dodging"]::before {
	background: url("../images/background-sheet0.png") center / cover no-repeat;
}

body[data-game-tutorial="candy"]::before {
	background: url("../images/background-sheet0.png") center / cover no-repeat;
}

body[data-game-tutorial="feast"]::before,
body[data-game-tutorial="dodging"]::before,
body[data-game-tutorial="candy"]::before {
	filter: blur(22px) saturate(0.82);
	transform: scale(1.08);
	opacity: 0.58;
}

body[data-game-tutorial="feast"]::after,
body[data-game-tutorial="dodging"]::after,
body[data-game-tutorial="candy"]::after {
	inset: 0;
	background:
		linear-gradient(90deg, rgba(13, 4, 3, 0.7), transparent 34% 66%, rgba(13, 4, 3, 0.7)),
		radial-gradient(circle at center, transparent 28%, rgba(13, 4, 3, 0.42));
}

body[data-game-tutorial="feast"] #c2canvasdiv,
body[data-game-tutorial="dodging"] #c2canvasdiv,
body[data-game-tutorial="candy"] #c2canvasdiv {
	z-index: 1;
}

@media (min-aspect-ratio: 4 / 3) {
	body[data-game-tutorial="feast"] #c2canvas,
	body[data-game-tutorial="dodging"] #c2canvas,
	body[data-game-tutorial="candy"] #c2canvas {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
		filter: drop-shadow(0 0 28px rgba(255, 191, 91, 0.18));
	}
}

.game-tutorial-mask {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: grid;
	place-items: center;
	padding: 20px;
	background:
		radial-gradient(circle at 50% 18%, rgba(255, 216, 112, 0.23), transparent 34%),
		rgba(22, 8, 7, 0.82);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 180ms ease, visibility 0s linear 180ms;
	font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
	box-sizing: border-box;
}

.game-tutorial-mask.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 180ms ease, visibility 0s;
}

.game-tutorial-card {
	position: relative;
	width: min(88vw, 460px);
	max-height: min(84vh, 760px);
	overflow: auto;
	padding: 22px 20px 18px;
	color: var(--tutorial-ink);
	text-align: center;
	border: 3px solid #e2ad48;
	border-radius: 24px;
	background:
		linear-gradient(rgba(255, 246, 216, 0.96), rgba(244, 216, 157, 0.98)),
		repeating-linear-gradient(45deg, transparent 0 9px, rgba(154, 71, 36, 0.06) 9px 11px);
	box-shadow:
		0 18px 50px rgba(0, 0, 0, 0.5),
		inset 0 0 0 5px rgba(123, 39, 22, 0.18);
	box-sizing: border-box;
	transform: translateY(14px) scale(0.97);
	transition: transform 220ms cubic-bezier(.2, .9, .25, 1.15);
}

body[data-game-tutorial="candy"] .game-tutorial-card {
	max-height: 90vh;
}

.game-tutorial-mask.is-visible .game-tutorial-card {
	transform: translateY(0) scale(1);
}

.game-tutorial-card::before,
.game-tutorial-card::after {
	content: "◆";
	position: absolute;
	top: 16px;
	color: var(--tutorial-red);
	font-size: 14px;
}

.game-tutorial-card::before { left: 18px; }
.game-tutorial-card::after { right: 18px; }

.game-tutorial-title {
	margin: 0 24px 13px;
	color: #7c2419;
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: clamp(23px, 6.5vw, 32px);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 0 #fff5c9;
}

.game-tutorial-demo {
	position: relative;
	height: 150px;
	margin: 0 auto 14px;
	overflow: hidden;
	border: 2px solid rgba(130, 53, 27, 0.32);
	border-radius: 18px;
	background:
		radial-gradient(circle at 50% 120%, rgba(206, 64, 35, 0.42), transparent 48%),
		linear-gradient(160deg, #4f1f18, #8f3924);
	box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.24);
}

.game-tutorial-demo.has-image {
	height: min(34vh, 220px);
	background: #5b211b;
}

.game-tutorial-demo-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.demo-piece {
	position: absolute;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 3px solid rgba(255, 242, 187, 0.82);
	border-radius: 50%;
	background: radial-gradient(circle at 38% 30%, #fff2a8, #df8438 67%, #8f361f);
	box-shadow: 0 6px 0 rgba(62, 13, 9, 0.38);
	font-size: 30px;
	animation: tutorial-piece-pulse 1.8s ease-in-out infinite;
}

.demo-piece:nth-child(1) { left: 14%; top: 18px; }
.demo-piece:nth-child(2) { left: 42%; top: 70px; animation-delay: -0.5s; }
.demo-piece:nth-child(3) { right: 12%; top: 24px; animation-delay: -1s; }

.demo-gesture {
	position: absolute;
	left: 18%;
	top: 105px;
	width: 52%;
	height: 4px;
	border-radius: 5px;
	background: linear-gradient(90deg, transparent, #ffe48a 18% 82%, transparent);
	box-shadow: 0 0 10px #ffc64c;
	transform: rotate(-17deg);
	transform-origin: left center;
}

.demo-gesture::after {
	content: "☝";
	position: absolute;
	right: -12px;
	top: -25px;
	color: #fff7da;
	font-size: 34px;
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5));
	animation: tutorial-hand 1.8s ease-in-out infinite;
}

.game-tutorial-list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.game-tutorial-list li {
	position: relative;
	margin: 9px 0;
	padding: 10px 12px 10px 45px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.48);
	font-size: clamp(15px, 4vw, 19px);
	font-weight: 700;
	line-height: 1.55;
}

.game-tutorial-list li::before {
	content: attr(data-step);
	position: absolute;
	left: 10px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	color: #fff4c8;
	background: #a53322;
	transform: translateY(-50%);
	font-size: 14px;
}

.game-tutorial-confirm,
.game-tutorial-trigger {
	border: 0;
	color: #fff4c8;
	background:
		linear-gradient(#bd4630, #7e2018);
	box-shadow:
		inset 0 2px 0 rgba(255, 239, 168, 0.38),
		0 5px 0 #4d150f,
		0 8px 16px rgba(60, 15, 10, 0.28);
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-weight: 900;
	letter-spacing: 0.1em;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.game-tutorial-confirm {
	min-width: 150px;
	margin-top: 9px;
	padding: 11px 26px;
	border: 2px solid #eec268;
	border-radius: 999px;
	font-size: 20px;
}

.game-tutorial-trigger {
	position: fixed;
	right: max(14px, env(safe-area-inset-right));
	top: max(14px, env(safe-area-inset-top));
	z-index: 2147483645;
	padding: 9px 14px;
	border: 2px solid #efc66e;
	border-radius: 999px;
	font-size: 16px;
}

.game-tutorial-trigger.is-canvas-anchored,
.game-runtime-pause.is-canvas-anchored,
.feast-game-exit.is-canvas-anchored {
	transition:
		left 120ms ease,
		top 120ms ease,
		transform 80ms ease,
		box-shadow 80ms ease;
}

.game-runtime-pause,
.feast-game-exit {
	position: fixed;
	left: max(14px, env(safe-area-inset-left));
	top: max(14px, env(safe-area-inset-top));
	z-index: 2147483645;
	display: none;
	min-width: 74px;
	padding: 9px 14px;
	border: 2px solid #efc66e;
	border-radius: 999px;
	color: #fff4c8;
	background: linear-gradient(#bd4630, #7e2018);
	box-shadow: inset 0 2px 0 rgba(255, 239, 168, 0.38), 0 5px 0 #4d150f;
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-align: center;
	cursor: pointer;
	touch-action: manipulation;
}

.feast-game-exit {
	left: auto;
	right: max(14px, env(safe-area-inset-right));
}

.game-runtime-pause.is-visible,
.feast-game-exit.is-visible {
	display: block;
}

.game-runtime-pause:active,
.feast-game-exit:active {
	transform: translateY(3px) scale(0.95);
	filter: brightness(1.16);
	box-shadow: inset 0 2px 0 rgba(255, 239, 168, 0.25), 0 2px 0 #4d150f;
}

.feast-game-exit.is-tapped {
	animation: feast-plaque-tap 180ms ease-out;
}

.feast-hud-labels {
	position: fixed;
	z-index: 2147483642;
	display: none !important;
	grid-template-columns: repeat(3, 1fr);
	color: #ffe6a0;
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: clamp(11px, 1.55vw, 14px);
	font-weight: 900;
	letter-spacing: 0.12em;
	text-align: center;
	text-shadow: 0 2px 0 #57170f, 0 0 4px rgba(255, 205, 85, 0.35);
	pointer-events: none;
}

.feast-hud-labels.is-visible {
	display: none !important;
}

.feast-hud-labels span {
	position: relative;
	justify-self: center;
	box-sizing: border-box;
	min-width: clamp(48px, 12vw, 68px);
	padding: 3px 9px 4px;
	border: 1px solid #d8a63f;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	background:
		linear-gradient(180deg, rgba(105, 32, 20, 0.98), rgba(55, 16, 13, 0.98));
	box-shadow:
		0 3px 5px rgba(24, 5, 3, 0.48),
		inset 1px 0 0 rgba(255, 222, 128, 0.18),
		inset -1px 0 0 rgba(255, 222, 128, 0.18),
		inset 0 -2px 0 rgba(42, 8, 7, 0.55);
}

.feast-hud-labels span::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #ffd66b, transparent);
}

.feast-top-hud {
	position: fixed;
	z-index: 2147483643;
	display: none;
	grid-template-columns: 1fr 1.18fr 1fr;
	gap: clamp(5px, 1.3vw, 9px);
	box-sizing: border-box;
	padding: 0 3px;
	pointer-events: none;
	transform: translateX(-50%);
}

.feast-top-hud.is-visible {
	display: grid;
}

.feast-top-hud > div {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: clamp(42px, 7.2vh, 52px);
	padding: 3px 4px 4px;
	border: 1.5px solid #c78d3c;
	border-radius: 0 0 9px 9px;
	color: #ffe7a0;
	background:
		linear-gradient(180deg, rgba(48, 27, 54, 0.98) 0 54%, rgba(92, 29, 19, 0.98) 54% 100%);
	box-shadow:
		0 4px 8px rgba(20, 4, 3, 0.5),
		inset 0 -2px 0 rgba(43, 8, 8, 0.72),
		inset 0 0 13px rgba(255, 172, 52, 0.08);
	font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
	text-align: center;
}

.feast-top-hud > div::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 19px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 211, 103, 0.72), transparent);
}

.feast-top-hud span {
	order: 2;
	margin-top: 1px;
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: clamp(9px, 2.3vw, 12px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.14em;
	text-shadow: 0 2px 0 #4e130e;
}

.feast-top-hud strong {
	order: 1;
	color: #ffd98a;
	font-size: clamp(18px, 4.8vw, 27px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 0 #6a2116, 0 0 7px rgba(255, 193, 65, 0.3);
}

.feast-next-ball {
	position: fixed;
	z-index: 2147483643;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 5px 8px 6px;
	border: 2px solid #e2b652;
	border-radius: 14px;
	color: #ffe6a0;
	background: linear-gradient(180deg, rgba(111, 37, 21, 0.94), rgba(52, 15, 12, 0.96));
	box-shadow: 0 5px 12px rgba(20, 4, 2, 0.42), inset 0 0 9px rgba(255, 181, 55, 0.16);
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: clamp(11px, 2.8vw, 14px);
	font-weight: 900;
	line-height: 1;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.feast-next-ball.is-visible {
	display: flex;
}

.feast-next-ball canvas {
	width: clamp(36px, 10vw, 50px);
	height: clamp(36px, 10vw, 50px);
	filter: drop-shadow(0 3px 3px rgba(25, 5, 3, 0.72));
}

.feast-current-ball {
	position: fixed;
	z-index: 2147483642;
	display: none;
	width: clamp(42px, 11.8vw, 58px);
	height: clamp(42px, 11.8vw, 58px);
	pointer-events: none;
	transform: translate(-50%, -50%);
	filter:
		drop-shadow(0 4px 4px rgba(28, 5, 3, 0.76))
		drop-shadow(0 0 5px rgba(255, 211, 96, 0.38));
}

.feast-current-ball.is-visible {
	display: block;
	animation: feast-current-ball-idle 1.45s ease-in-out infinite;
}

@keyframes feast-current-ball-idle {
	0%,
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		transform: translate(-50%, -54%) scale(1.035);
	}
}

.feast-aim-overlay {
	position: fixed;
	z-index: 2147483641;
	display: none;
	touch-action: none;
	-ms-touch-action: none;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.feast-aim-overlay.is-active {
	display: block;
	pointer-events: auto;
}

.feast-score-feedback {
	position: fixed;
	left: 50%;
	top: max(112px, 15vh);
	z-index: 2147483643;
	padding: 9px 18px;
	border: 2px solid rgba(255, 220, 116, 0.92);
	border-radius: 999px;
	color: #fff3b5;
	background: linear-gradient(180deg, rgba(134, 48, 22, 0.96), rgba(70, 20, 13, 0.96));
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42), inset 0 0 12px rgba(255, 183, 55, 0.2);
	font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
	font-size: clamp(17px, 4vw, 25px);
	font-weight: 900;
	letter-spacing: 0.06em;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -12px) scale(0.92);
	transition: opacity 160ms ease, transform 180ms cubic-bezier(0.2, 1.35, 0.45, 1), visibility 0s linear 160ms;
	white-space: nowrap;
}

.feast-score-feedback.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) scale(1);
	transition: opacity 160ms ease, transform 180ms cubic-bezier(0.2, 1.35, 0.45, 1), visibility 0s;
}

.feast-score-feedback.is-impact {
	animation: feast-score-impact 320ms cubic-bezier(0.18, 1.45, 0.4, 1);
}

.feast-score-particle {
	--particle-x: 0px;
	--particle-y: 0px;
	position: fixed;
	z-index: 2147483642;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffe56f;
	box-shadow: 0 0 8px #ff9c22, 0 0 14px rgba(255, 228, 103, 0.88);
	pointer-events: none;
	transform: translate(-50%, -50%);
	animation: feast-score-particle 680ms ease-out forwards;
}

.feast-live-score {
	position: fixed;
	z-index: 2147483643;
	display: none;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 116px;
	padding: 7px 13px 8px;
	border: 2px solid #f1c45e;
	border-radius: 999px;
	color: #fff1aa;
	background:
		linear-gradient(180deg, rgba(125, 45, 24, 0.96), rgba(57, 18, 13, 0.98));
	box-shadow:
		0 5px 12px rgba(18, 5, 2, 0.45),
		inset 0 0 0 2px rgba(100, 28, 17, 0.76),
		inset 0 8px 14px rgba(255, 155, 49, 0.12);
	font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
	line-height: 1;
	pointer-events: none;
	transform: translateX(-50%);
}

.feast-live-score.is-visible {
	display: flex;
}

.feast-live-score-label {
	font-size: clamp(13px, 3.3vw, 18px);
	font-weight: 800;
}

.feast-live-score-value {
	min-width: 2ch;
	color: #ffe079;
	font-size: clamp(21px, 5.4vw, 30px);
	font-weight: 1000;
	text-align: center;
	text-shadow: 0 2px 0 #6b1c12, 0 0 7px rgba(255, 190, 43, 0.52);
}

.feast-gameover-score-panel {
	position: fixed;
	z-index: 2147483642;
	display: none;
	box-sizing: border-box;
	padding: 10px 12px 12px;
	color: #fff2b0;
	text-align: center;
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	pointer-events: none;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 4px 3px rgba(40, 8, 4, 0.8));
}

.feast-gameover-score-panel.is-visible {
	display: block;
	animation: feast-score-arrive 260ms cubic-bezier(0.18, 1.25, 0.42, 1) both;
}

.feast-gameover-current {
	color: #ffe48a;
	font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
	font-size: clamp(29px, 7.6vw, 52px);
	font-weight: 1000;
	line-height: 1.12;
	letter-spacing: 0.015em;
	-webkit-text-stroke: 2px rgba(91, 24, 15, 0.98);
	text-shadow:
		0 3px 0 #6f1d12,
		0 5px 7px rgba(31, 5, 2, 0.78),
		0 0 12px rgba(255, 205, 69, 0.78);
	white-space: nowrap;
}

.feast-gameover-best {
	display: inline-block;
	margin-top: 16px;
	padding: 5px 16px 6px;
	border: 1px solid rgba(255, 220, 116, 0.86);
	border-radius: 999px;
	color: #ffe5a0;
	background: rgba(83, 24, 15, 0.86);
	box-shadow: inset 0 0 10px rgba(255, 177, 51, 0.18);
	font-size: clamp(17px, 4.5vw, 28px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

@keyframes feast-score-arrive {
	from {
		opacity: 0;
		transform: translate(-50%, -46%) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes feast-score-impact {
	0% {
		transform: translate(-50%, -12px) scale(0.86);
	}
	58% {
		transform: translate(-50%, 2px) scale(1.1);
	}
	100% {
		transform: translate(-50%, 0) scale(1);
	}
}

@keyframes feast-score-particle {
	0% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(0.55);
	}
	100% {
		opacity: 0;
		transform:
			translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y)))
			scale(0.05);
	}
}

.game-pause-badge {
	position: fixed;
	left: 50%;
	top: max(88px, 12vh);
	z-index: 2147483644;
	padding: 10px 22px;
	border: 2px solid rgba(244, 195, 88, 0.88);
	border-radius: 999px;
	color: #fff0b5;
	background: rgba(68, 20, 14, 0.9);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.12em;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.game-pause-badge.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}

.feast-settings-button,
.feast-exit-button {
	position: fixed;
	z-index: 2147483644;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0 12px 3px;
	border: 0;
	filter: drop-shadow(0 4px 5px rgba(35, 9, 4, 0.46));
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: 0 !important;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-indent: 0.16em;
	text-shadow: none;
	cursor: pointer;
	touch-action: manipulation;
}

.feast-settings-button {
	color: transparent;
	background: url("../images/btnsettings-hd.png") center / 100% 100% no-repeat;
}

.feast-exit-button {
	color: transparent;
	background: url("../images/btnexit-sheet0.png") center / 100% 100% no-repeat;
}

.feast-settings-button.is-visible,
.feast-exit-button.is-visible {
	display: flex;
}

.feast-settings-button:active,
.feast-exit-button:active {
	filter: brightness(1.12) drop-shadow(0 2px 3px rgba(35, 9, 4, 0.42));
	transform: translateY(2px);
}

.feast-settings-button.is-tapped,
.feast-exit-button.is-tapped {
	animation: feast-plaque-tap 180ms ease-out;
}

.feast-audio-mask {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 7, 4, 0.72);
	backdrop-filter: blur(5px);
}

.feast-audio-mask.is-visible {
	display: flex;
}

.feast-audio-panel {
	position: relative;
	width: min(350px, calc(100vw - 36px));
	padding: 25px 24px 22px;
	border: 3px solid #d8993e;
	border-radius: 22px;
	color: #fce9b4;
	background:
		linear-gradient(145deg, rgba(120, 42, 24, 0.98), rgba(57, 19, 12, 0.99));
	box-shadow:
		inset 0 0 0 2px rgba(255, 229, 157, 0.18),
		inset 0 -16px 30px rgba(39, 8, 5, 0.28),
		0 20px 48px rgba(0, 0, 0, 0.56);
	font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.feast-audio-title {
	margin: 0 0 23px;
	color: #ffe5a0;
	font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-align: center;
	text-indent: 0.18em;
	text-shadow: 0 3px 3px #4a100a;
}

.feast-audio-row {
	margin: 16px 0;
}

.feast-audio-row label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 9px;
	color: #ffe9af;
	font-size: 14px;
	font-weight: 800;
}

.feast-audio-value {
	min-width: 48px;
	color: #ffd36f;
	text-align: right;
}

.feast-audio-slider {
	width: 100%;
	height: 8px;
	margin: 0;
	border-radius: 999px;
	outline: none;
	accent-color: #e4a33e;
	cursor: pointer;
}

.feast-audio-row,
.feast-audio-row label,
.feast-audio-slider {
	transition: color 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.feast-audio-row.is-disabled label,
.feast-audio-row.is-disabled .feast-audio-value {
	color: #92877d;
	text-shadow: none;
}

.feast-audio-slider:disabled {
	accent-color: #77716c;
	cursor: not-allowed;
	filter: grayscale(1);
	opacity: 0.5;
}

.feast-audio-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
	margin-top: 24px;
}

.feast-audio-action {
	min-height: 43px;
	border: 2px solid #e1ae55;
	border-radius: 12px;
	color: #ffe8ab;
	background: linear-gradient(#b5422c, #7d2018);
	box-shadow: inset 0 2px rgba(255, 234, 166, 0.2), 0 4px 0 #4b130d;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
}

.feast-audio-action.is-muted {
	color: #fff;
	background: linear-gradient(#6f301f, #40150f);
}

.feast-audio-action:active {
	transform: translateY(3px);
	box-shadow: inset 0 2px rgba(255, 234, 166, 0.13), 0 1px 0 #4b130d;
}

.game-tutorial-confirm:active,
.game-tutorial-trigger:active {
	transform: translateY(3px);
	box-shadow: inset 0 2px 0 rgba(255, 239, 168, 0.22), 0 2px 0 #4d150f;
}

@keyframes tutorial-piece-pulse {
	0%, 100% { transform: scale(1); filter: brightness(1); }
	50% { transform: scale(1.08); filter: brightness(1.17); }
}

@keyframes feast-plaque-tap {
	0% {
		transform: scale(1);
		filter: brightness(1);
	}

	45% {
		transform: translateY(3px) scale(0.93);
		filter: brightness(1.2);
	}

	100% {
		transform: scale(1);
		filter: brightness(1);
	}
}

@keyframes tutorial-hand {
	0%, 100% { transform: translate(0, 0) rotate(6deg); }
	50% { transform: translate(-92px, -4px) rotate(-8deg); }
}

@media (max-height: 650px) {
	.game-tutorial-card { padding-top: 16px; }
	.game-tutorial-demo { height: 112px; }
	.game-tutorial-list li { margin: 6px 0; padding-top: 7px; padding-bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
	.game-tutorial-mask,
	.game-tutorial-card,
	.demo-piece,
	.demo-gesture::after {
		animation: none !important;
		transition: none !important;
	}
}
