/* PHANTASM'27 — FINAL TARGETED MOBILE / REGISTRATION FIXES
   Scope: mobile homepage spacing + registration readability/overflow
   Mobile layout fixes removed.
*/

@media (max-width: 768px) {
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-shell { padding-top: 4px !important; }
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-institution { margin-top: 0 !important; }

  .phantasm-mobile-rebuilt .phantasm-mobile-hero-date {
    margin: 6px auto 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
  }

  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown-heading {
    display: block !important;
    width: min(calc(100% - 24px), 420px) !important;
    max-width: 420px !important;
    margin: 6px auto 0 !important;
    padding: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown,
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown.countdown {
    width: min(calc(100% - 24px), 420px) !important;
    max-width: 420px !important;
    margin: 6px auto 1rem !important;
    padding: 15px 13px 17px !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown > span,
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 430px) {
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-shell { padding-top: 3px !important; }
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown-heading {
    margin-top: 5px !important;
    width: calc(100% - 20px) !important;
  }
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown,
  .phantasm-mobile-rebuilt .phantasm-mobile-hero-countdown.countdown {
    width: calc(100% - 20px) !important;
    max-width: 420px !important;
    margin-top: 5px !important;
  }
}

#root .register-page :is(input, select, textarea) {
  color: #f3e6c8 !important;
  -webkit-text-fill-color: #f3e6c8 !important;
  caret-color: #f0cf8b !important;
  color-scheme: dark;
}

#root .register-page :is(input, select, textarea):-webkit-autofill,
#root .register-page :is(input, select, textarea):-webkit-autofill:hover,
#root .register-page :is(input, select, textarea):-webkit-autofill:focus {
  -webkit-text-fill-color: #f3e6c8 !important;
  box-shadow: 0 0 0 1000px rgba(4, 3, 2, 0.98) inset !important;
}

#root .success-wrapper,
#root .success-wrapper .success-card,
#root .success-wrapper .status-box {
  box-sizing: border-box !important;
}

#root .success-wrapper .success-card {
  width: 100% !important;
  max-width: 900px !important;
}

#root .success-wrapper .status-box,
#root .success-wrapper .status-box * {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

#root .success-wrapper .status-box {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

#root .success-wrapper .status-box b {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

#root :is([class*="payment" i], [class*="success" i], [class*="status" i]) {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}