* {
  box-sizing: border-box;
}

/* Component rules like .cue-form { display: flex } would otherwise beat the
   UA stylesheet and make [hidden] elements show up anyway. */
[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-3);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: radial-gradient(circle at 50% 30%, var(--bg-2), var(--bg-1) 55%, var(--bg-3) 100%);
  transition: background var(--transition-bg);
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hint {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom), 1.6rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  white-space: nowrap;
}

.stage.show-hint .hint {
  opacity: 1;
}

.ui-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.ui-layer > * {
  pointer-events: auto;
}

.toolbar {
  position: absolute;
  top: max(env(safe-area-inset-top), 1.4rem);
  right: max(env(safe-area-inset-right), 1.4rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.city {
  position: absolute;
  top: max(env(safe-area-inset-top), 1.5rem);
  left: max(env(safe-area-inset-left), 1.5rem);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
