:root {
  --bg: #0b0c10;
  --panel: #16181f;
  --text: #f4f4f5;
  --muted: #9a9ba5;
  --accent: #ffcc00;
  --accent-2: #ff4d6d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

.back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  z-index: 10;
}

.submit-link {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh; /* fallback for browsers without dvh support */
  height: 100dvh; /* tracks the real visible viewport on mobile, where 100vh
                      is oversized when the browser chrome is showing - this
                      was pushing bottom-anchored reveal hints off-screen */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #1a1c24, #0b0c10 70%);
}

.empty-state {
  text-align: center;
}
.empty-state h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #111;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.meta {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  z-index: 40;
}
.meta span { background: rgba(255,255,255,0.06); padding: 6px 12px; border-radius: 999px; }

.display-root {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the fullscreen stage always fills the viewport edge-to-edge and must not
   compete for width with the empty-state text as a flex sibling */
#stage-mount {
  position: absolute;
  inset: 0;
}

.msg-text {
  max-width: 90vw;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
}

/* ---- shared stage mounting (see stage.js) ---- */
.bb-stage-root {
  position: relative;
}
.bb-fill-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* scaled preview: render at true viewport size, then shrink visually so
   vw/vh-based effect sizing stays proportionally accurate. Positioned
   absolute so its un-transformed 100vh box never inflates the frame's
   own (aspect-ratio-driven) size. */
.bb-stage-root.bb-scale-root {
  overflow: hidden;
}
.bb-scale-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform-origin: top left;
}
