.fc-game {
	background:
		radial-gradient(circle at 50% 20%, rgba(20, 133, 92, 0.32), transparent 44%),
		linear-gradient(135deg, #0b503a 0%, #073529 58%, #05271f 100%);
	border-radius: 18px;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	flex-direction: column;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	min-height: 532px;
	overflow: hidden;
	position: relative;
}

.fc-game::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 24px 24px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.fc-toolbar {
	align-items: center;
	background: rgba(3, 24, 19, 0.62);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr auto 1fr;
	padding: 12px 16px;
	position: relative;
	z-index: 10;
}

.fc-toolbar__group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fc-button {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	min-height: 39px;
	padding: 8px 14px;
}

.fc-button:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.34);
	transform: translateY(-1px);
}

.fc-button:disabled {
	cursor: not-allowed;
	opacity: 0.42;
}

.fc-button--primary {
	background: linear-gradient(180deg, #f6d36b, #dca52a);
	border-color: transparent;
	color: #142019;
}

.fc-title {
	text-align: center;
}

.fc-title small {
	color: rgba(255, 255, 255, 0.7);
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.fc-title h2 {
	color: #fff;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1;
	margin: 3px 0 0;
}

.fc-metrics {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.fc-metrics > div {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	min-width: 70px;
	padding: 6px 10px;
	text-align: center;
}

.fc-metrics span {
	color: rgba(255, 255, 255, 0.68);
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.fc-metrics strong {
	color: #f6d36b;
	display: block;
	font-size: 19px;
	line-height: 1.1;
}

.fc-mobile-note {
	background: rgba(246, 211, 107, 0.12);
	color: #f9e59e;
	display: none;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 12px;
	position: relative;
	text-align: center;
	z-index: 4;
}

.fc-board-scroll {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	position: relative;
	z-index: 2;
}

.fc-board {
	box-sizing: border-box;
	min-height: 430px;
	min-width: 730px;
	padding: 16px 18px 22px;
}

.fc-top-row {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(292px, 1fr) auto minmax(292px, 1fr);
	margin-bottom: 18px;
}

.fc-top-group p {
	color: rgba(255, 255, 255, 0.66);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.09em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.fc-top-group--right p {
	text-align: right;
}

.fc-freecells,
.fc-foundations {
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fc-center-badge {
	align-items: center;
	background: rgba(3, 24, 19, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	display: flex;
	font-size: 18px;
	gap: 5px;
	justify-content: center;
	padding: 8px 11px;
}

.fc-center-badge b {
	color: #ff7584;
}

.fc-slot,
.fc-foundation-wrap {
	aspect-ratio: 0.72;
	background: rgba(0, 0, 0, 0.14);
	border: 2px dashed rgba(255, 255, 255, 0.2);
	border-radius: 9px;
	box-sizing: border-box;
	min-height: 83px;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.fc-slot {
	align-items: center;
	color: rgba(255, 255, 255, 0.32);
	cursor: pointer;
	display: flex;
	font-size: 10px;
	font-weight: 900;
	justify-content: center;
	letter-spacing: 0.06em;
}

.fc-slot--foundation {
	font-size: 30px;
}

.fc-slot--foundation[data-suit="H"],
.fc-slot--foundation[data-suit="D"] {
	color: rgba(255, 116, 131, 0.56);
}

.fc-foundation-wrap {
	border-style: solid;
}

.fc-card {
	aspect-ratio: 0.72;
	background: linear-gradient(145deg, #ffffff, #edf0f4);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 9px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
	box-sizing: border-box;
	color: #101318;
	cursor: grab;
	height: auto;
	position: relative;
	touch-action: manipulation;
	user-select: none;
	width: 100%;
}

.fc-card:active {
	cursor: grabbing;
}

.fc-card--red {
	color: #d82f46;
}

.fc-card--compact {
	height: 100%;
	width: 100%;
}

.fc-card.is-selected {
	box-shadow:
		0 0 0 4px #f6d36b,
		0 10px 20px rgba(0, 0, 0, 0.34);
	transform: translateY(-3px);
	z-index: 50;
}

.fc-card.is-dragging {
	opacity: 0.55;
}

.fc-card__corner {
	font-size: clamp(14px, 1.8vw, 22px);
	font-weight: 900;
	left: 7px;
	line-height: 0.82;
	position: absolute;
	top: 7px;
}

.fc-card__corner b,
.fc-card__corner small {
	display: block;
}

.fc-card__corner small {
	font-size: 0.8em;
	margin-top: 5px;
}

.fc-card__corner--bottom {
	bottom: 7px;
	left: auto;
	right: 7px;
	top: auto;
	transform: rotate(180deg);
}

.fc-card__suit {
	font-size: clamp(26px, 4.2vw, 50px);
	left: 50%;
	line-height: 1;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.fc-cascades {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	min-height: 302px;
}

.fc-cascade {
	background: rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.055);
	border-radius: 10px;
	box-sizing: border-box;
	min-height: 290px;
	padding: 4px;
	position: relative;
}

.fc-cascade .fc-card {
	margin-top: -69%;
}

.fc-cascade .fc-card:first-child {
	margin-top: 0;
}

.fc-cascade.is-empty {
	align-items: flex-start;
	border: 2px dashed rgba(255, 255, 255, 0.15);
	display: flex;
	justify-content: center;
}

.fc-empty-column {
	color: rgba(255, 255, 255, 0.23);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-top: 35px;
}

.is-hint-source {
	animation: fcHintSource 700ms ease-in-out infinite alternate;
}

.is-hint-target {
	animation: fcHintTarget 700ms ease-in-out infinite alternate;
}

@keyframes fcHintSource {
	from { box-shadow: 0 0 0 2px rgba(246, 211, 107, 0.62); }
	to { box-shadow: 0 0 0 6px rgba(246, 211, 107, 0.95); }
}

@keyframes fcHintTarget {
	from { border-color: rgba(104, 224, 178, 0.55); }
	to { border-color: rgba(104, 224, 178, 1); }
}

.fc-footer {
	background: rgba(3, 24, 19, 0.64);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 9px 16px 12px;
	position: relative;
	z-index: 5;
}

.fc-footer p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	margin: 0 0 7px;
	text-align: center;
}

.fc-footer p[data-kind="error"] {
	color: #ffb4bd;
}

.fc-footer p[data-kind="success"] {
	color: #9ef1ca;
}

.fc-footer p[data-kind="win"] {
	color: #f9df87;
	font-size: 15px;
	font-weight: 900;
}

.fc-progress {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	height: 5px;
	overflow: hidden;
}

.fc-progress span {
	background: linear-gradient(90deg, #58d7a0, #f6d36b);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 240ms ease;
}

@media (max-width: 930px) {
	.fc-toolbar {
		grid-template-columns: 1fr auto;
	}

	.fc-title {
		display: none;
	}

	.fc-board {
		min-width: 680px;
	}

	.fc-top-row {
		grid-template-columns: 1fr 44px 1fr;
	}

	.fc-center-badge {
		font-size: 14px;
		padding: 7px 5px;
	}
}

@media (max-width: 700px) {
	.fc-game {
		border-radius: 10px;
		min-height: 486px;
	}

	.fc-toolbar {
		gap: 8px;
		padding: 8px;
	}

	.fc-toolbar__group {
		gap: 5px;
	}

	.fc-button {
		font-size: 11px;
		min-height: 34px;
		padding: 6px 10px;
	}

	.fc-metrics {
		gap: 5px;
	}

	.fc-metrics > div {
		min-width: 50px;
		padding: 5px 6px;
	}

	.fc-metrics strong {
		font-size: 16px;
	}

	.fc-mobile-note {
		display: block;
	}

	.fc-board {
		min-width: 660px;
		padding: 11px 10px 18px;
	}

	.fc-top-row {
		gap: 9px;
		margin-bottom: 13px;
	}

	.fc-top-group p {
		display: none;
	}

	.fc-freecells,
	.fc-foundations {
		gap: 4px;
	}

	.fc-cascades {
		gap: 5px;
	}

	.fc-cascade {
		min-height: 278px;
		padding: 3px;
	}

	.fc-card {
		border-radius: 6px;
	}

	.fc-card__corner {
		font-size: 14px;
		left: 4px;
		top: 5px;
	}

	.fc-card__corner--bottom {
		bottom: 5px;
		left: auto;
		right: 4px;
		top: auto;
	}

	.fc-card__suit {
		font-size: 28px;
	}

	.fc-footer {
		padding: 7px 9px 9px;
	}

	.fc-footer p {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-button,
	.fc-card,
	.fc-progress span {
		transition: none;
	}

	.is-hint-source,
	.is-hint-target {
		animation: none;
	}
}
