:root { color-scheme: dark; background: #102c60; font-synthesis: none; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; }
body::before {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(ellipse 48% 55% at 50% 48%, #5b70b0 0, #244884 55%, #0b2554 100%);
}
.frame { position: relative; display: grid; place-items: center; width: 100vw; height: 100vh; height: 100dvh; }
.stage {
  position: relative; width: min(100vw, 540px); height: 100%; overflow: hidden; isolation: isolate;
  background: #315c9e; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; outline: none;
  box-shadow: 0 0 100px rgba(4, 16, 52, .35);
}
.stage:focus-visible { outline: 2px solid #f8e6c8; outline-offset: -4px; }
#art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.blessing {
  position: absolute; z-index: 2; left: 50%; top: 46.5%; width: max-content;
  max-width: calc(100% - 24px); margin: 0; color: #ffe8bb;
  font-size: clamp(22px, 5.5vw, 28px); font-weight: 400; letter-spacing: .13em;
  line-height: 1.6; white-space: nowrap; text-align: center;
  text-shadow: 0 1px 7px rgba(5, 20, 52, .68);
  opacity: 0; transform: translate(-50%, 11px); filter: blur(7px);
  transition: opacity 1.7s ease, transform 2s ease, filter 2.1s ease;
  pointer-events: none;
}
.blessing.visible { opacity: 1; transform: translate(-50%, 0); filter: blur(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 359px) { .blessing { font-size: 21px; letter-spacing: .10em; } }
@media (prefers-reduced-motion: reduce) { .blessing { transition-duration: .01ms; } }
.reduced .blessing { transition-duration: .01ms; }
