#home-welcome-overlay {
  display: none;
}

/* !important：压过 #age-gate-boot 上的内联 display:none。显隐规则同时写在 app/layout.tsx 的内联 <style> 里，避免这份无哈希 CSS 被旧缓存卡住。 */
#age-gate-boot {
  display: none !important;
}

html.happyai-age-gate-pending #age-gate-boot {
  display: block !important;
}

html.happyai-welcome-show #home-welcome-overlay {
  display: flex;
  animation: happyai-welcome-overlay-timeout 0s linear 3s forwards;
}

html.happyai-welcome-show #home-welcome-notice {
  animation: happyai-welcome-notice-hide 150ms ease 850ms forwards;
}

@keyframes happyai-welcome-notice-hide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes happyai-welcome-overlay-timeout {
  to {
    pointer-events: none;
    visibility: hidden;
  }
}
