* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #e9e2d6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#stage {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hidden { display: none !important; }

#start {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(233, 226, 214, 0.5);
  background: rgba(0, 0, 0, 0.35);
}

#sheet {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.sheet-body {
  width: min(100vw, 420px);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: #16130f;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.swatches { display: flex; gap: 12px; justify-content: center; }
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  background: linear-gradient(180deg, var(--c1) 0 33%, var(--c2) 33% 66%, var(--c3) 66%);
}
.swatch.active { border-color: #e9e2d6; }
.swatch.theme {
  border-radius: 50%;
  background: var(--c1);
  box-shadow: inset 0 0 0 4px var(--c2);
}
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
select {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}
button {
  font: inherit;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}
