/* shared chrome for all scenes — minimal, recordable */
html, body { margin: 0; padding: 0; height: 100%; background: #000; overflow: hidden; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
#stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}

.post {
  position: relative;
  display: inline-block;
  line-height: 0;
}
canvas { display: block; image-rendering: pixelated; }

.sticker {
  position: absolute; inset: 0;
  pointer-events: none;
}
.sticker img {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

#chrome {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 14px 16px;
  pointer-events: none;
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  mix-blend-mode: difference;
}
body.clean #chrome { display: none; }

#hint { line-height: 1.5; }
#hint b { color: rgba(255,255,255,0.85); font-weight: 500; }

#rec {
  pointer-events: auto;
  appearance: none; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5); color: #fff;
  font: inherit; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s ease, background .2s ease;
}
#rec:hover { border-color: oklch(72% 0.18 145); }
#rec .dot {
  width: 8px; height: 8px; border-radius: 50%; background: oklch(72% 0.18 145);
  box-shadow: 0 0 0 0 oklch(72% 0.18 145 / 0.5);
}
#rec.recording { border-color: #ff4444; color: #ff4444; pointer-events: none; }
#rec.recording .dot { background: #ff4444; animation: pulse 0.9s ease-out infinite; }
#rec.ok { border-color: oklch(72% 0.18 145); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,68,68,0.6); }
  100% { box-shadow: 0 0 0 14px rgba(255,68,68,0); }
}

#status { display: inline-block; margin-left: 10px; opacity: 0.7; }
