.App {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(295deg, #5b9171, #a0c789, #c2da9a, #c3da9a, #c2da9a, #96cb94, #88b884);
  background-size: 1400% 1400%;
  animation: animated_bg 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  overflow: hidden;
  transition: 1s;
  padding-top: 1.25em;
}

.App::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(311deg, #eb7c81, #e77f7f, #d64761, #da435f, #be3e50, #b03b56);
  background-size: 1400% 1400%;
  animation: animated_bg 10s ease infinite;
  opacity: 0;
  transition: 1s ease-in-out;
}
.banBackground::before {
  opacity: 1;
}
  
@keyframes animated_bg {
  0% {
    background-position: 0% 54%
  }

  50% {
    background-position: 100% 47%
  }

  100% {
    background-position: 0% 54%
  }
}

.wrapper{
  position: relative;
  width: 90%;
  max-width: 400px;
  height: 270px;
  top: 0;
  transform: translateY(50%);
  margin: 0;
  z-index: 2;
  font-size: 16px;
  background-color: var(--wrapper-color);
  color: var(--text_color);
  border-radius: .7em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-flow: column;
  overflow: hidden;
  padding: 1em 0;
  color: #111;
  transition: 1s;
}
.wrapper_up{
  top: 0;
  transform: none;
  margin: auto 0;
  min-height: 250px;
  transition: 1s;
}
.up{
  top: 15px;
  transform: none;
  margin: auto 0;
  min-height: 230px;
  transition: 1s;
  height: 0;
  position: absolute;
}
.up .dice_wrapper{
  transform: translateY(-20%);
  transition: 1s;
}

.captcha_firstly_space{
  transition: 1s;
  height: 300px;
}

.captcha_space{
  transition: 1s;
  min-height: 400px;
  transform: translateY(15%);
}

.captcha_space_mini{
  transition: 1s;
  min-height: 400px;
  transform: translateY(-15%);
}

.wrapper span{
  font-weight: 600;
  transition: 1s;
  text-align: center;
  transition: opacity 1.25s;
  max-width: 95%;
    user-select: none;
}

.transparent{
  opacity: 0;
  /*transition: opacity 1.25s;*/
}

.dice_wrapper{
  position: relative;
  width: 157px;
  height: 157px;
  margin-bottom: 1em;
  z-index: 3;
  user-select: none;
}
.dice{
  position: absolute;
  width: 157px;
  height: 157px;
  margin-bottom: 1em;
  z-index: 3;
  user-select: none;
  transition: .2s;
}

.confetti{
  position: absolute;
  top: 0;
  z-index: 0;
  height: 100%;
  width: 160%;
  user-select: none;
}

.boost_popup{
  position: relative;
  bottom: -100%;
  width: 100%;
  min-height: 200px;
  padding: .7em 0 1em;
  background-color: var(--tg-theme-secondary-bg-color);
  border-radius: .7em;
  color: var(--tg-theme-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 1.2s ease-in-out;
  user-select: none;
}

.lightning{
  height: 1.7em;
  margin: -1.7em .3em;
  animation: heartbeat 1.5s infinite;
}

.emoji_lottie {
  width: 1.1em;
  height: 1.1em;
  margin-top: -.2em;
  display: inline-block;
  vertical-align: middle; /* Чтобы не сдвигало строку */
}
.captcha {
  transition: 1s ease;
  opacity: 1;
  margin-top: 1em;
  width: 75%;
  max-width: 75%;
  z-index: 5;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.cfTurnstile {
  transition: 0;
  opacity: 1;
  margin-top: 1em;
  width: 75%;
  max-width: 75%;
  z-index: 5;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.cfTurnstileContainer_hidden {
  display: none;
}
.captcha_hidden {
  transition: 1s ease;
  opacity: 0;
  display: none;
}
.captcha_moved {
  transition: 1s ease;
  margin: -3em 0;
}

.captcha__wrapper{
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: .5em 0;
  border-radius: .5em;
}

.captcha__wrapper span{
  margin-top: -.2em;
}

.captcha__question{
  display: flex;
  align-items: center;
  flex-direction: column;
}
.captcha__question img{
  max-width: 220px;
  margin: 1.3em 0;
}

.captcha_check{
  cursor: pointer;
  width: 1.5em;
  height: 1.5em;
  border: #333 .1em solid;
  border-radius: .25em;
}

.captcha_checked{
  border-radius: 50%;
  transition: .3s ease-in;
}
.captcha_checked_debordered{
  border: #33333300 .1em solid;
  transition: .3s ease-in;
}

.captcha__question_wrapper{
  display: flex;
}

.captcha__question_wrapper input{
  font-weight: bold;
}
.captcha__question_wrapper .captcha__answer_button{
  padding: .5em 1.5em;
  cursor: pointer;
}

.captcha__answer_button{
  background-color: #00a6ed;
  border-radius: .5em;
  font-weight: bold;
  color: #fff;
  background-color: var(--tg-theme-button-color);
  color: var(--tg-theme-button-text-color);
}

.disabled{
  background-color: #aaa;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.1); }
  40% { transform: scale(0.95); }
  50% { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes expandBackground {
  0% { background-size: 100% 100%; }
  50% { background-size: 120% 120%; }
  100% { background-size: 100% 100%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  25% { left: 100%; }
  100% { left: 100%; }
}


.visible {
  opacity: 1;
}

.fadeOut {
  opacity: 0;
}

.fadeIn {
  opacity: 1;
}

.invisible {
  opacity: 0;
}

:root {
	--bg-color: #222222;
	--popup-bg-color: #010101;
	--wrapper-color: #fff;
	--bg-gradient: linear-gradient(295deg, #5b9171, #a0c789, #c2da9a, #c3da9a, #c2da9a, #96cb94, #88b884);
}
:root{
	font-family: "Roboto", -apple-system, apple color emoji, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Reset and base styles  */
body{
	overflow: hidden;
}
* {
	padding: 0px;
	margin: 0px;
	border: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
	display: block;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

img, svg {
	max-width: 100%;
	height: auto;
}

address {
  font-style: normal;
}

/* Form */

input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
	user-select: text !important;
	-webkit-touch-callout: default !important;
}

input::-ms-clear {
	display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

.shake {
  animation: shake .6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% {transform: translate3d(-1px, 0, 0);}
  20%, 80% {transform: translate3d(2px, 0, 0);}
  30%, 50%, 70% {transform: translate3d(-4px, 0, 0);}
  40%, 60% {transform: translate3d(4px, 0, 0);}
}

.popup {left: 0;right: 0;bottom: -100%;border-radius: 16px 16px 0 0;transition: bottom 1s ease;color: var(--tg-theme-text-color);  position: fixed;  background-color: var(--tg-theme-secondary-bg-color);box-shadow: 0 4px 6px rgba(0, 0, 0, .1);z-index: 1001;max-height: 80vh;overflow-y: auto;padding: .5rem 0;width: 100%;}
.popup.active {bottom: 0;}
.popup .header{display:flex;justify-content:center;align-items:center;color:currentColor;padding:0 1rem;margin-bottom: 10px;}
.popup .header h1{margin:0;font-size: 20px;}
.popup .body{display:flex;flex-direction:column;align-items:center;text-align: center;font-size:15px;font-weight: 400;overflow:hidden}
.popup .body > div > p{font-size: 14px;margin: 0 .8em;}
.popup .body > div > svg{width: 1.5rem;fill: #1587cc;position: relative;bottom: 1px;}
.popup .body > div{display: flex;flex-direction: column;align-items: center;}
@media (min-width: 768px){.popup {left: 50%;max-width: 450px;transform: translateX(-50%);}}
@media (prefers-reduced-motion:reduce){.popup{transition:none!important}.modal-content{transform:none!important}}


.btn{
  position: relative;
  margin: .5em 0 1em;
  width: 60%;
  color: #fff;
  background-color: #3390ec;
  background: linear-gradient(28deg, rgba(51,144,236,1) 0%, rgba(146,117,255,1) 50%, rgb(185, 77, 187) 100%);
  padding: .5em 0;
  border-radius: .5em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: 1s;
  animation: expandBackground 5s infinite ease-in-out;
}

.btn:has(+ p) {
  margin: .5em 0 0em;
}

.btn::after{
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
          90deg,
          rgba(255, 255, 255, 0) 30%,
          rgba(255, 255, 255, 0.3) 50%,
          rgba(255, 255, 255, 0) 70%
  );
  animation: shimmer 5s infinite linear;
}


.boost:after, .share:after, .sub:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  height: 4px;
  border-top: 2px dashed #999;
  position: relative;
  margin-bottom: .5em;
}

.popup .body > div:last-child:after {
  content: none;
}

.bonus {
  display: inline-block;
  background: linear-gradient(to right, #ff8a00, #da1b60);
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
//margin-left: 10px;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  inset-block-start: 0;
  block-size: 1px;
  inline-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
}
.icon {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  width: 17px;
  margin-right: 5px;
}
.svg-moving {
  animation: moveLeftRight 1s linear infinite alternate;
}

@keyframes moveLeftRight {
  0% {transform: translateX(2px);}
  100% {transform: translateX(0px);}
}