<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Moonlit Garden Match</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@600&family=Nunito:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css" />
<script src="game.js" defer></script>
</head>
<body>
<div class="moon-glow" aria-hidden="true">🌙 ✨ 🌿 💜 🍄 💖</div>
<main class="shell">
<header class="hero">
<div>
<h1>Moonlit Garden Match</h1>
<p class="tagline">Swap glowing mushrooms and fairy lights to rescue sleepy critters.</p>
</div>
<div class="stats">
<div>Score: <span id="score">0</span> 🌙</div>
<div>Moves left: <span id="moves">25</span> ✨</div>
<button class="btn" id="new-game">New Garden</button>
</div>
</header>
<section class="board-wrap">
<div class="board" id="board" aria-label="Match 3 board" role="grid"></div>
<aside class="instructions">
<h2>How to play</h2>
<p>Tap two neighbors to swap them. Match 3 or more identical charms to collect them. Matches free the critters and add moves to your glowing score bar.</p>
<p>Use up the 25 moves wisely. Clear several matches in one turn for bonus sparkles!</p>
</aside>
</section>
</main>
<div class="overlay" id="overlay">
<div class="panel">
<h2>Moonlit Garden Match</h2>
<p>Swap glowing tiles to tuck the critters into bed under the moonlight.</p>
<button class="btn btn-lg" id="start">Start Matching</button>
</div>
</div>
</body>
</html>