/* Animated vortex cover */
.entry-screen {
  background: #020205 !important;
  overflow: hidden !important;
}

.entry-screen::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("../collage/generated/cover-vortex.jpg") center / cover no-repeat;
  opacity: .68;
  filter: contrast(1.18) brightness(.92) saturate(1.04);
  transform: scale(1.08);
  animation: cover-drift 18s ease-in-out infinite alternate;
}

.entry-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 49%, rgba(255, 255, 255, .1), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .58) 88%),
    linear-gradient(90deg, rgba(0, 0, 0, .42), transparent 34%, transparent 66%, rgba(0, 0, 0, .42));
}

.entry-copy {
  z-index: 4 !important;
  top: 58px !important;
  text-align: center !important;
  padding: 0 32px !important;
}

.entry-copy h1 {
  font-size: 26px !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, .16);
}

.entry-copy .entry-subtitle {
  color: #d9fbff !important;
  text-shadow: 0 0 16px rgba(169, 241, 236, .24);
}

.entry-notebook {
  z-index: 3 !important;
  width: min(78vw, 330px) !important;
  height: min(78vw, 330px) !important;
  max-height: 330px !important;
  aspect-ratio: 1 !important;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -48%) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    conic-gradient(from 12deg, transparent 0 24%, rgba(255, 255, 255, .26) 26%, transparent 31%, transparent 58%, rgba(169, 241, 236, .2) 61%, transparent 66%, transparent 100%),
    #020205 !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow:
    0 0 0 1px rgba(255, 142, 199, .18),
    0 0 44px rgba(255, 255, 255, .26),
    0 0 118px rgba(205, 226, 240, .22),
    0 30px 80px rgba(0, 0, 0, .78) !important;
  animation:
    vortex-disc-spin 4.2s linear infinite,
    vortex-shell-pulse 4.6s ease-in-out infinite !important;
}

.entry-notebook > img,
.entry-process,
.entry-action {
  display: none !important;
}

.entry-notebook::before {
  content: "" !important;
  position: absolute !important;
  inset: -18% !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  color: transparent !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .22) 0 11%, rgba(255, 255, 255, .11) 12% 17%, rgba(255, 255, 255, .4) 18%, transparent 23%, transparent 100%),
    conic-gradient(from 0deg, transparent 0 22%, rgba(255, 255, 255, .42) 25%, transparent 31%, transparent 52%, rgba(169, 241, 236, .28) 56%, transparent 63%, transparent 100%),
    url("../collage/generated/cover-vortex.jpg") center / cover no-repeat !important;
  background-blend-mode: screen, screen, normal !important;
  opacity: .86 !important;
  animation: vortex-spin 2.8s linear infinite !important;
  filter: contrast(1.46) brightness(1.3) saturate(.92) !important;
}

.entry-notebook::after {
  content: "点击进入" !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  width: 92px !important;
  height: 92px !important;
  display: grid !important;
  place-items: center !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: rgba(2, 2, 5, .18) !important;
  border: 1px solid rgba(255, 255, 255, .36) !important;
  box-shadow: 0 0 28px rgba(255, 255, 255, .42), inset 0 0 18px rgba(255, 255, 255, .12) !important;
  color: #f9f7fb !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  backdrop-filter: blur(1.5px) saturate(1.25) !important;
  animation: vortex-label-counter-spin 4.2s linear infinite !important;
}

.entry-notebook:hover::before {
  animation-duration: 1.8s !important;
}

.entry-notebook:hover {
  box-shadow:
    0 0 0 1px rgba(255, 142, 199, .34),
    0 0 54px rgba(255, 142, 199, .28),
    0 0 112px rgba(169, 241, 236, .22),
    0 34px 88px rgba(0, 0, 0, .82) !important;
}

.fresh-button {
  display: none !important;
}

.entry-utility-links {
  z-index: 4 !important;
  right: 50% !important;
  bottom: 30px !important;
  transform: translateX(50%) !important;
}

.entry-utility-links button {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
}

.entry-utility-links .agreement-link,
.entry-utility-links .onboarding-link,
.entry-utility-links > span {
  display: none !important;
}

.entry-screen.is-opening .entry-notebook {
  opacity: 0 !important;
  transform: translate(-50%, -48%) scale(1.16) !important;
  animation: none !important;
}

.entry-music-notes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.entry-music-note {
  position: absolute;
  left: var(--note-x);
  top: var(--note-y);
  color: rgba(255, 236, 248, .92);
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 23px;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(255, 142, 199, .66),
    0 0 22px rgba(169, 241, 236, .38);
  transform: translate(-50%, -50%) rotate(var(--note-rotate));
  animation: music-note-orbit 4.8s ease-in-out infinite;
  animation-delay: var(--note-delay);
}

.entry-music-note:nth-child(2n) {
  color: rgba(201, 247, 250, .9);
  font-size: 19px;
}

.entry-music-note:nth-child(3n) {
  opacity: .78;
  font-size: 16px;
}

@keyframes vortex-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vortex-disc-spin {
  to {
    transform: translate(-50%, -48%) rotate(360deg);
  }
}

@keyframes vortex-label-counter-spin {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes vortex-shell-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 142, 199, .18),
      0 0 44px rgba(255, 255, 255, .26),
      0 0 118px rgba(205, 226, 240, .22),
      0 30px 80px rgba(0, 0, 0, .78);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 142, 199, .28),
      0 0 58px rgba(255, 255, 255, .34),
      0 0 140px rgba(205, 226, 240, .3),
      0 30px 80px rgba(0, 0, 0, .78);
  }
}

@keyframes cover-drift {
  0% {
    transform: scale(1.04) translate3d(-1%, 0, 0);
  }

  100% {
    transform: scale(1.1) translate3d(1%, -1%, 0);
  }
}

@keyframes music-note-orbit {
  0%, 100% {
    opacity: .38;
    transform: translate(-50%, -50%) translate3d(-6px, 7px, 0) rotate(var(--note-rotate)) scale(.88);
  }

  45% {
    opacity: .96;
    transform: translate(-50%, -50%) translate3d(7px, -9px, 0) rotate(calc(var(--note-rotate) + 15deg)) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-screen::before,
  .entry-notebook,
  .entry-notebook::before,
  .entry-notebook::after,
  .entry-music-note {
    animation: none !important;
  }
}

@media (max-height: 700px) {
  .entry-copy {
    top: 34px !important;
  }

  .entry-notebook {
    width: min(68vw, 286px) !important;
    height: min(68vw, 286px) !important;
  }

  .entry-utility-links {
    bottom: 18px !important;
  }
}

.preview-actions .preview-share-comment,
.preview-actions .preview-share-note {
  display: none !important;
}
