:root {
  --ink: #08244a;
  --muted: #496487;
  --line: #c9d7e8;
  --red: #dd0606;
  --blue: #0057ae;
  --blue-2: #2b76c4;
  --blue-3: #003f7e;
  --gray: #edf2f7;
  --gray-2: #77869a;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f7fbff 0%, #e8eef6 100%);
}

.campaign-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.wheel-stage { display: grid; justify-items: center; gap: 18px; }
.brand-block { width: min(560px, 100%); display: grid; justify-items: center; text-align: center; }
.brand-logo {
  display: block;
  width: min(150px, 38vw);
  height: auto;
  margin: 0 0 8px;
}
.brand-block h1 {
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: clamp(2.15rem, 3.7vw, 3.75rem);
  line-height: .96;
  margin: 8px 0;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-block p { color: var(--muted); font-size: clamp(.88rem, 1.18vw, .98rem); max-width: 430px; line-height: 1.28; margin: 0 auto; }

.wheel-wrap {
  position: relative;
  width: min(70vw, 470px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 28px 55px rgba(0, 87, 174, .16));
}
.wheel-pointer {
  position: absolute;
  top: -8px;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 42px solid var(--red);
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 14px solid #fff;
  position: relative;
  overflow: hidden;
  transition: transform 3.2s cubic-bezier(.12,.72,.16,1);
  background:
    conic-gradient(var(--blue-2) 0 60deg, var(--blue) 60deg 120deg, var(--blue-2) 120deg 180deg, var(--blue) 180deg 240deg, var(--red) 240deg 300deg, var(--blue) 300deg 360deg);
}
.wheel::after {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: #fff;
  border: 8px solid var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 87, 174, .08);
}
.wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(74px, 16vw, 116px);
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg + 30deg)) translateY(clamp(-132px, -19vw, -92px)) rotate(calc((var(--i) * -60deg) - 30deg));
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(.6rem, 1.2vw, .78rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(5, 24, 52, .55);
  z-index: 1;
  pointer-events: none;
}

.campaign-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 22px 50px rgba(0, 57, 120, .12);
}
.campaign-card h2 { margin: 0 0 22px; font-size: clamp(1.45rem, 3.4vw, 2.05rem); color: var(--ink); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 700; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}
button {
  border: 0;
  border-radius: 6px;
  min-height: 48px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.whatsapp-button { background: #25d366; color: #082711; }
.spin-button { background: var(--blue); color: #fff; }
.spin-button:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.legal { color: var(--muted); font-size: .82rem; line-height: 1.45; }

.result-modal[hidden] { display: none; }
.result-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  display: grid;
  place-items: center;
  padding: 18px;
}
.result-modal div {
  width: min(460px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 32px;
  text-align: center;
}
.result-modal span { color: var(--red); font-weight: 900; text-transform: uppercase; }
.result-modal h2 { font-size: 2rem; margin: 8px 0; }
.result-modal small { color: var(--muted); }

@media (max-width: 860px) {
  .campaign-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px;
    gap: 22px;
  }

  .wheel-stage { gap: 16px; }
  .brand-block {
    width: 100%;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .brand-logo { width: min(128px, 36vw); margin-bottom: 6px; }
  .brand-block h1 {
    font-size: clamp(1.82rem, 8.6vw, 2.68rem);
    white-space: nowrap;
  }
  .brand-block p {
    font-size: .88rem;
    max-width: 310px;
  }

  .wheel-wrap { width: min(86vw, 360px); }
  .wheel { border-width: 10px; }
  .wheel::after { inset: 39%; border-width: 7px; }
  .wheel-pointer {
    top: -7px;
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 34px;
  }
  .wheel span {
    width: clamp(56px, 18vw, 74px);
    min-height: 22px;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg + 30deg)) translateY(clamp(-102px, -28vw, -76px)) rotate(calc((var(--i) * -60deg) - 30deg));
    font-size: clamp(.48rem, 2.25vw, .62rem);
  }
}
