.mpb-wrapper {
	max-width: 820px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Roboto, sans-serif;
	background: linear-gradient(180deg, #1a0f2e 0%, #0c0818 100%);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 200, 80, 0.15);
	color: #ffe9c7;
	box-sizing: border-box;
}

.mpb-wrapper * {
	box-sizing: border-box;
}

.mpb-hidden {
	display: none !important;
}

.mpb-hud {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 2px 6px 10px;
	flex-wrap: wrap;
}

.mpb-title {
	font-size: 15px;
	font-weight: 800;
	color: #ffcf5c;
	text-shadow: 0 0 8px rgba(255, 207, 92, 0.4);
}

.mpb-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	white-space: nowrap;
}

.mpb-stats b {
	color: #ff6ac1;
	font-size: 15px;
	margin-left: 4px;
	text-shadow: 0 0 6px rgba(255, 106, 193, 0.5);
}

.mpb-mute-btn {
	background: rgba(255, 207, 92, 0.08);
	border: 1px solid rgba(255, 207, 92, 0.35);
	border-radius: 999px;
	color: #ffe9c7;
	font-size: 13px;
	padding: 3px 9px;
	cursor: pointer;
	line-height: 1;
}

.mpb-mute-btn:hover {
	background: rgba(255, 207, 92, 0.18);
}

.mpb-canvas-holder {
	position: relative;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 0%, #241436 0%, #0a0712 75%);
	border: 3px solid #3a2452;
	box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.mpb-canvas-holder canvas {
	display: block;
	width: 100%;
	height: auto;
	touch-action: none;
	cursor: pointer;
}

.mpb-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 6, 18, 0.92);
	text-align: center;
	padding: 20px;
	z-index: 2;
}

.mpb-overlay.mpb-hidden {
	display: none;
}

.mpb-overlay-inner {
	max-height: 100%;
	overflow-y: auto;
	width: 100%;
	max-width: 340px;
}

.mpb-overlay-inner h3 {
	margin: 0 0 8px;
	font-size: 20px;
	color: #ffcf5c;
	text-shadow: 0 0 10px rgba(255, 207, 92, 0.5);
}

.mpb-overlay-inner p {
	margin: 6px 0;
	font-size: 13px;
	line-height: 1.7;
	color: #d9c9f0;
}

.mpb-overlay-sub {
	color: #a793c9 !important;
	font-size: 12px !important;
}

.mpb-btn {
	margin-top: 12px;
	padding: 10px 26px;
	font-size: 14px;
	font-weight: 800;
	font-family: inherit;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff6ac1, #ffcf5c);
	color: #241436;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(255, 106, 193, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mpb-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(255, 106, 193, 0.45);
}

.mpb-btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	color: #ffe9c7;
	box-shadow: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.mpb-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

.mpb-home-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.mpb-help {
	text-align: center;
	font-size: 11.5px;
	color: #a793c9;
	margin: 10px 0 2px;
}

.mpb-launch-meter {
	position: absolute;
	right: 6px;
	bottom: 60px;
	width: 14px;
	height: 160px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 207, 92, 0.4);
	border-radius: 8px;
	overflow: hidden;
	z-index: 1;
}

.mpb-launch-meter-fill {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0%;
	background: linear-gradient(0deg, #ff6ac1, #ffcf5c);
}

/* 랭킹 화면 */
.mpb-lb-list {
	max-height: 260px;
	overflow-y: auto;
	margin-bottom: 8px;
}

.mpb-lb-loading,
.mpb-lb-empty {
	font-size: 13px;
	color: #a793c9;
	text-align: center;
	padding: 20px 0;
}

.mpb-lb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.mpb-lb-table th,
.mpb-lb-table td {
	padding: 7px 8px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mpb-lb-table th {
	color: #a793c9;
	font-weight: 700;
	font-size: 12px;
}

.mpb-lb-table td:nth-child(2) {
	text-align: left;
	color: #ffcf5c;
	font-weight: 700;
}

/* 게임오버 */
.mpb-newbest {
	font-size: 14px;
	font-weight: 800;
	color: #ff6ac1;
	margin: 0 0 4px;
	animation: mpb-pulse 0.7s ease infinite;
}

@keyframes mpb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

.mpb-nick-row {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 12px;
}

.mpb-nick-input {
	padding: 9px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: #ffe9c7;
	font-size: 14px;
	font-family: inherit;
	min-width: 170px;
}

.mpb-nick-input:focus {
	outline: none;
	border-color: #ffcf5c;
}

.mpb-save-msg {
	min-height: 18px;
	font-size: 13px;
	margin: 8px 0 0;
	color: #7dffb3;
}
