/* Skynet Wrapped (views/wrapped.ejs). The pictures are drawn by
   utils/wrappedCard.js in fixed colours so they look the same wherever they
   are posted; only the page around them follows the reader's palette. */
.wr-main > * { min-width: 0; }
.wr-kicker {
  margin: 0 0 0.35rem;
  color: var(--sk-primary-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wr-head h1 { overflow-wrap: anywhere; }
.wr-coverage {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sk-border);
  border-radius: var(--sk-radius, 0.75rem);
  background: var(--sk-surface);
  color: var(--sk-text-2);
  line-height: 1.5;
}
.wr-coverage i { color: var(--sk-primary-text); margin-top: 0.2rem; }
.wr-coverage strong { color: var(--sk-text); }

.wr-mine .sk-card-body > p { margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.wr-mine .sk-btn, .wr-search .sk-btn { min-height: 44px; }
.wr-search { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.wr-search .sk-input { flex: 1 1 14rem; min-width: 0; }

.wr-picture-card .sk-card-body { min-width: 0; }
.wr-picture { display: block; min-width: 0; border-radius: var(--sk-radius, 0.75rem); overflow: hidden; }
.wr-picture img { display: block; width: 100%; height: auto; }
.wr-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.wr-actions > * { min-height: 44px; }
.wr-link { width: 100%; min-width: 0; }

.wr-stats { margin: 0 0 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.wr-stats dd { font-size: 1.15rem; overflow-wrap: normal; }
.wr-stats dd small { color: var(--sk-muted); font-size: 0.8rem; font-weight: 500; }

.wr-list, .wr-moments, .wr-weapons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.wr-list li, .wr-moments li { min-width: 0; overflow-wrap: anywhere; }
.wr-list a, .wr-moments a { color: var(--sk-primary-text); }
.wr-ranked { counter-reset: wr; }
.wr-ranked li { counter-increment: wr; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.25rem; }
.wr-ranked li::before { content: counter(wr) "."; color: var(--sk-muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.wr-ranked li > * { grid-column: 2; }
.wr-moments li { display: flex; gap: 0.6rem; align-items: baseline; }
.wr-moments i { color: var(--sk-primary-text); width: 1.1rem; text-align: center; flex: 0 0 auto; }
.wr-weapons li { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex-wrap: wrap; }
.wr-weapons img { width: 96px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.wr-weapon-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }

/* The reader's own servers and factions under "Your Wrapped". */
.wr-own { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--sk-border); }
.wr-own-title { margin: 0 0 0.5rem; color: var(--sk-muted); font-weight: 600; }
.wr-chips { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wr-chips li { min-width: 0; max-width: 100%; }
.wr-chips .sk-btn { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }

/* Combat badges (public/js/player-badges.js): the tier is said in words; the colour only agrees. */
.wr-badges { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.wr-badges li { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.wr-badge-icon { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: grid; place-items: center; background: var(--sk-primary-soft, var(--sk-surface-2)); color: var(--sk-primary-text); }
.wr-badges li[data-tier="3"] .wr-badge-icon { background: var(--sk-warning-soft, var(--sk-surface-2)); color: var(--sk-warning-text, var(--sk-text)); }
.wr-badge-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.wr-badge-tier { color: var(--sk-muted); font-size: 0.85rem; }

.wr-band { margin: 1.5rem 0 0.75rem; font-size: 1.15rem; }

.wr-columns { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.wr-columns > * { min-width: 0; margin: 0; }

/* The picture slides in when it arrives (html.skm-on, public/js/motion-v2.js). */
.wr-picture { transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.skm-on .wr-picture:not(.skm-in) { opacity: 0; translate: 0 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  .wr-picture { transition: none; }
  .skm-on .wr-picture { opacity: 1 !important; translate: none !important; }
}
