:root {
  color-scheme: dark;
  background: #05070d;
  color: #e7edf8;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { overscroll-behavior: none; }
#app {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(44px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}
header { text-align: center; z-index: 1; }
h1 {
  margin: 0;
  color: #e9edff;
  font: 300 clamp(24px, 6vw, 32px)/1.2 Georgia, serif;
  letter-spacing: .28em;
  text-indent: .28em;
}
header p { margin: 8px 0 0; color: #828ba2; font-size: 12px; letter-spacing: .12em; }
#particles {
  display: block;
  width: min(94vw, 63svh, 620px);
  height: min(94vw, 63svh, 620px);
  margin: -2px 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#particles.dragging { cursor: grabbing; }
.back {
  position: fixed;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  color: #828ba2;
  font-size: 12px;
  text-decoration: none;
}
.share {
  position: fixed;
  z-index: 2;
  top: max(10px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  color: #d8e3f5;
  font-size: 12px;
  text-decoration: none;
}
a:focus-visible, button:focus-visible { outline: 2px solid #91ddff; outline-offset: 3px; }
.shapes {
  width: min(100%, 690px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  z-index: 1;
}
.shapes button,
.stereo-toggle {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #283247;
  border-radius: 999px;
  color: #aab5ca;
  background: #0b101a;
  font: inherit;
  font-size: 12px;
  touch-action: manipulation;
}
.stereo-toggle { margin-top: 8px; }
.shapes button[aria-pressed="true"],
.stereo-toggle[aria-pressed="true"] {
  border-color: #91ddff;
  color: #eafaff;
  background: #142435;
  box-shadow: 0 0 12px #62c7ff35;
}
