:root {
  color-scheme: light;
  font-family: "Noto Sans", sans-serif;
  --ink: #121417;
  --paper: #f4f6f1;
  --signal: #e8ff47;
  --line: rgba(18, 20, 23, 0.16);
  --shadow: 0 18px 48px rgba(18, 20, 23, 0.16);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

button,
input { font: inherit; }

button { letter-spacing: 0; }

[hidden] { display: none !important; }

.scene-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f4f6f1;
  background-image: linear-gradient(rgba(18, 20, 23, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 20, 23, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.top-bar {
  position: absolute;
  top: 20px;
  right: 22px;
  left: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.top-bar:has(avatar-creator-entry[open]) { z-index: 90; }

avatar-creator-entry { pointer-events: auto; }

.notice {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 40;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 11px 15px;
  border-radius: 4px;
  aspect-ratio: auto;
  border: 0;
}

@media (max-width: 640px) {
  .top-bar { top: 14px; right: 14px; left: 14px; }
}
