.main-c .raffle-block p {
  margin: 0;
}

body.raffle-modal-open {
  overflow: hidden;
}

.raffle-block {
  margin: 2.5em auto 3em;
  max-width: 640px;
  font-family: 'PublicoText', Georgia, 'Times New Roman', serif;
  color: #000;
  text-align: center;
}

.raffle-block * {
  box-sizing: border-box;
}

.raffle-block__info {
  border: 2px dashed #1a1a1a;
  padding: 1.5em 1.25em;
  margin-bottom: 2em;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.raffle-block__info-title {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.35em;
  line-height: 1.3;
}

.raffle-block__info-date {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #e70000;
  margin: 0 0 0.35em;
}

.raffle-block__info-sub {
  font-size: 1rem;
  margin: 0 0 1.25em;
}

.raffle-block__info-label {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25em;
}

.raffle-block__info-counter {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #e70000;
  margin: 0;
}

.raffle-block__cta-title {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 1.5em;
}

.raffle-block__wheel-wrap {
  position: relative;
  width: min(380px, 92vw);
  margin: 0 auto 1.25em;
  padding: 12px;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #f4f1eb 55%, #e8e4dc 100%);
  border-radius: 50%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.raffle-block__pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px;
  height: 36px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.raffle-block__pointer::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid #e70000;
}

.raffle-block__pointer::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #ddd 100%);
  border: 2px solid #1a1a1a;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.raffle-block__wheel {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 4.5s cubic-bezier(0.2, 0.85, 0.25, 1);
  position: relative;
  z-index: 1;
  will-change: transform;
}

.raffle-block__wheel.is-spinning {
  transition: transform 4.5s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.raffle-block__wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #ececec 50%, #d4d4d4 100%);
  border: 3px solid #1a1a1a;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'FoundersGroteskCond', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  color: #e70000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.raffle-block__spin-btn {
  display: inline-block;
  margin: 0.5em auto 0;
  padding: 14px 36px;
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff !important;
  background: linear-gradient(180deg, #f01a1a 0%, #e70000 50%, #c40000 100%) !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(231, 0, 0, 0.35);
  animation: raffle-pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}

.raffle-block__spin-btn:hover:not(:disabled) {
  animation: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(231, 0, 0, 0.4);
}

.raffle-block__spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

@keyframes raffle-pulse {
  to {
    box-shadow: 0 4px 14px rgba(231, 0, 0, 0.35), 0 0 0 24px rgba(231, 0, 0, 0);
  }
}

.raffle-block__attempts {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  margin: 0.75em 0 0;
  color: #555;
}

.raffle-block__message {
  min-height: 1.5em;
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.5em 0 0;
  color: #e70000;
}

/* Modal */
.raffle-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.raffle-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.raffle-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.raffle-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border: 2px solid #1a1a1a;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 2em 1.75em 1.75em;
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: 'PublicoText', Georgia, 'Times New Roman', serif;
}

.raffle-modal.is-open .raffle-modal__dialog {
  transform: translateY(0) scale(1);
}

.raffle-modal__badge {
  display: inline-block;
  margin-bottom: 1em;
  padding: 0.35em 1em;
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #e70000;
}

.raffle-modal__title {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1em;
  color: #000;
}

.raffle-modal__text {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1em;
  color: #1a1a1a;
}

.raffle-modal__text .raffle-accent {
  color: #e70000;
  font-weight: 700;
}

.raffle-modal__urgency {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 1em;
  color: #000;
}

.raffle-modal__timer-wrap {
  margin: 0 0 1.5em;
  padding: 1em;
  background: #fafafa;
  border: 1px solid #e0e0e0;
}

.raffle-modal__timer-label {
  font-family: 'FoundersGroteskText', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.35em;
}

.raffle-block__timer {
  font-family: 'FoundersGroteskMono', 'Courier New', monospace;
  font-size: 2.75rem;
  font-weight: 400;
  color: #e70000;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
}

.raffle-modal__confirm {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 28px;
  font-size: 1.125rem !important;
  border-radius: 8px;
}

.raffle-block__footer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid #ccc;
  text-align: left;
}

.raffle-block__seal {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.raffle-block__disclaimer {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0;
  color: #333;
}

@media (max-width: 767px) {
  .raffle-block__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .raffle-modal__dialog {
    padding: 1.5em 1.25em 1.25em;
  }

  .raffle-modal__title {
    font-size: 1.45rem;
  }

  .raffle-block__timer {
    font-size: 2.25rem;
  }

  .raffle-block__wheel-wrap {
    width: min(320px, 94vw);
  }
}
