* { box-sizing: border-box; }

.spbfly-wheel-section {
  position: relative;
  padding: 54px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.92), transparent 26%),
    linear-gradient(180deg, #dff3ff 0%, #f8fdff 52%, #d9eaf6 100%);
}

.spbfly-wheel-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 180px at 12% 14%, rgba(255,255,255,.94), rgba(255,255,255,0) 72%),
    radial-gradient(520px 160px at 84% 10%, rgba(255,255,255,.88), rgba(255,255,255,0) 72%),
    radial-gradient(760px 220px at 50% 4%, rgba(223,239,251,.66), rgba(223,239,251,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(245,251,255,.24) 42%, rgba(233,245,255,.42) 100%);
  opacity: .98;
}

.spbfly-wheel-section::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 32%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.42) 50%, rgba(255,255,255,.94) 100%),
    linear-gradient(168deg, transparent 0 22%, rgba(238,246,251,.96) 22.2% 33%, transparent 33.2% 100%),
    linear-gradient(195deg, transparent 0 43%, rgba(223,234,243,.86) 43.2% 55%, transparent 55.4% 100%),
    linear-gradient(176deg, transparent 0 60%, rgba(245,249,252,.97) 60.2% 74%, transparent 74.4% 100%),
    linear-gradient(184deg, transparent 0 74%, rgba(212,228,239,.78) 74.2% 88%, transparent 88.4% 100%);
  filter: blur(1px);
  opacity: .88;
  clip-path: polygon(0 100%, 0 52%, 8% 44%, 17% 62%, 28% 38%, 40% 66%, 50% 34%, 63% 63%, 75% 42%, 87% 67%, 100% 48%, 100% 100%);
}

.spbfly-prop-lottery {
  position: relative;
  isolation: isolate;
  width: min(1260px, 96vw);
  margin: 0 auto;
  padding: 34px;
  border-radius: 44px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(228,245,255,0.80)),
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.90), transparent 38%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 30px 90px rgba(61, 116, 158, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.spbfly-prop-lottery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.82), transparent 22%),
    radial-gradient(circle at 78% 10%, rgba(255,255,255,0.80), transparent 24%),
    radial-gradient(circle at 52% 8%, rgba(226,242,252,0.55), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.46));
  opacity: 0.95;
}

.cloud {
  position: absolute;
  z-index: -3;
  width: 260px;
  height: 90px;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  filter: blur(8px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.84);
}

.cloud::before {
  width: 120px;
  height: 120px;
  left: 34px;
  top: -48px;
}

.cloud::after {
  width: 150px;
  height: 150px;
  right: 28px;
  top: -72px;
}

.cloud-1 { left: 5%; top: 12%; }
.cloud-2 { right: 6%; top: 8%; transform: scale(1.08); }
.cloud-3 { right: 24%; bottom: 18%; opacity: 0.62; transform: scale(0.82); }

.spbfly-brand {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 12px 30px rgba(58, 103, 137, 0.12);
  color: #162743;
  font-weight: 950;
  letter-spacing: 0.06em;
  font-size: 22px;
}

.brand-wing { color: #d7a33a; font-size: 22px; }

.lottery-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 650px) 1fr;
  gap: 42px;
  align-items: center;
  margin-top: 24px;
}

.airplane-side {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.plane-wing {
  position: absolute;
  top: 50%;
  width: 420px;
  height: 72px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(98, 143, 176, 0.26), rgba(255,255,255,0.70), rgba(82, 128, 164, 0.20));
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 22px 40px rgba(37, 79, 112, 0.10);
}

.wing-left {
  right: 56%;
  transform: skewY(8deg) rotate(-2deg);
  border-radius: 999px 0 0 999px;
}

.wing-right {
  left: 56%;
  transform: skewY(-8deg) rotate(2deg);
  border-radius: 0 999px 999px 0;
}

.plane-nose {
  position: relative;
  width: min(610px, 88vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.98) 0 13%, rgba(216, 234, 246, 0.92) 14% 22%, transparent 23%),
    conic-gradient(
      from -112.5deg,
      #f7fbff 0deg 45deg,
      #dfeff9 45deg 90deg,
      #f8fcff 90deg 135deg,
      #d8ecf8 135deg 180deg,
      #fbfdff 180deg 225deg,
      #dceef9 225deg 270deg,
      #ffffff 270deg 315deg,
      #dceefa 315deg 360deg
    );
  border: 12px solid rgba(231, 240, 247, 0.96);
  box-shadow:
    0 34px 70px rgba(47, 99, 136, 0.22),
    inset 0 0 0 9px rgba(255,255,255,0.92),
    inset 0 -28px 46px rgba(61, 105, 138, 0.12),
    inset 0 24px 38px rgba(255,255,255,0.90);
}

.plane-nose::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.94), rgba(202, 224, 238, 0.70) 58%, rgba(78, 123, 157, 0.20) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.76),
    inset 0 -42px 80px rgba(40, 82, 113, 0.12);
}

.plane-nose::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(28, 63, 101, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.76),
    0 0 0 1px rgba(255,255,255,0.42);
}

.nose-glass {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 34%, transparent 52%),
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.78), transparent 28%);
}

.nose-lines {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-conic-gradient(
      from -112.5deg,
      rgba(20, 54, 91, 0.22) 0deg 1deg,
      transparent 1deg 44deg,
      rgba(255,255,255,0.65) 44deg 45deg
    );
}

.nose-rivets {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 85% 15%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 100% 50%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 85% 85%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 50% 100%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 15% 85%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 0% 50%, #d7a33a 0 4px, transparent 5px),
    radial-gradient(circle at 15% 15%, #d7a33a 0 4px, transparent 5px);
  opacity: 0.78;
}

.prize-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 122px;
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  color: #162743;
  transform:
    rotate(var(--angle))
    translateX(222px)
    rotate(calc(-1 * var(--angle)))
    translate(-50%, -50%);
  border-radius: 18px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.prize-chip strong {
  display: block;
  font-size: 16px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.prize-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  color: #d7a33a;
  font-size: 24px;
  font-weight: 950;
}

.prize-chip.is-active {
  background: rgba(255,255,255,0.80);
  box-shadow:
    0 12px 28px rgba(203, 151, 42, 0.20),
    inset 0 0 0 1px rgba(215, 163, 58, 0.32);
}

.propeller {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 390px;
  height: 390px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  transition: transform 4.35s cubic-bezier(0.12, 0.82, 0.16, 1);
}

.blade {
  position: absolute;
  left: 50%;
  top: calc(50% - 15px);
  width: 174px;
  height: 30px;
  transform-origin: 0 50%;
  border-radius: 999px 55% 55% 999px;
  background:
    linear-gradient(90deg, rgba(19, 39, 66, 0.96), rgba(54, 82, 111, 0.88), rgba(192, 208, 219, 0.76));
  box-shadow:
    0 8px 18px rgba(28, 61, 94, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

.blade::before {
  content: "";
  position: absolute;
  inset: 5px 12px 5px 28px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.42), transparent);
}

.blade-main { transform: rotate(0deg); }

.blade-main::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 34px solid #d7a33a;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  filter: drop-shadow(0 6px 8px rgba(123, 87, 19, 0.20));
}

.blade-two { transform: rotate(120deg); }
.blade-three { transform: rotate(240deg); }

.propeller.is-spinning .blade {
  filter: blur(2px);
  opacity: 0.82;
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #7a4f10;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,0.96), rgba(238, 220, 178, 0.92) 40%, rgba(166, 126, 52, 0.92) 100%);
  border: 4px solid rgba(255,255,255,0.72);
  box-shadow:
    0 12px 28px rgba(44, 77, 103, 0.18),
    inset 0 0 0 8px rgba(255,255,255,0.20);
}

.plane-intake {
  position: absolute;
  bottom: 70px;
  width: 120px;
  height: 48px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(3, 15, 27, 0.90) 0 46%, rgba(46, 77, 103, 0.74) 48% 64%, rgba(210, 226, 237, 0.70) 65% 100%);
  box-shadow: inset 0 8px 20px rgba(0,0,0,0.28);
  z-index: 3;
}

.intake-left { left: 14%; transform: rotate(4deg); }
.intake-right { right: 14%; transform: rotate(-4deg); }

.result-side {
  position: relative;
  z-index: 4;
  padding: 38px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.60));
  border: 1px solid rgba(255,255,255,0.84);
  box-shadow:
    0 24px 55px rgba(71, 122, 159, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.86);
  color: #2f5f92;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.result-side h1 {
  margin: 0;
  color: #162743;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 580px;
  margin: 24px 0;
  color: rgba(22, 39, 67, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.benefit {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 10px 22px rgba(56, 102, 139, 0.08);
}

.benefit > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(145deg, #edf7ff, #ffffff);
  color: #2f5f92;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(47, 95, 146, 0.12);
}

.benefit strong {
  display: block;
  font-size: 16px;
  color: #162743;
}

.benefit p {
  margin: 4px 0 0;
  color: rgba(22, 39, 67, 0.62);
  font-size: 14px;
  line-height: 1.35;
}

.main-btn {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #d7a33a, #f4c86a);
  color: #2d1a02;
  font-weight: 950;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(33, 65, 100, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(33, 65, 100, 0.20);
}

.main-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.main-btn span {
  font-size: 24px;
}

.main-btn em {
  margin-left: auto;
  font-style: normal;
  font-size: 26px;
}

.gift-result {
  display: none;
  margin: 22px 0 16px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,248,228,0.76));
  border: 1px solid rgba(215, 163, 58, 0.34);
  color: #162743;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.28;
  box-shadow: 0 16px 30px rgba(163, 118, 35, 0.10);
}

.gift-result.show { display: block; }

.gift-form {
  display: none;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.gift-form.show { display: grid; }

.gift-form input[type="text"],
.gift-form input[type="tel"] {
  width: 100%;
  border: 1px solid rgba(117, 164, 197, 0.48);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.82);
  color: #162743;
  font-size: 16px;
  outline: none;
}

.gift-form input:focus {
  border-color: rgba(215, 163, 58, 0.72);
  box-shadow: 0 0 0 4px rgba(215, 163, 58, 0.14);
}

.gift-form input::placeholder { color: rgba(22, 39, 67, 0.42); }

.send { margin-top: 4px; }

.personal-note {
  margin: -2px 0 0;
  color: rgba(22, 39, 67, 0.52);
  font-size: 12px;
  line-height: 1.35;
}

.note {
  margin: 18px 0 0;
  color: rgba(22, 39, 67, 0.58);
  font-size: 13px;
  line-height: 1.46;
}

.reset-btn {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: rgba(22, 39, 67, 0.56);
  text-decoration: underline;
  cursor: pointer;
}

.bottom-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: 0 18px 38px rgba(62, 112, 149, 0.14);
  backdrop-filter: blur(12px);
}

.bottom-bar div {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  border-right: 1px solid rgba(83, 131, 166, 0.18);
}

.bottom-bar div:last-child { border-right: 0; }

.bottom-bar span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #2f5f92;
  background: rgba(255,255,255,0.74);
  font-size: 24px;
}

.bottom-bar strong { color: #162743; font-size: 15px; }

.bottom-bar p {
  margin: 4px 0 0;
  color: rgba(22, 39, 67, 0.58);
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 1020px) {
  .spbfly-prop-lottery {
    padding: 22px;
    border-radius: 30px;
  }

  .lottery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .airplane-side {
    min-height: auto;
    padding: 28px 0 8px;
  }

  .plane-nose { width: min(560px, 88vw); }

  .bottom-bar { grid-template-columns: repeat(2, 1fr); }
  .bottom-bar div:nth-child(2) { border-right: 0; }
  .bottom-bar div { border-bottom: 1px solid rgba(83, 131, 166, 0.14); }
  .bottom-bar div:nth-child(3),
  .bottom-bar div:nth-child(4) { border-bottom: 0; }
}

@media (max-width: 680px) {
  .spbfly-wheel-section {
    padding: 16px 0;
  }

  .spbfly-prop-lottery {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 16px;
  }

  .spbfly-brand {
    font-size: 18px;
    padding: 8px 16px;
  }

  .plane-nose {
    width: min(430px, 94vw);
    border-width: 8px;
  }

  .plane-nose::before { inset: -16px; }
  .plane-nose::after { inset: 30px; }
  .nose-lines { inset: 30px; }

  .propeller {
    width: 300px;
    height: 300px;
  }

  .blade {
    width: 132px;
    height: 24px;
    top: calc(50% - 12px);
  }

  .blade-main::after {
    right: -20px;
    border-left-width: 26px;
    border-top-width: 15px;
    border-bottom-width: 15px;
  }

  .hub {
    width: 88px;
    height: 88px;
    font-size: 14px;
  }

  .prize-chip {
    width: 94px;
    min-height: 60px;
    padding: 6px;
    transform:
      rotate(var(--angle))
      translateX(157px)
      rotate(calc(-1 * var(--angle)))
      translate(-50%, -50%);
  }

  .prize-chip strong { font-size: 12px; }
  .prize-icon { width: 24px; height: 20px; font-size: 18px; }

  .plane-intake,
  .wing-left,
  .wing-right { display: none; }

  .result-side {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .result-side h1 { font-size: 42px; }
  .lead { font-size: 16px; }

  .bottom-bar { grid-template-columns: 1fr; }
  .bottom-bar div { border-right: 0; border-bottom: 1px solid rgba(83, 131, 166, 0.14); }
  .bottom-bar div:last-child { border-bottom: 0; }
}

.spbfly-wheel-section #giftName,
.spbfly-wheel-section #giftPhone,
.spbfly-wheel-section #giftPrize + button {
  visibility: visible !important;
  opacity: 1 !important;
}

.spbfly-wheel-section #giftName,
.spbfly-wheel-section #giftPhone {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}
.spbfly-wheel-section .bottom-bar {
  display: none !important;
}

/* === SPBFLY wheel: compact & tidy override (2026-07-11) === */
@media (min-width: 681px) {
  .spbfly-wheel-section { padding: 30px 0; }
  .spbfly-prop-lottery { width: min(900px, 94vw); padding: 24px; }
  .lottery-grid { grid-template-columns: minmax(300px, 400px) 1fr; gap: 30px; margin-top: 12px; }
  .airplane-side { min-height: auto; padding: 12px 0; }
  .plane-nose { width: min(390px, 78vw); border-width: 9px; }
  .plane-nose::before { inset: -16px; }
  .plane-nose::after { inset: 28px; }
  .nose-lines { inset: 28px; }
  .propeller { width: 262px; height: 262px; }
  .blade { width: 116px; height: 22px; top: calc(50% - 11px); }
  .hub { width: 84px; height: 84px; font-size: 13px; }
  .prize-chip {
    width: 92px; min-height: 58px; padding: 6px;
    transform: rotate(var(--angle)) translateX(146px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
  }
  .prize-chip strong { font-size: 12px; }
  .prize-icon { width: 24px; height: 20px; font-size: 18px; }
  /* remove clutter for a cleaner, smaller block */
  .plane-wing, .plane-intake { display: none; }
  .spbfly-prop-lottery .cloud { display: none; }
  .result-side h1 { font-size: clamp(30px, 3vw, 44px); }
  .lead { font-size: 16px; margin: 16px 0; max-width: 440px; }
}
