/* Locally hosted DIN Family Webfonts (Zero latency, instant 0ms load) */
@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 400;
  src: local('DIN Next'), local('DIN Alternate'), local('DIN 2014'), local('DIN'), local('D-DIN'),
       url('/modules/custom/usha_hugs/fonts/D-DIN.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 700;
  src: local('DIN Next Bold'), local('DIN Alternate Bold'), local('DIN 2014 Bold'), local('DIN Bold'), local('D-DIN Bold'),
       url('/modules/custom/usha_hugs/fonts/D-DIN-Bold.woff') format('woff');
  font-display: swap;
}

:root {
  --uh-night: #0F1531;
  --uh-red: #D71F26;
  --uh-red-dark: #A8141A;
  --uh-cream: #FFF8EE;
  --uh-card-bg: #E8F2FD;
  --uh-text-dark: #141B26;
  --uh-text-muted: #374151;
  --uh-border: #BCD4EB;
  --uh-glow: #FFB15C;
  --uh-green: #27AE60;
  --uh-gold: #F2C230;
  --uh-font-din: 'D-DIN', 'DIN Next', 'DIN Alternate', 'DIN 2014', 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --uh-font-helvetica: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --uh-font-display: var(--uh-font-din);
  --uh-font-body: var(--uh-font-helvetica);
  --uh-font-hand: 'Caveat', 'Segoe Print', cursive;
}

.uh-modal-overlay,
.uh-modal-overlay * {
  box-sizing: border-box;
}

.uh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 49, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.uh-modal-overlay.uh-active {
  opacity: 1;
  pointer-events: auto;
}

/* Keep the live game visible behind a single dimming layer. */
.uh-modal-overlay#uhClaimModal,
.uh-modal-overlay#uhOtpModal {
  background: rgba(15, 21, 49, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Responsive card artwork: desktop (1024x764), iPad (764x1024), mobile (584x1024). */
.uh-modal-overlay#uhClaimModal .uh-modal-card,
.uh-modal-overlay#uhOtpModal .uh-modal-card {
  position: relative;
  width: min(780px, calc(100vw - 24px), calc((100vh - 24px) * 1.340314));
  width: min(780px, calc(100vw - 24px), calc((100dvh - 24px) * 1.340314));
  height: auto;
  aspect-ratio: 1024 / 764;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border-radius: 22px;
  background: transparent url('/modules/custom/usha_hugs/images/hugwinterlogin-desktop.webp') center / 100% 100% no-repeat;
  box-shadow: 0 24px 64px rgba(15, 21, 49, 0.55);
}

.uh-modal-content {
  position: absolute;
  inset: 34.5% 15% 7% 15%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 8px;
  color: var(--uh-text-dark);
  font-family: var(--uh-font-body);
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 102, 86, 0.35) transparent;
}

.uh-modal-overlay#uhClaimModal .uh-modal-close,
.uh-modal-overlay#uhOtpModal .uh-modal-close {
  top: 33.8%;
  right: 14.5%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.85);
  color: #141B26;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 21, 49, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease;
  z-index: 10;
}

.uh-modal-overlay#uhClaimModal .uh-modal-close:hover,
.uh-modal-overlay#uhOtpModal .uh-modal-close:hover {
  background: #FFFFFF;
  transform: scale(1.08);
}

.uh-modal-overlay#uhOtpModal .uh-back-btn {
  position: absolute;
  top: 33.8%;
  left: 14.5%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.85);
  color: #141B26;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 21, 49, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease;
  z-index: 10;
}

.uh-modal-overlay#uhOtpModal .uh-back-btn:hover {
  background: #FFFFFF;
  transform: scale(1.08);
}

.uh-modal-content .uh-card-header {
  margin: 0 0 8px;
  text-align: center;
}

/* Neutralize parent theme global h2 rules (uppercase, border/after underline, padding). */
.uh-modal-overlay .uh-modal-title {
  text-transform: none;
  padding-bottom: 0;
}

.uh-modal-overlay .uh-modal-title::after {
  content: none;
  display: none;
}

.uh-modal-content .uh-modal-title {
  margin: 0;
  color: #141B26;
  font-family: var(--uh-font-din);
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Designer Horizontal Flourish Divider with Center Diamond */
.uh-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(240px, 70%);
  margin: 5px auto 6px;
}

.uh-title-divider::before,
.uh-title-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}

.uh-title-divider::before {
  background: linear-gradient(to right, rgba(200, 164, 106, 0), rgba(200, 164, 106, 0.85));
}

.uh-title-divider::after {
  background: linear-gradient(to left, rgba(200, 164, 106, 0), rgba(200, 164, 106, 0.85));
}

.uh-divider-diamond {
  font-size: 8px;
  color: #C8A46A;
  line-height: 1;
  display: inline-block;
}

.uh-modal-content .uh-modal-subtitle {
  max-width: none;
  color: #374151;
  font-family: var(--uh-font-helvetica);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.uh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.uh-modal-content .uh-form-group {
  margin-bottom: 7px;
  min-width: 0;
}

.uh-modal-content .uh-field-label {
  display: block;
  margin: 0 0 5px 2px;
  font-family: var(--uh-font-helvetica);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #141B26;
  letter-spacing: 0.01em;
}

.uh-modal-content .uh-field-label span[aria-hidden="true"],
.uh-modal-content .uh-req-star {
  color: #C41018;
  font-weight: 800;
  margin-left: 2px;
}

/* Full Name input box */
.uh-modal-content .uh-text-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #BACCDD;
  border-radius: 12px;
  background: #FFFFFF;
  font-family: var(--uh-font-helvetica);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 44px;
  color: #141B26;
  box-shadow: inset 0 1px 2px rgba(40, 20, 10, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.uh-modal-content .uh-text-input::placeholder {
  color: #8397AB;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.uh-modal-content .uh-text-input:focus {
  border-color: #C41018;
  box-shadow: 0 0 0 3px rgba(196, 16, 24, 0.16), inset 0 1px 2px rgba(40, 20, 10, 0.02);
  outline: none;
}

/* Mobile Number input box with signature red accent */
.uh-modal-content .uh-phone-input-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1.5px solid #C41018;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(40, 20, 10, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.uh-modal-content .uh-phone-input-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(196, 16, 24, 0.18), inset 0 1px 2px rgba(40, 20, 10, 0.02);
}

.uh-modal-content .uh-phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 12px;
  font-family: var(--uh-font-din);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  color: #141B26;
  user-select: none;
  flex-shrink: 0;
}

.uh-modal-content .uh-prefix-chevron {
  width: 9px;
  height: 6px;
  margin-left: 5px;
  flex-shrink: 0;
  color: #141B26;
}

.uh-modal-content .uh-prefix-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #BACCDD;
  margin: 0 10px 0 9px;
  flex-shrink: 0;
}

.uh-modal-content .uh-phone-input {
  flex: 1;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 12px 0 0;
  font-family: var(--uh-font-helvetica);
  font-size: 13.5px;
  font-weight: 600;
  color: #141B26;
}

.uh-modal-content .uh-phone-input::placeholder {
  color: #8397AB;
  font-weight: 400;
}

.uh-modal-content .uh-phone-input:focus {
  outline: none;
  box-shadow: none;
}

/* Custom Enterprise Checkboxes (17x17 rounded boxes) */
.uh-modal-content .uh-consents {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 5px 0 8px;
}

.uh-modal-content .uh-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-family: var(--uh-font-helvetica);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.34;
  color: #1F2937;
  transition: color 0.15s ease;
}

.uh-modal-content .uh-checkbox-label:hover {
  color: #111827;
}

.uh-modal-content .uh-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 1px;
  border: 1.5px solid #9EB3C8;
  border-radius: 4px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: inset 0 1px 2px rgba(40, 20, 10, 0.05);
}

.uh-modal-content .uh-checkbox-label:hover input[type="checkbox"]:not(:checked) {
  border-color: #7B95AF;
}

.uh-modal-content .uh-checkbox-label input[type="checkbox"]:checked {
  background-color: #C41018;
  border-color: #C41018;
}

.uh-modal-content .uh-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.uh-modal-content .uh-checkbox-label input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(196, 16, 24, 0.22);
  outline: none;
}

/* Legal text */
.uh-modal-content .uh-legal-note {
  margin: 6px 0 10px;
  font-family: var(--uh-font-helvetica);
  font-size: 11px;
  line-height: 1.35;
  color: #4B5563;
  text-align: center;
}

.uh-modal-content .uh-legal-note a {
  color: #C41018;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.uh-modal-content .uh-legal-note a:hover {
  color: #9B060C;
}

/* Enterprise Centered Pill CTA Button */
.uh-modal-content .uh-btn-primary {
  width: clamp(230px, 58%, 320px);
  margin: 4px auto 0;
  height: 46px;
  min-height: 46px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(180deg, #D4151C 0%, #B80A10 100%);
  color: #FFFFFF !important;
  font-family: var(--uh-font-din);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 5px 16px rgba(184, 10, 16, 0.38), 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, filter 0.18s ease;
}

.uh-modal-content .uh-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 8px 22px rgba(184, 10, 16, 0.48);
  filter: brightness(1.04);
}

.uh-modal-content .uh-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(184, 10, 16, 0.28);
}

.uh-modal-content .uh-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.uh-modal-content .uh-alert-box {
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 7px;
}

/* Enterprise OTP Step 2 Boxes */
.uh-modal-content .uh-otp-boxes {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 10px);
  margin: 12px 0 10px;
}

.uh-modal-content .uh-otp-digit {
  width: 44px;
  height: 50px;
  border-radius: 10px;
  border: 1.5px solid #BACCDD;
  background: #FFFFFF;
  font-family: var(--uh-font-din);
  font-size: 22px;
  font-weight: 700;
  color: #141B26;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(40, 20, 10, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.uh-modal-content .uh-otp-digit:focus {
  border-color: #C41018;
  box-shadow: 0 0 0 3px rgba(196, 16, 24, 0.16);
  transform: scale(1.04);
  outline: none;
}

.uh-modal-content .uh-otp-digit.uh-autofilled {
  border-color: #27AE60 !important;
  background-color: #EAF8EE !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.28), 0 2px 8px rgba(39, 174, 96, 0.2) !important;
  transform: scale(1.05);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.uh-modal-content .uh-otp-timer-row {
  margin: 8px 0 12px;
  font-size: 12.5px;
  font-family: var(--uh-font-helvetica);
  color: #4B5563;
  text-align: center;
}

.uh-modal-content .uh-resend-link {
  background: none;
  border: none;
  color: #C41018;
  font-family: var(--uh-font-din);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  margin-left: 6px;
  padding: 0;
}

.uh-modal-content .uh-resend-link:disabled {
  color: #8397AB;
  text-decoration: none;
  cursor: not-allowed;
}

/* iPad / Tablet breakpoint (601px to 1024px) */
@media (max-width: 1024px) and (min-width: 601px) {
  .uh-modal-overlay#uhClaimModal .uh-modal-card,
  .uh-modal-overlay#uhOtpModal .uh-modal-card {
    width: min(560px, calc(100vw - 24px), calc((100vh - 24px) * 0.7460938));
    width: min(560px, calc(100vw - 24px), calc((100dvh - 24px) * 0.7460938));
    aspect-ratio: 764 / 1024;
    background-image: url('/modules/custom/usha_hugs/images/hugwinterlogin-ipad.webp');
  }

  .uh-modal-content {
    inset: 29.5% 13.5% 7.5% 13.5%;
    padding: 8px 14px 10px;
  }

  .uh-modal-overlay#uhClaimModal .uh-modal-close,
  .uh-modal-overlay#uhOtpModal .uh-modal-close {
    top: 29%;
    right: 13.5%;
  }

  .uh-modal-overlay#uhOtpModal .uh-back-btn {
    top: 29%;
    left: 13.5%;
  }

  .uh-modal-content .uh-modal-title {
    font-size: 22px;
  }

  .uh-modal-content .uh-consents {
    gap: 8px;
    margin: 6px 0 10px;
  }

  .uh-modal-content .uh-checkbox-label {
    font-size: 12px;
    line-height: 1.32;
  }

  .uh-modal-content .uh-btn-primary {
    width: clamp(230px, 66%, 320px);
  }
}

/* Mobile Breakpoint (max-width: 600px) */
@media (max-width: 600px) {
  .uh-modal-overlay {
    padding: 6px;
  }

  .uh-modal-overlay#uhClaimModal .uh-modal-card,
  .uh-modal-overlay#uhOtpModal .uh-modal-card {
    width: min(420px, calc(100vw - 12px), calc((100vh - 12px) * 0.5703125));
    width: min(420px, calc(100vw - 12px), calc((100dvh - 12px) * 0.5703125));
    aspect-ratio: 584 / 1024;
    border-radius: 18px;
    background-image: url('/modules/custom/usha_hugs/images/hugwinterlogin-mobile.webp');
  }

  .uh-modal-content {
    inset: 21% 17% 28.5% 17%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
  }

  .uh-modal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .uh-modal-overlay#uhClaimModal .uh-modal-close,
  .uh-modal-overlay#uhOtpModal .uh-modal-close {
    top: 19.8%;
    right: 16%;
    width: 24px;
    height: 24px;
    font-size: 15px;
    line-height: 1;
    z-index: 12;
  }

  .uh-modal-overlay#uhOtpModal .uh-back-btn {
    top: 19.8%;
    left: 16%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 1;
    z-index: 12;
  }

  .uh-form-row {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.7vh, 4px);
  }

  .uh-modal-content .uh-card-header {
    margin-bottom: 1px;
    padding: 0 20px;
    text-align: center;
  }

  .uh-modal-content .uh-modal-title {
    font-family: var(--uh-font-din);
    font-size: clamp(14px, 3.8vw, 16.5px);
    font-weight: 700;
    line-height: 1.15;
    color: #141B26;
    margin: 0;
    text-align: center;
    letter-spacing: -0.2px;
  }

  .uh-title-divider {
    margin: 2px auto 2px;
    width: 90px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(242, 194, 48, 0) 0%, rgba(242, 194, 48, 0.9) 50%, rgba(242, 194, 48, 0) 100%);
  }

  .uh-modal-content .uh-modal-subtitle {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(8.5px, 2.3vw, 9.6px);
    color: #4B5563;
    line-height: 1.18;
    margin: 0;
    text-align: center;
  }

  .uh-modal-content #uhClaimForm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
    margin: 2px 0 0;
  }

  .uh-modal-content #uhOtpForm {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;
    min-height: 0;
    margin: 3px 0 0;
  }

  .uh-modal-content .uh-form-group {
    margin: 0;
  }

  .uh-modal-content .uh-field-label {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(9px, 2.4vw, 10.2px);
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1.5px;
    display: block;
  }

  .uh-modal-content .uh-text-input,
  .uh-modal-content .uh-phone-input-wrap {
    height: clamp(28px, 4.2vh, 32px);
    border: 1.5px solid #C41018;
    border-radius: 7px;
    background: #FFFFFF;
    box-shadow: inset 0 1px 2px rgba(40, 20, 10, 0.04);
  }

  .uh-modal-content .uh-text-input {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(10.5px, 2.7vw, 11.8px);
    padding: 0 8px;
    line-height: normal;
    color: #1F2937;
  }

  .uh-modal-content .uh-phone-prefix {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(10.5px, 2.7vw, 11.8px);
    font-weight: 600;
    color: #1F2937;
    padding: 0 0 0 8px;
  }

  .uh-modal-content .uh-prefix-divider {
    height: 13px;
    width: 1px;
    background: #D1D5DB;
    margin: 0 4px 0 3px;
  }

  .uh-modal-content .uh-phone-input {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(10.5px, 2.7vw, 11.8px);
    color: #1F2937;
  }

  .uh-modal-content .uh-consents {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.6vh, 4px);
    margin: clamp(2px, 0.5vh, 4px) 0;
  }

  .uh-modal-content .uh-checkbox-label {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(7.8px, 2.1vw, 8.8px);
    line-height: 1.18;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 4.5px;
  }

  .uh-modal-content .uh-checkbox-label input[type="checkbox"] {
    width: 12px;
    height: 12px;
    min-width: 12px;
    margin-top: 1px;
    accent-color: #D71F26;
    border-radius: 3px;
    cursor: pointer;
  }

  .uh-modal-content .uh-legal-note {
    font-family: var(--uh-font-helvetica);
    font-size: clamp(7px, 1.9vw, 8px);
    line-height: 1.15;
    color: #4B5563;
    text-align: center;
    margin: 1px 0;
  }

  .uh-modal-content .uh-legal-note a {
    color: #D71F26;
    font-weight: 600;
    text-decoration: underline;
  }

  .uh-modal-content .uh-btn-primary {
    width: 100%;
    max-width: clamp(170px, 86%, 220px);
    height: clamp(29px, 4.3vh, 33px);
    min-height: clamp(29px, 4.3vh, 33px);
    font-family: var(--uh-font-din);
    font-size: clamp(12px, 3.1vw, 13px);
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #FFFFFF;
    background: linear-gradient(180deg, #D71F26 0%, #A8141A 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(215, 31, 38, 0.3);
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .uh-modal-content .uh-otp-digit {
    width: clamp(26px, 7vw, 32px);
    height: clamp(32px, 8.5vw, 38px);
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 700;
    border-radius: 7px;
  }

  .uh-modal-content .uh-otp-boxes {
    gap: clamp(3px, 1.1vw, 5px);
    margin: 3px 0;
    display: flex;
    justify-content: center;
  }

  .uh-modal-content .uh-otp-timer-row {
    font-size: clamp(9px, 2.4vw, 10.5px);
    margin: 2px 0;
    text-align: center;
  }
}

/* Compact Height / Mobile Landscape */
@media (max-height: 520px) {
  .uh-modal-overlay#uhClaimModal .uh-modal-card,
  .uh-modal-overlay#uhOtpModal .uh-modal-card {
    width: min(600px, calc((100vh - 16px) * 1.340314));
    aspect-ratio: 1024 / 764;
    background-image: url('/modules/custom/usha_hugs/images/hugwinterlogin-desktop.webp');
  }

  .uh-modal-content {
    inset: 34.5% 15% 7% 15%;
    padding: 4px 10px;
  }

  .uh-modal-overlay#uhClaimModal .uh-modal-close,
  .uh-modal-overlay#uhOtpModal .uh-modal-close {
    top: 33.8%;
    right: 14.5%;
  }

  .uh-modal-overlay#uhOtpModal .uh-back-btn {
    top: 33.8%;
    left: 14.5%;
  }

  .uh-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .uh-modal-content .uh-text-input,
  .uh-modal-content .uh-phone-input-wrap {
    height: 36px;
  }

  .uh-modal-content .uh-btn-primary {
    height: 38px;
    min-height: 38px;
    font-size: 14px;
  }
}

/* Modal Box */
.uh-modal-card {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  max-width: min(480px, calc(100vw - 32px));
  background: #FFFDF9;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: 32px 28px 28px;
  color: var(--uh-text-dark);
  font-family: var(--uh-font-body);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  box-sizing: border-box;
}

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

.uh-modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #FFF0E2;
  color: var(--uh-text-dark);
  cursor: pointer;
  font: 700 25px/1 var(--uh-font-body);
}

.uh-modal-close:hover,
.uh-modal-close:focus-visible {
  background: #FFE2C8;
}

.uh-modal-close:focus-visible {
  outline: 3px solid var(--uh-red);
  outline-offset: 2px;
}

.uh-modal-overlay.uh-active .uh-modal-card {
  transform: translateY(0) scale(1);
}

/* Festive Header Banner in Card */
.uh-card-header {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
}

.uh-logo-badge {
  display: inline-block;
  margin-bottom: 8px;
}

.uh-logo-badge img,
.uh-logo-badge svg {
  height: 38px;
  width: auto;
}

.uh-title-script {
  font-family: 'Caveat', cursive, sans-serif;
  color: var(--uh-red);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.uh-modal-title {
  font-family: var(--uh-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--uh-text-dark);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.uh-modal-subtitle {
  font-size: 14.5px;
  color: var(--uh-text-muted);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 360px;
}

/* Back button in OTP modal */
.uh-back-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #FFF0E2;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--uh-text-dark);
  font-size: 18px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.uh-back-btn:hover {
  background: #FFE2C8;
  transform: scale(1.05);
}

/* Form Elements */
.uh-form-group {
  margin-bottom: 18px;
}

.uh-field-label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--uh-text-dark);
  font-size: 13px;
  font-weight: 700;
}

.uh-field-label span {
  color: var(--uh-red);
}

.uh-text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1.5px solid var(--uh-border);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--uh-text-dark);
  font: 600 16px var(--uh-font-body);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.uh-text-input:focus {
  outline: none;
  border-color: var(--uh-red);
  box-shadow: 0 0 0 3px rgba(215, 31, 38, 0.15);
}

.uh-text-input::placeholder {
  color: #B5A599;
  font-weight: 400;
}

.uh-phone-input-wrap {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--uh-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.uh-phone-input-wrap:focus-within {
  border-color: var(--uh-red);
  box-shadow: 0 0 0 3px rgba(215, 31, 38, 0.15);
}

.uh-phone-prefix {
  padding: 14px 14px 14px 16px;
  font-weight: 700;
  font-size: 16px;
  color: var(--uh-text-dark);
  background: #FAF6F0;
  border-right: 1px solid var(--uh-border);
  display: flex;
  align-items: center;
  gap: 4px;
}

.uh-phone-prefix span {
  font-size: 11px;
  opacity: 0.6;
}

.uh-phone-input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: var(--uh-text-dark);
  background: transparent;
}

.uh-phone-input::placeholder {
  color: #B5A599;
  font-weight: 400;
}

/* Consent Checkboxes */
.uh-consents {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.uh-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
  color: var(--uh-text-dark);
}

.uh-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid #C4B5A5;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  background: #FFF;
  position: relative;
  transition: all 0.15s ease;
}

.uh-checkbox-label input[type="checkbox"]:checked {
  background: var(--uh-red);
  border-color: var(--uh-red);
}

.uh-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #FFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.uh-legal-note {
  font-size: 12px;
  color: var(--uh-text-muted);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
}

.uh-legal-note a {
  color: var(--uh-red);
  text-decoration: underline;
  cursor: pointer;
}

/* Primary Action Buttons */
.uh-btn-primary {
  width: 100%;
  height: 52px;
  background: linear-gradient(180deg, #E52E35 0%, var(--uh-red) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-family: var(--uh-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 var(--uh-red-dark), 0 8px 16px rgba(215, 31, 38, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.uh-btn-primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--uh-red-dark), 0 4px 8px rgba(215, 31, 38, 0.2);
}

.uh-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: 0 2px 0 var(--uh-red-dark);
}

/* Secondary Action Button */
.uh-btn-secondary {
  width: 100%;
  height: 48px;
  background: #FFF;
  color: var(--uh-text-dark);
  border: 1.5px solid var(--uh-border);
  border-radius: 16px;
  font-family: var(--uh-font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 #D4C4B5;
  transition: background 0.15s ease;
}

.uh-btn-secondary:hover:not(:disabled) {
  background: #FAF6F0;
}

.uh-btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #F5EFE8;
  box-shadow: none;
}

/* 6-Digit OTP Boxes */
.uh-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 16px;
}

.uh-otp-digit {
  width: 50px;
  height: 60px;
  background: #FFFFFF;
  border: 1.5px solid var(--uh-border);
  border-radius: 14px;
  text-align: center;
  font-family: var(--uh-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--uh-text-dark);
  outline: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.uh-otp-digit:focus {
  border-color: var(--uh-red);
  box-shadow: 0 0 0 3px rgba(215, 31, 38, 0.15);
}

.uh-otp-timer-row {
  text-align: center;
  font-size: 14px;
  color: var(--uh-text-muted);
  margin-bottom: 22px;
}

.uh-otp-timer-row strong {
  color: var(--uh-red);
  font-weight: 800;
}

.uh-resend-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--uh-red);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  display: none;
}

/* Success Card */
.uh-success-badge {
  width: 76px;
  height: 76px;
  background: #E8F8EE;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(39, 174, 96, 0.12);
}

.uh-success-badge svg {
  width: 42px;
  height: 42px;
}

.uh-participation-card {
  background: #FFF2E5;
  border: 1.5px dashed #F2B98E;
  border-radius: 18px;
  padding: 16px 20px;
  text-align: center;
  margin: 20px 0 24px;
}

.uh-participation-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8C4E28;
  margin-bottom: 6px;
}

.uh-participation-id {
  font-family: var(--uh-font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--uh-red);
}

/* Terms & Conditions Accordion Modal */
.uh-tc-card {
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.uh-tc-body {
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
  flex: 1;
}

.uh-accordion-item {
  border: 1.5px solid var(--uh-border);
  border-radius: 14px;
  margin-bottom: 10px;
  background: #FFF;
  overflow: hidden;
}

.uh-accordion-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--uh-text-dark);
  background: #FFFAF4;
}

.uh-accordion-header svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.uh-accordion-item.uh-open .uh-accordion-header svg {
  transform: rotate(180deg);
}

.uh-accordion-content {
  display: none;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4A3E35;
  border-top: 1px solid var(--uh-border);
}

.uh-accordion-item.uh-open .uh-accordion-content {
  display: block;
}

/* Festive Winter Accents */
.uh-heater-decor {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 70px;
  opacity: 0.85;
  pointer-events: none;
}

/* Welcome Back & Completion Modal (aligned with in-game card styling) */
.uh-welcome-card {
  background: var(--uh-cream);
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
  text-align: center;
}

.uh-welcome-card .uh-success-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}

.uh-welcome-card .uh-success-badge svg {
  width: 34px;
  height: 34px;
}

.uh-welcome-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.uh-welcome-header .uh-title-script {
  font-size: 23px;
  margin-bottom: 0;
}

.uh-welcome-header .uh-modal-title {
  font-size: clamp(24px, 5vw, 28px);
  margin: 0;
  letter-spacing: -0.01em;
}

.uh-welcome-header .uh-modal-subtitle {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--uh-text-muted);
}

.uh-welcome-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.uh-welcome-body:empty {
  display: none;
}

.uh-info-pill {
  padding: 10px 14px;
  border-radius: 14px;
  background: #F4E8D8;
  color: #4E3B2F;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.uh-info-pill--warm {
  background: linear-gradient(90deg, #FFE3C2, #FFD2A8);
  border: 1.5px solid #F2A65A;
  color: #5A2A12;
}

.uh-checkpoint-note {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--uh-text-muted);
}

.uh-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uh-welcome-card .uh-btn-primary {
  height: 52px;
  background: var(--uh-red);
  box-shadow: 0 5px 0 var(--uh-red-dark);
  font-size: 19px;
}

.uh-welcome-card .uh-btn-primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--uh-red-dark);
}

.uh-welcome-card .uh-btn-secondary {
  height: 50px;
  border: none;
  background: #FFFFFF;
  color: var(--uh-text-dark);
  font-family: var(--uh-font-body);
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--uh-text-dark), 0 4px 0 var(--uh-text-dark);
}

.uh-welcome-card .uh-btn-secondary:hover:not(:disabled) {
  background: #FFFDF9;
}

.uh-welcome-card .uh-btn-secondary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 2px var(--uh-text-dark), 0 2px 0 var(--uh-text-dark);
}

.uh-welcome-card .uh-btn-secondary:disabled {
  opacity: 0.55;
  background: #EFE6DB;
  box-shadow: inset 0 0 0 1.5px #C8B8A8;
}

/* Alert / Error Banner */
.uh-alert-box {
  background: #FEECEB;
  border-left: 4px solid var(--uh-red);
  color: #9C1920;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

@media (max-width: 480px) {
  .uh-modal-card {
    padding: 24px 20px 20px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .uh-otp-digit {
    width: 42px;
    height: 52px;
    font-size: 22px;
  }
  .uh-participation-id {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .uh-phone-input {
    padding-right: 8px;
    padding-left: 10px;
    font-size: 14px;
  }
  .uh-phone-prefix {
    padding-right: 10px;
    padding-left: 12px;
  }
}
