/* The image and WebGL mesh share one footprint; rendering never shifts the page. */
mimikrew-booster.booster {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  position: relative;
  vertical-align: middle;
}
.booster .booster-stage {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
  aspect-ratio: 4 / 7;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: inherit;
  cursor: default;
  overflow: hidden;
  touch-action: pan-y;
}
.booster button.booster-stage,
.booster a.booster-stage {
  cursor: pointer;
}
.booster .booster-poster,
.booster .booster-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: none;
  transform: none;
  border: 0;
}
.booster.booster-ready .booster-poster {
  visibility: hidden;
}
.booster :focus-visible {
  outline: 2px solid #ffbf00;
  outline-offset: 2px;
}
.community-pack mimikrew-booster {
  width: 64px;
  height: 130px;
}
.pack-option mimikrew-booster {
  width: 64px;
  height: 130px;
}
.pack-slot-art mimikrew-booster {
  width: 75%;
  height: 94%;
}
.pack-slot-art:has(mimikrew-booster)::after {
  display: none;
}
.hero-pack-wrap mimikrew-booster {
  width: 100%;
  height: 100%;
}
.hero-pack-wrap:has(mimikrew-booster) {
  min-width: 170px;
  min-height: 310px;
}
.pool-tile-art:has(mimikrew-booster) {
  position: relative;
}
.pool-tile-art mimikrew-booster {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 230px;
}
.pool-tile-art .booster-stage {
  position: relative;
}
.pool-visual mimikrew-booster {
  width: 180px;
  height: 320px;
}
@media (max-width: 760px) {
  .community-pack mimikrew-booster {
    width: 52px;
    height: 116px;
  }
}

.booster.booster[hidden],
.booster.booster.hidden {
  display: none;
}
.booster.booster-inspect {
  display: flex;
  width: 190px;
  height: 340px;
  margin: 0 auto 20px;
}
#odds {
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.pool-art-default .booster {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 230px;
}
.booster.opening-pack {
  width: 190px;
  height: 340px;
}
.hero-pack-wrap:has(.booster) {
  height: 560px;
}
.pack-slot-art:has(.booster) {
  transform: none;
  animation: none;
}
.booster .booster-poster {
  padding: 6%;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .booster.booster,
  .booster.booster * {
    animation: none;
    transition: none;
  }
}

.hero-pack-wrap:has(.booster) {
  transform: rotate(3deg);
}

@media (max-width: 620px) {
  .hero-pack-wrap:has(.booster) {
    height: 370px;
  }
}

.community-pack .pack-odds-link {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.community-pack .pack-odds-link:hover {
  color: #ffbf00;
}

/* Match the V1 hero layout while retaining the shared accessible booster. */
.hero.hero-krew h1 {
  font-size: clamp(2.65rem, 4.6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero.hero-krew h1 span,
.hero.hero-krew h1 em {
  display: block;
}
.hero-krew .hero-copy {
  padding-right: 24px;
}
.hero-krew .hero-art {
  display: grid;
  place-items: center;
  padding: 36px 40px;
}
.hero-krew .hero-pack-wrap:has(.booster) {
  position: relative;
  inset: auto;
  width: min(100%, 360px);
  height: auto;
  min-height: 0;
  aspect-ratio: 576 / 1024;
}
.hero-krew .hero-pack-wrap .booster {
  position: absolute;
  inset: 0;
}
.hero-krew .card-one {
  right: 65%;
  top: 28%;
}
.hero-krew .card-two {
  right: 12%;
  top: 2%;
}
.hero-krew .card-three {
  right: 1%;
  top: 50%;
}
@media (max-width: 900px) {
  .hero-krew .hero-art {
    min-height: 480px;
    padding: 24px;
  }
  .hero-krew .hero-pack-wrap:has(.booster) {
    width: 240px;
  }
  .hero-krew .hero-copy {
    padding-right: 34px;
  }
}
@media (max-width: 620px) {
  .hero.hero-krew h1 {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }
  .hero-krew .hero-art {
    min-height: 420px;
  }
  .hero-krew .hero-pack-wrap:has(.booster) {
    width: 210px;
  }
}
