:root {
  --ink: #323849;
  --teal: #435484;
  --orange: #98506a;
  --muted: #747985;
  font-size: 13px;
}
.card-offers,
.detail-offers {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.current-mode .offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dfe1e8;
  border-radius: 5px;
  background: #fff;
}
.offer-row-heading,
.offer-row-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  grid-column: 1 / -1;
}
.offer-row-price strong {
  font-size: 18px;
  color: #71334b;
  white-space: nowrap;
  line-height: 1.4;
}
.offer-row-price del {
  color: #737985;
  font-size: 11px;
  white-space: nowrap;
}
.sale-percent {
  background: #b2394b;
  color: white;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.current-mode .offer-row.is-cheapest {
  border-color: #79aa8b;
  background: #f0f8f2;
}
.cheapest-label {
  color: #24663d;
  font-size: 11px;
  font-weight: 700;
}
.store-buy {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6px;
  border: 1px solid #cbd0db;
  border-radius: 4px;
  font-weight: 700;
}
.offer-checked {
  grid-column: 1 / -1;
  color: #747985;
}
.comparison-result {
  font-size: 12px;
  font-weight: 700;
  color: #24663d;
}
.current-mode .card-offers {
  display: block;
  background: white;
  border: 1px solid #dfe1e8;
  border-radius: 5px;
  overflow: hidden;
}
.compact-offer {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 10px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  min-height: 42px;
  text-decoration: none;
  color: #323849;
  box-sizing: border-box;
}
.compact-offer + .compact-offer {
  border-top: 1px solid #e8e9ee;
}
.compact-offer:hover {
  background: #f5f3f7;
  text-decoration: none;
}
.compact-offer:focus-visible {
  outline: 2px solid #98506a;
  outline-offset: -2px;
}
.compact-offer.is-cheapest {
  background: #edf7ef;
  box-shadow: inset 3px 0 #43845a;
}
.compact-store {
  grid-column: 1;
  grid-row: 1;
  font-size: 11px;
  font-weight: 700;
}
.compact-store.dlsite {
  color: #394f79;
}
.compact-store.fanza {
  color: #8d354d;
}
.compact-price {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.compact-price small {
  display: block;
  font-size: 9px;
  color: #747985;
  font-weight: 400;
}
.compact-original {
  display: block;
  color: #747985;
  font-size: 10px;
  font-weight: 400;
}
.compact-sale {
  grid-column: 1;
  grid-row: 2;
  color: #a52c43;
  font-weight: 700;
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}
.compact-arrow {
  color: #747985;
  font-size: 12px;
}
.compact-offer > [aria-hidden="true"] {
  grid-column: 3;
  grid-row: 1 / 3;
}
.offer-row[data-price-state="failed"],
.offer-row[data-price-state="stale"] {
  border-style: dashed;
  background: #faf9f6;
}
.offer-row:not([data-price-state="current"]) .offer-row-price strong {
  color: #626975;
}
/* Current-price ranking layout; retain the existing storefront palette and components. */
.current-mode .home-heading {
  display: block;
}
.current-mode .home-heading h1 {
  margin-bottom: 12px;
}
.current-mode .home-heading p {
  margin: 8px 0;
}
.current-mode #current-filters {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.current-mode #current-filters label {
  display: block;
  white-space: normal;
}
.current-mode .filter-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.current-mode .filter-group legend {
  margin-bottom: 8px;
  font-weight: 700;
}
.current-mode #current-filters .filter-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 5px;
  cursor: pointer;
}
.current-mode .filter-choice:has(input:checked) {
  color: #71334b;
  background: #f5e9ef;
  border-radius: 4px;
  font-weight: 700;
}
.current-mode .filter-choice input {
  accent-color: #98506a;
  margin: 0;
}
.current-mode .adult-entry {
  border: 1px solid #d6d9e3;
  border-radius: 6px;
  padding: 20px;
  margin: 16px 0;
  background: white;
}
.current-mode .adult-entry a {
  display: inline-block;
  margin: 12px;
}
.store-badge.exclusive {
  background: #e6f4eb;
  color: #24663d;
  border-color: #b8d9c4;
}
.current-mode .storefront-main > .shelf-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.current-mode .detail-main {
  overflow-wrap: anywhere;
}
.current-mode .detail-main .detail-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}
.detail-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 24vw, 250px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
}
.detail-shelf > .shop-card {
  min-width: 0;
  scroll-snap-align: start;
}
.detail-shelf:focus-visible {
  outline: 2px solid var(--teal);
}
.detail-shelf-controls {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
}
.detail-shelf-controls button {
  width: 36px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}
.detail-shelf-controls button:disabled {
  opacity: .25;
  cursor: default;
}
.detail-shelf-controls button:hover:not(:disabled) {
  background: var(--surface);
}
@media (prefers-reduced-motion: no-preference) {
  .detail-shelf {
    scroll-behavior: smooth;
  }
}
.detail-explore {
  margin-top: 16px;
}
.detail-ranking {
  margin-top: 24px;
}
.current-mode .detail-main > .shop-cover {
  max-width: 360px;
  height: auto;
}
.current-mode .current-detail-summary {
  display: grid;
  grid-template-columns: clamp(180px, 26vw, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1220px;
}
.current-mode .current-detail-summary:has(.offer-row:only-child) {
  max-width: 940px;
}
.current-mode .current-detail-summary .store-comparison {
  margin: 0;
}
.current-mode .current-cover {
  min-width: 0;
}
.current-mode .current-cover .shop-cover {
  width: 100%;
  height: auto;
  max-height: 255px;
  aspect-ratio: 4/3;
  object-fit: contain;
  object-position: left top;
}
@media (max-width: 600px) {
  .current-mode .current-detail-summary {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .current-mode .current-cover .shop-cover {
    max-height: 180px;
    object-position: center;
  }
  .current-mode .storefront-main > .shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .current-mode .store-comparison {
    overflow-x: auto;
  }
}
.shop-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #e8eaef;
  position: relative;
}
.shop-topline {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px 17px;
}
.shop-header .brand {
  font-size: 25px;
  letter-spacing: -1px;
  white-space: nowrap;
  color: #33426a;
  display: block;
}
.brand span {
  color: #4b5e93;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0;
  background: #947385;
  color: white;
  padding: 2px 3px;
  margin-left: 5px;
  border-radius: 2px;
}
.shop-header #global-search {
  display: flex;
  flex: 1;
  max-width: none;
  position: static;
  height: 38px;
}
.shop-header #search {
  border: 1px solid #cccfd7;
  border-radius: 3px 0 0 3px;
  background: white;
  color: #2f3648;
  width: 100%;
  padding: 0 12px;
}
.shop-header #global-search button {
  position: static;
  border: 0;
  background: #985c70;
  color: white;
  width: 44px;
  border-radius: 0 3px 3px 0;
}
.shop-quicknav {
  display: flex;
  gap: 24px;
}
.shop-quicknav a {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 10px;
  white-space: nowrap;
  gap: 0;
}
.shop-quicknav i {
  font-size: 20px;
  color: #5c6170;
}
.shop-quicknav b {
  color: #98506a;
}
.shop-departments {
  display: flex;
  align-items: center;
  gap: 25px;
  background: #f4f5f8;
  padding: 0 28px;
  border-bottom: 3px solid #7288c3;
  height: 34px;
  font-size: 12px;
}
.shop-departments .department-current {
  background: #6d83c0;
  color: white;
  padding: 6px 24px;
  font-weight: 700;
}
.shop-departments > a:last-child {
  margin-left: auto;
}
.shop-navigation {
  display: flex;
  gap: 28px;
  background: #f8f9fb;
  padding: 10px 28px;
  color: #616a84;
  font-size: 12px;
}
.shop-navigation a {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shop-navigation a[aria-current="page"] {
  color: #536cb1;
}
.shop-promotions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 6px clamp(14px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.shop-promotions a {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--teal);
  font-weight: 700;
}
.shop-notice {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 8px 28px;
  font-size: 11px;
  color: #7a7e88;
}
.shop-notice a {
  margin-left: auto;
  color: #526087;
}
.test-badge {
  background: #fff4df;
  color: #895d18;
  font-size: 10px;
  padding: 1px 6px;
}
.page-shell {
  max-width: 1920px;
  padding: 24px 28px 70px;
  margin: auto;
}
.is-home .page-shell {
  padding-top: 14px;
}
.storefront-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
}
.shop-sidebar {
  border: 1px solid #e4e6ed;
  align-self: start;
  font-size: 12px;
}
.shop-sidebar h2 {
  font-size: 12px;
  margin: 0;
  padding: 7px 10px;
  background: #eceef3;
  color: #57607b;
}
.shop-sidebar h2:first-child {
  background: #606a85;
  color: white;
}
.shop-sidebar > a {
  display: block;
  padding: 8px 10px;
  color: #5e6578;
}
.shop-sidebar > a:hover {
  background: #f4f5f9;
  color: #3f5696;
}
.shop-sidebar i {
  margin-right: 7px;
}
.shop-sidebar p {
  font-size: 10px;
  color: #828691;
  padding: 12px;
  border-top: 1px solid #eaecf0;
  margin: 8px 0 0;
}
.storefront-main {
  min-width: 0;
}
.shop-promos {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 12px;
}
.shop-promos > a {
  height: 190px;
  position: relative;
  overflow: hidden;
  display: block;
  background: #eff0f2;
}
.shop-promos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-promos a > div {
  position: absolute;
  inset: 0;
  padding: 17px;
  background: linear-gradient(90deg, #1b2234e8, #1b223410);
  color: white;
}
.shop-promos small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
}
.shop-promos strong {
  display: block;
  font-size: 24px;
  line-height: 1.5;
  margin: 9px 0 12px;
}
.shop-promos a > div > span {
  font-size: 11px;
  background: #ffffffeb;
  color: #3b4358;
  padding: 5px 9px;
}
.shop-promos .promo-budget {
  background: #f4eef1;
  padding: 17px;
  color: #705369;
  border: 1px solid #ebd5ad;
}
.promo-budget strong {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.promo-budget strong span {
  font-size: 20px;
}
.promo-budget p {
  margin: 5px 0 12px;
  font-size: 12px;
}
.promo-budget > span {
  font-size: 11px;
}
.shop-shortcuts {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0 28px;
}
.shop-shortcuts a {
  background: #f7f8fb;
  border: 1px solid #e1e4eb;
  color: #5f6985;
  font-size: 12px;
  padding: 7px 18px;
}
.home-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid #9fa8c3;
  padding-bottom: 5px;
  margin-bottom: 16px;
}
.home-heading h1 {
  font-size: 16px;
  margin: 0;
}
.home-heading p {
  font-size: 11px;
  color: #848997;
  margin: 0;
}
.shop-shelf {
  margin-bottom: 30px;
}
.shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edeff3;
  padding: 6px 10px;
}
.shelf-heading h2 {
  font-size: 13px;
  color: #505a76;
  margin: 0;
}
.shelf-heading a {
  font-size: 10px;
  color: #506398;
}
.shelf-caption {
  font-size: 10px;
  color: #828691;
  margin: 7px 10px 2px;
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding: 0 10px;
}
.shop-card {
  min-width: 0;
}
.shelf-rank {
  height: 29px;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  color: #747884;
}
.shelf-rank span {
  display: inline-block;
  min-width: 24px;
  border-bottom: 2px solid #e5e7ee;
}
.shop-card:nth-child(1) .shelf-rank span {
  color: #bd8b14;
  border-color: #efbc46;
}
.shop-card:nth-child(2) .shelf-rank span {
  color: #838898;
}
.shop-card:nth-child(3) .shelf-rank span {
  color: #ca7a47;
}
.shop-picture {
  display: block;
  overflow: hidden;
  background: #f1f2f5;
}
.shop-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.2s;
}
.shop-picture:hover img {
  transform: scale(1.04);
}
.shop-category {
  font-size: 9px;
  display: block;
  text-align: center;
  background: #f0f2f6;
  color: #535c74;
  border-radius: 10px;
  margin: 6px 0;
}
.shop-card h3 {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
  min-height: 36px;
  color: #495986;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-creator {
  font-size: 10px;
  color: #818aa2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-price {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 4px;
}
.shop-price strong {
  font-size: 15px;
  color: #98506a;
}
.shop-price del {
  font-size: 10px;
  color: #999ca5;
}
.shop-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 3px 0;
}
.shop-badges > span {
  background: #985c70;
  color: white;
  padding: 0 4px;
  font-size: 10px;
  font-weight: bold;
}
.shop-badges small {
  background: #fff0ba;
  color: #836329;
  font-size: 9px;
  padding: 0 4px;
}
.shop-record {
  font-size: 9px;
  color: #8d919d;
  margin: 4px 0;
}
.shop-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid #eff0f3;
  padding-top: 5px;
}
.shop-actions button {
  border: 0;
  background: white;
  font-size: 10px;
  color: #7c8190;
  padding: 2px 3px;
}
.shop-actions button[aria-pressed="true"] {
  color: #975b45;
  background: #f6edf1;
}
.home-guide {
  background: #f6f8fb;
  padding: 18px 20px;
  margin-top: 35px;
}
.home-guide h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
.home-guide > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.home-guide a {
  background: white;
  border: 1px solid #e3e6ee;
  padding: 14px;
  color: #4e5c82;
}
.home-guide a strong,
.home-guide a span {
  display: block;
}
.home-guide a span {
  font-size: 11px;
  color: #838997;
  margin-top: 4px;
}
.grid-workspace {
  grid-template-columns: 190px minmax(0, 1fr) !important;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px 22px;
  padding: 20px 8px;
}
.is-grid {
  overflow: visible !important;
}
.grid-workspace .results {
  border: 0;
  min-width: 0;
}
.page-intro h1 {
  font-size: 23px;
}
.page-intro {
  padding-bottom: 18px;
}
.results-toolbar {
  flex-wrap: wrap;
}
.sort-group button {
  border: 1px solid #dfe2ea;
  background: #fff;
  border-radius: 3px;
}
.sort-group button[aria-pressed="true"] {
  color: #4b5f94;
  background: #f2f4f8;
}
.footer {
  background: #f4f6f9;
  color: #757a8a;
  border-top: 1px solid #e3e5eb;
}
.footer-logo {
  color: #485475;
}
.shop-card a:hover {
  text-decoration: underline;
}
@media (min-width: 1700px) {
  .shop-promos > a {
    height: 225px;
  }
  .shelf-grid {
    gap: 28px;
  }
  .catalog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .shop-topline {
    gap: 18px;
    padding: 18px;
  }
  .shop-quicknav {
    gap: 14px;
  }
  .shop-quicknav a:last-child {
    display: none;
  }
  .storefront-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 16px;
  }
  .shop-promos > a {
    height: 165px;
  }
  .shop-promos strong {
    font-size: 20px;
  }
  .shop-promos .promo-budget strong {
    font-size: 34px;
  }
  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shop-navigation {
    gap: 20px;
  }
  .home-heading {
    display: block;
  }
  .home-heading p {
    margin-top: 4px;
  }
}
@media (max-width: 700px) {
  .shop-topline {
    flex-wrap: wrap;
    padding: 14px 14px 10px;
    gap: 12px;
  }
  .shop-header .brand {
    font-size: 22px;
  }
  .shop-quicknav {
    margin-left: auto;
    gap: 18px;
  }
  .shop-quicknav a {
    font-size: 9px;
  }
  .shop-header #global-search {
    order: 3;
    flex-basis: 100%;
    height: 36px;
  }
  .shop-departments {
    padding: 0 14px;
    gap: 0;
    height: 30px;
  }
  .shop-departments .department-current {
    padding: 4px 14px;
    font-size: 11px;
  }
  .shop-departments > span {
    display: none;
  }
  .shop-departments > a:last-child {
    font-size: 10px;
  }
  .shop-navigation {
    padding: 9px 14px;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 11px;
  }
  .shop-notice {
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 3px 8px;
    font-size: 9px;
  }
  .shop-notice a {
    display: none;
  }
  .test-badge {
    font-size: 9px;
  }
  .page-shell {
    padding: 16px 14px 80px;
  }
  .storefront-layout {
    display: block;
  }
  .shop-sidebar {
    display: none;
  }
  .shop-promos {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .shop-promos > a {
    height: 155px;
  }
  .shop-promos .promo-budget {
    display: none;
  }
  .shop-promos a > div {
    padding: 12px;
  }
  .shop-promos strong {
    font-size: 18px;
    margin: 9px 0 15px;
  }
  .shop-promos small {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .shop-promos a > div > span {
    font-size: 9px;
    padding: 5px;
  }
  .shop-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 10px 0 22px;
  }
  .shop-shortcuts a {
    text-align: center;
    padding: 6px;
    font-size: 10px;
  }
  .home-heading h1 {
    font-size: 15px;
  }
  .home-heading p {
    font-size: 10px;
  }
  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 0 3px;
  }
  .shelf-heading h2 {
    font-size: 12px;
  }
  .shelf-caption {
    font-size: 9px;
    margin-left: 3px;
  }
  .shop-card h3 {
    font-size: 11px;
  }
  .shop-price strong {
    font-size: 15px;
  }
  .home-guide > div {
    grid-template-columns: 1fr;
  }
  .grid-workspace {
    display: block !important;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    padding: 15px 3px;
  }
  .page-intro h1 {
    font-size: 19px;
  }
  .shop-cover {
    aspect-ratio: 4/3;
  }
  .results-toolbar .sort-group {
    flex-wrap: wrap;
  }
  .shop-record {
    font-size: 9px;
  }
  .shop-actions button {
    padding: 5px 3px;
  }
  .home-guide {
    padding: 15px;
  }
  .shop-shelf {
    margin-bottom: 24px;
  }
}

.shop-header .brand span {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.shop-notice .test-badge {
  display: inline-block;
}

/* Doujin Map palette: navy, dusty rose and cool white. Layout is shared across themes. */
:root {
  --ink: #2b303d;
  --teal: #2d395a;
  --orange: #985c70;
  --muted: #6a6d77;
  --line: #dcdee4;
  --surface: #f2f4ec;
  background: #f8f8fb;
}
.shop-header {
  background: #ffffff;
  border-color: #e3e6dc;
}
.shop-header .brand,
.brand span {
  color: #2d395a;
}
.shop-header #search {
  background: #fff;
  border-color: #cbced7;
  color: #2b303d;
}
.shop-header #global-search button {
  background: #ad7285;
}
.shop-departments {
  background: #eef2e7;
  border-color: #a6adbf;
}
.shop-departments .department-current {
  background: #2d395a;
}
.shop-navigation {
  background: #f6f6ee;
  color: #5d6270;
}
.shop-navigation a[aria-current="page"] {
  color: #2d395a;
  font-weight: 700;
}
.shop-notice {
  background: #ffffff;
}
.shop-sidebar {
  background: #ffffff;
  border-color: #dce3d5;
}
.shop-sidebar h2 {
  background: #eaf0e2;
  color: #474d5d;
}
.shop-sidebar h2:first-child {
  background: #4a5061;
}
.shelf-heading {
  background: #eaf0e2;
}
.shelf-heading h2 {
  color: #404657;
}
.shop-category {
  background: #edf1e4;
  color: #535c74;
}
.shop-card h3,
.shelf-heading a,
.shop-creator,
.shop-notice a {
  color: #3d4660;
}
.shop-price strong {
  color: #98506a;
}
.shop-shortcuts a {
  background: #f2f4ea;
  border-color: #dce3d1;
  color: #4e5567;
}
.home-guide,
.footer {
  background: #f0f2e9;
}
.home-guide a {
  background: #ffffff;
  border-color: #dce3d5;
  color: #3d4660;
}
.home-heading {
  border-color: #9fa6b9;
}
.footer-logo {
  color: #2d395a;
}
.button.primary,
.tabs button[aria-pressed="true"] {
  background: #2d395a;
  border-color: #2d395a;
}
.button.primary:hover {
  background: #222b46;
}
.shop-quicknav b {
  color: #98506a;
}

/* Selected palette 04 */
:root {
  --ink: #30394c;
  --teal: #303c56;
  --orange: #985c70;
  --muted: #73788a;
  --line: #e1e2eb;
  --surface: #f1f1f6;
  background: #f8f8fb;
}
.shop-header .brand,
.brand span,
.footer-logo {
  color: #303c56;
}
.shop-departments .department-current,
.button.primary,
.tabs button[aria-pressed="true"] {
  background: #303c56;
  border-color: #303c56;
}
.button.primary:hover {
  background: #252e43;
}
.shop-header #global-search button {
  background: #ad7285;
}
.shop-departments {
  background: #eeeff5;
  border-color: #b4bacd;
}
.shop-navigation {
  background: #f4f4f8;
  color: #626b81;
}
.shop-navigation a[aria-current="page"] {
  color: #303c56;
}
.shop-sidebar h2:first-child {
  background: #4b536c;
}
.shop-sidebar h2,
.shelf-heading {
  background: #eeeef5;
}
.shelf-heading h2,
.shop-sidebar h2 {
  color: #4b536c;
}
.shop-category {
  background: #f4eaf0;
  color: #895e73;
}
.shop-card h3,
.shelf-heading a,
.shop-creator,
.shop-notice a {
  color: #4a5774;
}
.shop-price strong,
.shop-quicknav b {
  color: #98506a;
}
.shop-badges > span {
  background: #985c70;
}
.shop-shortcuts a {
  background: #f4f1f5;
  border-color: #e4dce5;
  color: #7f6377;
}
.home-heading {
  border-color: #b8b9cc;
}
.home-guide,
.footer {
  background: #eeeef4;
}
.brand small {
  background: #ad7285;
}

/* Keep official cover art uncropped regardless of its original aspect ratio. */
.shop-cover {
  object-fit: contain;
  background: #f1f1f6;
}

img[data-work-cover] {
  object-fit: contain;
  background: #f1f1f6;
}

.category-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.category-links > a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 23px 18px;
  border: 1px solid #dddfe9;
  background: white;
  border-top: 3px solid #303c56;
}
.category-links > a:nth-child(2) {
  border-top-color: #ad7285;
}
.category-links > a:nth-child(3) {
  border-top-color: #9d90ad;
}
.category-links > a > i:first-child {
  font-size: 27px;
  color: #68738b;
}
.category-links h2 {
  font-size: 17px;
  margin: 0;
  color: #303c56;
}
.category-links p {
  font-size: 11px;
  color: #7b8190;
  margin: 4px 0 0;
}
.category-links strong {
  font-size: 26px;
  margin-left: auto;
  color: #303c56;
  white-space: nowrap;
}
.category-links small {
  font-size: 10px;
  margin-left: 3px;
  font-weight: 400;
}
.category-links > a > i:last-child {
  font-size: 11px;
  color: #8d93a2;
}
@media (max-width: 1100px) {
  .category-links {
    grid-template-columns: 1fr;
  }
  .category-links > a {
    padding: 14px 18px;
  }
  .category-links p {
    display: none;
  }
}
@media (max-width: 700px) {
  .category-links {
    gap: 7px;
  }
  .category-links h2 {
    font-size: 15px;
  }
  .category-links strong {
    font-size: 22px;
  }
  .category-links > a {
    padding: 12px 14px;
  }
  .category-links > a > i:first-child {
    font-size: 22px;
  }
}

.store-comparison {
  margin: 24px 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #dedfe5;
  border-radius: 8px;
}
.store-comparison h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.store-comparison > p {
  font-size: 14px;
  line-height: 1.8;
}
.store-comparison table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.store-comparison th,
.store-comparison td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #e6e7ed;
}
.store-comparison thead {
  background: #f4f4f8;
  color: #4b5265;
}
.store-comparison small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.store-best {
  color: #7e4257;
}
.store-unknown {
  color: #62697a;
}
@media (max-width: 600px) {
  .store-comparison {
    padding: 14px;
  }
  .store-comparison th,
  .store-comparison td {
    padding: 12px 6px;
    font-size: 12px;
  }
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0 6px;
}
.store-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #d6d9e3;
}
.store-badge small {
  font-size: 9px;
  font-weight: 400;
}
.store-badge.fanza {
  background: #fbf0f2;
  color: #8d354d;
}
.store-badge.dlsite {
  background: #edf1f8;
  color: #394f79;
}
.store-badge.unavailable {
  background: #f5f5f7;
  color: #747987;
  border-style: dashed;
}
.listing-price-label {
  display: block;
  font-size: 11px;
  color: #565f72;
  line-height: 1.6;
  margin: 2px 0 7px;
}

/* Crawlable catalogue pages use the same cards as the interactive storefront. */
.age-image-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  color: #626975;
  background: #f0f1f5;
  font-size: 12px;
  text-align: center;
}
.seo-context {
  margin-bottom: 20px;
}
.seo-context p {
  line-height: 1.8;
}
.seo-links,
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.seo-links a,
.catalog-pagination a {
  padding: 8px 12px;
  border: 1px solid #d8dce5;
  border-radius: 5px;
  background: #fff;
}
.seo-links a[aria-current="page"] {
  color: #fff;
  background: #303c56;
}
.catalog-pagination {
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.seo-related {
  margin-top: 36px;
  border-top: 1px solid #d8dce5;
  padding-top: 20px;
}
.creator-directory {
  list-style: none;
  padding: 0;
}
.creator-directory li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid #e0e3ea;
  padding: 12px 0;
}
.seo-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.seo-metrics div {
  background: #f1f2f6;
  padding: 16px;
  border-radius: 6px;
}
.seo-metrics dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.price-example-scroll {
  overflow-x: auto;
  margin: 20px 0;
}
.price-examples {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-examples th,
.price-examples td {
  padding: 12px;
  border: 1px solid #d8dce5;
  text-align: left;
  vertical-align: top;
}
.price-examples thead {
  background: #f1f2f6;
}
.price-examples small {
  display: block;
  color: #626975;
  font-size: 11px;
  min-width: 130px;
}
.price-examples caption {
  text-align: left;
  margin: 8px 0;
}

.shop-sidebar > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-left: 4px solid transparent;
}
.shop-sidebar > a[aria-current="page"],
.shop-sidebar > a[aria-current="page"]:hover {
  border-left-color: #a8c7a0;
  background: #303c56;
  color: #fff;
  font-weight: 700;
}
.current-nav-label {
  flex: none;
  font-size: 9px;
  font-weight: 400;
  padding: 1px 4px;
  background: #ffffff24;
  border-radius: 3px;
}
.shop-navigation a[aria-current="page"] {
  background: #e7eaf1;
  box-shadow: inset 0 -3px 0 #303c56;
  font-weight: 700;
}

.price-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
.price-entry-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 175px;
  padding: 8px 14px;
  border: 1px solid #d3d9e3;
  border-radius: 6px;
  background: #fff;
}
.price-entry-links a:hover,
.price-entry-links a[aria-current="page"] {
  border-color: #435484;
  background: #edf0f6;
}
.price-entry-links small {
  color: #626975;
  font-size: 12px;
}
.search-scope {
  padding: 12px;
  background: #edf0f6;
  border-left: 3px solid #435484;
}

.seo-context p {
  margin: 6px 0;
  line-height: 1.6;
}
.ranking-overview > summary {
  cursor: pointer;
  padding: 8px 0;
}
.detail-creator a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-weight: 700;
}
.detail-creator span {
  font-size: 12px;
  font-weight: 400;
}
.detail-facts,
.detail-metadata {
  color: var(--muted);
  font-size: 12px;
}
.detail-metadata {
  margin: 8px 0 16px;
}
.detail-metadata summary {
  cursor: pointer;
}
.detail-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.detail-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d8dce5;
  border-radius: 5px;
  background: #fff;
  font-weight: 700;
}
.seo-related[id] {
  scroll-margin-top: 16px;
}
@media (max-width: 700px) {
  body:has(.detail-main) .shop-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
    gap: 8px;
  }
  body:has(.detail-main) .shop-header .brand {
    font-size: 18px;
  }
  body:has(.detail-main) .shop-quicknav {
    gap: 12px;
  }
  body:has(.detail-main) .shop-quicknav a:last-child,
  body:has(.detail-main) .shop-departments,
  body:has(.detail-main) .shop-notice {
    display: none;
  }
  body:has(.detail-main) #global-search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  body:has(.detail-main) .shop-promotions {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  body:has(.detail-main) .shop-promotions > * {
    flex-shrink: 0;
  }
  .detail-main > h1 {
    font-size: 21px;
    line-height: 1.5;
    margin: 10px 0;
  }
  .detail-main > .breadcrumb {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 12px;
  }
  .detail-main > .detail-creator,
  .detail-main > .detail-facts {
    margin: 4px 0;
  }
  .current-mode .detail-main .store-comparison {
    padding: 12px;
  }
  .current-mode .detail-main .detail-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .current-mode .detail-main .detail-offers:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .current-mode .detail-main .offer-row {
    padding: 8px;
    min-width: 0;
  }
  .detail-main .offer-row small {
    grid-column: 1 / -1;
    font-size: 10px;
    line-height: 1.5;
  }
  .detail-main .store-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 4px;
  }
  .detail-main .detail-jumps a {
    padding: 0 8px;
    font-size: 12px;
  }
  .current-mode .detail-main .current-cover .shop-cover {
    max-height: 110px;
  }
  .current-mode .detail-main .current-detail-summary {
    gap: 12px;
  }
  .detail-main .detail-explore {
    gap: 8px;
    margin: 12px 0;
  }
  .detail-main .seo-related {
    margin-top: 24px;
    padding-top: 16px;
  }
}
@media (max-width: 700px) {
  .ranking-overview + .seo-links {
    gap: 6px;
    margin: 6px 0 12px;
  }
  .ranking-overview + .seo-links a {
    padding: 6px 10px;
  }
}
.analytics-choice {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid #b8bdcb;
  border-radius: 10px;
  background: #fff;
  color: #26344a;
  box-shadow: 0 4px 24px #19223824;
  font-size: 13px;
}
.analytics-choice[hidden] { display: none; }
.analytics-choice p { margin: 0 0 12px; }
.analytics-choice a { margin-left: 8px; text-decoration: underline; }
.analytics-choice div { display: flex; gap: 10px; }
.analytics-choice button, .footer [data-analytics-settings] {
  padding: 7px 12px;
  border: 1px solid #b8bdcb;
  border-radius: 4px;
  background: #fff;
  color: #26344a;
  cursor: pointer;
  font: inherit;
}
.analytics-choice [data-analytics-choice="yes"] { background: #303c56; color: #fff; }
/* Observed-price tools on work pages; shared by SSR and client rendering. */
.purchase-scope { margin: 12px 0; font-size: .88rem; }
.purchase-scope summary { cursor: pointer; }
.purchase-scope p { max-width: 75ch; line-height: 1.7; }
.purchase-context { padding: 16px; margin: 20px 0; border: 1px solid #d7dbe5; border-radius: 8px; background: #fff; }
.purchase-context summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.purchase-context summary small { display: inline-block; margin-left: 12px; font-size: .8rem; font-weight: 400; color: #566079; }
.purchase-context p { line-height: 1.7; }
.price-alternatives { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; padding: 0; list-style: none; }
.price-alternatives li { border-top: 2px solid #ded6dc; padding-top: 10px; min-width: 0; }
.price-alternatives a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-alternatives strong, .price-alternatives small { display: block; margin-top: 6px; }
.price-alternatives small { font-size: .78rem; color: #566079; }
@media (max-width: 640px) {
  .purchase-context { padding: 12px; }
  .price-alternatives { grid-template-columns: 1fr; }
}
