/* Emoji Mirror — full-bleed black canvas, type above/below the stage */

:root {
  --bg: #121212;
  --text: #ffffff;
  --muted: #8e8e93;
  --muted-dim: #636366;
  --negative: #ff453a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.viewport-fit {
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fit-shell {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 48rem);
  max-width: 100%;
}

.app {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  flex-shrink: 0;
  margin: 0;
  padding: 0 0 0.625rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.stage-wrap {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}

#webcam,
.emoji-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#webcam {
  object-fit: contain;
  transform: scaleX(-1);
}

.emoji-gl {
  display: block;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
}

.meta {
  flex-shrink: 0;
  padding: 0.625rem 0 0;
}

.privacy {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

.status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.status.is-waiting {
  color: var(--muted-dim);
}

.status.is-error {
  color: var(--negative);
}

/* Ready / tracking — bright foreground text */
.status:not(.is-waiting):not(.is-error) {
  color: #ebebf5;
}

.setup-callout {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.setup-callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.setup-callout p {
  margin: 0.5rem 0 0;
}

.setup-callout code {
  font-size: 0.8125rem;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: var(--muted);
}

.cmd {
  margin: 0.5rem 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  overflow-x: auto;
}

.cmd code {
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.75rem;
}
