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

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

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

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

.ing-mft-board {
	background: var(--ing-mft-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-mft-cols), var(--ing-mft-cell-size));
	grid-template-rows: repeat(var(--ing-mft-rows), var(--ing-mft-cell-size));
	margin: 0 auto;
	overflow: hidden;
	padding: 1px;
	width: max-content;
}

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

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

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

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

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

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

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

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

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

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

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

.ing-mft .ing-mft-clue {
	align-items: center;
	appearance: none;
	background: var(--ing-mft-clue);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--ing-mft-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 4px 12px;
	position: relative;
	text-align: center;
	text-transform: none;
	width: 100%;
}

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

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

.ing-mft-clue-text {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	display: -webkit-box;
	font-size: clamp(6.5px, 1.18vw, 9px);
	font-weight: 800;
	hyphens: auto;
	letter-spacing: -0.01em;
	line-height: 1.02;
	max-height: 4.08em;
	overflow: hidden;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

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

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

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

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

.ing-mft-current {
	color: var(--ing-mft-navy);
	font-weight: 650;
}

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

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

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

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

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

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

.ing-mft .ing-mft-button {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid #aab2b9;
	border-radius: 7px;
	box-shadow: none;
	color: var(--ing-mft-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-mft .ing-mft-button:hover,
.ing-mft .ing-mft-button:focus-visible {
	background: #f1f4f6;
	border-color: var(--ing-mft-navy);
	color: var(--ing-mft-navy);
}

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

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

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

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

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

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

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

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

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

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

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

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

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