:root {
  --bg: #fff8fb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #43313d;
  --muted: #7f6875;
  --rose-50: #fff0f6;
  --rose-100: #ffdce9;
  --rose-200: #fbc2d8;
  --rose-300: #f39fc2;
  --rose-400: #eb7fac;
  --rose-500: #dc5f95;
  --rose-600: #c0487e;
  --berry-500: #9f4c73;
  --shadow: 0 22px 60px rgba(178, 86, 127, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-ui: "Trebuchet MS", "Gill Sans", sans-serif;
  --card-max-width: 520px;
  --content-max-width: 460px;
  --content-gap: 18px;
  --shell-padding-x: clamp(12px, 2.8vw, 18px);
  --shell-padding-y: clamp(16px, 3vw, 22px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 227, 0.85), transparent 32%),
    radial-gradient(circle at bottom right, rgba(244, 165, 196, 0.7), transparent 36%),
    linear-gradient(180deg, #fff9fc 0%, #fff1f7 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(12px, 3vw, 22px) clamp(10px, 2.8vw, 16px);
}

.background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-one {
  width: 240px;
  height: 240px;
  background: rgba(248, 187, 208, 0.8);
  top: 4%;
  left: -40px;
}

.orb-two {
  width: 300px;
  height: 300px;
  background: rgba(226, 123, 169, 0.28);
  right: -60px;
  top: 28%;
}

.orb-three {
  width: 220px;
  height: 220px;
  background: rgba(247, 210, 223, 0.9);
  bottom: 4%;
  left: 28%;
}

.app-card {
  position: relative;
  z-index: 1;
  width: min(100%, var(--card-max-width));
  min-height: calc(100vh - clamp(16px, 4vw, 28px));
  margin: 0 auto;
  padding: var(--shell-padding-y) var(--shell-padding-x) calc(var(--shell-padding-y) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: clamp(24px, 5vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 252, 254, 0.85));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar,
.survey-head,
.wheel-head,
.secondary-actions,
.wheel-actions,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  align-items: flex-start;
  margin-bottom: var(--content-gap);
}

.eyebrow,
.section-kicker,
.bonus-caption,
.hero-kicker,
.subtle-note {
  margin: 0;
  color: var(--muted);
}

.eyebrow,
.section-kicker,
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.title,
.hero h2,
.survey-head h2,
.wheel-head h2,
.result-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
}

.title {
  font-size: clamp(34px, 9vw, 56px);
}

.hero h2,
.survey-head h2,
.wheel-head h2,
.result-card h2 {
  font-size: clamp(28px, 8vw, 42px);
}

.hero-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.screen {
  display: none;
  min-height: calc(100vh - 130px);
  animation: fadeIn 260ms ease;
}

.screen.active {
  display: block;
}

.hero {
  display: grid;
  gap: 18px;
  width: min(100%, var(--content-max-width));
  margin: 0 auto;
  padding: 14px 0 26px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(243, 159, 194, 0.14);
  color: var(--berry-500);
  font-size: 13px;
}

.wheel-preview {
  position: relative;
  margin: 28px auto 0;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from -15deg,
    #ef8db4 0deg 30deg,
    #ffd1e4 30deg 60deg,
    #d46092 60deg 90deg,
    #ffe7f1 90deg 120deg,
    #ba4d7f 120deg 150deg,
    #f6afcc 150deg 180deg,
    #df7ba7 180deg 210deg,
    #ffd8e8 210deg 240deg,
    #c95586 240deg 270deg,
    #ffc7dd 270deg 300deg,
    #db6a9c 300deg 330deg,
    #ffebf4 330deg 360deg
  );
  box-shadow: 0 18px 50px rgba(220, 95, 149, 0.2);
}

.preview-ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, 0.76);
}

.preview-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: radial-gradient(circle at 30% 30%, #ffcadf, #d55087);
  border: 10px solid rgba(255, 255, 255, 0.88);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.large-button,
.primary-button,
.ghost-button {
  min-height: 56px;
  padding: 16px 22px;
  border: none;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--rose-500), var(--berry-500));
  color: white;
  box-shadow: 0 14px 30px rgba(192, 72, 126, 0.28);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.88);
  color: var(--berry-500);
  border: 1px solid rgba(220, 95, 149, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(190, 145, 167, 0.16);
  font-size: 30px;
  line-height: 1;
}

.progress-track {
  position: relative;
  width: 130px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(232, 184, 206, 0.3);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-500), #f8acc9);
  transition: width 220ms ease;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
  margin-top: 22px;
}

.option-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(223, 128, 173, 0.18);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(230, 190, 207, 0.14);
  text-align: left;
}

.option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 44%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.option-card[data-accent="rose"] {
  background: linear-gradient(180deg, rgba(255, 235, 244, 0.96), rgba(255, 247, 250, 0.92));
}

.option-card[data-accent="peach"] {
  background: linear-gradient(180deg, rgba(255, 236, 234, 0.96), rgba(255, 248, 248, 0.92));
}

.option-card[data-accent="berry"] {
  background: linear-gradient(180deg, rgba(247, 228, 236, 0.96), rgba(255, 250, 252, 0.92));
}

.option-card[data-accent="blush"] {
  background: linear-gradient(180deg, rgba(255, 239, 244, 0.96), rgba(255, 248, 251, 0.92));
}

.option-card.is-selected {
  border-color: rgba(192, 72, 126, 0.5);
  box-shadow: 0 16px 34px rgba(196, 78, 128, 0.22);
}

.option-marker {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid rgba(220, 95, 149, 0.44);
  display: grid;
  place-items: center;
  color: white;
  background: transparent;
  margin-bottom: 76px;
  transition: background 160ms ease, border-color 160ms ease;
}

.option-card.is-selected .option-marker {
  background: linear-gradient(135deg, var(--rose-500), var(--berry-500));
  border-color: transparent;
}

.option-title {
  position: relative;
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
}

.option-caption {
  position: relative;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bonus-panel,
.result-card,
.claim-form {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: 0 18px 40px rgba(216, 131, 168, 0.14);
}

.bonus-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
}

.bonus-number {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 72px);
  line-height: 0.9;
  color: var(--berry-500);
}

.secondary-actions {
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
}

.text-button,
.text-link {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--rose-600);
  text-decoration: none;
}

.wheel-stage {
  position: relative;
  width: min(100%, var(--content-max-width));
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 28px;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wheel-actions {
  margin-top: 18px;
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.wheel-shell {
  position: relative;
  width: min(100%, var(--content-max-width));
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex: 0 0 auto;
}

.wheel-geometry {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.wheel-crop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
}

#wheel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 6.8s cubic-bezier(0.12, 0.84, 0.16, 1);
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 34px solid white;
  filter: drop-shadow(0 10px 10px rgba(166, 92, 125, 0.16));
  z-index: 2;
}

.subtle-note {
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.claim-form {
  display: grid;
  gap: 14px;
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
}

.wheel-head,
.survey-head,
.result-card,
.result-actions,
#claim-status {
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(223, 128, 173, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(220, 95, 149, 0.25);
  border-color: rgba(220, 95, 149, 0.38);
}

.consent-field {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(223, 128, 173, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--rose-500);
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .app-card {
    min-height: calc(100vh - 12px);
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .option-card {
    padding: 14px;
  }

  .option-marker {
    margin-bottom: 58px;
  }

  .bonus-panel,
  .wheel-actions,
  .secondary-actions,
  .topbar,
  .survey-head,
  .wheel-head,
  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-track {
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --content-max-width: 420px;
  }

  .wheel-shell {
    width: min(100%, var(--content-max-width));
  }

  .wheel-actions {
    width: min(100%, var(--content-max-width));
  }

  .wheel-actions .primary-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --content-max-width: 100%;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 156px;
  }

  .option-marker {
    margin-bottom: 42px;
  }

  .wheel-pointer {
    border-left-width: 14px;
    border-right-width: 14px;
    border-top-width: 26px;
  }
}
