* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f5f8ed;
  font-family: system-ui, sans-serif;
}
body {
  overscroll-behavior: none;
}
main {
  height: 100%;
  display: grid;
  place-items: center;
}
canvas {
  display: block;
  touch-action: manipulation;
  max-width: 100%;
  outline: none;
}
.sr-only,
#controls {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#controls button {
  font: inherit;
}
body:has(#controls:focus-within) canvas {
  outline: 2px solid #b39e68;
  outline-offset: -2px;
}
@media (min-width: 650px) {
  canvas {
    box-shadow: 0 15px 80px #57794b30;
    border-radius: 28px;
    max-height: calc(100% - 32px);
  }
}

#share-copy:not([hidden]) {
  position: fixed;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: min(290px, 80vw);
  height: 100px;
  padding: 12px;
  border: 1px solid #bbcca9;
  border-radius: 12px;
  color: #42633e;
  background: #fffbed;
  font: 12px system-ui;
  z-index: 2;
  resize: none;
}
