:root {
  --ink: #323849;
  --teal: #435484;
  --orange: #98506a;
  --muted: #747985;
  font-size: 13px;
}
.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-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;
  }
}
