.particle-heart-section {
  --ph3d-bg1: #2a0f55;
  --ph3d-bg2: #06030f;
  --ph3d-prev-bg: #fff8fb;  /* = Memories' bottom colour */
  --ph3d-rose-1: #f4c6de;   /* soft pink-rose */
  --ph3d-rose-2: #c98ac9;   /* rose violet */
  --ph3d-plum: #7a3fa0;     /* plum, dissolves into the deep purple */
  --ph3d-fade: clamp(140px, 17vh, 180px); /* ends above the heart's top lobes */
  --ph3d-title: #fff1f8;
  --ph3d-text: #f3d4ea;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding: clamp(3.5rem, 11vh, 6.5rem) 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  color: var(--ph3d-text);
  /* Gradient lives in the section background (under the canvas): nothing overlays the particles. */
  background:
    linear-gradient(to bottom, var(--ph3d-prev-bg) 0%, var(--ph3d-rose-1) 24%, var(--ph3d-rose-2) 50%, var(--ph3d-bg1) 100%) top center / 100% var(--ph3d-fade) no-repeat,
    radial-gradient(ellipse at 50% 38%, var(--ph3d-bg1), var(--ph3d-bg2) 72%),
    var(--ph3d-bg2);
  background:
    linear-gradient(to bottom, var(--ph3d-prev-bg) 0%, var(--ph3d-rose-1) 22%, var(--ph3d-rose-2) 46%,
      color-mix(in srgb, var(--ph3d-plum) 60%, transparent) 68%,
      color-mix(in srgb, var(--ph3d-plum) 22%, transparent) 86%, transparent 100%) top center / 100% var(--ph3d-fade) no-repeat,
    radial-gradient(ellipse at 50% 38%, var(--ph3d-bg1), var(--ph3d-bg2) 72%),
    var(--ph3d-bg2);
}
.particle-heart-section .ph3d__title {
  position: relative; z-index: 2; margin: 0;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: .06em;
  color: var(--ph3d-title);
  text-shadow: 0 1px 10px rgba(42, 15, 85, .55);
}
.particle-heart-section .ph3d__stage {
  position: relative; z-index: 0; width: 100%; max-width: 1400px;
  height: clamp(420px, 72vh, 920px);
  height: clamp(420px, calc(100svh - 9rem), 920px);
  overflow: hidden;
}
.particle-heart-section .ph3d__canvas {
  display: block; width: 100%; height: 100%;
  touch-action: pan-y pinch-zoom; cursor: grab;
}
.particle-heart-section .ph3d__canvas:active { cursor: grabbing; }
.particle-heart-section .ph3d__fallback {
  display: none; position: absolute; inset: 0; margin: 0; padding: 1rem;
  align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(255, 70, 160, .35), transparent 45%);
}
.particle-heart-section.ph3d--fallback .ph3d__fallback { display: flex; }
.particle-heart-section .ph3d__hint {
  position: relative; z-index: 2; margin: .35rem 1.5rem 0; text-align: center;
  font-size: clamp(.8rem, 1.2vw, .95rem); letter-spacing: .12em; opacity: .7;
}
@media (max-width: 640px) {
  .particle-heart-section { padding-top: 3rem; --ph3d-title: #6d2a68; }
  .particle-heart-section .ph3d__title { text-shadow: none; }
  .particle-heart-section .ph3d__title { font-size: 1.15rem; }
  .particle-heart-section .ph3d__stage { height: clamp(420px, calc(100svh - 7.5rem), 760px); }
  .particle-heart-section .ph3d__hint { font-size: .75rem; letter-spacing: .06em; }
}
