:root {
  --black: #070707;
  --ink: #141118;
  --white: #fff;
  --paper: #f6f0e8;
  --lime: #c7ff00;
  --lilac: #bd8ad4;
  --pink: #d73878;
  --coral: #ff735c;
  --gold: #f2c84b;
  --mint: #83e0c2;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 115, 92, 0.24), transparent 24rem),
    linear-gradient(140deg, #0a0a0a 0%, #24151e 48%, #7d4f90 100%);
  color: var(--white);
}

button,
input {
  font: inherit;
}

button,
a,
label.file-btn {
  -webkit-tap-highlight-color: transparent;
}

.app {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  pointer-events: none;
}

.brand,
.partner {
  pointer-events: auto;
}

.brand {
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.partner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.partner-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--mint);
  color: var(--lime);
  font-size: 0.7rem;
  line-height: 1;
}

.stepper {
  position: fixed;
  z-index: 25;
  right: clamp(16px, 3vw, 34px);
  top: 50%;
  display: grid;
  gap: 11px;
  transform: translateY(-50%);
}

.step-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.step-dot.is-active {
  height: 28px;
  background: var(--lime);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 100vh;
  padding: 104px clamp(20px, 7vw, 126px) 52px;
}

.screen.is-active {
  display: grid;
}

.eyebrow {
  margin: 0 0 0.78rem;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 1rem;
  color: var(--lime);
  font-size: clamp(3.25rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin-bottom: 1.7rem;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.18;
}

.intro-screen {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}

.intro-copy {
  position: relative;
  z-index: 2;
}

.style-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.45rem;
}

.style-chip {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.style-chip.is-selected {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--black);
  font-weight: 900;
}

.cta-row,
.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.file-btn,
.store-link,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  background: var(--pink);
  color: var(--white);
  padding: 0 1.28rem;
  box-shadow: 0 14px 28px rgba(215, 56, 120, 0.3);
}

.ghost-btn,
.file-btn {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 0 1rem;
}

.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.full-btn {
  width: 100%;
}

.tray-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.tray-paper {
  position: relative;
  width: min(92%, 430px);
  aspect-ratio: 0.74;
  padding: 28px;
  transform: rotate(-7deg);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  box-shadow: var(--shadow);
}

.tray-title {
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 950;
  line-height: 0.88;
}

.tray-qr {
  position: absolute;
  right: 28px;
  bottom: 104px;
  display: grid;
  grid-template-columns: repeat(4, 20px);
  grid-auto-rows: 20px;
  gap: 6px;
  padding: 12px;
  background: var(--white);
}

.tray-qr span {
  background: var(--black);
}

.tray-qr span:nth-child(2n),
.tray-qr span:nth-child(5),
.tray-qr span:nth-child(11) {
  background: var(--lime);
}

.tray-lines {
  position: absolute;
  left: 28px;
  right: 130px;
  bottom: 42px;
  display: grid;
  gap: 12px;
}

.tray-lines i {
  height: 12px;
  border-radius: 999px;
  background: rgba(20, 17, 24, 0.16);
}

.beauty-pack {
  position: absolute;
  right: 0;
  bottom: 38px;
  width: 230px;
  height: 170px;
}

.lipstick,
.mascara,
.compact {
  position: absolute;
  display: block;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.24));
}

.lipstick {
  right: 124px;
  bottom: 20px;
  width: 34px;
  height: 124px;
  transform: rotate(18deg);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(var(--coral) 0 35%, #202020 35% 100%);
}

.mascara {
  right: 64px;
  bottom: 12px;
  width: 28px;
  height: 148px;
  transform: rotate(-16deg);
  border-radius: 999px;
  background: linear-gradient(90deg, #111, #404040, #111);
}

.compact {
  right: 0;
  bottom: 0;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45), transparent 31%),
    conic-gradient(from 30deg, #2a242b, #a84d60, #f2c84b, #2a242b);
}

.screen-heading {
  align-self: start;
  max-width: 660px;
}

.scan-screen {
  grid-template-columns: minmax(290px, 440px) minmax(250px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}

.camera-stage {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 0.74;
  overflow: hidden;
  border: 10px solid #151116;
  border-radius: 34px;
  background: #111;
  box-shadow: var(--shadow);
}

#cameraVideo,
.demo-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#cameraVideo {
  display: block;
  background: #111;
}

.demo-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.18), transparent 6rem),
    linear-gradient(145deg, #8f6049, #331d28 60%, #0c0b0d);
}

.demo-hair {
  position: absolute;
  width: 58%;
  aspect-ratio: 0.74;
  border-radius: 44% 44% 48% 48%;
  background: #211015;
  transform: translateY(-9%);
}

.demo-head {
  position: relative;
  width: 47%;
  aspect-ratio: 0.72;
  border-radius: 46% 46% 43% 43%;
  background: linear-gradient(145deg, #d59a72, #9f654e);
  box-shadow: inset 18px 0 35px rgba(255, 255, 255, 0.13);
}

.demo-eye,
.demo-lips {
  position: absolute;
  display: block;
}

.demo-eye {
  top: 37%;
  width: 18%;
  height: 7%;
  border-radius: 999px;
  background: #181216;
}

.demo-eye-left {
  left: 22%;
}

.demo-eye-right {
  right: 22%;
}

.demo-lips {
  left: 34%;
  bottom: 24%;
  width: 32%;
  height: 8%;
  border-radius: 50%;
  background: #9a4251;
}

.face-frame {
  position: absolute;
  inset: 11%;
  border-radius: 28px;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.84);
}

.corner-a {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-b {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-c {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-d {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.mesh {
  position: absolute;
  inset: 0;
}

.mesh-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(199, 255, 0, 0.5);
}

.mesh-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.28);
}

.scan-pulse {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-30px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(240px);
    opacity: 1;
  }
}

.camera-status {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.48);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.analysis-screen {
  place-items: center;
  background: var(--lilac);
  color: var(--ink);
}

.analysis-card,
.quality-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(280px, 460px);
  align-items: center;
  gap: clamp(30px, 7vw, 88px);
  width: min(100%, 900px);
}

.mini-phone {
  position: relative;
  overflow: hidden;
  width: min(100%, 330px);
  aspect-ratio: 0.75;
  border: 12px solid #121014;
  border-radius: 38px;
  background: #100d10;
  box-shadow: var(--shadow);
}

#analysisCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 2px;
  background: var(--lime);
  animation: scan 2s ease-in-out infinite;
}

.analysis-copy h2 {
  color: var(--black);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 200ms ease;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
  font-weight: 850;
}

.check-list li::before {
  content: "";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 0.55rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  vertical-align: -3px;
}

.check-list li.is-done::before {
  content: "✓";
  border-color: var(--lime);
  background: var(--lime);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 950;
}

.quality-screen {
  place-items: center;
  background:
    linear-gradient(120deg, rgba(215, 56, 120, 0.16), transparent 36%),
    #111014;
}

.quality-card {
  color: var(--white);
}

.quality-preview {
  overflow: hidden;
  width: min(100%, 330px);
  aspect-ratio: 0.75;
  border: 12px solid #1d181e;
  border-radius: 38px;
  background: #100d10;
  box-shadow: var(--shadow);
}

#qualityCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.quality-copy h2 {
  color: var(--lime);
}

.result-screen {
  background:
    linear-gradient(90deg, rgba(199, 255, 0, 0.08), transparent 36%),
    #111014;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: clamp(24px, 5vw, 66px);
  width: min(100%, 1180px);
  margin: auto;
}

.look-panel,
.kit-panel,
.register-form,
.qr-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.look-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.look-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(18px, 3vw, 28px);
}

.look-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  align-items: center;
}

.preview-toggle {
  min-height: 46px;
  padding: 0 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.preview-toggle[aria-pressed="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

body.homer-gun-mode .preview-toggle {
  border-color: rgba(246, 208, 50, 0.68);
  box-shadow: inset 0 0 0 1px rgba(215, 18, 46, 0.34);
}

body.bowie-mode .preview-toggle {
  border-color: rgba(0, 155, 225, 0.78);
  box-shadow: inset 0 0 0 1px rgba(226, 38, 46, 0.42);
}

.effect-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  max-width: calc(100vw - 28px);
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(246, 208, 50, 0.44);
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.86);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.effect-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.look-preview {
  position: relative;
  overflow: hidden;
}

.homer-shot-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.homer-operator {
  position: absolute;
  top: clamp(80px, 18%, 210px);
  left: 0;
  width: min(42%, 300px);
  min-width: 190px;
  aspect-ratio: 1.35;
  transform: translateX(-120%);
  transform-origin: left center;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.34));
}

.homer-shot-overlay.is-active .homer-operator {
  animation: homer-operator-slide 2400ms cubic-bezier(0.22, 0.72, 0.28, 1) forwards;
}

.homer-head,
.homer-shirt,
.homer-arm,
.makeup-blaster,
.blaster-body,
.blaster-barrel,
.blaster-grip,
.blaster-pod,
.makeup-burst {
  position: absolute;
  display: block;
}

.homer-head {
  top: 4%;
  left: 6%;
  width: 30%;
  aspect-ratio: 0.82;
  border-radius: 48% 48% 44% 44%;
  background: #f5d33f;
  box-shadow: inset -8px -8px 0 rgba(160, 116, 0, 0.12);
  transform: rotate(-6deg);
}

.homer-head::before {
  position: absolute;
  top: -9%;
  left: 42%;
  width: 28%;
  height: 18%;
  border-top: 2px solid #2a2722;
  border-radius: 50%;
  content: "";
}

.homer-eye {
  top: 28%;
  width: 30%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  background: #fff;
}

.homer-eye::after {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #111014;
  content: "";
}

.homer-eye-a {
  left: 35%;
}

.homer-eye-b {
  left: 56%;
}

.homer-mouth {
  position: absolute;
  right: 4%;
  bottom: 21%;
  width: 42%;
  height: 18%;
  border-bottom: 4px solid #4b2a13;
  border-radius: 0 0 999px 999px;
}

.homer-shirt {
  left: 0;
  bottom: 0;
  width: 42%;
  height: 54%;
  border-radius: 28% 34% 16% 16%;
  background: #f4f0e7;
}

.homer-arm {
  top: 43%;
  left: 28%;
  width: 38%;
  height: 15%;
  border-radius: 999px;
  background: #f5d33f;
  transform: rotate(-6deg);
}

.makeup-blaster {
  top: 30%;
  left: 45%;
  width: 72%;
  height: 34%;
}

.blaster-body {
  left: 0;
  top: 19%;
  width: 74%;
  height: 47%;
  border-radius: 12px;
  background: linear-gradient(180deg, #303643, #151920);
}

.blaster-grip {
  left: 4%;
  top: 58%;
  width: 18%;
  height: 38%;
  border-radius: 0 0 10px 10px;
  background: #111014;
  transform: skewX(-14deg);
}

.blaster-barrel {
  right: 2%;
  width: 38%;
  height: 42%;
  border-radius: 999px;
  background: #515a68;
  box-shadow: inset -10px 0 0 #171b22;
}

.blaster-barrel::after {
  position: absolute;
  top: 22%;
  right: 8%;
  width: 48%;
  height: 56%;
  border-radius: inherit;
  background: #050608;
  content: "";
}

.blaster-barrel-a {
  top: 0;
}

.blaster-barrel-b {
  bottom: 0;
}

.blaster-pod {
  bottom: -30%;
  width: 18%;
  height: 44%;
  border: 3px solid rgba(61, 45, 18, 0.45);
  border-radius: 0 0 18px 18px;
}

.blaster-pod-a {
  left: 28%;
  background: rgba(246, 208, 50, 0.88);
}

.blaster-pod-b {
  left: 50%;
  background: rgba(215, 18, 46, 0.86);
}

.makeup-burst {
  top: 12%;
  right: -34%;
  width: 34%;
  height: 76%;
  opacity: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.95) 0 12%, transparent 13%),
    radial-gradient(circle at 34% 22%, rgba(246, 208, 50, 0.92) 0 18%, transparent 19%),
    radial-gradient(circle at 48% 70%, rgba(215, 18, 46, 0.82) 0 20%, transparent 21%),
    radial-gradient(circle at 74% 42%, rgba(0, 116, 255, 0.76) 0 16%, transparent 17%);
  transform: scale(0.2);
}

.homer-shot-overlay.is-firing .makeup-burst {
  animation: makeup-burst-fire 460ms ease-out forwards;
}

@keyframes homer-operator-slide {
  0% {
    transform: translateX(-122%) rotate(-2deg);
  }
  28%,
  62% {
    transform: translateX(1%) rotate(0deg);
  }
  69% {
    transform: translateX(1%) rotate(-5deg);
  }
  100% {
    transform: translateX(-126%) rotate(-2deg);
  }
}

@keyframes makeup-burst-fire {
  0% {
    opacity: 0;
    transform: scale(0.2) translateX(-18%);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2.35) translateX(50%);
  }
}

.debug-mask-note,
.preview-mode-note {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: min(calc(100% - 24px), 520px);
  margin: 0;
  padding: 0.56rem 0.72rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.debug-mask-note {
  background: rgba(31, 34, 20, 0.76);
  color: var(--lime);
}

.preview-mode-note {
  background: rgba(15, 15, 18, 0.7);
  color: rgba(255, 255, 255, 0.88);
}

.look-header h2,
.kit-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.icon-btn {
  flex: 0 0 auto;
  width: 46px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.4rem;
}

#resultCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.75;
  background: #1c171b;
}

.kit-panel {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-tags span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(199, 255, 0, 0.14);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 850;
}

.product-list {
  display: grid;
  gap: 0.8rem;
}

.product-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.product-swatch {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
}

.product-item h3 {
  margin: 0 0 0.14rem;
  font-size: 0.98rem;
}

.product-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.25;
}

.store-link {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--lime);
  color: var(--lime);
}

.register-screen {
  place-items: center;
  background: var(--lilac);
  color: var(--ink);
}

.register-form {
  display: grid;
  width: min(100%, 520px);
  gap: 1rem;
  padding: clamp(24px, 5vw, 44px);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.register-form h2 {
  color: var(--black);
}

.register-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 900;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input:not([type]) {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(20, 17, 24, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0 0.9rem;
}

.consent-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 700;
  line-height: 1.28;
}

.consent-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
}

.reward-screen {
  place-items: center;
  background:
    radial-gradient(circle at 16% 16%, rgba(131, 224, 194, 0.18), transparent 20rem),
    #0d0d0e;
}

.reward-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(260px, 360px);
  align-items: center;
  gap: clamp(28px, 7vw, 88px);
  width: min(100%, 980px);
}

.reward-copy h2 {
  color: var(--lime);
}

.reward-code {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin: 0 0 1.3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.qr-card {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 28px;
  background: var(--white);
}

#qrCanvas {
  width: min(100%, 260px);
  height: auto;
}

@media (max-width: 880px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .partner {
    font-size: 0.66rem;
  }

  .stepper {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 16px;
    grid-auto-flow: column;
    transform: translateX(-50%);
  }

  .step-dot.is-active {
    width: 28px;
    height: 9px;
  }

  .screen {
    position: relative;
    min-height: 100vh;
    padding: 86px 18px 62px;
  }

  .intro-screen,
  .scan-screen,
  .analysis-card,
  .quality-card,
  .result-grid,
  .reward-layout {
    grid-template-columns: 1fr;
  }

  .intro-screen {
    align-content: start;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .tray-visual {
    min-height: 370px;
  }

  .tray-paper {
    width: min(90%, 310px);
  }

  .beauty-pack {
    right: 6px;
    bottom: 8px;
    transform: scale(0.78);
    transform-origin: right bottom;
  }

  .screen-heading {
    order: -1;
  }

  .camera-stage,
  .mini-phone,
  .quality-preview {
    justify-self: center;
  }

  .scan-actions .primary-btn,
  .scan-actions .ghost-btn,
  .scan-actions .file-btn,
  .cta-row .primary-btn,
  .cta-row .ghost-btn {
    flex: 1 1 140px;
  }

  .reward-layout {
    align-content: center;
  }
}

@media (max-width: 520px) {
  .screen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .primary-btn,
  .ghost-btn,
  .file-btn,
  .store-link {
    width: 100%;
  }

  .style-chip {
    flex: 1 1 0;
  }

  .camera-stage {
    border-width: 8px;
    border-radius: 30px;
  }

  .look-header {
    align-items: center;
  }

  .look-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .preview-toggle {
    min-height: 40px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
