:root {
  --bg: #070503;
  --bg-deep: #020201;
  --surface: rgba(18, 14, 10, 0.88);
  --surface-strong: rgba(27, 21, 15, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(228, 192, 121, 0.26);
  --line-strong: rgba(228, 192, 121, 0.48);
  --gold: #d8ad62;
  --gold-strong: #f2cf87;
  --gold-dark: #8d662e;
  --text: #fffaf0;
  --muted: #c9bca6;
  --soft: #927f63;
  --error: #ffb4a8;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(ellipse at top, rgba(215, 173, 98, 0.22) 0%, rgba(128, 78, 30, 0.08) 28%, rgba(7, 5, 3, 0) 56%),
    linear-gradient(180deg, #130d07 0%, var(--bg) 43%, var(--bg-deep) 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.review-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.stage-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 100%);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 72%);
}

.review-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: calc(100svh - 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.brand-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px 2px;
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.brand-logo {
  width: clamp(72px, 20vw, 92px);
  height: clamp(72px, 20vw, 92px);
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.46));
}

.brand-name {
  color: var(--text);
  font-size: clamp(25px, 8vw, 34px);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  text-indent: 0.28em;
}

.brand-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-subtitle::before,
.brand-subtitle::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.78;
}

.step-indicator {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 102px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.progress-wrap {
  padding: 0 4px;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-strong));
  box-shadow: 0 0 26px rgba(242, 207, 135, 0.36);
  transition: width 240ms ease;
}

.review-card {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(242, 207, 135, 0.16), transparent 30%),
    linear-gradient(320deg, rgba(255, 255, 255, 0.055), transparent 34%);
}

#formStage {
  position: relative;
  z-index: 1;
  min-height: inherit;
}

.step-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 7vw, 34px);
  animation: riseIn 220ms ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.question-kicker::before,
.question-kicker::after {
  content: "";
  width: min(28vw, 110px);
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.question-title {
  margin: 24px 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.question-copy {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  align-self: center;
}

.answer-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 34px 0 18px;
}

.star-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-hints {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
}

.star-button,
.choice-button,
.toggle-button {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.star-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1;
}

.star-number {
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
}

.star-glyph {
  color: currentColor;
  font-size: 29px;
}

.star-button.is-selected,
.choice-button.is-selected,
.toggle-button.is-selected {
  border-color: var(--line-strong);
  color: #181006;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  box-shadow: 0 12px 32px rgba(216, 173, 98, 0.18);
}

.star-button.is-lit {
  border-color: var(--line-strong);
  color: #181006;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  box-shadow: 0 12px 32px rgba(216, 173, 98, 0.18);
}

.star-button.is-selected.is-lit {
  box-shadow: 0 14px 36px rgba(216, 173, 98, 0.28), inset 0 0 0 1px rgba(255, 250, 240, 0.35);
}

.choice-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.choice-button::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.72;
}

.choice-button.is-selected::after {
  background: currentColor;
  box-shadow: inset 0 0 0 3px var(--gold-strong);
}

.toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-button {
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 800;
}

.email-field {
  display: none;
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

.email-field.is-visible {
  display: block;
}

.email-field:focus {
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 4px rgba(216, 173, 98, 0.14);
}

.step-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:active,
.star-button:active,
.choice-button:active,
.toggle-button:active {
  transform: translateY(1px);
}

.button-primary {
  flex: 1;
  color: #170f06;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  box-shadow: 0 16px 34px rgba(216, 173, 98, 0.22);
}

.button-secondary {
  width: 88px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.error-line {
  min-height: 20px;
  margin: 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.success-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-strong);
  background: rgba(216, 173, 98, 0.1);
  font-size: 34px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 5;
  padding: 14px 16px;
  border-radius: 14px;
  color: #1b1208;
  background: var(--gold-strong);
  font: 700 14px Inter, sans-serif;
}

@media (hover: hover) {
  .star-button:hover,
  .choice-button:hover,
  .toggle-button:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.09);
  }

  .star-button.is-selected:hover,
  .choice-button.is-selected:hover,
  .toggle-button.is-selected:hover {
    background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  }
}

@media (min-width: 780px) {
  .review-page {
    align-items: center;
    padding: 40px 24px;
  }

  .review-shell {
    min-height: 0;
  }
}

@media (max-width: 370px) {
  .review-page {
    padding-inline: 12px;
  }

  .step-panel {
    padding: 22px 18px;
  }

  .question-title {
    font-size: 32px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-subtitle {
    font-size: 10px;
    gap: 8px;
  }

  .brand-subtitle::before,
  .brand-subtitle::after {
    width: 14px;
  }

  .star-button {
    min-height: 58px;
  }

  .star-glyph {
    font-size: 25px;
  }

  .step-footer {
    gap: 9px;
  }

  .button-secondary {
    width: 76px;
  }
}

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