.halloween-mystery-page {
  background: #09070e;
}

.halloween-box {
  min-height: 70vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 106, 19, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.16), transparent 30rem),
    #09070e;
  color: #f8fafc;
}

.halloween-box button {
  font: inherit;
}

.halloween-box__hero {
  position: relative;
  padding: clamp(1rem, 2.6vw, 2.1rem) 0 clamp(2.2rem, 5vw, 4rem);
}

.halloween-box__hero::before,
.halloween-box__hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.halloween-box__hero::before {
  top: 0;
  right: -2rem;
  width: min(36vw, 420px);
  aspect-ratio: 1;
  background: url("../images/events/halloween/halloween-cobweb-top-right.svg") top right / contain no-repeat;
  opacity: 0.17;
}

.halloween-box__hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 190px;
  background: url("../images/events/halloween/halloween-mist-bottom.svg") center bottom / cover no-repeat;
  opacity: 0.18;
}

.halloween-box__hero > .container,
.halloween-box__seo > .container {
  position: relative;
  z-index: 1;
}

.halloween-box__shell {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 143, 64, 0.28);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(23, 18, 30, 0.98), rgba(12, 10, 18, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.halloween-box__shell::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: -7px;
  width: 54px;
  height: 54px;
  background: url("../images/events/halloween/halloween-pumpkin-icon.svg") center / contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.halloween-box__web {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: url("../images/events/halloween/halloween-web-corner-small.svg") top right / contain no-repeat;
  opacity: 0.24;
  pointer-events: none;
}

.halloween-box__intro {
  max-width: 720px;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) 1rem;
}

.halloween-box__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ff9a50;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.halloween-box__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6a13;
  box-shadow: 0 0 14px rgba(255, 106, 19, 0.74);
}

.halloween-box__intro h1 {
  margin: 0.45rem 0 0.45rem;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.halloween-box__intro p {
  max-width: 660px;
  margin: 0;
  color: #c9c3d1;
  font-size: clamp(0.92rem, 1.7vw, 1.04rem);
  line-height: 1.55;
}

.halloween-box__wizard {
  margin: 0 clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.75rem, 2.5vw, 1.5rem);
  overflow: hidden;
  border: 1px solid #342c40;
  border-radius: 14px;
  background: rgba(9, 8, 13, 0.72);
}

.halloween-box__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #342c40;
  background: rgba(255, 255, 255, 0.025);
}

.halloween-box__tabs button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-right: 1px solid #342c40;
  background: transparent;
  color: #8f8999;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.halloween-box__tabs button:last-child {
  border-right: 0;
}

.halloween-box__tabs button span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #4a4057;
  border-radius: 50%;
  font-size: 0.7rem;
}

.halloween-box__tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 106, 19, 0.13), rgba(255, 106, 19, 0.04));
  box-shadow: inset 0 -3px #ff6a13;
}

.halloween-box__tabs button.is-active span,
.halloween-box__tabs button.is-complete span {
  border-color: #ff6a13;
  color: #ffffff;
  background: #ff6a13;
}

.halloween-box__panel {
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

.halloween-box__panel[hidden] {
  display: none;
}

.halloween-box__choice-grid {
  display: grid;
  gap: 0.7rem;
}

.halloween-box__choice-grid--type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.halloween-box__choice-grid--strength {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.halloween-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid #3a3245;
  border-radius: 11px;
  background: #14101b;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.halloween-choice:hover,
.halloween-choice:focus-visible {
  border-color: rgba(255, 106, 19, 0.78);
  background: #1a131f;
  outline: 0;
  transform: translateY(-1px);
}

.halloween-choice.is-selected {
  border-color: #ff6a13;
  background: linear-gradient(135deg, rgba(255, 106, 19, 0.13), rgba(124, 58, 237, 0.08));
  box-shadow: 0 0 0 1px rgba(255, 106, 19, 0.2);
}

.halloween-choice:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.halloween-choice__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 154, 80, 0.42);
  border-radius: 11px;
  background: rgba(255, 106, 19, 0.09);
  color: #ff9a50;
  font-size: 1rem;
  font-weight: 950;
}

.halloween-choice strong,
.halloween-choice small {
  display: block;
}

.halloween-choice strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.halloween-choice small {
  margin-top: 0.16rem;
  color: #9f98a9;
  font-size: 0.76rem;
  line-height: 1.35;
}

.halloween-choice__tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 17px;
  height: 17px;
  border: 1px solid #50475a;
  border-radius: 50%;
}

.halloween-choice.is-selected .halloween-choice__tick {
  border-color: #ff6a13;
  background: #ff6a13;
  box-shadow: inset 0 0 0 4px #1a131f;
}

.halloween-choice--strength {
  display: block;
  min-height: 70px;
  text-align: center;
}

.halloween-box__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2f2838;
}

.halloween-box__panel-head span,
.halloween-box__panel-head strong {
  display: block;
}

.halloween-box__panel-head span {
  color: #8f8999;
  font-size: 0.72rem;
  font-weight: 750;
}

.halloween-box__panel-head strong {
  margin-top: 0.1rem;
  color: #ffffff;
  font-size: 0.94rem;
}

.halloween-box__panel-head button,
.halloween-box__reshuffle {
  border: 0;
  background: transparent;
  color: #ff9a50;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.halloween-box__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.halloween-box__fieldset + .halloween-box__fieldset {
  margin-top: 0.95rem;
}

.halloween-box__fieldset legend {
  margin-bottom: 0.55rem;
  color: #d7d1de;
  font-size: 0.78rem;
  font-weight: 850;
}

.halloween-box__sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #3a3245;
  border-radius: 10px;
}

.halloween-box__sizes button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.05rem;
  border: 0;
  border-right: 1px solid #3a3245;
  background: #14101b;
  color: #b8b1c1;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.halloween-box__sizes button span,
.halloween-box__sizes button small {
  display: block;
  color: inherit;
}

.halloween-box__sizes button small {
  font-size: 0.66rem;
  font-weight: 750;
}

.halloween-box__sizes button:last-child {
  border-right: 0;
}

.halloween-box__sizes button.is-active {
  color: #ffffff;
  background: rgba(255, 106, 19, 0.16);
  box-shadow: inset 0 0 0 1px #ff6a13;
}

.halloween-box__sizes button:disabled {
  color: #625b69;
  background: #100d15;
  cursor: not-allowed;
}

.halloween-box__generate {
  width: 100%;
  min-height: 48px;
  margin-top: 1rem;
  border: 1px solid #ff6a13;
  background: linear-gradient(135deg, #ff7a1a, #e95009);
  box-shadow: 0 10px 28px rgba(255, 106, 19, 0.2);
}

.halloween-box__generate:disabled,
.halloween-box__checkout .btn:disabled {
  border-color: #4a4350;
  background: #302a36;
  color: #8f8999;
  box-shadow: none;
  cursor: not-allowed;
}

.halloween-box__status {
  min-height: 1.15rem;
  margin: 0.45rem 0 0;
  color: #ffb280;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.halloween-box__result {
  margin: 0 clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.75rem, 2.5vw, 1.5rem);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border: 1px solid rgba(124, 58, 237, 0.38);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 16, 29, 0.97), rgba(13, 10, 18, 0.97));
}

.halloween-box__result[hidden] {
  display: none;
}

.halloween-box__result-head,
.halloween-box__checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.halloween-box__result-head h2 {
  margin: 0.2rem 0 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.halloween-box__reshuffle {
  min-height: 38px;
  padding: 0.4rem 0.72rem;
  border: 1px solid rgba(255, 154, 80, 0.5);
  border-radius: 999px;
}

.halloween-box__products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.mystery-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #352d40;
  border-radius: 11px;
  background: #100d15;
}

.mystery-product__image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1b1721;
}

.mystery-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mystery-product__count,
.mystery-product__strength {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.mystery-product__count {
  top: 6px;
  left: 6px;
  background: #ff6a13;
  color: #ffffff;
}

.mystery-product__strength {
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(124, 58, 237, 0.55);
  background: rgba(255, 255, 255, 0.94);
  color: #5b21b6;
}

.mystery-product__copy {
  padding: 0.56rem;
}

.mystery-product__copy span,
.mystery-product__copy strong {
  display: block;
}

.mystery-product__copy span {
  overflow: hidden;
  color: #a49cad;
  font-size: 0.62rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mystery-product__copy strong {
  display: -webkit-box;
  min-height: 2.4em;
  margin-top: 0.16rem;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.halloween-box__checkout {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #342c40;
}

.halloween-box__checkout > div span,
.halloween-box__checkout > div strong,
.halloween-box__checkout > div small {
  display: block;
}

.halloween-box__checkout > div span {
  color: #97909f;
  font-size: 0.72rem;
}

.halloween-box__checkout > div strong {
  margin-top: 0.06rem;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.1;
}

.halloween-box__checkout > div small {
  margin-top: 0.12rem;
  color: #65d899;
  font-size: 0.72rem;
  font-weight: 800;
}

.halloween-box__checkout .btn {
  min-width: 230px;
  min-height: 48px;
  border: 1px solid #ff6a13;
  background: linear-gradient(135deg, #ff7a1a, #e95009);
}

.halloween-box__note {
  margin: 0.65rem 0 0;
  color: #8f8999;
  font-size: 0.72rem;
  line-height: 1.45;
}

.halloween-box__seo {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(255, 106, 19, 0.12);
  background: #0d0a12;
}

.halloween-box__seo-container {
  width: min(100%, 960px);
}

.halloween-box__seo-card,
.halloween-box__faq,
.halloween-box__notice {
  border: 1px solid #2e2736;
  border-radius: 15px;
  background: #141019;
}

.halloween-box__seo-card,
.halloween-box__faq {
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.halloween-box__seo-card h2,
.halloween-box__faq h2 {
  margin: 1.5rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.2;
}

.halloween-box__seo-card h2:first-child,
.halloween-box__faq h2:first-child {
  margin-top: 0;
}

.halloween-box__seo-card p,
.halloween-box__seo-card li,
.halloween-box__faq p,
.halloween-box__notice {
  color: #beb7c7;
  font-size: 0.92rem;
  line-height: 1.7;
}

.halloween-box__seo-card a {
  color: #ff9a50;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.halloween-box__seo-card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.halloween-box__faq {
  margin-top: 1rem;
}

.halloween-box__faq details {
  border-top: 1px solid #302939;
}

.halloween-box__faq details:first-of-type {
  border-top: 0;
}

.halloween-box__faq summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.halloween-box__faq summary::-webkit-details-marker {
  display: none;
}

.halloween-box__faq summary span {
  color: #ff7a1a;
  font-size: 1.15rem;
  transition: transform 0.18s ease;
}

.halloween-box__faq details[open] summary span {
  transform: rotate(45deg);
}

.halloween-box__faq p {
  margin: -0.15rem 0 0.9rem;
}

.halloween-box__notice {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-color: rgba(255, 106, 19, 0.22);
  font-size: 0.78rem;
}

body.kangoo-theme--light.halloween-mystery-page .halloween-box__intro p,
body.kangoo-theme--light.halloween-mystery-page .halloween-choice small,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__panel-head span,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__fieldset legend,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__status,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__note,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__seo-card p,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__seo-card li,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__faq p,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__notice {
  color: #d4cedb !important;
}

body.kangoo-theme--light.halloween-mystery-page .halloween-box__tabs button,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__sizes button,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__checkout > div span,
body.kangoo-theme--light.halloween-mystery-page .mystery-product__copy span {
  color: #b9b2c2 !important;
}

body.kangoo-theme--light.halloween-mystery-page .halloween-box__tabs button.is-active,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__sizes button.is-active,
body.kangoo-theme--light.halloween-mystery-page .halloween-choice,
body.kangoo-theme--light.halloween-mystery-page .halloween-choice strong,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__panel-head strong,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__result-head h2,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__checkout > div strong,
body.kangoo-theme--light.halloween-mystery-page .mystery-product__copy strong,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__seo-card h2,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__faq h2,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__faq summary {
  color: #ffffff !important;
}

body.kangoo-theme--light.halloween-mystery-page .halloween-box__seo-card a,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__panel-head button,
body.kangoo-theme--light.halloween-mystery-page .halloween-box__reshuffle {
  color: #ff9a50 !important;
}

@media (max-width: 820px) {
  .halloween-box__products {
    display: flex;
    padding-bottom: 0.45rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .halloween-box__products::-webkit-scrollbar {
    display: none;
  }

  .mystery-product {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  .halloween-box__hero {
    padding-top: 0.65rem;
  }

  .halloween-box__hero > .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .halloween-box__shell {
    border-radius: 15px;
  }

  .halloween-box__intro {
    padding: 1rem 0.9rem 0.8rem;
  }

  .halloween-box__intro h1 {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
  }

  .halloween-box__wizard,
  .halloween-box__result {
    margin-right: 0.55rem;
    margin-left: 0.55rem;
  }

  .halloween-box__choice-grid--type {
    grid-template-columns: 1fr;
  }

  .halloween-box__choice-grid--strength {
    gap: 0.45rem;
  }

  .halloween-choice--strength {
    min-height: 74px;
    padding: 0.65rem 0.35rem;
  }

  .halloween-choice--strength small {
    font-size: 0.68rem;
  }

  .halloween-box__checkout {
    align-items: stretch;
    flex-direction: column;
  }

  .halloween-box__checkout .btn {
    width: 100%;
    min-width: 0;
  }

  .halloween-box__shell::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .halloween-choice,
  .halloween-box__faq summary span {
    transition: none;
  }
}
