@font-face {
  font-family: Astigmatic;
  src: url("../Fonts/Astigmatic/Astigmatic-Regular.otf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: Astigmatic;
  src: url("../Fonts/Astigmatic/Astigmatic-SemiBold.otf") format("opentype");
  font-weight: 600;
}
@font-face {
  font-family: Astigmatic;
  src: url("../Fonts/Astigmatic/Astigmatic-Bold.otf") format("opentype");
  font-weight: 700 900;
}
:root {
  --orange: #f25c2b;
  --card: #f4f4f0;
  --ink: #000;
  --ui: Astigmatic, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
}
body {
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  letter-spacing: 0.015em;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
body.idle,
body.idle * {
  cursor: none !important;
}
.brand-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  pointer-events: none;
}
.brand-logo {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
#cam-status {
  position: fixed;
  z-index: 200;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: #000d;
  border: 1px solid #ffffff33;
  color: #fff;
  font-size: 14px;
  transition: opacity 0.4s;
}
.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
}
#screen-select {
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.quiz-title {
  flex: 0 0 auto;
  max-width: 850px;
  margin-top: clamp(24px, 12vh, 160px);
  font-size: clamp(2.5rem, 7vh, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.quiz-title .q-light {
  font-weight: 400;
}
.quiz-middle {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 28px);
}
.answers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vh, 16px);
  width: 100%;
}
.answer-pill,
.pill-btn {
  border: 1px solid #000;
  border-radius: 999px;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.answer-pill {
  min-height: clamp(56px, 9vh, 80px);
  padding: clamp(12px, 2vh, 20px);
  background: #000;
  color: #fff;
  box-shadow: 0 4px 15px #0002;
  font-size: clamp(1.2rem, 2.6vh, 1.8rem);
  font-weight: 400;
  letter-spacing: normal;
}
.answer-pill:hover,
.pill-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  color: #000;
}
.pill-btn {
  padding: 12px 28px;
  background: #fff;
  color: #000;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.pill-btn--dark {
  background: #000;
  color: #fff;
}
.pill-btn--clear {
  background: transparent;
}
#verdict-card {
  max-width: 550px;
  padding: 50px 70px;
  border: 1px solid #000;
  border-radius: 24px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 20px 50px #0003;
}
.v-meta {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v-name {
  margin-bottom: 15px;
  font-size: 4rem;
  line-height: 0.9;
}
.v-desc {
  margin-bottom: 30px;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.4;
}
#screen-booth {
  padding: 0;
}
#viewport-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
#render-canvas {
  position: absolute;
  background: #000;
}
#crop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
#countdown-overlay {
  position: absolute;
  z-index: 50;
  display: grid;
  place-items: center;
  inset: 0;
  opacity: 0;
  color: #fff;
  font-size: 12rem;
  font-weight: 900;
  text-shadow: 0 10px 40px #000c;
  transition: opacity 0.2s;
  pointer-events: none;
}
#countdown-overlay.active {
  opacity: 1;
}
.booth-controls {
  position: absolute;
  z-index: 20;
  bottom: 40px;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #f4f4f0f2;
  backdrop-filter: blur(10px);
}
.booth-input {
  width: 240px;
  padding: 12px 20px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  outline: none;
}
.is-hidden {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
#lab-panel {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  display: none;
  width: 360px;
  padding: 24px;
  overflow: auto;
  background: #141418f7;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}
#lab-panel.visible {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#lab-panel h2 {
  font-size: 16px;
}
#lab-panel small {
  display: block;
  margin-top: 4px;
  color: #aaa;
  font-size: 11px;
  font-weight: 400;
}
#lab-panel label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#lab-panel input[type="range"] {
  width: 150px;
}
#lab-panel select {
  width: 150px;
  padding: 4px;
  background: #222;
  color: #fff;
}
#lab-panel input[type="text"] {
  width: 150px;
  padding: 4px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  font: inherit;
}
#lab-panel .preset-buttons {
  display: flex;
  gap: 6px;
}
#lab-panel .preset-buttons button {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
#lab-panel .preset-buttons button:hover {
  border-color: #888;
  background: #2c2c33;
}
.experiment-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid #ffffff33;
}
.experiment-controls legend {
  padding: 0 4px;
  color: #f25c2b;
  font-size: 11px;
  text-transform: uppercase;
}
#split-labels {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  pointer-events: none;
}
#split-labels span {
  padding: 4px 8px;
  background: #000c;
  color: #fff;
}
#split-labels span:last-child {
  margin-right: calc(50% - 12px);
}
.experiment-status {
  color: #f3c5b4;
  font-size: 11px;
  line-height: 1.4;
}
.experiment-metrics {
  color: #9fe6c0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
}
.experiment-warning {
  padding: 6px 8px;
  border: 1px solid #ffb020;
  background: #ffb02022;
  color: #ffd18a;
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .brand-header {
    padding: 20px;
  }
  .answers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .booth-controls {
    right: 16px;
    bottom: 16px;
    left: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .booth-input {
    width: 100%;
  }
  #verdict-card {
    padding: 40px 28px;
  }
}

/* ---- disclaimer (screen-select) ---- */
.disclaimer {
  flex: 0 0 auto;
  max-width: 600px;
  margin-top: 1.5rem;
  color: #1a1a1a;
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.85;
}
.disclaimer-footer {
  flex: 0 0 auto;
  max-width: 600px;
  margin-top: 0.6rem;
  color: #1a1a1a;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  opacity: 0.6;
}

/* ---- delivery + thanks screens ---- */
#delivery-card,
#thanks-card {
  max-width: 500px;
  padding: 50px 60px;
  border: 1px solid #000;
  border-radius: 24px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 20px 50px #0003;
}
#qr-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
#qr-container svg {
  width: 220px;
  height: 220px;
}
#newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #0002;
}
.newsletter-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 0.85rem;
  color: #333;
}
.newsletter-check input {
  margin-top: 3px;
}
#newsletter-form .booth-input {
  width: 100%;
}
#newsletter-form .pill-btn {
  align-self: center;
}
#btn-delivery-done {
  margin-top: 16px;
}
