:root {
  --bg: #070707;
  --ink: #f6f1e8;
  --muted: #b8b0a4;
  --pink: #ff2d95;
  --lime: #d6ff3f;
  --panel: #121212;
  --line: #2a2a2a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  padding: 36px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--lime);
}

h1 {
  margin: 0;
  font-size: clamp(48px, 12vw, 84px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.tagline {
  margin: 16px 0 0;
  max-width: 34ch;
  color: var(--muted);
}

.panel {
  margin-top: 20px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.stage {
  position: relative;
  overflow: hidden;
  width: min(100%, 380px);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  max-height: 48vh;
  background: #000;
  border: 2px solid var(--pink);
}

video,
#preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  background: repeating-linear-gradient(
    135deg,
    #101010 0 12px,
    #161616 12px 24px
  );
  color: var(--muted);
}

.placeholder small {
  color: #7d766c;
}

.scan {
  position: absolute;
  inset: auto 12px 12px;
  padding: 8px 10px;
  background: var(--lime);
  color: #111;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn.primary {
  background: var(--pink);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.status {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.verdict {
  border-color: var(--lime);
}

.score-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

.ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 6px solid var(--lime);
  border-radius: 50%;
}

.score {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.out-of {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stamp {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 2px solid var(--pink);
  color: var(--pink);
  font-size: 12px;
  letter-spacing: 0.14em;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.blurb {
  margin: 10px 0 0;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.metrics li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

footer {
  padding: 28px 0 48px;
  color: #7d766c;
  font-size: 13px;
}

@media (max-width: 560px) {
  .score-row {
    grid-template-columns: 1fr;
  }

  .ring {
    width: 140px;
  }
}
