.reward-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(20, 2, 1, .82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.reward-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 21;
  width: min(460px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border: 4px solid #6d340b;
  border-radius: 17px;
  outline: 2px solid #f6cd4c;
  outline-offset: -7px;
  background: linear-gradient(160deg, #760f0b, #340605 70%);
  box-shadow: inset 0 0 0 5px rgba(255, 221, 104, .13), 0 20px 70px #000, 0 0 42px rgba(245, 194, 44, .42);
  color: #fff8dc;
  transform: translate(-50%, -50%);
  animation: cta-modal-enter 600ms cubic-bezier(.22, 1, .36, 1) both, cta-modal-glow 1800ms 600ms infinite;
}

.modal-title {
  margin: 0;
  padding: 15px 18px 13px;
  border-bottom: 3px solid #6f370a;
  background: linear-gradient(180deg, #fff0a0, #eebd35 62%, #a85d0c);
  color: #4a1d04;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 1px 0 #fff5b9;
}

.modal-content {
  padding: 22px 24px 25px;
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.55;
  text-align: center;
}

.modal-content p { margin: 0 0 15px; }
.success-line { color: #ffe46e; font-size: 1.12em; font-weight: 900; }
#brand-name {
  color: #fff0a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 9vw, 44px);
  letter-spacing: .045em;
  text-shadow: 0 3px 0 #6f210a;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 16px;
  text-align: center;
}

.time-part {
  display: grid;
  min-width: 72px;
  padding: 9px 6px 7px;
  justify-items: center;
  border: 1px solid #c78922;
  border-radius: 9px;
  background: rgba(30, 3, 2, .62);
  box-shadow: inset 0 1px 0 rgba(255, 234, 157, .15);
}

.time-part span {
  color: #fff3a3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.time-part small {
  margin-top: 5px;
  color: #f2d9a1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.cta-button {
  display: grid;
  width: min(340px, 100%);
  min-height: 56px;
  margin: 18px auto 0;
  padding: 10px 18px;
  place-items: center;
  border: 2px solid #ffdf68;
  border-radius: 12px;
  background: linear-gradient(180deg, #31a05e, #12643d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 0 #063d24, 0 11px 21px rgba(0, 0, 0, .48);
  color: #fffde9;
  font-size: clamp(14px, 4.2vw, 18px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  animation: cta-button-pump 1800ms infinite;
}

.cta-button:active { transform: translateY(4px); }
.cta-button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; animation: none; }

@keyframes cta-modal-enter {
  from { opacity: 0; transform: translate(-50%, -45%) scale(.88); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes cta-modal-glow {
  0%, 100% { box-shadow: inset 0 0 0 5px rgba(255,221,104,.13), 0 20px 70px #000, 0 0 26px rgba(245,194,44,.3); }
  50% { box-shadow: inset 0 0 0 5px rgba(255,221,104,.17), 0 20px 70px #000, 0 0 52px rgba(245,194,44,.58); }
}
@keyframes cta-button-pump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@media (max-width: 360px) {
  .reward-modal { width: calc(100% - 20px); max-height: calc(100dvh - 16px); }
  .modal-content { padding: 18px 17px 21px; }
  .modal-content p { margin-bottom: 12px; }
  .countdown { gap: 7px; margin: 14px 0 13px; }
  .time-part { min-width: 61px; padding-block: 8px 6px; }
  .cta-button { margin-top: 14px; }
}

@media (max-height: 620px) {
  .modal-title { padding-block: 11px 10px; font-size: 30px; }
  .modal-content { padding-block: 16px 18px; line-height: 1.4; }
  .modal-content p { margin-bottom: 10px; }
  #brand-name { font-size: 30px; }
  .countdown { margin-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reward-modal,
  .cta-button { animation: none; }
}
