:root {
  --ink: #11100f;
  --paper: #f3efe6;
  --acid: #f4ff58;
  --coral: #ff6a55;
  --violet: #7d5cff;
  --blue: #46b7ff;
  --line: rgba(17, 16, 15, 0.18);
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}

button {
  color: inherit;
  font: inherit;
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

footer a {
  color: inherit;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 0.9;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  background: var(--acid);
  place-items: center;
  transform: rotate(-5deg);
}

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

.streak,
.icon-button,
.category-pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.streak {
  padding: 9px 14px;
}

.icon-button {
  width: 38px;
  height: 38px;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 172px);
  margin: 0 auto;
}

.screen {
  display: none;
  min-height: calc(100vh - 172px);
  animation: reveal 0.38s ease both;
}

.screen.active {
  display: flex;
}

.hero-screen {
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 70px 0;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.question-kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.065em;
}

h1 {
  max-width: 650px;
  font-size: clamp(64px, 9vw, 124px);
  line-height: 0.82;
}

h1 em {
  position: relative;
  display: inline-block;
  color: var(--coral);
  font-style: normal;
  transform: rotate(-3deg);
}

.hero-description {
  max-width: 540px;
  margin: 32px 0;
  font-size: 19px;
  line-height: 1.55;
}

.primary-button {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  min-width: 260px;
  padding: 17px 20px;
  border: 2px solid var(--ink);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.primary-button:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.primary-button.dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--violet);
}

.microcopy {
  margin: 20px 0 0;
  color: rgba(17, 16, 15, 0.6);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  flex: 0 0 390px;
  height: 460px;
}

.odd-face {
  position: absolute;
  top: 80px;
  left: 44px;
  width: 300px;
  height: 300px;
  border: 3px solid var(--ink);
  border-radius: 46% 54% 60% 40%;
  background: var(--violet);
  box-shadow: var(--shadow);
  animation: morph 7s ease-in-out infinite alternate;
}

.eye {
  position: absolute;
  top: 90px;
  width: 46px;
  height: 62px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.eye::after {
  position: absolute;
  bottom: 10px;
  left: 15px;
  width: 12px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.eye-left {
  left: 72px;
}

.eye-right {
  right: 72px;
}

.mouth {
  position: absolute;
  bottom: 72px;
  left: 105px;
  width: 92px;
  height: 28px;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 50% 50%;
}

.orbit {
  position: absolute;
  border: 2px dashed var(--ink);
  border-radius: 50%;
}

.orbit-one {
  inset: 34px 0 25px;
  animation: spin 25s linear infinite;
}

.orbit-two {
  inset: 0 40px 0 30px;
  animation: spin 18s linear infinite reverse;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.tag-one {
  top: 20px;
  right: 10px;
}

.tag-two {
  bottom: 40px;
  left: 0;
  background: var(--acid);
  transform: rotate(5deg);
}

.tag-three {
  right: -10px;
  bottom: 110px;
  background: var(--coral);
  transform: rotate(-8deg);
}

.question-screen,
.result-screen,
.profile-screen {
  align-items: center;
  justify-content: center;
  padding: 50px 0 80px;
}

.question-screen {
  flex-direction: column;
}

.question-topline,
.progress-track,
.question-card {
  width: min(720px, 100%);
}

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-pill {
  padding: 7px 11px;
  background: var(--acid);
}

.progress-track {
  height: 7px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}

.progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--coral);
  transition: width 300ms ease;
}

.question-card,
.result-card,
.profile-card {
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.question-card {
  min-height: 490px;
  padding: clamp(30px, 6vw, 64px);
}

.question-card h2 {
  max-width: 620px;
  margin-bottom: 44px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.answer-button {
  min-height: 74px;
  padding: 15px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: 150ms ease;
}

.answer-button:hover {
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.question-note {
  margin: 24px 0 0;
  color: rgba(17, 16, 15, 0.55);
  font-size: 12px;
  text-align: center;
}

.result-card {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(32px, 7vw, 70px);
  background: var(--acid);
}

.result-stamp {
  position: absolute;
  top: -20px;
  right: 20px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(4deg);
}

.result-label {
  margin: 0 0 18px;
}

.result-card h2 {
  max-width: 550px;
  font-size: clamp(50px, 8vw, 88px);
  line-height: 0.9;
}

.verdict {
  min-height: 58px;
  margin: 26px 0 32px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.result-meter {
  display: flex;
  height: 34px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}

.meter-you,
.meter-rest {
  transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meter-you {
  width: 0;
  background: var(--violet);
}

.meter-rest {
  width: 100%;
  background: #fff;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 34px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-screen {
  flex-direction: column;
  gap: 32px;
}

.profile-card {
  width: min(560px, 100%);
  padding: clamp(28px, 6vw, 54px);
  background: var(--coral);
}

.score-ring {
  display: grid;
  width: 180px;
  height: 180px;
  margin: 25px auto;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 7px 7px 0 var(--ink);
  place-content: center;
  text-align: center;
  transform: rotate(-4deg);
}

.score-ring span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.score-ring small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.profile-card h2 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.95;
  text-align: center;
}

#profile-description {
  margin: 18px auto 28px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.profile-stat {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  font-size: 13px;
}

.profile-stat strong {
  max-width: 55%;
  text-align: right;
}

.profile-signature {
  margin-top: 30px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.profile-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-direction: column;
}

.unlock-button {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 290px;
  padding: 13px 17px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.unlock-button:hover {
  background: var(--acid);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.unlock-button span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.unlock-button strong {
  font-size: 16px;
}

.unlock-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  place-items: center;
  font-size: 12px;
}

.ad-screen {
  align-items: center;
  justify-content: center;
  padding: 50px 0 80px;
}

.ad-shell {
  width: min(680px, 100%);
}

.ad-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-placeholder {
  display: grid;
  min-height: 390px;
  padding: clamp(28px, 6vw, 58px);
  border: 3px solid var(--ink);
  background: var(--blue);
  box-shadow: var(--shadow);
  place-content: center;
  text-align: center;
}

.fake-ad-logo {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  transform: rotate(-7deg);
}

.ad-placeholder h2 {
  max-width: 520px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.94;
}

.ad-placeholder p {
  max-width: 450px;
  margin: 22px auto 0;
  font-weight: 600;
  line-height: 1.5;
}

.ad-progress {
  height: 10px;
  margin: 22px 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}

.ad-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 1s linear;
}

.ad-reward-button {
  width: 100%;
}

.ad-reward-button:disabled {
  cursor: wait;
  opacity: 0.45;
  transform: none;
}

.ad-disclaimer {
  margin: 15px 0 0;
  color: rgba(17, 16, 15, 0.6);
  font-size: 11px;
  text-align: center;
}

.text-button,
.close-button {
  border: 0;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.about-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #fff;
  background: var(--violet);
}

.about-content {
  max-width: 720px;
}

.about-content h2 {
  margin-bottom: 30px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.9;
}

.about-content p {
  max-width: 610px;
  font-size: 17px;
  line-height: 1.6;
}

.about-content .primary-button {
  margin-top: 25px;
}

.close-button {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: 20px;
  left: 50%;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: 200ms ease;
}

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

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  to {
    border-radius: 58% 42% 40% 60%;
    transform: rotate(4deg);
  }
}

@media (max-width: 850px) {
  .hero-screen {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 50px;
  }

  .hero-visual {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 26px, 1180px);
  }

  .site-header {
    min-height: 78px;
  }

  .streak {
    display: none;
  }

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

  .hero-screen {
    gap: 30px;
    padding: 45px 0 70px;
  }

  h1 {
    font-size: clamp(61px, 20vw, 88px);
  }

  .hero-description {
    margin: 24px 0;
    font-size: 16px;
  }

  .hero-visual {
    flex-basis: auto;
    width: 290px;
    height: 320px;
  }

  .odd-face {
    top: 46px;
    left: 39px;
    width: 220px;
    height: 220px;
  }

  .eye {
    top: 65px;
    width: 34px;
    height: 47px;
  }

  .eye-left {
    left: 53px;
  }

  .eye-right {
    right: 53px;
  }

  .eye::after {
    left: 10px;
  }

  .mouth {
    bottom: 48px;
    left: 75px;
    width: 70px;
  }

  .tag-three {
    right: 0;
    bottom: 70px;
  }

  .question-screen,
  .result-screen,
  .profile-screen {
    padding: 32px 0 60px;
  }

  .question-card {
    min-height: 450px;
    padding: 28px 20px;
  }

  .question-card h2 {
    margin-bottom: 30px;
    font-size: 43px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .answer-button {
    min-height: 62px;
  }

  .result-card {
    padding: 45px 24px 30px;
  }

  .result-card h2 {
    font-size: 58px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .unlock-button {
    width: 100%;
    min-width: 0;
  }

  .ad-placeholder {
    min-height: 360px;
    padding: 32px 20px;
  }

  footer {
    gap: 8px;
    flex-direction: column;
  }

  .footer-links {
    gap: 12px;
    flex-wrap: wrap;
  }
}

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