/* Divine Preloader – configurable-time royal temple welcome, v1.1.95.
   Only active while html.pjpl-active; zero layout impact on the site. */
#pj-divine-preloader.pjpl {
  --pjpl-gold: #f2cf7e;
  --pjpl-bright: #ffe7a9;
  --pjpl-dim: rgba(245, 201, 110, .48);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  box-sizing: border-box;
  color: #fff0cd;
  text-align: center;
  background:
    radial-gradient(ellipse 75% 62% at 50% 44%, rgba(158, 45, 39, .33) 0%, rgba(77, 9, 25, .15) 52%, transparent 80%),
    radial-gradient(ellipse 115% 75% at 50% 113%, rgba(156, 66, 20, .28), transparent 65%),
    linear-gradient(145deg, #1b040d 0%, #440a1a 36%, #260512 73%, #13050c 100%);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}
html.pjpl-active #pj-divine-preloader.pjpl,
html.pjpl-leaving #pj-divine-preloader.pjpl { display: grid; }
html.pjpl-active body { overflow: hidden !important; }
html.pjpl-leaving #pj-divine-preloader.pjpl {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
  transition: opacity .72s ease, transform .72s ease;
}
#pj-divine-preloader.pjpl[hidden] { display: none !important; }
.pjpl *, .pjpl *::before, .pjpl *::after { box-sizing: border-box; }
.pjpl::before, .pjpl::after { content: ''; position: absolute; pointer-events: none; }
.pjpl::before { display: none; } /* No full-screen rectangular frame. */
.pjpl::after {
  width: min(1050px, 115vw); height: min(1050px, 115vw);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, transparent 0deg 11deg, rgba(255, 192, 78, .018) 11deg 11.2deg, transparent 11.2deg 22deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 24%, #000 43%, transparent 64%);
  mask-image: radial-gradient(circle, transparent 0 24%, #000 43%, transparent 64%);
}
.pjpl__stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .50;
  background-image:
    radial-gradient(circle, #ffdb8a 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 222, 146, .65) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 198, 95, .45) .7px, transparent 1.5px);
  background-size: 131px 127px, 199px 213px, 97px 181px;
  background-position: 10px 20px, 80px 105px, 42px 77px;
  animation: pjplStars 6s ease-in-out both;
}
/* Deliberately no gold corner frames. */
.pjpl__layout {
  position: relative; z-index: 2; width: min(100% - 48px, 800px);
  margin: 0 auto; padding: 20px 8px 36px;
  display: flex; flex-direction: column; align-items: center;
}
.pjpl__topline {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #eec77b; font: 600 clamp(8px, .7vw, 10px)/1.2 system-ui, sans-serif;
  letter-spacing: .36em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 14px rgba(246, 171, 69, .26);
  animation: pjplRise 1.3s .2s both;
}
.pjpl__rule { height: 1px; width: clamp(21px, 5vw, 56px); background: linear-gradient(90deg, transparent, #bc8945, transparent); }
.pjpl__tiny-diamond { font-size: 12px; letter-spacing: 0; color: #ffda88; }
.pjpl__emblem {
  position: relative; display: grid; place-items: center;
  width: clamp(236px, 32vmin, 350px);
  height: clamp(236px, 32vmin, 350px);
  margin-top: clamp(11px, 3vmin, 20px);
}
.pjpl__aura {
  position: absolute; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 195, 66, .29), rgba(210, 76, 21, .12) 44%, transparent 72%);
  filter: blur(17px); animation: pjplBreathe 3s ease-in-out infinite alternate;
}
.pjpl__mandala { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.pjpl__mandala--outer {
  border: 1px solid rgba(247, 205, 108, .39);
  background: repeating-conic-gradient(from 0deg, transparent 0 13deg, rgba(255, 202, 100, .19) 13deg 14deg, transparent 14deg 24deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 70%, #000 73% 76%, transparent 79%);
  mask-image: radial-gradient(circle, transparent 0 70%, #000 73% 76%, transparent 79%);
  animation: pjplRotate 28s linear infinite;
}
.pjpl__mandala--inner {
  inset: 9%; border: 1px dashed rgba(252, 216, 132, .43);
  box-shadow: 0 0 23px rgba(229, 158, 67, .07), inset 0 0 23px rgba(229, 158, 67, .07);
  animation: pjplRotateReverse 24s linear infinite;
}
.pjpl__logo-frame {
  position: relative; z-index: 1; width: 69%; height: 72%;
  display: grid; place-items: center;
  animation: pjplLogoReveal 1.65s cubic-bezier(.17,.67,.21,1) both;
  filter: drop-shadow(0 7px 27px rgba(255, 151, 35, .36));
}
.pjpl__logo {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; border: none; box-shadow: none; background: transparent;
}
.pjpl__intro { color: #f5cb78; font-size: clamp(12px, 1.5vmin, 17px); letter-spacing: .11em; line-height: 1.5; animation: pjplRise 1.2s .4s both; }
.pjpl__name {
  display: block; max-width: 100%; margin: 8px 0 3px; padding: 0;
  font: 600 clamp(30px, 4.5vmin, 57px)/1.14 Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.025em; text-transform: none; text-wrap: balance;
  background: linear-gradient(175deg, #fff8e3 5%, #f5cb7a 49%, #e8a54f 80%, #fff1cd 100%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 19px rgba(235, 153, 66, .2));
  animation: pjplRise 1.5s .65s both;
}
.pjpl__subtitle {
  max-width: 90%; margin: 7px 0 0; padding: 0;
  color: #f3d9b0; font: 500 clamp(10px, 1.45vmin, 14px)/1.5 system-ui, sans-serif;
  letter-spacing: clamp(.09em, .24vw, .23em);
  text-transform: uppercase;
  animation: pjplRise 1.5s .8s both;
}
.pjpl__separator {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 22px;
  color: #ffda8c; font-size: 15px; animation: pjplRise 1.5s 1s both;
}
.pjpl__separator i { display: block; width: clamp(42px, 7vmin, 82px); height: 1px; background: linear-gradient(90deg, transparent, #e2af6a, transparent); }
.pjpl__loader-area { width: min(100%, 322px); animation: pjplRise 1.5s 1.08s both; }
.pjpl__loading-label {
  display: block; color: #dbb982;
  font: 500 clamp(9px, 1.2vmin, 11px)/1.4 system-ui, sans-serif;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 15px;
}
.pjpl__track {
  height: 3px; width: 100%; border-radius: 12px; overflow: hidden;
  background: rgba(241, 199, 114, .19);
  box-shadow: 0 0 0 1px rgba(245, 194, 113, .07), 0 0 23px rgba(244, 176, 57, .1);
}
.pjpl__progress {
  width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, #ba6926, #f9cb71 42%, #fff6ce 74%, #f5b450);
  box-shadow: 0 0 19px #ffc95d;
  animation: pjplProgress var(--pjpl-duration, 6000ms) linear both;
}
.pjpl__petals { display: flex; justify-content: center; gap: 15px; margin-top: 13px; color: #d8ae65; font-size: 10px; }
.pjpl__petals span:nth-child(1) { animation: pjplTwinkle 2.1s ease-in-out infinite; }
.pjpl__petals span:nth-child(2) { animation: pjplTwinkle 2.1s ease-in-out .7s infinite; }
.pjpl__petals span:nth-child(3) { animation: pjplTwinkle 2.1s ease-in-out 1.4s infinite; }
.pjpl__bottom {
  position: absolute; z-index: 2; bottom: clamp(26px, 5.3vh, 55px);
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  width: calc(100% - 44px); white-space: nowrap;
  font: 400 clamp(10px, 1.1vw, 12px)/1.3 Georgia, serif;
  letter-spacing: .075em; color: #c69b67;
  animation: pjplRise 2s 1.1s both;
}
.pjpl__diya { position: relative; width: 24px; height: 17px; display: inline-block; border-bottom: 2px solid #cd9951; border-radius: 0 0 90% 90%; }
.pjpl__diya::before { content: ''; position: absolute; bottom: 2px; left: 5px; width: 14px; height: 6px; background: #ba7839; border-radius: 0 0 90% 90%; }
.pjpl__diya i { position: absolute; left: 10px; bottom: 10px; width: 5px; height: 10px; border-radius: 70% 20% 70% 40%; transform: rotate(12deg); transform-origin: bottom; background: #ffde80; box-shadow: 0 0 9px #ffad40, 0 0 18px rgba(250, 166, 55, .5); animation: pjplFlame .7s ease-in-out infinite alternate; }
@keyframes pjplStars { 0%,100% { opacity: .18; } 45% { opacity: .57; } }
@keyframes pjplRise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pjplBreathe { from { opacity:.47; transform:scale(.89) } to { opacity:.9; transform:scale(1.09) } }
@keyframes pjplLogoReveal { from { opacity:0; transform:scale(.75) rotate(-5deg); } to { opacity:1; transform:scale(1) rotate(0deg); } }
@keyframes pjplRotate { to { transform: rotate(360deg) } }
@keyframes pjplRotateReverse { to { transform: rotate(-360deg) } }
@keyframes pjplTwinkle { 0%,100% { opacity:.3; transform:scale(.8) } 50% { opacity:1; transform:scale(1.35) } }
@keyframes pjplProgress { from { transform:scaleX(0) } to { transform:scaleX(1) } }
@keyframes pjplFlame { from { transform:rotate(1deg) scale(.9) } to { transform:rotate(19deg) scale(1.15) } }
@media (max-width: 650px) {
  .pjpl__layout { width: min(100% - 42px, 400px); padding: 18px 0 30px; }
  .pjpl__emblem { width: clamp(218px, 57vw, 280px); height: clamp(218px, 57vw, 280px); margin-top: 18px; }
  .pjpl__name { font-size: clamp(29px, 8.2vw, 42px) !important; }
  .pjpl__subtitle { font-size: clamp(9px, 2.5vw, 12px); letter-spacing: .105em; }
  .pjpl__separator { margin: 18px 0; }
  .pjpl__loading-label { letter-spacing: .13em; }
  .pjpl__bottom { bottom: max(30px, env(safe-area-inset-bottom) + 18px); gap: 12px; }
}
@media (max-height: 650px) {
  .pjpl__emblem { width: clamp(140px, 31vh, 220px); height: clamp(140px, 31vh, 220px); margin-top: 2px; }
  .pjpl__layout { padding: 10px 0 24px; }
  .pjpl__separator { margin: 9px 0; }
  .pjpl__bottom { bottom: 12px; }
  .pjpl__name { font-size: clamp(23px, 5vh, 37px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pjpl *, .pjpl *::before, .pjpl *::after { animation: none !important; transition: none !important; }
  .pjpl__progress { transform: scaleX(1); }
  html.pjpl-leaving #pj-divine-preloader.pjpl { opacity: 0; }
}
