/* Nunito подключается в index.html (не через @import — иначе задерживается первый кадр splash в WebView MAX). */

.lomeda-storefront-splash {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --splash-from: #fb923c;
  --splash-to: #ef4444;
  --splash-bg: #111827;
  --splash-steam: #9ca3af;
  --splash-muted: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--splash-bg, #111827);
  color: #fff;
  overflow: hidden;
}

.lomeda-storefront-splash[data-splash-template="stages"] {
  /* стиль "оранжевый светлый" как в примере */
  color: #111827;
  background-color: #fff7ed;
}
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-blob-a,
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-blob-b {
  opacity: 0.35;
}
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-icon-circle {
  background: #ffffff;
  border-color: #ffedd5;
  box-shadow: 0 18px 40px rgba(251, 146, 60, 0.22);
}
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-brand {
  color: #0f172a;
  -webkit-text-fill-color: initial;
  background: none;
}
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-status {
  color: #ea580c;
}
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-bar-track {
  background: rgba(251, 146, 60, 0.22);
}
.lomeda-storefront-splash[data-splash-template="stages"] .lomeda-splash-bar-fill {
  background: linear-gradient(90deg, #fb923c, #f97316);
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.35);
}

.lomeda-storefront-splash:not([data-splash-template="steam"]) .lomeda-splash-steam-row {
  display: none;
}

.lomeda-storefront-splash[data-splash-template="sakura"] {
  background-color: #0c0a09;
  color: #f5f5f4;
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-blob-a {
  background: rgba(220, 38, 38, 0.25);
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-blob-b {
  background: rgba(239, 68, 68, 0.2);
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-icon-circle {
  background: #dc2626;
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.45);
  color: #ffffff;
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-brand {
  background: none;
  color: #ffffff;
  -webkit-text-fill-color: initial;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-status {
  color: #d6d3d1;
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-bar-track {
  background: #292524;
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-bar-fill {
  background: #dc2626;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.55);
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-progress-labels span:first-child {
  color: #a8a29e;
}
.lomeda-storefront-splash[data-splash-template="sakura"] .lomeda-splash-progress-labels #splash-pct {
  color: #ef4444;
}

.lomeda-splash-falling-food {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.lomeda-splash-food {
  position: absolute;
  top: -12%;
  opacity: 0.82;
  animation-name: lomeda-splash-food-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes lomeda-splash-food-fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.lomeda-splash-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lomeda-splash-blob-a {
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--splash-from) 22%, transparent);
  filter: blur(48px);
  opacity: 0.85;
}

.lomeda-splash-blob-b {
  position: absolute;
  bottom: -10rem;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--splash-to) 22%, transparent);
  filter: blur(48px);
  opacity: 0.85;
}

.lomeda-splash-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 28rem;
  padding: 0 1.5rem;
}

@keyframes lomeda-splash-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes lomeda-splash-steam {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-20px) scaleX(1.5); opacity: 0; }
}

@keyframes lomeda-splash-pulse-ring {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--splash-from) 55%, transparent);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px color-mix(in srgb, var(--splash-from) 0%, transparent);
  }
  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--splash-from) 0%, transparent);
  }
}

.lomeda-splash-icon-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.lomeda-splash-pulse-bg {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--splash-from) 35%, transparent);
  animation: lomeda-splash-pulse-ring 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  filter: blur(16px);
  opacity: 0.35;
}

.lomeda-splash-steam-row {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.lomeda-splash-steam-row svg {
  color: var(--splash-steam);
  width: 1rem;
  height: 1.5rem;
}

.lomeda-splash-steam-row .lomeda-splash-steam-2 {
  height: 2rem;
}

.lomeda-splash-progress-block {
  width: 100%;
  max-width: 100%;
}

.lomeda-splash-steam-1 { animation: lomeda-splash-steam 2s infinite ease-out; animation-delay: 0.1s; }
.lomeda-splash-steam-2 { animation: lomeda-splash-steam 2s infinite ease-out; animation-delay: 0.7s; }
.lomeda-splash-steam-3 { animation: lomeda-splash-steam 2s infinite ease-out; animation-delay: 1.3s; }

.lomeda-splash-icon-circle {
  position: relative;
  z-index: 10;
  width: 7rem;
  height: 7rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--splash-bg) 40%, #1f2937);
  border: 1px solid color-mix(in srgb, var(--splash-muted) 35%, transparent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lomeda-splash-float 3.5s ease-in-out infinite;
}

.lomeda-splash-icon-slot svg.lomeda-splash-main-icon-svg {
  width: 4rem;
  height: 4rem;
  color: var(--splash-from);
}

.lomeda-splash-icon-slot svg.lomeda-splash-main-icon-svg[viewBox="0 0 76 46"] {
  width: 4.25rem;
  height: 2.6rem;
}

.lomeda-splash-brand {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  min-height: 2.25rem;
  text-align: center;
  background: linear-gradient(90deg, var(--splash-from), var(--splash-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  max-width: 100%;
  word-break: break-word;
}

.lomeda-splash-status {
  color: var(--splash-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 1.5rem;
  text-align: center;
  transition: opacity 0.15s ease;
}

.lomeda-splash-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lomeda-splash-progress-labels span:first-child {
  color: var(--splash-from);
}

.lomeda-splash-bar-track {
  width: 100%;
  background: color-mix(in srgb, var(--splash-muted) 25%, var(--splash-bg));
  height: 0.625rem;
  border-radius: 9999px;
  overflow: hidden;
}

.lomeda-splash-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--splash-from), var(--splash-to));
  box-shadow: 0 0 12px color-mix(in srgb, var(--splash-from) 50%, transparent);
  transition: width 0.08s ease-out;
}

.lomeda-splash-loader-error {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.45;
  color: #f87171;
  max-width: 18rem;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .lomeda-splash-pulse-bg,
  .lomeda-splash-icon-circle,
  .lomeda-splash-steam-1,
  .lomeda-splash-steam-2,
  .lomeda-splash-steam-3 {
    animation: none !important;
  }
  .lomeda-splash-pulse-bg { opacity: 0.2; }
}
