.title {
  font-size: 2.4rem;
  color: #5a2a42;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 30px;
  animation: softRise 0.9s ease forwards;
}

.quote-box p {
  line-height: 1.6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow: hidden;
}

/* ---------- PAGES ---------- */
.page {
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.page.active {
  display: flex;
}

#page1 {
  background: linear-gradient(135deg, #ffd6e8, #ffeef6);
}

#page2 {
  background: linear-gradient(135deg, #f2fff6, #e6f7ff);
}

/* ---------- TITLE ---------- */
.title {
  font-size: 2.4rem;
  color: #5a2a42;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.heart {
  color: #ff5c8a;
}

/* ---------- MAIN BUTTON ---------- */
.boba-btn {
  font-size: 4rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1),
              filter 0.3s;
}

.boba-btn:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 15px rgba(255,120,170,0.4));
}

/* ---------- TOP BUTTONS ---------- */
.top-btn {
  position: absolute;
  top: 20px;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s;
}

.top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.back {
  left: 20px;
  background: #c9f2d6;
}

.restart {
  right: 20px;
  background: #cce7ff;
}

/* ---------- FLOATING BOBA ---------- */
.boba {
  position: absolute;
  font-size: 2.5rem;
  cursor: pointer;
  animation: drift linear infinite;
  transition: filter 0.3s;
}

.boba:hover {
  filter: drop-shadow(0 0 12px rgba(255,150,200,0.8));
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(40px, -60px); }
  100% { transform: translate(0, 0); }
}

/* ---------- BUBBLES ---------- */
.bubbles span {
  position: absolute;
  bottom: -40px;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  animation: bubble 14s linear infinite;
}

@keyframes bubble {
  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

/* ---------- QUOTE OVERLAY ---------- */
#quoteOverlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(7px);
  background: rgba(0,0,0,0.2);
  pointer-events: none;
}

#quoteOverlay.show {
  display: flex;
  pointer-events: auto;
}

.quote-box {
  background: #fff;
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  max-width: 80%;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-box p {
  font-size: 1.5rem;
  color: #5a2a42;
  margin-bottom: 20px;
}

.quote-box p {
  animation: quoteFade 0.6s ease;
}

@keyframes quoteFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.quote-box button {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: #ffb6d5;
  cursor: pointer;
}
@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.25),
    transparent 60%
  );
  pointer-events: none;
}