:root {
  --mb-paper: #14110e;
  --mb-ink: #f4efe6;
  --mb-muted: rgba(244, 239, 230, 0.62);
  --mb-line: rgba(212, 175, 110, 0.28);
  --mb-red: #e50717;
  --mb-gold: #d4af6e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #0c0a09;
  color: var(--mb-ink);
  font-family: "Palatino Linotype", Palatino, "Times New Roman", serif;
}

.mb-app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0c0a09;
}

.mb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #0c0a09;
  color: #f4efe6;
  border-bottom: 1px solid rgba(212, 175, 110, 0.18);
}

.mb-back,
.mb-cats {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.mb-count {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 230, 0.55);
}

.mb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  background: radial-gradient(ellipse at center, #1c1714 0%, #0c0a09 72%);
}

.mb-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mb-track {
  height: 100%;
  display: flex;
  transition: transform 0.42s ease;
  will-change: transform;
}

.mb-page {
  flex: 0 0 auto;
  height: 100%;
  padding: 1.2rem 1.15rem 0.75rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #161311;
  color: var(--mb-ink);
}

.mb-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--mb-line);
}

.mb-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mb-gold);
}

.mb-title {
  margin: 0.28rem 0 0;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.mb-index {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 230, 0.45);
}

.mb-items {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.mb-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-height: 0;
}

.mb-item.has-photo {
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1;
}

.mb-frame {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #161311;
  cursor: zoom-in;
}

.mb-shot {
  position: relative;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 2;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}

.mb-blur,
.mb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mb-blur {
  filter: blur(14px);
  transform: scale(1.06);
  pointer-events: none;
}

.mb-photo {
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 74% 70% at 50% 48%, #000 46%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 70% at 50% 48%, #000 46%, transparent 100%);
}

.mb-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.mb-name {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 600;
}

.mb-portion {
  margin: 0.28rem 0 0;
  color: var(--mb-gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mb-desc {
  margin: 0.28rem 0 0;
  color: var(--mb-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  font-family: "Segoe UI", "Noto Sans", sans-serif;
}

.mb-price {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f6edd8;
}

.mb-price-note {
  margin-left: 0.35rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mb-gold);
}

.mb-text-list {
  display: flex;
  flex-direction: column;
}

.mb-text-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

.mb-text-row .mb-name {
  font-size: 0.95rem;
}

.mb-prices {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #f6edd8;
}

.mb-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.7rem;
  color: rgba(244, 239, 230, 0.38);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mb-cover {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  color: #f7f4ee;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #111;
}

.mb-cover-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  cursor: zoom-in;
}

.mb-zoom {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.94);
  cursor: zoom-out;
}

.mb-zoom[hidden] { display: none; }

.mb-zoom img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.mb-zoom-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f4efe6;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.mb-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 8, 0.15) 10%, rgba(12, 9, 8, 0.88) 100%);
}

.mb-cover-copy {
  position: relative;
  padding: 1.6rem 1.35rem 1.4rem;
}

.mb-cover h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.mb-cover p {
  margin: 0.85rem 0 0;
  max-width: 16rem;
  color: rgba(247, 244, 238, 0.78);
  font-family: "Segoe UI", "Noto Sans", sans-serif;
}

.mb-open {
  margin-top: 1.25rem;
  appearance: none;
  border: 1px solid rgba(244, 239, 230, 0.7);
  background: transparent;
  color: #f4efe6;
  padding: 0.72rem 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
}

.mb-arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 175, 110, 0.45);
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.72);
  color: #f4efe6;
  font-size: 1.35rem;
  cursor: pointer;
}

.mb-arrow.prev { left: 0.6rem; }
.mb-arrow.next { right: 0.6rem; }
.mb-arrow:disabled { opacity: 0.28; cursor: default; }

.mb-sheet {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(8, 6, 5, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.mb-sheet.open { display: flex; }

.mb-sheet-panel {
  width: min(360px, 100%);
  max-height: min(72dvh, 620px);
  overflow: auto;
  background: #161311;
  color: #f4efe6;
  padding: 1rem 1.1rem 0.7rem;
  border: 1px solid var(--mb-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.mb-sheet-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mb-gold);
}

.mb-sheet button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  background: transparent;
  color: inherit;
  padding: 0.62rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.mb-status {
  margin: auto;
  padding: 2rem;
  text-align: center;
  color: var(--mb-muted);
}

@media (min-width: 960px) {
  .mb-stage {
    align-items: center;
    justify-content: center;
    padding: 1.35rem 0 1.6rem;
  }
  .mb-viewport {
    flex: 0 0 auto;
    width: min(540px, calc(100% - 96px));
    max-width: 540px;
    height: min(780px, calc(100dvh - 112px));
    margin: 0 auto;
    overflow: hidden;
    background: #161311;
    border: 1px solid rgba(212, 175, 110, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  .mb-page { padding: 1.25rem 1.3rem 0.9rem; }
  .mb-cover { min-width: 0; }
  .mb-arrow { display: block; }
  .mb-arrow.prev { left: max(0.8rem, calc(50% - 332px)); }
  .mb-arrow.next { right: max(0.8rem, calc(50% - 332px)); }
  .mb-swipe-only { display: none; }
  .mb-items {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 1rem;
    overflow: hidden;
  }
  .mb-items:has(.mb-text-list) {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 110, 0.35) transparent;
  }
  .mb-items:has(.mb-text-list)::-webkit-scrollbar { width: 3px; }
  .mb-items:has(.mb-text-list)::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 110, 0.4);
    border-radius: 3px;
  }
  .mb-item.has-photo {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.45rem;
  }
  .mb-frame { background: #161311; }
  .mb-cover h1 { font-size: 2.8rem; }
}

@media (max-width: 959px) {
  .mb-desktop-only { display: none; }
  .mb-viewport { background: #161311; }
}
