.hc-asteroids-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.68);
	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-asteroids-modal.is-open {
	display: flex;
}

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

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

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

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

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

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

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

.hc-asteroids-hint {
	color: #4b5563;
	font-size: 13px;
	margin: 0;
}

.hc-asteroids-actions {
	display: flex;
	gap: 10px;
}

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

.hc-asteroids-actions button[type="submit"] {
	background: #111827;
	color: #fff;
}

.hc-asteroids-secondary {
	background: #fff;
	color: #111827;
}

.hc-asteroids-error {
	color: #b91c1c;
	font-weight: 700;
	margin: 0;
}

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

.hc-asteroids-scoreboard-header span {
	color: #4b5563;
	font-size: 13px;
}

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

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

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

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

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