@font-face {
  font-family: MealAppStartup;
  src: url('assets/assets/font/Poppins-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

html, body { margin: 0; background: #0a1026; }

.mealapp-startup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #112c36 0%, #0d182d 30%, #0a1026 65%);
  color: #fff;
  transition: opacity 320ms ease, visibility 320ms ease;
}
.mealapp-startup.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.mealapp-startup__content { text-align: center; transform: translateY(-12px); }
.mealapp-startup__emblem {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  animation: mealapp-arrive 800ms cubic-bezier(.16, 1, .3, 1) both;
}
.mealapp-startup__emblem::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, #5becad22 0%, #6de4ff0b 45%, transparent 70%);
  animation: mealapp-glow 3s ease-in-out infinite;
}
.mealapp-startup__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #5becad12;
  border-radius: 50%;
}
.mealapp-startup__orbit::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: #5becad80;
  border-right-color: #6de4ff22;
  border-radius: inherit;
  animation: mealapp-orbit 5s linear infinite;
}
.mealapp-startup__logo {
  width: 112px;
  height: 112px;
  display: block;
  border-radius: 26px;
  box-shadow: 0 16px 48px #0004, 0 0 0 1px #5becad26;
}
.mealapp-startup__wordmark {
  margin: 0;
  font: 300 44px/1.2 MealAppStartup, 'Arial', sans-serif;
  letter-spacing: -1.8px;
  animation: mealapp-arrive 700ms 180ms cubic-bezier(.16, 1, .3, 1) both;
}
.mealapp-startup__wordmark span { color: #5becad; }
.mealapp-startup__subtitle {
  margin: 12px 0 30px;
  padding-left: 5px;
  color: #b7c8d1;
  font: 400 10px/1.5 'Arial', sans-serif;
  letter-spacing: 5px;
  animation: mealapp-arrive 700ms 280ms cubic-bezier(.16, 1, .3, 1) both;
}
.mealapp-startup__dots { display: flex; justify-content: center; gap: 8px; height: 6px; }
.mealapp-startup__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5becad;
  animation: mealapp-dot 1500ms ease-in-out infinite;
}
.mealapp-startup__dots i:nth-child(2) { animation-delay: 160ms; }
.mealapp-startup__dots i:nth-child(3) { animation-delay: 320ms; }
@keyframes mealapp-arrive { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mealapp-glow { 0%, 100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes mealapp-orbit { to { transform: rotate(360deg); } }
@keyframes mealapp-dot { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 480px) {
  .mealapp-startup__emblem { width: 156px; height: 156px; margin-bottom: 26px; }
  .mealapp-startup__logo { width: 96px; height: 96px; border-radius: 23px; }
  .mealapp-startup__wordmark { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .mealapp-startup, .mealapp-startup * , .mealapp-startup *::before, .mealapp-startup *::after { animation: none !important; transition: none !important; }
}

/* Logo motion stays independent of the entrance and orbit. */
.mealapp-startup__logo {
  animation: mealapp-logo-float 4s 800ms ease-in-out infinite;
}
.mealapp-startup__emblem::after {
  content: '';
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, #ffffff30 48%, transparent 65%);
  background-size: 300% 100%;
  animation: mealapp-logo-shine 4s 800ms ease-in-out infinite, mealapp-logo-float 4s 800ms ease-in-out infinite;
}
@keyframes mealapp-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes mealapp-logo-shine {
  0%, 15% { background-position: 150% 0; opacity: 0; }
  25% { opacity: 1; }
  55%, 100% { background-position: -50% 0; opacity: 0; }
}
@media (max-width: 480px) {
  .mealapp-startup__emblem::after { width: 96px; height: 96px; border-radius: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .mealapp-startup__emblem::after { display: none; }
}
/* Official artwork: two viewports preserve the original lettering and colors. */
.mealapp-startup__wordmark,
.mealapp-startup__subtitle { position: relative; overflow: hidden; padding: 0; }
.mealapp-startup__wordmark { width: 280px; height: 81px; margin: 0 auto; animation: mealapp-brand-reveal 1100ms 650ms cubic-bezier(.16,1,.3,1) both; }
.mealapp-startup__wordmark img { position: absolute; display: block; width: 247.488%; max-width: none; height: auto; left: -40.057%; top: 0; }
.mealapp-startup__subtitle { width: 174px; height: 51px; margin: 4px auto 26px; animation: mealapp-manager-reveal 900ms 1150ms cubic-bezier(.16,1,.3,1) both; }
.mealapp-startup__subtitle img { position: absolute; display: block; width: 248.028%; max-width: none; height: auto; left: -147.518%; top: 0; }
.mealapp-startup__emblem { animation: mealapp-opening 1250ms cubic-bezier(.16,1,.3,1) both; }
.mealapp-startup__orbit { animation: mealapp-ring-open 1400ms 180ms cubic-bezier(.16,1,.3,1) both; }
.mealapp-startup__dots { animation: mealapp-arrive 600ms 1600ms both; }
.mealapp-startup::before { content: ''; position: absolute; width: min(650px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,#5becad24,transparent 65%); animation: mealapp-light-open 1800ms ease-out both; pointer-events: none; }
@keyframes mealapp-opening { from { opacity: 0; transform: scale(.45) rotate(-12deg); filter: blur(12px); } 65% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); } }
@keyframes mealapp-ring-open { from { opacity: 0; transform: scale(.55) rotate(-90deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes mealapp-brand-reveal { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(12px); } to { opacity: 1; clip-path: inset(0); transform: translateY(0); } }
@keyframes mealapp-manager-reveal { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes mealapp-light-open { from { opacity: 0; transform: scale(.2); } 50% { opacity: 1; } to { opacity: .45; transform: scale(1); } }
@media (max-width: 480px) { .mealapp-startup__wordmark { width: 250px; height: 73px; } }
@media (prefers-reduced-motion: reduce) { .mealapp-startup, .mealapp-startup *, .mealapp-startup::before { animation: none !important; transition: none !important; } }
