/* Stage 5.6 — one held remembrance for the newly lost elves. */
#modal .memorial-card {
  width:min(880px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  padding:0;
  overflow:auto;
  border:1px solid #bda16b;
  border-radius:20px;
  background:#182e36;
  color:#f8f0df;
  box-shadow:0 24px 70px #06131ac9;
}
.memorial-art { width:100%; background:#132a34; }
.memorial-art img { display:block; width:100%; height:auto; max-height:35vh; aspect-ratio:1672/941; object-fit:contain; object-position:center; }
.memorial-content { padding:22px 28px 26px; }
.memorial-kicker { color:#dcc18b; text-transform:uppercase; letter-spacing:.13em; font-size:.8125rem; font-weight:700; margin:0 0 8px; }
#modal .memorial-content h2 { margin:0 0 12px; color:#fff0c9; font-size:clamp(1.5rem,3vw,2rem); line-height:1.16; }
#modal .memorial-content p { color:#f2eadb; font-size:1rem; line-height:1.45; }
#modal .memorial-content #memorial-intro { margin:0 0 17px; }
.memorial-scroll { max-height:min(30vh,250px); overflow:auto; overscroll-behavior:contain; scrollbar-color:#a58e62 #182e36; padding:2px 4px; }
.memorial-scroll:focus-visible { outline:3px solid #f7ce79; outline-offset:3px; border-radius:8px; }
.memorial-names { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px 20px; }
.memorial-person { display:flex; align-items:center; gap:14px; min-width:0; padding:10px 0; border-top:1px solid #bda16b47; }
.memorial-person .crew-face { width:58px; height:62px; flex:0 0 58px; object-fit:cover; object-position:top; border-radius:13px; border:1px solid #d6b374; filter:none; background:#e4d2ad; }
.memorial-person h3 { margin:0 0 3px; color:#fff3d2; font-size:1.125rem; line-height:1.2; }
#modal .memorial-person .memorial-role { font-size:.875rem; color:#d6c5a4; margin:0 0 3px; }
#modal .memorial-person .memorial-cause { font-size:.9375rem; color:#f2eadb; margin:0; overflow-wrap:anywhere; }
#modal .memorial-content .memorial-farewell { font-style:italic; color:#dbcdb4; margin:17px 0; }
#modal .memorial-ack { display:block; width:100%; min-height:48px; padding:12px 20px; border:1px solid #d4ba7c; border-radius:11px; background:#e7d29e; color:#1c3438; font:700 1.0625rem/1.2 system-ui,sans-serif; cursor:pointer; }
#modal .memorial-ack:hover { background:#f3dfaf; }
#modal .memorial-ack:focus-visible { outline:3px solid #fff4d5; outline-offset:4px; }
@media(max-width:600px) {
  #modal .memorial-card { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:15px; }
  .memorial-content { padding:18px; }
  .memorial-art img { max-height:30vh; }
  .memorial-names { grid-template-columns:1fr; }
  .memorial-scroll { max-height:25vh; }
}
@media(max-height:560px) and (min-width:700px) {
  #modal .memorial-card { display:grid; grid-template-columns:39% 61%; width:min(1000px,calc(100vw - 24px)); }
  .memorial-art { display:flex; align-items:center; }
  .memorial-art img { height:auto; max-height:calc(100dvh - 28px); object-fit:contain; }
  .memorial-content { padding:18px 22px; }
  .memorial-scroll { max-height:24vh; }
}
@media(prefers-reduced-motion:reduce) {
  #modal .memorial-card,#modal .memorial-card * { animation:none!important; transition:none!important; }
}
