/* Screen Modals */
.screen-modal {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 50;
	background: rgba(7, 9, 19, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1.25rem;
}

.modal-card {
	background: #0f1629;
	border: 2px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem 1.6rem;
	max-width: 520px;
	max-height: 92vh;
	overflow-y: auto;
	width: 100%;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.game-title {
	font-size: 2.1rem;
	font-weight: 900;
	color: #fff;
	margin-bottom: 0.3rem;
	text-transform: uppercase;
}

.game-title span {
	color: var(--cyan);
	text-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
}

.modal-subtitle {
	color: #94a3b8;
	font-size: 0.92rem;
	margin-bottom: 1.4rem;
	line-height: 1.4;
}

/* Pause Screen */
#screen-pause {
	background: rgba(7, 9, 19, 0.55);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 60;
}

.pause-card {
	max-width: 360px;
	padding: 2.2rem 1.8rem;
	border: 2px solid var(--cyan);
	box-shadow: 0 0 35px rgba(0, 240, 255, 0.3), 0 10px 40px rgba(0, 0, 0, 0.9);
}

.pause-title {
	font-size: 2.6rem;
	letter-spacing: 3px;
	margin-bottom: 1.6rem;
	color: #ffffff;
	text-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

/* Form Controls */
.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-bottom: 1.25rem;
	text-align: left;
}

label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--cyan);
	text-transform: uppercase;
}

input[type="text"] {
	background: #18233c;
	border: 1px solid #334155;
	color: #fff;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	font-size: 1.05rem;
	outline: none;
}

input[type="text"]:focus {
	border-color: var(--cyan);
}

.btn-action {
	width: 100%;
	background: var(--cyan);
	color: #050b14;
	border: none;
	font-size: 1.05rem;
	font-weight: 800;
	padding: 0.9rem;
	border-radius: 10px;
	cursor: pointer;
	text-transform: uppercase;
	box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
	touch-action: manipulation;
}

.btn-action:hover {
	background: #38f4ff;
}

/* Loading Spinners */
.spinner {
	width: 44px;
	height: 44px;
	border: 4px solid #1e2942;
	border-top-color: var(--cyan);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: 1.5rem auto;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}