/* Keep the initial document gated without flashing its legacy English fallback. */
html { --wrw-loading-status-text: "화면을 불러오는 중입니다."; }
html[lang^="en"] { --wrw-loading-status-text: "Loading page…"; }
html[lang^="zh"] { --wrw-loading-status-text: "正在加载页面…"; }
html:not([data-wrw-client-ready]):not([data-wrw-client-blocked]) #wrw-client-fallback {
  display: none !important;
}
html:not([data-wrw-client-ready]):not([data-wrw-client-blocked])::before,
html:has(body > #wrw-client-fallback):not([data-wrw-client-ready]):not([data-wrw-client-blocked])::before {
  content: var(--wrw-loading-status-text) !important;
  display: block !important;
  opacity: 0;
  animation: wrw-loading-status-reveal 0s linear 1.2s forwards !important;
  pointer-events: none;
}
html[data-wrw-client-blocked] body:not([data-analysis-state="unavailable"]) #wrw-client-fallback {
  display: none !important;
}
@keyframes wrw-loading-status-reveal {
  to { opacity: 1; }
}
