
*, *:before, *:after {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  box-sizing: border-box;
  cursor: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  text-transform: uppercase;
}
*:focus {
  outline: none;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: "BungeeFont", sans-serif;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  cursor: default;
  overflow: hidden;
  height: 100%;
  font-size: 5rem;
}

.icon {
  display: inline-block;
  font-size: inherit;
  overflow: visible;
  vertical-align: -0.125em;
  preserveAspectRatio: none;
}

.range {
  position: relative;
  width: 14em;
  z-index: 1;
  opacity: 0;
}
.range:not(:last-child) {
  margin-bottom: 2em;
}
.range__label {
  position: relative;
  font-size: 0.9em;
  line-height: 0.75em;
  padding-bottom: 0.5em;
  z-index: 2;
}
.range__track {
  position: relative;
  height: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  z-index: 3;
}
.range__track-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  height: 2px;
  top: 50%;
  margin-top: -1px;
  left: -0.5em;
  right: -0.5em;
  transform-origin: left center;
}
.range__handle {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 0;
  cursor: pointer;
  z-index: 1;
}
.range__handle div {
  transition: background 500ms ease;
  position: absolute;
  left: 0;
  top: 0;
  width: 0.9em;
  height: 0.9em;
  border-radius: 0.2em;
  margin-left: -0.45em;
  margin-top: -0.45em;
  background: #41aac8;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}
.range.is-active .range__handle div {
  transform: scale(1.25);
}
.range__handle:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3em;
  height: 3em;
  margin-left: -1.5em;
  margin-top: -1.5em;
}
.range__list {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  position: relative;
  padding-top: 0.5em;
  font-size: 0.55em;
  color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.stats {
  position: relative;
  width: 14em;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  opacity: 0;
}
.stats:not(:last-child) {
  margin-bottom: 1.5em;
}
.stats i {
  display: inline-block;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9em;
}
.stats b {
  display: inline-block;
  font-size: 0.9em;
}

.text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 0.75;
  perspective: 100rem;
  opacity: 0;
}
.text i {
  display: inline-block;
  opacity: 0;
  white-space: pre-wrap;
}
.text--title {
  bottom: 75%;
  font-size: 4.4em;
  height: 1.2em;
}
.text--title span {
  display: block;
}
.text--title span:first-child {
  font-size: 0.5em;
  margin-bottom: 0.2em;
}
.text--note {
  top: 87%;
  font-size: 1em;
}
.text--timer {
  bottom: 78%;
  font-size: 3.5em;
  line-height: 1;
}
.text--complete, .text--best-time {
  font-size: 1.5em;
  top: 83%;
  line-height: 1em;
}

.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border-radius: 0;
  border-width: 0;
  position: absolute;
  pointer-events: none;
  font-size: 1.2em;
  color: rgba(0, 0, 0, 0.25);
  opacity: 0;
}
.btn:after {
  position: absolute;
  content: "";
  width: 3em;
  height: 3em;
  left: 50%;
  top: 50%;
  margin-left: -1.5em;
  margin-top: -1.5em;
  border-radius: 100%;
}
.btn--bl {
  bottom: 0.8em;
  left: 0.8em;
}
.btn--br {
  bottom: 0.8em;
  right: 0.8em;
}
.btn--bc {
  bottom: 0.8em;
  left: calc(50% - 0.5em);
}
.btn--pwa {
  transition: color 500ms ease;
  color: inherit;
  height: 1em;
}
.btn--pwa svg {
  font-size: 0.6em;
  margin: 0.35em 0;
}
.btn svg {
  display: block;
}

.ui {
  pointer-events: none;
  color: #070d15;
}
.ui, .ui__background, .ui__game, .ui__texts, .ui__prefs, .ui__stats, .ui__buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ui__background {
  z-index: 1;
  transition: background 500ms ease;
  background: #d1d5db;
}
.ui__background:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-image: linear-gradient(to bottom, white 50%, rgba(255, 255, 255, 0) 100%);
}
.ui__game {
  pointer-events: all;
  z-index: 2;
}
.ui__game canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ui__texts {
  z-index: 3;
}
.ui__prefs, .ui__stats {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 4;
}
.ui__buttons {
  z-index: 5;
}
.ui__notification {
  transition: transform 500ms ease, opacity 500ms ease;
  font-family: sans-serif;
  position: absolute;
  left: 50%;
  bottom: 0.6em;
  padding: 0.6em;
  margin-left: -9.4em;
  width: 18.8em;
  z-index: 6;
  background: rgba(17, 17, 17, 0.9);
  border-radius: 0.8em;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  color: #fff;
  user-select: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.ui__notification.is-active {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.ui__notification * {
  text-transform: none;
}
.ui__notification-icon {
  background-size: 100% 100%;
  left: 0.6em;
  top: 0.6em;
  width: 2.8em;
  height: 2.8em;
  border-radius: 0.5em;
  background: #fff;
  margin-right: 0.6em;
  display: block;
}
.ui__notification-text {
  font-size: 0.75em;
  line-height: 1.4em;
}
.ui__notification-text .icon {
  color: #4f82fd;
  font-size: 1.1em;
}
.ui__notification-text b {
  font-weight: 700;
}

.btn--stats {
  visibility: hidden;
}

/* AdsGram home action buttons */
.btn--home {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.42em;
  line-height: 1;
  bottom: 7.2em;
  width: 11.2em;
  height: 3.2em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #070d15;
  box-shadow: 0 0.45em 1.35em rgba(7, 13, 21, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn--home:active {
  transform: translate3d(0, 0.12em, 0) !important;
}
.btn--home .btn__icon {
  width: 1.55em;
  height: 1.55em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #070d15;
  color: #fff;
  font-size: 0.92em;
}
.btn--home .btn__label {
  font-weight: 700;
  font-size: 0.96em;
  white-space: nowrap;
}
.btn--reward-ad {
  left: calc(50% - 11.8em);
}
.btn--task-ad {
  right: calc(50% - 11.8em);
}
.btn--reward-ad.is-loading {
  opacity: 0.65 !important;
}

.ui__task-modal {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
}
.ui__task-modal.is-active {
  opacity: 1;
  pointer-events: all;
}
.task-modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 21, 0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.task-modal__card {
  position: absolute;
  left: 50%;
  bottom: 4.6em;
  width: min(86vw, 23em);
  transform: translateX(-50%) translateY(1em) scale(0.98);
  transition: transform 260ms ease;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.2em;
  box-shadow: 0 0.8em 2.4em rgba(7, 13, 21, 0.22);
  padding: 1.15em;
  color: #070d15;
  text-transform: none;
}
.ui__task-modal.is-active .task-modal__card {
  transform: translateX(-50%) translateY(0) scale(1);
}
.task-modal__close {
  position: absolute;
  top: 0.55em;
  right: 0.65em;
  width: 1.8em;
  height: 1.8em;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 13, 21, 0.08);
  color: #070d15;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
}
.task-modal__title {
  font-size: 1.15em;
  font-weight: 800;
  margin-bottom: 0.35em;
  text-transform: none;
}
.task-modal__desc {
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(7, 13, 21, 0.58);
  margin-bottom: 1em;
  text-transform: none;
}
.task-modal__adsgram {
  display: block;
  width: 100%;
  --adsgram-task-font-size: 14px;
  --adsgram-task-icon-size: 42px;
  --adsgram-task-icon-title-gap: 10px;
  --adsgram-task-icon-border-radius: 12px;
  --adsgram-task-button-width: 88px;
}

@media (max-width: 480px) {
  .btn--home {
    font-size: 0.38em;
    width: 42vw;
    bottom: 7.6em;
  }
  .btn--reward-ad {
    left: 6vw;
  }
  .btn--task-ad {
    right: 6vw;
  }
  .task-modal__card {
    bottom: 5em;
    width: 88vw;
  }
}


/* AdsGram V3: move home ad buttons to the top-left and top-right areas so they do not cover the start hint. */
.ui__buttons .btn--home {
  opacity: 1;
  pointer-events: all;
  z-index: 20;
  top: 46px;
  bottom: auto;
  width: 104px;
  height: 30px;
  min-width: 0;
  padding: 0 10px;
  transform: none;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.76);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,248,252,.86));
  box-shadow: 0 7px 18px rgba(7, 13, 21, .12), inset 0 0 0 1px rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ui__buttons .btn--reward-ad {
  left: 6px;
  right: auto;
}
.ui__buttons .btn--task-ad {
  left: auto;
  right: 28px;
}
.ui__buttons .btn--home .btn__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  font-size: 10px;
  line-height: 17px;
}
.ui__buttons .btn--home .btn__label {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
@media (max-width: 380px) {
  .ui__buttons .btn--home {
    top: 47px;
    width: 94px;
    height: 28px;
    padding: 0 8px;
    gap: 4px;
  }
  .ui__buttons .btn--reward-ad { left: 5px; }
  .ui__buttons .btn--task-ad { right: 26px; }
  .ui__buttons .btn--home .btn__icon { width: 16px; height: 16px; flex-basis: 16px; font-size: 9px; }
  .ui__buttons .btn--home .btn__label { font-size: 11px; }
}
