:root {
  --bg: #070707;
  --panel: #121212;
  --panel-strong: #181818;
  --text: #f8f4ed;
  --muted: #b9b0a4;
  --red: #e11728;
  --red-dark: #9c0b17;
  --gold: #f4a324;
  --gold-dark: #a96506;
  --line: rgba(255, 255, 255, 0.16);
  --shadow-red: rgba(225, 23, 40, 0.42);
  --shadow-gold: rgba(244, 163, 36, 0.36);
  --headline: "Arial Black", "Helvetica Neue Condensed", Impact, Arial, sans-serif;
  --body: Arial, Helvetica, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(225, 23, 40, 0.34), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(244, 163, 36, 0.28), transparent 28rem),
    linear-gradient(145deg, #020202 0%, #101010 52%, #050505 100%);
  color: var(--text);
  font-family: var(--body);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.quiz-page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.quiz-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.36;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.top-strip {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.brand {
  font-family: var(--headline);
  font-size: clamp(1rem, 4.6vw, 1.45rem);
  letter-spacing: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.screen {
  display: none;
  min-height: calc(100vh - 62px);
  padding: 36px 14px 42px;
}

.screen.is-active {
  display: grid;
  place-items: center;
}

.shell {
  width: min(760px, 100%);
  position: relative;
}

.hero-screen .shell {
  padding: clamp(12px, 4vw, 24px) 0;
}

.eyebrow,
.result-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--headline);
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.15rem, 9vw, 4.65rem);
  line-height: 0.91;
  text-wrap: balance;
}

.subheadline {
  max-width: 650px;
  margin: 12px 0 0;
  color: #e7dfd5;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  line-height: 1.45;
  font-weight: 800;
}
.result-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e7dfd5;
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  line-height: 1.45;
  font-weight: 800;
}

.start-button,
.answer-button,
.result-cta {
  border: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 1000;
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.start-button {
  margin-top: 15px;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 36px var(--shadow-red);
  font-size: 1.02rem;
}

.start-button:hover,
.answer-button:hover,
.result-cta:hover {
  transform: translateY(-2px);
}

.start-button:focus-visible,
.answer-button:focus-visible,
.result-cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.panel-shell,
.result-shell {
  padding: clamp(20px, 6vw, 40px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-copy {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-track,
.loader-track {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.progress-fill,
.loader-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.answer-button {
  min-height: 68px;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  font-size: clamp(1rem, 4.4vw, 1.2rem);
  line-height: 1.18;
  transition: all 0.2s ease;
}

.answer-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(225, 23, 40, 0.1), rgba(244, 163, 36, 0.1));
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(244, 163, 36, 0.2);
}

.loading-screen .panel-shell {
  text-align: center;
}

.loading-screen h2 {
  margin: 0 auto 28px;
  max-width: 620px;
}

.loader-track {
  width: min(520px, 100%);
  height: 12px;
  margin: 0 auto;
}

.result-shell {
  text-align: left;
  overflow: hidden;
}

.result-shell::before {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  margin: -40px -40px 30px;
  padding-right: 80px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.result-copy {
  max-width: 620px;
}

.result-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  margin-top: 30px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--red), #ff3144 48%, var(--red-dark));
  box-shadow: 0 0 36px var(--shadow-red), 0 20px 60px rgba(0, 0, 0, 0.4);
  font-size: clamp(1rem, 4vw, 1.2rem);
  text-align: center;
}

.result-cta.is-cams {
  color: #121212;
  background: linear-gradient(135deg, var(--gold), #ffd26a 48%, var(--gold-dark));
  box-shadow: 0 0 38px var(--shadow-gold), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.affiliate-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: min(42vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.52;
  pointer-events: none;
}

.ambient-red {
  left: -120px;
  top: 18%;
  background: radial-gradient(circle, rgba(225, 23, 40, 0.55), transparent 68%);
}

.ambient-gold {
  right: -110px;
  bottom: 14%;
  background: radial-gradient(circle, rgba(244, 163, 36, 0.5), transparent 70%);
}

@media (min-width: 720px) {
  .screen {
    padding: 54px 28px 68px;
  }

  .start-button {
    width: auto;
    min-width: 260px;
  }

  .answers {
    gap: 14px;
  }

  .answer-button {
    padding: 22px 24px;
  }
}

@media (max-width: 520px) {
  .top-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .meta {
    text-align: left;
  }

  .screen {
    min-height: calc(100vh - 86px);
  }

  .result-shell::before {
    margin: -20px -20px 24px;
  }
}

.quiz-screen h2,
.loading-screen h2,
#result-title {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  line-height: 1.1;
}

#result-title {
  margin-top: 10px;
  margin-bottom: 12px;
}

.result-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 18px;
}

.result-image-container {
  max-width: 220px !important;
  margin: 0 auto 10px !important;
}

@media (min-width: 760px) {
  .result-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
    margin-top: 22px;
  }
  .result-image-container {
    max-width: 100% !important;
    margin: 0 !important;
  }
}
