/* Companion app page, ported from the approved design (designhtml/app.html).
   The design shipped this block inline in the page's \3c style>, so it was not part
   of the stylesheet port; it is reproduced here verbatim with the brand values
   swapped for var(--mm-*, <original design value>) tokens, the way every other
   ported file in this folder is written. No new design decisions. */

.app-page {
  padding: 34px 0 60px;
  min-height: calc(100vh - 72px);
  color: #f4ead6;
  background: var(--mm-surface-app, #17142f) var(--mm-img-texture, var(--mma-background-texture-multiply)) center/cover no-repeat;
  background-blend-mode: multiply;
}
.app-head {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: center;
}
.app-head h1,
.app-head h2 {
  margin: 0 0 10px;
  font-family: var(--mm-font-display, Cinzel, Georgia, serif);
  font-size: calc(clamp(1.6rem, 3.2vw, 2.5rem) * var(--mm-fs-head, 1));
  font-weight: 400;
  letter-spacing: 0.03em;
}
.app-head p {
  margin: 0;
  font-size: calc(1.02rem * var(--mm-fs-body, 1));
  line-height: 1.4;
  color: #d9d0c4;
}
.app-frame {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  aspect-ratio: 16/10;
  min-height: 520px;
  overflow: hidden;
  border: 3px solid var(--mm-gold, #d8b66c);
  border-radius: 10px;
  background: var(--mm-surface-app-frame, #251938) var(--mm-img-texture, var(--mma-background-texture-multiply)) center/cover no-repeat;
  background-blend-mode: multiply;
  box-shadow: 0 24px 60px #0008;
}
.app-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.app-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #f4ead6;
  text-align: center;
}
.app-fallback img {
  width: min(260px, 60%);
  height: auto;
  filter: drop-shadow(3px 3px 0 var(--mm-pink-shadow, #70324e));
}
.app-fallback p {
  margin: 0;
  max-width: 440px;
  font-size: calc(0.98rem * var(--mm-fs-body, 1));
  line-height: 1.4;
}
.app-frame.is-live .app-fallback {
  display: none;
}
.app-open {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px auto 0;
}
.app-open a {
  color: var(--mm-gold-light, #f5dfae);
  font-family: var(--mm-font-display, Cinzel, Georgia, serif);
  font-size: calc(0.76rem * var(--mm-fs-head, 1));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-note {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: calc(0.82rem * var(--mm-fs-body, 1));
  line-height: 1.4;
  color: #d9d0c4;
  text-align: center;
}
@media (max-width: 580px) {
  .app-frame {
    min-height: 460px;
    aspect-ratio: auto;
    height: 78vh;
    border-width: 2px;
  }
  .app-page {
    padding: 24px 0 44px;
  }
}
