/* SVG progress ring around the wax seal */
.seal-ring {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
  z-index: 6;
  transform: rotate(-90deg); /* start fill from the top */
}
#sealRingProgress {
  stroke: var(--ring-stroke);
  transition: none;
}

/* Secret message popup */
.seal-secret {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 30, 50, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.seal-secret.show {
  opacity: 1;
  pointer-events: all;
}

.seal-secret-inner {
  background: var(--surface);
  border-radius: 18px;
  padding: 36px 32px;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 24px 60px var(--shadow);
  border: 1px solid var(--border-soft);
  transform: scale(0.88);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.seal-secret.show .seal-secret-inner { transform: scale(1); }

.seal-secret-inner p {
  font-size: 19px;
  font-style: italic;
  color: var(--accent-strong);
  line-height: 1.7;
  margin-bottom: 22px;
}

.seal-secret-inner button {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.seal-secret-inner button:hover { background: var(--accent); color: var(--on-accent); }
