body {
	background: #f7fbf8;
	line-height: 1.45;
}

.abcgo {
	box-sizing: border-box;
	width: min(100% - 2rem, 760px);
	margin: 0 auto;
	padding: 1rem 0 2rem;
	text-align: center;
}

.abcgo h1 {
	margin: .25rem 0 .75rem;
}

.intro {
	max-width: 680px;
	margin: 0 auto 1rem;
	font-size: 1rem;
}

.abcgo-logo {
	display: block;
	max-width: min(100%, 360px);
	height: auto;
	margin: 1rem auto;
}

.secondary-logo {
	max-width: min(70%, 260px);
}

.game {
	max-width: 620px;
	margin: 1.25rem auto;
	padding: 1rem;
	border: 1px solid #9aa69e;
	border-radius: .65rem;
	background: #fff;
	box-shadow: 0 .2rem .65rem rgb(0 0 0 / 8%);
}

.duration-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .65rem;
	margin-bottom: 1rem;
}

.duration-row label {
	font-weight: 600;
}

.duration-row select {
	min-height: 44px;
	padding: .35rem .55rem;
	border: 1px solid #68736c;
	border-radius: .35rem;
	background: #fff;
	font: inherit;
}

.letter-row,
.counter-row {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: .55rem;
	margin: .8rem 0;
}

[hidden] {
	display: none !important;
}

.letter,
.counter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 1.6em;
	min-height: 1.35em;
	padding: .05em .2em;
	border: 2px solid #313a34;
	border-radius: .3rem;
	background: #fff;
	font-size: clamp(2.6rem, 9vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
}

.letter-button,
.big-button {
	min-width: 44px;
	min-height: 44px;
	padding: .45rem .7rem;
	border: 1px solid #313a34;
	border-radius: .35rem;
	background: #ffe66b;
	color: #111;
	font: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
}

.toggle-button {
	background: #dce9df;
}

.big-button {
	min-width: 6rem;
	background: #e4e8e5;
}

.go-button {
	background: #ffbd4a;
}

.letter-button:hover,
.big-button:hover {
	filter: brightness(.95);
}

.letter-button:focus-visible,
.big-button:focus-visible,
.duration-row select:focus-visible,
.page-links a:focus-visible,
.contact a:focus-visible {
	outline: 3px solid #1769aa;
	outline-offset: 2px;
}

.counter.expired {
	border-color: #a40000;
	background: #ffe3e3;
	color: #8b0000;
}

.help {
	max-width: 680px;
	margin: 1.5rem auto 0;
	text-align: left;
}

.help h2 {
	text-align: center;
}

.help li {
	margin-bottom: .55rem;
}

.page-links,
.contact {
	margin: 1rem 0 0;
}

@media (max-width: 520px) {
	.abcgo {
		width: min(100% - 1rem, 760px);
	}

	.game {
		padding: .75rem .45rem;
	}

	.letter-row,
	.counter-row {
		gap: .3rem;
	}

	.letter-button,
	.big-button {
		padding: .4rem .55rem;
	}

	.big-button {
		min-width: 4.8rem;
	}
}
