:root {
  --blue-dark: #075d8f;
  --blue-light: #08699c;
  --white: #ffffff;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--blue-dark);
}

.content-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.splash {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    calc(24px + var(--safe-top))
    calc(24px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(24px + var(--safe-left));
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(51, 181, 244, 0.24),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      var(--blue-dark),
      var(--blue-light)
    );
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.splash.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  width: min(520px, 90vw);
  text-align: center;
}

.splash-brand {
  margin: 0 0 28px;
  font-size: clamp(50px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow:
    0 8px 28px rgba(0, 43, 75, 0.18);
}

.splash-subtitle {
  max-width: 460px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 2.25vw, 31px);
  line-height: 1.3;
}

.progress-box {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 116, 186, 0.58);
  box-shadow:
    0 14px 36px rgba(0, 38, 68, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.progress-bar {
  height: 5px;
  background:
    linear-gradient(
      90deg,
      #53c5ff,
      #22adfb
    );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms linear;
}

.progress-label {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 10px 17px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 500;
}

.status-line {
  min-height: 21px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

@media (max-width: 560px) {
  .splash-brand {
    margin-bottom: 22px;
    font-size: 48px;
  }

  .splash-subtitle {
    margin-bottom: 28px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}