/* A: isolated gold poster. Shared navigation and motion are owned separately. */
.menu-preview .ma-main {
  --ma-gold: #e5c178;
  --ma-gold-soft: #cbb78c;
  --ma-text: #f4efdf;
  --ma-surface: #0c0b08;
  --ma-line: #827048;
  --ma-gutter: 16px;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  padding: 14px var(--ma-gutter) 16px;
  overflow: hidden;
  color: var(--ma-text);
  background: var(--ma-surface);
}

.menu-preview .ma-main *,
.menu-preview .ma-main *::before,
.menu-preview .ma-main *::after {
  box-sizing: border-box;
}

.menu-preview .ma-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.menu-preview .ma-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 3, 2, .75) 0%,
    rgba(3, 3, 2, .22) 24%,
    rgba(3, 3, 2, .05) 51%,
    rgba(3, 3, 2, .77) 82%,
    #080805 100%
  );
}

.menu-preview .ma-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: .88;
}

.menu-preview .ma-header {
  position: relative;
  z-index: 3;
}

.menu-preview[data-theme="a"] .menu-hud {
  width: 100%;
  color: var(--ma-text, #f4efdf);
  background: linear-gradient(110deg, rgba(7, 7, 5, .96), rgba(7, 7, 5, .57));
  border-color: rgba(203, 183, 140, .46);
}

.menu-preview .ma-stage {
  position: relative;
  z-index: 1;
  height: clamp(344px, calc(100svh - 414px), 500px);
  margin: 8px calc(-1 * var(--ma-gutter)) 0;
}

.menu-preview .ma-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.menu-preview .ma-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 35%, rgba(226, 177, 64, .14), transparent 60%),
    radial-gradient(ellipse at 20% 82%, rgba(214, 147, 52, .11), transparent 48%);
}

.menu-preview .ma-medallion {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 23%;
  width: 65%;
  max-width: 296px;
  height: auto;
  display: block;
  opacity: .96;
}

.menu-preview .ma-scene-mori {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 11%;
  margin: 0;
  color: #e5c991;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .23em;
}

.menu-preview .ma-scene-claim {
  position: absolute;
  z-index: 2;
  top: 76px;
  left: var(--ma-gutter);
  display: grid;
  gap: 1px;
  margin: 0;
  color: #d6c8a5;
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-size: clamp(19px, 5.15vw, 23px);
  font-style: italic;
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.055em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.menu-preview .ma-hero-anchor {
  position: absolute;
  z-index: 3;
  top: 27%;
  left: -6%;
  width: 112%;
}

.menu-preview .ma-hero {
  display: block;
  width: 100%;
  transform-origin: 50% 84%;
}

.menu-preview .ma-character {
  display: block;
  width: 100%;
  height: auto;
}

.menu-preview .ma-coin {
  position: absolute;
  z-index: 4;
  left: -48px;
  bottom: 58px;
  display: block;
  width: 118px;
  height: 118px;
  transform: rotate(-16deg);
  opacity: .82;
}

.menu-preview .ma-scene-vignette {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 58%,
    rgba(5, 5, 3, .16) 77%,
    rgba(5, 5, 3, .82) 100%
  );
}

.menu-preview .ma-action {
  position: absolute;
  z-index: 6;
  right: var(--ma-gutter);
  bottom: 10px;
  left: var(--ma-gutter);
}

.menu-preview[data-theme="a"] .menu-primary {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 88px;
  padding: 15px 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  color: #f6e3ad;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.menu-preview[data-theme="a"] .menu-primary-title {
  position: relative;
  z-index: 2;
  max-width: 100%;
  color: #f7e4ac;
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-size: clamp(23px, 6.8vw, 32px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}

.menu-preview[data-theme="a"] .menu-primary-subtitle {
  position: relative;
  z-index: 2;
  max-width: 100%;
  color: #d5c296;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.menu-preview[data-theme="a"] .menu-primary:not(:disabled):hover {
  opacity: .96;
}

.menu-preview[data-theme="a"] .menu-primary:not(:disabled):active {
  opacity: .86;
}

.menu-preview[data-theme="a"] .menu-primary:disabled {
  color: #b5aa8b;
  cursor: wait;
  opacity: .72;
}

.menu-preview .ma-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.menu-preview .ma-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 118px;
  padding: 13px 12px;
  overflow: hidden;
  align-items: flex-end;
  color: var(--ma-text);
  text-align: left;
  background: #0b0b07;
  border: 1px solid var(--ma-line);
  border-radius: 3px;
  cursor: pointer;
  touch-action: manipulation;
}

.menu-preview .ma-card-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.menu-preview .ma-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 3, .10) 0%,
    rgba(5, 5, 3, .36) 24%,
    rgba(5, 5, 3, .91) 73%,
    #080805 100%
  );
}

.menu-preview .ma-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-preview .ma-card-portrait {
  object-position: 50% 9%;
}

.menu-preview .ma-card-pack {
  object-position: 63% 36%;
}

.menu-preview .ma-card-label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-right: 14px;
}

.menu-preview .ma-card-icon,
.menu-preview .ma-card-arrow,
.menu-preview .ma-history-icon,
.menu-preview .ma-history-arrow {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-preview .ma-card-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 1px;
  color: var(--ma-gold);
}

.menu-preview .ma-card strong {
  color: var(--ma-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .01em;
}

.menu-preview .ma-card small {
  color: #d4c8ad;
  font-size: 12px;
  line-height: 1.35;
}

.menu-preview .ma-card-arrow {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 21px;
  width: 18px;
  height: 18px;
  color: var(--ma-gold);
}

.menu-preview .ma-card:hover,
.menu-preview .ma-card:active {
  border-color: var(--ma-gold);
  background: #17150d;
}

.menu-preview .ma-card:hover .ma-card-art::after,
.menu-preview .ma-card:active .ma-card-art::after {
  background: linear-gradient(
    180deg,
    rgba(5, 5, 3, .04) 0%,
    rgba(5, 5, 3, .36) 24%,
    rgba(5, 5, 3, .85) 73%,
    #080805 100%
  );
}

.menu-preview .ma-history {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 10px 12px;
  align-items: center;
  color: #e0d0a8;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  background: rgba(6, 6, 4, .9);
  border: 1px solid rgba(153, 127, 76, .56);
  border-radius: 3px;
  cursor: pointer;
  touch-action: manipulation;
}

.menu-preview .ma-history-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.menu-preview .ma-history-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.menu-preview .ma-history:hover,
.menu-preview .ma-history:active {
  color: #f7e4ac;
  background: #17150c;
  border-color: var(--ma-gold);
}

.menu-preview .ma-card:focus-visible,
.menu-preview .ma-history:focus-visible,
.menu-preview[data-theme="a"] .menu-primary:focus-visible {
  outline: 3px solid #fae0a0;
  outline-offset: 4px;
}

.menu-preview .ma-motto {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #b5a780;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 390px) {
  .menu-preview .ma-main { --ma-gutter: 18px; }
}

@media (min-width: 430px) {
  .menu-preview .ma-main { --ma-gutter: 20px; }
}

@media (max-height: 700px) {
  .menu-preview .ma-stage { height: 344px; }
  .menu-preview .ma-scene-claim { top: 60px; }
  .menu-preview .ma-motto { margin-top: 10px; }
}

@media (min-width: 768px) and (min-height: 800px) {
  .menu-preview .ma-stage { height: clamp(410px, calc(100svh - 414px), 500px); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-preview .ma-card,
  .menu-preview .ma-history,
  .menu-preview[data-theme="a"] .menu-primary {
    transition: none;
  }
}

.menu-preview .ma-art-fallback {
  position: absolute;
  z-index: 5;
  top: 40%;
  right: var(--ma-gutter);
  left: var(--ma-gutter);
  margin: 0;
  padding: 14px;
  color: #e0d0a8;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  background: rgba(8, 8, 5, .96);
  border: 1px solid var(--ma-line);
  border-radius: 3px;
  pointer-events: none;
}
