/* The opening paints before the app styles and fonts are ready. */
#splash {
  display: none;
  color: #fff;
  text-align: center;
}
#splash.active {
  position: fixed;
  inset: 0;
  min-height: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
  contain: layout style;
}
#splash.leaving {
  opacity: 0;
  transform: none;
  transition: opacity .34s ease;
  pointer-events: none;
}
#splash::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}
#splash .splash-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%,360px);
}
#splash .splash-mark { display: block; }
#splash .splash-wordmark { line-height: 1.12; gap: 1px; }
html[data-app-styles-pending] #splash ~ :not(script):not(#bootPending) { display: none; }

@media (max-width:430px) {
  #splash.active { padding: 22px; }
}

/* Splash Magic — eca400f */

#splash {
  background:
    radial-gradient(120% 80% at 50% 110%, #1a2350 0%, #0d1230 55%, #07091c 100%);
}
#splash::before {
  background:
    radial-gradient(50% 35% at 50% 55%, rgba(255,199,170,0.28) 0%, rgba(255,199,170,0) 70%);
  animation: osyra-splash-pulse 4s ease-in-out infinite;
}
@keyframes osyra-splash-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

#splash .splash-mark { /* Allow the dot overshoot and pulse to extend past the SVG viewport. */
  overflow:visible;
  /* Keep the animating SVG out of the filtered layer defined by the app styles. */
  filter: none;
  animation: osyra-mark-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes osyra-mark-in {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* One path shares the rounded contour between the drawing and the fill. */
#splash .moon-shape {
  stroke: #ffd9c0;
  /* The path transform scales these units by .1 before the SVG scales to fit. */
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  fill-opacity: 0;
  paint-order: stroke fill;
  animation: osyra-trace-draw 1.5s cubic-bezier(0.45, 0, 0.35, 1) 0.4s forwards,
             osyra-trace-fade 0.5s ease 2.0s forwards,
             osyra-moon-fill 0.9s ease-in-out 1.6s forwards;
}
@keyframes osyra-trace-draw {
  15% { stroke-opacity: 1; }
  100% { stroke-dashoffset: 0; stroke-opacity: 1; }
}
@keyframes osyra-trace-fade {
  from { stroke-opacity: 1; }
  to { stroke-opacity: 0; }
}
@keyframes osyra-moon-fill {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}

#splash .moon-dot {
  opacity: 0;
  animation: osyra-dot-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.35s forwards;
}
@keyframes osyra-dot-in {
  0% { opacity: 0; r: 21px; }
  60% { opacity: 1; r: 61px; }
  100% { opacity: 1; r: 52px; }
}

/* pulso de luz saindo da bolinha */
#splash .dot-burst {
  fill: none;
  stroke: rgba(255,217,192,0.9);
  stroke-width: 3;
  opacity: 0;
  animation: osyra-dot-burst 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}
@keyframes osyra-dot-burst {
  0% { opacity: 0; r: 62px; }
  25% { opacity: .6; }
  100% { opacity: 0; r: 109px; }
}

#splash .splash-wordmark {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 44px;
  letter-spacing: 0.04em;
  color: #ffd2b8;
  text-shadow: 0 0 24px rgba(255,199,170,0.4);
}
#splash .splash-wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: osyra-letter-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes osyra-letter-in {
  to { opacity: 1; transform: translateY(0); }
}

#splash .moon-caption span {
  color: rgba(255, 210, 184, 0.55);
}
#splash .moon-caption span {
  opacity: 0;
  display: inline-block;
  animation: osyra-char-in 0.5s ease-out forwards;
}
@keyframes osyra-char-in {
  to { opacity: 1; }
}

#splash .splash-mark { width:140px; height:190px; }
#splash .splash-wordmark { display:flex; margin:24px 0 0; }
#splash .moon-caption { display:grid; margin-top:20px; font:400 14px/1.625 system-ui,sans-serif; letter-spacing:.25em; text-align:center; }
/* Both captions keep the original clock if the app locale resolves during playback. */
#splash .moon-caption > div { grid-area:1 / 1; }
#splash .caption-en, html:lang(en) #splash .caption-pt { visibility:hidden; }
html:lang(en) #splash .caption-en { visibility:visible; }
/* The last English character starts at 3.490s and must finish within 3.8s. */
#splash .caption-en > div:last-child span { animation-duration:.28s; }
@media (min-width:640px) {
  #splash .splash-mark { width:170px; height:230px; }
  #splash .moon-caption { font-size:16px; }
}
#splash .splash-wordmark span:nth-child(1) { animation-delay:2.50s; }
#splash .splash-wordmark span:nth-child(2) { animation-delay:2.59s; }
#splash .splash-wordmark span:nth-child(3) { animation-delay:2.68s; }
#splash .splash-wordmark span:nth-child(4) { animation-delay:2.77s; }
#splash .splash-wordmark span:nth-child(5) { animation-delay:2.86s; }
@media (prefers-reduced-motion:reduce) {
  #splash.leaving { transition:none; }
  #splash::before, #splash .splash-mark, #splash .moon-shape, #splash .moon-dot, #splash .splash-wordmark span, #splash .moon-caption span { animation:none; opacity:1; fill-opacity:1; transform:none; filter:none; }
  #splash .dot-burst { display:none; }
}
@media (max-height:440px) {
  #splash.active { padding-block:8px; }
  #splash .splash-mark { height:min(40dvh,160px); width:auto; }
  #splash .splash-wordmark { margin-top:8px; font-size:34px; }
  #splash .moon-caption { margin-top:8px; }

}

/* Stable opening typography while account/theme styles load in parallel. */
#splash .splash-wordmark span { color:inherit; }
/* Preserve the completed opening while the existing boot lifecycle finishes. */
.boot-pending { position:fixed; inset:0; z-index:9998; box-sizing:border-box; display:grid; place-items:center; overflow:hidden; padding:24px; color:#fff; text-align:center; background:radial-gradient(120% 80% at 50% 110%, #1a2350 0%, #0d1230 55%, #07091c 100%); }
.boot-pending[hidden] { display:none; }
.boot-pending:has(.boot-recovery:not([hidden])) { grid-template-rows:1fr auto; gap:20px; overflow:auto; }
.boot-recovery { position:relative; width:min(100%,440px); font:400 15px/1.5 system-ui,sans-serif; letter-spacing:normal; }
.boot-recovery[hidden] { display:none; }
.boot-recovery button { border:1px solid rgba(255,210,184,.55); border-radius:12px; padding:12px 20px; color:#ffd2b8; background:#172044; font:600 15px system-ui,sans-serif; cursor:pointer; }
.boot-recovery button:disabled { opacity:.55; cursor:wait; }
.boot-recovery button:focus-visible { outline:3px solid #ffd2b8; outline-offset:4px; }
.boot-pending::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(50% 35% at 50% 55%, rgba(255,199,170,.25) 0%, transparent 70%); }
.boot-pending-center { position:relative; display:grid; justify-items:center; width:min(100%,360px); }
.boot-pending-mark { display:block; width:140px; height:190px; }
.boot-pending-wordmark { margin:24px 0 0; font:300 44px/1.12 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:.04em; color:#ffd2b8; text-shadow:0 0 24px rgba(255,199,170,.4); }
.boot-pending-caption { display:grid; margin-top:20px; font:400 14px/1.625 system-ui,sans-serif; letter-spacing:.25em; color:rgba(255,210,184,.55); }
.boot-pending-caption > div { grid-area:1 / 1; }
.boot-pending-en, html:lang(en) .boot-pending-pt { visibility:hidden; }
html:lang(en) .boot-pending-en { visibility:visible; }
@media (min-width:640px) { .boot-pending-mark { width:170px; height:230px; } .boot-pending-caption { font-size:16px; } }
@media (max-height:440px) { .boot-pending { padding-block:8px; } .boot-pending-mark { height:min(40dvh,160px); width:auto; } .boot-pending-wordmark { margin-top:8px; font-size:34px; } .boot-pending-caption { margin-top:8px; } }
