/* These slots affect status text only, never tiles or play-field artwork. */
#match-game .stable-counter,
#word-rally .stable-counter,
.letter-storm .stable-counter {
	display: inline-grid;
	grid-template-columns: max-content minmax(0, 1fr);
	align-items: center;
	gap: 0.25em;
	width: min(100%, var(--counter-width, 100%));
	min-width: 0;
	box-sizing: border-box;
	white-space: nowrap;
}
#match-game .stable-value,
#word-rally .stable-value,
.letter-storm .stable-value {
	display: block;
	min-width: 0;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	line-height: var(--value-line, 1.2);
	height: var(--value-line, auto);
	box-sizing: border-box;
}
#match-game .stable-moves {
	text-align: center;
}
#match-game .stable-time,
#word-rally .stable-time,
.letter-storm .stable-time {
	justify-self: end;
	text-align: right;
}
#match-game .stable-score,
#match-game .stable-pairs,
#word-rally .stable-score,
.letter-storm .stable-score {
	text-align: left;
}
#word-rally .rally-hud {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
	grid-template-rows: 44px;
}
#word-rally .stable-target {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 40px;
	line-height: 20px;
	text-align: center;
	overflow: hidden;
	overflow-wrap: normal;
}
#word-rally.phone-play-active .rally-hud {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	grid-template-rows: 44px 24px;
}
#word-rally.phone-play-active .stable-target {
	height: 24px;
	line-height: 24px;
	white-space: nowrap;
}
#word-rally.phone-play-active .stable-counter,
#content .letter-storm.phone-play-active .stable-counter {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}
#content .letter-storm .stable-countdown {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	width: min(100%, var(--counter-width, 100%));
	justify-self: center;
	gap: 6px;
}
#content .letter-storm #numberphoon-icon {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	max-width: 100%;
}
#content .letter-storm #attack-countdown {
	text-align: left;
}
@media (max-width: 340px) {
	#match-game .stable-counter {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
}
