/* ---------- Outdoor castle clues ---------- */
.clue-modal {
  position: fixed;
  inset: 0;
  z-index: 245;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
}
.clue-modal.open {
  display: flex;
  animation: story-fade 0.22s ease;
}
.clue-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(255, 248, 225, 0.52),
      transparent 38%
    ),
    rgba(30, 23, 60, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.clue-card {
  position: relative;
  width: min(560px, 92vw);
  box-sizing: border-box;
  padding: 24px;
  border: 5px solid #7be0c8;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(255, 216, 107, 0.35),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(235, 255, 247, 0.98)
    );
  color: #235c51;
  text-align: center;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.38),
    0 0 70px rgba(123, 224, 200, 0.42);
}
.clue-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #235c51;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.clue-kicker {
  margin-bottom: 6px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a9f86;
}
.clue-title {
  margin: 0 42px 10px;
  color: #6b2247;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.08;
}
.clue-prompt {
  margin: 0 auto 10px;
  max-width: 440px;
  color: #4a1834;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(18px, 4vw, 23px);
  line-height: 1.35;
}
.clue-evidence {
  margin: 0 auto 16px;
  max-width: 440px;
  padding: 9px 11px;
  border: 2px solid rgba(35, 124, 95, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #235c51;
  font:
    850 14px/1.32 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}
.clue-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.clue-choice {
  min-height: 56px;
  border: 3px solid rgba(35, 124, 95, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefa, #fff1c6);
  color: #7a3f00;
  font:
    900 18px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(35, 124, 95, 0.18);
}
.clue-choice:hover,
.clue-choice:focus-visible {
  outline: 3px solid rgba(255, 216, 107, 0.72);
  transform: translateY(-1px);
}
.clue-choice:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(35, 124, 95, 0.18);
}
.clue-feedback {
  min-height: 28px;
  margin-top: 16px;
  color: #8a2f64;
  font:
    800 16px/1.3 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}
.clue-feedback.good {
  color: #237c5f;
}
@media (max-width: 560px) {
  .clue-card {
    width: min(94vw, 420px);
    max-height: 88dvh;
    padding: 20px 16px 18px;
    overflow-y: auto;
  }
  .clue-title {
    margin-right: 44px;
    margin-left: 8px;
    font-size: 25px;
  }
  .clue-prompt {
    font-size: 18px;
  }
  .clue-evidence {
    margin-bottom: 12px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .clue-choices {
    grid-template-columns: 1fr;
  }
  .clue-choice {
    min-height: 50px;
    font-size: 18px;
  }
}
