/* Signal and Afterimage use the same poster, register and purchase-key layout. */
.bonus-office {
  width: min(476px, calc(100vw - 22px));
  max-height: calc(100svh - 22px);
  padding: 0;
}
.ticket-poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.58;
}
.poster-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 33%;
}
.office-title {
  position: absolute;
  z-index: 1;
  bottom: 16%;
  left: 6%;
}
.bonus-office .poster-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.office-spins {
  position: absolute;
  z-index: 1;
  bottom: 5%;
  left: 6%;
}
.ticket-machine {
  min-height: 146px;
  padding: 31px 6% 12px;
  position: relative;
  display: grid;
  grid-template-areas: "meters key" "wager key";
  grid-template-columns: minmax(0, 1fr) clamp(62px, 24%, 98px);
  grid-template-rows: auto minmax(39px, auto);
  gap: 5px clamp(7px, 3.3vw, 16px);
}
.ticket-stub {
  position: absolute;
  z-index: 2;
  width: 33px;
  height: 27px;
  object-fit: contain;
  top: 1px;
  left: 36%;
  transform: rotate(-7deg);
}
.ticket-meters {
  grid-area: meters;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.83fr);
  align-self: stretch;
  gap: 2px;
}
.ticket-meter {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 5px 4px;
}
.ticket-wager {
  grid-area: wager;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 3px;
}
.ticket-wager .ticket-meter {
  min-height: 37px;
}
.bonus-office .office-buy {
  grid-area: key;
  align-self: center;
  display: grid;
  justify-items: center;
  justify-self: center;
  gap: 4px;
  padding: 0;
  width: 100%;
  max-width: 90px;
}
.ticket-actuator {
  width: clamp(53px, 15vw, 77px);
  aspect-ratio: 44/40;
  display: grid;
  place-items: center;
  padding-bottom: 8%;
}
@media (max-height: 560px) and (orientation: landscape) {
  :is(#ticket-office, #shop).bonus-office[open] {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: min(760px, 94vw);
  }
  .ticket-poster {
    aspect-ratio: auto;
    min-height: 230px;
  }
  .office-title {
    bottom: 17%;
  }
  .ticket-console {
    padding: 9px 0;
    align-content: center;
  }
  .bonus-office .poster-close {
    left: 8px;
    right: auto;
    top: 8px;
  }
}
