* { box-sizing: border-box; }
body { margin: 0; color: #213b36; background: linear-gradient(172deg, #a6c4d7 0%, #d9e2e3 32%, #f2ebdb 65%, #d6ccb6 100%); font-family: system-ui, "Microsoft YaHei", sans-serif; }
#app { position: relative; height: 100vh; height: 100dvh; overflow: hidden; padding-top: var(--project-top, 0px); }
#stage { position: absolute; inset: 0; overflow: hidden; }
#stage canvas { display:block; width:100%; height:100%; touch-action:none; }
#loading { position: absolute; top: 45%; left: 50%; transform: translate(-50%,-50%); z-index: 1; padding: .65em 1em; border-radius: .7em; background: #fafbf7; text-align: center; }
.community-controls { position: absolute; z-index: 2; bottom: max(10px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; max-width: calc(100% - 16px); padding: 7px; margin: 0; background: #1b3832; border-radius: 12px; }
.community-controls button,.community-controls select { min-height: 44px; padding: 0 16px; border: 1px solid #597369; border-radius: 7px; color: white; background: #213f38; font: inherit; cursor: pointer; }
.community-controls select option { background: #213f38; }
.community-controls button[aria-pressed=true] { background: #f1d69c; color: #25342a; }
.community-controls { width: max-content; }
.community-controls button { white-space: nowrap; }
@media(max-width:480px) {
  .community-controls button, .community-controls select { padding-inline: 8px; }
}
