/* ApuAppi – yhteinen sovellusten aloitusruutu */
.apu-splash {
  --splash-bg-1: #173745;
  --splash-bg-2: #0c2530;
  --splash-ink: #f8f5ec;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.09), transparent 30rem),
    linear-gradient(155deg, var(--splash-bg-1) 0%, var(--splash-bg-2) 100%);
  color: var(--splash-ink);
  cursor: pointer;
  opacity: 1;
  transition: opacity .32s ease;
  -webkit-tap-highlight-color: transparent;
}

.apu-splash::before,
.apu-splash::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.apu-splash::before { width: 360px; height: 360px; left: -180px; bottom: -200px; }
.apu-splash::after { width: 260px; height: 260px; right: -130px; top: -140px; }

.apu-splash__image {
  width: 126px;
  height: 126px;
  border-radius: 29px;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.22));
  transform: translateY(0) scale(1);
  animation: apuSplashIn .52s cubic-bezier(.2,.8,.2,1) both;
}

.apu-splash__title {
  margin: 2px 0 0;
  font: 800 clamp(1.55rem, 5vw, 2.25rem)/1.05 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.025em;
  text-align: center;
}

.apu-splash__subtitle {
  margin: 0;
  max-width: 30rem;
  font: 700 .82rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  opacity: .68;
}

.apu-splash__brand {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font: 700 .72rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .42;
}

.apu-splash--out {
  opacity: 0;
  pointer-events: none;
}

@keyframes apuSplashIn {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 760px) {
  .apu-splash { gap: 19px; }
  .apu-splash__image { width: 168px; height: 168px; border-radius: 38px; }
  .apu-splash__subtitle { font-size: .9rem; }
}

@media (min-width: 1200px) {
  .apu-splash__image { width: 198px; height: 198px; border-radius: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .apu-splash { display: none !important; }
  .apu-splash__image { animation: none; }
}
