:root {
  color-scheme: only dark;
  --bg: #0b0b0b;
  --bg-2: #111;
  --fg: #f4f4f4;
  --muted: #b9b9b9;
  --dim: rgba(244, 244, 244, 0.5);
  --pink: #ff148c;
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.1);
  --font: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: radial-gradient(circle at top, #141414 0%, #0b0b0b 55%, #060606 100%);
  color: var(--fg);
  font-family: var(--font);
  min-height: 100vh;
  min-height: 100dvh;
}
/* Sticky-footer layout: body is a flex column so the CTA bar is pinned to
   the bottom of the viewport when content is short, and pushed below the
   fold (rather than overlaid) when content is tall. */
body {
  display: flex;
  flex-direction: column;
}
#cs-root {
  flex: 1 0 auto;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
.cs-media {
  opacity: 0;
  transition: opacity 0.18s ease;
}
.cs-media.is-ready {
  opacity: 1;
}

/* Header --------------------------------------------------------------- */
.cs-header {
  display: flex;
  justify-content: center;
  padding: 20px 16px 8px;
}
.cs-brand img {
  width: clamp(150px, 38vw, 220px);
  height: auto;
}

/* Hero ----------------------------------------------------------------- */
.cs-hero {
  text-align: center;
  padding: 18px 20px 4px;
  max-width: 680px;
  margin: 0 auto;
}
.cs-hero__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
}
.cs-hero__title {
  margin: 6px 0 4px;
  font-size: clamp(20px, 4.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}
.cs-hero__stats {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* Toolbar -------------------------------------------------------------- */
.cs-toolbar {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
}
.cs-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
}
.cs-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cs-toggle button[aria-selected="true"] {
  background: var(--pink);
  color: #fff;
}

/* Layout containers ---------------------------------------------------- */
.cs-stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Gallery -------------------------------------------------------------- */
.cs-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  scrollbar-width: none;
}
.cs-gallery::-webkit-scrollbar { display: none; }
.cs-card {
  scroll-snap-align: center;
  flex: 0 0 100%;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: center;
}
.cs-card__imgbox,
.cs-detail__imgbox {
  position: relative;
  background: #0f0f0f;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Gallery image is height-driven so the whole card stays in the viewport. */
.cs-card__imgbox {
  aspect-ratio: auto;
  width: 100%;
  height: clamp(150px, calc(100vh - 430px), 460px);
  height: clamp(150px, calc(100dvh - 430px), 460px);
}
.cs-card__imgbox img,
.cs-detail__imgbox img {
  width: auto;
  height: auto;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  object-fit: contain;
  object-position: center;
  min-width: 0;
  min-height: 0;
}
.cs-noimg {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.cs-card__title {
  margin: 12px 0 3px;
  font-size: 17px;
  font-weight: 600;
}
.cs-card__sub {
  margin: 0;
  font-size: 13px;
  color: var(--pink);
}
.cs-card__owned {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* Quantity badge ------------------------------------------------------- */
.cs-qty {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Gallery nav */
.cs-galnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 0 6px;
}
.cs-galnav button {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
}
.cs-galnav button:disabled { opacity: 0.3; cursor: default; }
.cs-galnav__count {
  font-size: 12px;
  color: var(--dim);
  min-width: 64px;
  text-align: center;
}

/* Grid ----------------------------------------------------------------- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-bottom: 24px;
}
@media (max-width: 420px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
.cs-tile {
  position: relative;
  margin: 0;
  background: var(--card-2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.cs-tile img,
.cs-tile__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #0f0f0f;
}
.cs-tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}
.cs-tile__title {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-tile__sub { font-size: 11px; color: var(--pink); }

/* Authentic badge ------------------------------------------------------ */
.cs-authentic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 20, 140, 0.22);
  border: 1px solid var(--pink);
}

/* Detail overlay ------------------------------------------------------- */
.cs-detail {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.96);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}
.cs-detail[hidden] { display: none; }
.cs-detail__bar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
}
.cs-detail__close {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
}
.cs-detail__body {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 60px;
  width: 100%;
  text-align: center;
}
.cs-detail__title {
  margin: 18px 0 4px;
  font-size: 22px;
  font-weight: 700;
}
.cs-detail__sub {
  margin: 0;
  font-size: 14px;
  color: var(--pink);
}
.cs-detail__desc {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
  white-space: pre-wrap;
}
.cs-detail__rows {
  margin-top: 22px;
  background: var(--card);
  border-radius: 14px;
  text-align: left;
}
.cs-row__link {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
}
.cs-row__link:hover { text-decoration: underline; }
.cs-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
}
.cs-row:last-child { border-bottom: 0; }
.cs-row span:first-child { color: var(--dim); }
/* From the owner ------------------------------------------------------- */
.cs-owner {
  margin-top: 22px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  text-align: left;
}
.cs-owner__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.cs-owner__condrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px;
}
.cs-owner__condlabel { color: var(--dim); }
.cs-condpill {
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
}
.cs-owner__notes {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
}
.cs-owner__photos {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cs-owner__photoBtn {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 10px;
}
.cs-owner__photoBtn:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.cs-owner__photo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--card-2);
}
.cs-detail__cta {
  display: inline-block;
  margin-top: 24px;
  text-decoration: none;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 12px;
}

.cs-detail--single {
  position: static;
  inset: auto;
  background: transparent;
  display: block;
  z-index: auto;
  overflow: visible;
}
.cs-detail--single .cs-detail__bar {
  display: none;
}
.cs-detail--single .cs-detail__body {
  max-width: 720px;
  padding: 0 16px 8px;
}

/* Sticky CTA ----------------------------------------------------------- */
.cs-cta {
  flex-shrink: 0;
  z-index: 40;
  background: rgba(11, 11, 11, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.cs-cta__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}
.cs-cta__text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cs-cta__btn {
  flex: 0 0 auto;
  text-decoration: none;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Empty / missing ------------------------------------------------------ */
.cs-empty,
.cs-missing {
  text-align: center;
  color: var(--dim);
}
.cs-missing {
  max-width: 480px;
  margin: 12vh auto 0;
  padding: 0 24px;
}
.cs-missing h1 { font-size: 22px; color: var(--fg); }
.cs-missing p { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }

/* Photo viewer --------------------------------------------------------- */
.cs-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 6, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cs-photo-viewer[hidden] { display: none; }
.cs-photo-viewer__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
}
.cs-photo-viewer__frame {
  width: min(92vw, 920px);
  max-height: min(88vh, 920px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px;
}
.cs-photo-viewer__image {
  width: 100%;
  max-height: calc(min(88vh, 920px) - 36px);
  object-fit: contain;
  border-radius: 12px;
  background: #090909;
}

/* Band covers keep the image silhouette separate from the stacked sheets. */
.cs-grid { gap: 24px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 680px) { .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-tile { background: transparent; overflow: visible; min-width: 0; }
.cs-tile figcaption { align-items: center; text-align: center; padding: 10px 0 0; }
.cs-tile__title { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.cs-tile__image { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #0f0f0f; }
.cs-tile__image img { width: 100%; height: 100%; object-fit: contain; }
.cs-band-cover { position: relative; isolation: isolate; }
.cs-band-cover--stacked { margin-bottom: 12px; }
.cs-band-cover--stacked::before,
.cs-band-cover--stacked::after {
  content: "";
  position: absolute;
  inset: 0 8px -6px;
  border-radius: 12px;
  background: #303030;
  z-index: -1;
}
.cs-band-cover--stacked::before { inset: 0 16px -12px; background: #202020; }
.cs-band-grid { margin-top: 24px; }
.cs-card:focus-visible, .cs-tile:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.cs-card:hover .cs-band-cover, .cs-tile:hover .cs-band-cover { filter: brightness(1.08); }
.cs-compare-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; }
.cs-photo-switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #171717;
}
.cs-photo-switch__option {
  appearance: none;
  min-height: 44px;
  min-width: 116px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.cs-photo-switch__option:hover { background: var(--card-2); color: var(--fg); }
.cs-photo-switch__option[aria-pressed="true"] { background: var(--pink); color: #090909; font-weight: 700; }
.cs-photo-status { margin: 0; font-size: 12px; color: var(--muted); }
.cs-photo-pager { cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.cs-photo-pager.is-dragging { cursor: grabbing; }
.cs-photo-pager img { -webkit-user-drag: none; }
.cs-photo-pager:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.cs-compare, .cs-detail__back {
  appearance: none;
  font: inherit;
  font-size: 13px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 4px;
  cursor: pointer;
}
.cs-detail__back { margin-right: auto; text-decoration: none; }
.cs-compare[hidden], .cs-detail__back[hidden] { display: none; }
.cs-detail__close, .cs-photo-viewer__close, .cs-galnav button { min-width: 44px; min-height: 44px; }
.cs-toggle button { min-height: 44px; }
.cs-detail__desc, .cs-owner__notes { text-wrap: pretty; }
.cs-detail__bar { position: sticky; top: 0; z-index: 2; background: rgba(6, 6, 6, 0.96); }
.cs-photo-viewer__frame { display: flex; flex-direction: column; align-items: center; }
.cs-photo-viewer__frame .cs-compare { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .cs-media, .cs-toggle button, .cs-photo-switch__option { transition: none; }
}

.cs-photo-dots { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 4px; }
.cs-photo-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.cs-photo-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.cs-photo-dots button[aria-pressed="true"] span { background: var(--fg); }
.cs-compare-row[hidden] { display: none; }
.cs-detail__imgbox { scroll-margin-top: 76px; }

/* Shared collection discovery */
.cs-discover-button, .cs-name-link {
  appearance: none; font: inherit; font-size: 13px; color: var(--fg);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  min-height: 44px; padding: 10px 16px; cursor: pointer;
}
.cs-name-link { color: var(--pink); }
.cs-discover-button:hover, .cs-name-link:hover { background: rgba(255, 20, 140, .14); }
.cs-discovery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0; }
.cs-global-search { display: block; margin: 20px auto; border-color: var(--pink); }
.cs-discovery { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--bg); }
.cs-discovery[hidden] { display: none; }
.cs-discovery__bar { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.cs-discovery__body { width: min(100%, 760px); margin: 0 auto; padding: 8px 24px 64px; }
.cs-discovery__title { font-size: 24px; margin: 0 0 24px; overflow-wrap: anywhere; }
.cs-search-label { display: block; font-size: 12px; color: var(--muted); }
.cs-discovery__input { display: block; margin-top: 8px; width: 100%; min-height: 48px; background: var(--card); color: var(--fg); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; }
.cs-discovery__status, .cs-discovery__context { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 16px 0 24px; }
.cs-discovery__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 32px 0 16px; }
.cs-discovery__names { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.cs-discovery__names button { flex-shrink: 0; white-space: nowrap; }
.cs-discovery__tile { appearance: none; display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--fg); font: inherit; text-align: center; cursor: pointer; }
.cs-discovery .cs-grid { gap: 16px; }
.cs-discovery__caption { display: block; padding: 10px 0 0; text-align: center; }
.cs-discovery .cs-tile__title { white-space: normal; overflow-wrap: anywhere; }
.cs-discovery .cs-tile__sub { overflow-wrap: anywhere; }
.cs-detail__close { min-width: 44px; min-height: 44px; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .cs-media { transition: none; } }

.cs-tile__image { position: relative; aspect-ratio: 1; background: #0f0f0f; }
.cs-image-error { position: relative; }
.cs-image-error > img.cs-media { opacity: 0; }
.cs-image-error::after { content: 'Photo unavailable'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--muted); font-size: 12px; text-align: center; }

.cs-discovery__bar { position: sticky; top: 0; z-index: 1; background: rgba(11, 11, 11, .96); }

/* A reserved photo surface shimmers until its image loads or fails. */
.cs-card__imgbox, .cs-detail__imgbox, .cs-tile__image,
.cs-photo-viewer__frame, .cs-owner__photoBtn { position: relative; overflow: hidden; }
:is(.cs-card__imgbox, .cs-detail__imgbox, .cs-tile__image, .cs-photo-viewer__frame, .cs-owner__photoBtn):has(> img.is-loading)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .09) 48%, transparent 72%);
  background-size: 240% 100%;
  opacity: 0;
  animation: cs-photo-shimmer 1.6s ease-in-out 120ms infinite;
}
@keyframes cs-photo-shimmer { from { opacity: 1; background-position: 140% 0; } to { opacity: 1; background-position: -140% 0; } }
@media (prefers-reduced-motion: reduce) {
  :is(.cs-card__imgbox, .cs-detail__imgbox, .cs-tile__image, .cs-photo-viewer__frame, .cs-owner__photoBtn):has(> img.is-loading)::before {
    animation: none;
    opacity: 1;
    background: rgba(255, 255, 255, .035);
  }
}

/* Collector identity is a separate tap target from the merch itself. */
.cs-discovery__piece { min-width: 0; }
.cs-discovery__piece > .cs-discovery__tile { width: 100%; }
.cs-collector { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--fg); padding: 6px 0; text-align: left; font: inherit; text-decoration: none; }
button.cs-collector { cursor: pointer; }
button.cs-collector:hover { color: var(--pink); }
.cs-collector__avatar { position: relative; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: rgba(255,20,140,.12); border: 1px solid rgba(255,20,140,.3); color: var(--pink); font-size: 11px; font-weight: 700; }
.cs-collector__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-collector__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cs-collector__name { font-size: 12px; overflow-wrap: anywhere; }
.cs-collector__label { color: var(--muted); font-size: 11px; }
.cs-collector__arrow { color: var(--pink); font-size: 22px; }
.cs-collector--detail { padding: 16px; margin: 24px 0; border: 1px solid var(--hairline); border-radius: 14px; background: var(--card); }
.cs-collector--detail .cs-collector__avatar, .cs-collector--hero .cs-collector__avatar { flex-basis: 44px; width: 44px; height: 44px; font-size: 16px; }
.cs-collector--detail .cs-collector__name, .cs-collector--hero .cs-collector__name { font-size: 16px; font-weight: 600; }
.cs-collector--hero { margin: 24px auto 0; }
.cs-collector__more { display: block; color: var(--muted); font-size: 11px; margin-left: 40px; }
.cs-grid > [hidden] { display: none; }
a:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }

/* Use the collection grid's container and gutters for its search controls. */
.cs-collection-search { margin: 24px auto; }
.cs-collection-search .cs-discovery__status { margin: 12px 0 0; }
.cs-collection-search .cs-empty { margin: 16px 0 0; }

/* Compact identity header and persistent global discovery access. */
.cs-share-nav { position: sticky; top: 0; z-index: 10; flex: 0 0 auto; background: rgba(11, 11, 11, .96); border-bottom: 1px solid var(--hairline); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cs-share-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.cs-share-nav__brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.cs-share-nav .cs-global-search { margin: 0; font-size: 12px; padding: 10px 12px; }
.cs-hero { padding: 20px 16px 8px; }
.cs-collector-heading { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cs-collector-heading > :is(h1, h2) { min-width: 0; margin: 0; overflow-wrap: anywhere; text-align: left; }
.cs-hero .cs-collector-heading { margin: 8px 0; }
.cs-collector-heading__icon { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; }
button.cs-collector-heading__icon { cursor: pointer; }
.cs-collector-heading__icon .cs-collector__avatar { flex-basis: 40px; width: 40px; height: 40px; font-size: 14px; }
.cs-discovery__body > .cs-collector-heading { justify-content: flex-start; margin-bottom: 24px; }
@media (max-width: 360px) { .cs-share-nav__brand { font-size: 11px; letter-spacing: 0; } .cs-share-nav .cs-global-search { font-size: 11px; padding-inline: 10px; } }

/* Discovery stays a plain pink text link, with a generous invisible tap target. */
.cs-share-nav .cs-discover-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--pink); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.cs-share-nav .cs-discover-link:hover { color: #ff65b5; background: transparent; }
a.cs-collector:hover { color: var(--pink); }
.cs-discovery__status[hidden] { display: none; }

/* One merchandise photo treatment across collection, gallery and detail views.
   Each photo fills its inner surface, with an even 8px outer inset. */
.cs-tile__image, .cs-card__imgbox, .cs-detail__imgbox {
  position: relative; background: #0f0f0f; border-radius: 20px; overflow: hidden;
}
.cs-tile__image { aspect-ratio: 3 / 4; }
.cs-detail__imgbox { aspect-ratio: 3 / 4; }
:is(.cs-tile__image, .cs-card__imgbox, .cs-detail__imgbox) > img {
  position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px);
  max-width: none; max-height: none; object-fit: cover; object-position: center; border-radius: 12px;
}
.cs-detail__imgbox > img { object-fit: contain; }
:is(.cs-tile__image, .cs-card__imgbox, .cs-detail__imgbox):has(> img.is-loading)::before {
  inset: 8px; border-radius: 12px;
}
.cs-band-cover--stacked::before, .cs-band-cover--stacked::after { border-radius: 20px; }
/* Full-size viewer follows the source ratio, preserving the whole image. */
.cs-photo-viewer__frame { width: fit-content; max-width: min(92vw, 920px); padding: 8px; border: 0; background: #0f0f0f; }
.cs-photo-viewer__image { width: auto; max-width: 100%; max-height: calc(min(88vh, 920px) - 16px); border-radius: 12px; }
.cs-owner__photoBtn { padding: 8px; background: #0f0f0f; border-radius: 20px; }
.cs-owner__photo { border-radius: 12px; }

/* A portrait photo card and its caption are separate visual surfaces. */
.cs-discovery__photo { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #0f0f0f; }
.cs-discovery__photo > .cs-tile__image { position: absolute; inset: 8px; width: auto; height: auto; aspect-ratio: auto; border-radius: 12px; overflow: hidden; }
.cs-discovery__photo > .cs-tile__image > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: inherit; }
.cs-discovery__tile:hover .cs-discovery__photo { background: #181818; }

.cs-discovery__photo > .cs-tile__image:has(> img.is-loading)::before { inset: 0; border-radius: 12px; }

/* The collector's ink lives behind the page, never behind an unprotected label. */
.cs-profile-backdrop { position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; overflow: hidden; z-index: -1; background: #000; }
.cs-profile-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .75; }
.cs-profile-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.58) 40%, #000 95%), linear-gradient(90deg, rgba(0,0,0,.5), transparent 25%, transparent 75%, rgba(0,0,0,.5)); }
body:has(> .cs-profile-backdrop) { position: relative; isolation: isolate; background: #000; }
body:has(> .cs-profile-backdrop) .cs-hero { background: transparent; }
@media (max-width: 680px) { .cs-profile-backdrop { height: 950px; } }

/* Demand belongs on detail, keeping collection cards focused on the merch. */
.cs-want-controls { display: grid; gap: 12px; margin: 24px 0; text-align: left; }
.cs-want-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cs-wanted { color: #ff009d; font-size: 18px; }
.cs-want-button { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; padding: 10px 16px; border: 1px solid #333; border-radius: 12px; background: #151515; color: #fff; font: inherit; cursor: pointer; }
.cs-want-button:hover { border-color: #ff009d; }
.cs-want-button--primary { min-height: 52px; background: #ff009d; border-color: #ff009d; color: #000; font-weight: 700; }
.cs-want-button:disabled { opacity: .55; cursor: wait; }
.cs-want-button:focus-visible, .cs-want-controls select:focus-visible, .cs-want-signin input:focus-visible { outline: 2px solid #ff009d; outline-offset: 3px; }
.cs-want-message { margin: 0; color: #bcbcbc; font-size: 14px; text-wrap: pretty; }
.cs-want-message:empty { display: none; }
.cs-want-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-want-state { display: grid; gap: 5px; min-width: 0; }
.cs-want-meta { font-size: 12px; color: var(--muted); }
.cs-want-main-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cs-want-main-actions > :is(a,button) { min-width: 104px; }
.cs-want-main > button, .cs-want-main-actions > :is(a,button) { white-space: nowrap; }
@media (max-width: 380px) {
  .cs-want-main { gap: 8px; }
  .cs-want-main > button, .cs-want-main-actions > :is(a,button) { padding-inline: 10px; min-width: 0; }
}
.cs-want-options { position: relative; }
.cs-want-options > summary { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; cursor: pointer; list-style: none; letter-spacing: 2px; }
.cs-want-options > summary::-webkit-details-marker { display: none; }
.cs-want-options > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.cs-want-options-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; gap: 8px; width: min(280px, 76vw); padding: 12px; border: 1px solid var(--hairline); border-radius: 16px; background: #191919; box-shadow: 0 12px 40px #0008; }
.cs-want-options:not([open]) > .cs-want-options-panel { display: none; }
.cs-want-options-panel .cs-want-button { width: 100%; justify-content: flex-start; text-align: left; background: transparent; border-color: transparent; }
.cs-want-options-panel .cs-want-button:hover { background: #ffffff0a; }
.cs-want-options-panel .cs-want-visibility { display: grid; gap: 8px; padding: 8px 12px; }
.cs-want-options-panel .cs-want-remove { color: #ff788e; }
.cs-want-account { display: grid; padding-top: 8px; border-top: 1px solid var(--hairline); }
.cs-discovery-actions > .cs-discover-button { border: 0; background: none; color: var(--muted); padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.cs-discovery-actions > .cs-discover-button:hover { color: var(--pink); }
.cs-want-visibility { display: flex; align-items: center; gap: 8px; color: #aaa; font-size: 14px; }
.cs-want-controls select { min-height: 44px; padding: 8px 12px; background: #151515; border: 1px solid #444; border-radius: 10px; color: #fff; font: inherit; }
.cs-want-signin { display: grid; gap: 16px; }
.cs-want-signin label { display: grid; gap: 8px; }
.cs-want-signin input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; background: #151515; color: #fff; border: 1px solid #444; border-radius: 12px; font: inherit; }
.cs-profile-tabs { display: flex; gap: 8px; margin: 0 auto 24px; padding-inline: 16px; width: 100%; max-width: 800px; }
.cs-profile-tabs button { flex: 1; }
.cs-profile-tabs [aria-selected="true"] { color: #ff009d; border-color: #ff009d; }
.cs-want-shelf { width: 100%; max-width: 768px; margin: auto; }
.cs-want-shelf[hidden] { display: none; }
.cs-toolbar[hidden], .cs-stage[hidden] { display: none; }
.cs-want-shelf[data-view="gallery"] .cs-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.cs-want-shelf[data-view="gallery"] .cs-discovery__tile { flex: 0 0 min(80%, 540px); scroll-snap-align: start; }
.cs-detail__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 32px; }
.cs-detail__footer > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; }
.cs-merch-info { text-align: left; }
.cs-merch-info dl { display: grid; gap: 6px; }
.cs-merch-info dt { color: var(--muted); font-size: 12px; margin-top: 12px; }
.cs-merch-info dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-app-handoff { width: min(480px, calc(100% - 48px)); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px; background: #151515; color: var(--fg); font: inherit; }
.cs-app-handoff::backdrop { background: #000b; }
.cs-app-handoff > :is(button,a,input) { width: 100%; margin-top: 12px; box-sizing: border-box; }
.cs-app-handoff p { color: var(--muted); line-height: 1.6; text-wrap: pretty; }

/* Public resource enhancements inherit the existing collection photo system. */
.cs-resource-tile { display: block; color: inherit; text-decoration: none; border-radius: 20px; }
.cs-resource-tile:focus-visible, .cs-resource-link:focus-visible, .cs-resource-links a:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.cs-resource-tile figcaption { display: block; margin-top: 12px; text-align: center; }
.cs-resource-links { max-width: 800px; padding: 8px 16px 16px; margin: 0 auto; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.cs-resource-links a, .cs-resource-link { color: var(--pink); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.cs-signals { max-width: 800px; padding: 24px 0; margin: 12px auto 0; border-top: 1px solid var(--hairline); }
.cs-signals h2 { font-size: 14px; font-weight: 600; margin: 0 0 20px; }
.cs-signals dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.cs-signals dl > div { display: flex; flex-direction: column-reverse; gap: 5px; }
.cs-signals dt { color: var(--muted); font-size: 12px; }
.cs-signals dd { margin: 0; font-size: 24px; font-weight: 600; }
.cs-signals__chart { display: block; width: 100%; height: 110px; overflow: visible; }
.cs-signals__chart path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.cs-signals__known { stroke: #b9b9b9; stroke-dasharray: 5 4; }
.cs-signals__want { stroke: var(--pink); }
.cs-signals__selection { display: block; font-size: 12px; color: var(--muted); }
.cs-signals__selection input { display: block; width: 100%; min-height: 44px; accent-color: var(--pink); }
.cs-signals__observation, .cs-signals__note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.cs-signals__retry { min-height: 44px; color: var(--pink); border: 0; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.cs-signals__skeleton { height: 140px; border-radius: 12px; background: var(--card); animation: cs-skeleton 1.5s ease-in-out infinite alternate; }
@keyframes cs-skeleton { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .cs-signals__skeleton { animation: none; } }

/* Single-item titles sit below the photo; retain one semantic page heading. */
.cs-hero--item { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-signals { text-align: left; }
.cs-signals__legend { display: flex; gap: 20px; font-size: 11px; color: var(--muted); }
.cs-signals__legend span:first-child::before { content: ''; display: inline-block; width: 16px; border-top: 2px dashed #b9b9b9; margin-right: 6px; vertical-align: middle; }
.cs-signals__legend span:last-child::before { content: ''; display: inline-block; width: 16px; border-top: 2px solid var(--pink); margin-right: 6px; vertical-align: middle; }
.cs-evidence h2, .cs-subject-collectors h2 { font-size: 16px; margin: 24px 0; }
.cs-evidence .cs-tile__title { display: block; margin-top: 12px; text-align: center; }
.cs-evidence, .cs-subject-collectors, .cs-subject-wanted { margin-bottom: 32px; }
.cs-subject-collectors .cs-collector { margin-block: 12px; }
.cs-subject-collectors[hidden], .cs-subject-wanted[hidden], .cs-stage[hidden] { display: none; }
@media (max-width: 360px) { .cs-profile-tabs button { font-size: 14px; padding-inline: 12px; } }
