* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: #0b1220;
  font-family: 'Nunito', sans-serif;
  height: 100%;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #1670F0;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}

@media (min-width: 431px) {
  html, body { display: flex; justify-content: center; }
  .phone { min-height: 900px; margin-top: 20px; margin-bottom: 20px; border-radius: 34px; }
}

/* ---------- screens ---------- */
.screen {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 40px;
  min-height: 100vh;
  overflow: hidden;
}
.screen.active { display: flex; }

.rays {
  position: absolute;
  inset: -20% -60%;
  z-index: 0;
  background: repeating-conic-gradient(from 0deg,
    #2E7DFA 0deg 15deg,
    #1668E6 15deg 30deg);
  animation: spin-rays 60s linear infinite;
}
@keyframes spin-rays { to { transform: rotate(360deg); } }

/* ================= SCREEN 1 : WHEEL ================= */

.title {
  position: relative; z-index: 2;
  color: #fff;
  text-align: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 9.5vw, 46px);
  line-height: 1.15;
  margin-top: 10px;
}
.title .emoji {
  display: inline-block;
  font-size: .65em;
  vertical-align: middle;
}

.subtitle {
  position: relative; z-index: 2;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.35;
  margin-top: 18px;
  text-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.wheel-area {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pointer {
  position: relative;
  z-index: 4;
  margin-bottom: -14px;
}
.pointer-shape {
  width: 46px;
  height: 52px;
  background: linear-gradient(160deg, #FDB255, #F7941D 55%, #E67E0A);
  clip-path: polygon(15% 0%, 85% 0%, 100% 22%, 50% 100%, 0% 22%);
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.35));
}

.wheel-wrap {
  position: relative;
  width: min(380px, 85vw);
  aspect-ratio: 1/1;
  border-radius: 50%;
  box-shadow: 0 14px 26px rgba(0,0,0,.35);
}

.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1E5FD1;
  border: 10px solid #1B5BCB;
  box-shadow: 0 0 0 3px #3E82F5 inset;
  will-change: transform;
}

.sectors {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(
    #135FCC 0deg 60deg,
    #FFFFFF 60deg 120deg,
    #135FCC 120deg 180deg,
    #FFFFFF 180deg 240deg,
    #135FCC 240deg 300deg,
    #FFFFFF 300deg 360deg
  );
  box-shadow: 0 0 0 2px rgba(255,255,255,.5) inset;
}

.rim-dots { position: absolute; inset: 0; }
.rim-dots .dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.labels { position: absolute; inset: 0; }
.lbl-slot {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.lbl-slot.on-blue .lbl { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.lbl-slot.on-white .lbl { color: #123E91; }
.lbl {
  position: absolute;
  top: 19%;
  left: 50%;
  width: 72px;
  margin-left: -36px;
  transform: translateY(-50%);
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.icon-slot {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.icon-fix {
  position: absolute;
  top: 23%; left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
  transition: transform .25s ease;
}

.hub {
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  margin: -27px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFC26A, #F7941D 60%, #D9720B 100%);
  border: 3px solid #D9720B;
  box-shadow: 0 4px 8px rgba(0,0,0,.35);
  z-index: 3;
}

.phone-field {
  position: relative; z-index: 2;
  margin-top: 40px;
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.phone-code {
  flex-shrink: 0;
  color: #1670F0;
  font-weight: 800;
  font-size: 19px;
  padding-right: 10px;
  border-right: 2px solid rgba(22,112,240,.15);
}
.phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  color: #1670F0;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .3px;
}
.phone-input::placeholder { color: #b9cdf3; font-weight: 700; }

.btn-spin {
  position: relative; z-index: 2;
  margin-top: 16px;
  width: 100%;
  max-width: 340px;
  padding: 17px 0;
  border: none;
  border-radius: 30px;
  background: #fff;
  color: #1670F0;
  font-family: inherit;
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: transform .15s ease;
  animation: btn-appear .4s ease;
}
.btn-spin:active { transform: scale(.97); }
.btn-spin:disabled { opacity: .7; cursor: default; }
.btn-spin[hidden] { display: none; }

@keyframes btn-appear {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= WIN MODAL ================= */

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 34, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 22px;
  padding: 30px 24px 26px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  animation: modal-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

.modal-title {
  text-align: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  color: #171a2b;
}

.modal-offer {
  margin-top: 14px;
  text-align: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: #5E72C4;
}

.coupon {
  position: relative;
  margin-top: 18px;
  padding: 20px 16px;
  border: 2px dashed #E3B23C;
  background: #FFF7D6;
  border-radius: 14px;
  text-align: center;
}
.coupon-badge {
  position: absolute;
  top: -14px;
  right: -6px;
  background: #C9971F;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}
.coupon-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #171a2b;
  letter-spacing: .2px;
}
.coupon-sub {
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #9a9a9a;
}

.modal-note {
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  color: #5a5d6a;
}

.modal-ok {
  margin-top: 22px;
  width: 100%;
  padding: 16px 0;
  border: none;
  border-radius: 16px;
  background: #5E72C4;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: transform .15s ease;
}
.modal-ok:active { transform: scale(.97); }
