/* A kill card's page (views/kill-card.ejs). The picture itself is drawn by
   utils/killCards.js in fixed colours, so it looks the same wherever it is
   posted; only the page around it follows the reader's palette. */
.kc-kinds {
  margin: 0 0 0.35rem;
  color: var(--sk-primary-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kc-verb { color: var(--sk-muted); font-weight: 500; }
.kc-card .sk-card-body { display: grid; gap: 1rem; min-width: 0; }
.kc-picture { display: block; min-width: 0; border-radius: var(--sk-radius, 0.75rem); overflow: hidden; }
.kc-picture img { display: block; width: 100%; height: auto; }
.kc-facts { margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.kc-facts dd { font-size: 1.1rem; }
.kc-facts dd { overflow-wrap: anywhere; }
.kc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.kc-actions > * { min-height: 44px; }
.kc-link { width: 100%; min-width: 0; }
.kc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.kc-list li { display: grid; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; }
.kc-list a, .kc-actions a:not(.sk-btn) { color: var(--sk-primary-text); }
.pgv2-head h1 .pn { display: inline-block; }

/* The card slides in when it arrives (html.skm-on, public/js/motion-v2.js)
   and, on a mouse, tilts toward the pointer (public/js/kill-card.js sets
   --kc-rx/--kc-ry/--kc-gx and .kc-tilting). A phone, a touch screen and
   reduced motion get the picture flat and still. */
.kc-picture { position: relative; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.skm-on .kc-picture:not(.skm-in) { opacity: 0; translate: -2.5rem 0; scale: 0.97; }
.skm-on .kc-picture {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.kc-picture.kc-tilting {
  transform: perspective(900px) rotateX(var(--kc-rx, 0deg)) rotateY(var(--kc-ry, 0deg));
  transition: transform 0.08s linear;
}
.kc-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: var(--kc-gx, 50%) 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.kc-picture.kc-tilting::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .kc-picture, .kc-picture.kc-tilting { transform: none !important; transition: none !important; }
  .skm-on .kc-picture { opacity: 1 !important; translate: none !important; scale: none !important; }
  .kc-picture::after { display: none; }
}
