﻿:root {
  color-scheme: dark;
  --bg: #11100f;
  --panel: #1c1918;
  --panel-soft: #26211f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f1ed;
  --muted: #c9bbb3;
  --accent: #e6b15f;
  --accent-strong: #f0c879;
  --rose: #cf7d80;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(230, 177, 95, 0.13), transparent 32rem),
    linear-gradient(180deg, #141211 0%, #0d0d0d 100%);
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

body.age-gate-pending,
body.age-gate-active {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px;
}

.age-gate-pending .page-shell,
.age-gate-active .page-shell {
  opacity: 0;
  filter: none;
  pointer-events: none;
  user-select: none;
}

.age-verified .page-shell {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  min-width: 320px;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(230, 177, 95, 0.18), transparent 28rem),
    rgba(8, 8, 8, 0.94);
}

.age-gate-pending .age-gate,
.age-gate-active .age-gate {
  display: grid;
}

.age-verified .age-gate {
  display: none;
}

.age-gate-panel {
  width: min(100%, 540px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 24, 0.98);
  box-shadow: var(--shadow);
}

.age-gate-panel h1 {
  margin-top: 8px;
  font-size: clamp(1.75rem, 8vw, 2.8rem);
  line-height: 1.08;
}

.age-gate-copy {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.age-gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.age-gate-actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.age-gate-actions button:hover {
  transform: translateY(-1px);
}

.age-gate-enter {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1a1209 !important;
  border-color: transparent !important;
}

.age-gate-leave {
  background: rgba(255, 255, 255, 0.065);
}

.age-gate-leave:hover {
  border-color: rgba(207, 125, 128, 0.62);
  background: rgba(207, 125, 128, 0.18);
}

.site-header,
.notice-card,
.featured-card,
.latest-pixiv-card,
.pixiv-preview-card,
.free-card,
.store-section,
.pickup-section,
.works-section {
  margin-bottom: 18px;
}

.hero-image {
  aspect-ratio: 4096 / 1365;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #080808;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.avatar {
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.creator-name,
.tagline,
p,
h1,
h2 {
  margin: 0;
}

.creator-name {
  font-size: 1.55rem;
  font-weight: 800;
}

.tagline {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.93rem;
}

.language-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0 10px;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent);
  color: #1a1209;
}

.quick-links,
.button-grid,
.store-grid,
.work-links {
  display: grid;
  gap: 9px;
}

.quick-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.quick-links a,
.store-grid a,
.link-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.quick-links a:hover,
.store-grid a:hover,
.link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 200, 121, 0.72);
  background: rgba(240, 200, 121, 0.14);
}

.notice-card,
.featured-card,
.latest-pixiv-card,
.pixiv-preview-card,
.free-card,
.store-section,
.pickup-section,
.works-section,
.work-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 24, 0.9);
  box-shadow: var(--shadow);
}

.notice-card,
.latest-pixiv-card,
.pixiv-preview-card,
.free-card,
.store-section,
.pickup-section,
.works-section {
  padding: 18px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-card h1,
.featured-copy h2,
.latest-pixiv-card h2,
.pixiv-preview-card h2,
.free-card h2,
.store-section h2,
.works-section h2 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 6vw, 2.2rem);
  line-height: 1.18;
}

.notice-card p:not(.eyebrow),
.featured-copy p:not(.eyebrow),
.latest-pixiv-card p:not(.eyebrow),
.pixiv-preview-card p:not(.eyebrow),
.free-card p:not(.eyebrow),
.site-footer p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.75;
}

.notice-date {
  color: var(--accent-strong) !important;
  font-weight: 800;
}

.sale-notice {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-color: rgba(240, 200, 121, 0.34);
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 200, 121, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(78, 33, 24, 0.92), rgba(28, 25, 24, 0.94) 48%, rgba(35, 29, 22, 0.98));
}

.sale-notice::before {
  content: none;
}

.sale-notice > * {
  position: relative;
  z-index: 1;
}

.sale-notice h1 {
  margin: 0;
  max-width: min(100%, 22em);
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sale-offers {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sale-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  min-height: auto;
  padding: 8px 10px;
  border: 1px solid rgba(240, 200, 121, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sale-offer:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 200, 121, 0.8);
  background: rgba(240, 200, 121, 0.13);
}

.sale-store {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.sale-offer strong {
  white-space: nowrap;
  font-size: 0.98rem;
  line-height: 1.2;
}

.sale-offer small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sale-targets {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sale-target-group {
  display: grid;
  gap: 6px;
}

.sale-target-group h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.sale-lead,
.sale-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.sale-series-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sale-series-list li {
  padding: 4px 8px;
  border: 1px solid rgba(240, 200, 121, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffe6b5;
  font-size: 0.75rem;
  font-weight: 900;
}

.notice-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.featured-card {
  overflow: hidden;
}

.featured-card > * {
  min-width: 0;
}

.featured-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #080808;
}

.featured-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #080808;
}

.featured-copy {
  padding: 18px;
}

.button-grid {
  margin-top: 16px;
}

.featured-card .button-grid {
  grid-template-columns: 1fr;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.section-heading-row h2 {
  margin: 0;
}

.section-heading-row p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.pickup-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  align-content: start;
}

.pickup-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #080808;
  border-radius: 10px;
}

.card-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #080808;
  color: inherit;
  text-decoration: none;
}

.card-image-frame:focus-visible,
.featured-media-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.featured-media-link {
  color: inherit;
  text-decoration: none;
}

.pickup-card .card-image-frame {
  border-radius: 10px;
}

.card-image-frame img {
  display: block;
}

.archive-badges {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
  pointer-events: none;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid rgba(230, 177, 95, 0.38);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: #f2cf85;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.archive-badge.primary {
  background: linear-gradient(135deg, rgba(230, 177, 95, 0.95), rgba(190, 132, 52, 0.9));
  color: #1a1209;
  border-color: rgba(245, 211, 145, 0.7);
}

.archive-badge.format {
  border-color: rgba(242, 207, 133, 0.3);
  background: rgba(7, 7, 7, 0.82);
  color: #e7d7bd;
}

.work-card .archive-badge.format,
.pickup-card .archive-badge.format {
  min-height: 19px;
  padding: 1px 6px;
  border-color: rgba(242, 207, 133, 0.18);
  background: rgba(7, 7, 7, 0.58);
  color: rgba(231, 215, 189, 0.82);
  font-size: 0.6rem;
  font-weight: 700;
}

.pickup-card .archive-badge.format {
  font-size: 0.56rem;
}

.archive-badges.compact .archive-badge {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 0.62rem;
}

.pickup-card h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.75em;
  font-size: 0.96rem;
  line-height: 1.4;
}

.pickup-card p {
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.pickup-card .link-button {
  min-height: 34px;
  border-radius: 9px;
  font-size: 0.8rem;
}

.latest-pixiv-card {
  display: grid;
  gap: 14px;
  align-items: center;
}

.link-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1a1209;
  border-color: transparent;
}

.link-button.accent {
  background: rgba(207, 125, 128, 0.22);
  border-color: rgba(207, 125, 128, 0.55);
  color: #ffe8e8;
}

.pixiv-preview-card {
  display: grid;
  gap: 16px;
  background: rgba(31, 29, 29, 0.92);
}

.promptcom-preview-card {
  background:
    radial-gradient(circle at top left, rgba(230, 177, 95, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(31, 29, 29, 0.96), rgba(42, 34, 28, 0.92));
}

.reading-preview-card {
  background:
    radial-gradient(circle at top left, rgba(230, 177, 95, 0.12), transparent 34%),
    rgba(31, 29, 29, 0.92);
}

.preview-platform-tabs {
  margin-top: 2px;
}

.preview-platform-panel {
  display: grid;
  gap: 14px;
}

.preview-platform-panel[hidden] {
  display: none;
}

.preview-subcopy {
  display: grid;
  gap: 6px;
}

.preview-subcopy h3 {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.3;
}

.preview-subcopy p {
  margin: 0 !important;
  color: var(--muted);
  line-height: 1.7;
}

.pixiv-preview-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.pixiv-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.pixiv-tab.is-active {
  background: rgba(230, 177, 95, 0.88);
  color: #1a1209;
}

.pixiv-preview-panel[hidden] {
  display: none;
}

.pixiv-preview-links {
  display: grid;
  gap: 10px;
}

.pixiv-preview-item {
  display: grid;
  gap: 10px;
  align-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.pixiv-preview-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.preview-item-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.reading-preview-card .link-button {
  width: 100%;
}

.free-card {
  display: grid;
  gap: 14px;
}

.store-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.works-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  grid-auto-rows: auto;
  min-height: 0;
}

.work-card {
  overflow: hidden;
  background: rgba(38, 33, 31, 0.92);
}

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #080808;
}

.work-copy {
  padding: 14px;
}

.work-copy h3 {
  min-height: 3rem;
  margin: 0 0 12px;
  font-size: 1.03rem;
  line-height: 1.45;
}

.work-note {
  margin: -4px 0 12px;
  min-height: 4.8rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.65;
  white-space: pre-line;
}

.work-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-links .link-button {
  min-height: 38px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.site-footer {
  padding: 24px 4px 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.affiliate-banner {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 24, 0.68);
  text-align: center;
}

.affiliate-marketplaces {
  justify-items: stretch;
}

.affiliate-marketplace-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.affiliate-banner-copy {
  display: grid;
  gap: 5px;
}

.affiliate-banner h2,
.affiliate-banner p {
  margin: 0;
}

.affiliate-banner h2 {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.4;
}

.affiliate-banner-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.affiliate-banner-links {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 100%;
}

.affiliate-banner a {
  display: inline-flex;
  max-width: 100%;
  border-radius: 8px;
  opacity: 0.86;
  transition: opacity 160ms ease, transform 160ms ease;
}

.affiliate-banner a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.affiliate-banner img {
  width: 234px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .page-shell {
    padding: 24px;
  }

  .age-gate-panel {
    padding: 30px;
  }

  .age-gate-actions {
    grid-template-columns: 1fr 1fr;
  }

  .profile-row {
    grid-template-columns: auto 1fr auto;
  }

  .language-switch {
    grid-column: auto;
    min-width: 420px;
  }

  .quick-links,
  .store-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
    align-items: stretch;
  }

  .featured-media {
    min-height: 0;
  }

  .featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
  }

  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-offers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notice-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pixiv-preview-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .free-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .latest-pixiv-card {
    grid-template-columns: 1fr auto;
  }

  .affiliate-banner-links {
    grid-template-columns: minmax(0, auto);
    justify-content: center;
  }

  .affiliate-marketplaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }
}

.title-page .avatar-link {
  flex: 0 0 auto;
}

.title-page .language-switch {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: min(100%, 420px);
}

.detail-hero,
.detail-layout,
.gallery-section,
.related-section {
  margin-top: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(200px, 310px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(35, 31, 29, 0.95), rgba(19, 18, 17, 0.96));
  box-shadow: var(--shadow);
}

.cover-frame {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0b;
}

.cover-frame img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #050505;
}

.detail-badges {
  right: 10px;
  bottom: 10px;
  left: 10px;
}

.detail-badges .archive-badge {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  line-height: 1.22;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.quick-facts,
.sales-links,
.sample-gallery,
.related-grid {
  display: grid;
  gap: 8px;
}

.quick-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.quick-facts div,
.detail-panel,
.sample-gallery a,
.related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.quick-facts div,
.detail-panel {
  padding: 13px;
}

.quick-facts .fact-primary {
  border-color: rgba(230, 177, 95, 0.38);
  background: rgba(230, 177, 95, 0.08);
}

.quick-facts span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.quick-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.quick-facts div:not(.fact-primary) strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.sales-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.sales-button {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, #302d2b, #252220);
  font-weight: 800;
  font-size: 0.84rem;
}

.share-x-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(100%, 142px);
  padding: 0 13px;
  border: 1px solid rgba(230, 177, 95, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(39, 36, 34, 0.94), rgba(24, 22, 21, 0.95));
  color: rgba(247, 241, 237, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.share-x-icon {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: rgba(230, 177, 95, 0.16);
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1;
}

.share-x-button:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 177, 95, 0.52);
  background: linear-gradient(180deg, rgba(48, 44, 41, 0.96), rgba(29, 26, 24, 0.98));
  color: var(--text);
}

.sales-button.disabled {
  color: rgba(247, 241, 237, 0.46);
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
}

.description {
  white-space: pre-line;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.82;
}

.detail-panel h2,
.gallery-section h2,
.related-section h2 {
  margin-top: 0;
  font-size: clamp(1.18rem, 2.5vw, 1.7rem);
  line-height: 1.35;
}

.sidebar {
  display: grid;
  gap: 10px;
}

.phase-list,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  border: 1px solid rgba(230, 177, 95, 0.28);
  border-radius: 999px;
  background: rgba(230, 177, 95, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.sample-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.sample-gallery a,
.related-card {
  overflow: hidden;
  border-radius: 10px;
}

.sample-gallery img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #050505;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-detail-links {
  display: grid;
  gap: 8px;
}

.preview-links-panel h2 {
  font-size: 1.05rem;
}

.related-cover img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #050505;
}

.related-body {
  padding: 12px;
}

.related-body h3 {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.related-body p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.relation-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(207, 125, 128, 0.18);
  color: #ffe8e8;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .quick-facts,
  .sales-links,
  .sample-gallery,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .share-links {
    justify-content: flex-start;
  }

  .share-x-button {
    min-height: 36px;
    width: min(100%, 190px);
  }

  .title-page .language-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .language-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-button {
    min-height: 38px;
    font-size: 0.82rem;
    padding: 0 8px;
  }

  .pickup-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px;
  }

  .pickup-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    display: grid;
  }

  .pickup-card h3 {
    font-size: 0.98rem;
  }

  .pickup-card p {
    font-size: 0.82rem;
  }
}

.latest-pixiv-card,
.reading-preview-card,
.store-section {
  display: none !important;
}

