:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #202d2b;
  background: #efede5;
}

body { margin: 0; }

main {
  width: min(58rem, calc(100% - 2.5rem));
  margin: auto;
  padding: clamp(2.25rem, 7vh, 5rem) 0;
}

h1 {
  margin: 0 0 clamp(1.4rem, 5vw, 3rem);
  font: 500 clamp(3rem, 9vw, 7rem)/.95 Georgia, serif;
  letter-spacing: -.075em;
  text-align: center;
}

figure { margin: 0; }

.stage {
  position: relative;
  overflow: hidden;
  height: clamp(17rem, 55vh, 31rem);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 48% 38%, #334a54, #152429 73%);
  box-shadow: 0 1.2rem 3rem #202d2b25;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

canvas[hidden] { display: none; }
canvas:active { cursor: grabbing; }
canvas:focus-visible { outline: 3px solid #a0eee1; outline-offset: -5px; }

.fallback {
  position: absolute;
  inset: 0;
  text-align: center;
  align-content: center;
  font: 800 clamp(5rem, 20vw, 12rem)/1 system-ui, sans-serif;
  color: #96e6d5;
}

figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  color: #485853;
  font-size: .88rem;
}

button {
  background: transparent;
  color: #202d2b;
  border: 1px solid #71857b;
  padding: .52rem .88rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #dbe4db; }
button:focus-visible { outline: 2px solid #22625b; outline-offset: 3px; }
