.flower-map {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #745465;
  background:
    radial-gradient(circle at 17% 53%, rgba(181, 80, 112, .16), transparent 27%),
    radial-gradient(circle at 80% 28%, rgba(226, 207, 156, .10), transparent 24%),
    linear-gradient(145deg, #181822, #121420 58%, #1a1721);
}
.flower-map-heading h2 {
  margin: 8px 0;
  font-size: clamp(28px, 3.5vw, 45px);
  line-height: 1.25;
}
.flower-map-heading > p:last-child {
  margin: 0;
  color: #c8bfc4;
}
.graph-stage {
  position: relative;
  height: 560px;
  margin-top: 28px;
  overflow: clip;
  border: 1px solid rgba(181, 142, 157, .32);
  background:
    radial-gradient(circle at 13% 17%, rgba(247, 229, 191, .55) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 12%, rgba(247, 229, 191, .28) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 77%, rgba(247, 229, 191, .38) 0 1px, transparent 2px),
    radial-gradient(circle at 39% 64%, rgba(247, 229, 191, .24) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 72%, rgba(75, 97, 79, .19), transparent 35%),
    linear-gradient(150deg, #10131b, #171421 57%, #111720);
}
.graph-stage::before,
.graph-stage::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  pointer-events: none;
  border: 1px solid rgba(235, 217, 193, .08);
  border-radius: 50%;
}
.graph-stage::before { left: -150px; top: -120px; }
.graph-stage::after { right: -145px; bottom: -140px; }
.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.graph-line-halo,
.graph-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: graph-grow .62s cubic-bezier(.2, .7, .15, 1) forwards;
}
.graph-line-halo { stroke: rgba(211, 180, 154, .21); stroke-width: 12; }
.graph-line { stroke: #b7a887; stroke-width: 2.6; }
.graph-line[data-depth="2"] { stroke: #b77f92; }
.graph-line-halo[data-depth="2"] { stroke: rgba(182, 94, 128, .22); }
@keyframes graph-grow { to { stroke-dashoffset: 0; } }
.graph-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 165px;
  padding: 0;
  border: 0;
  color: #f5efe9;
  background: none;
  cursor: pointer;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: graph-bloom .48s cubic-bezier(.2, 1.3, .35, 1) both;
}
.graph-node:hover .graph-flower,
.graph-node:focus-visible .graph-flower,
.graph-node[aria-expanded="true"] .graph-flower {
  color: #fff5d9;
  text-shadow: 0 0 18px rgba(255, 236, 192, .8), 0 0 38px rgba(214, 103, 146, .55);
}
.graph-node:focus-visible {
  outline: 2px solid #dfff87;
  outline-offset: 8px;
}
.graph-flower {
  position: relative;
  display: block;
  color: #e7c7c8;
  font-family: Georgia, serif;
  font-size: 57px;
  line-height: .95;
  text-shadow: 0 0 12px rgba(230, 180, 197, .45);
  transition: color .28s ease, text-shadow .28s ease;
  animation: graph-breathe 3.4s ease-in-out var(--breath-delay, 0s) infinite;
}
.graph-flower::after {
  content: "✦";
  position: absolute;
  top: -5px;
  right: 3px;
  color: #fff4d7;
  font-size: 17px;
  opacity: 0;
  text-shadow: 0 0 13px #fff2d0;
  animation: graph-twinkle 4.7s ease-in-out var(--breath-delay, 0s) infinite;
}
.graph-root .graph-flower { color: #f4dfc8; font-size: 78px; }
.graph-root .graph-flower::after { top: -2px; right: 9px; }
@keyframes graph-breathe {
  0%, 100% { filter: brightness(.88) drop-shadow(0 0 3px rgba(232, 175, 197, .18)); }
  50% { filter: brightness(1.22) drop-shadow(0 0 18px rgba(251, 213, 196, .7)); }
}
@keyframes graph-twinkle {
  0%, 34%, 47%, 100% { opacity: 0; }
  39% { opacity: .95; }
}
.graph-label {
  max-width: 165px;
  padding: 4px 7px;
  color: #f4ece6;
  background: rgba(10, 14, 21, .78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}
.graph-root .graph-label { color: #dfff87; }
@keyframes graph-bloom {
  from { opacity: 0; }
  to { opacity: 1; }
}
.graph-hint {
  min-height: 24px;
  margin: 15px 0 0;
  color: #c8bfc4;
  font-size: 14px;
}
@media (max-width: 700px) {
  .flower-map { padding: 25px 14px; }
  .flower-map-heading { padding: 0 8px; }
  .graph-stage { height: 650px; }
  .graph-node { width: 116px; }
  .graph-flower { font-size: 48px; }
  .graph-root .graph-flower { font-size: 65px; }
  .graph-label { max-width: 116px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .graph-node, .graph-line, .graph-line-halo { animation: none; }
  .graph-line, .graph-line-halo { stroke-dashoffset: 0; }
  .graph-flower, .graph-flower::after { animation: none; }
  .graph-flower { filter: none; transition: none; }
}
