/* The landing cover is one illustrated world, with the live character rigs on top. */
.cosmic-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42% 1fr;
  grid-template-rows: auto auto 1fr;
  min-height: 650px;
  margin: 26px 0 32px;
  padding: 60px 44px 34px;
  overflow: hidden;
  border: 1px solid #c66acb66;
  border-radius: 34px;
  background: #180a30;
  color: #fff8f2;
  box-shadow: 0 24px 60px #48245b26, inset 0 0 0 1px #ffffff0d;
}
.cover-intro { grid-area: 1 / 1; z-index: 3; min-width: 0; }
.cover-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffd795;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.6;
}
.cover-eyebrow > span { color: #ff96d6; font-size: 19px; }
.cosmic-cover h1 {
  margin: 21px 0 20px;
  font-size: clamp(46px, 4.45vw, 65px);
  line-height: 1.04;
  letter-spacing: -2.8px;
  color: #fffaf2;
  text-shadow: 0 4px 0 #4e204e, 0 10px 30px #10031a66;
}
.cosmic-cover h1 > span { color: #ffd77d; }
.cosmic-cover .hero-copy {
  max-width: 325px;
  color: #e2cfe9;
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}
.cover-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cover-world { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.cover-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #170929b8, #17092973 29%, transparent 55%), linear-gradient(0deg, #1709295c, transparent 28%);
}
.cover-portal-glow {
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  right: 6%;
  top: 1%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff0ab52, #ff84de24 35%, transparent 69%);
  mix-blend-mode: screen;
  animation: cover-portal 6s ease-in-out infinite alternate;
}
.cover-stardust {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .6;
  background-image: radial-gradient(circle, #fff7db 0 1px, transparent 2px), radial-gradient(circle, #ffb9e7 0 1px, transparent 2px);
  background-size: 173px 211px, 281px 183px;
  background-position: 31px 47px, 99px 133px;
  animation: cover-drift 18s linear infinite alternate;
}
.cover-comet {
  position: absolute;
  z-index: 2;
  right: 9%;
  top: 8%;
  width: 95px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffefbe);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(150deg);
  animation: cover-comet 11s linear infinite;
}
.cosmic-cover .galaxy-cover-art {
  position: absolute;
  right: -1%;
  bottom: 8%;
  width: 62%;
  aspect-ratio: 760 / 560;
  z-index: 2;
  pointer-events: none;
}
.cosmic-cover #dono-avatar {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  filter: drop-shadow(0 8px 5px #46174224);
}
.cosmic-cover .cover-actions {
  grid-area: 2 / 1;
  z-index: 3;
  width: 100%;
  max-width: 330px;
  margin: 27px 0 0;
}
.cosmic-cover .primary {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  margin: 0;
  gap: 22px;
  border: 1px solid #ffe9b6;
  border-radius: 17px;
  background: linear-gradient(165deg, #ffe9a4, #ffcd66 65%, #ffb75b);
  color: #582841;
  text-shadow: none;
  font-size: 22px !important;
  font-weight: 900;
  box-shadow: 0 6px 0 #ba6c42, 0 12px 28px #ffb96c25, inset 0 2px 0 #fff9 !important;
  transition: transform .2s, box-shadow .2s;
}
.cosmic-cover .primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #ba6c42, 0 16px 35px #ffb96c44 !important; }
.cosmic-cover .primary:active { transform: translateY(3px) !important; box-shadow: 0 3px 0 #ba6c42 !important; }
.cosmic-cover .primary > span { font-size: 27px; }
.cosmic-cover .registration-benefit { margin: 16px 0 7px; font-size: 11px; line-height: 1.6; color: #cfb7dc; }
.cosmic-cover .welcome-secondary { display: flex; align-items: center; gap: 0 18px; }
.cosmic-cover .welcome-secondary:has(.primary) { flex-direction: column; align-items: stretch; gap: 10px; }
.cosmic-cover .trial-link { min-height: 44px; font-size: 11px; color: #f5dff8; text-decoration-color: #f5dff866; }
.cosmic-cover .creator-link { min-height: 44px; margin: 2px 0 0; padding: 8px 0; font-size: 11px; color: #bfa8cd; border: 0; background: transparent; }
.cosmic-cover button:focus-visible { outline: 3px solid #fff5cb; outline-offset: 6px; }
.cover-trail {
  position: absolute;
  bottom: 22px;
  right: 6%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 11px 23px;
  border: 1px solid #ffd6f02b;
  border-radius: 100px;
  background: #1f0b35c7;
  color: #fff2df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 6px 24px #16062226;
}
.cover-trail > span { display: inline-flex; align-items: center; gap: 6px; }
.cover-trail i { color: #ffd77d; font-style: normal; font-size: 17px; }
.cover-trail b { color: #cba3dd; }
html[dir=rtl] .cosmic-cover h1 { letter-spacing: 0; font-size: clamp(43px, 4.25vw, 59px); line-height: 1.3; }
html[dir=rtl] .cover-eyebrow { letter-spacing: 0; font-size: 12px; }
@media (min-width: 761px) {
  html[dir=rtl] .cover-scene { transform: scaleX(-1); }
  html[dir=rtl] .cover-trail { right: auto; left: 6%; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .cosmic-cover { padding: 42px 30px 28px; grid-template-columns: 45% 1fr; min-height: 620px; }
  .cosmic-cover h1 { font-size: 49px; letter-spacing: -2.1px; }
  .cosmic-cover .hero-copy { max-width: 285px; font-size: 13px; }
  .cosmic-cover .cover-actions { max-width: 285px; }
  .cosmic-cover .galaxy-cover-art { width: 66%; right: -8%; bottom: 8%; }
  .cover-world { object-position: 46% 50%; }
  .cover-scene::after { background: linear-gradient(90deg, #170929d9, #170929ab 33%, transparent 67%); }
  .cover-trail { right: 4%; font-size: 10px; gap: 12px; }
  html[dir=rtl] .cosmic-cover h1 { font-size: 45px; }
}
@media (max-width: 760px) {
  .cosmic-cover {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 18px -6px 26px;
    padding: 25px 0 20px;
    border-radius: 27px;
    background: radial-gradient(ellipse at 50% 16%, #422053, transparent 52%), #190b2d;
  }
  .cover-intro { padding: 0 22px; text-align: center; }
  .cover-eyebrow { justify-content: center; font-size: 9px; letter-spacing: 2.2px; }
  .cover-eyebrow > span { font-size: 15px; }
  .cosmic-cover h1 { font-size: clamp(35px, 8vw, 51px); line-height: 1.06; letter-spacing: -1.8px; margin: 13px 0 12px; }
  .cosmic-cover .hero-copy { max-width: 340px; margin: 0 auto; font-size: 12px; line-height: 1.65; }
  .cover-scene { position: relative; inset: auto; width: 100%; aspect-ratio: 1.4; margin-top: -2px; flex: 0 0 auto; }
  .cover-world { object-fit: cover; object-position: 100% 60%; }
  .cover-scene::after { background: linear-gradient(180deg, #190b2d 0, #190b2d00 17%, transparent 80%, #190b2d 100%); }
  .cover-portal-glow { width: 55%; right: 8%; top: -3%; }
  .cosmic-cover .galaxy-cover-art { width: 100%; right: 0; bottom: -2%; }
  .cosmic-cover .cover-actions { width: calc(100% - 44px); max-width: 380px; margin: -4px auto 0; text-align: center; }
  .cosmic-cover .primary { min-height: 57px; border-radius: 15px; font-size: 21px !important; }
  .cosmic-cover .registration-benefit { font-size: 10px; margin: 15px 0 3px; }
  .cosmic-cover .welcome-secondary { justify-content: center; gap: 0 18px; }
  .cosmic-cover .trial-link { font-size: 10px; }
  .cosmic-cover .creator-link { margin: 0 auto; min-height: 36px; font-size: 10px; }
  .cover-trail { position: static; align-self: center; margin-top: 5px; padding: 7px 18px; font-size: 9px; gap: 14px; background: #ffffff06; }
  .cover-trail i { font-size: 14px; }
  html[dir=rtl] .cosmic-cover h1 { font-size: clamp(34px, 7.7vw, 46px); line-height: 1.28; }
  html[dir=rtl] .cover-eyebrow { font-size: 10px; }
}
@keyframes cover-portal { from { opacity: .5; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }
@keyframes cover-drift { from { transform: translateY(0); opacity: .3; } to { transform: translateY(-20px); opacity: .7; } }
@keyframes cover-comet { 0%, 76%, 100% { opacity: 0; transform: translate(0, 0) rotate(150deg); } 78% { opacity: .8; } 85% { opacity: 0; transform: translate(-250px, 145px) rotate(150deg); } }
@media (prefers-reduced-motion: reduce) {
  .cosmic-cover *, .cosmic-cover *::after { animation: none !important; transition: none !important; }
  .cover-comet { display: none; }
}
