/* Authored image sheets are clipped at runtime; their source pixels stay intact. */
.ingredient-art {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  vertical-align: middle;
  border-radius: 22%;
  background: #fffaf0;
  box-shadow: none;
}
.ingredient-art > img {
  position: absolute;
  left: calc(var(--ingredient-col, 0) * -100%);
  top: calc(var(--ingredient-row, 0) * -100%);
  width: 600%; height: 300%; max-width: none;
  object-fit: fill;
  margin: 0; border: 0; border-radius: 0;
  filter: none;
  pointer-events: none;
}
.ingredient-art-single > img { width: 100%; height: 100%; object-fit: contain; }
.ingredient-art-fallback { display: inline-grid; place-items: center; color: #293d30; font: 800 11px/1 var(--font-main); }
.ingredient-art.market-icon { border-radius: 14px; }

/* Real progress controls the transition from loading artwork to the live world. */
#boot-screen { overflow: hidden; background: #e9e2d0; }
#boot-screen .boot-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 64% center;
}
#boot-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#233a2966,transparent 70%); }
.boot-card {
  z-index: 1; position: relative;
  display: grid; justify-items: center; gap: 20px;
  width: min(410px, calc(100vw - 40px)); padding: 34px 26px;
  border-radius: 28px; border: 1px solid #fff7e8;
  background: #fffaf0f2; box-shadow: 0 22px 70px #1e302a30;
}
#boot-screen .boot-card > img { width: min(100%, 340px); }
#boot-screen .boot-card p { margin: 0; font-size: 16px; }
.main-menu-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; pointer-events: none; opacity: 1; transition: opacity .5s ease; z-index: 0; }
.main-menu-world-ready .main-menu-art { opacity: 0; }
#main-menu::before { z-index: 1; }
#main-menu .main-menu-brand, #main-menu .main-menu-card, #main-menu .menu-festival, #main-menu .menu-footer { z-index: 2; }

.festival-art { position: relative; display: block; overflow: hidden; flex: none; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; background: #e7ead9; }
.festival-art-crop { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 3 / 2; transform: translateY(-50%); overflow: hidden; }
.festival-art-crop > img { position: absolute; width: 400%; height: 200%; max-width: none; left: calc(var(--festival-col,0) * -100%); top: calc(var(--festival-row,0) * -100%); object-fit: fill; }
.hub-event-hero > .festival-art { margin-bottom: 4px; aspect-ratio: 3 / 1; }
.menu-festival .festival-art { width: 72px; border-radius: 11px; }
#main-menu .menu-festival-icon { display: block; line-height: 0; }
@media (max-width:700px) {
  .menu-festival .festival-art { width: 46px; }
  .boot-card { padding: 26px 22px; }
  .hub-event-hero > .festival-art { aspect-ratio: 3 / 1; }
}
@media (prefers-reduced-motion:reduce) { .main-menu-art { transition: none; } }
