@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap");
:root {
	font-family: "DM Sans", sans-serif;
	color: #233d31;
	background: #f8f5e9;
	font-synthesis: none;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: #f8f5e9;
}
button, select {
	font: inherit;
}
button {
	cursor: pointer;
}
button:focus-visible, select:focus-visible {
	outline: 3px solid #e38d55;
	outline-offset: 3px;
}
[hidden] {
	display: none !important;
}
.topbar {
	height: 82px;
	background: #fffef8;
	border-bottom: 1px solid #e7e9d9;
	padding: 0 max(6vw, calc((100vw - 1220px) / 2));
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	text-decoration: none;
	color: #264c38;
	display: flex;
	align-items: center;
	gap: 9px;
	font: 700 25px/0.85 Fredoka, sans-serif;
	letter-spacing: -1px;
}
.brand-accent {
	color: #ea895d;
}
.brand small {
	display: block;
	font: 800 7px/1.8 "DM Sans", sans-serif;
	letter-spacing: 1.35px;
}
.brand-icon {
	display: grid;
	place-items: center;
	background: #dce9b8;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	color: #648d43;
	font: 700 32px Fredoka;
}
.header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}
.header-note {
	font-size: 12px;
	font-weight: 700;
	color: #94a48e;
}
.sun {
	color: #e8ad54;
	font-size: 30px;
}
.page {
	max-width: 1220px;
	margin: auto;
	padding: 0 28px;
}
.intro {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 219px;
	padding: 33px 14px 28px 4px;
}
.eyebrow, .section-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.8px;
	color: #719765;
}
.eyebrow span {
	color: #e89962;
	font-size: 16px;
	margin-right: 5px;
}
h1, h2, p {
	margin: 0;
}
h1, h2 {
	font-family: Fredoka, sans-serif;
}
h1 {
	font-size: clamp(36px, 4.7vw, 56px);
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -1.4px;
	margin: 12px 0 12px;
}
h1 em {
	font-style: normal;
	color: #e9855b;
}
.intro p {
	line-height: 1.6;
	font-size: 15px;
	color: #788c79;
}
.intro-art {
	height: 150px;
	min-width: 260px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
.art-fox, .art-bear {
	display: grid;
	place-items: center;
	width: 94px;
	height: 94px;
	border-radius: 38px;
	font-size: 57px;
	transform: rotate(-9deg);
	background: #f4d9b5;
	border: 5px solid #fff7e7;
}
.art-bear {
	transform: rotate(9deg);
	background: #d7e5c0;
	margin-left: -10px;
	margin-top: 17px;
}
.spark {
	position: absolute;
	color: #e5ad5f;
}
.s1 {
	left: 10px;
	top: 22px;
	font-size: 28px;
}
.s2 {
	right: 8px;
	top: 30px;
	font-size: 25px;
}
.art-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	color: #9aab86;
	font-family: Fredoka;
	font-size: 12px;
	transform: rotate(-8deg);
}
.game-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 345px;
	gap: 22px;
	align-items: start;
}
.board-card, .words-card {
	background: #fffef9;
	border: 1px solid #e7e9db;
	border-radius: 24px;
	box-shadow: 0 8px 26px #425b3810;
}
.board-card {
	padding: 29px 36px 24px;
}
.board-heading, .words-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.section-kicker span {
	color: #eca16a;
	margin-left: 4px;
}
.board-heading h2, .words-heading h2 {
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.3px;
	margin-top: 7px;
}
.icon-button {
	border: 1px solid #e0e8d6;
	background: #f7faef;
	color: #638255;
	border-radius: 14px;
	width: 43px;
	height: 43px;
	font-size: 26px;
	line-height: 1;
}
.icon-button:hover {
	background: #e9f2dd;
}
.game-controls {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin: 22px 0 18px;
}
.level-control label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: #829581;
	margin-bottom: 7px;
}
.select-wrap {
	position: relative;
}
.select-wrap:after {
	content: "⌄";
	position: absolute;
	right: 14px;
	top: 7px;
	color: #759267;
	pointer-events: none;
}
select {
	appearance: none;
	border: 1px solid #e4e9d9;
	background: #fafcf5;
	border-radius: 10px;
	color: #3a5c43;
	padding: 9px 34px 9px 12px;
	font-size: 12px;
	font-weight: 800;
	min-width: 142px;
}
.direction-note {
	display: flex;
	gap: 10px;
	align-items: center;
	color: #8fa18b;
	font-size: 10px;
	line-height: 1.5;
}
.direction-note span {
	display: grid;
	place-items: center;
	background: #f6e7cc;
	color: #d99957;
	border-radius: 10px;
	width: 34px;
	height: 34px;
	font-size: 20px;
}
.direction-note strong {
	color: #668162;
	font-size: 11px;
}
.grid-wrap {
	background: #f2f6e9;
	border: 1px solid #e5eddb;
	padding: 14px;
	border-radius: 18px;
}
.grid {
	display: grid;
	grid-template-columns: repeat(var(--size), minmax(0, 1fr));
	gap: 5px;
	touch-action: none;
	user-select: none;
}
.cell {
	aspect-ratio: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: #fffefb;
	color: #405c43;
	font: 600 clamp(13px, 2.1vw, 22px) Fredoka, sans-serif;
	transition: background 0.12s, color 0.12s, transform 0.12s;
	touch-action: none;
}
.cell:hover {
	background: #e8f1d9;
}
.cell.selected {
	background: #e9a57d;
	color: white;
	transform: scale(0.95);
}
.cell.found {
	background: #cce2aa;
	color: #355e38;
}
.cell.found.selected {
	background: #e9a57d;
	color: #fff;
}
.cell.hinted {
	background: #f8cb78;
	box-shadow: 0 0 0 3px #f7dfa8;
	animation: pulse 1.2s ease-in-out infinite alternate;
}
@keyframes pulse {
	to {
		transform: scale(0.9);
	}
}
.board-instruction {
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: #9aab95;
	margin-top: 16px;
}
.board-instruction span {
	font-size: 16px;
	margin-right: 4px;
}
.mobile-actions {
	display: none;
}
.side {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.words-card {
	padding: 28px 26px 24px;
}
.paw {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: #f8ead6;
	display: grid;
	place-items: center;
	font-size: 20px;
}
.words-subtitle {
	font-size: 12px;
	color: #94a38f;
	margin-top: 8px;
}
.progress-label {
	display: flex;
	justify-content: space-between;
	margin-top: 25px;
	font-size: 11px;
	color: #849a80;
}
.progress-label span {
	font-weight: 800;
	color: #719665;
}
.progress-track {
	height: 7px;
	border-radius: 8px;
	background: #edf2e8;
	margin: 9px 0 21px;
	overflow: hidden;
}
.progress-track div {
	height: 100%;
	width: 0;
	background: #91bb75;
	border-radius: 8px;
	transition: width 0.3s;
}
.word-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}
.word {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fafbf4;
	border: 1px solid #f0f2e8;
	border-radius: 12px;
	padding: 7px 7px;
	font-family: Fredoka, sans-serif;
	color: #527052;
	font-size: 14px;
}
.animal-icon {
	width: 33px;
	height: 33px;
	flex: none;
	display: grid;
	place-items: center;
	background: #f4e5d1;
	border-radius: 10px;
	font-size: 21px;
}
.word:nth-child(3n+2) .animal-icon {
	background: #e9f1d9;
}
.word:nth-child(3n) .animal-icon {
	background: #f9e4dd;
}
.word-name {
	overflow: hidden;
	text-overflow: ellipsis;
}
.word-check {
	margin-left: auto;
	color: #79a869;
	font: 800 13px "DM Sans";
}
.word.done {
	background: #eef6e6;
	color: #8cab83;
}
.word.done .word-name {
	text-decoration: line-through;
}
.side-actions {
	margin-top: 22px;
	text-align: center;
}
.hint-button {
	border: 0;
	border-radius: 13px;
	background: #e99568;
	color: white;
	font-weight: 800;
	font-size: 12px;
	padding: 14px 18px;
	box-shadow: 0 4px 0 #d57e54;
	transition: transform 0.15s, background 0.15s;
}
.hint-button:hover {
	background: #dc855b;
	transform: translateY(-1px);
}
.hint-button:disabled {
	opacity: 0.5;
	cursor: default;
}
.side-actions .hint-button {
	width: 100%;
}
.hint-button span {
	font-size: 16px;
	margin-right: 5px;
}
.side-actions p {
	font-size: 10px;
	color: #a7b2a2;
	margin-top: 13px;
}
.tip-card {
	background: #edf3dd;
	border: 1px solid #e0ead0;
	border-radius: 19px;
	padding: 20px;
	display: flex;
	gap: 13px;
	color: #63815c;
}
.tip-star {
	color: #91b477;
	font-size: 27px;
}
.tip-card strong {
	font: 600 16px Fredoka, sans-serif;
}
.tip-card p {
	font-size: 11px;
	line-height: 1.6;
	margin-top: 5px;
}
.side-squiggle {
	text-align: center;
	color: #d6dfc3;
	font-size: 20px;
	padding: 5px;
}
footer {
	display: flex;
	justify-content: space-between;
	padding: 35px 4px;
	color: #a3ae9a;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2px;
}
footer span:last-child {
	letter-spacing: 1.4px;
	font-size: 9px;
}
.footer-heart {
	color: #e69a77;
}
.win-overlay {
	position: fixed;
	inset: 0;
	background: #28433199;
	z-index: 10;
	display: grid;
	place-items: center;
	padding: 20px;
}
.win-card {
	background: #fffef9;
	border-radius: 28px;
	padding: 38px;
	max-width: 420px;
	text-align: center;
	box-shadow: 0 20px 80px #1d362a50;
}
.win-confetti {
	color: #e9a566;
	font-size: 23px;
}
.win-emoji {
	font-size: 65px;
	margin: 10px;
}
.win-card h2 {
	font-size: 33px;
	line-height: 1.05;
	margin: 12px 0;
}
.win-card p {
	font-size: 14px;
	line-height: 1.6;
	color: #82947f;
	margin-bottom: 22px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 850px) {
	.game-layout {
		grid-template-columns: minmax(0, 1fr) 290px;
	}
	.board-card {
		padding: 25px;
	}
	.words-card {
		padding: 23px 19px;
	}
	.word {
		font-size: 12px;
	}
	.animal-icon {
		width: 29px;
		height: 29px;
		font-size: 18px;
	}
	.grid {
		gap: 4px;
	}
	.grid-wrap {
		padding: 10px;
	}
}
@media (max-width: 680px) {
	.topbar {
		height: 68px;
		padding: 0 20px;
	}
	.header-note {
		display: none;
	}
	.page {
		padding: 0 16px;
	}
	.intro {
		min-height: 0;
		padding: 30px 2px 25px;
	}
	.intro h1 {
		font-size: 37px;
		max-width: 290px;
	}
	.intro p {
		font-size: 13px;
	}
	.desktop {
		display: none;
	}
	.intro-art {
		min-width: 105px;
		height: 110px;
	}
	.art-fox, .art-bear {
		width: 62px;
		height: 62px;
		border-radius: 25px;
		font-size: 37px;
		border-width: 3px;
	}
	.art-bear {
		margin-left: -20px;
		margin-top: 25px;
	}
	.s1 {
		font-size: 19px;
		left: 0;
		top: 0;
	}
	.s2 {
		font-size: 16px;
		right: 0;
		top: 5px;
	}
	.art-caption {
		display: none;
	}
	.game-layout {
		display: flex;
		flex-direction: column;
	}
	.board-card, .side {
		width: 100%;
	}
	.board-card {
		padding: 21px 16px;
	}
	.board-heading h2, .words-heading h2 {
		font-size: 22px;
	}
	.game-controls {
		margin: 18px 0 14px;
	}
	.direction-note {
		max-width: 155px;
	}
	.direction-note span {
		display: none;
	}
	.grid {
		gap: 3px;
	}
	.grid-wrap {
		padding: 8px;
	}
	.cell {
		border-radius: 6px;
		font-size: clamp(13px, 4.4vw, 20px);
	}
	.board-instruction {
		line-height: 1.5;
	}
	.mobile-actions {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		margin-top: 18px;
	}
	.text-button {
		border: 0;
		background: none;
		font-size: 11px;
		font-weight: 800;
		color: #789369;
	}
	.side-actions {
		display: none;
	}
	.word-list {
		grid-template-columns: repeat(3, 1fr);
	}
	.words-card {
		padding: 22px;
	}
	.word {
		font-size: 13px;
	}
	.side-squiggle {
		display: none;
	}
	footer {
		padding: 27px 3px;
	}
	footer > span:last-child {
		display: none;
	}
}
@media (max-width: 390px) {
	.word-list {
		grid-template-columns: repeat(2, 1fr);
	}
	.intro h1 {
		font-size: 32px;
	}
	.intro-art {
		min-width: 80px;
	}
	.art-fox, .art-bear {
		width: 50px;
		height: 50px;
		font-size: 30px;
	}
	.grid {
		gap: 2px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
