:root {
  --BB_ink: #20133d;
  --BB_muted: #746b82;
  --BB_cream: #fff9ef;
  --BB_white: #fff;
  --BB_violet: #6c3df4;
  --BB_violet-dark: #4c22c5;
  --BB_coral: #ff6159;
  --BB_yellow: #ffd84d;
  --BB_line: rgba(32, 19, 61, .13);
  --BB_shadow: 0 30px 80px rgba(58, 31, 125, .18);
}

* { box-sizing: border-box; }
html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--BB_ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 216, 77, .34), transparent 28rem),
    radial-gradient(circle at 95% 92%, rgba(115, 230, 189, .25), transparent 30rem),
    var(--BB_cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.BB_ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.BB_ambient-one {
  width: 19rem;
  height: 19rem;
  top: -9rem;
  right: -6rem;
  background: #f5c2ff;
}

.BB_ambient-two {
  width: 13rem;
  height: 13rem;
  bottom: -6rem;
  left: -4rem;
  background: #baf3e0;
}

.BB_page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.BB_event-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--BB_line);
}

.BB_brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--BB_ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
}

.BB_brand-mark {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--BB_white);
  background: var(--BB_ink);
  font-size: 12px;
  letter-spacing: 0;
}

.BB_event-pill {
  padding: 9px 14px;
  border: 1px solid var(--BB_line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.BB_experience {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: 54px 0 58px;
}

.BB_copy-panel { max-width: 520px; }

.BB_eyebrow {
  margin: 0 0 17px;
  color: var(--BB_coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
}

h1 {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  font-size: clamp(58px, 7.3vw, 104px);
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: .92;
  text-transform: uppercase;
}

.BB_title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.BB_title-top {
  align-self: flex-start;
  color: var(--BB_ink);
  text-align: left;
}

.BB_title-bottom {
  align-self: flex-end;
  margin-top: .14em;
  color: var(--BB_violet);
  font-size: .82em;
  line-height: 1;
  letter-spacing: -.055em;
  text-align: right;
}

.BB_intro {
  max-width: 490px;
  margin: 28px 0 30px;
  color: var(--BB_muted);
  font-size: 16px;
  line-height: 1.72;
}

.BB_open-form {
  max-width: 490px;
  padding: 22px;
  border: 1px solid rgba(108, 61, 244, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 54px rgba(64, 35, 120, .09);
  backdrop-filter: blur(14px);
}

.BB_open-form label {
  display: block;
  margin: 0 0 9px 2px;
  font-size: 13px;
  font-weight: 800;
}

.BB_phone-field { position: relative; }

.BB_phone-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  display: grid;
  color: var(--BB_violet);
  transform: translateY(-50%);
  pointer-events: none;
}

.BB_phone-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 17px 0 50px;
  border: 1.5px solid rgba(32, 19, 61, .16);
  border-radius: 15px;
  outline: none;
  color: var(--BB_ink);
  background: var(--BB_white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: border-color .2s, box-shadow .2s;
}

.BB_phone-field input::placeholder { color: #b3abbc; }
.BB_phone-field input:focus { border-color: var(--BB_violet); box-shadow: 0 0 0 4px rgba(108, 61, 244, .12); }

.BB_field-hint {
  margin: 9px 2px 16px;
  color: var(--BB_muted);
  font-size: 12px;
}

.BB_open-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px 0 21px;
  border: 0;
  border-radius: 15px;
  color: var(--BB_white);
  background: var(--BB_violet);
  box-shadow: 0 12px 24px rgba(108, 61, 244, .27);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.BB_open-button:hover:not(:disabled) {
  background: var(--BB_violet-dark);
  box-shadow: 0 15px 30px rgba(76, 34, 197, .3);
  transform: translateY(-2px);
}

.BB_open-button:focus-visible { outline: 3px solid var(--BB_yellow); outline-offset: 3px; }
.BB_open-button:disabled { cursor: wait; opacity: .72; }

.BB_button-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--BB_ink);
  background: var(--BB_yellow);
  font-size: 20px;
  letter-spacing: 0;
}

.BB_form-status {
  min-height: 0;
  margin-top: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.BB_form-status:not(:empty) { margin-top: 13px; padding: 11px 13px; }
.BB_form-status.BB_error { color: #9e2923; background: #fff0ee; }
.BB_form-status.BB_warning { color: #725700; background: #fff7d6; }

.BB_trust-row {
  display: flex;
  gap: 24px;
  margin: 17px 0 0 5px;
  color: var(--BB_muted);
  font-size: 12px;
  font-weight: 700;
}

.BB_trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.BB_trust-row i { color: var(--BB_violet); font-size: 10px; font-style: normal; font-weight: 900; }

.BB_visual-panel {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.BB_visual-panel::before {
  content: "";
  position: absolute;
  z-index: -3;
  width: min(100%, 580px);
  aspect-ratio: 1;
  border-radius: 46% 54% 58% 42% / 44% 37% 63% 56%;
  background: linear-gradient(145deg, #f1e9ff, #dcd0ff 55%, #f6c8ff);
  transform: rotate(-7deg);
}

.BB_visual-panel::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 190px;
  height: 190px;
  top: 46px;
  right: 5%;
  border: 1px solid rgba(108, 61, 244, .18);
  border-radius: 50%;
}

.BB_start-hint {
  width: min(330px, calc(100% - 36px));
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 34px 24px;
  border: 1px dashed rgba(108, 61, 244, .28);
  border-radius: 28px;
  color: var(--BB_muted);
  background: rgba(255, 255, 255, .52);
  text-align: center;
  backdrop-filter: blur(12px);
}

.BB_start-hint[hidden] { display: none; }
.BB_start-hint span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 20px;
  color: var(--BB_ink);
  background: var(--BB_yellow);
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  transform: rotate(-7deg);
}
.BB_start-hint strong { color: var(--BB_ink); font-size: 13px; letter-spacing: .13em; }
.BB_start-hint small { font-size: 12px; }

.BB_bag-scene {
  position: relative;
  width: 340px;
  height: 455px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  outline: none;
  filter: drop-shadow(0 34px 32px rgba(57, 30, 120, .24));
  color: inherit;
  background: transparent;
  cursor: pointer;
  transform: rotate(4deg);
  -webkit-tap-highlight-color: transparent;
}

.BB_bag-scene[hidden] { display: none; }
.BB_bag-scene:focus-visible { outline: 4px solid var(--BB_yellow); outline-offset: 8px; border-radius: 34px; }
.BB_bag-scene:disabled { cursor: wait; }

.BB_bag-shadow {
  position: absolute;
  width: 270px;
  height: 42px;
  bottom: -3px;
  border-radius: 50%;
  background: rgba(43, 23, 78, .2);
  filter: blur(15px);
}

.BB_bag { position: relative; width: 310px; height: 420px; }

.BB_tear-strip {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  border-bottom: 2px dashed rgba(255, 255, 255, .6);
  border-radius: 30px 30px 5px 5px;
  color: var(--BB_white);
  background: var(--BB_coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  transform-origin: left center;
}

.BB_tear-strip::before,
.BB_tear-strip::after,
.BB_bag-body::before,
.BB_bag-body::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px 24px 2px 2px;
}

.BB_tear-strip::after {
  inset: auto 0 -5px;
  height: 10px;
  border: 0;
  background: linear-gradient(135deg, transparent 45%, var(--BB_coral) 46% 54%, transparent 55%) 0 0 / 14px 10px repeat-x;
}

.BB_tear-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--BB_coral);
  background: var(--BB_white);
  font-size: 16px;
  letter-spacing: 0;
}

.BB_bag.BB_is-ready { animation: BB_bag-idle 1.25s ease-in-out infinite; }
.BB_bag.BB_is-ready .BB_tear-arrow { animation: BB_touch-pulse .9s ease-in-out infinite; }
.BB_bag.BB_is-shaking { animation: BB_bag-shake .65s cubic-bezier(.36, .07, .19, .97) both; }
.BB_bag-scene:hover .BB_bag.BB_is-ready { animation-duration: .72s; }

.BB_bag-body {
  position: absolute;
  inset: 64px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px 7px 34px 34px;
  color: var(--BB_white);
  background: linear-gradient(145deg, #875cff 0%, var(--BB_violet) 48%, #4d20c9 100%);
}

.BB_bag-body::before { border-radius: 2px 2px 28px 28px; }
.BB_bag-body::after { inset: auto 0 0; height: 19px; border: 0; border-top: 2px dashed rgba(255, 255, 255, .35); border-radius: 0; }

.BB_bag-badge {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .12), 0 13px 40px rgba(31, 11, 95, .25);
  color: var(--BB_ink);
  background: var(--BB_yellow);
  transform: rotate(-7deg);
}

.BB_bag-badge span { font-family: Georgia, serif; font-size: 82px; font-weight: 900; line-height: 1; }
.BB_bag-body p { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .28em; }
.BB_bag-body strong { margin-top: 2px; font-size: 34px; font-weight: 950; letter-spacing: -.04em; }
.BB_bag-body small { margin-top: 18px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.BB_bag-spark { position: absolute; color: var(--BB_yellow); }
.BB_spark-one { top: 52px; left: 34px; font-size: 24px; }
.BB_spark-two { top: 104px; right: 36px; font-size: 16px; }
.BB_spark-three { right: 52px; bottom: 52px; font-size: 25px; }

.BB_bag.BB_is-opening .BB_tear-strip { animation: BB_tear-away 1s cubic-bezier(.33, .8, .2, 1) forwards; }
.BB_bag.BB_is-opening .BB_bag-body { animation: BB_bag-pop .85s .15s ease both; }
.BB_bag.BB_is-open { opacity: 0; transform: scale(.82); transition: opacity .38s, transform .38s; }

@keyframes BB_bag-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes BB_touch-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes BB_bag-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-12px) rotate(-3deg); }
  30% { transform: translateX(11px) rotate(3deg); }
  45% { transform: translateX(-9px) rotate(-2deg); }
  60% { transform: translateX(8px) rotate(2deg); }
  75% { transform: translateX(-5px) rotate(-1deg); }
}

@keyframes BB_tear-away {
  0% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(16px, -4px) rotate(2deg); }
  100% { transform: translate(260px, -155px) rotate(29deg); opacity: 0; }
}

@keyframes BB_bag-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035) rotate(-2deg); }
}

.BB_prize-card {
  position: absolute;
  z-index: 5;
  width: min(420px, calc(100% - 36px));
  padding: 35px 34px 32px;
  border: 1px solid rgba(108, 61, 244, .17);
  border-radius: 30px;
  text-align: center;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--BB_shadow);
  backdrop-filter: blur(18px);
  animation: BB_prize-in .6s cubic-bezier(.2, .9, .3, 1.15) both;
}

.BB_prize-card[hidden] { display: none; }
@keyframes BB_prize-in { from { opacity: 0; transform: translateY(24px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
.BB_result-kicker { display: inline-block; color: var(--BB_violet); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.BB_prize-card.BB_is-repeat { border-color: rgba(255, 97, 89, .28); }
.BB_prize-card.BB_is-repeat .BB_result-kicker { color: var(--BB_coral); }
.BB_prize-card.BB_is-repeat .BB_gift-icon { background: #ffd9d5; }

.BB_gift-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 18px auto;
  border-radius: 20px;
  color: var(--BB_ink);
  background: var(--BB_yellow);
  box-shadow: 0 10px 25px rgba(255, 196, 0, .25);
  font-size: 31px;
  transform: rotate(-7deg);
}

.BB_result-phone { margin: 0 auto 18px; color: var(--BB_ink); font-size: 18px; font-weight: 850; letter-spacing: .04em; line-height: 1.4; }
.BB_result-label { margin: 0 0 7px; color: var(--BB_muted); font-size: 13px; }
.BB_prize-card h2 { margin: 0; color: var(--BB_ink); font-size: clamp(29px, 5vw, 42px); font-weight: 950; letter-spacing: -.045em; line-height: 1.06; }
.BB_result-message { margin: 19px 0 0; padding: 12px 14px; border-radius: 13px; color: #54410b; background: #fff7d7; font-size: 12px; font-weight: 750; line-height: 1.5; }

.BB_confetti { position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.BB_confetti-piece { position: absolute; top: 48%; left: 50%; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: BB_confetti-burst 1.15s ease-out forwards; }
@keyframes BB_confetti-burst { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); } 100% { opacity: 0; transform: translate(var(--BB_x), var(--BB_y)) rotate(var(--BB_r)); } }

.BB_footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--BB_line);
  color: var(--BB_muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .BB_experience { grid-template-columns: 1fr; gap: 8px; padding: 42px 0 46px; }
  .BB_copy-panel { width: 100%; max-width: 620px; margin: 0 auto; text-align: center; }
  h1 { margin-inline: auto; }
  .BB_intro, .BB_open-form { margin-left: auto; margin-right: auto; }
  .BB_trust-row { flex-wrap: wrap; justify-content: center; }
  .BB_open-form { text-align: left; }
  .BB_visual-panel { min-height: 530px; }
}

@media (max-width: 560px) {
  .BB_page-shell { width: min(100% - 24px, 480px); }
  .BB_event-header { min-height: 64px; }
  .BB_brand { gap: 8px; font-size: 14px; }
  .BB_brand-mark { width: 34px; height: 30px; border-radius: 9px; }
  .BB_event-pill { padding: 8px 10px; font-size: 9px; }
  .BB_experience { gap: 0; padding: 28px 0 28px; }
  .BB_eyebrow { margin-bottom: 14px; font-size: 10px; }
  h1 {
    max-width: 100%;
    padding-inline: clamp(4px, 2vw, 12px);
    font-size: clamp(46px, 15.5vw, 66px);
    line-height: .94;
  }
  .BB_title-bottom { margin-top: .16em; font-size: .78em; }
  .BB_intro { margin: 18px auto 22px; font-size: 14px; line-height: 1.6; }
  .BB_open-form { width: 100%; padding: 15px; border-radius: 18px; }
  .BB_phone-field input { min-height: 54px; font-size: 17px; }
  .BB_open-button { min-height: 54px; }
  .BB_trust-row { gap: 10px 16px; margin-top: 15px; font-size: 10px; }
  .BB_visual-panel { min-height: 440px; margin-top: 8px; }
  .BB_start-hint { width: calc(100% - 28px); padding: 28px 18px; }
  .BB_bag-scene { width: 280px; height: 390px; transform: rotate(3deg) scale(.78); }
  .BB_visual-panel::before { width: 108%; }
  .BB_prize-card { width: calc(100% - 20px); padding: 28px 20px 25px; border-radius: 24px; }
  .BB_result-phone { font-size: 16px; }
  .BB_prize-card h2 { font-size: clamp(29px, 10vw, 38px); }
  .BB_footer { justify-content: center; text-align: center; }
  .BB_footer span:last-child { display: none; }
}

@media (max-width: 380px) {
  .BB_page-shell { width: calc(100% - 20px); }
  .BB_event-pill { display: none; }
  .BB_experience { padding-top: 24px; }
  h1 { padding-inline: 2px; font-size: clamp(43px, 14.8vw, 56px); }
  .BB_open-form { padding: 14px; }
  .BB_visual-panel { min-height: 405px; }
  .BB_bag-scene { transform: rotate(3deg) scale(.7); }
  .BB_prize-card { width: calc(100% - 8px); padding-inline: 17px; }
}

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