/* Burrow Buddies - page chrome. The game itself draws everything on the canvas. */

/* Bundled open-license fonts (SIL OFL 1.1, see fonts/OFL-*.txt), loaded from
   local files so the game works offline and straight from file://.
   Both are variable fonts, so each face declares its weight range. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: block;
}

:root {
  --bg-top: #bdf0a3;
  --bg-bottom: #6cc86f;
  --ink: #3b2a36;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

#stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  display: block;
  border-radius: 18px;
  /* outline via box-shadow so it doesn't change the canvas box (keeps mouse mapping exact) */
  box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px rgba(59, 42, 54, 0.35), 0 18px 40px rgba(0, 0, 0, 0.25);
  background: #9adf7c;
  outline: none;
  touch-action: none;
  user-select: none;
}

noscript {
  position: fixed;
  inset: auto 0 1rem 0;
  text-align: center;
  font-size: 1.2rem;
}
