.zp-monge {
  --purple: #5b2a7a;
  --gold: #e8c27a;
  --gold-soft: #f3d9a4;
  --accent: #c45c26;
  --ink: #1a1220;
  --glass: rgba(18, 8, 24, 0.42);
  --glass-edge: rgba(232, 194, 122, 0.38);
  --cream: #f6efe4;
  position: relative;
  min-height: 720px;
  margin: 0 0 32px;
  overflow: hidden;
  color: var(--cream);
  font-family: Manrope, system-ui, sans-serif;
  background: #0c0710;
}
.zp-monge:not(.is-shop) {
  aspect-ratio: 9 / 16;
  max-height: min(92vh, 920px);
  min-height: 0;
  width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .zp-monge:not(.is-shop) {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: min(78vh, 820px);
  }
}
.zp-monge *,
.zp-monge *::before,
.zp-monge *::after { box-sizing: border-box; }
.zp-monge button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.zp-monge .film,
.zp-monge .film img,
.zp-monge .film .intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zp-monge .film { overflow: hidden; }
.zp-monge .film .intro-video {
  z-index: 1;
  background: #0c0710;
  opacity: 1;
}
.zp-monge .intro-video--desktop { display: none; }
.zp-monge .intro-video--mobile { display: block; }
@media (min-width: 768px) {
  .zp-monge .intro-video--mobile { display: none; }
  .zp-monge .intro-video--desktop { display: block; }
}
.zp-monge.is-shop .intro-video {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
.zp-monge .film img {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease;
  z-index: 0;
}
.zp-monge .film.is-shop img.is-on {
  opacity: 1;
  z-index: 1;
}
.zp-monge .film.is-shop img.is-on { animation: none; }
.zp-monge .film.is-shop img.is-on[data-drift="a"] {
  animation: zpKenA 14s ease-in-out infinite alternate;
}
.zp-monge .film.is-shop img.is-on[data-drift="b"] {
  animation: zpKenB 16s ease-in-out infinite alternate;
}
.zp-monge .film.is-shop img.is-on[data-drift="c"] {
  animation: zpKenC 15s ease-in-out infinite alternate;
}
@keyframes zpKenIntro {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}
@keyframes zpKenA {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.12) translate(-3%, -1.5%); }
}
@keyframes zpKenB {
  from { transform: scale(1.1) translate(-2%, 1%); }
  to { transform: scale(1.03) translate(2.2%, -2%); }
}
@keyframes zpKenC {
  from { transform: scale(1.03) translate(1.2%, 0); }
  to { transform: scale(1.11) translate(-1%, 2.4%); }
}

.zp-monge .glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.zp-monge .glow::before,
.zp-monge .glow::after {
  content: "";
  position: absolute;
  mix-blend-mode: screen;
}
.zp-monge .glow::before {
  width: 72%;
  height: 58%;
  left: 4%;
  top: 6%;
  background: radial-gradient(ellipse at center, rgba(232, 194, 122, .2), transparent 68%);
  animation: zpGlow 20s ease-in-out infinite alternate;
}
.zp-monge .glow::after {
  width: 62%;
  height: 52%;
  right: -4%;
  bottom: 4%;
  background: radial-gradient(ellipse at center, rgba(196, 92, 38, .16), transparent 70%);
  animation: zpGlow 26s ease-in-out infinite alternate-reverse;
}
@keyframes zpGlow {
  from { transform: translate(0, 0) scale(1); opacity: .5; }
  to { transform: translate(7%, 5%) scale(1.12); opacity: .88; }
}

.zp-monge .dust {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .38;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(243, 217, 164, .5), transparent),
    radial-gradient(1px 1px at 38% 64%, rgba(255, 255, 255, .22), transparent),
    radial-gradient(1.4px 1.4px at 71% 28%, rgba(232, 194, 122, .38), transparent),
    radial-gradient(1px 1px at 84% 76%, rgba(243, 217, 164, .28), transparent),
    radial-gradient(1.1px 1.1px at 52% 48%, rgba(255, 255, 255, .16), transparent);
  background-size: 280px 280px, 340px 340px, 260px 260px, 400px 400px, 220px 220px;
  animation: zpDust 38s linear infinite;
}
@keyframes zpDust {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 -280px, 36px -340px, -28px -260px, 18px -400px, -12px -220px; }
}
.zp-monge .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 35%, rgba(8,4,12,.55) 100%),
    linear-gradient(180deg, rgba(8,4,12,.35) 0%, transparent 22%, transparent 58%, rgba(8,4,12,.78) 100%);
}

.zp-monge .intro {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 24px 40px;
  text-align: center;
  transition: opacity .7s ease, visibility .7s;
}
.zp-monge .intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.zp-monge .intro h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.05;
  max-width: 14ch;
  text-shadow: 0 8px 40px rgba(0,0,0,.55);
  margin: 0;
  color: var(--cream);
}
.zp-monge .intro .sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--gold-soft);
}
.zp-monge .intro-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: calc(100% - 28px);
}
.zp-monge .sound,
.zp-monge .skip,
.zp-monge .mute {
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
}
.zp-monge .sound {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  padding: 14px 28px;
  font-size: 15px;
  background: rgba(20, 12, 28, .72);
  border-color: rgba(243, 217, 164, .45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.zp-monge .sound[hidden],
.zp-monge .mute[hidden] {
  display: none !important;
}
.zp-monge .mute {
  background: rgba(20, 12, 28, .55);
}
.zp-monge .bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
}
.zp-monge .bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width .15s linear;
}

.zp-monge .shop {
  position: relative;
  z-index: 6;
  display: none;
  flex-direction: column;
  min-height: 720px;
}
.zp-monge .shop.is-on { display: flex; }

.zp-monge .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  z-index: 4;
}
.zp-monge .brand {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.zp-monge .head-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--gold);
}

.zp-monge .mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 0;
  z-index: 4;
}
.zp-monge .eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.zp-monge .headline {
  position: relative;
  isolation: isolate;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 650;
  text-align: center;
  max-width: 18ch;
  line-height: 1.08;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 10px 36px rgba(0,0,0,.5);
}
.zp-monge .headline::before,
.zp-monge .headline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  pointer-events: none;
}
.zp-monge .headline::before {
  width: 12.4em;
  height: 3.8em;
  transform: translate(-50%, -52%);
  background:
    radial-gradient(ellipse 38% 72% at 14% 52%, rgba(8,4,12,.82) 0%, transparent 68%),
    radial-gradient(ellipse 52% 88% at 42% 44%, rgba(8,4,12,.9) 0%, transparent 70%),
    radial-gradient(ellipse 46% 80% at 68% 50%, rgba(8,4,12,.88) 0%, transparent 68%);
  filter: blur(16px);
}
.zp-monge .pets {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px);
}
.zp-monge .pet {
  min-width: 120px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.zp-monge .pet.is-on {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
}

.zp-monge .weights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  padding: 2px 4px 0;
}
.zp-monge .weights[hidden] { display: none; }
.zp-monge .weight {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(18, 8, 24, 0.4);
  border: 1px solid rgba(232, 194, 122, 0.28);
}
.zp-monge .weight.is-on {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  border-color: transparent;
}

.zp-monge.is-shop {
  overflow: visible;
  min-height: unset;
}
.zp-monge .shop.is-on { min-height: unset; }

.zp-monge .shelf-wrap { z-index: 4; padding: 12px 0 24px; }
.zp-monge .shelf {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 8px 18px 12px;
}
.zp-monge .card {
  flex: 0 0 180px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(18,8,24,.55));
  border: 1px solid rgba(232,194,122,.28);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: transform .25s ease, border-color .25s;
}
.zp-monge .card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  color: inherit;
}
.zp-monge .pack {
  position: relative;
  height: 168px;
  border-radius: 12px;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.zp-monge .pack.is-empty {
  background-image: none;
  background: linear-gradient(180deg, #f6efe4, #e8dcc8);
}
.zp-monge .pack.is-empty::after {
  content: "Monge";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  opacity: .45;
}
.zp-monge .pct {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  z-index: 1;
}
.zp-monge .brand a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,194,122,.45);
}
.zp-monge .brand a:hover { color: var(--gold); }
.zp-monge .name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 32px;
}
.zp-monge .buy {
  margin-top: auto;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d46a32, var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.zp-monge .hint {
  text-align: center;
  font-size: 11px;
  color: rgba(246,239,228,.55);
  padding: 0 18px 8px;
}
.zp-monge .empty {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--gold-soft);
}
.zp-monge .empty.is-on { display: block; }

@media (max-width: 640px) {
  .zp-monge:not(.is-shop) {
    width: 100%;
    max-height: min(88vh, 860px);
  }
  .zp-monge.is-shop { min-height: unset; overflow: visible; }
  .zp-monge .pets { width: 100%; max-width: 360px; }
  .zp-monge .pet { min-width: 0; flex: 1; }
  .zp-monge .weights { width: 100%; }
  .zp-monge .shelf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .zp-monge .card { flex: none; width: auto; min-width: 0; }
  .zp-monge .pack { height: 132px; }
  .zp-monge .name { min-height: 48px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .zp-monge .film img,
  .zp-monge .film.is-shop img.is-on,
  .zp-monge .glow::before,
  .zp-monge .glow::after,
  .zp-monge .dust,
  .zp-monge .bar > i { animation: none !important; transition: none !important; }
}
