/* Login startup splash: global Vuexy modal layer shown once after successful auth. */
.htt-startup-splash-modal {
  --htt-startup-splash-radius: 1.1rem;
  --htt-startup-splash-glow: rgba(72, 127, 255, 0.28);
  z-index: 1105;
}

.htt-startup-splash-active .modal-backdrop.show {
  opacity: 0.72;
}

.htt-startup-splash-dialog {
  width: min(1120px, calc(100vw - 2rem));
  max-width: min(1120px, calc(100vw - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.htt-startup-splash-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--htt-startup-splash-radius);
  background: #101828;
  box-shadow:
    0 1.5rem 5rem rgba(15, 23, 42, 0.42),
    0 0 0.75rem var(--htt-startup-splash-glow);
}

.htt-startup-splash-image {
  display: block;
  width: 100%;
  max-height: min(78vh, 720px);
  object-fit: contain;
  transform: scale(1.018);
  animation: httStartupImageSettle 3000ms cubic-bezier(0.2, 0.84, 0.18, 1) both;
}

.htt-startup-splash-vignette,
.htt-startup-splash-particles,
.htt-startup-splash-mesh,
.htt-startup-splash-data-packets,
.htt-startup-splash-scanline,
.htt-startup-splash-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.htt-startup-splash-vignette {
  z-index: 2;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(115deg, rgba(9, 17, 36, 0.52), transparent 42%, rgba(4, 12, 24, 0.36)),
    linear-gradient(to top, rgba(7, 13, 27, 0.64), transparent 34%);
}

.htt-startup-splash-particles {
  z-index: 3;
  opacity: 0.95;
  background-image:
    radial-gradient(circle at 9% 18%, rgba(0, 207, 232, 0.95) 0 0.18rem, transparent 0.22rem),
    radial-gradient(circle at 18% 58%, rgba(255, 255, 255, 0.82) 0 0.13rem, transparent 0.18rem),
    radial-gradient(circle at 31% 30%, rgba(115, 103, 240, 0.9) 0 0.18rem, transparent 0.22rem),
    radial-gradient(circle at 45% 72%, rgba(0, 207, 232, 0.86) 0 0.15rem, transparent 0.2rem),
    radial-gradient(circle at 59% 22%, rgba(255, 255, 255, 0.82) 0 0.13rem, transparent 0.18rem),
    radial-gradient(circle at 71% 48%, rgba(0, 207, 232, 0.86) 0 0.18rem, transparent 0.22rem),
    radial-gradient(circle at 86% 34%, rgba(115, 103, 240, 0.9) 0 0.17rem, transparent 0.22rem),
    radial-gradient(circle at 91% 76%, rgba(255, 255, 255, 0.84) 0 0.12rem, transparent 0.18rem);
  filter: drop-shadow(0 0 1rem rgba(0, 207, 232, 0.62));
  mix-blend-mode: screen;
  animation: httStartupParticleFloat 2800ms ease-in-out infinite alternate;
}

.htt-startup-splash-mesh {
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  mix-blend-mode: screen;
  opacity: 1;
}

.htt-startup-splash-mesh-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 18;
  stroke-dashoffset: 120;
  animation: httStartupMeshTrace 3200ms ease-in-out infinite;
}

.htt-startup-splash-mesh-line.is-primary {
  stroke: rgba(0, 207, 232, 1);
  stroke-width: 4.2;
  filter: drop-shadow(0 0 0.85rem rgba(0, 207, 232, 0.76));
}

.htt-startup-splash-mesh-line.is-secondary {
  stroke: rgba(115, 103, 240, 0.96);
  stroke-width: 3.5;
  animation-delay: 280ms;
  filter: drop-shadow(0 0 0.72rem rgba(115, 103, 240, 0.62));
}

.htt-startup-splash-mesh-line.is-tertiary {
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 2.4;
  stroke-dasharray: 12 20;
  animation-duration: 2500ms;
  filter: drop-shadow(0 0 0.42rem rgba(255, 255, 255, 0.34));
}

.htt-startup-splash-mesh-nodes circle {
  fill: rgba(0, 207, 232, 0.92);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: httStartupNodePulse 1350ms ease-in-out infinite alternate;
  filter: drop-shadow(0 0 0.72rem rgba(0, 207, 232, 0.76));
}

.htt-startup-splash-mesh-packets circle {
  fill: #fff;
  stroke: rgba(0, 207, 232, 0.98);
  stroke-width: 2.4;
  filter:
    drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 0.95rem rgba(0, 207, 232, 0.95));
}

.htt-startup-splash-mesh-packets circle:nth-child(2n) {
  stroke: rgba(115, 103, 240, 0.98);
  filter:
    drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.86))
    drop-shadow(0 0 0.95rem rgba(115, 103, 240, 0.9));
}

.htt-startup-splash-mesh-nodes circle:nth-child(2n) {
  fill: rgba(115, 103, 240, 0.92);
  animation-delay: 180ms;
  filter: drop-shadow(0 0 0.72rem rgba(115, 103, 240, 0.62));
}

.htt-startup-splash-mesh-nodes circle:nth-child(3n) {
  animation-delay: 360ms;
}

.htt-startup-splash-data-packets {
  z-index: 8;
  overflow: hidden;
}

.htt-startup-splash-data-packet {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(3.4rem, 5.8vw, 5.4rem);
  height: clamp(1.1rem, 1.7vw, 1.45rem);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 207, 232, 0.08), rgba(0, 207, 232, 0.98) 42%, rgba(255, 255, 255, 0.98));
  box-shadow:
    0 0 0.45rem rgba(255, 255, 255, 0.9),
    0 0 1.2rem rgba(0, 207, 232, 0.95),
    0 0 2.8rem rgba(0, 207, 232, 0.62);
  opacity: 0;
}

.htt-startup-splash-data-packet::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(6, 18, 32, 0.92);
  content: "1010";
  font-size: clamp(0.48rem, 0.72vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}

.htt-startup-splash-data-packet::after {
  position: absolute;
  top: 50%;
  right: 82%;
  width: clamp(3.8rem, 9vw, 8rem);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(0, 207, 232, 0.98));
  content: "";
  transform: translateY(-50%);
}

.htt-startup-splash-data-packet:nth-child(2n) {
  background: linear-gradient(90deg, rgba(115, 103, 240, 0.12), rgba(115, 103, 240, 0.96) 42%, rgba(255, 255, 255, 0.98));
  box-shadow:
    0 0 0.45rem rgba(255, 255, 255, 0.86),
    0 0 1.2rem rgba(115, 103, 240, 0.95),
    0 0 2.8rem rgba(115, 103, 240, 0.62);
}

.htt-startup-splash-data-packet:nth-child(2n)::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(115, 103, 240, 0.98));
}

.htt-startup-splash-data-packet.is-a {
  animation: httStartupPacketA 2600ms linear infinite;
}

.htt-startup-splash-data-packet.is-b {
  animation: httStartupPacketB 3000ms 420ms linear infinite;
}

.htt-startup-splash-data-packet.is-c {
  animation: httStartupPacketC 2800ms 760ms linear infinite;
}

.htt-startup-splash-data-packet.is-d {
  animation: httStartupPacketD 3400ms 1080ms linear infinite;
}

.htt-startup-splash-data-packet.is-e {
  animation: httStartupPacketE 3200ms 1320ms linear infinite;
}

.htt-startup-splash-data-packet.is-f {
  animation: httStartupPacketF 3600ms 1680ms linear infinite;
}

.htt-startup-splash-scanline {
  z-index: 6;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: httStartupSweep 2600ms 260ms cubic-bezier(0.2, 0.84, 0.18, 1) infinite;
}

.htt-startup-splash-network {
  z-index: 7;
  filter: drop-shadow(0 0 0.9rem rgba(0, 207, 232, 0.5));
}

.htt-startup-splash-network span {
  position: absolute;
  width: clamp(0.45rem, 0.8vw, 0.75rem);
  height: clamp(0.45rem, 0.8vw, 0.75rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 207, 232, 0.72);
  box-shadow: 0 0 1.2rem rgba(0, 207, 232, 0.5);
  animation: httStartupSignal 1200ms ease-in-out infinite alternate;
}

.htt-startup-splash-network span:nth-child(1) {
  top: 22%;
  left: 18%;
}

.htt-startup-splash-network span:nth-child(2) {
  top: 34%;
  right: 24%;
  animation-delay: 180ms;
}

.htt-startup-splash-network span:nth-child(3) {
  right: 18%;
  bottom: 28%;
  animation-delay: 360ms;
}

.htt-startup-splash-network span:nth-child(4) {
  bottom: 22%;
  left: 30%;
  animation-delay: 540ms;
}

.htt-startup-splash-network span:nth-child(5) {
  top: 18%;
  left: 52%;
  animation-delay: 720ms;
}

.htt-startup-splash-network span:nth-child(6) {
  right: 11%;
  bottom: 44%;
  animation-delay: 900ms;
}

.htt-startup-splash-caption {
  position: absolute;
  z-index: 9;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  max-width: min(28rem, calc(100% - 2rem));
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 25, 40, 0.58);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(14px);
  transform: translateY(0.75rem);
  animation: httStartupCaption 1000ms 180ms cubic-bezier(0.2, 0.84, 0.18, 1) both;
}

.htt-startup-splash-caption strong,
.htt-startup-splash-caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.htt-startup-splash-caption strong {
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 700;
  line-height: 1.15;
}

.htt-startup-splash-caption small {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.htt-startup-splash-icon {
  display: inline-grid;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.95), rgba(0, 207, 232, 0.88));
}

.htt-startup-splash-icon i {
  font-size: 1.18rem;
  line-height: 1;
}

.htt-startup-splash-modal.is-closing .htt-startup-splash-frame {
  animation: httStartupClose 420ms ease-in forwards;
}

@keyframes httStartupParticleFloat {
  from {
    opacity: 0.58;
    transform: translate3d(-0.4rem, 0.2rem, 0) scale(0.99);
  }
  to {
    opacity: 0.96;
    transform: translate3d(0.45rem, -0.35rem, 0) scale(1.01);
  }
}

@keyframes httStartupMeshTrace {
  from {
    opacity: 0.32;
    stroke-dashoffset: 140;
  }
  35% {
    opacity: 1;
  }
  to {
    opacity: 0.62;
    stroke-dashoffset: -80;
  }
}

@keyframes httStartupNodePulse {
  from {
    opacity: 0.62;
    transform: scale(0.74);
  }
  to {
    opacity: 1;
    transform: scale(1.32);
  }
}

@keyframes httStartupPacketA {
  0% {
    top: 18%;
    left: 6%;
    opacity: 0;
    transform: scale(0.7);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: 34%;
    left: 82%;
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes httStartupPacketB {
  0% {
    top: 64%;
    left: 18%;
    opacity: 0;
    transform: scale(0.7);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: 52%;
    left: 90%;
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes httStartupPacketC {
  0% {
    top: 18%;
    left: 68%;
    opacity: 0;
    transform: scale(0.7);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: 42%;
    left: 26%;
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes httStartupPacketD {
  0% {
    top: 78%;
    left: 30%;
    opacity: 0;
    transform: scale(0.7);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: 18%;
    left: 76%;
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes httStartupPacketE {
  0% {
    top: 42%;
    left: 8%;
    opacity: 0;
    transform: scale(0.7);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: 72%;
    left: 58%;
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes httStartupPacketF {
  0% {
    top: 28%;
    left: 88%;
    opacity: 0;
    transform: scale(0.7);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: 58%;
    left: 44%;
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes httStartupImageSettle {
  from {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.028);
  }
  to {
    filter: saturate(1) contrast(1);
    transform: scale(1);
  }
}

@keyframes httStartupSweep {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  18% {
    opacity: 0.95;
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes httStartupSignal {
  from {
    opacity: 0.45;
    transform: scale(0.84);
  }
  to {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes httStartupCaption {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes httStartupClose {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@media (max-width: 575.98px) {
  .htt-startup-splash-dialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
  }

  .htt-startup-splash-frame {
    border-radius: 0.85rem;
  }

  .htt-startup-splash-caption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
    border-radius: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htt-startup-splash-image,
  .htt-startup-splash-caption,
  .htt-startup-splash-modal.is-closing .htt-startup-splash-frame {
    animation-duration: 420ms !important;
  }

  .htt-startup-splash-particles,
  .htt-startup-splash-mesh-line,
  .htt-startup-splash-mesh-nodes circle,
  .htt-startup-splash-data-packet,
  .htt-startup-splash-scanline,
  .htt-startup-splash-network span {
    animation-duration: 4200ms !important;
  }

  .htt-startup-splash-scanline,
  .htt-startup-splash-particles,
  .htt-startup-splash-mesh,
  .htt-startup-splash-data-packets,
  .htt-startup-splash-network {
    opacity: 0.72;
  }
}
