/* Shared by every prerendered page; independent of the app and Tailwind. */
#splash {
  position: fixed;
  inset: 0;
  /* Toasts use 1500; keep the startup cover above the app. */
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #fff 0%, #fff7fb 55%, #fbe7f3 100%);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.7;
  transition: opacity .55s ease;
}
/* Without the bootstrap script, the static page remains readable. */
html:not(.splash-active):not(.splash-leaving) #splash { display: none; }
#splash *, #splash *::before, #splash *::after { box-sizing: border-box; }
#splash p { margin: 0; }
#splash img { display: block; }
.splash-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  transition: transform .6s ease-out;
}
.splash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #1e1b2e;
  animation: splash-rise .5s ease 50ms backwards;
}
.splash-brand b { color: #ec4899; font-weight: inherit; }
.splash-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f5d0fe;
}
.splash-map { position: relative; width: 262px; max-width: calc(100vw - 32px); aspect-ratio: 384 / 415; }
.splash-map > img { width: 100%; height: 100%; animation: splash-map-in .7s ease backwards; }
.splash-pin-position { position: absolute; width: 28px; height: 34px; transform: translate(-50%, -100%); }
.splash-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2.4px solid #ec4899;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 5px #33415530;
  animation: splash-pin-drop 360ms cubic-bezier(.3,1.5,.5,1) var(--splash-delay) backwards;
}
.splash-pin::after {
  content: '';
  position: absolute;
  left: calc(50% - 4px);
  bottom: -7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #ec4899;
}
.splash-count {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #db2777;
  font-variant-numeric: tabular-nums;
  animation: splash-rise .4s ease 300ms backwards;
}
.splash-count small { font-size: .55em; font-weight: 700; color: #334155; }
.splash-tagline { font-size: 12px; color: #64748b; animation: splash-rise .4s ease 500ms backwards; }
.splash-progress { width: 140px; height: 3px; margin-top: 6px; border-radius: 2px; background: #fbcfe8; overflow: hidden; animation: splash-fade .3s ease 200ms backwards; }
.splash-progress i { display: block; height: 100%; background: #ec4899; transform: scaleX(0); transform-origin: left; }
.splash-short .splash-map, .splash-short .splash-count, .splash-short .splash-tagline { display: none; }
.splash-short .splash-brand { animation: splash-fade .3s ease backwards; }
.splash-leaving #splash { opacity: 0; pointer-events: none; }
.splash-leaving .splash-inner { transform: scale(1.05); }
@keyframes splash-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes splash-map-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes splash-pin-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes splash-fade { from { opacity: 0; } }
@media (min-width: 768px) {
  .splash-map { width: 228px; }
  .splash-count { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash *::before, #splash *::after { animation: none; transition: none; }
  .splash-leaving .splash-inner { transform: none; }
  /* The app's global reduced-motion reset must still allow this plain fade. */
  #splash { transition: opacity .55s ease !important; }
}
