.mall99-panel {
	position: relative;
	background:
		radial-gradient(circle at 18% 8%, rgba(255, 135, 66, 0.2), transparent 35%),
		radial-gradient(circle at 82% 4%, rgba(49, 224, 255, 0.22), transparent 42%),
		linear-gradient(180deg, #17112a 0%, #090711 100%);
	border: 1px solid #433766;
	border-radius: 18px;
	padding: 14px;
	color: #f9edff;
	overflow: hidden;
}

.mall99-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(transparent 96%, rgba(255, 255, 255, 0.035) 96%),
		linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.022) 96%);
	background-size: 12px 12px, 12px 12px;
	pointer-events: none;
}

.mall99-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
}

.mall99-logo {
	font-family: 'Trebuchet MS', 'Arial Black', sans-serif;
	font-size: clamp(20px, 3.4vw, 34px);
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-shadow:
		0 0 8px rgba(255, 73, 128, 0.78),
		0 0 24px rgba(45, 233, 255, 0.45);
	color: #fff7d8;
}

.mall99-tagline {
	font-size: 12px;
	color: #9be9ff;
	text-align: right;
	max-width: 260px;
}

.mall99-launch {
	position: relative;
	z-index: 1;
	background: linear-gradient(145deg, rgba(39, 24, 71, 0.94), rgba(14, 15, 42, 0.92));
	border: 1px solid rgba(154, 126, 222, 0.45);
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 10px 24px rgba(6, 5, 11, 0.35);
}

.mall99-launch-copy {
	font-size: 13px;
	line-height: 1.4;
	color: #e2d8ff;
	margin-bottom: 12px;
}

.mall99-launch-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

.mall99-hint {
	font-size: 12px;
	color: #90dfff;
	margin-bottom: 8px;
}

.mall99-status {
	font-size: 12px;
	background: rgba(6, 14, 42, 0.9);
	border: 1px solid rgba(70, 165, 255, 0.45);
	color: #9ed8ff;
	border-radius: 8px;
	padding: 8px;
	min-height: 36px;
}

.mall99-status.warning {
	border-color: rgba(255, 185, 103, 0.65);
	color: #ffe8bf;
}

.mall99-status.danger {
	border-color: rgba(255, 106, 106, 0.7);
	color: #ffd0d0;
}

.mall99-arcade {
	position: relative;
	z-index: 1;
	margin-top: 12px;
	background:
		linear-gradient(180deg, rgba(13, 15, 36, 0.98), rgba(9, 10, 24, 0.96)),
		radial-gradient(circle at 50% 0%, rgba(74, 219, 255, 0.2), transparent 35%);
	border: 1px solid rgba(103, 164, 255, 0.45);
	border-radius: 14px;
	padding: 12px;
}

.mall99-arcade.d-none {
	display: none;
}

.mall99-hud {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

.mall99-hud-item {
	background: rgba(10, 20, 48, 0.9);
	border: 1px solid rgba(124, 171, 255, 0.35);
	border-radius: 10px;
	padding: 7px;
	text-align: center;
}

.mall99-hud-label {
	font-size: 10px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #85b4ff;
}

.mall99-hud-value {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.15;
	color: #f8f2ff;
	word-break: break-word;
}

.mall99-stagebar {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

.mall99-stage-cell {
	font-size: 12px;
	padding: 7px;
	background: rgba(6, 13, 34, 0.88);
	border: 1px solid rgba(93, 160, 255, 0.28);
	border-radius: 8px;
	text-align: center;
	color: #cae5ff;
}

.mall99-canvas-wrap {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(120, 211, 255, 0.35);
	background: #060913;
}

#mall99-canvas {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	background: #050712;
	image-rendering: optimizeSpeed;
	touch-action: none;
}

.mall99-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 14px;
	background: radial-gradient(circle at center, rgba(10, 10, 26, 0.65), rgba(3, 2, 8, 0.82));
	backdrop-filter: blur(2px);
}

.mall99-overlay.d-none {
	display: none;
}

.mall99-overlay-title {
	font-size: 26px;
	font-weight: 900;
	letter-spacing: 0.06em;
	color: #ffd35b;
	text-shadow: 0 0 12px rgba(255, 146, 73, 0.6);
}

.mall99-overlay-copy {
	margin-top: 8px;
	max-width: 440px;
	font-size: 13px;
	color: #e8dcff;
	line-height: 1.5;
}

.mall99-overlay-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.mall99-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.mall99-toolbar .btn,
.mall99-launch-controls .btn,
.mall99-overlay-actions .btn,
.mall99-touch-btn {
	min-height: 48px;
	font-weight: 700;
}

.mall99-touch {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 10px;
}

.mall99-pad {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.mall99-pad .blank {
	visibility: hidden;
}

.mall99-actions {
	display: grid;
	gap: 8px;
}

.mall99-ticker {
	margin-top: 8px;
	min-height: 30px;
	font-size: 12px;
	color: #9ae4ff;
}

.mall99-character-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.mall99-character {
	border: 1px solid rgba(128, 177, 255, 0.35);
	border-radius: 10px;
	padding: 8px;
	background: rgba(14, 20, 45, 0.88);
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.2s ease;
}

.mall99-character.active {
	border-color: rgba(255, 202, 94, 0.95);
	box-shadow: 0 0 18px rgba(255, 186, 72, 0.28);
	transform: translateY(-1px);
}

.mall99-character.locked {
	opacity: 0.55;
	filter: grayscale(0.45);
}

.mall99-character-name {
	font-size: 12px;
	font-weight: 700;
}

.mall99-character-note {
	font-size: 11px;
	color: #b8d5ff;
}

@media (max-width: 900px) {
	.mall99-hud {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mall99-stagebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.mall99-launch-controls {
		grid-template-columns: 1fr;
	}
	.mall99-touch {
		display: grid;
	}
	.mall99-logo {
		font-size: clamp(20px, 6.4vw, 30px);
	}
	.mall99-tagline {
		display: none;
	}
}