:root {
  color-scheme: dark;
  color: #fff6e5;
  background: #100b28;
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(32px, 8vw, 140px);
}

.cover-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 13%;
}

.cover::before,
.cover::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.cover::before {
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #100b28ed 0%, #100b2894 30%, transparent 67%);
}

.cover::after {
  inset: 14px;
  border: 1px solid #ffe1af45;
  border-radius: 22px;
}

.cover-copy {
  min-width: 0;
}

.cover-copy::before {
  display: block;
  width: 64px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffbe67, #f896a6 52%, #ad96ff);
  box-shadow: 0 0 18px #ffc68370;
  content: "";
}

h1 {
  margin: 0;
  color: #fff4df;
  font-size: clamp(2.35rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.025em;
  text-shadow: 0 5px 30px #100b28d9;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 40px);
}

.cover-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cover-actions a:hover {
  transform: translateY(-2px);
}

.cover-actions a:active {
  transform: translateY(1px);
}

.cover-actions a:focus-visible {
  outline: 3px solid #fff2df;
  outline-offset: 5px;
}

.cover-actions .lobby-link {
  gap: 14px;
  padding: 7px 8px 7px 20px;
  border-color: #ffedbd;
  background: linear-gradient(115deg, #ffdc91, #ffae70);
  box-shadow: 0 3px 0 #a45140, 0 10px 32px #ff996e43;
  color: #2d1b2f;
}

.lobby-link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #502d35;
  color: #ffebc2;
  font-size: 1.25rem;
  line-height: 1;
}

.cover-actions .support-link {
  gap: 7px;
  padding-inline: 16px;
  border-color: #fbdade73;
  background: #20143bd9;
  color: #fff0f4;
}

.support-link span {
  color: #ffabb8;
}

.cover-actions .support-link:hover {
  background: #3e2459;
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 520px) {
  .cover {
    align-items: end;
    padding: 24px 20px clamp(36px, 9svh, 96px);
    text-align: center;
  }

  .cover-art {
    height: 77%;
    object-position: 92% 14%;
  }

  .cover::before {
    background: linear-gradient(180deg, transparent 43%, #100b2840 57%, #100b28 77%);
  }

  .cover::after {
    inset: 9px;
    border-radius: 17px;
  }

  .cover-copy::before {
    width: 42px;
    margin: 0 auto 16px;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 4.5rem);
  }

  .cover-actions {
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .cover {
    padding-block: 32px;
  }

  .cover-copy::before {
    margin-bottom: 16px;
  }

  .cover-actions {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-actions a {
    transition: none;
  }
}
