.augsup-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.augsup-header {
	text-align: center;
	margin-bottom: 20px;
}

.augsup-header h2 {
	margin: 0 0 5px 0;
	font-size: 28px;
	color: #2c3e50;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.augsup-subtitle {
	margin: 0;
	color: #7f8c8d;
	font-size: 14px;
}

.augsup-game-layout {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

.augsup-main-stage {
	flex: 0 0 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.augsup-canvas-container {
	position: relative;
	width: 400px;
	height: 560px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	background: #87ceeb;
}

#augsup-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.augsup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.augsup-overlay-content {
	text-align: center;
	color: #ffffff;
	padding: 20px;
	max-width: 320px;
}

.augsup-avatar-preview {
	width: 80px;
	height: 80px;
	margin: 0 auto 15px auto;
	border-radius: 50%;
	border: 4px solid #38bdf8;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.augsup-avatar-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.augsup-overlay-content h3 {
	margin: 0 0 10px 0;
	font-size: 24px;

}

.augsup-overlay-content p {
	font-size: 13px;
	color: #94a3b8;
	margin-bottom: 20px;
}

.augsup-overlay-content kbd {
	background: #334155;
	color: #f8fafc;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	border: 1px solid #475569;
}

.augsup-btn {
	padding: 10px 20px;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.1s ease, background 0.2s ease;
}

.augsup-btn.primary {
	background: linear-gradient(135deg, #0284c7, #0369a1);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
	width: 100%;
	font-size: 16px;
}

.augsup-btn.primary:hover {
	background: linear-gradient(135deg, #0369a1, #075985);
	transform: translateY(-1px);
}

.augsup-score-board {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin: 15px 0;
}

.score-box {
	background: rgba(255,255,255,0.08);
	padding: 10px 15px;
	border-radius: 8px;
	flex: 1;
	border: 1px solid rgba(255,255,255,0.1);
}

.score-label {
	display: block;
	font-size: 11px;
	color: #94a3b8;
	text-transform: uppercase;
}

.score-num {
	display: block;
	font-size: 20px;
	font-weight: bold;
	color: #38bdf8;
	margin-top: 2px;
}

.augsup-new-record {
	background: rgba(34, 197, 94, 0.2);
	color: #4ade80;
	border: 1px solid rgba(34, 197, 94, 0.4);
	padding: 8px;
	border-radius: 6px;
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 15px;
}

.augsup-touch-controls {
	display: flex;
	gap: 10px;
	width: 400px;
	margin-top: 10px;
}

.touch-btn {
	flex: 1;
	padding: 14px;
	font-size: 16px;
	font-weight: bold;
	background: #e2e8f0;
	color: #334155;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.touch-btn:active {
	background: #cbd5e1;
	transform: scale(0.98);
}

.augsup-controls-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 400px;
	margin-top: 10px;
	padding: 8px 12px;
	background: #f1f5f9;
	border-radius: 8px;
}

.stat-pill {
	font-size: 13px;
	color: #475569;
}

.btn-small {
	background: #cbd5e1;
	color: #1e293b;
	padding: 4px 8px;
	font-size: 12px;
}

.augsup-sidebar {
	flex: 1;
	min-width: 260px;
	max-width: 320px;
}

.augsup-card {
	background: #ffffff;
	border-radius: 10px;
	padding: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	border: 1px solid #e2e8f0;
}

.augsup-card h3 {
	margin: 0 0 12px 0;
	font-size: 16px;
	color: #1e293b;
}

.augsup-top-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.augsup-top-list li {
	display: flex;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #f1f5f9;
	font-size: 13px;
}

.augsup-top-list li:last-child {
	border-bottom: none;
}

.top-rank {
	width: 24px;
	color: #94a3b8;
	font-weight: bold;
}

.top-user {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.top-score {
	color: #0284c7;
	font-weight: bold;
}

.empty-msg {
	color: #94a3b8;
	font-style: italic;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
	.augsup-header h2 { color: #f8fafc; }
	.augsup-subtitle { color: #94a3b8; }
	.augsup-controls-bar { background: #1e293b; }
	.stat-pill { color: #cbd5e1; }
	.btn-small { background: #334155; color: #f8fafc; }
	.augsup-card { background: #1e293b; border-color: #334155; }
	.augsup-card h3 { color: #f8fafc; }
	.augsup-top-list li { border-bottom-color: #334155; }
	.touch-btn { background: #334155; color: #f8fafc; }
	.touch-btn:active { background: #475569; }
}
