:root {
  --bg: #0c1117;
  --panel: rgba(15, 24, 33, 0.92);
  --line: rgba(121, 210, 255, 0.18);
  --text: #eff7ff;
  --muted: #9fb2c5;
  --accent: #79d2ff;
  --accent-strong: #2f9dd4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(54, 104, 150, 0.28), transparent 34%),
    linear-gradient(180deg, #091017 0%, #101b24 100%);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  padding: 20px;
}

.camera-debug {
  display: grid;
  gap: 18px;
  width: min(100%, 960px);
  margin: 0 auto;
}

.hero-card,
.status-card,
.video-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card,
.status-card {
  padding: 22px;
}

.eyebrow,
.status-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: 30px;
}

.hero-copy,
.status-list {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #051018;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.status-value {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.status-list {
  margin: 0;
  padding-left: 18px;
}

.video-shell {
  overflow: hidden;
  min-height: 320px;
}

#camera-preview {
  display: block;
  width: 100%;
  min-height: 320px;
  background: #000;
  object-fit: cover;
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .hero-card h1 {
    font-size: 24px;
  }

  .status-value {
    font-size: 18px;
  }
}
