/* White doors open from the logo's center seam; no page scroll/focus state is changed. */
:root { --eli-welcome-ready: 1; }

.eli-welcome {
  --eli-welcome-logo-size: clamp(160px, 23vw, 280px);
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  contain: layout paint;
}

.eli-welcome__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% + 1px);
  overflow: hidden;
  background: #f8fbfd;
  will-change: transform;
  animation-duration: 1.8s;
  animation-delay: .08s;
  animation-timing-function: cubic-bezier(.65, 0, .2, 1);
  animation-fill-mode: both;
}

.eli-welcome__panel--left {
  left: 0;
  background: linear-gradient(110deg, #eaf4fb 0%, #fff 78%);
  border-right: 1px solid rgb(21 60 110 / 12%);
  box-shadow: 10px 0 42px rgb(21 60 110 / 5%);
}

.eli-welcome__panel--right {
  right: 0;
  background: linear-gradient(250deg, #eaf4fb 0%, #fff 78%);
  border-left: 1px solid rgb(21 60 110 / 12%);
  box-shadow: -10px 0 42px rgb(21 60 110 / 5%);
}

.eli-welcome__brand {
  position: absolute;
  top: 50%;
  width: var(--eli-welcome-logo-size);
  transform: translateY(-50%);
  opacity: 0;
}
.eli-welcome__panel--left .eli-welcome__brand { right:calc(var(--eli-welcome-logo-size) / -2); }
.eli-welcome__panel--right .eli-welcome__brand { left:calc(var(--eli-welcome-logo-size) / -2); }

.eli-welcome.is-opening .eli-welcome__panel--left { animation-name: eli-welcome-open-left; }
.eli-welcome.is-opening .eli-welcome__panel--right { animation-name: eli-welcome-open-right; }
.eli-welcome.is-opening .eli-welcome__brand { opacity: 1; }

.eli-welcome__brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.eli-welcome__skip {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgb(21 60 110 / 22%);
  border-radius: 999px;
  background: #fff;
  color: #153c6e;
  font: 400 14px/1.3 var(--ff-body, system-ui, sans-serif);
  cursor: pointer;
  pointer-events: auto;
}

.eli-welcome__skip:hover { background: #eaf4fb; }
.eli-welcome__skip:focus-visible { outline: 3px solid #153c6e; outline-offset: 4px; }

@keyframes eli-welcome-open-left {
  from { transform: translateX(0); }
  to { transform: translateX(-101%); }
}
@keyframes eli-welcome-open-right {
  from { transform: translateX(0); }
  to { transform: translateX(101%); }
}

@media (prefers-reduced-motion: reduce) {
  .eli-welcome { display: none; }
  .eli-welcome *, .eli-welcome *::before, .eli-welcome *::after { animation: none; }
}
@media print { .eli-welcome { display: none; } }
