/* Brand paper + ticket stock. Colors stay DESIGN.md tokens. */

html,
body {
  background-color: var(--paper, #F3E6C9) !important;
  background-image: url("/backgrounds/paper-seamless-1x1.png") !important;
  background-size: 480px 480px !important;
  background-repeat: repeat !important;
  color: var(--ink, #1A140C);
}

@media (max-width: 899px) {
  html,
  body {
    background-image: url("/backgrounds/paper-phone-9x16.png") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center top !important;
  }
}

@media (min-width: 900px) {
  html,
  body {
    background-image: url("/backgrounds/paper-desktop-16x9.png") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center top !important;
  }
}

html body main.wrap .ticket.proto-ticket-stage {
  background-color: transparent !important;
  background-image: url("/backgrounds/ticket-blank-portrait.png") !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% auto !important;
}

@media (min-width: 900px) {
  html body main.wrap .ticket.proto-ticket-stage {
    background-image: url("/backgrounds/ticket-blank-wide.png") !important;
    background-size: 100% auto !important;
  }
}

/* Cutout on top of the ticket. No paper rectangle behind the drawing. */
html body main.wrap .ticket.proto-ticket-stage .proto-hero-art-wrap {
  position: relative !important;
  z-index: 6 !important;
  isolation: isolate !important;
  background: transparent !important;
  background-color: transparent !important;
}
html body main.wrap .ticket.proto-ticket-stage .proto-hero-dish-img {
  position: relative !important;
  z-index: 7 !important;
  mix-blend-mode: normal !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background: transparent !important;
}

.proto-dish-board,
.recipe-card.dish-board {
  background-color: transparent !important;
}

.cutout-drop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 1.25rem;
  pointer-events: none;
}

.cutout-drop img {
  width: min(28vw, 160px);
  height: auto;
  max-height: 160px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(1px 2px 0 rgba(26, 20, 12, 0.18));
}

@media (min-width: 900px) {
  .cutout-drop img {
    width: 180px;
    max-height: 180px;
  }
}
