:root{
  --top-shape-h: clamp(42px, 8vh, 88px);
  --bottom-shape-h: clamp(42px, 8vh, 88px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body{
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body{
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.app{
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}

#particles-js{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cq-shape{
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.cq-shape svg{
  display: block;
  width: 100%;
  height: 100%;
}

.cq-shape-top{
  top: 0;
  height: calc(var(--top-shape-h) + var(--safe-top));
}

.cq-shape-bottom{
  bottom: 0;
  height: calc(var(--bottom-shape-h) + var(--safe-bottom));
}

.cq-shape-top path{
  fill: #a3147e;
}

.cq-shape-bottom path{
  fill: #60b30a;
}

.cq-logo-wrap{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding:
    calc(var(--top-shape-h) + var(--safe-top) + 18px)
    20px
    calc(var(--bottom-shape-h) + var(--safe-bottom) + 18px)
    20px;
  box-sizing: border-box;
  overflow: visible;
}

.cq-logo{
  display: block;
  width: auto;
  height: auto;
  max-width: min(78vw, 1000px);
  max-height: calc(
    100dvh
    - var(--top-shape-h)
    - var(--bottom-shape-h)
    - var(--safe-top)
    - var(--safe-bottom)
    - 36px
  );
  object-fit: contain;
  opacity: 0;
  transform: translateY(10px);
  animation: cqFade 900ms ease forwards;
  -webkit-transform: translateY(10px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes cqFade{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px){
  .cq-logo{
    max-width: 82vw;
    max-height: calc(
      100dvh
      - var(--top-shape-h)
      - var(--bottom-shape-h)
      - var(--safe-top)
      - var(--safe-bottom)
      - 28px
    );
  }
}