.word-thirds-title-word,
.word-thirds-title-thirds {
	font-weight: 900;
}

.word-thirds-title-word {
	color: #30a46c;
}

.word-thirds-title-thirds {
	color: #f0b429;
	margin-left: .12em;
}

.word-thirds-logo {
	background: linear-gradient(135deg, #30a46c 0%, #2563eb 100%);
}

.game-panel {
	align-items: stretch;
	justify-items: stretch;
	min-height: 0;
	text-align: left;
}

.word-thirds-mount,
.word-thirds-game {
	width: 100%;
}

.word-thirds-game {
	display: grid;
	gap: 14px;
	justify-items: center;
}

.word-thirds-progress,
.word-thirds-message {
	min-height: 24px;
	color: var(--muted);
	font-weight: 800;
	text-align: center;
}

.word-thirds-word {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 7px;
	width: min(100%, 430px);
}

.word-thirds-letter {
	aspect-ratio: 1;
	border: 2px solid var(--line);
	border-radius: 7px;
	display: grid;
	place-items: center;
	background: var(--panel-2);
	color: var(--ink);
	font-size: clamp(1.5rem, 9vw, 2.25rem);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.word-thirds-letter:empty::after {
	content: "";
	width: 18%;
	height: 18%;
	border-radius: 50%;
	background: rgba(98, 109, 122, .35);
}

.word-thirds-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: min(100%, 430px);
	touch-action: manipulation;
}

.word-thirds-tile {
	min-height: 76px;
	border: 2px solid #1d4ed8;
	border-radius: 8px;
	background: #f8fafc;
	color: #172033;
	box-shadow: 0 6px 0 #1d4ed8;
	font-size: clamp(1.45rem, 8vw, 2rem);
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.word-thirds-tile:nth-child(2) {
	border-color: #169b62;
	box-shadow: 0 6px 0 #169b62;
}

.word-thirds-tile:nth-child(3) {
	border-color: #c28700;
	box-shadow: 0 6px 0 #c28700;
}

.word-thirds-tile:active {
	transform: translateY(4px);
	box-shadow: 0 2px 0 currentColor;
}

.word-thirds-tile:disabled {
	opacity: .36;
	transform: translateY(4px);
	box-shadow: 0 2px 0 currentColor;
	cursor: default;
}

.word-thirds-tiles.shake {
	animation: word-thirds-shake .28s linear;
}

.word-thirds-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: min(100%, 430px);
}

.word-thirds-actions .ghost-btn,
.word-thirds-side-btn {
	border-radius: 8px;
	white-space: nowrap;
}

.word-thirds-found {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: min(100%, 430px);
	min-height: 38px;
}

.word-thirds-found-word,
.word-thirds-found-empty {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--panel-2);
	padding: 7px 10px;
	color: var(--muted);
	font-size: .82rem;
	font-weight: 850;
}

.word-thirds-found-word {
	color: var(--ink);
}

.word-thirds-empty {
	display: grid;
	gap: 8px;
	justify-items: center;
	padding: 28px 14px;
	text-align: center;
}

.word-thirds-footer {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: .9rem;
	font-weight: 750;
}

.word-thirds-footer a {
	color: inherit;
	text-decoration: none;
}

.word-thirds-footer a:hover {
	color: var(--ink);
	text-decoration: underline;
}

@keyframes word-thirds-shake {
	0%, 100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-8px);
	}
	75% {
		transform: translateX(8px);
	}
}

@media (max-width: 560px) {
	.word-thirds-word,
	.word-thirds-tiles {
		gap: 6px;
	}

	.word-thirds-tile {
		min-height: 64px;
	}
}
