:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #171322;
  color: #fff0d5;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 38rem; margin: auto; padding: 1rem; }
h1 { margin: .65rem 0 .35rem; font-size: 1.7rem; }
p { margin: 0 0 .8rem; color: #cfc0d8; font-size: .9rem; }
a { color: #ffd391; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .65rem; }
label { display: grid; gap: .2rem; font-size: .8rem; }
button, select, textarea {
  border: 1px solid #7d648e;
  background: #2c2238;
  color: inherit;
  border-radius: .45rem;
  font: inherit;
}
button, select { min-height: 44px; padding: .45rem .55rem; }
button[aria-pressed="true"] { border-color: #ebad53; color: #ffda9a; }
button:disabled { opacity: .6; }
#stage {
  position: relative;
  overflow: hidden;
  height: clamp(240px, 44svh, 400px);
  margin-bottom: .7rem;
  border: 1px solid #6f567d;
  border-radius: .6rem;
  background: #292034 url('/assets/locations/amethyst-platform-aligned-v1.webp') center 59% / cover;
}
canvas {
  display: block;
  position: absolute;
  width: min(83%, 335px);
  height: auto;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
}
textarea { width: 100%; margin: .65rem 0 .35rem; padding: .55rem; font-size: .78rem; }
