#eye-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020b16;
  color: #eaf8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity .65s ease, visibility .65s ease;
}

#eye-loading-screen.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
html.eye-loader-active #root { visibility: hidden; }
#eye-loading-screen button { margin-top: 18px; padding: 12px 20px; border: 1px solid #58ddff; border-radius: 8px; background: #082334; color: #eaf8ff; cursor: pointer; }
.eye-loading-steps { margin-top: 18px; color: #92ecff; font: 12px ui-monospace, monospace; letter-spacing: .1em; }
.eye-loading-panel::before { content: ''; position: fixed; left: 0; top: -15vh; width: 100vw; height: 12vh; pointer-events: none; background: linear-gradient(transparent, #58ddff12, transparent); border-bottom: 1px solid #58ddff30; animation: eye-scan 5s linear infinite; }
@keyframes eye-scan { to { transform: translateY(115vh); } }
@media (prefers-reduced-motion: reduce) { .eye-loading-panel::before { animation: none; display: none; } }

#eye-loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 11, 22, .96), transparent 65%), url("/application/eye-loading-art.png") center / contain no-repeat;
  filter: saturate(1.15) contrast(1.08);
  transform: scale(1.04);
  animation: eye-loader-pan 12s ease-in-out infinite alternate;
}

#eye-loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 45%, rgba(45, 215, 255, .24), transparent 30%), linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(1, 8, 18, .88));
  pointer-events: none;
}

.eye-loading-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(760px, calc(100vw - 40px));
  padding: 24px 16px max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

.eye-loading-brand { display: inline-flex; align-items: center; gap: 9px; color: #62e6ff; font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eye-loading-brand b { margin-left: 8px; color: rgba(227, 247, 255, .55); font-size: 9px; letter-spacing: .14em; }
.eye-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: #62e6ff; box-shadow: 0 0 18px #62e6ff; animation: eye-loader-blink 1.1s ease-in-out infinite; }
.eye-loading-title { margin: 16px 0 12px; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.eye-loading-title span { color: #58ddff; }
.eye-loading-status { color: rgba(220, 241, 251, .74); font-size: 14px; letter-spacing: .02em; }
.eye-loading-progress { display: flex; align-items: center; gap: 12px; width: min(440px, 86vw); margin: 26px auto 0; }
.eye-loading-track { flex: 1; height: 12px; overflow: hidden; border: 1px solid rgba(111, 229, 255, .55); border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(27, 80, 109, .76) 0 18px, rgba(3, 19, 36, .92) 18px 21px); box-shadow: inset 0 0 12px rgba(43, 213, 255, .22), 0 0 24px rgba(43, 213, 255, .26); }
.eye-loading-track i { display: block; width: 8%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14c9ff, #73f0ff 55%, #b277ff); box-shadow: 0 0 20px #31d9ff; transition: width .45s cubic-bezier(.2,.8,.2,1); position: relative; }
.eye-loading-track i::after { content: ''; position: absolute; top: 0; right: 0; width: 48px; height: 100%; background: linear-gradient(90deg, transparent, #fff); filter: blur(2px); opacity: .85; animation: eye-loader-glint 1.2s linear infinite; }
.eye-loading-percent { min-width: 42px; color: #b9f7ff; font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; text-shadow: 0 0 12px #2bd5ff; }
.eye-loading-scale { display: flex; justify-content: space-between; width: min(386px, calc(86vw - 54px)); margin: 4px auto 0; padding-right: 54px; color: rgba(165, 238, 255, .65); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.eye-loading-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: min(440px, 86vw); margin: 20px auto 0; }
.eye-loading-stages span { padding: 7px 3px; border: 1px solid rgba(101, 177, 209, .28); background: rgba(1, 14, 29, .66); color: rgba(191, 224, 239, .45); font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.eye-loading-stages .is-active { border-color: #58ddff; color: #ddfbff; background: linear-gradient(135deg, rgba(12, 128, 176, .82), rgba(20, 60, 112, .82)); box-shadow: 0 0 16px rgba(43, 213, 255, .42); animation: eye-stage-pulse 1s ease-in-out infinite; }
.eye-loading-stages .is-complete { border-color: rgba(87, 243, 197, .62); color: #84f6d2; background: rgba(11, 100, 93, .45); }
.eye-loading-meta { display: flex; justify-content: center; gap: 18px; margin-top: 16px; color: rgba(216, 244, 255, .5); font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }

@keyframes eye-loader-glint { from { transform: translateX(-58px); } to { transform: translateX(20px); } }
@keyframes eye-loader-pan { to { transform: scale(1.08) translate3d(-1%, -1%, 0); } }
@keyframes eye-loader-blink { 50% { opacity: .35; transform: scale(.75); } }
@keyframes eye-stage-pulse { 50% { filter: brightness(1.35); } }

@media (prefers-reduced-motion: reduce) {
  #eye-loading-screen::before, .eye-loading-dot, .eye-loading-track i::after { animation: none; }
}
