/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 星空 */
#stars {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 告白文字 */
.text-box {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  animation: fadeIn 1s ease;
}
#text {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #ff6ec7, 0 0 20px #ff6ec7;
}

.btn-box button {
  border: none;
  padding: 0.8rem 2rem;
  margin: 0 1rem;
  font-size: 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all .3s;
}
.yesBtn {
  background: linear-gradient(45deg, #ff6ec7, #ff219f);
  color: #fff;
}
.noBtn {
  background: #555;
  color: #fff;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 画布 */
canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
