/* ============ BLACK FRIDAY SPIN & SURVEY ============ */
* {
  box-sizing: border-box;
}

html.spin-game-locked,
body.spin-game-locked {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
}

body.spin-game-locked {
  touch-action: pan-y;
}

.spin-game {
  color: #fff;
  /* width: 420px; */
  width: 100%;
  margin: 0 auto;
  height: 100%;
  position: relative;
  --spin-intro-extra: 0px;
  margin-bottom: var(--spin-intro-extra, 0px);
}

.spin-game--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1500;
  margin: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

.spin-game--unlocked {
  background: #000;
  }

.spin-game__inner {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.spin-game--fullscreen .spin-game__inner {
  width: 100%;
  margin: 0 auto;
}

.spin-game--fullscreen.spin-game--intro-open .spin-game__inner {
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}

/* Wheel + primary button */

.spin-game__content {
  padding: 40px 0 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
  gap: 43px;
}

.spin-game__content--email-padding {
  padding: 100px 0 60px;
}

.spin-game__wheel {
  position: relative;
  width: 340px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4e9ff;
  border: 7px solid #000;
}

.spin-game--unlocked .spin-game__wheel {
  border-color: #ff70ba;
}

.spin-game__pointer {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  aspect-ratio: 1.3 / 1;
  border-radius: 0 0 999px 999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.spin-game__pointer::before,
.spin-game__pointer::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.spin-game__pointer::before {
  background: #fff;
}

.spin-game__pointer::after {
  inset: 15% 20% 20%;
  background: #000;
}

.spin-game--unlocked .spin-game__pointer {
  top: 1px;
  width: 36px;
}

.spin-game--unlocked .spin-game__pointer::after {
  inset: 15% 22% 22%;
}

.spin-game__canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 7px solid #ffffff;
}

.spin-game__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80px, 24vw);
  height: min(80px, 24vw);
  border-radius: 50%;
  background: #ffecf0;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.spin-game__gift {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  max-width: 110px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.spin-game__gift--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.spin-game__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 100%);
  text-align: center;
  gap: 12px;
}

.spin-game__button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.spin-game__button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

.spin-game__button--primary {
  background: #fe2c55;
  color: #fff;
  border: none;
}

.spin-game__button--primary:not(:disabled):hover {
  background: #b6002a;
  transform: translateY(-2px);
}

.spin-game__button--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.spin-game__button--ghost:not(:disabled):hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.spin-game__spins-left {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* Intro / survey overlay */

.spin-game__intro {
  position: absolute;
  left: 50%;
  top: 205px;
  transform: translate(-50%, 0);
  width: 100%;
  background: #000;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition:
    opacity 0.4s ease;
}

.spin-game__content--email-padding + .spin-game__intro {
  top: 265px;
}

.spin-game__intro--survey {
  position: fixed;
  inset: 0;
  transform: none;
  max-width: none;
  width: 100%;
  background: #000;
  z-index: 2000;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 48px;
  overflow-y: auto;
}

.spin-game__intro-content {
  width: 420px;
  padding: 50px 19px 32px;
  text-align: center;
  position: relative;
}

.spin-game__intro-title {
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.spin-game__intro-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  color: #fff;
}

.spin-game__intro-star--left {
  position: absolute;
  width: 27px;
  height: 27px;
  object-fit: contain;
  pointer-events: none;
  top: 37px;
  left: 16%;
}

.spin-game__intro-star--right {
  position: absolute;
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
  top: 162px;
  right: 8%;
}

.spin-game__intro-button {
  width: 100%;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  background: var(--color-btn-bg, #ff2f51);
  color: #fff;
  font-weight: 500;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.spin-game__intro-button:hover {
  background: #b6002a;
  transform: translateY(-1px);
}

/* Survey panel */

.survey-panel {
  max-width: 420px;
  margin: 0 auto;
  position: absolute;
  inset: 0;
  padding: 0 26px 0;
  box-sizing: border-box;
  display: none;
}

.survey-panel--active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.survey-templates {
  display: none;
}

.survey-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  margin: 60px 0 54px;
  overflow: hidden;
}

.survey-progress__bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.3s ease;
}

.survey-content {
  display: flex;
  flex-direction: column;
  color: #fff;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
  justify-content: flex-start;
}

.survey-question {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 32px;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.survey-option {
  width: 100%;
  max-width: 370px;
  align-self: center;
  padding: 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #fff;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  color: #fff;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.survey-option:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  transform: translateY(-1px);
}

/* Checking text */

.survey-check-lines-wrapper {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
}

.survey-check-lines {
  font-size: 16px;
  text-align: center;
}

/* Survey close button */

.survey-close-button {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 2;
}

.survey-close-button::before,
.survey-close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.survey-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.survey-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Rules in survey */

.survey-rules-outer {
  display: flex;
  flex-direction: column;
  margin: auto 0;
  height: 100%;
  justify-content: center;
}

.survey-rules__title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 24px;
}

.survey-rules__list {
  list-style: decimal;
  padding-left: 18px;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 20px;
}

.survey-rules__note {
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 20px;
}

.survey-rules__button {
  width: 100%;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 16px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.survey-rules__button:hover {
  background: #fff;
  color: #000;
}

/* Underage message */

.survey-underage-outer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
  height: 100%;
}

.survey-underage__emoji {
  font-size: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.survey-underage__text {
  font-size: 24px;
  margin-bottom: 32px;
  line-height: 1.4;
  text-align: center;
}

.survey-underage__button {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 16px;
  background: #fe2c55;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.survey-underage__button:hover {
  background: #b6002a;
}

/* ======= SPIN RESULT MODAL ======= */

.spin-result {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.75);
}

.spin-result--visible {
  opacity: 1;
  pointer-events: auto;
}

.spin-result__dialog {
  position: relative;
  background: #000;
  border-radius: 24px;
  padding: 92px 24px 32px;
  text-align: center;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.spin-result__confetti {
  position: absolute;
  inset: 0;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.spin-result__confetti-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.spin-result__confetti-top-img {
  width: 100%;
  height: 100%;
  display: block;
}

.spin-result__emoji {
  font-size: 70px;
  z-index: 1;
}

.spin-result__title {
  position: relative;
  width: 280px;
  margin: 0 auto 7px;
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
  z-index: 1;
}

.spin-result__subtitle {
  position: relative;
  width: 280px;
  margin: 0 auto 36px;
  font-size: 20px;
  z-index: 1;
}

.spin-result__price-row {
  position: relative;
  margin-bottom: 42px;
  z-index: 1;
}

.spin-result__price-old {
  font-size: 22px;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
}

.spin-result__price-new {
  font-size: 42px;
  font-weight: 700;
  color: #ffcf4d;
}

.spin-result__timer {
  position: relative;
  margin-bottom: 42px;
  z-index: 1;
}

.spin-result__timer-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.spin-result__timer-values {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.spin-result__timer-box {
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spin-result__timer-number {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.spin-result__timer-unit {
  font-size: 10px;
  opacity: 0.7;
}

.spin-result__timer-separator {
  font-size: 20px;
  font-weight: 700;
}

.spin-result__timer-note {
  font-size: 14px;
  line-height: 18px;
  color: #E6E6E6;
}

.spin-result__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.spin-result__actions .spin-game__button {
  max-width: 420px;
  margin: 0 auto;
}

.spin-result__section--hidden {
  display: none;
}

.spin-result__close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

.spin-result__close::before,
.spin-result__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.spin-result__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.spin-result__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile */
@media (max-width: 575px) {
  .spin-game__intro-title {
    font-size: 32px;
}
}

/* Intro email form */

.spin-intro-form {
  width: 100%;
  margin-top: 24px;
}

.spin-intro-form .waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spin-intro-form .waitlist-form__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.spin-intro-form .waitlist-form__inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.spin-intro-form .waitlist-form__input-wrap {
  width: 100%;
}

.spin-intro-form .waitlist-form input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  padding: 12px;
  font-size: 22px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.spin-intro-form .waitlist-form button {
  width: 100%;
  line-height: 48px;
  height: 50px;
  padding: 0px;
  text-align: center;
  border-radius: 8px;
  background: var(--color-btn-bg, #ff2f51);
  color: #fff;
  font-weight: 500;
  font-size: 22px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.spin-intro-form .waitlist-form button:hover {
  background: var(--color-btn-bg-hover, #b6002a);
}

.spin-intro-form .field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #e74c3c;
  display: none;
}

.spin-intro-form .waitlist-form input.invalid {
  border-color: #e74c3c;
}

.spin-intro-form__legal {
  margin-top: 60px;
  font-size: 14px;
  color: #E6E6E680;
  text-align: center;
}

.spin-intro-form__legal a {
  color: #E6E6E680;
  text-decoration: underline;
}
