/* Keep the complete crossover cast visible, including transparent official artwork. */
.option-photo {
  background:
    radial-gradient(ellipse at 24% 18%, #8deeff75 0, transparent 58%),
    radial-gradient(ellipse at 82% 78%, #cf8aff65 0, transparent 63%),
    radial-gradient(ellipse at 50% 100%, #ffd77c5c 0, transparent 65%),
    linear-gradient(135deg, #103d50, #292849 65%, #4c3b35);
}
.option-photo > img {
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  animation: none;
}

/* One equal spotlight at a time: rise, return, then a quiet gap before the next. */
.option-card:hover:not(:disabled) { transform: none; }
.option-card:hover:not(:disabled) .option-photo > img { transform: none; }
.option-card.is-spotlight {
  z-index: 3;
  border-color: #f4d994;
  animation: answer-spotlight 1050ms cubic-bezier(.4, 0, .25, 1) both;
}
.option-card:focus-visible { outline: 3px solid #bcffef; outline-offset: -4px; }
.option-photo:before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(125deg, #85f4ff35, transparent 48%, #ffe09a40);
}
.is-spotlight .option-photo:before { animation: answer-gleam 1050ms ease-in-out both; }
@keyframes answer-spotlight {
  0%, 80%, 100% {
    transform: translateY(0) scale(1);
    border-color: #c8a466a6;
    box-shadow: inset 0 0 0 2px #062123, 0 5px 14px #0005;
    filter: brightness(1);
  }
  24%, 44% {
    transform: translateY(-3px) scale(1.035);
    border-color: #ffe9a4;
    box-shadow: inset 0 0 0 2px #ffe3a0a6, inset 0 0 23px #7cefff45, 0 0 23px #ffdc6b65;
    filter: brightness(1.12);
  }
}
@keyframes answer-gleam {
  0%, 80%, 100% { opacity: 0; }
  24%, 44% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .option-card.is-spotlight {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    border-color: #b0d6cf;
    box-shadow: inset 0 0 0 1px #a4d6cd66;
  }
  .is-spotlight .option-photo:before { animation: none !important; opacity: 0; }
}
.image-credits-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #d3b56f;
  white-space: nowrap;
}
.image-credits-link:hover { color: #ffe8ad; }
.image-credits-link:focus-visible { color: #fff2ca; outline: 2px solid #c4ffed; outline-offset: 3px; }

/* Standalone attribution page; the quiz itself retains its full-screen layout. */
html.credits-document { height: auto; min-height: 100%; overflow: auto; overscroll-behavior: auto; }
body.credits-page {
  height: auto;
  min-height: 100svh;
  overflow: auto;
  background:
    radial-gradient(ellipse at 10% 0, #13535c66, transparent 54%),
    radial-gradient(ellipse at 95% 75%, #5b325b45, transparent 62%),
    linear-gradient(#041b24eb, #04141ff2),
    url('assets/egypt-temple.webp') center / cover fixed;
}
.credits-content { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 36px 0 50px; }
.credits-back { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: #ffe3a1; font-size: 12px; font-weight: 800; letter-spacing: .7px; }
.credits-back:hover { color: #fff4d2; text-decoration: underline; text-underline-offset: 4px; }
.credits-header { padding: 24px 0 27px; border-bottom: 1px solid #ddbd7352; margin-bottom: 23px; }
.credits-header .eyebrow { margin-bottom: 9px; }
.credits-header h1 { margin: 0; font-family: var(--display); font-size: clamp(38px, 6.5vw, 60px); line-height: 1; color: #ffe4a1; }
.credits-header > p:last-child { max-width: 660px; font-size: 13px; line-height: 1.7; color: #bfd3cf; margin: 14px 0 0; }
.credits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.credits-card { min-width: 0; padding: 21px; border: 1px solid #c8a15e70; background: linear-gradient(135deg, #13323ad9, #102330e8); box-shadow: inset 0 0 0 3px #031a2438; }
.credits-card h2 { margin: 0 0 11px; color: #ffe4a1; font-family: var(--display); font-size: 29px; line-height: 1.1; }
.credits-card p { margin: 10px 0 0; color: #c2d5ce; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.credits-card strong { color: #eff0d9; }
.credits-card a { color: #b4f3ed; text-decoration: underline; text-underline-offset: 3px; }
.credits-card a:hover { color: #fff0b8; }
.credits-card a:focus-visible { outline: 2px solid #c4ffed; outline-offset: 3px; }
.credits-card-wide { grid-column: 1 / -1; }
.credits-date { color: #9ab9b8; font-size: 11px; margin: 23px 0 0; }
@media (max-width: 620px) {
  .credits-content { width: calc(100% - 30px); padding-top: 19px; }
  .credits-header { padding-top: 18px; }
  .credits-list { grid-template-columns: 1fr; gap: 13px; }
  .credits-card { padding: 18px; }
}
