.hc-arcade-modal {
	align-items: center;
	background: rgba(3, 7, 18, 0.72);
	bottom: 0;
	display: none;
	font-family: Arial, sans-serif;
	justify-content: center;
	left: 0;
	padding: 20px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.hc-arcade-modal.is-open {
	display: flex;
}

.hc-arcade-dialog {
	background: #ffffff;
	border: 1px solid #111827;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
	color: #111827;
	max-height: min(720px, 90vh);
	max-width: 760px;
	overflow: auto;
	padding: 24px;
	position: relative;
	width: min(100%, 760px);
}

.hc-arcade-close {
	background: transparent;
	border: 0;
	color: #111827;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 12px;
}

.hc-arcade-dialog h2 {
	font-size: 24px;
	line-height: 1.2;
	margin: 0 34px 18px 0;
}

.hc-arcade-games {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.hc-arcade-games button {
	background: #f8fafc;
	border: 1px solid #9ca3af;
	border-radius: 6px;
	color: #111827;
	cursor: pointer;
	display: grid;
	gap: 6px;
	min-height: 96px;
	padding: 16px;
	text-align: left;
}

.hc-arcade-games button:hover,
.hc-arcade-games button:focus {
	background: #eef2ff;
	border-color: #4f46e5;
}

.hc-arcade-games strong {
	font-size: 18px;
}

.hc-arcade-games span,
.hc-arcade-hint,
.hc-arcade-scoreboard-header span {
	color: #4b5563;
	font-size: 13px;
}

.hc-arcade-score {
	font-size: 18px;
	margin: 0 0 18px;
}

.hc-arcade-form {
	display: grid;
	gap: 14px;
}

.hc-arcade-form label {
	display: grid;
	font-weight: 700;
	gap: 6px;
}

.hc-arcade-form input {
	border: 1px solid #9ca3af;
	border-radius: 4px;
	font-size: 16px;
	min-height: 40px;
	padding: 8px 10px;
}

.hc-arcade-hint,
.hc-arcade-error {
	margin: 0;
}

.hc-arcade-error {
	color: #b91c1c;
	font-weight: 700;
}

.hc-arcade-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.hc-arcade-actions button {
	border: 1px solid #111827;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	min-height: 38px;
	padding: 8px 14px;
}

.hc-arcade-actions button[type="submit"],
.hc-arcade-actions [data-open-launcher] {
	background: #111827;
	color: #ffffff;
}

.hc-arcade-secondary {
	background: #ffffff;
	color: #111827;
}

.hc-arcade-scoreboard-header {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.hc-arcade-table-wrap {
	max-height: 460px;
	overflow: auto;
}

.hc-arcade-scoreboard {
	border-collapse: collapse;
	width: 100%;
}

.hc-arcade-scoreboard th,
.hc-arcade-scoreboard td {
	border-bottom: 1px solid #e5e7eb;
	padding: 10px 8px;
	text-align: left;
}

.hc-arcade-scoreboard th {
	background: #f9fafb;
	font-weight: 700;
	position: sticky;
	top: 0;
}

.hc-arcade-scoreboard .is-player-top-score td {
	background: #fff7cc;
	font-weight: 700;
}

.hc-arcade-game {
	background: #070b16;
	bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99999;
}

.hc-arcade-canvas {
	display: block;
	height: 100%;
	width: 100%;
}

.hc-arcade-hud {
	color: #ffffff;
	display: flex;
	font: 700 18px/1.2 Arial, sans-serif;
	justify-content: space-between;
	left: 18px;
	pointer-events: none;
	position: fixed;
	right: 18px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
	top: 14px;
	z-index: 100000;
}
