html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #231F20;
  -webkit-tap-highlight-color: transparent;
}
body {
  background-image: url('Bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ------------------------------------------------------------- игра */
#game-container {
  position: absolute; left: 50%; top: 50%;
  display: none; overflow: hidden;
}
#game {
  display: block; width: 100%; height: 100%;
  background: #231F20;
}

/* --------------------------------------------------------- загрузка */
#loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #fff;
}
#progress-bar {
  width: 60%; max-width: 420px; height: 12px;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px; overflow: hidden;
}
#progress-fill {
  width: 0%; height: 100%;
  background: #fff; border-radius: 999px;
  transition: width .18s linear;
}
#progress-amount {
  margin-top: 12px; font-size: 15px;
  letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* -------------------------------------------------- свой рекламный блок */
.gm-own {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-user-select: none; user-select: none;
}
.gm-own-box {
  position: relative;
  width: min(92vw, 520px);
  display: flex; flex-direction: column; align-items: center;
}
.gm-own-img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.gm-own-text {
  margin-top: 16px; color: #fff;
  font-size: clamp(17px, 4.4vw, 24px); font-weight: 700;
  text-align: center; letter-spacing: .2px;
}
.gm-own-cta {
  margin-top: 14px; padding: 13px 46px;
  background: #ffb300; color: #222;
  font-size: clamp(15px, 3.8vw, 19px); font-weight: 800;
  letter-spacing: 1.2px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 179, 0, .4);
}
.gm-own-cta:active { transform: translateY(1px); }
.gm-own-timer {
  position: absolute; top: -46px; right: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 16px; font-weight: 700;
  border-radius: 50%;
}
.gm-own-timer.gm-own-closable {
  cursor: pointer; font-size: 21px;
  background: rgba(255, 255, 255, .3);
}
