:root {
  color-scheme: dark;
  --ink: #e8ecff;
  --mut: #8b94c4;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  margin: 0;
  background:
    radial-gradient(
      70% 50% at 15% 10%,
      rgba(255, 126, 179, 0.22),
      transparent 60%
    ),
    radial-gradient(
      60% 45% at 90% 85%,
      rgba(139, 107, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(120% 80% at 50% 0%, #241048, #080614);
  color: var(--ink);
  font-family:
    Nunito,
    -apple-system,
    "PingFang SC",
    "Noto Sans SC",
    system-ui,
    sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#ov {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  background: rgba(12, 6, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.3s;
  padding: 20px;
}
#ov.h {
  opacity: 0;
  pointer-events: none;
}
h1 {
  margin: 0;
  font-family: Unbounded, Nunito, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 8.4vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 6px 26px rgba(255, 126, 179, 0.35));
  background: linear-gradient(90deg, #ffd27a, #ff7eb3, #9d8bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p {
  margin: 0;
  color: var(--mut);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}
button {
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  border: 0;
  border-radius: 18px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ff7eb3, #8b6bff);
  box-shadow: 0 8px 24px rgba(255, 110, 170, 0.35);
  min-width: 240px;
  transition: transform 0.15s;
}
button:active {
  transform: scale(0.95);
}
button.g {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  font-weight: 700;
}
html[lang="zh"] h1 {
  font-family: "ZCOOL KuaiLe", Nunito, "PingFang SC", sans-serif;
  font-weight: 400;
  letter-spacing: 4px;
  font-size: clamp(40px, 12vw, 56px);
}
#set {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
#set button {
  padding: 8px 14px;
  font-size: 12px;
  min-width: 0;
  border-radius: 999px;
  font-weight: 700;
}
#art {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  height: 84px;
  width: 220px;
  margin-bottom: 6px;
}
#ov[data-m="1"] #art {
  display: flex;
}
#art .rw {
  display: flex;
  gap: 5px;
}
#art i {
  width: 28px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    hsl(var(--h) 90% 74%),
    hsl(var(--h) 80% 55%)
  );
  box-shadow: 0 0 14px hsl(var(--h) 90% 60%/0.55);
  animation: wv 2.4s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.18s);
}
#art b {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 14px #fff,
    0 0 30px #ff7eb3;
  animation:
    bx 2.6s linear infinite alternate,
    by 0.65s cubic-bezier(0.33, 1, 0.68, 1) infinite alternate;
}
@keyframes wv {
  50% {
    transform: translateY(-3px);
    filter: brightness(1.2);
  }
}
@keyframes bx {
  from {
    translate: -96px 0;
  }
  to {
    translate: 96px 0;
  }
}
@keyframes by {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-58px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #art * {
    animation: none !important;
  }
}
#ov[data-m="2"] {
  background: rgba(48, 4, 24, 0.8);
}
#ov[data-m="2"]::before {
  content: "💥";
  font-size: 64px;
  animation: pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}
#ov[data-m="2"] h1 {
  background: linear-gradient(90deg, #ffb3b3, #ff3b6b);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 28px rgba(255, 59, 107, 0.5));
  animation: pop 0.55s 0.08s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
}
#ov[data-m="2"] p {
  font-size: 22px;
  font-weight: 800;
  color: #ffd6e0;
}
@keyframes pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}
#lg {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 999px;
  min-width: 0;
}
