:root {
  --bg: #ececec;
  --card: #f5f5f5;
  --text: #373246;
  --muted: #5a5763;
  --purple: #6d45f6;
  --yellow: #f7d100;
  --yellow-dark: #e0b900;
  --border: rgba(0,0,0,0.06);
  --shadow-soft: 0 10px 24px rgba(22, 18, 43, 0.08);
  --radius-xl: 18px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page-shell {
  min-height: 100vh;
  padding: 38px 12px;
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 0.95fr);
  gap: 8px;
  align-items: stretch;
}

.wheel-card,
.content-card {
  background: #f1f1f1;
  border-radius: var(--radius-xl);
  min-height: 540px;
  position: relative;
}

.wheel-card {
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  aspect-ratio: 1516 / 1690;
}

.wheel-scene {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.wheel-scene__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.wheel-wrap {
  position: absolute;
  --wheel-rim-right: 89.1%;
  left: 50%;
  top: 50%;
  transform: translate(-50.8%, -51.1%);
  width: min(85%, 560px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

@media (min-width: 768px) {
  .wheel-wrap {
    width: 512px;
    max-width: 85%;
    left: calc(50% - 2px);
    top: calc(50% - 3px);
    transform: translate(-50%, -50%);
  }
}

.wheel {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-idle {
  animation: idleSpin 15s linear infinite;
}

@media (min-width: 768px) {
  .wheel-idle {
    animation-duration: 24s;
  }
}

@keyframes idleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pointer {
  position: absolute;
  left: var(--wheel-rim-right);
  top: 50%;
  right: auto;
  width: 78px;
  height: auto;
  z-index: 3;
  transform: translate(-27%, -50%) rotate(90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}

.wheel__art {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.content-card {
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
  min-height: 488px;
}

.content-stack {
  position: relative;
  min-height: 100%;
}

.content-screen {
  position: absolute;
  inset: 0;
  padding: 28px 26px 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.content-screen.is-active {
  opacity: 1;
  visibility: visible;
}

#pageShell #screenIntro {
  padding: 34px 30px 0;
  overflow: hidden;
}

#pageShell .title {
  margin: 0;
  max-width: 544px;
  font-size: 31px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

#pageShell .title .accent {
  color: var(--purple);
  font-weight: 600;
}

#pageShell #screenIntro .title {
  max-width: 500px;
  font-size: 50px;
  line-height: 1.11;
  letter-spacing: -0.03em;
}

#pageShell #screenIntro .title .accent {
  display: inline-block;
}

#pageShell .subtitle {
  margin: 18px 0 28px;
  max-width: 305px;
  font-size: 15px;
  line-height: 1.35;
  color: #43404d;
}

#pageShell #screenIntro .subtitle {
  margin: 22px 0 28px;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.28;
  color: #2f2b36;
}

#pageShell .btn,
#modalOverlay .btn {
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  min-height: 44px;
  font: 700 16px/1.1 "Inter", system-ui, sans-serif;
  color: #1f1d22;
  text-align: center;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pageShell .btn:active,
#modalOverlay .btn:active { transform: translateY(1px); }

#pageShell .btn-primary,
#modalOverlay .btn-primary {
  background: var(--yellow);
}

#pageShell .btn-primary:hover,
#modalOverlay .btn-primary:hover { filter: brightness(0.98); }

#pageShell .btn-primary:disabled,
#modalOverlay .btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#pageShell .btn-spin {
  width: 168px;
  margin-top: 2px;
  font-size: 15px;
}

#pageShell #screenIntro .btn-spin {
  width: 198px;
  min-height: 52px;
  padding: 14px 18px;
  margin-top: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}

#pageShell .btn-ghost {
  margin-top: 14px;
  background: transparent;
  border: 1px solid rgba(55,50,70,0.14);
  color: #3d3950;
  font-weight: 600;
  font-size: 13px;
}

.character {
  position: absolute;
  right: 12px;
  bottom: -2px;
  width: 182px;
  height: auto;
  pointer-events: none;
  transform: scaleX(-1);
  transform-origin: center;
}

#pageShell #screenIntro .character {
  right: clamp(-22px, -2.2vw, 8px);
  bottom: clamp(-55px, -8vh, -16px);
  width: clamp(220px, 38vh, 351px);
  z-index: 1;
}

#pageShell #screenIntro .title,
#pageShell #screenIntro .subtitle,
#pageShell #screenIntro .btn-spin {
  position: relative;
  z-index: 2;
}

#pageShell .title-form {
  font-size: 23px;
  line-height: 1.28;
  margin-bottom: 14px;
}

.prize-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6b4af1 0%, #6b4af1 76%, #5e3fe4 100%);
  color: #fff;
  padding: 8px 10px;
  margin-bottom: 14px;
}

.prize-banner__text {
  font-weight: 400;
  font-size: 15px;
  line-height: 2.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prize-banner__dot {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f7c81f;
  flex: 0 0 auto;
}

.form-description {
  margin: 20px 0 37px;
  font-size: 16px;
  line-height: 1.32;
  color: #3d3a47;
}

.lead-form {
  display: grid;
  gap: 8px;
}

.field input {
  width: 100%;
  height: 55px;
  border-radius: 6px;
  border: 1px solid rgba(28, 25, 37, 0.05);
  background: #efefef;
  padding: 0 14px;
  color: #2f2b39;
  font: 500 14px/1 "Inter", system-ui, sans-serif;
}

.field input::placeholder { color: #a4a2ac; }
.field input:focus {
  outline: none;
  background: #f5f5f5;
  border-color: rgba(109,69,246,0.26);
  box-shadow: 0 0 0 3px rgba(109,69,246,0.08);
}

.form-error {
  min-height: 18px;
  font-size: 12px;
  color: #c93939;
}

.lead-form .btn-primary {
  width: 100%;
  margin-top: 2px;
  min-height: 55px;
  font: 500 17px/1.1 "Inter", system-ui, sans-serif;
}

.form-note {
  margin: 2px 0 25px;
  font-size: 10px;
  line-height: 1.35;
  color: #6a6772;
  text-align: center;
}

.checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: start;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.checkbox__box {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  border-radius: 2px;
  border: 1px solid rgba(43, 40, 53, 0.34);
  background: #fff;
  position: relative;
}

.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #4f48ca;
  border-bottom: 2px solid #4f48ca;
  transform: rotate(-45deg);
}

.checkbox__text {
  font-size: 13px;
  line-height: 1.35;
  color: #56535f;
}

.checkbox__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-success {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}

.prize-pill-inline {
  display: inline-flex;
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(109,69,246,0.09);
  color: #563ad4;
  font-weight: 700;
  font-size: 13px;
  margin: 2px 0 14px;
}

#pageShell .modal-title,
#modalOverlay .modal-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #3b3550;
}

#pageShell .modal-text,
#modalOverlay .modal-text {
  margin: 0 0 16px;
  color: #565160;
  font-size: 12px;
  line-height: 1.34;
}

#pageShell .modal-link-hint,
#modalOverlay .modal-link-hint {
  margin-top: 6px;
  color: #b6b1bc;
  font-size: 11px;
}

#pageShell .modal-social-title,
#modalOverlay .modal-social-title {
  margin-top: 18px;
  margin-bottom: 10px;
  color: #5c5867;
  font-size: 12px;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pill {
  min-width: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eceaf0;
  color: #403b4f;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.social-pill img {
  display: block;
  width: auto;
  height: 16px;
  max-width: 72px;
}

#modalOverlay.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 20, 0.58);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 99999;
}

#modalOverlay .modal {
  width: min(100%, 356px);
  background: #f6f6f7;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  padding: 22px 18px 20px;
  text-align: center;
  position: relative;
}

#pageShell .icon-close,
#modalOverlay .icon-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #706b78;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

#pageShell .icon-close.hidden,
#modalOverlay .icon-close.hidden { display: none; }

#modalOverlay .modal .btn-primary,
#pageShell .inline-success .btn-primary {
  width: 100%;
  min-height: 38px;
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .page-shell {
    padding: 16px 10px 28px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 560px;
  }
  .wheel-card,
  .content-card {
    min-height: auto;
  }
  .wheel-card {
    aspect-ratio: 1 / 1.15;
    min-height: 360px;
  }
  .wheel-wrap {
    --wheel-rim-right: 88.9%;
    left: 50%;
    top: 50%;
    width: 80%;
    transform: translate(-50%, -52%);
  }
  .pointer {
    left: var(--wheel-rim-right);
    top: 50%;
    width: 70px;
    transform: translate(-25%, -50%) rotate(90deg);
  }
  .content-screen {
    position: static;
    display: none;
    padding: 22px 18px 20px;
  }
  .content-screen.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .content-stack {
    min-height: 0;
  }
  #pageShell .title {
    font-size: 28px;
    line-height: 1.14;
  }`r`n  #pageShell .character {
    width: 146px;
    right: 8px;
    bottom: 0;
    opacity: 0.95;
    transform: scaleX(-1);
  }
}

@media (max-width: 540px) {
  .page-shell {
    padding-inline: 8px;
  }
  .wheel-card {
    border-radius: 14px;
    min-height: 380px;
  }
  .wheel-wrap {
    width: 94%;
    top: 49.5%;
    transform: translate(-50%, -51%);
  }
  .content-card {
    border-radius: 14px;
  }
  #pageShell #screenIntro {
    position: relative;
    min-height: 320px;
    padding: 18px 18px 8px;
    text-align: center;
  }
  #pageShell #screenIntro .title {
    max-width: 287px;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    line-height: 1.14;
    letter-spacing: -0.02em;
    text-align: center;
  }
  #pageShell #screenIntro .subtitle {
    margin: 14px auto 16px;
    max-width: 215px;
    font-size: 17px;
    line-height: 1.25;
    text-align: center;
  }
  #pageShell #screenIntro .btn-spin {
    width: 219px;
    min-height: 52px;
    padding: 10px 12px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
  }
  #pageShell #screenIntro .character {
    display: none;
  }
  .pointer {
    width: 60px;
  }
  #pageShell .title-form {
    font-size: 16px;
    line-height: 1.28;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-idle {
    animation-duration: 30s;
  }
  * {
    scroll-behavior: auto !important;
  }
}
