/* weightlifter shell overrides, loaded after the core external/style.css */

/* each option id gets its own coloured ticket webp and the stock img is hidden */
.buy_bonus_item[data-option-id="mustache"] .buy_bonus_item-background {
  background: url("images/buy_bonus/ticket_mustache.webp") center / 100% 100% no-repeat;
}
.buy_bonus_item[data-option-id="revive"] .buy_bonus_item-background {
  background: url("images/buy_bonus/ticket_revive.webp") center / 100% 100% no-repeat;
}
.buy_bonus_item[data-option-id="belt"] .buy_bonus_item-background {
  background: url("images/buy_bonus/ticket_belt.webp") center / 100% 100% no-repeat;
}
.buy_bonus_item[data-option-id="mustache"] .buy_bonus_item-background-image,
.buy_bonus_item[data-option-id="belt"] .buy_bonus_item-background-image,
.buy_bonus_item[data-option-id="revive"] .buy_bonus_item-background-image {
  visibility: hidden;
}

.buy_bonus_description_container[data-option-id="mustache"] .buy_bonus_description_background {
  background: url("images/buy_bonus/ticket_mustache_open.webp") center / 100% 100% no-repeat;
}
.buy_bonus_description_container[data-option-id="revive"] .buy_bonus_description_background {
  background: url("images/buy_bonus/ticket_revive_open.webp") center / 100% 100% no-repeat;
}
.buy_bonus_description_container[data-option-id="belt"] .buy_bonus_description_background {
  background: url("images/buy_bonus/ticket_belt_open.webp") center / 100% 100% no-repeat;
}
.buy_bonus_description_container[data-option-id="mustache"] .buy_bonus_description_background-image,
.buy_bonus_description_container[data-option-id="belt"] .buy_bonus_description_background-image,
.buy_bonus_description_container[data-option-id="revive"] .buy_bonus_description_background-image {
  visibility: hidden;
}

/* the core grey-out targets the img elements, so mirror it on the divs that now carry the art */
.buy_bonus_item.is-disabled .buy_bonus_item-background {
  filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.25)) grayscale(100%);
}
.buy_bonus_description_container.is-disabled .buy_bonus_description_background {
  filter: grayscale(100%);
}

/* buy bonus is a multi-select toggle panel (30.07 mockup), the tickets no longer buy on tap */
.buy_bonus_item .wl-bb-price-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: -8px;
}
.buy_bonus_item .wl-bb-price-row .buy_bonus_item-price.isOption {
  position: static;
}
.buy_bonus_item .wl-bb-toggle {
  position: relative;
  flex: none;
  width: 108px;
  height: 54px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 100px;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transition: background 0.25s ease-in-out;
}
.buy_bonus_item .wl-bb-toggle .wl-bb-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(63.43% 63.43% at 50% 50%, #ffffff 0%, #d9d9d9 100%);
  transform: translate(0, -50%);
  transition: transform 0.25s ease-in-out;
  box-shadow:
    inset 0 -2px 1px rgba(64, 64, 64, 0.5),
    inset 0 2px 1px rgba(255, 255, 255, 0.5);
}
.buy_bonus_item .wl-bb-toggle.is-on {
  background: rgba(0, 0, 0, 0.65);
}
.buy_bonus_item .wl-bb-toggle.is-on .wl-bb-knob {
  transform: translate(54px, -50%);
  background: radial-gradient(63.43% 63.43% at 50% 50%, #ffb03a 0%, #ff6a2a 100%);
}

/* a ticket the balance cannot cover with the armed ones goes grey and its toggle stays put */
.buy_bonus_item.wl-bb-unaffordable .buy_bonus_item-background {
  filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.25)) grayscale(100%);
}
.buy_bonus_item.wl-bb-unaffordable .wl-bb-toggle {
  opacity: 0.4;
  cursor: default;
}

/* the toggles arm the round, so the description card keeps only its price pill */
.buy_bonus_buy_button {
  display: none;
}

/* the price pill and the pager are DOM, not ticket art, so they take the mockup spacing */
.buy_bonus_description_content .buy_bonus_price_container {
  margin-bottom: 20px;
}
.buy_bonus_description_item {
  margin-bottom: 14px;
}

/* the core styles main_menu_title and menu_info_description but has no subtitle between them, per the 14.08 paytable art */
.menu_info_subtitle {
  width: 100%;
  color: #fff;
  font-family: Roboto;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.3px;
  text-align: center;
  text-transform: uppercase;
}

/* the bonus art sits under its own paragraph and reads as part of it, not as a new block */
.menu_info_wrapper .menu_info_image {
  display: block;
  margin: 0 auto;
}

/* the core fades the bottom 20% of the scroller, so the last line needs blank space to scroll up into */
.menu_info_wrapper {
  padding-bottom: 120px;
}

/* the shell sizes the scaler by pointer media queries but the engine scales by channel, the body class from other.ts keeps them in sync */
body.channel-mobile #ui-scaler {
  width: 720px;
  height: 1280px;
}
@media screen and (min-aspect-ratio: 1/1) {
  body.channel-mobile #ui-scaler {
    width: 1280px;
    height: 720px;
  }
}
body.channel-desktop #ui-scaler {
  width: 2276px;
  height: 1280px;
}

/* the landscape scaler runs 16/9 bigger than the portrait bootstrap so the loader shrinks back to the same visual size */
@media screen and (min-aspect-ratio: 1/1) {
  body.channel-mobile #external_loader .loadingContainer {
    transform: scale(0.5625);
  }
}

/* the mockup dims the whole screen instead of dropping the pages into a grey box */
.intro_screens_container {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  justify-content: center !important;
  gap: 20px;
  transform: translateY(-4%);
}
#intro_screens_wrapper { background: rgba(0, 0, 0, 0.6); }
/* the shell intro logo retires, this one serves the intro and the game screen draws its own in the scene */
.intro_screens_logo_image { display: none !important; }
#wl_game_logo {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(48%, 397px);
  aspect-ratio: 397 / 85;
  background: center / contain no-repeat;
  z-index: 1001;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}
#wl_game_logo.is-hidden { opacity: 0; }
/* the pages size themselves now, so the slider follows the text instead of dropping to the floor */
.intro_screens_particle_wrapper, #intro_screens_particle, .intro_view_page { height: auto; }
/* the mockup has no press anywhere line, and it landed over the spin button anyway */
.click_to_continue_wrapper { display: none !important; }

/* intro pages: the drawing carries its own headline so only the two lines sit under it */
.intro_wl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.intro_wl_art {
  max-width: 620px;
  max-height: 420px;
  object-fit: contain;
}
.intro_wl_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.intro_wl_line {
  color: #fff;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}
/* landscape is half as tall, so the drawing gives its height back to the text */
@media screen and (min-aspect-ratio: 1/1) {
  .intro_screens_container { gap: 12px; }
  #wl_game_logo { top: 4.5%; width: min(20%, 397px); }
  .intro_wl { gap: 16px; }
  .intro_wl_art { max-width: 470px; max-height: 250px; }
  .intro_wl_line { font-size: 30px; }
}

/* WEIGHT-74: the build number stands in the screen corner like the rest of the portfolio */
#wl_game_version {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 1002;
  pointer-events: none;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1.8vh, 18px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
