body, html {
  margin: 0;
}
canvas {
  display: block;
}
a, #token-display {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 150px);
  width: 300px;
  height: 50px;
  line-height: 50px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50px;
}

/* 开场动画容器样式 */
.splash-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  z-index: 10000;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.splash-container.fade-out {
  opacity: 0;
  pointer-events: none !important;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 行星旋转动画容器 */
.rotation-orbit-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stones-rotating-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 16s linear infinite;
}

/* 加载文字样式 */
#splash-text {
  font-size: 18px;
  color: white;
  margin-top: 30px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* 旋转动画 */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 浮动阴影动画 */
.floating-shadow {
  width: 60px;
  height: 20px;
  background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
  margin-top: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

/* 加载中图像样式 */
.loading-character {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 15px rgba(120, 120, 255, 0.7));
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

/* 旋转行星样式 */
.planet {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  filter: blur(1px);
}

/* 8个行星位置设置 */
.planet-1 { top: 0; left: 50%; transform: translateX(-50%); background-color: #95fe92; }
.planet-2 { top: 50%; right: 0; transform: translateY(-50%); background-color: #f49bff; }
.planet-3 { bottom: 0; left: 50%; transform: translateX(-50%); background-color: #92feea; }
.planet-4 { top: 50%; left: 0; transform: translateY(-50%); background-color: #b0d3ff; }
.planet-5 { top: 14.6%; right: 14.6%; background-color: #FF8C66; }
.planet-6 { bottom: 14.6%; right: 14.6%; background-color: #3369af; }
.planet-7 { bottom: 14.6%; left: 14.6%; background-color: #FF7F50; }
.planet-8 { top: 14.6%; left: 14.6%; background-color: #6495ED; }

/* 星空背景切换按钮样式 */
.bg-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease, z-index 0s;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-toggle:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.bg-toggle.simple-mode {
  color: #ffcc00;
  background-color: rgba(0, 0, 30, 0.6);
}

/* 简单星空背景样式 */
.simple-starry-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  z-index: 0;
  display: none;
  overflow: hidden;
}

.simple-starry-bg.active {
  display: block;
}

.simple-star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--duration) infinite ease-in-out;
  animation-delay: var(--delay);
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--opacity); transform: scale(1); }
}

/* 流星动画样式 */
.shooting-star {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 1));
  border-radius: 50%;
  transform-origin: left center;
  opacity: 0;
  filter: blur(0.6px);
  overflow: visible;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 7px 2px rgba(255, 255, 255, 0.9);
  filter: blur(0.2px);
}

.shooting-star.animate {
  animation: shooting-star-move 2.5s ease-out forwards;
}

@keyframes shooting-star-move {
  0% {
    opacity: 0;
    width: 0;
    transform: translateX(0) translateY(0) rotate(var(--angle, 45deg));
  }
  2% {
    opacity: 1;
    width: 0;
  }
  15% {
    width: calc(var(--length, 120px) * 0.3);
  }
  40% {
    width: var(--length, 120px);
    opacity: 1;
  }
  60% {
    width: var(--length, 120px);
    transform: translateX(var(--move-x, 100px)) translateY(var(--move-y, 100px)) rotate(var(--angle, 45deg));
    opacity: 1;
  }
  80% {
    width: calc(var(--length, 120px) * 0.7);
    opacity: 0.7;
  }
  100% {
    width: 0;
    opacity: 0;
    transform: translateX(calc(var(--move-x, 100px) * 1.5)) translateY(calc(var(--move-y, 100px) * 1.5)) rotate(var(--angle, 45deg));
  }
} 