:root {
  --green: #8ca26e;
  --green-dark: #263d2c;
  --green-deep: #172a20;
  --yellow: #ffca08;
  --cream: #f2eee2;
  --ink: #111111;
  --white: #ffffff;
  --red: #d54d43;
  --success: #568953;
  --muted: #6b6457;
  --line: rgba(17, 17, 17, 0.16);
  --header-height: 96px;
  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'Poppins', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible + .custom-check {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  padding: 0 max(48px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: 200px;
  height: 68px;
}

.brand img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.header-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.screen {
  position: fixed;
  inset: var(--header-height) 0 0;
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1), visibility 0s 520ms;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.eyebrow > span {
  width: 34px;
  height: 2px;
  background: var(--yellow);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

.screen--welcome {
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--green-deep);
}

.welcome-photo,
.welcome-scrim {
  position: absolute;
  inset: 0;
}

.welcome-photo {
  background: url('./assets/pappaluni-hero.webp') center / cover no-repeat;
  transform: scale(1.015);
  animation: heroIn 1.3s cubic-bezier(.2,.8,.2,1) both;
}

.welcome-scrim {
  background:
    linear-gradient(90deg, rgba(10, 18, 13, 0.94) 0%, rgba(10, 18, 13, 0.78) 39%, rgba(10, 18, 13, 0.12) 72%, rgba(10, 18, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 44%);
}

.welcome-content {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.welcome-content h1,
.follow-content h2,
.result-shell h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

.welcome-content h1 {
  max-width: 800px;
  margin: 18px 0 12px;
  font-size: clamp(70px, 8.2vw, 126px);
  line-height: 0.84;
  letter-spacing: -0.025em;
}

.welcome-content h1 em,
.follow-content h2 em {
  color: var(--yellow);
  font-style: normal;
}

.welcome-lead {
  margin: 24px 0 30px;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.55;
}

.primary-button,
.instagram-button,
.reveal-button,
.next-button {
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  min-width: 236px;
  height: 62px;
  padding: 0 8px 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.primary-button--yellow {
  color: var(--ink);
  background: var(--yellow);
}

.button-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 19px;
}

.welcome-foot {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.foot-line {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.bean-stamp {
  position: absolute;
  right: 48px;
  bottom: 36px;
  z-index: 2;
  width: 116px;
  height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 48% 52% 44% 56% / 58% 43% 57% 42%;
  transform: rotate(8deg);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  animation: float 5s ease-in-out infinite;
}

.bean-stamp strong {
  margin: 2px 0;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.03em;
}

.screen--quiz {
  background:
    radial-gradient(circle at 90% 0%, rgba(140, 162, 110, .22), transparent 34%),
    var(--cream);
}

.quiz-shell {
  position: relative;
  z-index: 2;
  padding-top: clamp(34px, 6vh, 70px);
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.08em;
}

.progress-copy strong {
  color: var(--ink);
  font-size: 31px;
  font-weight: 400;
}

.progress-track {
  height: 3px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(17,17,17,.12);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--green);
  transition: width 420ms ease;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  padding-top: clamp(45px, 8vh, 88px);
}

.question-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
}

.question-column h2 {
  max-width: 570px;
  min-height: 205px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(55px, 6.1vw, 90px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.fact-card {
  max-width: 500px;
  min-height: 66px;
  margin-top: 34px;
  padding: 15px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--muted);
  opacity: .82;
}

.fact-card.is-visible {
  color: var(--ink);
  opacity: 1;
}

.fact-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.fact-card p {
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.answer-button {
  position: relative;
  min-height: 126px;
  padding: 25px 23px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.answer-button::after {
  content: '';
  position: absolute;
  inset: auto -18px -28px auto;
  width: 66px;
  height: 88px;
  border: 1px solid currentColor;
  border-radius: 48% 52% 44% 56% / 58% 43% 57% 42%;
  opacity: .08;
  transform: rotate(26deg);
}

.answer-button:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--green);
  background: var(--white);
}

.answer-button:disabled {
  cursor: default;
}

.answer-letter {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.answer-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.answer-button.is-correct {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
  animation: answerPulse 320ms ease;
}

.answer-button.is-wrong {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  animation: answerShake 320ms ease;
}

.answer-button.is-muted {
  opacity: .42;
}

.next-button {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}

.next-button:hover {
  background: var(--green-dark);
}

.quiz-number {
  position: absolute;
  right: -30px;
  bottom: -145px;
  color: rgba(140, 162, 110, .11);
  font-family: var(--display);
  font-size: 360px;
  line-height: 1;
  pointer-events: none;
}

.screen--follow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--white);
  background: var(--green-deep);
}

.follow-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,202,8,.26), transparent 30%),
    linear-gradient(135deg, var(--green) 0%, #5f7651 100%);
}

.follow-art::before,
.follow-art::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 315px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 50% 50% 45% 55% / 60% 40% 60% 40%;
}

.follow-art::before {
  top: -100px;
  left: -80px;
  transform: rotate(35deg);
}

.follow-art::after {
  right: -80px;
  bottom: -150px;
  transform: rotate(-34deg);
}

.phone-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  height: calc(100% - 56px);
  max-height: 570px;
  aspect-ratio: 9 / 19.2;
  padding: 6px;
  border: 1px solid #454545;
  border-radius: 47px;
  background: #080808;
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(0,0,0,.38), 0 0 0 2px rgba(0,0,0,.8);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.phone-card::before,
.phone-card::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: #292929;
}

.phone-card::before { top: 22%; height: 12%; }
.phone-card::after { top: 37%; height: 18%; }

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
  color: #101010;
}

.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 5;
  width: 34%;
  height: 20px;
  border-radius: 20px;
  background: #050505;
  transform: translateX(-50%);
}

.phone-status {
  height: 38px;
  padding: 12px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
}

.phone-status > span {
  letter-spacing: .06em;
}

.instagram-chrome {
  height: 36px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ededed;
}

.instagram-chrome > strong {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.instagram-chrome > div {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.insta-profile {
  padding: 12px 11px 9px;
}

.insta-profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.insta-profile-top > img {
  width: 57px;
  height: 57px;
  border: 2px solid #d4d4d4;
  border-radius: 50%;
  object-fit: cover;
}

.insta-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.insta-stats span,
.insta-stats strong,
.insta-stats small {
  display: block;
}

.insta-stats strong { font-size: 11px; }
.insta-stats small { margin-top: 1px; color: #555; font-size: 7px; }

.insta-name {
  display: block;
  margin-top: 8px;
  font-size: 9px;
}

.insta-profile p {
  margin: 2px 0 7px;
  font-size: 7px;
  line-height: 1.5;
}

.insta-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 25px;
  gap: 4px;
}

.insta-profile-actions span {
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #efefef;
  font-size: 7px;
  font-weight: 700;
}

.insta-profile-actions span:first-child {
  background: #4a8df6;
  color: #fff;
}

.insta-tabs {
  height: 29px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 12px;
}

.insta-tabs span:first-child {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-bottom: 1.5px solid #111;
  color: #111;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #fff;
}

.insta-grid figure {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.insta-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.insta-grid i {
  position: absolute;
  top: 4px;
  right: 5px;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

.iphone-home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 34%;
  height: 3px;
  border-radius: 5px;
  background: #111;
  transform: translateX(-50%);
}

.follow-content {
  align-self: center;
  width: min(510px, calc(100% - 96px));
  margin: 0 auto;
}

.follow-content h2 {
  margin: 20px 0 24px;
  font-size: clamp(57px, 5.7vw, 86px);
  line-height: .9;
  letter-spacing: -.015em;
}

.follow-content > p:not(.eyebrow):not(.follow-note) {
  max-width: 510px;
  margin: 0 0 27px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.75;
}

.follow-content > p strong {
  color: var(--white);
}

.instagram-button,
.reveal-button {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}

.instagram-button {
  color: var(--ink);
  background: var(--yellow);
}

.instagram-button:hover {
  filter: brightness(1.05);
}

.instagram-icon {
  font-size: 25px;
}

.follow-confirm {
  min-height: 44px;
  margin: 8px 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  cursor: not-allowed;
  transition: color 180ms ease;
}

.follow-confirm.is-enabled {
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

.follow-confirm input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
}

.follow-confirm input:checked + .custom-check {
  border-color: var(--yellow);
  background: var(--yellow);
}

.follow-confirm input:checked + .custom-check::after {
  content: '✓';
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.reveal-button {
  color: var(--white);
  background: var(--green);
}

.reveal-button:disabled {
  color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  cursor: not-allowed;
}

.follow-note {
  margin: 10px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 10px;
}

.screen--result {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,202,8,.16), transparent 34%),
    var(--cream);
}

.screen--result.is-success {
  color: var(--white);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,202,8,.19), transparent 34%),
    var(--green-dark);
}

#confetti-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.result-shell {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 1.14fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  padding: 24px 0;
}

.result-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 420ms ease, filter 420ms ease, transform 420ms ease;
}

.screen--result.is-wheel-spinning .result-summary {
  opacity: .18;
  filter: blur(4px);
  pointer-events: none;
  transform: scale(.94);
}

.screen--result:not(.is-success) .result-shell {
  display: flex;
  justify-content: center;
}

.screen--result:not(.is-success) .result-summary {
  width: min(620px, 100%);
}

.result-badge {
  width: 55px;
  height: 55px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 21px;
  transform: rotate(-8deg);
}

.result-eyebrow {
  justify-content: center;
}

.screen--result.is-success .result-eyebrow {
  color: rgba(255,255,255,.7);
}

.result-shell h2 {
  margin: 14px 0 6px;
  font-size: clamp(62px, 6.4vw, 96px);
  line-height: .9;
  color: var(--green-dark);
}

.screen--result.is-success .result-shell h2 {
  color: var(--white);
}

.score-ring {
  width: 128px;
  height: 86px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--green-dark);
}

.screen--result.is-success .score-ring {
  color: var(--yellow);
}

.score-ring strong {
  font-family: var(--display);
  font-size: 79px;
  font-weight: 400;
  line-height: 1;
}

.score-ring span {
  font-family: var(--display);
  font-size: 27px;
}

.result-copy {
  max-width: 530px;
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.screen--result.is-success .result-copy {
  color: rgba(255,255,255,.76);
}

.result-actions {
  display: flex;
  gap: 10px;
}

.primary-button--dark {
  height: 54px;
  color: var(--white);
  background: var(--ink);
}

.primary-button--dark {
  min-width: 205px;
}

.screen--result.is-success .primary-button--dark {
  color: var(--ink);
  background: var(--yellow);
}

.prize-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.screen--result.is-success .prize-note {
  color: rgba(255,255,255,.47);
}

.wheel-panel {
  --wheel-size: clamp(270px, 31vw, 370px);
  min-width: 0;
  padding: 18px clamp(18px, 2.2vw, 30px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 70px rgba(0,0,0,.2);
  text-align: center;
  backdrop-filter: blur(12px);
  transform-origin: center;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms ease, background 420ms ease;
}

.screen--result.is-wheel-spinning .wheel-panel {
  z-index: 9;
  background: rgba(255,255,255,.13);
  box-shadow: 0 34px 100px rgba(0,0,0,.42), 0 0 0 1px rgba(255,202,8,.72), 0 0 70px rgba(255,202,8,.25);
  transform: scale(1.075);
}

.wheel-panel.is-preparing {
  animation: wheelPanelBreathe 850ms ease-in-out infinite alternate;
}

.screen--result:not(.is-success) .wheel-panel {
  display: none;
}

.wheel-heading p {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.wheel-heading h3 {
  margin: 2px 0 7px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(31px, 3.2vw, 45px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.wheel-stage {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: 0 auto 9px;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.27));
}

.wheel-stage::before,
.wheel-stage::after {
  content: '';
  position: absolute;
  inset: -7%;
  z-index: -1;
  border: 1px solid rgba(255,202,8,.72);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.screen--result.is-wheel-spinning .wheel-stage::before {
  animation: fortuneHalo 1.25s ease-out infinite;
}

.screen--result.is-wheel-spinning .wheel-stage::after {
  animation: fortuneHalo 1.25s .55s ease-out infinite;
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  border-top: 31px solid var(--white);
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.28));
  transform: translateX(-50%);
}

.screen--result.is-wheel-spinning .wheel-pointer {
  animation: pointerTick 190ms ease-in-out infinite alternate;
}

.fortune-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 9px solid var(--white);
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    var(--yellow) 0 25%,
    #f4efe2 25% 50%,
    var(--green) 50% 75%,
    #66a7ce 75% 100%
  );
  box-shadow: inset 0 0 0 3px var(--green-dark), 0 0 0 4px rgba(255,255,255,.18);
  transition: transform 5s cubic-bezier(.12,.68,.08,1);
  will-change: transform;
}

.fortune-wheel::before,
.fortune-wheel::after {
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.fortune-wheel::before {
  inset: 8px;
  border: 2px dashed rgba(23,42,32,.34);
  border-radius: 50%;
}

.fortune-wheel::after {
  inset: 0;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(23,42,32,.28) 50%, transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), rgba(23,42,32,.28) 50%, transparent calc(50% + 1px));
}

.wheel-label {
  position: absolute;
  z-index: 2;
  width: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--green-deep);
  font-size: clamp(7px, .78vw, 10px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .07em;
}

.wheel-label b {
  margin-bottom: 4px;
  font-size: clamp(17px, 2vw, 26px);
  line-height: 1;
}

.wheel-label--beans {
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.wheel-label--pen {
  top: 50%;
  right: 1%;
  transform: translateY(-50%) rotate(90deg);
}

.wheel-label--cap {
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.wheel-label--notebook {
  top: 50%;
  left: 1%;
  transform: translateY(-50%) rotate(-90deg);
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 29%;
  aspect-ratio: 1;
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid var(--green-deep);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 7px 20px rgba(0,0,0,.3);
  clip-path: circle(50% at 50% 50%);
  transform: translate(-50%, -50%);
}

.wheel-center img {
  width: 82%;
  height: auto;
  max-height: 70%;
  display: block;
  object-fit: contain;
}

.spin-button {
  width: min(100%, 370px);
  min-height: 49px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: var(--ink);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.spin-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.spin-button:disabled {
  cursor: default;
  opacity: .82;
}

.wheel-result {
  min-height: 31px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.59);
  font-size: 9px;
  line-height: 1.45;
}

.wheel-result.is-revealed {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
}

.wheel-result.is-error {
  color: #ffd7c9;
  font-weight: 700;
}

.fortune-wheel.is-complete {
  filter: saturate(1.13) brightness(1.04);
}

.result-beans span {
  position: absolute;
  z-index: 1;
  width: 72px;
  height: 104px;
  border: 1px solid rgba(140,162,110,.42);
  border-radius: 48% 52% 44% 56% / 58% 43% 57% 42%;
}

.is-success .result-beans span {
  border-color: rgba(255,255,255,.16);
}

.result-beans span:nth-child(1) { left: 8%; top: 17%; transform: rotate(28deg); }
.result-beans span:nth-child(2) { right: 9%; top: 23%; transform: rotate(-25deg) scale(.7); }
.result-beans span:nth-child(3) { left: 19%; bottom: 8%; transform: rotate(-42deg) scale(.5); }
.result-beans span:nth-child(4) { right: 22%; bottom: 9%; transform: rotate(19deg) scale(.55); }
.result-beans span:nth-child(5) { right: 3%; bottom: -3%; transform: rotate(64deg) scale(1.2); }

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-9px) rotate(5deg); }
}

@keyframes answerPulse {
  50% { transform: scale(1.025); }
}

@keyframes answerShake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes wheelPanelBreathe {
  to { box-shadow: 0 34px 110px rgba(0,0,0,.45), 0 0 0 2px rgba(255,202,8,.78), 0 0 90px rgba(255,202,8,.34); }
}

@keyframes fortuneHalo {
  0% { opacity: .72; transform: scale(.88); }
  100% { opacity: 0; transform: scale(1.22); }
}

@keyframes pointerTick {
  from { transform: translateX(-50%) rotate(-4deg); }
  to { transform: translateX(-50%) rotate(4deg) translateY(4px); }
}

@media (max-width: 900px) {
  :root { --header-height: 78px; }
  .site-header { padding: 0 25px; }
  .brand { width: 158px; height: 58px; }
  .header-meta { display: none; }
  .shell { width: min(100% - 48px, 720px); }
  .welcome-scrim {
    background: linear-gradient(90deg, rgba(10,18,13,.92), rgba(10,18,13,.36)), linear-gradient(0deg, rgba(0,0,0,.42), transparent 48%);
  }
  .welcome-content h1 { font-size: clamp(68px, 13vw, 104px); }
  .bean-stamp { right: 24px; bottom: 24px; transform: scale(.78) rotate(8deg); }
  .quiz-shell { padding-top: 30px; }
  .quiz-layout { grid-template-columns: 1fr; gap: 22px; padding-top: 27px; }
  .question-column h2 { min-height: 0; font-size: clamp(49px, 9vw, 72px); }
  .fact-card { margin-top: 18px; }
  .answer-button { min-height: 100px; }
  .screen--follow { grid-template-columns: .85fr 1.15fr; }
  .phone-card { height: calc(100% - 48px); }
  .follow-content { width: calc(100% - 54px); }
  .follow-content h2 { font-size: clamp(51px, 8vw, 70px); }
  .result-shell {
    grid-template-columns: minmax(0, .92fr) minmax(290px, 1.08fr);
    gap: 22px;
  }
  .result-shell h2 { font-size: clamp(55px, 8vw, 68px); }
  .wheel-panel { --wheel-size: min(32vw, 290px); padding: 15px 16px 17px; }
  .wheel-heading h3 { font-size: 34px; }
}

@media (max-width: 640px) {
  body { overflow: hidden; }
  .shell { width: calc(100% - 36px); }
  .site-header { height: var(--header-height); padding: 0 18px; }
  .brand { width: 146px; }
  .screen { overflow-y: auto; }
  .screen--welcome { min-height: calc(100dvh - var(--header-height)); }
  .welcome-photo { background-position: 61% center; }
  .welcome-scrim { background: linear-gradient(90deg, rgba(10,18,13,.92), rgba(10,18,13,.48)); }
  .welcome-content { padding-bottom: 70px; }
  .welcome-content h1 { margin-top: 14px; font-size: clamp(59px, 18vw, 79px); }
  .welcome-lead { margin: 20px 0 26px; font-size: 15px; }
  .primary-button { width: 100%; min-width: 0; }
  .bean-stamp { display: none; }
  .welcome-foot { bottom: 17px; }
  .quiz-shell { padding-bottom: 28px; }
  .quiz-topline { align-items: flex-end; }
  .eyebrow { font-size: 9px; gap: 8px; }
  .eyebrow > span { width: 23px; }
  .progress-copy { font-size: 16px; }
  .progress-copy strong { font-size: 25px; }
  .progress-track { margin-top: 12px; }
  .quiz-layout { padding-top: 24px; }
  .question-kicker { margin-bottom: 7px; font-size: 10px; }
  .question-column h2 { font-size: clamp(44px, 13vw, 60px); line-height: .94; }
  .fact-card { min-height: 58px; margin-top: 13px; padding: 10px 0; }
  .fact-card p { font-size: 10px; }
  .answers-grid { gap: 9px; }
  .answer-button { min-height: 91px; padding: 15px 13px; gap: 10px; }
  .answer-letter { width: 25px; height: 25px; }
  .answer-text { font-size: 11px; }
  .next-button { height: 52px; }
  .quiz-number { display: none; }
  .screen--follow { display: block; }
  .follow-art { display: none; }
  .follow-content { width: calc(100% - 36px); padding: 38px 0 34px; }
  .follow-content h2 { margin: 15px 0 19px; font-size: clamp(50px, 15vw, 68px); }
  .follow-content > p:not(.eyebrow):not(.follow-note) { font-size: 12px; }
  .screen--result { overflow-y: auto; }
  .result-shell { grid-template-columns: 1fr; gap: 23px; padding: 28px 0 38px; }
  .screen--result.is-success .wheel-panel { grid-row: 1; }
  .screen--result.is-success .result-summary { grid-row: 2; }
  .screen--result.is-wheel-spinning .result-summary { opacity: .08; transform: scale(.97); }
  .screen--result.is-wheel-spinning .wheel-panel { transform: scale(1.035); }
  .result-badge { width: 46px; height: 46px; margin-bottom: 13px; }
  .result-shell h2 { margin-top: 12px; font-size: clamp(60px, 20vw, 86px); }
  .score-ring { height: 72px; }
  .score-ring strong { font-size: 67px; }
  .result-copy { margin: 10px auto 20px; font-size: 12px; }
  .result-actions { width: 100%; flex-direction: column; }
  .primary-button--dark { width: 100%; }
  .prize-note { margin-top: 13px; }
  .wheel-panel { --wheel-size: min(76vw, 280px); width: 100%; padding: 17px 14px 20px; }
  .wheel-heading h3 { font-size: 36px; }
  .wheel-label { font-size: 8px; }
  .wheel-label b { font-size: 20px; }
  .spin-button { width: 100%; min-height: 53px; }
  .wheel-result { max-width: 290px; }
}

@media (max-width: 350px) {
  .answers-grid { grid-template-columns: 1fr; gap: 8px; }
  .answer-button { min-height: 68px; padding: 12px 15px; }
  .answer-text { font-size: 12px; }
  .quiz-shell { padding-bottom: 20px; }
}

@media (max-height: 730px) and (min-width: 641px) {
  .welcome-content h1 { font-size: 82px; }
  .welcome-lead { margin: 16px 0 21px; font-size: 16px; }
  .quiz-shell { padding-top: 26px; }
  .quiz-layout { padding-top: 28px; }
  .question-column h2 { min-height: 150px; font-size: 66px; }
  .fact-card { margin-top: 16px; }
  .answer-button { min-height: 98px; }
  .follow-content h2 { margin: 13px 0 16px; font-size: 63px; }
  .follow-content > p:not(.eyebrow):not(.follow-note) { margin-bottom: 17px; line-height: 1.55; }
  .result-badge { margin-bottom: 10px; }
  .result-shell h2 { margin-top: 8px; font-size: 78px; }
  .result-copy { margin: 7px auto 16px; }
  .wheel-panel { --wheel-size: min(28vw, 320px); padding-top: 13px; padding-bottom: 15px; }
  .wheel-heading h3 { font-size: 37px; }
  .wheel-result { margin-top: 7px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-height: 64px; }
  .site-header { padding: 0 24px; }
  .brand { width: 132px; height: 52px; }
  .screen { overflow-y: auto; }
  .screen--welcome { min-height: 410px; align-items: flex-start; }
  .welcome-content { padding-top: 20px; padding-bottom: 36px; }
  .welcome-content h1 { margin-top: 7px; font-size: 58px; }
  .welcome-lead { margin: 8px 0 12px; font-size: 13px; line-height: 1.45; }
  .screen--welcome .primary-button { height: 54px; }
  .screen--welcome .button-arrow { width: 40px; height: 40px; }
  .welcome-foot, .bean-stamp { display: none; }
  .quiz-shell { padding-top: 24px; padding-bottom: 30px; }
  .screen--follow { min-height: 500px; }
  .follow-content { padding: 28px 0; }
  .screen--result { min-height: 520px; overflow-y: auto; }
  .result-shell { padding: 28px 0; }
}

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