@font-face {
  font-family: Poppins;
  src: url("assets/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("assets/poppins-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("assets/poppins-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --gold: #e0b000;
  --gold-shadow: #be9600;
  --card: #111827;
  --card-border: #252936;
  --radius: 12px;
  font-family: Poppins, sans-serif;
  color: #fff;
  background: #000;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
p, h1 { margin: 0; }
strong { font-weight: 700; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.shell {
  min-height: 100svh;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 20px 20px;
  container: quiz / inline-size;
}

.page {
  --gap: 24px;
  --title-size: 18px;
  --title-leading: 28px;
  --text-size: 16px;
  --text-leading: 24px;
  --small-size: 14px;
  --small-leading: 20px;
  --large-size: 18px;
  --large-leading: 28px;
  --button-pad: 24px;
  --button-depth: 8px;
  padding-top: var(--gap);
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.page[data-step="1"] { padding-top: 20px; }
.question { padding-top: calc(var(--gap) + 24px); }

.progress-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 20px 0 8px;
  background: #000;
}

.progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--card);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-shadow));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1);
}

.heading {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}

.heading h1 {
  font-size: var(--title-size);
  line-height: var(--title-leading);
  font-weight: 700;
  text-wrap: balance;
}

.heading h1:focus { outline: none; }
.heading-line { display: block; }

.subtitle, .size-small {
  font-size: var(--small-size);
  line-height: var(--small-leading);
}

.copy, .option, .testimony, .cta {
  font-size: var(--text-size);
  line-height: var(--text-leading);
}

.copy { overflow-wrap: anywhere; text-wrap: pretty; }
.copy.size-small { font-size: var(--small-size); line-height: var(--small-leading); }
.copy.size-large { font-size: var(--large-size); line-height: var(--large-leading); }
.align-center { text-align: center; }
.align-left { text-align: left; }

.art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.cta-wrap {
  position: relative;
  isolation: isolate;
  margin-bottom: var(--button-depth);
}

.cta {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--button-pad);
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #000;
  box-shadow: 0 var(--button-depth) var(--gold-shadow);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-wrap: pretty;
  transition: transform 150ms ease;
}

@media (hover: hover) { .cta:hover { transform: scale(1.02); } }
.cta:active { transform: scale(.98); }
:where(.cta, .option):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pulse::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--button-depth));
  border-radius: var(--radius);
  background: var(--gold);
  z-index: -1;
  animation: pulse 1s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(1.05, 1.2); opacity: 0; }
}

.options {
  display: grid;
  gap: 16px;
}

.option, .testimony {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
}

.option {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
}

.option:hover { background: #1c2537; }
.option:active { border-color: var(--gold); }
.emoji { flex: none; width: 40px; text-align: center; font-size: 36px; line-height: 1; }

.testimony { display: grid; gap: 20px; }

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.reviewer-name { font-weight: 700; }
.reviewer-place { color: #9ca3af; font-size: var(--small-size); line-height: var(--small-leading); }
.stars { color: #ffca00; font-size: 24px; line-height: 1; letter-spacing: 4px; }

@container quiz (min-width: 384px) {
  .page {
    --gap: 32px;
    --title-size: 20px;
    --text-size: 18px;
    --text-leading: 28px;
    --small-size: 16px;
    --small-leading: 24px;
    --large-size: 20px;
    --button-pad: 26px;
    --button-depth: 9px;
  }
}

@container quiz (max-width: 383px) {
  .option, .testimony { padding: 16px; }
  .emoji { width: 32px; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::before { animation: none; opacity: 0; }
  .cta, .progress span { transition: none; }
}
