:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1720;
  color: #edf4f8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(22, 163, 74, 0.18), transparent 36%),
    linear-gradient(260deg, rgba(14, 165, 233, 0.18), transparent 42%),
    #0f1720;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(1100px, 100%);
  padding: 28px;
  border: 1px solid rgba(237, 244, 248, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 32, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.copy {
  max-width: 70ch;
  color: #b8c7d0;
  line-height: 1.6;
}

code {
  overflow-wrap: anywhere;
  color: #bbf7d0;
}

.status {
  min-height: 24px;
  margin: 16px 0;
  color: #e5e7eb;
}

.debug-log {
  max-height: 180px;
  overflow: auto;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(237, 244, 248, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 13, 0.72);
  color: #b8c7d0;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

video,
canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(237, 244, 248, 0.16);
  border-radius: 8px;
  background: #05080d;
  object-fit: contain;
}

@media (max-width: 640px) {
  .shell {
    padding: 12px;
  }

  .panel {
    padding: 18px;
  }
}
