/* ballonix — краш-игра «воздушный шар».
   Размеры в em от базового шрифта html (масштаб по ширине экрана), как у оригинала.
   Состояния: body.is--started (полёт), body.is--lose (шар лопнул), body.is--modal-open;
   #balloon.is--end (долетел), #balloon.is--lose. */

@keyframes bxWind {
  0%,
  80% {
    opacity: 1;
    transform: scale(3) translateY(100vh);
  }
  to {
    opacity: 0;
    transform: scale(3) translateY(-100vh);
  }
}
@keyframes bxModalSwing {
  0%,
  10%,
  90%,
  to {
    transform: rotate(7deg);
  }
  40%,
  60% {
    transform: rotate(-7deg);
  }
}
@keyframes bxBalloonShrink {
  0%,
  15% {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(0.5) translateY(20em);
  }
}
@keyframes bxBalloonSway {
  0%,
  to {
    transform: scale(0.5) rotate(0deg) translateY(20em);
  }
  50% {
    transform: scale(0.5) rotate(-2deg) translateY(20em);
  }
}
@keyframes bxCapGrow {
  0% {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
@keyframes bxRopeLeft {
  0% {
    transform: rotate(3deg) scale(1) translateX(0);
  }
  to {
    transform: rotate(-5deg) scale(1.06) translateX(-5em);
  }
}
@keyframes bxRopeRight {
  0% {
    transform: rotate(-3deg) scaleX(-1) scale(1) translateX(0);
  }
  to {
    transform: rotate(4deg) scaleX(-1) scale(1.06) translateX(-5em);
  }
}
@keyframes bxScoreUp {
  0% {
    transform: translateY(0);
  }
  to {
    transform: translateY(-25em);
  }
}
@keyframes bxFall {
  0% {
    transform: translateY(0);
  }
  to {
    transform: translateY(200vh);
  }
}
@keyframes bxBangFade {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ---------- base ---------- */

*,
::after,
::before {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
img {
  width: 100%;
}
button {
  font: inherit;
}
html,
body {
  height: 100%;
}
html {
  background: #db85b3;
  font-size: min(4.5px + 5.5 * (100vw - 375px) / 1545, 10px);
}
body {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 80%;
}
@media (max-width: 1024px) {
  body {
    font-size: 100%;
  }
}

/* ---------- loader ---------- */

.bx-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100dvh + 2px);
  padding: 15px;
  overflow: hidden;
  background: linear-gradient(180deg, #592fb3 0%, #d480b4 50%, #db85b3 100%), #3d3d3d;
}
.bx-loader.is--loaded {
  display: none;
}
.bx-loader__logo {
  width: 100%;
  max-width: 400px;
  margin-bottom: 35px;
}
.bx-loader__bar {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 28px;
  padding: 4px;
  border-radius: 100px;
  background: linear-gradient(to right, #ffbe14, #ff981e);
}
.bx-loader__bar::before {
  position: absolute;
  inset: 4px;
  content: '';
  border-radius: 100px;
  background-color: #fff;
}
.bx-loader__fill {
  position: relative;
  z-index: 2;
  width: 0;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(to right, #1f0177, #8000ff);
  transition: width 0.5s ease;
}
@media (max-width: 767px) {
  .bx-loader__logo {
    max-width: 300px;
    margin-top: -25%;
  }
  .bx-loader__bar {
    max-width: 220px;
  }
}

/* ---------- page & sky ---------- */

.bx-page {
  position: relative;
  display: flex;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.bx-sky {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 550em;
  background: linear-gradient(180deg, #201988 0, #e09cff 100%);
}

.bx-bird,
.bx-cloud,
.bx-glade,
.bx-shadow {
  position: absolute;
  background-repeat: no-repeat;
}

.bx-bird {
  width: 34em;
  height: 34em;
  background-size: contain;
  background-position: center;
}
.bx-bird.is--1 {
  bottom: 150em;
  right: calc(50% - 111em);
  background-image: url(../img/birds.webp);
  transform: scaleX(-1);
}
.bx-bird.is--2 {
  bottom: 220em;
  left: calc(50% - 105em);
  background-image: url(../img/birds.webp);
}
.bx-bird.is--3 {
  width: 30em;
  height: 30em;
  bottom: 270em;
  left: calc(50% - 105em);
  background-image: url(../img/chaika.webp);
}
@media (max-width: 767px) {
  .bx-bird.is--1 {
    right: calc(50% - 60em);
  }
  .bx-bird.is--2 {
    left: calc(50% - 65em);
  }
  .bx-bird.is--3 {
    display: none;
  }
}

.bx-cloud {
  background-size: contain;
  background-position: bottom center;
}
.bx-cloud.is--1 {
  left: -1%;
  bottom: 20em;
  width: 102%;
  height: 100vh;
  background-image: url(../img/cloud-1.webp);
}
.bx-cloud.is--2 {
  width: 148em;
  height: 46em;
  left: calc(50% - 150em);
  bottom: 180em;
  background-image: url(../img/cloud-2.webp);
}
.bx-cloud.is--3 {
  width: 98em;
  height: 32em;
  right: calc(50% - 150em);
  bottom: 240em;
  background-image: url(../img/cloud-3.webp);
}
.bx-cloud.is--4 {
  width: 118em;
  height: 18em;
  left: calc(50% - 150em);
  bottom: 350em;
  background-image: url(../img/cloud-4.webp);
}
.bx-cloud.is--5 {
  width: 40em;
  height: 12em;
  right: calc(50% - 100em);
  bottom: 410em;
  background-image: url(../img/cloud-5.webp);
}
@media (max-width: 767px) {
  .bx-cloud.is--1 {
    width: 288em;
    height: 136em;
    bottom: 40em;
    left: calc(50% - 144em);
  }
  .bx-cloud.is--2 {
    left: calc(50% - 120em);
  }
  .bx-cloud.is--3 {
    right: calc(50% - 120em);
  }
  .bx-cloud.is--4 {
    left: calc(50% - 100em);
  }
  .bx-cloud.is--5 {
    right: calc(50% - 60em);
  }
}

.bx-glade {
  left: -1%;
  bottom: -5em;
  width: 102%;
  height: 100vh;
  background-size: contain;
  background-position: bottom center;
  background-image: url(../img/glade.webp);
}
@media (max-width: 767px) {
  .bx-glade {
    width: 288em;
    height: 136em;
    bottom: 0;
    left: calc(50% - 144em);
  }
}

.bx-shadow {
  left: calc(50% - 70em);
  bottom: 18em;
  width: 140em;
  height: 22em;
  background-size: contain;
  background-position: center;
  background-image: url(../img/shadow.webp);
}
@media (max-width: 767px) {
  .bx-shadow {
    left: calc(50% - 60em);
    bottom: 27em;
    width: 120em;
    height: 18em;
  }
}

/* ---------- top bar ---------- */

.bx-top {
  position: absolute;
  z-index: 2;
  left: 4em;
  top: 2.6em;
  display: grid;
  gap: 2em;
  width: calc(100% - 8em);
  align-items: center;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'logo history spacer';
}
@media (max-width: 767px) {
  .bx-top {
    top: 4em;
    font-size: 110%;
    grid-template-columns: auto 1fr;
    grid-template-areas: 'logo spacer' 'history history';
  }
}
.bx-top__logo {
  grid-area: logo;
  width: 14.1em;
  height: 3.4em;
}
.bx-top__spacer {
  grid-area: spacer;
  width: 14.1em;
  height: 3.4em;
}
.bx-history,
.bx-history__item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bx-history {
  grid-area: history;
  justify-self: center;
  gap: 1em;
  width: min-content;
  padding: 0.6em 1em;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.2);
}
.bx-history__item {
  width: 12.3em;
  height: 4em;
  border-radius: 4px;
  background: #102a80;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 767px) {
  .bx-history__item:nth-child(n + 6) {
    display: none;
  }
}
.bx-history__item span {
  color: inherit;
  text-align: center;
  font-size: 2em;
}
.bx-history__item.is--red {
  color: #ef3034;
}
.bx-history__item.is--purple {
  color: #c464f5;
}
.bx-history__item.is--orange {
  color: #fd8b2a;
}

/* ---------- balloon ---------- */

.bx-balloon {
  position: absolute;
  left: calc(50% - 39em);
  bottom: 22em;
  width: 78em;
  height: 119em;
  font-size: 120%;
}
@media (max-width: 1023px) {
  .bx-balloon {
    font-size: 130%;
    bottom: 25em;
  }
}
.bx-balloon__envelope,
.bx-balloon__body,
.bx-balloon__cap,
.bx-balloon__rope,
.bx-balloon__fire,
.bx-balloon__chicken,
.bx-balloon__basket,
.bx-balloon__score {
  position: absolute;
}
.bx-balloon__envelope,
.bx-balloon__cap,
.bx-balloon__rope,
.bx-balloon__fire,
.bx-balloon__chicken,
.bx-balloon__basket {
  background-size: contain;
  background-repeat: no-repeat;
}
.bx-balloon__body {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.bx-balloon__envelope {
  left: calc(50% - 70em);
  bottom: 63em;
  width: 140em;
  height: 140em;
  background-position: center bottom;
  background-image: url(../img/balloon-1.webp);
}
.bx-balloon__cap {
  left: calc(50% - 70em);
  bottom: 58em;
  width: 140em;
  height: 140em;
  background-position: center top;
  background-image: url(../img/balloon-cap.webp);
  transform: scale(0.75);
}
.bx-balloon__rope {
  width: 35em;
  bottom: 42em;
  height: 93em;
  background-position: center;
  background-image: url(../img/bucket-row.webp);
}
.bx-balloon__rope.is--1 {
  left: -5em;
  transform: rotate(3deg);
}
.bx-balloon__rope.is--2 {
  right: -4em;
  transform: rotate(-3deg) scaleX(-1);
}
.bx-balloon__fire {
  background-position: center bottom;
}
.bx-balloon__fire.is--1 {
  width: 30em;
  height: 20em;
  bottom: 40em;
  left: calc(50% - 15em);
  background-image: url(../img/fire-1.webp);
}
.bx-balloon__fire.is--2 {
  display: none;
  width: 16em;
  height: 20em;
  bottom: 45em;
  left: calc(50% - 7em);
  background-image: url(../img/fire-2.webp);
}
.bx-balloon__chicken {
  left: calc(50% - 11.5em);
  bottom: 13.5em;
  width: 25em;
  height: 28em;
  background-position: center bottom;
  background-image: url(../img/chicken-1.webp);
}
.bx-balloon__basket {
  left: 17.5%;
  top: 0;
  width: 65%;
  height: 100%;
  background-position: center bottom;
  background-image: url(../img/bucket-2.webp);
}
.bx-balloon__wind {
  position: absolute;
  left: 0;
  bottom: 0;
  display: none;
  width: 100%;
  height: 100vh;
  opacity: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(../img/wind.webp);
  animation: bxWind 4.75s ease-in-out infinite;
  animation-delay: 1.5s;
}
/* Центр — растяжкой на ширину шара, без translateX(-50%): Safari на iOS в анимации считает процентный сдвиг
   от ширины на старте («100»), а в полёте сумма шире («100.00») — текст уезжал вправо и прыгал в центр. */
.bx-balloon__score {
  bottom: 75em;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .bx-balloon__score {
    bottom: 85em;
  }
}
@media (max-width: 767px) and (max-height: 741px) {
  .bx-balloon__score {
    bottom: 75em;
  }
}
.bx-balloon__amount,
.bx-balloon__multiplier {
  color: #fff;
  text-align: center;
}
.bx-balloon__amount {
  font-size: 9.2em;
  white-space: nowrap;
}
.bx-balloon__multiplier {
  font-size: 5em;
}

/* Текст проигрыша (texts.loseText) — на месте суммы, пока шар лопается. */
.bx-lose {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 32%;
  display: none;
  width: 100%;
  padding: 0 16px;
  color: #fff;
  text-align: center;
  font-size: 9.2em;
  text-shadow: 0 0.05em 0.2em rgba(0, 0, 0, 0.5);
}
.is--lose .bx-lose {
  display: block;
}

/* ---------- control panel ---------- */

.bx-panel {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 5em;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1023px) {
  .bx-panel {
    bottom: 60px;
  }
}
.bx-panel__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  width: 100%;
  max-width: 156em;
  min-height: 15.6em;
  padding: 1.3em 1.3em 1.3em 2em;
  border-radius: 2.5em;
  background-color: #16171b;
}
@media (max-width: 1023px) {
  .bx-panel__inner {
    width: auto;
    max-width: unset;
    gap: 0;
    padding: 1.3em 0 1.3em 1em;
  }
}
.bx-panel__stats,
.bx-stat {
  display: flex;
  gap: 1.5em;
}
.bx-panel__stats {
  align-items: center;
}
.bx-stat {
  flex-direction: column;
  justify-content: center;
  width: 35em;
  height: 13em;
  padding: 1.6em 2.5em;
  border-radius: 0.9em;
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 1023px) {
  .bx-stat {
    display: none;
    gap: 0;
  }
}
.bx-stat__label,
.bx-control__label {
  color: #fff;
  font-size: 2.3em;
  opacity: 0.7;
}
.bx-stat__value,
.bx-control__value {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 3em;
}
.bx-coin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 100%;
  background-color: #fff;
  color: #000;
  font-size: 0.7em;
  line-height: 1;
}
@media (max-width: 1023px) {
  .bx-stat.is--balance {
    position: absolute;
    top: -7em;
    left: calc(50% - 41.5em);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 0 3em;
    border-radius: 1.2em;
    background-color: #16171b;
  }
  .bx-stat.is--balance .bx-stat__value {
    flex-direction: row-reverse;
    gap: 4px;
  }
}

.bx-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 68.5em;
}
@media (max-width: 1023px) {
  .bx-controls {
    width: 82.5em;
  }
}
.bx-control {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 13em;
  gap: 1.5em;
  padding: 1.6em 4.5em;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.bx-control.is--left {
  width: 34.3em;
  background-image: url(../img/control-panel-left.webp);
}
.bx-control.is--left svg {
  position: absolute;
  right: 3em;
  width: 7.1em;
  height: 5.7em;
  font-size: 95%;
}
.bx-control.is--left svg.is--up {
  top: 1em;
}
.bx-control.is--left svg.is--down {
  bottom: 1em;
  right: 2.75em;
}
.bx-control.is--right {
  align-items: center;
  height: 14em;
  width: 19.5em;
  background-image: url(../img/control-panel-right.webp);
}
@media (max-width: 1023px) {
  .bx-control.is--right {
    width: 34.3em;
    background-image: url(../img/control-panel-right-mob.webp);
  }
}
.bx-control.is--right svg {
  width: 6.4em;
  height: 6.4em;
  margin-left: 1em;
}

/* Стрелки ставки и автозапуск — кликабельны до взлёта (во время полёта панель неактивна, см. .is--started). */
.bx-control.is--left svg,
.bx-control.is--right {
  cursor: pointer;
}
.bx-control.is--left svg.is--disabled {
  opacity: 0.35;
  cursor: default;
}
.bx-control.is--left svg:not(.is--disabled):active,
.bx-control.is--right:active svg {
  transform: scale(0.9);
}
.bx-control.is--right.is--active svg {
  animation: bxAutoplaySpin 1.2s linear infinite;
}
@keyframes bxAutoplaySpin {
  to {
    transform: rotate(360deg);
  }
}

.bx-action {
  position: absolute;
  top: calc(50% - 9.25em);
  right: 17.5em;
  border-radius: 100%;
  transition: all 0.1s ease-in-out;
}
@media (max-width: 1023px) {
  .bx-action {
    right: 31.5em;
  }
}
.bx-action:hover {
  box-shadow: 0 0 9px 0 #fa0;
}
.bx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18.5em;
  height: 18.5em;
  border: 0;
  border-radius: 100%;
  overflow: hidden;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}
.bx-btn--play {
  background-image: url(../img/btn-start.webp);
}
.bx-btn--cashout {
  display: none;
  background-image: url(../img/btn-cashout.webp);
}
.bx-btn span {
  margin-bottom: 0.1em;
  color: #fff;
  text-align: center;
  text-shadow: 0 0.1em 0.2em rgba(0, 0, 0, 0.5);
  font-size: 2.4em;
}

.bx-last-win {
  position: absolute;
  left: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 43px;
  background-color: #222327;
  color: #fff;
  font-size: 18px;
}
@media (max-width: 1023px) {
  .bx-last-win {
    display: flex;
  }
}

/* ---------- modal ---------- */

.bx-modal,
.bx-modal::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.bx-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 1023px) {
  .bx-modal {
    font-size: 80%;
  }
}
.bx-modal::before {
  content: '';
  display: block;
  background: rgba(217, 217, 217, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bx-modal.is--active {
  opacity: 1;
  visibility: visible;
}
.bx-modal__content {
  position: absolute;
  z-index: 2;
  top: calc(50% - 29em);
  left: calc(50% - 50em);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100em;
  height: 58em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(../img/modal-frame.webp);
  animation: bxModalSwing 2s ease-in-out infinite;
}
.bx-modal__title {
  position: absolute;
  left: 14.85em;
  top: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 71.25em;
  height: 12.6em;
  padding: 0 16px;
  border-radius: 6em;
  background: #ffcb29;
}
.bx-modal__title span {
  color: #331b00;
  font-size: 4.2em;
  text-align: center;
}
.bx-modal__text {
  max-width: 100%;
  padding: 0 32px;
  color: #fff;
  font-size: 6.3em;
  text-align: center;
  text-shadow: 0 0.1em 0 #014715;
}
@media (max-width: 1023px) {
  .bx-modal__text {
    padding: 0 16px;
  }
}
.bx-modal__btn {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1em;
  transform: translateX(-50%);
}
.bx-modal__btn button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 39em;
  height: 12.6em;
  padding: 0 5em;
  border: 0;
  border-radius: 6em;
  background: #fff;
  cursor: pointer;
}
.bx-modal__btn button span {
  color: #3dc55b;
  text-align: center;
  font-size: 7em;
  white-space: nowrap;
}
.bx-modal__coins {
  position: absolute;
  z-index: 2;
  width: 110em;
  height: 110em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(../img/coins.webp);
  mix-blend-mode: screen;
}
.bx-modal__coins.is--1 {
  left: calc(50% - 120em);
  top: calc(50% - 50em);
}
.bx-modal__coins.is--2 {
  right: calc(50% - 120em);
  top: calc(50% - 80em);
  transform: scaleX(-1);
}
@media (max-width: 1023px) {
  .bx-modal__coins.is--1 {
    top: calc(50% - 90em);
    left: calc(50% - 40em);
    transform: scaleX(-1);
  }
  .bx-modal__coins.is--2 {
    top: 50%;
    right: calc(50% - 42em);
    transform: unset;
  }
}

/* Дождь монет при выигрыше: gif проигрывается один раз, слой виден 1.5 с (как у оригинала — поверх всего). */
.bx-effects {
  position: absolute;
  z-index: 999;
  left: 0;
  top: 0;
  display: none;
  width: 100%;
  height: 100%;
}
.bx-effects.is--visible {
  display: flex;
}
.bx-effects__block {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ---------- states ---------- */

.is--modal-open .bx-panel {
  z-index: 0;
}
.is--lose .bx-panel .bx-btn {
  pointer-events: none !important;
}

.is--started .bx-balloon {
  bottom: 2em;
  transition: all 0.3s ease-in-out;
  animation:
    bxBalloonShrink 2s ease-in-out 1,
    bxBalloonSway 5s ease-in-out infinite;
  animation-delay: 0s, 2s;
}
@media (max-width: 1023px) {
  .is--started .bx-balloon {
    bottom: 10em;
  }
}
/* Выигрыш: шар замирает — движение на паузе, кадр анимации остановлен в main.js. */
.is--started .bx-balloon.is--won {
  animation-play-state: paused;
}
.is--started .bx-balloon__cap {
  animation: bxCapGrow 9.5s ease-in-out forwards;
}
.is--started .bx-balloon__rope.is--1 {
  animation: bxRopeLeft 9.5s ease-in-out forwards;
}
.is--started .bx-balloon__rope.is--2 {
  animation: bxRopeRight 9.5s ease-in-out forwards;
}
.is--started .bx-balloon__score {
  display: flex;
  animation: bxScoreUp 2s ease-in-out forwards;
}
.is--started .bx-balloon__fire.is--2,
.is--started .bx-balloon__wind {
  display: flex;
}
.is--started .bx-balloon__chicken {
  background-image: url(../img/chicken-2.webp);
}
.is--started .bx-balloon__envelope {
  background-image: url(../img/balloon.webp);
}
.is--started .bx-balloon.is--end .bx-balloon__envelope {
  background-image: url(../img/balloon-3.webp);
}
.is--started .bx-balloon.is--end .bx-balloon__cap {
  left: calc(50% - 71em);
  bottom: 60em;
  width: 142em;
  height: 142em;
}
.is--started .bx-balloon.is--lose .bx-balloon__body {
  animation: bxFall 0.5s ease-in-out forwards;
}
.is--started .bx-balloon.is--lose .bx-balloon__envelope {
  background-image: url(../img/bang.webp);
  animation: bxBangFade 0.5s ease-in-out forwards;
}
.is--started .bx-balloon.is--lose .bx-balloon__cap,
.is--started .bx-panel .bx-btn--play {
  display: none;
}
.is--started .bx-control {
  opacity: 0.8;
  pointer-events: none;
}
.is--started .bx-btn--cashout {
  display: flex;
}

/* ---------- 1.0.6: подписи кнопок, поле ставки, загрузка в Get bonus ---------- */

/* Подписи PLAY / CASH OUT / LAST WIN заглавными, как у оригинала, — и для сохранённых дизайнов со строчными текстами. */
.bx-btn span,
.bx-last-win {
  text-transform: uppercase;
}
.bx-btn span {
  font-size: 2.7em;
  font-weight: 800;
}
/* CASH OUT — тёмный текст на жёлтой кнопке, как в оригинальной игре (белый сливался). */
.bx-btn--cashout span {
  color: #4a2200;
  text-shadow: 0 0.06em 0 rgba(255, 255, 255, 0.45);
}

/* Ставка — поле ввода: нажать и вписать любое число (границы minBet…maxBet применяются при выходе из поля). */
.bx-bet-input {
  width: 4.2em;
  min-width: 0;
  padding: 0 0 0.05em;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}
.bx-bet-input:focus {
  border-bottom-color: #fff;
}

/* Установка PWA по Get bonus: bootstrap ставит data-td-install-state на CTA (data-td-install-progress) —
   текст приглушён, в центре крутится кольцо, нажатия заблокированы до конца установки. */
.bx-modal__btn button {
  position: relative;
}
.bx-modal__btn .bx-cta-loader {
  font-size: 1em; /* не наследовать font-size 7em подписи кнопки */
}
.bx-cta-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 8em;
  height: 8em;
  margin: -4em 0 0 -4em;
  border: 1em solid #3dc55b;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: bxCtaSpin 1s linear infinite;
}
.bx-modal__btn button[data-td-install-state] {
  pointer-events: none;
}
.bx-modal__btn button[data-td-install-state] .bx-cta-text {
  opacity: 0.2;
}
.bx-modal__btn button[data-td-install-state] .bx-cta-loader {
  display: block;
}
@keyframes bxCtaSpin {
  to {
    transform: rotate(360deg);
  }
}
