/* ============ FOREVER — heart deck + new-words notice ============ */

.heart-btn { -webkit-tap-highlight-color: transparent; }
.heart-btn:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .heart-btn:hover { transform: scale(1.06); }
}
.heart-btn:active { transform: scale(0.9); transition-duration: 0.12s; }

/* ---- Chamber around the heart ---- */
.forever { position: relative; overflow: hidden; }
.fv-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 55%, rgba(232, 160, 176, 0.75), rgba(242, 196, 179, 0.35) 45%, transparent 75%);
  opacity: 0;
}
.fv-core {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin-top: 2.8rem;
}
.fv-core > * { grid-area: 1 / 1; }
.fv-core .heart-btn { margin-top: 0; position: relative; z-index: 2; }
.fv-orb {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 176, 0.55) 0%, rgba(242, 196, 179, 0.28) 38%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.fv-ring {
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 108, 138, 0.55);
  opacity: 0;
  pointer-events: none;
}
.fv-shock {
  position: absolute;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  border: 2px solid rgba(217, 108, 138, 0.8);
  box-shadow: 0 0 40px rgba(217, 108, 138, 0.45);
  pointer-events: none;
  z-index: 1;
}
.fv-gloss {
  position: absolute;
  top: 9%;
  left: 16%;
  width: 46%;
  height: 32%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.heart-btn-inner { position: relative; }
.heart-btn-inner svg { position: relative; z-index: 1; }

/* entrance: the whole chamber breathes open */
.fv-anim .fv-core {
  opacity: 0;
  transform: scale(0.7);
}
.fv-anim.is-in .fv-core {
  opacity: 1;
  transform: none;
  transition: transform 1.1s var(--ease-out-strong), opacity 0.5s ease;
}
.fv-anim.is-live .fv-orb { animation: fv-breathe 5.2s ease-in-out infinite alternate; }
.fv-anim.is-live .fv-ring { animation: fv-sonar 3.6s var(--ease-out-strong) calc(var(--n) * 1.2s) infinite; }
@keyframes fv-breathe {
  from { transform: scale(0.92); opacity: 0.75; }
  to { transform: scale(1.12); opacity: 1; }
}
@keyframes fv-sonar {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* ---- Deck ---- */
.fv-deck {
  position: relative;
  display: grid;
  max-width: 440px;
  margin: 2.6rem auto 0;
  min-height: 7.6rem;
  perspective: 1200px;
  text-align: left;
}
.fv-card {
  --cover: 0;
  grid-area: 1 / 1;
  position: relative;
  padding: 1.3rem 1.4rem 1.15rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #FFFFFF, #FFF8F5);
  border: 1px solid rgba(217, 108, 138, 0.16);
  box-shadow: var(--shadow-ambient), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease-out-strong), opacity 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.fv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(232, 160, 176, 0.55), rgba(246, 220, 227, 0.9));
  opacity: var(--cover);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.fv-card.is-under { pointer-events: none; }
.fv-card-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.fv-card-text {
  margin-top: 0.45rem;
  font-size: clamp(1.06rem, 4.3vw, 1.3rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}
.fv-card-text.ar {
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.9;
  text-align: right;
}
.fv-card-heart {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  width: 0.9rem;
  height: 0.9rem;
  fill: var(--rose-soft);
}
.fv-card-text.ar + .fv-card-heart { right: auto; left: 1.2rem; }

/* masked words: they rise once the card has landed */
.fv-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.02em 0.12em;
  margin: -0.06em -0.02em -0.12em;
}
.fv-wi {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.7s var(--ease-out-strong) calc(0.3s + var(--i, 0) * 32ms);
}
.fv-card.is-in .fv-wi { transform: none; }

.fv-count {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.fv-count strong { font-weight: 700; color: var(--rose); }

/* ---- Floating notice ---- */
.fv-notice {
  position: fixed;
  left: 50%;
  bottom: calc(max(env(safe-area-inset-bottom), 0.9rem) + 0.6rem);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(92vw, 400px);
  padding: 0.7rem 0.55rem 0.7rem 0.8rem;
  border-radius: 1.2rem;
  background: rgba(61, 44, 51, 0.92);
  color: var(--cream);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -18px rgba(61, 44, 51, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translate3d(-50%, 140%, 0);
  opacity: 0;
  transition: transform 0.55s var(--ease-out-strong), opacity 0.3s ease;
  pointer-events: none;
}
.fv-notice.is-on {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
  animation: fv-float 3.6s ease-in-out 0.6s infinite;
}
.fv-notice.is-gone {
  transform: translate3d(-50%, 30%, 0) scale(0.96);
  opacity: 0;
  transition-duration: 0.3s;
  animation: none;
}
@keyframes fv-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.fv-notice-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose), var(--rose-soft));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(217, 108, 138, 0.8);
}
.fv-notice-ico svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: fv-twinkle 2.4s var(--ease-fluid) infinite;
}
@keyframes fv-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(12deg); }
}
.fv-notice-text {
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
}
.fv-notice-text strong { font-weight: 700; color: var(--rose-soft); }
.fv-notice-x {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out-strong);
}
.fv-notice-x:active { transform: scale(0.92); }
.fv-notice-x svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
@media (hover: hover) and (pointer: fine) {
  .fv-notice-x:hover { background: rgba(255, 255, 255, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .fv-orb, .fv-ring { animation: none; }
  .fv-wi { transform: none; transition: none; }
  .fv-notice.is-on { animation: none; }
  .fv-notice-ico svg { animation: none; }
  .fv-card { transition: opacity 0.3s ease; }
}
