/*
 * Canonical presentation layer for /news, /guide, /ranking, /shop1 and /archive.
 * Keep route scopes on every rule: the operating /shop, probability page,
 * frozen design backups, catalog detail pages and global navigation are excluded.
 * Important declarations only bridge older legacy rules with that priority.
 */
:is(
  body.is-news-page #newsPage,
  body.is-ranking-page #rankingPage,
  body.is-shop-design-preview #shopDesignPreviewPage,
  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])),
  main.codex-hub:not(.archive-map)
) {
  --lt-canvas: #111313;
  --lt-surface: #1d211e;
  --lt-paper: #f4ead3;
  --lt-product-paper: #e8dfcb;
  --lt-ink: #211f1a;
  --lt-muted: #6e6b64;
  --lt-muted-on-dark: #b9bcb5;
  --lt-line: #383c37;
  --lt-paper-line: #d6cbb6;
  --lt-gold: #c4ab73;
  --lt-action: #9a3f29;
  --lt-action-hover: #7e3020;
  --lt-action-on-dark: #e85d43;
  --lt-content-width: 1280px;
  --lt-gutter: clamp(24px, 4vw, 48px);
  --lt-section-gap: 24px;
  --lt-panel-padding: 32px;
  --lt-heading-top: 44px;
  --lt-heading-bottom: 32px;
  --lt-title-size: 44px;
  --lt-eyebrow-size: 17px;
}

/* One masthead, including guide articles as well as the directory and gate. */
:is(
  body.is-news-page #newsPage .news-masthead,
  body.is-ranking-page #rankingPage .section-head,
  body.is-shop-design-preview #shopDesignPreviewPage > .sp-masthead,
  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) > .game-guide__topline,
  main.codex-hub:not(.archive-map) .codex-hub__hero
) {
  box-sizing: border-box;
  display: block !important;
  min-height: 0;
  margin-block: 0 !important;
  padding: var(--lt-heading-top) 0 var(--lt-heading-bottom) !important;
  background: transparent;
  text-align: center;
}

:is(
  body.is-news-page #newsPage .news-masthead .kicker,
  body.is-ranking-page #rankingPage .section-head .kicker,
  body.is-shop-design-preview #shopDesignPreviewPage > .sp-masthead > p,
  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .enhancement-guide__hero > p,
  main.codex-hub:not(.archive-map) .codex-hub__eyebrow
) {
  margin: 0 0 8px !important;
  color: var(--lt-gold) !important;
  font-family: Cinzel, serif;
  font-size: var(--lt-eyebrow-size) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: .1em !important;
}

:is(
  body.is-news-page #newsPage .news-masthead h2,
  body.is-ranking-page #rankingPage #rankingPageTitle,
  body.is-shop-design-preview #shopDesignPreviewPage > .sp-masthead > h1,
  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .enhancement-guide__hero > h1,
  main.codex-hub:not(.archive-map) .codex-hub__hero > h1
) {
  margin: 0 !important;
  color: var(--lt-paper);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: var(--lt-title-size) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -.03em !important;
}

:is(
  body.is-news-page #newsPage .news-masthead,
  body.is-shop-design-preview #shopDesignPreviewPage > .sp-masthead,
  main.codex-hub:not(.archive-map) .codex-hub__hero
) {
  border-bottom: 1px solid var(--lt-line);
}

/* Editorial page: one aligned feature grid, toolbar and paper reading surface. */
body.is-news-page #newsPage :is(.news-masthead, .news-featured-stage, .news-index-header, .news-paper-content) {
  box-sizing: border-box;
  width: min(var(--lt-content-width), calc(100% - var(--lt-gutter) * 2));
  margin-inline: auto;
}

body.is-news-page #newsPage .news-masthead .section-head {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

body.is-news-page #newsPage .news-featured-stage {
  padding: var(--lt-section-gap) 0 0;
}

body.is-news-page #newsPage .news-featured {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  grid-template-rows: 190px minmax(232px, auto);
}

body.is-news-page #newsPage .news-feature.notice-card-link {
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
}

body.is-news-page #newsPage .news-feature-content {
  padding: 20px 24px;
}

body.is-news-page #newsPage .news-feature-primary .news-feature-content {
  padding: 24px 28px;
}

body.is-news-page #newsPage .news-feature-primary h3 {
  font-size: 26px;
  line-height: 1.4;
}

body.is-news-page #newsPage .news-feature-action {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 16px;
  color: var(--lt-gold);
  font-size: 13px;
  font-weight: 600;
}

body.is-news-page #newsPage .news-index-header {
  margin-block: 24px;
  border-bottom: 1px solid var(--lt-line);
}

body.is-news-page #newsPage .news-filter-row {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}

body.is-news-page #newsPage .news-filter-chip {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 15px;
  line-height: 1.5;
}

body.is-news-page #newsPage .news-filter-chip.active::after {
  height: 2px;
}

body.is-news-page #newsPage .news-paper-content {
  padding: 4px var(--lt-panel-padding) 20px;
  border: 1px solid var(--lt-paper-line);
  background: var(--lt-paper);
}

body.is-news-page #newsPage .notice-list.news-page-list {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.is-news-page #newsPage .notice-card .notice-card-link {
  padding: 28px 0;
  column-gap: 24px;
}

body.is-news-page #newsPage .notice-card h3 {
  font-size: 20px;
  line-height: 1.45;
}

/* Ranking: title, contextual toolbar, then the data surface. */
body.is-ranking-page #rankingPage .section-head {
  padding-bottom: 16px !important;
}

body.is-ranking-page #rankingPage .ranking-index-header {
  align-items: center;
  gap: 24px;
  margin-bottom: var(--lt-section-gap) !important;
  border-color: var(--lt-line);
}

body.is-ranking-page #rankingPage .ranking-view-tabs {
  gap: 8px;
}

body.is-ranking-page #rankingPage .ranking-view-tab {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 15px;
}

body.is-ranking-page #rankingPage .ranking-view-tab.active::after {
  height: 2px;
}

body.is-ranking-page #rankingPage .ranking-refresh-bar {
  align-items: center;
  min-height: 44px;
  margin: 0 !important;
  font-size: 12px !important;
}

body.is-ranking-page #rankingPage #rankingRefreshButton {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

body.is-ranking-page #rankingPage .ranking-ledger-full-list {
  padding: var(--lt-panel-padding) !important;
  border: 1px solid var(--lt-paper-line) !important;
}

body.is-ranking-page #rankingPage .ranking-full-head,
body.is-ranking-page #rankingPage .ranking-list-toolbar {
  margin-bottom: 24px;
}

body.is-ranking-page #rankingPage .ranking-full-head strong {
  font-size: 24px !important;
}

body.is-ranking-page #rankingPage .ranking-full-table-head {
  min-height: 44px;
  background: var(--lt-product-paper);
  border-color: var(--lt-paper-line);
}

body.is-ranking-page #rankingPage .full-rank-row {
  min-height: 66px;
}

body.is-ranking-page #rankingPage .ranking-search-box {
  background: rgb(255 255 255 / .12) !important;
}

body.is-ranking-page #rankingPage .ledger-my-rank-card {
  border: 1px solid var(--lt-paper-line) !important;
}

body.is-ranking-page #rankingPage .ledger-rules-card {
  margin-top: 8px;
  padding: 20px 0 0 !important;
  border-top: 1px solid var(--lt-line) !important;
}

body.is-ranking-page #rankingPage :is(.ranking-page-btn, .ranking-page-number) {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

/* Knowledge pages: navigation stays dark; the actual document stays on paper. */
.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) {
  --guide-column-gap: var(--lt-section-gap);
  --guide-content-padding: var(--lt-panel-padding);
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) > .game-guide__utilities {
  padding: 0;
  margin-bottom: var(--lt-section-gap) !important;
  border-bottom: 1px solid var(--lt-line);
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) :is(.guide-directory__content, .game-guide__article) {
  box-sizing: border-box;
  border: 1px solid var(--lt-paper-line);
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-directory__heading h2 {
  font-size: 24px;
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-home-starter {
  padding: 24px;
  background: var(--lt-product-paper);
  border-color: #cfc0a4;
  border-left-color: var(--lt-action);
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-home-card {
  padding: 24px;
  border-color: var(--lt-paper-line);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-home-card:hover {
  border-color: #bcaa8c;
  background: #eee2ca;
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-home-card h4 {
  font-size: 20px;
  font-weight: 700;
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .game-guide__search {
  border-color: #53594f;
  background: var(--lt-surface);
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .game-guide__article-title h2 {
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.35;
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .game-guide__article :is(.game-guide__list, .enhancement-guide__section > p) {
  max-width: 72ch;
  line-height: 1.8;
}

.game-guide.guide-access-page:not(:has(> .game-guide__topline a[href='/probability'])) > .game-guide__topline {
  border-bottom: 1px solid var(--lt-line);
}

.game-guide.guide-access-page:not(:has(> .game-guide__topline a[href='/probability'])) .guide-access-panel {
  box-sizing: border-box;
  margin-top: var(--lt-section-gap);
  padding: var(--lt-panel-padding);
  border: 1px solid var(--lt-paper-line);
  background: var(--lt-paper);
}

.game-guide.guide-access-page:not(:has(> .game-guide__topline a[href='/probability'])) .guide-access-panel h2 {
  font-size: 24px;
}

/* Archive is a set of equal destinations, not two cards plus an empty banner. */
main.codex-hub:not(.archive-map) .codex-hub__divider {
  margin-bottom: var(--lt-section-gap) !important;
  border: 0;
}

main.codex-hub:not(.archive-map) .codex-hub__directory {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 24px;
}

main.codex-hub:not(.archive-map) .codex-hub__directory-heading h2 {
  font-size: 24px;
}

main.codex-hub:not(.archive-map) .codex-hub__entry {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 264px;
  padding: 28px;
  border: 1px solid var(--lt-paper-line);
  background: var(--lt-paper);
  color: var(--lt-ink);
  font-weight: 400;
}

main.codex-hub:not(.archive-map) .codex-hub__icon {
  width: 30px;
  height: 30px;
  color: var(--lt-action);
}

main.codex-hub:not(.archive-map) .codex-hub__entry-copy {
  margin: 20px 0 24px;
}

main.codex-hub:not(.archive-map) .codex-hub__entry-copy h3 {
  color: var(--lt-ink);
  font-size: 22px;
  line-height: 1.4;
}

main.codex-hub:not(.archive-map) .codex-hub__description {
  margin-top: 10px;
  color: var(--lt-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

main.codex-hub:not(.archive-map) .codex-hub__meta {
  margin-top: 12px;
  color: var(--lt-muted);
  font-size: 12px;
}

main.codex-hub:not(.archive-map) .codex-hub__action {
  min-height: 24px;
  margin-top: auto;
  color: var(--lt-action);
  font-size: 13px;
}

main.codex-hub:not(.archive-map) .codex-hub__entry:is(:hover, :focus-visible) {
  border-color: #c8b79a;
  background: #eee2ca;
}

main.codex-hub:not(.archive-map) .codex-hub__entry:is(:hover, :focus-visible) .codex-hub__action {
  color: var(--lt-action-hover);
}

/* Shop1: intrinsic content zones; no viewport-driven empty expansion. */
body.is-shop-design-preview #shopDesignPreviewPage > .sp-index-bar {
  padding: 0;
  margin: 0 0 var(--lt-section-gap);
  border: 0;
}

body.is-shop-design-preview #shopDesignPreviewPage > .sp-index-bar > .sp-section-heading {
  min-height: 0;
}

body.is-shop-design-preview #shopDesignPreviewPage #sp-category-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-products {
  gap: 24px;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 224px 30px minmax(96px, 1fr) 72px;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  padding: 24px;
  border: 1px solid #cfc3ab;
  background: var(--lt-product-paper);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product-media {
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0 0 8px;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product-media img {
  width: 244px;
  height: 216px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 6px rgb(49 28 17 / .13));
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product-heading {
  min-height: 0;
  padding: 0;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product-copy {
  min-width: 0;
  padding: 12px 0;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-grant {
  align-items: baseline;
  gap: 10px;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-grant-amount {
  align-items: center;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-grant-amount > img {
  content: url('/images/shop1-quantity-diamond-v2.png');
  width: 24px;
  height: 24px;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-grant strong {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-grant-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-bonus {
  min-height: 24px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: var(--lt-action);
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-product-bottom::before,
body.is-shop-design-preview #shopDesignPreviewPage .sp-price-label,
body.is-shop-design-preview #shopDesignPreviewPage .sp-select-action > svg {
  display: none;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-price-group {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 0;
  gap: 0;
  padding: 0;
  background: transparent;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-price {
  color: #fff8ed;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-select-action {
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-category-note {
  margin-top: 20px;
  color: var(--lt-muted-on-dark);
  font-size: 13px;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-purchase-notes {
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
}

body.is-shop-design-preview #shopDesignPreviewPage .sp-purchase-notes h2 {
  font-size: 22px;
}

/* Consistent focus and motion without changing any click/auth/checkout logic. */
:is(body.is-news-page #newsPage, main.codex-hub:not(.archive-map)) a:focus-visible {
  outline: 2px solid var(--lt-gold);
  outline-offset: 4px;
}

.game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) :is(.guide-home-card, .guide-home-starter):focus-visible {
  outline: 2px solid var(--lt-action);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.is-shop-design-preview #shopDesignPreviewPage .sp-product:hover {
    background: #eee6d5;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product:hover .sp-product-bottom {
    background: var(--lt-action-hover);
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product:hover :is(.sp-price-group, .sp-select-action) {
    background: transparent;
  }
}

@media (max-width: 1050px) {
  body.is-news-page #newsPage .news-featured {
    grid-template-rows: auto;
  }

  body.is-ranking-page #rankingPage .ranking-index-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  body.is-ranking-page #rankingPage .ranking-refresh-bar {
    margin-left: auto !important;
  }

  main.codex-hub:not(.archive-map) .codex-hub__directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main.codex-hub:not(.archive-map) .codex-hub__entry[href='/archive/map'] {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :is(
    body.is-news-page #newsPage,
    body.is-ranking-page #rankingPage,
    body.is-shop-design-preview #shopDesignPreviewPage,
    .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])),
    main.codex-hub:not(.archive-map)
  ) {
    --lt-gutter: 16px;
    --lt-section-gap: 20px;
    --lt-panel-padding: 22px;
    --lt-heading-top: 32px;
    --lt-heading-bottom: 28px;
    --lt-title-size: 34px;
    --lt-eyebrow-size: 15px;
  }

  body.is-news-page #newsPage .news-featured {
    gap: 16px;
  }

  body.is-news-page #newsPage .news-feature-primary .news-feature-content {
    padding: 22px;
  }

  body.is-news-page #newsPage .news-feature-primary h3 {
    font-size: 23px;
  }

  body.is-news-page #newsPage .news-index-header {
    margin-block: 20px;
  }

  body.is-news-page #newsPage .news-filter-row {
    gap: 0;
  }

  body.is-news-page #newsPage .news-filter-chip {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 14px;
  }

  body.is-news-page #newsPage .news-paper-content {
    padding: 0 20px 12px;
  }

  body.is-news-page #newsPage .notice-card .notice-card-link {
    padding: 24px 0;
  }

  body.is-news-page #newsPage .notice-card h3 {
    font-size: 19px;
  }

  body.is-ranking-page #rankingPage .ranking-index-header {
    display: block;
  }

  body.is-ranking-page #rankingPage .ranking-view-tabs {
    gap: 0;
  }

  body.is-ranking-page #rankingPage .ranking-view-tab {
    min-height: 48px;
    padding: 12px 16px;
  }

  body.is-ranking-page #rankingPage .ranking-refresh-bar {
    justify-content: space-between;
    min-height: 44px;
    padding-bottom: 4px;
    font-size: 11px !important;
  }

  body.is-ranking-page #rankingPage .ranking-refresh-bar > span {
    padding-top: 0;
  }

  body.is-ranking-page #rankingPage .ranking-ledger-full-list {
    padding: 22px 16px !important;
  }

  body.is-ranking-page #rankingPage .ranking-full-head strong {
    font-size: 22px !important;
  }

  body.is-ranking-page #rankingPage :is(.ranking-page-btn, .ranking-page-number) {
    width: 36px;
    min-width: 36px;
    height: 44px;
  }

  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) > .game-guide__utilities {
    padding-bottom: 16px;
  }

  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) :is(.guide-home-card, .guide-home-starter) {
    padding: 20px;
  }

  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-directory__heading h2 {
    font-size: 22px;
  }

  .game-guide.guide-access-page:not(:has(> .game-guide__topline a[href='/probability'])) .guide-access-panel h2 {
    font-size: 22px;
  }

  main.codex-hub:not(.archive-map) .codex-hub__directory {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  main.codex-hub:not(.archive-map) .codex-hub__directory-heading {
    margin-bottom: 4px;
  }

  main.codex-hub:not(.archive-map) .codex-hub__directory-heading h2 {
    font-size: 22px;
  }

  main.codex-hub:not(.archive-map) .codex-hub__entry {
    min-height: 0;
    padding: 24px;
  }

  main.codex-hub:not(.archive-map) .codex-hub__entry-copy {
    margin: 16px 0 20px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-products {
    gap: 16px 12px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product {
    grid-template-rows: 156px 42px minmax(118px, 1fr) 68px;
    padding: 16px 12px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product-media {
    padding: 0 0 8px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product-media img {
    width: 176px;
    height: 148px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product h3 {
    font-size: 16px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-grant {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-grant strong {
    font-size: 26px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-grant-amount > img {
    width: 22px;
    height: 22px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product-copy {
    padding: 8px 0 12px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-bonus {
    min-height: 36px;
    margin-top: 8px;
    font-size: 12px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-bonus img {
    width: 16px;
    height: 16px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product-bottom {
    min-height: 68px;
    padding: 8px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-price {
    font-size: 22px;
  }
}

@media (max-width: 359px) {
  body.is-shop-design-preview #shopDesignPreviewPage .sp-product {
    grid-template-rows: 192px 30px minmax(96px, 1fr) 68px;
    padding: 20px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-product-media img {
    width: 224px;
    height: 184px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-grant {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  body.is-shop-design-preview #shopDesignPreviewPage .sp-bonus {
    min-height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.is-shop-design-preview #shopDesignPreviewPage, main.codex-hub:not(.archive-map)) :is(a, .sp-product, .sp-product-media img, .sp-product-bottom) {
    transition: none;
  }

  .game-guide.enhancement-guide:not(.probability-info):not(:has(> .game-guide__topline a[href='/probability'])) .guide-home-card {
    transition: none;
  }
}

/* Frozen compatibility, NOT a map redesign. The retired shared-heading sheet
 * also matched /archive/map. Replay only its exact former masthead values so
 * consolidating the five requested pages cannot change that separate screen.
 * Intentionally use no new design tokens here.
 */
main.codex-hub.archive-map .codex-hub__hero {
  padding: 40px 0 36px !important;
}

main.codex-hub.archive-map .codex-hub__eyebrow {
  margin: 0 0 8px !important;
  color: #c4ab73 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: .1em !important;
}

main.codex-hub.archive-map .codex-hub__hero > h1 {
  margin: 0 !important;
  font-size: 44px !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
}

main.codex-hub.archive-map .codex-hub__divider {
  margin-bottom: 24px !important;
}

@media (max-width: 760px) {
  main.codex-hub.archive-map .codex-hub__hero {
    padding: 32px 0 28px !important;
  }

  main.codex-hub.archive-map .codex-hub__eyebrow {
    font-size: 15px !important;
  }

  main.codex-hub.archive-map .codex-hub__hero > h1 {
    font-size: 34px !important;
  }

  main.codex-hub.archive-map .codex-hub__divider {
    margin-bottom: 18px !important;
  }
}
