/* SFW v23 · collection pages as a quiet shoujo comic anthology.
   Paint only: native artwork, gallery geometry and all controls stay intact. */
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)){
  --comic-collection-ink:#2c2c2c;
  --comic-collection-paper:#fffdfd;
  --comic-collection-pink:#f7c4da;
  --comic-collection-rose:#6a6a6a;
  --comic-collection-shadow:4px 4px 0 #f2bfd4,5px 5px 0 #383838;
  --comic-collection-tone:radial-gradient(circle,#60606019 .65px,transparent .85px);
}

/* The cover is an inked title panel. Pale screen tones soften its flat fill. */
html[data-sfw-comic="v23"] body.character-showcase .showcase-intro.gallery-atlas,
html[data-sfw-comic="v23"] body.sfw-homes-page .homes-intro.gallery-atlas{
  border-color:var(--comic-collection-ink)!important;
  border-radius:13px 13px 5px 5px!important;
  background-color:#2a2a2a!important;
  background-image:radial-gradient(circle,#f7c4da30 .65px,transparent .9px)!important;
  background-size:6px 6px!important;
  box-shadow:inset 0 3px 0 #f7c4da,4px 4px 0 #f2bfd4,5px 5px 0 #383838!important;
}
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .sfw-studio-intro.gallery-atlas{
  border-color:var(--comic-collection-ink)!important;
  border-radius:9px!important;
  background-color:#fff5fa!important;
  background-image:var(--comic-collection-tone)!important;
  background-size:7px 7px!important;
  box-shadow:var(--comic-collection-shadow)!important;
}
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .sfw-studio-intro.gallery-atlas h1{
  color:inherit!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-collection-cover{
  border-color:var(--comic-collection-ink)!important;
  border-radius:13px 13px 6px 6px!important;
  background-color:#f9dce9!important;
  background-image:var(--comic-collection-tone)!important;
  background-size:6px 6px!important;
  box-shadow:var(--comic-collection-shadow)!important;
}
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.sfw-studio-page:not(.sfw-updates-page)) .gallery-atlas__colophon{
  border-top-color:#919191!important;
  border-top-style:dashed!important;
}
html[data-sfw-comic="v23"] body.character-showcase .portrait-access-note{
  background:#fff5fa!important;
  border-color:#525252!important;
  border-bottom-style:solid!important;
  box-shadow:4px 4px 0 #f2bfd4,5px 5px 0 #383838!important;
}

/* White gutters and sharp printed borders establish the panel rhythm. */
html[data-sfw-comic="v23"] body.character-showcase .exhibition-card>a,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-card,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-card,
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .studio-collection-path,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-card{
  border-color:var(--comic-collection-ink)!important;
  border-radius:11px 11px 7px 7px!important;
  background-color:var(--comic-collection-paper)!important;
  box-shadow:var(--comic-collection-shadow)!important;
}
html[data-sfw-comic="v23"] body.character-showcase .exhibition-card[data-edition="collector"]>a{
  border-color:#454545!important;
  box-shadow:4px 4px 0 #eaa3c1,5px 5px 0 #2c2c2c!important;
}
html[data-sfw-comic="v23"] body.character-showcase .exhibition-card>a:is(:hover,:focus-visible),
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .studio-collection-path:is(:hover,:focus-visible){
  border-color:#565656!important;
  box-shadow:4px 4px 0 #eeacc9,5px 5px 0 #383838!important;
  transform:none!important;
}

/* Hairline inner frames never alter the image's size, position or crop. */
html[data-sfw-comic="v23"] body.character-showcase .r3-portrait-frame,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-art,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-art,
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .studio-collection-path__visual,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-card__image-link{
  border-color:#4f4f4f!important;
  outline:1px solid #4f4f4f!important;
  outline-offset:-1px!important;
  background-color:#fff6fa!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-art>img{
  border-color:#696969!important;
}

/* Caption panels keep the text calm; the dot pattern is confined to one edge. */
html[data-sfw-comic="v23"] body.character-showcase .exhibition-card-copy,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-copy,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-card__copy,
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .studio-collection-path__copy,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-card__copy{
  background-color:#fffdfd!important;
  background-image:var(--comic-collection-tone)!important;
  background-repeat:repeat-x!important;
  background-size:6px 6px!important;
  background-position:left bottom!important;
}
html[data-sfw-comic="v23"] body.character-showcase .exhibition-card-copy>span,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-availability,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-card__purchase,
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .studio-collection-path__action{
  border-top-color:#8b8b8b!important;
  border-top-style:dashed!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-card__purchase{
  background-color:#fff4f9!important;
}

/* Edition and catalogue labels read like small, hand-cut paper stickers. */
html[data-sfw-comic="v23"] body.character-showcase .portrait-editorial-mark,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-status,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-art__stamp,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-art__caption,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-studio-badge{
  border-color:#4a4a4a!important;
  border-radius:4px 7px 4px 7px!important;
  background-color:#fff5fa!important;
  color:#434343!important;
  box-shadow:2px 2px 0 #e9b8cf!important;
}
html[data-sfw-comic="v23"] body.character-showcase .portrait-editorial-mark[data-edition="collector"],
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-card[data-edition="collector"] .sfw-studio-badge{
  background-color:#f2aecb!important;
  border-color:#434343!important;
  color:#2c2c2c!important;
  box-shadow:2px 2px 0 #606060!important;
}
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-card__topline>span:first-child,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-card__topline>span:first-child{
  color:#4f4f4f!important;
  text-shadow:1px 1px 0 #f7d9e6;
}

/* The reserved panels remain illustrated placeholders, not fabricated covers. */
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-art--reserved,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-placeholder{
  background-color:#fff1f7!important;
  background-image:radial-gradient(circle,#7b7b7b1f .7px,transparent .95px)!important;
  background-size:6px 6px!important;
}
html[data-sfw-comic="v23"] body.sfw-homes-page .house-release-card--rose .house-release-art--reserved,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-card--rose .npc-world-placeholder{
  background-color:#f8deea!important;
}
html[data-sfw-comic="v23"] body.sfw-homes-page .house-future-seal,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-placeholder-frame,
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-collection-cover__seal{
  border-color:#525252!important;
  background-color:#fffafd!important;
  box-shadow:3px 3px 0 #e8afc8,4px 4px 0 #525252!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-collection-cover__seal{
  outline-color:#8b8b8b!important;
  outline-style:dotted!important;
}
html[data-sfw-comic="v23"] body.sfw-homes-page .house-keytag{
  border-color:#2c2c2c!important;
  background-color:#f4bad4!important;
  box-shadow:3px 3px 0 #fff5fa,4px 4px 0 #2c2c2c!important;
}

/* Side stories get the same print finish without competing with the products. */
html[data-sfw-comic="v23"] body.sfw-homes-page .house-companion,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-detail-purchase,
html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .sfw-studio-note{
  background-color:#fbe6ef!important;
  background-image:var(--comic-collection-tone)!important;
  background-size:7px 7px!important;
  border-color:#86707e!important;
  border-radius:16px!important;
  box-shadow:3px 4px 0 #ecc4d8,4px 5px 0 #86707e!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-collection-index{
  background-color:#2a2a2a!important;
  background-image:radial-gradient(circle,#f7c4da25 .65px,transparent .9px)!important;
  background-size:7px 7px!important;
  border-color:#2c2c2c!important;
  border-radius:11px 11px 5px 5px!important;
  box-shadow:var(--comic-collection-shadow)!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-collection-index li{
  border-color:#b788a0!important;
  background-color:#2f2f2f!important;
  border-radius:4px!important;
}
html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-collection-index li.has-preview{
  border-color:#f7c4da!important;
  background-color:#f4c1d7!important;
  box-shadow:2px 2px 0 #7c7c7c!important;
}

/* Floating artwork remains full size, framed like an opened comic spread. */
html[data-sfw-comic="v23"] body.character-showcase #portrait-dialog,
html[data-sfw-comic="v23"] body.sfw-homes-page #house-image-dialog,
html[data-sfw-comic="v23"] body.npc-beautiful-page .world-folio-dialog,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-dialog{
  background-color:#fffafd!important;
  border-color:#2c2c2c!important;
  border-radius:10px!important;
  box-shadow:4px 4px 0 #f2bfd4,5px 5px 0 #2c2c2c!important;
}
html[data-sfw-comic="v23"] body.character-showcase .portrait-dialog-controls,
html[data-sfw-comic="v23"] body.npc-beautiful-page .world-folio-dialog__header,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-dialog__header{
  background-color:#f9deea!important;
  background-image:var(--comic-collection-tone)!important;
  background-size:6px 6px!important;
  border-bottom-color:#4d4d4d!important;
}
html[data-sfw-comic="v23"] body.character-showcase .portrait-scene[data-copy-placement="outside"] .portrait-scene__copy,
html[data-sfw-comic="v23"] body.sfw-homes-page .house-information,
html[data-sfw-comic="v23"] body.sfw-homes-page .homes-gallery,
html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-gallery{
  border-color:#525252!important;
  background-color:#fffafd!important;
  box-shadow:3px 3px 0 #eec3d6!important;
}
html[data-sfw-comic="v23"] body.character-showcase .portrait-dialog-rail button[aria-current="true"],
html[data-sfw-comic="v23"] body.sfw-homes-page .house-view-card[aria-pressed="true"],
html[data-sfw-comic="v23"] body:is(.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-folio-gallery__thumbnails button[aria-pressed="true"]{
  border-color:#4d4d4d!important;
  background-color:#f7d4e3!important;
  box-shadow:2px 2px 0 #dda7bf!important;
}

@media(max-width:600px){
  html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)){
    --comic-collection-shadow:2px 3px 0 #f2bfd4,3px 4px 0 #383838;
  }
  html[data-sfw-comic="v23"] body.character-showcase .exhibition-card[data-edition="collector"]>a{
    box-shadow:2px 3px 0 #eaa3c1,3px 4px 0 #2c2c2c!important;
  }
  html[data-sfw-comic="v23"] body.character-showcase #portrait-dialog,
  html[data-sfw-comic="v23"] body.sfw-homes-page #house-image-dialog,
  html[data-sfw-comic="v23"] body.npc-beautiful-page .world-folio-dialog,
  html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) .sfw-item-dialog{
    box-shadow:2px 2px 0 #f2bfd4,3px 3px 0 #2c2c2c!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-sfw-comic="v23"] body.character-showcase .exhibition-card>a,
  html[data-sfw-comic="v23"] body.sfw-studio-page:not(.sfw-updates-page) .studio-collection-path,
  html[data-sfw-comic="v23"] body.npc-beautiful-page .npc-world-art img{
    transition:none!important;
  }
}
@media(forced-colors:active){
  html[data-sfw-comic="v23"] body:is(.character-showcase,.sfw-homes-page,.npc-beautiful-page,.sfw-studio-page:not(.sfw-updates-page)) :is(.gallery-atlas,.npc-collection-cover,.exhibition-card>a,.house-release-card,.npc-world-card,.sfw-item-card,.studio-collection-path,.house-companion,.npc-collection-index,.portrait-editorial-mark,.npc-world-status){
    border-color:CanvasText!important;
    background-image:none!important;
    box-shadow:none!important;
  }
}
