:root {
  --bg: #0f1417;
  --card: #1b2328;
  --accent: #f2d56b;
  --text: #f7f3ec;
  --muted: #a8b1b8;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, #26313a 0%, #0f1417 65%);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  justify-content: center;
}
main {
  width: min(520px, 100%);
  padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(var(--vh, 1vh) * 100);
}
#app-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
#camera-container {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  flex: 1;
  min-height: 0;
}
video,
#overlay,
#photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#overlay {
  pointer-events: none;
  opacity: 0.7;
}
.controls {
  display: grid;
  gap: 12px;
  margin-top: 0;
}
button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: #1b1b1b;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
#photo {
  display: none;
}
#not-found {
  background: rgba(27, 35, 40, 0.85);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#not-found h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
#not-found p {
  margin: 0;
}
#status {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
#status.is-disclaimer {
  font-size: 11px;
}
