/* The hub's paper, Adekvat and illustrated worlds, extended to individual game pages.
   Deliberately no selectors for game overlays, task controls or print sheets. */
.zmp-detail-page {
  --detail-paper: #f8f5ed;
  --detail-ink: #222c2b;
  --detail-muted: #60685f;
  --detail-line: #dedfd5;
  --detail-night: #10283e;
  --detail-gold: #ffcf6b;
  background: var(--detail-paper);
}
.zmp-detail-page #main-content { padding-top: 24px; padding-bottom: 24px; }
.zmp-detail-page .page-layout { margin-top: 0; }
.zmp-detail-page .page-content { padding: 0; }
.zmp-detail-page .breadcrumbs { margin: 0 0 22px; }
.zmp-detail-page .custom-page.zmp-detail-shell { padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.zmp-detail-page .zmp-mg--game { --mg-ink: #222c2b; --mg-soft: #60685f; --mg-brick: #314d39; --mg-line: #dedfd5; max-width: none; }
.zmp-detail-hero *, .zmp-detail-how *, .zmp-detail-related * { box-sizing: border-box; }
.zmp-detail-hero {
  --hero-surface: #f6eedb;
  --hero-ink: #303c2e;
  --hero-muted: #59604b;
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; min-height: 440px;
  border-radius: 16px; background: var(--hero-surface); color: var(--hero-ink); overflow: hidden;
}
.zmp-detail-hero--night { --hero-surface: #10283e; --hero-ink: #fff8e9; --hero-muted: #d7e0df; }
.zmp-detail-hero--peach { --hero-surface: #faf2e4; }
.zmp-detail-hero__content { padding: 42px 14px 42px 48px; position: relative; z-index: 1; }
.zmp-detail-page .zmp-detail-hero h1 {
  font-family: inherit; font-size: clamp(36px, 3.9vw, 56px); font-weight: 750;
  line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; color: var(--hero-ink);
  margin: 0 0 22px; padding: 0; overflow-wrap: normal; word-break: normal;
}
.zmp-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; list-style: none; padding: 0; margin: 0 0 21px; }
.zmp-detail-meta li { display: flex; gap: 7px; align-items: center; color: var(--hero-muted); font-size: 13px; line-height: 1.4; }
.zmp-detail-meta li:last-child { flex-basis: 100%; }
.zmp-detail-meta svg { width: 16px; height: 16px; }
.zmp-detail-page .zmp-detail-hero__description { font-size: 17px; line-height: 1.6; max-width: 40ch; color: var(--hero-ink); margin: 0 0 25px; }
.zmp-detail-actions { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.zmp-detail-play, .zmp-detail-parent { font: inherit; cursor: pointer; }
.zmp-detail-play {
  display: inline-flex; justify-content: center; align-items: center; gap: 22px;
  background: var(--detail-gold); color: #293020; border: 0; border-radius: 10px;
  padding: 14px 27px; min-height: 54px; font-size: 16px; font-weight: 700;
  transition: background-color .2s, transform .2s;
}
.zmp-detail-play svg { width: 20px; height: 20px; }
.zmp-detail-play:hover { background: #ffde93; transform: translateY(-2px); }
.zmp-detail-play:active { transform: translateY(0); }
.zmp-detail-parent { border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 8px 0; min-height: 44px; background: none; color: var(--hero-ink); font-size: 14px; }
.zmp-detail-parent:hover { color: var(--hero-muted); }
.zmp-detail-page .zmp-detail-hero__reassurance { font-size: 12px; line-height: 1.6; margin: 20px 0 0; max-width: 41ch; color: var(--hero-muted); }
.zmp-detail-page .zmp-detail-progress { font-size: 13px; color: var(--hero-muted); margin: 12px 0 0; }
.zmp-detail-progress:empty { display: none; }
.zmp-detail-page .zmp-detail-noscript { color: var(--hero-ink); font-size: 14px; margin: 18px 0 0; }
.zmp-detail-hero__art { align-self: stretch; position: relative; min-width: 0; }
.zmp-detail-hero__art img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.zmp-detail-hero--night .zmp-detail-hero__art img { position: absolute; inset: 0; object-fit: cover; object-position: 65% center; }
.zmp-detail-hero--night .zmp-detail-hero__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-surface), transparent 30%); }
.zmp-detail-hero--kontora .zmp-detail-hero__art img { object-position: 78% center; }
.zmp-detail-how { padding: 46px 0 38px; }
.zmp-detail-how__heading, .zmp-detail-related__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.zmp-detail-page :is(.zmp-detail-how, .zmp-detail-related) h2 { color: var(--detail-ink); margin: 0; font-size: clamp(25px, 2.4vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.zmp-detail-how__heading > p { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #58674f; margin: 0; }
.zmp-detail-how__heading svg { width: 19px; height: 19px; }
.zmp-detail-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 38px; padding: 0; margin: 0; }
.zmp-detail-how li { display: flex; align-items: flex-start; gap: 15px; }
.zmp-detail-how__number { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; background: #e9eadc; color: #4d6446; border-radius: 50%; font-size: 13px; font-weight: 600; }
.zmp-detail-page .zmp-detail-how h3 { margin: 2px 0 8px; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--detail-ink); }
.zmp-detail-page .zmp-detail-how li p { font-size: 14px; line-height: 1.65; color: var(--detail-muted); margin: 0; }
.zmp-detail-guide, .zmp-detail-editorial { border-top: 1px solid var(--detail-line); border-bottom: 1px solid var(--detail-line); }
.zmp-detail-guide summary, .zmp-detail-editorial summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 78px; padding: 22px 0; cursor: pointer; font-size: 18px; color: #344934; font-weight: 600; list-style: none; }
.zmp-detail-guide summary::-webkit-details-marker, .zmp-detail-editorial summary::-webkit-details-marker { display: none; }
.zmp-detail-guide summary svg { flex: 0 0 auto; width: 22px; height: 22px; transition: transform .2s; }
.zmp-detail-guide[open] summary svg { transform: rotate(45deg); }
.zmp-detail-guide__content { padding: 14px 0 28px; }
.zmp-detail-page .zmp-detail-guide__content > p { max-width: 74ch; font-size: 16px; color: #57604f; line-height: 1.8; }
.zmp-detail-page .zmp-detail-guide__content > .zmp-mg__lead { font-size: 19px; line-height: 1.65; color: #414b3b; }
.zmp-detail-page .zmp-detail-guide .zmp-mg__split { gap: 46px; margin: 42px 0 0; }
.zmp-detail-page .zmp-detail-guide .zmp-mg__split h2 { font-size: 29px; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.025em; }
.zmp-detail-page .zmp-detail-guide .zmp-mg__split p { font-size: 15px; line-height: 1.8; color: var(--detail-muted); }
.zmp-detail-page .zmp-detail-guide .zmp-mg__split-art img { object-fit: contain; aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: none; }
.zmp-detail-editorial { margin-top: 18px; }
.zmp-detail-editorial summary { font-size: 15px; min-height: 58px; padding: 16px 0; }
.zmp-detail-editorial summary svg { width: 20px; height: 20px; flex: 0 0 auto; }
.zmp-detail-editorial[open] summary svg { transform: rotate(45deg); }
.zmp-detail-editorial .page-body { padding: 5px 0 22px; max-width: 74ch; }
.zmp-detail-page .zmp-mg__materials {
  margin: 30px 0 0; padding: 34px 38px; border: 1px solid #dfdfd1; border-radius: 16px;
  background: #fdfcf6; scroll-margin-top: 155px;
}
.zmp-detail-page .zmp-mg__materials > h2 { font-size: 28px; line-height: 1.2; margin: 36px 0 18px; color: #344934; letter-spacing: -.02em; }
.zmp-detail-page .zmp-mg__materials > h2:first-child { margin-top: 0; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__sheet { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; gap: 20px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__sheet-ic { background: #e9eadc; width: 58px; height: 64px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__sheet p { max-width: 68ch; font-size: 15px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__sheet b { font-size: 17px; margin-bottom: 6px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__actions { max-width: none; margin: 24px 0 30px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__btn { flex: 0 0 auto; min-width: 190px; padding: 14px 24px; border: 0; border-radius: 10px; background: #314d39; color: #fff; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__shelf { gap: 18px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__pcard { flex-direction: row; padding: 16px; gap: 16px; align-items: flex-start; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__pcard img { width: 84px; aspect-ratio: 3 / 4; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__pcard-b { align-self: stretch; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__pcard-t { font-size: 14px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__price { font-size: 16px; }
.zmp-detail-page .zmp-mg__materials .zmp-mg__note { font-size: 13px; color: var(--detail-muted); }
.zmp-detail-page .zmp-mg__materials .zmp-mg__quiet { border-left-width: 1px; max-width: 76ch; background: #f3f1e7; font-size: 14px; }
.zmp-detail-related { margin: 62px 0 35px; }
.zmp-detail-all { display: inline-flex; align-items: center; gap: 12px; color: #314d39; font-size: 14px; font-weight: 600; min-height: 44px; text-decoration: none; }
.zmp-detail-all:hover { text-decoration: underline; text-underline-offset: 5px; }
.zmp-detail-all svg { width: 20px; height: 20px; }
.zmp-detail-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zmp-detail-related__card { position: relative; display: block; overflow: hidden; background: #fffdf8; border: 1px solid #dedfd5; border-radius: 16px; color: var(--detail-ink); text-decoration: none; }
.zmp-detail-related__card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 62%; }
.zmp-detail-related__card > div { padding: 21px 52px 22px 23px; }
.zmp-detail-page .zmp-detail-related__card h3 { font-size: 21px; line-height: 1.2; margin: 0 0 9px; color: var(--detail-ink); font-weight: 700; letter-spacing: -.02em; }
.zmp-detail-page .zmp-detail-related__card p { font-size: 12px; color: var(--detail-muted); line-height: 1.5; margin: 0; }
.zmp-detail-related__arrow { position: absolute; right: 20px; bottom: 25px; color: #314d39; transition: transform .2s; }
.zmp-detail-related__arrow svg { width: 22px; height: 22px; }
.zmp-detail-related__card:hover .zmp-detail-related__arrow { transform: translateX(4px); }
.zmp-detail-page :is(.zmp-detail-play, .zmp-detail-parent, .zmp-detail-all, .zmp-detail-related__card, .zmp-detail-guide summary, .zmp-detail-editorial summary):focus-visible { outline: 3px solid #0079b7; outline-offset: 5px; }
.zmp-detail-related__card:focus-visible { outline-offset: -4px; }
@media (max-width: 1100px) {
  .zmp-detail-hero { grid-template-columns: 1fr 1fr; }
  .zmp-detail-hero__content { padding: 34px 14px 34px 32px; }
  .zmp-detail-page .zmp-detail-hero h1 { font-size: 42px; }
  .zmp-detail-page .zmp-detail-hero__description { font-size: 16px; }
  .zmp-detail-actions { gap: 12px; }
  .zmp-detail-parent { font-size: 13px; }
  .zmp-detail-how ol { gap: 22px; }
  .zmp-detail-page .zmp-detail-guide .zmp-mg__split { gap: 30px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__shelf { grid-template-columns: 1fr; }
  .zmp-detail-related__grid { gap: 16px; }
  .zmp-detail-page .zmp-detail-related__card h3 { font-size: 18px; }
}
@media (max-width: 700px) {
  .zmp-detail-page #main-content { width: 100%; max-width: none; padding: 18px 16px 24px; }
  .zmp-detail-page .breadcrumbs { font-size: 12px; margin-bottom: 16px; gap: 7px; }
  .zmp-detail-hero { grid-template-columns: 1fr; min-height: 0; }
  .zmp-detail-hero__content { padding: 27px 25px 12px; }
  .zmp-detail-page .zmp-detail-hero h1 { font-size: clamp(29px, 8.9vw, 39px); margin-bottom: 18px; text-wrap: initial; }
  .zmp-detail-meta { gap: 8px 16px; margin-bottom: 18px; }
  .zmp-detail-meta li { font-size: 12px; }
  .zmp-detail-page .zmp-detail-hero__description { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
  .zmp-detail-play { min-height: 50px; padding: 12px 23px; font-size: 15px; }
  .zmp-detail-parent { min-height: 44px; font-size: 13px; }
  .zmp-detail-page .zmp-detail-hero__reassurance { margin-top: 14px; font-size: 11px; }
  .zmp-detail-hero__art { aspect-ratio: 16 / 9; }
  .zmp-detail-hero__art img, .zmp-detail-hero--night .zmp-detail-hero__art img { position: static; width: 100%; height: 100%; object-fit: contain; }
  .zmp-detail-hero--night .zmp-detail-hero__art::after { background: linear-gradient(180deg, var(--hero-surface), transparent 35%); }
  .zmp-detail-how { padding: 34px 0 28px; }
  .zmp-detail-how__heading { gap: 12px; margin-bottom: 22px; }
  .zmp-detail-how__heading > p { width: 100%; font-size: 12px; }
  .zmp-detail-how ol { grid-template-columns: 1fr; gap: 22px; }
  .zmp-detail-page .zmp-detail-how h3 { font-size: 16px; }
  .zmp-detail-guide summary { min-height: 80px; font-size: 16px; padding: 20px 0; }
  .zmp-detail-guide__content { padding-top: 4px; }
  .zmp-detail-page .zmp-detail-guide__content > p { font-size: 14px; }
  .zmp-detail-page .zmp-detail-guide__content > .zmp-mg__lead { font-size: 16px; }
  .zmp-detail-page .zmp-detail-guide .zmp-mg__split { grid-template-columns: 1fr; gap: 23px; margin-top: 30px; }
  .zmp-detail-page .zmp-detail-guide .zmp-mg__split--flip .zmp-mg__split-art { order: 0; }
  .zmp-detail-page .zmp-detail-guide .zmp-mg__split h2 { font-size: 25px; }
  .zmp-detail-page .zmp-detail-guide .zmp-mg__split p { font-size: 14px; }
  .zmp-detail-page .zmp-mg__materials { padding: 25px 20px; margin-top: 22px; scroll-margin-top: 135px; }
  .zmp-detail-page .zmp-mg__materials > h2 { font-size: 25px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__sheet { align-items: flex-start; gap: 12px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__sheet-ic { width: 36px; height: 43px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__sheet p { font-size: 14px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__sheet b { font-size: 16px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__pcard { padding: 12px; gap: 12px; }
  .zmp-detail-page .zmp-mg__materials .zmp-mg__pcard img { width: 66px; }
  .zmp-detail-related { margin-top: 42px; }
  .zmp-detail-related__heading { gap: 8px; margin-bottom: 18px; }
  .zmp-detail-related__grid { grid-template-columns: 1fr; gap: 17px; }
  .zmp-detail-related__card { display: grid; grid-template-columns: 104px 1fr; min-height: 112px; align-items: center; }
  .zmp-detail-related__card > img { width: 104px; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .zmp-detail-related__card > div { padding: 17px 16px; }
  .zmp-detail-page .zmp-detail-related__card h3 { font-size: 18px; }
  .zmp-detail-related__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zmp-detail-play, .zmp-detail-related__arrow, .zmp-detail-guide summary svg { transition: none; transform: none !important; }
}
