html.sovkod-welcome-pending::before,
html.sovkod-route-pending::before {
  content: '';
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  background: #f5f3ef;
  pointer-events: none;
}
.sovkod-route, .sovkod-welcome {
  position: fixed;
  z-index: 2147482001;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  touch-action: none;
}
.sovkod-route[hidden] { display: none; }
.sovkod-route[popover]:not(:popover-open) { display: none; }
.sovkod-route::backdrop { background: transparent; }
.sovkod-route-scene, .sovkod-route-trace, .sovkod-route-edge,
.sovkod-welcome-paper, .sovkod-welcome-light, .sovkod-welcome-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sovkod-route-scene {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 75% 20%, #fffefa, transparent 63%), #eeece7;
  overflow: hidden;
}
.sovkod-route-trace {
  inset: -20%;
  background: linear-gradient(116deg, transparent 48%, #a329331a 48.08% 48.15%, transparent 48.22% 48.7%, #a3293312 48.76% 48.82%, transparent 49%);
}
.sovkod-route-mark {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(49vw, 510px);
}
.sovkod-route-mark img, .sovkod-welcome-type img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.sovkod-route-rule {
  width: 38%;
  margin-top: clamp(16px, 3.4vh, 34px);
  height: 2px;
  overflow: hidden;
  background: #c9c5bf;
}
.sovkod-route-rule::after {
  content: '';
  display: block;
  height: 100%;
  background: #b01a26;
  transform-origin: left;
}
.sovkod-route-edge {
  width: 27%;
  left: -29%;
  transform: skewX(-14deg);
  background: linear-gradient(90deg,#621222 0%,#ac192b 49%,#e3a7a3 99%,#f3ddcb 100%);
}
.sovkod-route.is-active .sovkod-route-scene,
.sovkod-route.is-active .sovkod-route-mark,
.sovkod-route.is-active .sovkod-route-rule::after,
.sovkod-route.is-active .sovkod-route-trace,
.sovkod-route.is-active .sovkod-route-edge {
  animation-duration: var(--sovkod-route-duration, 2000ms);
  animation-delay: var(--sovkod-route-elapsed, 0ms);
  animation-timing-function: cubic-bezier(.41,.06,.22,.98);
  animation-fill-mode: both;
}
.sovkod-route.is-active .sovkod-route-scene { animation-name: sovkod-screen; }
.sovkod-route.is-active .sovkod-route-mark { animation-name: sovkod-sign; }
.sovkod-route.is-active .sovkod-route-rule::after { animation-name: sovkod-line; }
.sovkod-route.is-active .sovkod-route-trace { animation-name: sovkod-measure; }
.sovkod-route.is-active .sovkod-route-edge { animation-name: sovkod-edge; }
.sovkod-route.is-arriving .sovkod-route-scene { animation-name: sovkod-arrival; }
.sovkod-route.is-arriving .sovkod-route-edge { display: none; }

@keyframes sovkod-screen {
  0% { clip-path: polygon(0 0, 0 0, -22% 100%, 0 100%); }
  25%, 68% { clip-path: polygon(0 0, 124% 0, 102% 100%, 0 100%); }
  100% { clip-path: polygon(124% 0, 125% 0, 104% 100%, 102% 100%); }
}
@keyframes sovkod-arrival {
  0%, 68% { clip-path: polygon(0 0, 124% 0, 102% 100%, 0 100%); }
  100% { clip-path: polygon(124% 0, 125% 0, 104% 100%, 102% 100%); }
}
@keyframes sovkod-edge {
  0% { left: -45%; opacity: 0; }
  4% { opacity: 1; }
  28% { left: 124%; opacity: 1; }
  29%, 100% { left: 125%; opacity: 0; }
}
@keyframes sovkod-sign {
  0%, 12% { opacity: 0; transform: translateY(14px); }
  33%, 66% { opacity: 1; transform: none; }
  85%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes sovkod-line {
  0%, 22% { transform: scaleX(0); }
  72%,100% { transform: scaleX(1); }
}
@keyframes sovkod-measure {
  from { transform: translateX(-34%); }
  to { transform: translateX(34%); }
}

.sovkod-welcome { pointer-events: auto; }
.sovkod-welcome-paper {
  background: radial-gradient(ellipse at 74% 23%, #fffefa 8%, transparent 64%),
    radial-gradient(ellipse at 8% 95%, #e2d2d3, transparent 56%), #f3f1ed;
}
.sovkod-welcome-light {
  background: linear-gradient(122deg, transparent 26%, #fff9 36%, transparent 67%);
}
.sovkod-welcome-type {
  position: relative;
  width: min(56vw, 470px);
  display: grid;
  justify-items: center;
  align-content: center;
  color: #4c3339;
}
.sovkod-welcome-divider {
  width: clamp(36px, 5vw, 70px);
  height: 2px;
  margin: clamp(18px, 4vh, 38px) 0 clamp(11px, 2vh, 19px);
  background: #ba2435;
}
.sovkod-welcome-word {
  min-height: 1.5em;
  white-space: nowrap;
  font: 500 clamp(16px, 2.2vw, 32px)/1.35 'PT Sans', 'Sovkod Sans', Arial, sans-serif;
  letter-spacing: .05em;
}
.sovkod-welcome-cloud {
  inset: -45% -36%;
  background:
    radial-gradient(ellipse at 24% 42%, #fbfaf6 0 13%, #fbfaf6de 24%, transparent 47%),
    radial-gradient(ellipse at 43% 69%, #e7d7d8 0 7%, #f3e9e1ae 22%, transparent 35%),
    radial-gradient(ellipse at 20% 65%, #fffcf0 0 18%, transparent 43%);
}
.sovkod-welcome-cloud.cloud-east { transform-origin: center; }
.sovkod-welcome-paper, .sovkod-welcome-light, .sovkod-welcome-type, .sovkod-welcome-cloud {
  animation-duration: 3000ms;
  animation-delay: var(--intro-elapsed, 0ms);
  animation-timing-function: cubic-bezier(.45,.02,.22,.98);
  animation-fill-mode: both;
}
.sovkod-welcome-paper { animation-name: sovkod-paper; }
.sovkod-welcome-light { animation-name: sovkod-light; }
.sovkod-welcome-type { animation-name: sovkod-welcome-identity; }
.sovkod-welcome-cloud.cloud-west { animation-name: sovkod-mist-west; }
.sovkod-welcome-cloud.cloud-east { animation-name: sovkod-mist-east; }
@keyframes sovkod-paper { 0%,72% { opacity: 1; } 94%,100% { opacity: 0; } }
@keyframes sovkod-light { 0% { transform: translateX(-15%); } 70% { opacity: 1; } 98%,100% { transform: translateX(18%); opacity: 0; } }
@keyframes sovkod-welcome-identity {
  0% { opacity: 0; transform: translateY(8px); }
  13%, 67% { opacity: 1; transform: none; }
  81%, 100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes sovkod-mist-west {
  0%, 60% { transform: translate(-23%, 12%); opacity: 0; }
  76% { transform: translate(4%, 0); opacity: 1; }
  100% { transform: translate(-47%, -12%); opacity: 0; }
}
@keyframes sovkod-mist-east {
  0%, 60% { transform: translate(23%, -12%) rotate(180deg); opacity: 0; }
  76% { transform: translate(-4%, 0) rotate(180deg); opacity: 1; }
  100% { transform: translate(47%, 12%) rotate(180deg); opacity: 0; }
}
@media (max-width: 620px) {
  .sovkod-route-mark { width: min(72vw, 380px); }
  .sovkod-welcome-type { width: min(73vw, 370px); }
}
@media (prefers-reduced-motion: reduce), print {
  html.sovkod-route-pending::before, html.sovkod-welcome-pending::before,
  .sovkod-route, .sovkod-welcome { display: none !important; }
}
