@media screen and (max-width: 1199px) and (min-width: 992px) {
  .betting-form {
    --adjust-height: -233px;
    transform: translateY(var(--adjust-height));
    margin-bottom: var(--adjust-height);
    transition: transform 0.5s ease-in-out, margin-bottom 0.5s ease-in-out;

  }

  .game-rc-grid:has(.crash-game.blast) .betting-form {
    transition-delay: 2s;
  }

  .game-rc-grid:has(.crash-game.running) .betting-form {
    --adjust-height: 0;
  }

  .crash-game__countdown {
    bottom: calc(100% - 97px) !important;
    transition: bottom 0.5s ease-in-out;
  }

  .game-rc-grid:has(.crash-game.running) .crash-game__countdown {
    bottom: 0 !important;
  }

  .game-rc-grid:has(.crash-game.blast) .crash-game__countdown {
    transition-delay: 1.5s;
  }
}

.game__status {
  background: #00000057;
  max-width: fit-content;
  margin-inline: auto;
  top: 6px;
  padding-inline: 20px !important;
  position: absolute !important;
  left: 50%;
  transform: translateX(-50%);

  @media screen and (max-width:575px) {

    left: 10px;
    transform: unset;
    padding-inline: 5px !important;
    font-size: 16px !important;
    min-height: fit-content !important;
  }

  @media screen and (max-width:375px) {
    left: 5px;
    top: 5px;
    font-size: 12px !important;
    min-height: fit-content !important;
  }

}

.bonus-multiplier {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  @media screen and (max-width: 768px) {
    justify-content: flex-start;
  }
}

.multiplier-x {
  font-size: 44px;
  align-self: flex-end;
  line-height: 1.3;

  @media screen and (max-width: 991px) {
    font-size: 35px;
  }

  @media screen and (max-width: 768px) {
    font-size: 25px;
  }

  @media screen and (max-width: 575px) {
    font-size: 18px;
  }

  &:has(+.d-none) {
    display: none;
  }
}

.x-multiple {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;

  @media screen and (max-width: 768px) {
    width: 110px;

  }

  @media screen and (max-width: 575px) {
    width: 80px;
  }
}

/* Game Crash CSS Start */
.game-rc-grid {
  --rc-width: 895px;
  --rc-height: 450px;
  --gap: clamp(0.875rem, 0.5906rem + 1.2136vw, 1.5rem);
  height: 100%;
  width: 100%;
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(350px, 1fr) var(--rc-width, 895px) minmax(390px, 1fr);
  grid-template-rows: var(--rc-height, 450px) minmax(306px, -webkit-max-content);
  grid-template-rows: var(--rc-height, 450px) minmax(306px, max-content);
}

@media screen and (max-width: 1799px) {
  .game-rc-grid {
    --rc-width: 700px;
    --rc-height: 350px;
  }
}

@media screen and (max-width: 1199px) {
  .game-rc-grid {
    --rc-width: 960px;
    --rc-height: 450px;
  }
}

@media screen and (max-width: 991px) {
  .game-rc-grid {
    --rc-width: 700px;
    --rc-height: 350px;
  }
}

@media screen and (max-width: 767px) {
  .game-rc-grid {
    --rc-width: 570px;
    --rc-height: 287px;
  }
}

@media screen and (max-width: 575px) {
  .game-rc-grid {
    --rc-width: 497px;
    --rc-height: 224px;
  }
}

@media screen and (max-width: 425px) {
  .game-rc-grid {
    --rc-width: 335px;
    --rc-height: 186px;
  }
}

@media screen and (max-width: 375px) {
  .game-rc-grid {
    --rc-width: 331px;
    --rc-height: 198px;
  }
}

@media screen and (max-width: 1599px) {
  .game-rc-grid {
    grid-template-columns: var(--rc-width, 895px) 1fr;
    grid-template-rows: var(--rc-height, 450px) calc(var(--rc-height) * 0.8) var(--rc-height, 450px);
  }
}

@media screen and (max-width: 1199px) {
  .game-rc-grid {
    grid-template-columns: 100%;
    grid-template-rows: repeat(2, auto) repeat(2, 300px);
  }
}

.game-rc-grid__column {
  width: 100%;
}

.game-rc-grid__column.board {
  grid-column: 2/span 1;
  grid-row: 1/span 1;
  overflow: hidden;
}

.game-rc-grid__column.live-players {
  grid-column: 1/span 1;
  grid-row: 1/span 2;
}

.game-rc-grid__column.live-players .game-area-card {
  max-height: 880px;
}

@media screen and (max-width: 1599px) {
  .game-rc-grid__column.live-players .game-area-card {
    max-height: 100%;
  }
}

.game-rc-grid__column.betting-form {
  grid-column: 3/span 1;
  grid-row: 1/span 2;
}

.game-rc-grid__column.bet-history {
  grid-column: 2/span 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.game-rc-grid__column.bet-history .game-area-card {
  max-height: 406px;
}

@media screen and (max-width: 1599px) {
  .game-rc-grid__column.bet-history .game-area-card {
    max-height: 100%;
  }
}

@media screen and (max-width: 1599px) {
  .game-rc-grid__column.board {
    grid-column: 1/span 1;
    grid-row: 1/span 1;
  }

  .game-rc-grid__column.live-players {
    grid-column: 1/span 1;
    grid-row: 2/span 2;
  }

  .game-rc-grid__column.betting-form {
    grid-column: 2/span 1;
    grid-row: 1/span 2;
  }

  .game-rc-grid__column.bet-history {
    grid-row: 3/span 1;
    grid-column: 2/span 1;
  }
}

@media screen and (max-width: 1199px) {
  .game-rc-grid__column.board {
    margin-inline: auto;
  }

  .game-rc-grid__column.live-players {
    grid-row: 3/span 1;
  }

  .game-rc-grid__column.betting-form {
    grid-row: unset;
    grid-column: 1/span 1;
  }

  .game-rc-grid__column.bet-history {
    grid-row: unset;
    grid-column: 1/span 1;
  }
}

.game-rc-bet {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border-color)/0.5);
  background-color: hsl(var(--gray-d-400)/0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

@media screen and (max-width: 575px) {
  .game-rc-bet {
    padding: 12px;
  }
}

.game-rc-bet-type {
  padding: 8px;
  border-radius: 12px;
  border: 1px solid hsl(var(--base)/0.2);
  background-color: hsl(var(--white)/0.05);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.game-rc-bet-type:not(:last-child) {
  margin-bottom: 24px;
}

.game-rc-bet-type__tab-btn {
  flex: 1 1 50%;
  color: hsl(var(--gray-l-100));
  font-family: var(--heading-font);
  font-size: clamp(1rem, 0.9404rem + 0.2981vw, 1.125rem);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12.5px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: nowrap;
}

.game-rc-bet-type__tab-btn.active {
  color: hsl(var(--gray-l-500));
  border-color: hsl(var(--base));
  background-color: hsl(var(--white)/0.05);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
}

@media screen and (max-width: 1199px) {
  .game-rc-bet-type {
    padding: 4px;
  }

  .game-rc-bet-type:not(:last-child) {
    margin-bottom: 16px;
  }

  .game-rc-bet-type__tab-btn {
    font-size: 0.875rem;
    padding: 12px;
  }
}

@media screen and (max-width: 575px) {
  .game-rc-bet-type:not(:last-child) {
    margin-bottom: 12px;
  }

  .game-rc-bet-type__tab-btn {
    font-size: 0.75rem;
    padding: 8px;
  }
}

.game-rc-main {
  height: 100%;
  width: 100%;
  padding: 16px;
  border: 1px solid hsl(var(--border-color)/0.5);
  background-color: hsl(var(--gray-d-400)/0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  position: relative;
}

.game-rc-bet-form__body> :not(:last-child) {
  margin-bottom: 24px;
}

.game-rc-bet-form__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.game-rc-bet-form__footer:not(:first-child) {
  margin-top: 24px;
}

@media screen and (max-width: 575px) {
  .game-rc-bet-form__footer:not(:first-child) {
    margin-top: 12px;
  }
}

.game-rc-bet-form__footer .btn {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

@media screen and (max-width: 767px) {
  .game-rc-bet-form__footer .btn {
    font-size: 16px;
  }
}

@media screen and (max-width: 575px) {
  .game-rc-bet-form__footer .btn {
    font-size: 14px;
  }
}

.game-rc-instruction {
  flex-grow: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--gray-d-100)) hsl(var(--gray-d-200));
}

.game-rc-instruction:not(:first-child) {
  margin-top: 24px;
}

@media screen and (max-width: 1199px) {
  .game-rc-instruction:not(:first-child) {
    margin-top: 16px;
  }
}

@media screen and (max-width: 575px) {
  .game-rc-instruction:not(:first-child) {
    margin-top: 12px;
  }
}

.game-rc-instruction__item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.game-rc-instruction__item::before {
  content: '*';
}

.game-rc-instruction__item:not(:last-child) {
  margin-bottom: 12px;
}

@media screen and (max-width: 575px) {
  .game-rc-instruction__item:not(:last-child) {
    margin-bottom: 6px;
  }
}

.game-rc-instruction__text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
  color: hsl(var(--gray-l-100));
}

@media screen and (max-width: 575px) {
  .game-rc-instruction__text {
    font-size: 0.875rem;
  }
}

/* ========================= Game Area CSS End ======================= */
/* ========================= Crash Board CSS Start  ======================= */
.crash-game {
  --width: var(--rc-width, 895px);
  --height: var(--rc-height, 450px);
  --duration: 5000ms;
  --space: 60px;
  --animation-state: paused;
  /* rocket animation  rotation */
  --start-rotation: 84deg;
  --start-translate-x: -83px;
  --start-translate-y: 60px;
  --end-rotation: 42deg;
  --end-translate-x: -103px;
  --end-translate-y: 40px;

  /* blast animation */
  --blast-start-top: -140px;
  --blast-start-left: 0px;
  --blast-end-top: 0px;
  --blast-end-left: -114px;
  width: var(--rc-width);
  height: var(--rc-height);
  position: absolute;
  border-radius: inherit;
  bottom: 0;
  left: 0;
}

@media screen and (max-width: 1799px) {
  .crash-game {
    --start-rotation: 84deg;
    --start-translate-x: -82px;
    --start-translate-y: 60px;
    --end-rotation: 46deg;
    --end-translate-x: -100px;
    --end-translate-y: 65px;
    --space: 31px;

  }
}

@media screen and (max-width: 1199px) {
  .crash-game {
    --start-translate-x: -79px;
    --start-translate-y: 50px;
    --end-translate-x: -98px;
    --end-translate-y: 64px;
    --space: -29px;
  }
}

@media screen and (max-width: 1099px) {
  .crash-game {
    --start-translate-x: -82px;
    --start-translate-y: 69px;
    --end-translate-x: -96px;
    --end-translate-y: 62px;
    --space: 15px;
  }
}

@media screen and (max-width: 991px) {
  .crash-game {
    --start-translate-x: -83px;
    --start-translate-y: 86px;
    --end-translate-x: -99px;
    --end-translate-y: 58px;
    --space: 55px;
  }
}

@media screen and (max-width: 768px) {
  .crash-game {
    --start-translate-x: -82px;
    --end-rotation: 50deg;
    --end-translate-x: -95px;
    --end-translate-y: 56px;
    --space: -3px;
  }
}

@media screen and (max-width: 665px) {
  .crash-game {
    --start-rotation: 84deg;
    --start-translate-x: -80px;
    --start-translate-y: 60px;
    --end-rotation: 46deg;
    --end-translate-x: -100px;
    --end-translate-y: 61px;
    --space: 30px;
  }
}

@media screen and (max-width: 575px) {
  .crash-game {
    --start-translate-y: 60px;
    --start-translate-x: -84px;
    --end-translate-x: -99px;
    --end-translate-y: 56px;
    --space: 60px;
    width: 401px;
    height: 226px;
  }
}

@media screen and (max-width: 425px) {
  .crash-game {
    --start-translate-y: 90px;
    --start-translate-x: -74px;
    --end-rotation: 49deg;
    --end-translate-x: -82px;
    --end-translate-y: 57px;
    --space: 81px;
  }
}

@media screen and (max-width: 375px) {
  .crash-game {
    --start-rotation: 84deg;
    --start-translate-x: -77px;
    --start-translate-y: 76px;
    --end-rotation: 47deg;
    --end-translate-x: -88px;
    --end-translate-y: 52px;
    --space: 100px;
    ;
  }
}

.crash-game__inner {
  width: calc(100% - var(--space));
  height: calc(100% - var(--space));
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
}

.crash-game__inner .line-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.crash-game__inner .line-svg #moving-path {
  fill: none;
  stroke: hsl(var(--warning));
  stroke-width: 5;
  -webkit-animation: drawPath var(--duration) linear forwards;
  animation: drawPath var(--duration) linear forwards;
  -webkit-animation-play-state: var(--animation-state, running);
  animation-play-state: var(--animation-state, running);
  -webkit-animation-delay: var(--delay, 0ms);
  animation-delay: var(--delay, 0ms);
}

.crash-game__path {
  display: block !important;
  opacity: 0;
}

.crash-game__shadow {
  display: none;
  position: absolute;
  z-index: -1;
  -webkit-transition: unset;
  transition: unset;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: url(../images/shadow.png);
  mask-image: url(../images/shadow.png);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0% 100%;
  mask-position: 0% 100%;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(10%, hsl(var(--warning)/0.4)), to(hsl(var(--warning)/0)));
  background: linear-gradient(180deg, hsl(var(--warning)/0.4) 10%, hsl(var(--warning)/0) 100%);
  background-position: 0% 100%;
}

.crash-game__rocket {
  position: absolute;
  width: 140px;
  height: 140px;
  left: var(--leftPoint);
  top: var(--topPoint);
}

@media screen and (max-width: 425px) {
  .crash-game__rocket {
    width: 120px;
  }
}



.crash-game.running {
  --animation-state: running;
}

.crash-game.running .rocket-img {
  animation: rocket-rotation var(--duration) linear forwards;
  animation-play-state: var(--animation-state);
  display: block !important;

}

.crash-game.animation-complete .rocket-img {
  animation: none;
  transform: rotate(var(--end-rotation)) translate(var(--end-translate-x), var(--end-translate-y));
}


@keyframes rocket-rotation {
  0% {
    transform: rotate(var(--start-rotation)) translate(var(--start-translate-x), var(--start-translate-y));
  }

  100% {
    transform: rotate(var(--end-rotation)) translate(var(--end-translate-x), var(--end-translate-y));
  }
}


.crash-game.running #line-svg-g {
  display: block;
}

.crash-game.running .crash-game__path,
.crash-game.running .crash-game__shadow {
  display: block;
  opacity: 1;
}

.crash-game.blast #line-svg-g {
  display: none;
}

.crash-game.blast #moving-path {
  -webkit-transition: all var(--duration) linear;
  transition: all var(--duration) linear;
}

.crash-game.blast .crash-game__shadow {
  -webkit-transition: width 2000ms linear;
  transition: width 2000ms linear;
  width: 0px !important;
}


#blast-animation {
  position: absolute;
  width: inherit;
  height: inherit;

  .blast-animation__inner {
    background-image: url(../images/crush.png);
    background-size: 2500% 100%;
    -webkit-animation: steps-crash-sprite steps(24, start) 2000ms 1 forwards;
    animation: steps-crash-sprite steps(24, start) 2000ms 1 forwards;
    width: inherit;
    height: inherit;
    display: none;
    overflow: hidden;
    left: 0;
    top: 0;
    position: absolute;

  }
}

.crash-game.running #blast-animation,
.crash-game.blast #blast-animation {
  animation: blast-position var(--duration) linear forwards;
}

.crash-game.blast #blast-animation {
  animation-play-state: paused;
}


@keyframes blast-position {
  0% {
    left: var(--blast-start-left);
    top: var(--blast-start-top);
  }

  100% {
    left: var(--blast-end-left);
    top: var(--blast-end-top);
  }
}

@media screen and (max-width: 1799px) {
  #blast-animation {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 575px) {
  #blast-animation {
    width: 100px;
    height: 100px;
  }
}



@keyframes steps-crash-sprite {
  to {
    background-position-x: 100%;
  }
}


.crash-game.animation-complete #blast-animation {
  animation: none;
  left: var(--blast-end-left);
  top: var(--blast-end-top);
}


.crash-game__countdown {
  position: absolute;
  bottom: calc(var(--rc-height) * 0.0666666667);
  right: calc(var(--rc-width) * 0.0357541899);
  z-index: 2;
  height: 83px;
  overflow: hidden;
  font-size: clamp(2.5rem, 1.8745rem + 3.1274vw, 4.5rem);

}

@media screen and (max-width: 575px) {
  .crash-game__countdown {
    font-size: clamp(2rem, 1.7615rem + 1.1923vw, 2.5rem);
    height: 40px;
    text-align: right;
  }
}

@media screen and (max-width: 374px) {
  .crash-game__countdown {
    font-size: clamp(1.5rem, 1.2615rem + 1.1923vw, 2rem);
  }
}

.crash-game__overlay {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  border-radius: inherit;
}

.crash-game__overlay img {
  border-radius: inherit;
  width: 100%;
}

.crash-game__cloud {
  width: 100%;
  height: calc(var(--rc-height) * 0.2777777778);
  position: absolute;
  left: 0;
  bottom: 0;
  background-repeat: repeat-x !important;
  -webkit-animation: bg-marquee 20s linear infinite;
  animation: bg-marquee 20s linear infinite;
  -webkit-animation-play-state: var(--animation-state);
  animation-play-state: var(--animation-state);
}

.crash-game__star {
  position: absolute;
  left: 0;
  bottom: 0;
  -webkit-animation: marquee 50s linear infinite;
  animation: marquee 50s linear infinite;
  -webkit-animation-play-state: var(--animation-state);
  animation-play-state: var(--animation-state);
  width: 200%;
}

.crash-game__star img {
  float: left;
  width: 100%;
}

@keyframes bg-marquee {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: calc((var(--rc-width) * 4) * -1) 0;
  }
}


@keyframes marquee {
  0% {
    left: 0;
  }

  100% {
    left: -100%;
  }
}


@keyframes marqueeVertical {
  0% {
    bottom: 0;
  }

  100% {
    bottom: -100%;
  }
}


@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

.crash-game__rocket .rocket-img {
  display: none;
}

.crash-game__dots {
  position: absolute;
}

.crash-game__dots.horizontal {
  left: 0;
  bottom: 20px;
  width: 300%;
  -webkit-animation: marquee 10s linear infinite;
  animation: marquee 10s linear infinite;
  -webkit-animation-play-state: var(--animation-state);
  animation-play-state: var(--animation-state);
}

.crash-game__dots.horizontal img {
  float: left;
  width: 100%;
}

.crash-game__dots.vertical {
  height: 200%;
  left: 20px;
  bottom: 0;
  -webkit-animation: marqueeVertical 10s linear infinite;
  animation: marqueeVertical 10s linear infinite;
  -webkit-animation-play-state: var(--animation-state);
  animation-play-state: var(--animation-state);
}




/* Game Crash CSS End */
/* Blade Css File Start */
.countdown {
  white-space: nowrap;
  min-width: 170px;
  height: 83px;
  overflow: hidden;
  position: relative;
  padding: 5px;

  @media screen and (max-width: 575px) {
    height: 38px;
    min-width: 100px;
  }

  @media screen and (max-width: 375px) {
    &.bonus-multiplier {
      height: 38px;
      min-width: auto;
      max-width: 80px;
    }
  }
}

.countdown .countdown-number {
  --single-width: 45px;
  --space: 12px;
  position: absolute;
  top: 0;
  left: 0;
  text-shadow: 0px 1px 10px #ffffff91;
  text-align: right;
  width: var(--single-width);
  display: block;
  transform: all 0s !important;
  transform: translateY(0);

  @media screen and (max-width: 575px) {
    --single-width: 18px;
  }
}

.countdown .countdown-number:nth-child(1) {
  left: 0px;
}

.countdown .countdown-number:nth-child(2) {
  left: calc(var(--single-width) + var(--space));
}

.countdown .countdown-number:nth-child(3) {
  left: calc(var(--single-width) * 2 + (var(--space)*2));
}

.countdown .countdown-number:is(.drop):not(:last-child) {
  animation: fDrop 1000ms ease-out forwards;
  animation-delay: 800ms;
}

.countdown .countdown-number:is(.drop):last-child {
  animation: nDrop 1000ms ease-out infinite;
}

@keyframes nDrop {
  0% {
    transform: translateY(-100%);
  }

  30% {
    transform: translateY(0%);
  }

  80% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(100%);
    display: none;
  }
}

@keyframes fDrop {
  0% {
    transform: translateY(0%);
  }

  19.999% {
    transform: translateY(100%);
    display: block;
  }

  20% {
    display: none;
    transform: translateY(-100%);
  }

  20.0001% {
    display: block;
  }

  50% {
    transform: translateY(0%);
  }

}

/* Blade Css File End */





/* Blade Css File End */