/* ---------- Story modal ---------- */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
}
.story-modal.open {
  display: flex;
  animation: story-fade 0.35s ease;
}
@keyframes story-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 214, 236, 0.55) 0%,
      rgba(120, 30, 90, 0.55) 70%
    ),
    rgba(60, 10, 50, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.story-modal-card {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  width: min(680px, 92vw);
  padding: 28px 32px;
  background: linear-gradient(180deg, #fff7fb 0%, #ffe6f2 100%);
  border: 4px solid #ff8ac0;
  border-radius: 26px;
  color: #5a1c3a;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(255, 138, 192, 0.5);
  animation: story-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes story-pop {
  0% {
    opacity: 0;
    transform: scale(0.72) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.story-modal-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 50% 45%,
    #fff 0%,
    #ffd6ec 60%,
    #ff9ed1 100%
  );
  border-radius: 18px;
  padding: 14px;
  border: 2px solid rgba(255, 138, 192, 0.55);
  min-height: 220px;
}
.story-modal-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(120, 40, 90, 0.35));
  animation: story-img-bob 3.4s ease-in-out infinite;
}
@keyframes story-img-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}
.story-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.story-modal-found {
  font-family: "Inter", "Georgia", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b03579;
  opacity: 0.75;
}
.story-modal-name {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #b03579;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
  line-height: 1.1;
}
.story-modal-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #5a1c3a;
}
.story-modal-evidence {
  margin: 0;
  padding: 10px 12px;
  border: 2px solid rgba(176, 53, 121, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #5a1c3a;
  font:
    850 15px/1.3 "Trebuchet MS",
    Arial,
    sans-serif;
}
.story-modal-bridge {
  margin: 0;
  padding: 10px 12px;
  border: 2px solid rgba(255, 216, 107, 0.72);
  border-radius: 8px;
  background: rgba(255, 248, 215, 0.78);
  color: #6b3d24;
  font:
    800 15px/1.25 "Trebuchet MS",
    Arial,
    sans-serif;
}
.story-modal-points {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 14px;
  background: #ffd86b;
  color: #6b2247;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  border: 2px solid #f5b800;
  letter-spacing: 0.04em;
}
.story-modal-close {
  margin-top: 10px;
  padding: 14px 24px;
  min-height: 48px;
  background: linear-gradient(180deg, #ff8ac0 0%, #d44e8f 100%);
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    0 6px 18px rgba(212, 78, 143, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
  align-self: flex-start;
}
.story-modal-close:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(212, 78, 143, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.story-modal-close:active {
  transform: translateY(0);
}
.story-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.story-modal-necklace {
  padding: 14px 22px;
  min-height: 48px;
  background: linear-gradient(180deg, #b48bff 0%, #7c4ed6 100%);
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    0 6px 18px rgba(124, 78, 214, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.story-modal-necklace:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(124, 78, 214, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.story-modal-necklace:active {
  transform: translateY(0);
}
