.ing-mfec,
.ing-mfec * {
	box-sizing: border-box;
}

.ing-mfec {
	--ing-mfec-navy: #161d4f;
	--ing-mfec-blue: #003958;
	--ing-mfec-light-blue: #dfeaf0;
	--ing-mfec-orange: #eea400;
	--ing-mfec-red: #da4640;
	--ing-mfec-green: #009c8f;
	--ing-mfec-text: #20242a;
	--ing-mfec-muted: #606a73;
	--ing-mfec-line: #161d4f;
	--ing-mfec-block: #003958;
	--ing-mfec-clue: #dfeaf0;
	--ing-mfec-active: #fff1c9;
	--ing-mfec-correct: #ddf2ed;
	--ing-mfec-wrong: #fde6e5;
	--ing-mfec-cell-size: 41px;
	--ing-mfec-cols: 17;
	--ing-mfec-rows: 20;
	color: var(--ing-mfec-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
		sans-serif;
	margin: 24px auto;
	max-width: 720px;
	width: 100%;
}

.ing-mfec-game {
	margin: 0;
	padding: 0;
}

.ing-mfec-board-wrap {
	-webkit-overflow-scrolling: touch;
	border-radius: 7px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 1px 0 5px;
	width: 100%;
}

.ing-mfec-board {
	background: var(--ing-mfec-line);
	border: 0;
	border-radius: 5px;
	box-shadow: 0 8px 24px rgba(22, 29, 79, 0.13);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(var(--ing-mfec-cols), var(--ing-mfec-cell-size));
	grid-template-rows: repeat(var(--ing-mfec-rows), var(--ing-mfec-cell-size));
	margin: 0 auto;
	overflow: hidden;
	padding: 1px;
	width: max-content;
}

.ing-mfec-cell {
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.ing-mfec-cell.is-block {
	background: var(--ing-mfec-block);
	background-image: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.045),
		rgba(255, 255, 255, 0) 58%
	);
}

.ing-mfec-cell.is-letter {
	background: #ffffff;
}

.ing-mfec-cell input {
	appearance: none;
	background: #ffffff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--ing-mfec-text);
	font-family: inherit;
	font-size: clamp(18px, 3.4vw, 25px);
	font-weight: 700;
	height: 100%;
	line-height: 1;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-align: center;
	text-transform: uppercase;
	width: 100%;
}

.ing-mfec-cell input:hover {
	background: #f8fafb;
}

.ing-mfec-cell input:focus {
	background: var(--ing-mfec-active);
	box-shadow: inset 0 0 0 3px var(--ing-mfec-orange);
	outline: 0;
}

.ing-mfec-cell.is-active input {
	background: var(--ing-mfec-active);
}

.ing-mfec-cell.is-completed input,
.ing-mfec-cell.is-correct input {
	background: var(--ing-mfec-correct);
	color: #075e55;
}

.ing-mfec-cell.is-wrong input {
	background: var(--ing-mfec-wrong);
	box-shadow: inset 0 0 0 2px var(--ing-mfec-red);
	color: #8a211d;
}

.ing-mfec-cell.is-hinted input {
	background: #dcecf4;
	box-shadow: inset 0 0 0 2px #4f879f;
}

.ing-mfec-cell.is-clue {
	background: var(--ing-mfec-clue);
}

.ing-mfec .ing-mfec-clue {
	align-items: center;
	appearance: none;
	background: var(--ing-mfec-clue);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--ing-mfec-text);
	cursor: pointer;
	display: flex;
	font-family: inherit;
	height: 100%;
	justify-content: center;
	margin: 0;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 3px 3px 11px;
	position: relative;
	text-align: center;
	text-transform: none;
	width: 100%;
}

.ing-mfec .ing-mfec-clue:hover,
.ing-mfec .ing-mfec-clue:focus-visible,
.ing-mfec .ing-mfec-clue[aria-pressed="true"] {
	background: #ffd978;
	color: var(--ing-mfec-navy);
}

.ing-mfec .ing-mfec-clue:focus-visible {
	box-shadow: inset 0 0 0 3px var(--ing-mfec-navy);
	outline: 0;
}

.ing-mfec-clue-text {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	display: -webkit-box;
	font-size: clamp(7px, 1.15vw, 9px);
	font-weight: 750;
	hyphens: auto;
	letter-spacing: -0.015em;
	line-height: 1.06;
	max-height: 3.18em;
	overflow: hidden;
	text-transform: none;
	overflow-wrap: anywhere;
}

.ing-mfec-arrow {
	bottom: 0;
	color: var(--ing-mfec-navy);
	font-size: clamp(13px, 2.2vw, 18px);
	font-weight: 900;
	line-height: 1;
	position: absolute;
	right: 3px;
}

.ing-mfec-cell.is-double-clue {
	display: grid;
	grid-template-rows: repeat(2, minmax(0, 1fr));
}

.ing-mfec-cell.is-double-clue .ing-mfec-clue:first-child {
	border-bottom: 1px solid var(--ing-mfec-line);
}

.ing-mfec-cell.is-double-clue .ing-mfec-clue {
	padding: 1px 9px 1px 2px;
}

.ing-mfec-cell.is-double-clue .ing-mfec-clue-text {
	-webkit-line-clamp: 2;
	font-size: 6.4px;
	letter-spacing: -0.025em;
	line-height: 1;
	max-height: 2em;
}

.ing-mfec-cell.is-double-clue .ing-mfec-arrow {
	bottom: 1px;
	font-size: 9px;
	right: 1px;
}

.ing-mfec-current,
.ing-mfec-feedback {
	color: var(--ing-mfec-muted);
	font-size: 14px;
	line-height: 1.45;
	margin: 12px auto;
	min-height: 21px;
	text-align: center;
}

.ing-mfec-current {
	background: #f3f7f9;
	border-left: 4px solid var(--ing-mfec-orange);
	border-radius: 6px;
	color: var(--ing-mfec-navy);
	font-weight: 650;
	max-width: 660px;
	min-height: 42px;
	padding: 10px 12px;
}

.ing-mfec-status {
	align-items: center;
	display: flex;
	gap: 12px;
	margin: 12px auto;
	max-width: 660px;
}

.ing-mfec-timer {
	background: var(--ing-mfec-navy);
	border-radius: 999px;
	color: #ffffff;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	font-weight: 750;
	padding: 6px 11px;
	white-space: nowrap;
}

.ing-mfec-progress {
	background: #e3e8ec;
	border-radius: 999px;
	flex: 1 1 180px;
	height: 9px;
	overflow: hidden;
}

.ing-mfec-progress-bar {
	background: linear-gradient(90deg, var(--ing-mfec-orange), var(--ing-mfec-red));
	display: block;
	height: 100%;
	transition: width 180ms ease;
	width: 0;
}

.ing-mfec-progress-text {
	color: var(--ing-mfec-muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.ing-mfec-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 12px auto;
}

.ing-mfec .ing-mfec-button {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid #aab2b9;
	border-radius: 7px;
	box-shadow: none;
	color: var(--ing-mfec-text);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	margin: 0;
	min-height: 40px;
	padding: 9px 14px;
	text-decoration: none;
	text-transform: none;
}

.ing-mfec .ing-mfec-button:hover,
.ing-mfec .ing-mfec-button:focus-visible {
	background: #f1f4f6;
	border-color: var(--ing-mfec-navy);
	color: var(--ing-mfec-navy);
}

.ing-mfec .ing-mfec-button:focus-visible {
	outline: 3px solid rgba(238, 164, 0, 0.45);
	outline-offset: 2px;
}

.ing-mfec .ing-mfec-button-primary {
	background: var(--ing-mfec-navy);
	border-color: var(--ing-mfec-navy);
	color: #ffffff;
}

.ing-mfec .ing-mfec-button-primary:hover,
.ing-mfec .ing-mfec-button-primary:focus-visible {
	background: var(--ing-mfec-blue);
	border-color: var(--ing-mfec-blue);
	color: #ffffff;
}

.ing-mfec .ing-mfec-button-quiet {
	background: transparent;
	border-color: transparent;
	color: var(--ing-mfec-muted);
}

.ing-mfec .ing-mfec-button:disabled {
	cursor: default;
	opacity: 0.58;
}

@media (max-width: 640px) {
	.ing-mfec {
		--ing-mfec-cell-size: 40px;
		margin: 16px auto;
	}

	.ing-mfec-board-wrap {
		border: 0;
		padding: 1px 0 5px;
	}

	.ing-mfec-current,
	.ing-mfec-feedback {
		font-size: 13px;
		padding: 0 6px;
	}

	.ing-mfec-status {
		flex-wrap: wrap;
		gap: 8px;
		padding: 0 6px;
	}

	.ing-mfec-progress {
		order: 3;
		flex-basis: 100%;
	}

	.ing-mfec-controls {
		padding: 0 4px;
	}

	.ing-mfec .ing-mfec-button {
		flex: 1 1 calc(50% - 8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ing-mfec-progress-bar {
		transition: none;
	}
}
