.rei-shell {
  --rei-red: #e51f2e;
  --rei-red-dark: #aa111c;
  --rei-navy: #10284b;
  --rei-yellow: #f9b000;
  --rei-green: #68b842;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--rei-navy);
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
}

.rei-shell * {
  box-sizing: border-box;
}

.rei-stage {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(360px, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
}

.rei-panel {
  padding: 24px;
  background: #fff;
  border: 3px solid rgba(229, 31, 46, .18);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 40, 75, .12);
}

.rei-kicker {
  margin: 0 0 12px;
  color: var(--rei-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rei-panel h2 {
  margin: 0 0 12px;
  color: var(--rei-navy);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.rei-panel p {
  margin: 0 0 18px;
  color: rgba(16, 40, 75, .82);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
}

.rei-form {
  display: grid;
  gap: 13px;
}

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

.rei-form label {
  display: grid;
  gap: 6px;
  color: var(--rei-navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rei-form input,
.rei-form select {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(16, 40, 75, .18);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--rei-navy);
  background: #fff;
  font: 700 16px Arial, sans-serif;
}

.rei-form input:focus,
.rei-form select:focus {
  outline: 3px solid rgba(249, 176, 0, .32);
  border-color: var(--rei-red);
}

.rei-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-size: 12px !important;
  line-height: 1.3;
  text-transform: none !important;
}

.rei-check input {
  min-height: 18px;
  margin-top: 1px;
}

.rei-button,
.rei-spin {
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  padding: 0 20px;
  color: #fff;
  background: var(--rei-red);
  box-shadow: 0 7px 0 var(--rei-red-dark), 0 14px 22px rgba(229, 31, 46, .20);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.rei-button:disabled,
.rei-spin:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.rei-note {
  margin: 0 !important;
  color: rgba(16, 40, 75, .64) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

.rei-wheel-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}

.rei-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 3;
  width: clamp(48px, 7vw, 72px);
  height: clamp(70px, 10vw, 108px);
  transform: translateX(-50%);
  background: linear-gradient(#ffe291, #f3a400);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  border-radius: 12px;
  filter: drop-shadow(0 8px 7px rgba(16, 40, 75, .26));
}

.rei-pointer::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  background: #d98b00;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.65);
}

.rei-wheel-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 0;
  padding-top: 100%;
  justify-self: center;
}

.rei-wheel-frame::before {
  content: "";
  display: block;
}

.rei-wheel {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: rotate(var(--rei-rotation, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 18px 28px rgba(16, 40, 75, .16));
  user-select: none;
}

.rei-result {
  width: min(100%, 720px);
  min-height: 62px;
  padding: 16px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--rei-green);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  text-align: center;
}

.rei-result.is-error {
  background: var(--rei-navy);
}

.rei-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 40, 75, .58);
}

.rei-modal[hidden] {
  display: none;
}

.rei-modal-card {
  position: relative;
  width: min(100%, 680px);
  padding: clamp(24px, 5vw, 42px);
  border: 6px solid var(--rei-yellow);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
  text-align: center;
}

.rei-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--rei-red);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.rei-modal-kicker {
  margin: 0 0 8px;
  color: var(--rei-red);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.rei-modal h3 {
  margin: 0 0 10px;
  color: var(--rei-navy);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 900;
  line-height: 1.05;
}

.rei-modal-prize {
  margin: 12px auto 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 4px solid var(--rei-red);
  border-radius: 8px;
  color: var(--rei-red);
  background: #fff7df;
  font-size: clamp(42px, 9vw, 82px);
  font-weight: 950;
  line-height: .95;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 5px #fff;
}

.rei-modal-message {
  margin: 0 0 20px;
  color: rgba(16, 40, 75, .82);
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.38;
}

.rei-modal-ok {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  padding: 0 22px;
  color: #fff;
  background: var(--rei-red);
  box-shadow: 0 7px 0 var(--rei-red-dark);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.rei-modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .rei-stage {
    grid-template-columns: 1fr;
  }

  .rei-panel {
    order: 1;
  }

  .rei-wheel-wrap {
    order: 2;
  }
}

@media (max-width: 560px) {
  .rei-grid {
    grid-template-columns: 1fr;
  }

  .rei-panel {
    padding: 18px;
  }

  .rei-button,
  .rei-spin {
    font-size: 15px;
  }
}
