body {
  background: #0f0c29;
  color: white;
  text-align: center;
  font-family: 'Arial Black', 'Impact', sans-serif;
  margin: 0;
  padding: 20px;
}

.logo {
  font-size: 2.5rem;
  margin-top: 30px;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ffcc00;
  letter-spacing: 2px;
}

.balance {
  font-size: 1.4rem;
  margin: 15px 0;
  color: #00ffaa;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
}

.container {
  width: 600px;
  height: 200px;
  overflow: hidden;
  position: relative;
  left: 50%;
  margin-left: -300px;
  border-radius: 30px;
  background: radial-gradient(ellipse at center, #ff0080, #8000ff);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.7),
              0 0 60px rgba(255, 200, 0, 0.5);
  border: 3px solid gold;
  z-index: 20;
}

.controls {
  width: 260px;
  height: 90px;
  font-size: 28px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff0066, #ff6600, #ffcc00, #ff0066);
  background-size: 300% 300%;
  margin: 30px auto 0;
  border-radius: 60px;
  cursor: pointer;
  box-shadow:
    0 0 15px rgba(255, 0, 102, 0.8),
    0 0 30px rgba(255, 204, 0, 0.7),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 255, 0, 0.8);
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: 'Impact', 'Arial Black', sans-serif;
  animation: gradientGlow 3s ease infinite, subtlePulse 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Мерцающий градиент */
@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Лёгкое пульсирование */
@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.controls:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 20px rgba(255, 0, 102, 1),
    0 0 40px rgba(255, 204, 0, 0.9),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.controls:active {
  animation: shake 0.5s ease-in-out, squish 0.2s ease;
}

/* Слегка "приплюснутая" анимация при нажатии */
@keyframes squish {
  0%, 100% { transform: scale(1.08); }
  50% { transform: scale(1.05, 1.12); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) scale(1.08); }
  20% { transform: translateX(-5px) scale(1.08); }
  40% { transform: translateX(5px) scale(1.08); }
  60% { transform: translateX(-4px) scale(1.08); }
  80% { transform: translateX(4px) scale(1.08); }
}

.controls:hover {
  transform: scale(1.05);
}

.controls:active {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.reel {
  position: absolute;
  width: 200px;
  height: 1800%;
  animation: reel 1.75s linear 2;
  overflow: hidden;
}

.inner {
  width: 200px;
  height: 66%;
  font-size: 130px;
  line-height: 216px;
  overflow: hidden;
}

.first { left: 0; animation-delay: -0.5s; }
.second { left: 200px; animation-delay: -0.2s; }
.third { left: 400px; animation-delay: 0s; }

@keyframes reel {
  0% { top: 0; }
  100% { top: -1187%; }
}

.message {
  min-height: 1.5em;
  margin: 15px auto;
  max-width: 600px;
  font-size: 1.2rem;
  color: #ff6666;
  font-style: italic;
  text-shadow: 0 0 5px rgba(255, 100, 100, 0.5);
}

.banner {
  background: #ff0000;
  color: yellow;
  padding: 10px;
  font-weight: bold;
  border-radius: 8px;
  margin: 15px auto;
  width: fit-content;
  animation: pulse 1.5s infinite;
}

.hidden {
  display: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* =============== УЛЬТРА-НАВЯЗЧИВЫЙ БАННЕР =============== */
.fake-ad {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 94%;
  max-width: 620px;
  height: 100px;
  background: linear-gradient(135deg, #ff0066, #ffcc00, #00ffcc, #ff0066);
  background-size: 600% 600%;
  border-radius: 65px;
  padding: 0 20px;
  text-decoration: none;
  color: white;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  box-shadow:
    0 0 25px rgba(255, 0, 102, 0.95),
    0 0 50px rgba(255, 204, 0, 0.9),
    inset 0 0 20px rgba(255, 255, 255, 0.6);
  z-index: 1000;
  cursor: pointer;
  overflow: visible; /* ← КЛЮЧЕВОЕ: позволяет иконке выходить за границы! */
  /* АГРЕССИВНАЯ АНИМАЦИЯ */
  animation:
    adGlow 1.8s ease infinite,
    adBreatheHard 4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite,
    adJitter 3s infinite;
}

@keyframes adGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Сильное "дыхание" с перерастяжкой */
@keyframes adBreatheHard {
  0%, 100% { transform: translateX(-50%) scale(0.94); }
  50% { transform: translateX(-50%) scale(1.06); }
}

/* Тряска для привлечения внимания */
@keyframes adJitter {
  0%, 100% { transform: translateX(-50%) scale(1); }
  10% { transform: translateX(calc(-50% - 3px)) scale(1.01); }
  20% { transform: translateX(calc(-50% + 3px)) scale(0.99); }
  30% { transform: translateX(calc(-50% - 2px)) scale(1.02); }
  40% { transform: translateX(calc(-50% + 2px)) scale(0.98); }
  50% { transform: translateX(calc(-50% - 1px)) scale(1.03); }
  60% { transform: translateX(calc(-50% + 1px)) scale(0.97); }
}

/* Контейнер иконки — выходит за пределы! */
.ad-icon-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin-right: 10px;
  margin-left: -20px; /* ← сдвиг влево, чтобы "вылезало" */
  z-index: 1001;
  animation: iconPop 2.5s ease-in-out infinite;
}

/* Сама иконка — увеличенная, сочная */
.ad-icon {
  width: 100px;
  height: 100px;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 0, 1))
    drop-shadow(0 0 20px rgba(0, 255, 0, 0.7));
  transform: translateY(0);
}

@keyframes iconPop {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.2) translateY(-10px); }
}

/* Текст */
.fake-ad .ad-text {
  font-size: 26px;
  white-space: nowrap;
  text-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(255, 255, 0, 1),
    0 0 25px rgba(0, 255, 255, 0.8);
  letter-spacing: 2px;
  text-align: center;
  flex: 1;
  margin: 0 15px;
}

/* Крестик */
.fake-ad .ad-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 36px;
  font-weight: bold;
  color: #ff0000;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  margin-left: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

.fake-ad .ad-close:hover {
  background: rgba(255, 0, 0, 0.6);
  color: yellow;
  text-shadow: 0 0 12px white;
  transform: rotate(360deg) scale(1.4);
  box-shadow: 0 0 15px rgba(255, 255, 0, 1);
}

/* При наведении — пауза и финальный взрыв */
.fake-ad:hover {
  transform: translateX(-50%) scale(1.12) !important;
  box-shadow:
    0 0 40px rgba(255, 0, 102, 1),
    0 0 80px rgba(255, 204, 0, 1),
    inset 0 0 25px rgba(255, 255, 255, 0.8);
  animation-play-state: paused;
}