.mwl-shell {
	--mwl-bg: #f8faf8;
	--mwl-surface: #ffffff;
	--mwl-text: #111714;
	--mwl-muted: #68736d;
	--mwl-border: #d7ddd8;
	--mwl-key: #dde4df;
	--mwl-correct: #538d4e;
	--mwl-present: #c9a227;
	--mwl-absent: #6a6f6b;
	--mwl-focus: #1f7a5a;
	--mwl-shadow: 0 16px 50px rgba(24, 38, 31, 0.12);
	color: var(--mwl-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 auto;
	max-width: 720px;
	padding: 24px 14px 32px;
}

body.mwl-homepage {
	background: #0d100e;
	margin: 0;
}

.mwl-homepage-main {
	align-items: center;
	display: flex;
	min-height: 100svh;
}

.mwl-shell.is-dark {
	--mwl-bg: #101311;
	--mwl-surface: #181d1a;
	--mwl-text: #f5f7f5;
	--mwl-muted: #a8b0aa;
	--mwl-border: #343b36;
	--mwl-key: #333b36;
	--mwl-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
}

.mwl-app {
	background: var(--mwl-bg);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	box-shadow: var(--mwl-shadow);
	min-height: 700px;
	padding: 20px;
}

.mwl-header,
.mwl-actions,
.mwl-status-panel,
.mwl-footer {
	align-items: center;
	display: flex;
	gap: 12px;
}

.mwl-header {
	border-bottom: 1px solid var(--mwl-border);
	justify-content: space-between;
	padding-bottom: 16px;
}

.mwl-kicker {
	color: var(--mwl-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.mwl-header h1 {
	font-size: clamp(1.55rem, 4vw, 2.15rem);
	line-height: 1.05;
	margin: 0;
}

.mwl-actions {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.mwl-select-label {
	color: var(--mwl-muted);
	display: grid;
	font-size: 0.76rem;
	font-weight: 700;
	gap: 4px;
	text-transform: uppercase;
}

.mwl-language {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 6px;
	color: var(--mwl-text);
	font: inherit;
	min-width: 132px;
	padding: 9px 10px;
	text-transform: none;
}

.mwl-icon-button,
.mwl-text-button {
	align-items: center;
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 6px;
	color: var(--mwl-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	min-height: 40px;
	transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.mwl-icon-button {
	aspect-ratio: 1;
	font-size: 1.05rem;
	width: 40px;
}

.mwl-text-button {
	padding: 0 14px;
}

.mwl-icon-button:hover,
.mwl-text-button:hover,
.mwl-key:hover {
	border-color: var(--mwl-focus);
	transform: translateY(-1px);
}

.mwl-status-panel {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 16px 0;
	overflow: hidden;
}

.mwl-status-panel div {
	padding: 12px;
}

.mwl-status-panel div + div {
	border-left: 1px solid var(--mwl-border);
}

.mwl-label {
	color: var(--mwl-muted);
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.mwl-status-panel strong {
	display: block;
	font-size: 1.15rem;
	margin-top: 2px;
}

.mwl-message {
	color: var(--mwl-text);
	font-weight: 800;
	min-height: 28px;
	text-align: center;
}

.mwl-board {
	display: grid;
	gap: 7px;
	grid-template-rows: repeat(6, 1fr);
	margin: 8px auto 22px;
	max-width: 360px;
	width: min(100%, 360px);
}

.mwl-row {
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(5, 1fr);
}

.mwl-cell {
	align-items: center;
	aspect-ratio: 1;
	background: var(--mwl-surface);
	border: 2px solid var(--mwl-border);
	border-radius: 6px;
	color: var(--mwl-text);
	display: inline-flex;
	font-size: clamp(1.5rem, 7vw, 2.15rem);
	font-weight: 900;
	justify-content: center;
	line-height: 1;
	text-transform: uppercase;
}

.mwl-cell.has-letter {
	border-color: #9ca6a0;
}

.mwl-cell.is-correct,
.mwl-cell.is-present,
.mwl-cell.is-absent,
.mwl-key.is-correct,
.mwl-key.is-present,
.mwl-key.is-absent {
	border-color: transparent;
	color: #ffffff;
}

.mwl-cell.is-correct,
.mwl-key.is-correct {
	background: var(--mwl-correct);
}

.mwl-cell.is-present,
.mwl-key.is-present {
	background: var(--mwl-present);
}

.mwl-cell.is-absent,
.mwl-key.is-absent {
	background: var(--mwl-absent);
}

.mwl-keyboard {
	display: grid;
	gap: 7px;
	margin: 0 auto;
	max-width: 590px;
}

.mwl-key-row {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.mwl-key {
	background: var(--mwl-key);
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--mwl-text);
	cursor: pointer;
	flex: 1 1 0;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 900;
	height: 48px;
	max-width: 44px;
	min-width: 0;
	padding: 0 4px;
	text-transform: uppercase;
	transition: transform 140ms ease, border-color 140ms ease;
}

.mwl-key.is-wide {
	flex-basis: 72px;
	max-width: 76px;
}

.mwl-footer {
	justify-content: center;
	margin-top: 18px;
}

.mwl-modal {
	align-items: center;
	background: rgba(5, 9, 7, 0.62);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 99999;
}

.mwl-modal[hidden] {
	display: none;
}

.mwl-modal-card {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	box-shadow: var(--mwl-shadow);
	max-width: 460px;
	padding: 22px;
	position: relative;
	width: min(100%, 460px);
}

.mwl-modal-card h2 {
	margin: 0 0 10px;
}

.mwl-modal-card p,
.mwl-modal-card li {
	color: var(--mwl-muted);
}

.mwl-close {
	background: transparent;
	border: 0;
	color: var(--mwl-text);
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	position: absolute;
	right: 12px;
	top: 10px;
}

.mwl-examples {
	display: flex;
	gap: 8px;
	margin: 16px 0;
}

@keyframes mwl-pop {
	50% {
		transform: scale(1.08);
	}
}

.mwl-cell.has-letter {
	animation: mwl-pop 120ms ease;
}

@media (max-width: 560px) {
	.mwl-shell {
		padding: 0;
	}

	.mwl-app {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
		min-height: 100svh;
		padding: 14px 10px 18px;
	}

	.mwl-header {
		align-items: flex-start;
		gap: 10px;
	}

	.mwl-actions {
		max-width: 190px;
	}

	.mwl-status-panel div {
		padding: 10px 8px;
	}

	.mwl-keyboard {
		gap: 6px;
	}

	.mwl-key-row {
		gap: 4px;
	}

	.mwl-key {
		font-size: 0.74rem;
		height: 44px;
	}
}

/* Polished Wordle Global skin */
.mwl-shell {
	--mwl-bg: #fbfaf4;
	--mwl-surface: #fffdf7;
	--mwl-paper: #f3efe3;
	--mwl-text: #181a17;
	--mwl-muted: #74786f;
	--mwl-border: #d8d4c8;
	--mwl-key: #e2e4dd;
	--mwl-correct: #4f8f52;
	--mwl-present: #c5a14a;
	--mwl-absent: #73776f;
	--mwl-focus: #c15b3a;
	--mwl-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
	box-sizing: border-box;
	max-width: 980px;
	padding: 28px 16px;
	width: 100%;
}

.mwl-shell *,
.mwl-shell *::before,
.mwl-shell *::after {
	box-sizing: border-box;
}

body.mwl-homepage {
	background:
		radial-gradient(circle at 18% 10%, rgba(193, 91, 58, 0.26), transparent 28%),
		radial-gradient(circle at 84% 18%, rgba(79, 143, 82, 0.22), transparent 26%),
		linear-gradient(135deg, #10130f 0%, #1b201a 46%, #080a08 100%);
}

.mwl-homepage-main {
	justify-content: center;
	padding: 22px 0;
}

.mwl-app {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 253, 247, 0.96)),
		var(--mwl-bg);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	box-shadow: var(--mwl-shadow);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 312px;
	grid-template-areas:
		"header header"
		"status status"
		"message message"
		"board side"
		"keyboard keyboard"
		"footer footer";
	gap: 0 28px;
	min-height: 0;
	padding: 24px;
	position: relative;
}

.mwl-app::before {
	background: linear-gradient(90deg, var(--mwl-focus), var(--mwl-correct), var(--mwl-present));
	border-radius: 10px 10px 0 0;
	content: "";
	height: 5px;
	inset: 0 0 auto;
	position: absolute;
}

.mwl-header {
	grid-area: header;
	padding-top: 4px;
}

.mwl-kicker {
	color: var(--mwl-focus);
	font-size: 0.82rem;
}

.mwl-header h1 {
	font-size: clamp(2.1rem, 4.8vw, 4.25rem);
	letter-spacing: 0;
	max-width: 620px;
}

.mwl-actions {
	align-items: flex-end;
}

.mwl-language-control {
	display: grid;
	gap: 6px;
	min-width: 220px;
}

.mwl-select-label {
	color: var(--mwl-muted);
	display: block;
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.mwl-language-trigger {
	align-items: center;
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	color: var(--mwl-text);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 900;
	gap: 10px;
	min-height: 44px;
	padding: 8px 12px;
	text-align: left;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
	width: 100%;
}

.mwl-language-trigger:hover,
.mwl-language-trigger[aria-expanded="true"] {
	border-color: var(--mwl-focus);
	box-shadow: 0 8px 24px rgba(193, 91, 58, 0.16);
	transform: translateY(-1px);
}

.mwl-language-flag,
.mwl-option-flag {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--mwl-border);
	border-radius: 999px;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.6rem;
	font-weight: 900;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.mwl-language-flag:empty::after,
.mwl-option-flag:empty::after {
	content: attr(data-code);
	font-size: 0.58rem;
}

.mwl-language-current {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-language-chev {
	color: var(--mwl-muted);
}

.mwl-icon-button,
.mwl-text-button {
	border-radius: 8px;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

.mwl-status-panel {
	grid-area: status;
	background: rgba(255, 253, 247, 0.86);
	border-radius: 8px;
	margin: 16px 0 22px;
}

.mwl-message {
	grid-area: message;
}

.mwl-board {
	align-self: center;
	grid-area: board;
	margin: 8px auto 20px;
	max-width: 390px;
}

.mwl-board::before {
	color: var(--mwl-muted);
	content: "WORDLE";
	display: block;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.26em;
	margin-bottom: 10px;
	text-align: center;
}

.mwl-cell {
	background: #fffef9;
	border-color: #d4d9d2;
	border-radius: 8px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}

.mwl-keyboard {
	grid-area: keyboard;
	margin-top: 8px;
}

.mwl-key {
	border-radius: 8px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
	height: 50px;
}

.mwl-footer {
	grid-area: footer;
}

.mwl-text-button {
	background: #fffdf7;
	font-size: 1rem;
	min-height: 44px;
}

.mwl-language-popover {
	align-items: center;
	background: rgba(12, 14, 12, 0.66);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 100000;
}

.mwl-language-popover[hidden] {
	display: none;
}

.mwl-language-card {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 10px;
	box-shadow: var(--mwl-shadow);
	max-width: 520px;
	overflow: hidden;
	width: min(100%, 520px);
}

.mwl-language-card-head {
	align-items: center;
	background: linear-gradient(180deg, #fffdf7, #f4efe1);
	border-bottom: 1px solid var(--mwl-border);
	display: flex;
	justify-content: space-between;
	padding: 16px 18px;
	position: relative;
}

.mwl-language-card-head strong {
	display: block;
	font-size: 1.35rem;
	margin-top: 2px;
}

.mwl-language-list {
	max-height: 60vh;
	overflow-y: auto;
	padding: 8px;
	scrollbar-color: var(--mwl-border) transparent;
}

.mwl-language-option {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--mwl-text);
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 10px;
	grid-template-columns: 30px minmax(0, 1fr) auto 18px;
	min-height: 46px;
	padding: 8px 10px;
	text-align: left;
	transition: background 140ms ease, transform 140ms ease;
	width: 100%;
}

.mwl-language-option:hover,
.mwl-language-option.is-active {
	background: var(--mwl-paper);
}

.mwl-language-option:hover {
	transform: translateX(2px);
}

.mwl-option-native {
	font-size: 0.94rem;
	font-weight: 800;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-option-english {
	color: var(--mwl-muted);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.mwl-option-check {
	color: var(--mwl-correct);
	font-size: 0.82rem;
	font-weight: 900;
	text-align: right;
}

.mwl-close {
	border-radius: 8px;
	font-weight: 700;
	height: 38px;
	position: static;
	width: 38px;
}

.mwl-modal-card {
	border-radius: 10px;
}

.mwl-shell.is-dark {
	--mwl-bg: #151814;
	--mwl-surface: #1f241f;
	--mwl-paper: #293026;
	--mwl-text: #f8f4ea;
	--mwl-muted: #b7b2a7;
	--mwl-border: #3a4238;
	--mwl-key: #333b35;
}

.mwl-shell.is-dark .mwl-app {
	background: linear-gradient(180deg, rgba(31, 36, 31, 0.94), rgba(21, 24, 20, 0.98));
	border-color: rgba(255, 255, 255, 0.08);
}

.mwl-shell.is-dark .mwl-cell,
.mwl-shell.is-dark .mwl-text-button,
.mwl-shell.is-dark .mwl-language-trigger,
.mwl-shell.is-dark .mwl-language-card,
.mwl-shell.is-dark .mwl-language-flag,
.mwl-shell.is-dark .mwl-option-flag {
	background: var(--mwl-surface);
}

@media (min-width: 760px) {
	.mwl-app::after {
		align-self: center;
		background:
			linear-gradient(180deg, rgba(79, 143, 82, 0.12), rgba(193, 91, 58, 0.10)),
			var(--mwl-paper);
		border: 1px solid var(--mwl-border);
		border-radius: 10px;
		color: var(--mwl-muted);
		content: "VI · EN · ES · FR · DE · AR · JA · KO · PT · RU · TR · UK · PL · NL · SV · HI · ID · IT";
		display: flex;
		font-size: 0.78rem;
		font-weight: 900;
		grid-area: side;
		letter-spacing: 0;
		line-height: 1.7;
		min-height: 340px;
		padding: 22px;
		text-transform: uppercase;
	}
}

@media (max-width: 760px) {
	.mwl-shell {
		padding: 0;
	}

	.mwl-homepage-main {
		align-items: stretch;
		padding: 0;
	}

	.mwl-app {
		border: 0;
		border-radius: 0;
		display: block;
		min-height: 100svh;
		padding: 16px 10px 18px;
	}

	.mwl-header {
		align-items: flex-start;
	}

	.mwl-actions {
		max-width: none;
	}

	.mwl-language-control {
		min-width: min(54vw, 220px);
	}

	.mwl-board {
		max-width: 350px;
	}

	.mwl-language-option {
		grid-template-columns: 30px minmax(0, 1fr) auto 16px;
	}
}

/* Clean final skin: compact, Wordle-like, and isolated from theme CSS. */
.mwl-shell {
	--mwl-bg: #f7f6f0;
	--mwl-surface: #fffdf8;
	--mwl-paper: #f0ede2;
	--mwl-text: #171917;
	--mwl-muted: #687069;
	--mwl-border: #d8d8d0;
	--mwl-key: #dce3dc;
	--mwl-correct: #538d4e;
	--mwl-present: #c9a227;
	--mwl-absent: #6f746f;
	--mwl-focus: #365f44;
	--mwl-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 auto;
	max-width: 720px;
	padding: 28px 14px;
	width: 100%;
}

body.mwl-homepage {
	background: linear-gradient(135deg, #151915 0%, #263027 50%, #111411 100%);
	margin: 0;
}

.mwl-homepage-main {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 100svh;
	padding: 18px 0;
}

.mwl-app {
	background: var(--mwl-bg);
	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 10px;
	box-shadow: var(--mwl-shadow);
	display: block;
	min-height: 0;
	padding: 20px;
}

.mwl-app::before {
	background: linear-gradient(90deg, var(--mwl-correct), var(--mwl-present));
	border-radius: 10px 10px 0 0;
	content: "";
	display: block;
	height: 4px;
	margin: -20px -20px 16px;
	position: static;
}

.mwl-app::after {
	content: none !important;
	display: none !important;
}

.mwl-header {
	align-items: flex-start;
	border-bottom: 1px solid var(--mwl-border);
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	justify-content: stretch;
	padding: 0 0 14px;
}

.mwl-kicker {
	color: var(--mwl-focus);
	font-size: 0.76rem;
	font-weight: 900;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.mwl-header h1 {
	color: var(--mwl-text);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 900;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}

.mwl-actions {
	align-items: flex-end;
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	justify-content: flex-end;
	max-width: none;
}

.mwl-language-control {
	display: grid;
	gap: 6px;
	min-width: 172px;
}

.mwl-select-label,
.mwl-label {
	color: var(--mwl-muted);
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
}

.mwl-language-trigger,
.mwl-icon-button,
.mwl-text-button {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	color: var(--mwl-text);
	box-shadow: none;
}

.mwl-language-trigger {
	align-items: center;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 900;
	gap: 10px;
	height: 44px;
	padding: 0 12px;
	width: 100%;
}

.mwl-language-trigger:hover,
.mwl-icon-button:hover,
.mwl-text-button:hover,
.mwl-key:hover {
	border-color: var(--mwl-focus);
	transform: none;
}

.mwl-language-flag,
.mwl-option-flag {
	background: #edf3ec;
	border: 1px solid #cdd9cd;
	border-radius: 999px;
	color: var(--mwl-focus);
	font-size: 0.64rem;
	font-weight: 900;
	height: 28px;
	width: 28px;
}

.mwl-language-current {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-icon-button {
	font-size: 1rem;
	height: 42px;
	min-height: 42px;
	width: 42px;
}

.mwl-status-panel {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 14px 0 18px;
	overflow: hidden;
}

.mwl-status-panel div {
	padding: 12px;
}

.mwl-status-panel strong {
	font-size: 1.08rem;
}

.mwl-board {
	display: grid;
	gap: 7px;
	margin: 8px auto 20px;
	max-width: 360px;
	width: min(100%, 360px);
}

.mwl-board::before {
	content: none;
	display: none;
}

.mwl-row {
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(5, 1fr);
}

.mwl-cell {
	background: var(--mwl-surface);
	border: 2px solid var(--mwl-border);
	border-radius: 7px;
	box-shadow: none;
	color: var(--mwl-text);
	font-size: clamp(1.55rem, 7vw, 2.2rem);
}

.mwl-keyboard {
	display: grid;
	gap: 7px;
	margin: 0 auto;
	max-width: 590px;
}

.mwl-key-row {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.mwl-key {
	background: var(--mwl-key);
	border-radius: 7px;
	box-shadow: none;
	height: 46px;
}

.mwl-footer {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 16px;
}

.mwl-text-button {
	font-size: 1rem;
	font-weight: 900;
	min-height: 42px;
	padding: 0 16px;
}

.mwl-language-popover {
	align-items: center;
	background: rgba(9, 12, 10, 0.68);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 16px;
	position: fixed;
	z-index: 100000;
}

.mwl-language-popover[hidden] {
	display: none;
}

.mwl-language-card {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 10px;
	box-shadow: var(--mwl-shadow);
	max-width: 520px;
	overflow: hidden;
	width: min(100%, 520px);
}

.mwl-language-card-head {
	align-items: center;
	background: var(--mwl-bg);
	border-bottom: 1px solid var(--mwl-border);
	display: flex;
	justify-content: space-between;
	padding: 14px 16px;
}

.mwl-language-card-head strong {
	display: block;
	font-size: 1.25rem;
}

.mwl-language-list {
	max-height: 60vh;
	overflow-y: auto;
	padding: 8px;
}

.mwl-language-option {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--mwl-text);
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 10px;
	grid-template-columns: 30px minmax(0, 1fr) auto 18px;
	min-height: 44px;
	padding: 8px 10px;
	text-align: left;
	width: 100%;
}

.mwl-language-option:hover,
.mwl-language-option.is-active {
	background: var(--mwl-paper);
	transform: none;
}

.mwl-option-native {
	font-size: 0.94rem;
	font-weight: 850;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-option-english {
	color: var(--mwl-muted);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.mwl-option-check {
	color: var(--mwl-correct);
	font-size: 0.82rem;
	font-weight: 900;
	text-align: right;
}

.mwl-modal {
	align-items: center;
	background: rgba(9, 12, 10, 0.68);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 16px;
	position: fixed;
	z-index: 99999;
}

.mwl-modal[hidden] {
	display: none;
}

.mwl-modal-card {
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 10px;
	box-shadow: var(--mwl-shadow);
	max-width: 460px;
	padding: 22px;
	position: relative;
	width: min(100%, 460px);
}

.mwl-modal-card > .mwl-close {
	position: absolute;
	right: 12px;
	top: 10px;
}

.mwl-language-card-head > .mwl-close {
	position: static;
}

.mwl-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--mwl-text);
	cursor: pointer;
	display: inline-flex;
	font-size: 1.8rem;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 36px;
}

@media (max-width: 640px) {
	.mwl-shell {
		padding: 0;
	}

	.mwl-homepage-main {
		align-items: stretch;
		padding: 0;
	}

	.mwl-app {
		border: 0;
		border-radius: 0;
		min-height: 100svh;
		padding: 14px 10px 18px;
	}

	.mwl-app::before {
		margin: -14px -10px 14px;
	}

	.mwl-header {
		gap: 12px;
	}

	.mwl-header h1 {
		white-space: normal;
	}

	.mwl-actions {
		gap: 8px;
		flex-wrap: wrap;
	}

	.mwl-language-control {
		min-width: min(52vw, 190px);
	}

	.mwl-status-panel div {
		padding: 10px 8px;
	}

	.mwl-key {
		font-size: 0.75rem;
		height: 43px;
	}
}

/* Compact final pass: less empty space, cleaner game-first composition. */
.mwl-shell {
	--mwl-bg: #f8f7f1;
	--mwl-surface: #fffdf8;
	--mwl-paper: #eeeee6;
	--mwl-text: #151715;
	--mwl-muted: #69716b;
	--mwl-border: #d8d8cf;
	--mwl-key: #dce5dd;
	--mwl-focus: #3f6f4b;
	max-width: 650px;
	padding: 24px 12px;
}

body.mwl-homepage {
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		#172118;
	background-size: 34px 34px;
}

.mwl-app {
	border-radius: 9px;
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
	padding: 18px 20px 20px;
}

.mwl-app::before {
	height: 3px;
	margin: -18px -20px 14px;
}

.mwl-header {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding-bottom: 12px;
}

.mwl-kicker {
	font-size: 0.7rem;
	margin-bottom: 4px;
}

.mwl-header h1 {
	font-size: clamp(1.8rem, 4.6vw, 2.35rem);
	letter-spacing: 0;
	line-height: 0.98;
	white-space: normal;
}

.mwl-actions {
	align-items: end;
	display: grid;
	gap: 8px;
	grid-template-columns: auto auto auto;
}

.mwl-language-control {
	min-width: 190px;
}

.mwl-select-label {
	font-size: 0.66rem;
}

.mwl-language-trigger {
	height: 40px;
	padding: 0 10px;
}

.mwl-language-current {
	font-size: 0.98rem;
}

.mwl-language-flag,
.mwl-option-flag {
	height: 25px;
	width: 25px;
}

.mwl-icon-button {
	height: 40px;
	min-height: 40px;
	width: 40px;
}

.mwl-status-panel {
	margin: 12px 0 18px;
}

.mwl-status-panel div {
	padding: 10px 12px;
}

.mwl-label {
	font-size: 0.68rem;
}

.mwl-status-panel strong {
	font-size: 1rem;
}

.mwl-message {
	min-height: 22px;
}

.mwl-board {
	gap: 6px;
	margin: 8px auto 16px;
	max-width: 320px;
	width: min(100%, 320px);
}

.mwl-row {
	gap: 6px;
}

.mwl-cell {
	border-radius: 6px;
	font-size: clamp(1.35rem, 5.8vw, 1.9rem);
}

.mwl-keyboard {
	gap: 6px;
	max-width: 520px;
}

.mwl-key-row {
	gap: 5px;
}

.mwl-key {
	border-radius: 7px;
	font-size: 0.78rem;
	height: 42px;
	max-width: 39px;
	position: relative;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
}

.mwl-key.is-wide {
	flex-basis: 66px;
	max-width: 68px;
}

.mwl-key.has-variants::after {
	background: currentColor;
	border-radius: 999px;
	bottom: 5px;
	content: "";
	height: 3px;
	left: 50%;
	opacity: 0.34;
	position: absolute;
	transform: translateX(-50%);
	width: 14px;
}

.mwl-accent-popup {
	align-items: center;
	background: var(--mwl-surface);
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
	display: flex;
	gap: 4px;
	max-width: min(340px, calc(100vw - 28px));
	overflow-x: auto;
	padding: 6px;
	position: fixed;
	transform: translateX(-50%);
	user-select: none;
	-webkit-user-select: none;
	z-index: 100002;
}

.mwl-accent-popup::after {
	background: var(--mwl-surface);
	border-bottom: 1px solid var(--mwl-border);
	border-right: 1px solid var(--mwl-border);
	bottom: -5px;
	content: "";
	height: 9px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%) rotate(45deg);
	width: 9px;
}

.mwl-accent-option {
	align-items: center;
	background: var(--mwl-key);
	border: 0;
	border-radius: 6px;
	color: var(--mwl-text);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	min-width: 34px;
	padding: 0 8px;
	position: relative;
	z-index: 1;
}

.mwl-accent-option:hover,
.mwl-accent-option:focus-visible {
	background: var(--mwl-paper);
	outline: 2px solid var(--mwl-focus);
}

.mwl-footer {
	margin-top: 14px;
}

.mwl-text-button {
	font-size: 0.95rem;
	min-height: 38px;
	padding: 0 14px;
}

@media (max-width: 720px) {
	.mwl-shell {
		max-width: 100%;
		padding: 0;
	}

	.mwl-homepage-main {
		align-items: stretch;
	}

	.mwl-app {
		border-radius: 0;
		min-height: 100svh;
		padding: 14px 10px 16px;
	}

	.mwl-app::before {
		margin: -14px -10px 12px;
	}

	.mwl-header {
		grid-template-columns: 1fr;
	}

	.mwl-actions {
		grid-template-columns: 1fr auto auto;
	}

	.mwl-language-control {
		min-width: 0;
	}

	.mwl-board {
		max-width: min(320px, calc(100vw - 42px));
	}

	.mwl-key {
		font-size: 0.72rem;
		height: 40px;
	}
}

.mwl-modes-popover {
	align-items: center;
	background: rgba(9, 12, 10, 0.74);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 100001;
}

.mwl-modes-popover[hidden] {
	display: none;
}

.mwl-modes-card {
	background: #fffdf8;
	border: 1px solid var(--mwl-border);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	color: var(--mwl-text);
	max-height: min(82vh, 760px);
	max-width: 860px;
	overflow: hidden;
	width: min(100%, 860px);
}

.mwl-shell.is-dark .mwl-modes-card {
	background: #171b18;
}

.mwl-modes-card-head {
	align-items: center;
	border-bottom: 1px solid var(--mwl-border);
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 40px;
	padding: 16px 18px;
}

.mwl-modes-card-head h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	grid-column: 2;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
	text-align: center;
}

.mwl-modes-card-head .mwl-close {
	grid-column: 3;
	justify-self: end;
}

.mwl-modes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-height: calc(82vh - 74px);
	overflow-y: auto;
}

.mwl-mode-option {
	align-items: start;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--mwl-border);
	border-right: 1px solid var(--mwl-border);
	color: var(--mwl-text);
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 14px;
	grid-template-columns: 46px minmax(0, 1fr);
	min-height: 126px;
	padding: 24px;
	text-align: left;
}

.mwl-mode-option:nth-child(3n) {
	border-right: 0;
}

.mwl-mode-option:hover,
.mwl-mode-option:focus-visible {
	background: var(--mwl-paper);
	outline: 0;
}

.mwl-mode-icon {
	align-items: center;
	background: var(--mwl-bg);
	border: 1px solid var(--mwl-border);
	border-radius: 2px;
	display: inline-flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
	font-weight: 800;
	height: 44px;
	justify-content: center;
	line-height: 1;
	width: 44px;
}

.mwl-mode-option strong {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 1px 0 6px;
}

.mwl-mode-option small {
	color: var(--mwl-muted);
	display: block;
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.35;
}

.mwl-actions {
	grid-template-columns: auto auto auto auto;
}

@media (max-width: 760px) {
	.mwl-modes-card {
		max-height: 88vh;
	}

	.mwl-modes-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: calc(88vh - 74px);
	}

	.mwl-mode-option,
	.mwl-mode-option:nth-child(3n) {
		border-right: 1px solid var(--mwl-border);
	}

	.mwl-mode-option:nth-child(2n) {
		border-right: 0;
	}
}

@media (max-width: 640px) {
	.mwl-actions {
		grid-template-columns: 1fr auto auto auto;
	}
}

@media (max-width: 520px) {
	.mwl-modes-popover {
		align-items: stretch;
		padding: 10px;
	}

	.mwl-modes-card {
		max-height: none;
		width: 100%;
	}

	.mwl-modes-grid {
		grid-template-columns: 1fr;
		max-height: calc(100svh - 94px);
	}

	.mwl-mode-option,
	.mwl-mode-option:nth-child(2n),
	.mwl-mode-option:nth-child(3n) {
		border-right: 0;
		min-height: 108px;
		padding: 18px;
	}
}

.mwl-help-card {
	background: #181818;
	border: 1px solid #373737;
	border-radius: 0;
	box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
	color: #f2efe6;
	max-width: 720px;
	padding: 58px 58px 56px;
	width: min(100%, 720px);
}

.mwl-help-card > .mwl-close {
	color: #f2efe6;
	right: 18px;
	top: 14px;
}

.mwl-help-card h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.15;
	margin: 0 0 24px;
	text-align: center;
}

.mwl-help-examples {
	display: grid;
	gap: 18px;
	margin: 0 auto 28px;
	width: fit-content;
}

.mwl-help-example-row p {
	color: #9f9f9a;
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.35;
	margin: 7px 0 0;
}

.mwl-help-word {
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(5, 60px);
}

.mwl-help-word .mwl-cell {
	background: transparent;
	border: 2px solid #e5e1d8;
	border-radius: 0;
	color: #f7f2e8;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.3rem;
	font-weight: 900;
	height: 60px;
	text-shadow: none;
	width: 60px;
}

.mwl-help-word .mwl-cell.is-correct {
	background: var(--mwl-correct);
	border-color: var(--mwl-correct);
	color: #ffffff;
}

.mwl-help-word .mwl-cell.is-present {
	background: var(--mwl-present);
	border-color: var(--mwl-present);
	color: #ffffff;
}

.mwl-help-word .mwl-cell.is-absent {
	background: #8c8c8c;
	border-color: #8c8c8c;
	color: #ffffff;
}

.mwl-help-card .is-correct-text {
	color: var(--mwl-correct);
}

.mwl-help-card .is-present-text {
	color: var(--mwl-present);
}

.mwl-help-card .is-absent-text {
	color: #bdbdbd;
}

.mwl-help-body {
	color: #aaa9a3;
	font-size: 0.96rem;
	font-weight: 650;
	line-height: 1.55;
	margin: 4px auto 0;
	max-width: 520px;
}

@media (max-width: 640px) {
	.mwl-help-card {
		padding: 50px 24px 34px;
	}

	.mwl-help-word {
		grid-template-columns: repeat(5, minmax(44px, 1fr));
	}

	.mwl-help-word .mwl-cell {
		font-size: 1.05rem;
		height: clamp(44px, 14vw, 56px);
		width: clamp(44px, 14vw, 56px);
	}
}
