:root {
  font: 12px/1.5 system-ui, sans-serif;
  color: #49453f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body, #stage { width: 100%; height: 100%; margin: 0; background: transparent; overflow: hidden; }
#stage { position: relative; }
canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; outline-offset: -3px; }
#status { position: absolute; inset: 40% 12% auto; text-align: center; }
.controls { position: absolute; right: 8px; bottom: 4px; display: flex; gap: 4px; align-items: end; }
button, summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #9c958d55;
  border-radius: 50%;
  background: #f8f5efdd;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
[hidden] { display: none !important; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid #2858ee; outline-offset: 2px; }
#credits {
  position: absolute;
  right: 0;
  bottom: 39px;
  width: min(280px, calc(100vw - 24px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #f8f5eff5;
  padding: 12px;
  border: 1px solid #9c958d55;
  border-radius: 12px;
  box-shadow: 0 8px 20px #201a161a;
}
#credits p { margin: 0 0 7px; }
#credits p:last-child { margin: 0; }
#credits a { color: inherit; text-underline-offset: 2px; }
