/*
 * Catalogue scenes
 * Page-local presentation for characters, magazine and store prototypes.
 */

.catalog-scene .catalog-hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--proto-header-height)));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  padding-block: clamp(58px, 7vw, 104px);
}

.catalog-scene .catalog-hero::before,
.catalog-scene .catalog-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.catalog-scene .catalog-hero::before {
  top: 8%;
  right: -4%;
  width: clamp(220px, 30vw, 470px);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--proto-pink) 13%, transparent);
  border-radius: 50%;
}

.catalog-scene .catalog-hero::after {
  bottom: 7%;
  left: -9%;
  width: clamp(170px, 22vw, 320px);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--proto-cyan) 16%, transparent);
  border-radius: 46% 54% 38% 62%;
  transform: rotate(14deg);
}

.catalog-scene .catalog-hero .hero-copy h1 {
  margin-block: 20px 24px;
  font-size: clamp(54px, 6.8vw, 104px);
  line-height: 0.94;
}

.catalog-scene .catalog-hero .hero-copy h1 mark {
  position: relative;
  z-index: 0;
  color: inherit;
  background: transparent;
  white-space: nowrap;
}

.catalog-scene .catalog-hero .hero-copy h1 mark::after {
  content: "";
  position: absolute;
  right: -0.08em;
  bottom: 0.04em;
  left: -0.08em;
  z-index: -1;
  height: 0.34em;
  background: var(--proto-yellow);
  border: 3px solid var(--proto-line);
  box-shadow: 3px 3px 0 var(--proto-shadow);
  transform: rotate(-1.4deg);
}

.catalog-scene--characters .catalog-hero .hero-copy h1 mark::after { background: var(--proto-pink); }
.catalog-scene--store .catalog-hero .hero-copy h1 mark::after { background: var(--proto-cyan); }

.catalog-scene .catalog-hero .hero-copy .section-copy {
  max-width: 650px;
  color: var(--proto-text);
  font-size: clamp(16px, 1.25vw, 20px);
}

.scene-tab-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  color: var(--proto-vivid-ink);
  background: var(--proto-yellow);
  border: 3px solid var(--proto-line);
  border-radius: 18px;
  box-shadow: var(--proto-shadow-md);
}

.scene-tab-strip a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 10px;
  min-height: 94px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease;
}

.scene-tab-strip a:nth-child(2) { background: var(--proto-pink-soft); }
.scene-tab-strip a:nth-child(3) { background: var(--proto-cyan); }
.scene-tab-strip a:nth-child(4) { background: var(--proto-lime); }
.catalog-scene--characters .scene-tab-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.catalog-scene--magazine .scene-tab-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.scene-tab-strip a:nth-child(5) { background: var(--proto-purple); }
.scene-tab-strip a:nth-child(6) { background: var(--proto-orange); }
.scene-tab-strip a + a { border-left: 3px solid var(--proto-line); }
.scene-tab-strip a:hover { filter: saturate(1.18) brightness(1.03); }
.scene-tab-strip a:active { transform: translateY(2px); }

.scene-tab-strip span {
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #fffdf8;
  border: 2px solid var(--proto-line);
  border-radius: 50%;
  font-family: var(--proto-mono);
  font-size: 10px;
  font-weight: 950;
}

.scene-tab-strip strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-tab-strip small {
  overflow: hidden;
  font-family: var(--proto-mono);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Character catalogue */
.character-preview {
  min-width: 0;
  overflow: hidden;
  color: var(--proto-vivid-ink);
  background: #fffdf8;
  border: 4px solid var(--proto-line);
  border-radius: 24px;
  box-shadow: var(--proto-shadow-lg);
  transform: rotate(0.7deg);
}

.character-preview__mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  color: #fff;
  background: #17141b;
  border-bottom: 3px solid var(--proto-line);
}

.character-preview__mast span,
.character-preview__mast strong {
  font-family: var(--proto-mono);
  line-height: 1.2;
}

.character-preview__mast span { font-size: 10px; }
.character-preview__mast strong { font-size: 12px; }

.character-preview__rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.character-preview__row {
  min-height: 105px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  overflow: hidden;
  background: var(--proto-pink-soft);
  border: 3px solid var(--proto-line);
  border-radius: 13px 13px 4px 4px;
  box-shadow: 0 5px 0 rgba(23, 20, 27, 0.88);
}

.character-preview__row--cyan { background: var(--proto-cyan); }
.character-preview__row--lime { background: var(--proto-lime); }
.character-preview__row--orange { background: var(--proto-orange); }

.character-preview__row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 14px 18px;
}

.character-preview__row small,
.character-preview__row span {
  font-family: var(--proto-mono);
  font-size: 9px;
  font-weight: 900;
}

.character-preview__row strong {
  overflow: hidden;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-preview__row img {
  width: 104px;
  height: 92px;
  padding: 8px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(3px 4px 0 rgba(23, 20, 27, 0.48));
}

.character-preview__note {
  margin: 0;
  padding: 13px 18px 16px;
  color: #fff;
  background: #17141b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
}

.family-ticket-grid,
.issue-passport-grid,
.product-contract-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.family-ticket {
  position: relative;
  min-height: 268px;
  padding: 24px;
  color: var(--proto-vivid-ink);
  background: var(--proto-pink-soft);
  border: 3px solid var(--proto-line);
  border-radius: 16px 16px 5px 5px;
  box-shadow: var(--proto-shadow-sm);
}

.family-ticket--cyan { background: var(--proto-cyan); }
.family-ticket--lime { background: var(--proto-lime); }
.family-ticket--orange { background: var(--proto-orange); }

.family-ticket__glyph {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  padding: 8px;
  background: #fffdf8;
  border: 2px solid var(--proto-line);
  border-radius: 12px;
  font-family: var(--proto-mono);
  font-size: 18px;
  line-height: 1;
}

.family-ticket img {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  padding: 10px;
  background: #fffdf8;
  border: 2px solid var(--proto-line);
  border-radius: 12px;
}

.family-ticket > span {
  display: block;
  font-family: var(--proto-mono);
  font-size: 9px;
  font-weight: 900;
}

.family-ticket h3 {
  margin: 8px 0 12px;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.family-ticket p { margin: 0; font-size: 13px; line-height: 1.65; }

.layer-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.layer-contract {
  position: relative;
  min-height: 280px;
  padding: clamp(24px, 3vw, 42px);
  color: var(--proto-vivid-ink);
  background: var(--proto-yellow);
  border: 4px solid var(--proto-line);
  border-radius: 22px;
  box-shadow: var(--proto-shadow-md);
}

.layer-contract--scene { background: var(--proto-cyan); }

.layer-contract > span {
  display: inline-flex;
  padding: 5px 9px;
  color: #fff;
  background: #17141b;
  border-radius: 999px;
  font-family: var(--proto-mono);
  font-size: 9px;
  font-weight: 900;
}

.layer-contract > strong {
  display: block;
  margin-top: 34px;
  font-family: var(--proto-mono);
  font-size: clamp(15px, 1.8vw, 25px);
}

.layer-contract h3 {
  margin: 10px 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.layer-contract p { max-width: 620px; margin: 0; line-height: 1.65; }

.character-c16-section .c16-grid--shelf { gap: 20px; }
.character-c16-section .c16-shelf-row { box-shadow: 0 9px 0 var(--proto-shadow); }
.character-c16-section .legend { margin-top: 30px; }

.c64-slot-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.c64-slot-contract article {
  min-width: 0;
  padding: 20px;
  color: var(--proto-vivid-ink);
  background: var(--proto-yellow);
  border: 3px solid var(--proto-line);
  border-radius: 14px;
  box-shadow: var(--proto-shadow-sm);
}

.c64-slot-contract article:nth-child(2) { background: var(--proto-cyan); }
.c64-slot-contract article:nth-child(3) { background: var(--proto-lime); }
.c64-slot-contract span {
  display: block;
  font-family: var(--proto-mono);
  font-size: 9px;
  font-weight: 900;
}
.c64-slot-contract strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 10px 0;
  font-family: var(--proto-mono);
  font-size: clamp(16px, 1.8vw, 23px);
}
.c64-slot-contract p { margin: 0; font-size: 12px; line-height: 1.55; }
.c64-text-section .notice-banner { margin-block: 26px; }
.c64-text-section .c64-shell { margin-top: 34px; }

/* Magazine wall */
.catalog-hero--magazine { grid-template-columns: minmax(0, 0.74fr) minmax(560px, 1.26fr); }

.cover-wall {
  position: relative;
  min-width: 0;
  min-height: 610px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
  color: var(--proto-vivid-ink);
  background-color: var(--proto-surface);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--proto-line) 48%, transparent) 1.2px, transparent 1.4px);
  background-size: 15px 15px;
  border: 4px solid var(--proto-line);
  border-radius: 25px;
  box-shadow: var(--proto-shadow-lg);
  transform: rotate(0.45deg);
}

.cover-wall figure { margin: 0; }

.cover-wall__cover {
  position: relative;
  z-index: 2;
  grid-column: 4 / 10;
  grid-row: 1 / 11;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(140deg, var(--proto-cyan), var(--proto-purple) 48%, var(--proto-pink));
  border: 3px solid var(--proto-line);
  border-radius: 20px;
  box-shadow: var(--proto-shadow-md);
}

.cover-wall__cover img {
  width: min(100%, 310px);
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(6px 8px 0 rgba(23, 20, 27, 0.48));
}

.cover-wall__cover figcaption {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 2px dotted var(--proto-line);
  font-family: var(--proto-mono);
  font-size: 9px;
}

.cover-wall__tile {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--proto-yellow);
  border: 3px solid var(--proto-line);
  border-radius: 13px;
  box-shadow: var(--proto-shadow-sm);
}

.cover-wall__tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(23, 20, 27, 0.34));
}

.cover-wall__tile figcaption {
  font-family: var(--proto-mono);
  font-size: 8px;
  font-weight: 900;
}

.cover-wall__tile--cards { grid-column: 1 / 4; grid-row: 1 / 6; background: var(--proto-lime); }
.cover-wall__tile--report { grid-column: 1 / 4; grid-row: 6 / 11; background: var(--proto-yellow); }
.cover-wall__tile--dashboard { grid-column: 10 / 13; grid-row: 4 / 9; background: var(--proto-cyan); }

.cover-wall__stamp {
  z-index: 3;
  grid-column: 10 / 13;
  grid-row: 1 / 4;
  align-self: center;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 10px;
  color: var(--proto-vivid-ink);
  background: var(--proto-pink);
  border: 3px solid var(--proto-line);
  clip-path: polygon(50% 0%, 61% 14%, 78% 6%, 82% 24%, 100% 27%, 89% 43%, 100% 57%, 82% 65%, 78% 84%, 61% 76%, 50% 100%, 39% 76%, 22% 84%, 18% 65%, 0% 57%, 11% 43%, 0% 27%, 18% 24%, 22% 6%, 39% 14%);
  font-family: var(--proto-mono);
  line-height: 1;
  transform: rotate(5deg);
}

.cover-wall__stamp span,
.cover-wall__stamp small { font-size: 8px; font-weight: 900; }
.cover-wall__stamp strong { font-size: clamp(32px, 4vw, 58px); }

.issue-passport {
  min-height: 230px;
  padding: 24px;
  color: var(--proto-vivid-ink);
  background: var(--proto-pink-soft);
  border: 3px solid var(--proto-line);
  border-radius: 15px 15px 5px 5px;
  box-shadow: var(--proto-shadow-sm);
}

.issue-passport:nth-child(2) { background: var(--proto-yellow); }
.issue-passport:nth-child(3) { background: var(--proto-cyan); }
.issue-passport:nth-child(4) { background: var(--proto-lime); }
.issue-passport span { font-family: var(--proto-mono); font-size: 9px; font-weight: 900; }
.issue-passport strong { display: block; margin: 28px 0 12px; font-size: clamp(21px, 2vw, 29px); line-height: 1.05; }
.issue-passport p { margin: 0; font-size: 13px; line-height: 1.6; }

.magazine-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.magazine-feature {
  min-width: 0;
  overflow: hidden;
  color: var(--proto-vivid-ink);
  background: var(--proto-pink-soft);
  border: 3px solid var(--proto-line);
  border-radius: 18px 18px 6px 6px;
  box-shadow: var(--proto-shadow-md);
}

.magazine-feature--cyan { background: var(--proto-cyan); }
.magazine-feature--lime { background: var(--proto-lime); }

.magazine-feature figure {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px;
  background: color-mix(in srgb, #fffdf8 72%, transparent);
  border-bottom: 3px solid var(--proto-line);
}

.magazine-feature figure img {
  width: min(100%, 210px);
  height: 178px;
  object-fit: contain;
  filter: drop-shadow(5px 6px 0 rgba(23, 20, 27, 0.4));
}

.magazine-feature > div { position: relative; padding: 26px; }
.magazine-feature__number {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--proto-mono);
  font-size: 24px;
  font-weight: 950;
}
.magazine-feature .section-kicker { padding: 5px 9px; font-size: 8px; box-shadow: none; }
.magazine-feature h3 { margin: 23px 0 12px; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -0.045em; }
.magazine-feature p:not(.section-kicker) { margin: 0; font-size: 13px; line-height: 1.65; }
.magazine-feature a { display: inline-block; margin-top: 22px; font-weight: 950; }

.magazine-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.magazine-topic {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  color: var(--proto-vivid-ink);
  background: var(--proto-pink-soft);
  border: 3px solid var(--proto-line);
  border-radius: 16px;
  box-shadow: var(--proto-shadow-sm);
}

.magazine-topic:nth-child(2),
.magazine-topic:nth-child(5) { background: var(--proto-cyan); }
.magazine-topic:nth-child(3),
.magazine-topic:nth-child(6) { background: var(--proto-lime); }
.magazine-topic > span { font-family: var(--proto-mono); font-size: 22px; font-weight: 950; }
.magazine-topic > strong { margin-top: 24px; font-size: 26px; line-height: 1; }
.magazine-topic p { margin: 12px 0 18px; font-size: 13px; line-height: 1.6; }
.magazine-topic small { margin-top: auto; padding: 4px 8px; background: #fffdf8; border: 2px solid var(--proto-line); border-radius: 999px; font-family: var(--proto-mono); font-size: 8px; font-weight: 900; }

.archive-card-grid,
.status-gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-card {
  min-height: 250px;
  padding: 26px;
  background: var(--proto-surface);
  border: 3px solid var(--proto-line);
  border-radius: 16px;
  box-shadow: var(--proto-shadow-md);
}

.archive-card:nth-child(2) { background: color-mix(in srgb, var(--proto-cyan) 28%, var(--proto-surface)); }
.archive-card:nth-child(3) { background: color-mix(in srgb, var(--proto-lime) 30%, var(--proto-surface)); }
.archive-card img { width: 48px; height: 48px; padding: 9px; background: var(--proto-yellow); border: 2px solid var(--proto-line); border-radius: 11px; }
.archive-card h3 { margin: 24px 0 10px; font-size: 23px; line-height: 1.1; }
.archive-card p { margin: 0; line-height: 1.65; }

/* Store journey */
.catalog-hero--store { grid-template-columns: minmax(0, 0.72fr) minmax(600px, 1.28fr); }

.starter-kit-stage {
  position: relative;
  min-width: 0;
  min-height: 610px;
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto;
  gap: 12px;
  padding: clamp(18px, 2.5vw, 32px);
  color: var(--proto-vivid-ink);
  background-color: var(--proto-surface);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--proto-line) 45%, transparent) 1.2px, transparent 1.4px);
  background-size: 15px 15px;
  border: 4px solid var(--proto-line);
  border-radius: 26px;
  box-shadow: var(--proto-shadow-lg);
  transform: rotate(0.4deg);
}

.starter-kit-stage__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  color: #fff;
  background: #17141b;
  border: 2px solid #17141b;
  border-radius: 999px;
  font-family: var(--proto-mono);
  font-size: 9px;
}

.starter-kit-stage figure { margin: 0; }

.starter-kit-stage__box {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 6px;
}

.starter-kit-stage__box img {
  width: min(100%, 470px);
  max-height: 335px;
  object-fit: contain;
  filter: drop-shadow(8px 10px 0 rgba(23, 20, 27, 0.48));
  transform: rotate(-1.5deg);
}

.starter-kit-stage__box figcaption {
  padding: 5px 9px;
  color: #fff;
  background: #17141b;
  border-radius: 999px;
  font-family: var(--proto-mono);
  font-size: 8px;
  font-weight: 900;
}

.starter-kit-stage__items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.starter-kit-stage__items figure {
  min-width: 0;
  min-height: 135px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 8px;
  background: var(--proto-pink-soft);
  border: 2px solid var(--proto-line);
  border-radius: 11px;
}

.starter-kit-stage__items figure:nth-child(2) { background: var(--proto-cyan); }
.starter-kit-stage__items figure:nth-child(3) { background: var(--proto-yellow); }
.starter-kit-stage__items figure:nth-child(4) { background: var(--proto-lime); }
.starter-kit-stage__items figure:nth-child(5) { background: var(--proto-purple); }

.starter-kit-stage__items img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(23, 20, 27, 0.34));
}

.starter-kit-stage__items figcaption {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  color: var(--proto-vivid-ink);
  background: var(--proto-yellow);
  border: 3px solid var(--proto-line);
  border-radius: 18px;
  box-shadow: var(--proto-shadow-md);
}

.journey-ribbon a {
  min-width: 0;
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
  transition: filter 150ms ease;
}

.journey-ribbon a + a { border-left: 3px solid var(--proto-line); }
.journey-ribbon a:nth-child(2) { background: var(--proto-pink-soft); }
.journey-ribbon a:nth-child(3) { background: var(--proto-cyan); }
.journey-ribbon a:nth-child(4) { background: var(--proto-green); }
.journey-ribbon a:nth-child(5) { background: var(--proto-purple); }
.journey-ribbon a:hover { filter: saturate(1.18) brightness(1.04); }
.journey-ribbon span,
.journey-ribbon small { font-family: var(--proto-mono); font-size: 8px; font-weight: 900; }
.journey-ribbon strong { overflow: visible; font-size: 17px; line-height: 1.2; text-overflow: clip; white-space: normal; }

.store-safety-notice { margin-top: 34px; }
.catalog-product-grid .product-card__asset { background: rgba(255, 253, 248, 0.7); border-style: solid; }
.catalog-product-grid .product-card__asset img { width: min(100%, 210px); max-height: 150px; }
.store-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.store-sample-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 30px);
  color: var(--proto-vivid-ink);
  background: var(--proto-yellow);
  border: 3px solid var(--proto-line);
  border-radius: 22px 22px 8px 8px;
  box-shadow: var(--proto-shadow-md);
}

.store-sample-card[data-tone="pink"] { background: var(--proto-pink-soft); }
.store-sample-card[data-tone="cyan"] { background: var(--proto-cyan); }
.store-sample-card[data-tone="lime"] { background: var(--proto-lime); }
.store-sample-card[data-tone="purple"] { background: var(--proto-purple); }

.store-sample-card > span:first-child {
  width: fit-content;
  padding: 5px 8px;
  color: #fff8fb;
  background: #17141b;
  border-radius: 6px;
  font-family: var(--proto-mono);
  font-size: 9px;
  font-weight: 900;
}

.store-sample-card img {
  width: 100%;
  height: 180px;
  margin: 18px 0;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(23, 20, 27, 0.18));
}

.store-sample-card h3 { margin: 0 0 9px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.13; }
.store-sample-card p { margin: 0; line-height: 1.55; }
.store-sample-price { display: block; margin: 20px 0 14px; padding-top: 14px; border-top: 2px dashed rgba(23, 20, 27, 0.68); font-size: 18px; }
.store-sample-card .button,
.store-sample-state { width: 100%; min-height: 44px; margin-top: auto; }
.store-sample-state { display: grid; place-items: center; padding: 9px 12px; background: rgba(255, 253, 248, 0.78); border: 2px solid var(--proto-line); border-radius: 999px; font-weight: 900; }

.product-contract {
  min-width: 0;
  padding: 24px;
  color: var(--proto-vivid-ink);
  background: var(--proto-pink-soft);
  border: 3px solid var(--proto-line);
  border-radius: 16px 16px 5px 5px;
  box-shadow: var(--proto-shadow-sm);
}

.product-contract--cyan { background: var(--proto-cyan); }
.product-contract--lime { background: var(--proto-lime); }
.product-contract--purple { background: var(--proto-purple); }
.product-contract > span { display: inline-flex; padding: 5px 9px; color: #fff; background: #17141b; border-radius: 999px; font-family: var(--proto-mono); font-size: 10px; font-weight: 900; }
.product-contract h3 { margin: 22px 0 18px; font-size: clamp(23px, 2vw, 31px); line-height: 1.05; letter-spacing: -0.045em; }
.product-contract dl { display: grid; gap: 10px; margin: 0; }
.product-contract dl > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 9px; padding-top: 9px; border-top: 1.5px solid rgba(23, 20, 27, 0.66); }
.product-contract dt,
.product-contract dd { margin: 0; font-size: 11px; line-height: 1.5; }
.product-contract dt { font-weight: 950; }
.product-contract dd { font-weight: 720; }

.status-gate {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  background: var(--proto-surface);
  border: 3px solid var(--proto-line);
  border-radius: 17px;
  box-shadow: var(--proto-shadow-md);
}

.status-gate:nth-child(2) { background: color-mix(in srgb, var(--proto-cyan) 28%, var(--proto-surface)); }
.status-gate:nth-child(3) { background: color-mix(in srgb, var(--proto-pink) 22%, var(--proto-surface)); }
.status-gate > strong { margin: 34px 0 12px; font-size: 28px; line-height: 1.05; }
.status-gate p { margin: 0; line-height: 1.65; }

/* Dark mode keeps the high-chroma catalogue cards legible. */
html[data-theme="dark"] .catalog-scene .scene-tab-strip,
html[data-theme="dark"] .catalog-scene .character-preview,
html[data-theme="dark"] .catalog-scene .family-ticket,
html[data-theme="dark"] .catalog-scene .layer-contract,
html[data-theme="dark"] .catalog-scene .c64-slot-contract article,
html[data-theme="dark"] .catalog-scene .cover-wall,
html[data-theme="dark"] .catalog-scene .issue-passport,
html[data-theme="dark"] .catalog-scene .magazine-feature,
html[data-theme="dark"] .catalog-scene .magazine-topic,
html[data-theme="dark"] .catalog-scene .starter-kit-stage,
html[data-theme="dark"] .catalog-scene .journey-ribbon,
html[data-theme="dark"] .catalog-scene .product-contract {
  color: var(--proto-vivid-ink);
}

html[data-theme="dark"] .catalog-scene .cover-wall,
html[data-theme="dark"] .catalog-scene .starter-kit-stage {
  background-color: #fff9f3;
}

@media (max-width: 1180px) {
  .catalog-scene .catalog-hero,
  .catalog-hero--magazine,
  .catalog-hero--store {
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    gap: 34px;
  }

  .catalog-scene .catalog-hero .hero-copy h1 { font-size: clamp(50px, 7vw, 82px); }
  .catalog-scene .catalog-hero .hero-copy h1 mark { white-space: normal; }
  .cover-wall { min-height: 570px; }
  .starter-kit-stage { min-height: 570px; }
  .family-ticket-grid,
  .issue-passport-grid,
  .product-contract-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .store-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .catalog-scene .catalog-hero,
  .catalog-hero--magazine,
  .catalog-hero--store {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 56px;
  }

  .catalog-scene .catalog-hero .hero-copy { max-width: 760px; }
  .catalog-scene .catalog-hero .hero-copy h1 { font-size: clamp(54px, 10vw, 86px); }
  .character-preview,
  .cover-wall,
  .starter-kit-stage { width: min(100%, 760px); margin-inline: auto; transform: none; }
  .scene-tab-strip,
  .catalog-scene--characters .scene-tab-strip,
  .catalog-scene--magazine .scene-tab-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-tab-strip a:nth-child(3) { border-left: 0; border-top: 3px solid var(--proto-line); }
  .scene-tab-strip a:nth-child(4) { border-top: 3px solid var(--proto-line); }
  .scene-tab-strip a:nth-child(5) { border-top: 3px solid var(--proto-line); border-left: 0; }
  .scene-tab-strip a:nth-child(6) { border-top: 3px solid var(--proto-line); }
  .catalog-scene--characters .scene-tab-strip a:nth-child(5) { grid-column: 1 / -1; }
  .magazine-feature-grid { grid-template-columns: 1fr; }
  .magazine-feature { display: grid; grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr); }
  .magazine-feature figure { min-height: 100%; border-right: 3px solid var(--proto-line); border-bottom: 0; }
  .magazine-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-ribbon a:nth-child(3),
  .journey-ribbon a:nth-child(5) { border-left: 0; }
  .journey-ribbon a:nth-child(n + 3) { border-top: 3px solid var(--proto-line); }
  .journey-ribbon a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .store-sample-grid { grid-template-columns: 1fr; }

  .catalog-scene .catalog-hero { gap: 42px; padding-block: 48px; }
  .catalog-scene .catalog-hero .hero-copy h1 { font-size: clamp(45px, 13.5vw, 68px); line-height: 0.98; }
  .catalog-scene .catalog-hero .hero-copy h1 mark { white-space: normal; }
  .scene-tab-strip,
  .family-ticket-grid,
  .issue-passport-grid,
  .product-contract-grid,
  .layer-contract-grid,
  .c64-slot-contract,
  .magazine-topic-grid,
  .archive-card-grid,
  .status-gate-grid,
  .journey-ribbon { grid-template-columns: 1fr; }
  .scene-tab-strip a + a,
  .scene-tab-strip a:nth-child(3),
  .scene-tab-strip a:nth-child(4),
  .scene-tab-strip a:nth-child(5),
  .scene-tab-strip a:nth-child(6),
  .journey-ribbon a + a,
  .journey-ribbon a:nth-child(3),
  .journey-ribbon a:nth-child(5) { border-left: 0; border-top: 3px solid var(--proto-line); }
  .journey-ribbon a:last-child { grid-column: auto; }
  .scene-tab-strip a:nth-child(5) { grid-column: auto; }
  .scene-tab-strip a { min-height: 82px; }
  .family-ticket,
  .issue-passport,
  .magazine-topic,
  .archive-card,
  .status-gate { min-height: auto; }
  .character-c16-section .c16-shelf-row { grid-template-columns: 1fr; }
  .character-c16-section .c16-shelf-row__cards { grid-template-columns: 1fr; }
  .character-c16-section .c16-grid--shelf .c16-card { min-height: 220px; grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr); grid-template-rows: 1fr; }
  .character-c16-section .c16-grid--shelf .c16-card__asset { min-height: 100%; border-right: 3px solid var(--proto-line); border-bottom: 0; }
  .character-c16-section .c16-grid--shelf .c16-card__direction { display: block; }
  .cover-wall {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    padding: 14px;
  }
  .cover-wall__cover { min-height: 440px; grid-column: 1 / -1; grid-row: auto; }
  .cover-wall__tile--cards,
  .cover-wall__tile--report,
  .cover-wall__tile--dashboard { min-height: 180px; grid-column: auto; grid-row: auto; }
  .cover-wall__tile--dashboard { grid-column: 1 / -1; }
  .cover-wall__stamp { display: none; }
  .magazine-feature { grid-template-columns: 1fr; }
  .magazine-feature figure { min-height: 210px; border-right: 0; border-bottom: 3px solid var(--proto-line); }
  .starter-kit-stage { min-height: auto; }
  .starter-kit-stage__items { grid-template-columns: 1fr; }
  .starter-kit-stage__items figure { min-height: 150px; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: 1fr; }
  .starter-kit-stage__items img { height: 125px; }
  .starter-kit-stage__items figcaption { white-space: normal; }
}

@media (max-width: 540px) {
  .character-preview__row { grid-template-columns: minmax(0, 1fr) 90px; }
  .character-preview__row img { width: 84px; height: 82px; }
  .character-preview__mast { align-items: flex-start; flex-direction: column; gap: 4px; }
  .character-c16-section .c16-grid--shelf .c16-card { min-height: 0; grid-template-columns: 1fr; grid-template-rows: 142px auto; }
  .character-c16-section .c16-grid--shelf .c16-card__asset { min-height: 142px; border-right: 0; border-bottom: 3px solid var(--proto-line); }
  .cover-wall {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .cover-wall__cover { grid-column: 1 / -1; grid-row: auto; min-height: 440px; }
  .cover-wall__tile--cards,
  .cover-wall__tile--report,
  .cover-wall__tile--dashboard { grid-column: auto; grid-row: auto; min-height: 180px; }
  .cover-wall__tile--dashboard { grid-column: 1 / -1; }
  .cover-wall__stamp { display: none; }
  .starter-kit-stage__status { align-items: flex-start; flex-direction: column; border-radius: 13px; }
  .starter-kit-stage__box img { max-height: 280px; }
  .starter-kit-stage__items figure { grid-template-columns: 108px minmax(0, 1fr); }
  .starter-kit-stage__items img { height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .character-preview,
  .cover-wall,
  .starter-kit-stage,
  .starter-kit-stage__box img { transform: none; }
  .scene-tab-strip a,
  .journey-ribbon a { transition: none; }
}
