.sga-game-root {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	background: #ffffff;
	color: #111827;
	max-width: 760px;
}

.sga-game-shell {
	display: flex;
	flex-direction: column;
}

.sga-card-wrap {
	overflow: hidden;
	flex: 1;
}

.sga-title {
	margin: 0 0 8px;
	font-size: 1.4rem;
	line-height: 1.3;
}

.sga-subtitle {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 0.95rem;
}

.sga-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.sga-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 180px;
	flex: 1;
}

.sga-field input,
.sga-field select {
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
}

.sga-btn {
	border: none;
	background: #111827;
	color: #ffffff;
	padding: 10px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.sga-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sga-btn-secondary {
	background: #e5e7eb;
	color: #111827;
}

.sga-btn-level {
	background: #f3f4f6;
	color: #111827;
}

.sga-btn-level.is-active {
	background: #111827;
	color: #ffffff;
}

.sga-btn-level.is-locked {
	opacity: 0.45;
}

.sga-btn-level.is-done {
	border: 1px solid #10b981;
}

.sga-progress-wrap {
	margin: 16px 0 4px;
}

.sga-progress-label {
	font-size: 0.9rem;
	color: #374151;
	margin-bottom: 6px;
}

.sga-progress-track {
	height: 10px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

.sga-progress-fill {
	height: 100%;
	background: #111827;
	transition: width 160ms ease;
}

.sga-card {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 36px 28px;
	margin: 0;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sga-card--exit {
	animation: sgaCardExit 130ms ease-in forwards;
}

.sga-card--enter {
	animation: sgaCardEnter 130ms ease-out forwards;
}

@keyframes sgaCardExit {
	from {
		transform: translateX(0) rotate(0deg);
		opacity: 1;
	}
	to {
		transform: translateX(-115%) rotate(-4deg);
		opacity: 0;
	}
}

@keyframes sgaCardEnter {
	from {
		transform: translateX(115%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.sga-task-text {
	font-size: 1.75rem;
	line-height: 1.5;
	margin: 0;
}

.sga-task-meta {
	font-size: 0.85rem;
	color: #6b7280;
	margin-top: 8px;
}

.sga-notice {
	padding: 10px 12px;
	border-radius: 8px;
	margin: 8px 0 12px;
}

.sga-notice-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.sga-notice-info {
	background: #eff6ff;
	color: #1e3a8a;
	border: 1px solid #bfdbfe;
}

.sga-modal {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 9999;
}

.sga-modal-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 16px;
	max-width: 420px;
	width: 100%;
	border: 1px solid #e5e7eb;
}

.sga-modal-card h3 {
	margin-top: 0;
}

.sga-hidden {
	display: none !important;
}
