.go_scratch_page, .go_scratch_admin {
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: 24px 16px max(24px, env(safe-area-inset-bottom));
}
.go_scratch_page { text-align: center; }
.go_scratch, .go_scratch * { box-sizing: border-box; }
.go_scratch { width: 100%; max-width: 480px; margin: 16px auto; }
.go_scratch_stage {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 20px;
	background: #1c2430;
	isolation: isolate;
}
.go_scratch_stage > img, .go_scratch_stage > canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}
.go_scratch_stage > canvas { touch-action: none; cursor: crosshair; user-select: none; }
.go_scratch_stage > canvas:focus-visible { outline: 3px solid #e7bc78; outline-offset: -4px; }
.go_scratch [hidden], .go_scratch_stage > img[hidden] { display: none !important; }
.go_scratch progress { width: 100%; height: 10px; margin-top: 12px; accent-color: #b57b2b; }
.go_scratch_status { min-height: 2.8em; font-size: 14px; line-height: 1.5; }
.go_scratch button, .go_scratch_admin button, .go_scratch_next {
	display: inline-block;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #8c785b;
	border-radius: 24px;
	background: #f6eddf;
	color: #192430;
	font: inherit;
	cursor: pointer;
}
.go_scratch_panel { display: grid; gap: 16px; margin: 24px 0; padding: 20px; border: 1px solid #85858566; border-radius: 16px; }
.go_scratch_panel label { display: grid; gap: 6px; }
.go_scratch_panel label:has(input[type=checkbox]) { display: flex; align-items: center; }
.go_scratch_panel input:not([type=checkbox]), .go_scratch_panel select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; font: inherit; }
.go_scratch_previews { display: flex; gap: 16px; }
.go_scratch_previews figure { margin: 0; width: 50%; }
.go_scratch_previews img { width: 100%; height: 200px; object-fit: contain; background: #1c2430; }
.go_media_intro .go_scratch { position: relative; z-index: 1; max-width: min(480px, 100%); }
.go_media_intro .go_scratch_stage { display: block; padding: 0; }
.go_media_intro .go_scratch_status { position: static; padding: 8px; }
.go_media_intro.go_scratch_intro { display: block; overflow-y: auto; }
.go_media_intro.go_scratch_intro > img[hidden] { display: none; }
.go_scratch_intro .go_scratch { max-width: min(420px, 100%, calc(65dvh * var(--go-scratch-ratio, 0.6667))); margin: 0 auto 16px; }

.go_scratch_intro .go_scratch > progress, .go_scratch_intro .go_scratch > button { display: none; }
.go_scratch_intro .go_scratch_status { font-size: 12px; }
