:root {
  color-scheme: dark;
  --bg: #0e0e14;
  --fg: #f2f2f7;
  --accent: #635bff;
  --topbar-h: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

#stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: block;
}

#ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

#topbar {
  pointer-events: auto;
  height: var(--topbar-h);
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  padding-right: 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
}

#title {
  font-weight: 600;
  font-size: 1rem;
}

.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1;
  padding: 8px;
  border-radius: 8px;
}

.icon-btn:active {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}
