﻿:root {
  --bg: #f4ede3;
  --bg-accent: #d0f0d6;
  --ink: #142318;
  --panel: #fff8ef;
  --line: #1b7f50;
  --line-soft: rgba(27, 127, 80, 0.24);
  --point: #fb8f32;
  --point-ring: rgba(251, 143, 50, 0.25);
  --status: rgba(20, 35, 24, 0.85);
  --shadow: 0 14px 44px rgba(20, 35, 24, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, var(--bg-accent) 0%, transparent 34%),
    radial-gradient(circle at 92% 78%, #ffe6c9 0%, transparent 30%),
    var(--bg);
}

.app-shell {
  width: min(1120px, 92vw);
  margin: 32px auto 48px;
}

.hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
}

.hero .eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f6f4f;
}

.hero .subtitle {
  margin: 0;
  max-width: 72ch;
  color: rgba(20, 35, 24, 0.8);
}

.stage-card {
  margin-top: 22px;
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #101712;
}

#camera,
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#camera {
  object-fit: cover;
  transform: scaleX(-1);
}

#overlay {
  z-index: 2;
  touch-action: none;
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 8px 12px;
  background: var(--status);
  color: #f8fff8;
  border-radius: 999px;
  font-size: 0.82rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #2f6f4f;
  color: #f4fff7;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn:hover:enabled {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.secondary {
  background: #dde8dd;
  color: #203325;
}

.btn.accent {
  background: #fb8f32;
  color: #1f1205;
}

.hint {
  margin: 12px 2px 4px;
  color: rgba(20, 35, 24, 0.76);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(96vw, 760px);
    margin-top: 16px;
  }

  .stage-card {
    padding: 12px;
  }

  .btn {
    flex: 1 1 46%;
  }
}
