/* Desktop navigation is unchanged. Phone menu stays in the settings row. */
.game-menu-row {
	display: contents;
}
.game-menu-button {
	display: none;
}
@media (max-width: 980px) {
	#nav .nav-toggle.game-menu-source {
		display: none;
	}
	#word-rally .game-menu-row,
	.game-player.letter-storm .game-menu-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		gap: 8px;
		align-items: start;
		width: 100%;
		min-width: 0;
	}
	#word-rally .game-menu-row {
		margin-top: 20px;
	}
	.game-player.letter-storm .game-menu-row {
		margin-top: 8px;
	}
	#word-rally .game-menu-row details,
	.game-player.letter-storm .settings .game-menu-row .how {
		min-width: 0;
		max-width: 100%;
		margin: 0;
		align-self: center;
	}
	#word-rally .game-menu-row summary,
	.game-player.letter-storm .game-menu-row summary {
		overflow-wrap: normal;
		line-height: 1.3;
	}
	#word-rally .game-menu-button,
	.game-player.letter-storm .game-menu-button {
		display: flex;
		align-items: center;
		justify-content: center;
		position: static;
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		max-height: 44px;
		padding: 0;
		margin: 0;
		border: 0;
		border-radius: var(--radius, 6px);
		background: rgba(232, 232, 232, 0.92);
		color: #555;
		box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
		font-size: 18px;
		line-height: 1;
		cursor: pointer;
		-webkit-user-select: none;
		user-select: none;
		-webkit-touch-callout: none;
		touch-action: manipulation;
	}
	#word-rally .game-menu-button:focus-visible,
	.game-player.letter-storm .game-menu-button:focus-visible {
		outline: 3px solid #168aa1;
		outline-offset: 2px;
	}
	html.phone-play-locked #word-rally .game-menu-button,
	html.phone-play-locked .game-player.letter-storm .game-menu-button {
		display: none;
	}
}
