/* 게임 모아라 자체 제작 게임 공통 스타일 */
@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");
:root {
	--bg: #f4f5f7;
	--card: #ffffff;
	--ink: #15171c;
	--sub: #5b616e;
	--line: #dfe2e8;
	--accent: #ffd23f;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	height: 100%;
}
body {
	background: var(--bg);
	color: var(--ink);
	font-family: "Wanted Sans Variable", "Wanted Sans", system-ui, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}
.bar {
	width: 100%;
	max-width: 480px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
}
.bar a {
	color: var(--sub);
	text-decoration: none;
	font-size: 14px;
	white-space: nowrap;
}
.bar h1 {
	font-size: 18px;
	margin: 0;
	flex: 1;
	text-align: center;
}
.bar .score {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	min-width: 64px;
	text-align: right;
	font-size: 14px;
}
.stage {
	width: 100%;
	max-width: 480px;
	padding: 0 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
canvas {
	width: 100%;
	flex: 1;
	min-height: 0;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 14px;
	touch-action: none;
	display: block;
}
.help {
	color: var(--sub);
	font-size: 13px;
	text-align: center;
	margin: 10px 0 0;
}
.btn {
	font: inherit;
	font-weight: 700;
	background: var(--accent);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 10px;
	padding: 10px 18px;
	cursor: pointer;
}
.btn:active {
	transform: translate(1px, 1px);
}
.panel {
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 14px;
	padding: 16px;
}
.center {
	text-align: center;
}

/* 3D 게임 화면 */
.view {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
}
.view canvas {
	flex: 1;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.hud-score {
	position: absolute;
	top: 14px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 44px;
	font-weight: 800;
	pointer-events: none;
	text-shadow: 0 2px 0 #fff;
	font-variant-numeric: tabular-nums;
}
.hud-msg {
	position: absolute;
	left: 50%;
	top: 66%;
	transform: translate(-50%, -50%);
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 14px;
	padding: 16px 22px;
	text-align: center;
	font-weight: 700;
	white-space: pre-line;
	pointer-events: none;
	min-width: 200px;
	box-shadow: 4px 4px 0 var(--ink);
}
.hud-msg[hidden] {
	display: none;
}
