:root {
  --bg-start: #ffdde1;
  --bg-mid: #fbb1bd;
  --bg-end: #b5d8ff;
  --card-bg: rgba(255, 255, 255, 0.86);
  --text-main: #4b2e35;
  --text-soft: #855869;
  --btn-start: #ff7da0;
  --btn-end: #ff5f95;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
  display: grid;
  place-items: center;
  overflow: hidden;
}

#sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card {
  width: min(92vw, 700px);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 55px rgba(145, 64, 91, 0.24);
  text-align: center;
  position: relative;
  z-index: 1;
}

.tag {
  margin: 0;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #fff;
  background: linear-gradient(90deg, #ff7ea6, #ff87c7);
}

h1 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2rem, 7vw, 3.3rem);
  margin: 0.9rem 0 0.4rem;
  color: #cf3f79;
}

.wish {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.85;
  margin: 1rem auto 1.8rem;
  max-width: 32ch;
  color: var(--text-soft);
}

.actions {
  margin-bottom: 0.9rem;
}

button {
  appearance: none;
  border: 0;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--btn-start), var(--btn-end));
  box-shadow: 0 12px 28px rgba(255, 95, 149, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 95, 149, 0.4);
}

button:active {
  transform: translateY(0);
}

.secret {
  min-height: 1.6em;
  margin: 0;
  color: #8b3b62;
  font-weight: 500;
}

@media (max-width: 420px) {
  .card {
    border-radius: 22px;
  }

  .wish {
    max-width: 100%;
  }
}
