@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-mono-latin-700-normal.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Roboto Mono", monospace;
  background: #fff7e6;
  color: #4a3b2a;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem;
}

.level {
  font-size: 1.2rem;
}

.buttons {
  display: flex;
  gap: 0.4rem;
}

.bar a,
.bar button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font: inherit;
  font-size: 1.1rem;
  color: inherit;
  text-decoration: none;
  background: #ffe8c2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

canvas {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  touch-action: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgb(255 247 230 / 92%);
}

.overlay[hidden] {
  display: none;
}

.overlay h1 {
  font-size: clamp(2.2rem, 9vw, 4rem);
  color: #8b5cf6;
  text-shadow: 3px 3px 0 #fde68a;
}

.overlay p {
  font-size: 1.1rem;
}

.start {
  padding: 1.2rem 3.5rem;
  font: inherit;
  font-size: 2rem;
  color: #fff;
  background: #f97316;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 0 #c2410c;
  cursor: pointer;
}

.start:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #c2410c;
}

.grownups {
  max-width: 28rem;
  font-size: 0.8rem !important;
  opacity: 0.75;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #4a3b2a;
  outline-offset: 2px;
}
