/* БАЗА */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Titan One", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

/* ФОН */

.background-layer {
  position: fixed;
  inset: 0;
  background: url("bg_watching.png") center center / cover no-repeat;
  z-index: 0;
}

/* БЕГУЩАЯ СТРОКА */

.top-marquee {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  overflow: hidden;
  z-index: 5;
}

.marquee-inner {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: "Titan One", sans-serif;
  font-size: 90px;
  color: red;
  min-width: 100%;
  animation: marqueeScroll 10s linear infinite;
}

.marquee-inner::after {
  content: attr(data-text);
  margin-left: 80px;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ИКОНКИ */

.top-icons {
  position: absolute;
  top: 110px;
  left: 20px;
  display: flex;
  gap: 16px;
  z-index: 6;
}

.icon-button {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 70px;
  height: 70px;
}

.icon-button img {
  width: 70px;
  height: 70px;
  display: block;
  filter: none;
  transition: transform 0.12s ease-out, filter 0.12s ease-out;
}

/* глубина при наведении для активных кнопок */
.icon-button:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.4))
          drop-shadow(0 10px 16px rgba(0,0,0,0.45));
}

/* НЕАКТИВНАЯ pump-кнопка (нет ссылки в ENV) */

.icon-button.inactive {
  cursor: default;
}

.icon-button.inactive img {
  filter: grayscale(1) opacity(0.4);
  transform: none;
}

.icon-button.inactive:hover img {
  filter: grayscale(1) opacity(0.4);
  transform: none;
}

/* ЦЕНТР */

.center-header {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
}

.watching-title {
  font-size: 140px;
}

.coming-soon {
  margin-top: 10px;
  font-size: 55px;
}

/* ПЕРСОНАЖИ */

.character-left {
  position: absolute;
  left: -120px;
  bottom: 0;
  width: 860px;
  height: 480px;
  z-index: 3;
}

.character-image-left {
  width: 860px;
  height: 480px;
}

.character-right {
  position: absolute;
  right: -60px;
  bottom: 0;
  width: 888px;
  height: 675px;
  z-index: 3;
}

.character-image-right {
  width: 888px;
  height: 675px;
}

/* ЦИТАТЫ */

/* базовое состояние — скрыты */
.quote-left,
.quote-right {
  position: absolute;
  font-family: "Tourney", cursive;
  color: #777;
  z-index: 4;
  opacity: 0;
}

/* левая фраза — "LET ME BUY IT FIRST" */
/* финальное состояние: судорожная дрожь бесконечно */

.quote-left {
  font-size: 35px;
  left: 170px;
  top: 380px;
  /* базовый угол — учтём внутри анимации */
}

/* класс, который включает анимацию дрожи */
.quote-left.quote-left-visible {
  opacity: 1;
  animation: quoteJitter 0.11s infinite;
}

/* правая фраза — "I'm Watching You" */
/* просто спокойно появляется (fade-in) */

.quote-right {
  font-size: 45px;
  right: 140px;
  top: 150px;
  transform: rotate(15deg);
  transition: opacity 0.6s ease-out;
}

.quote-right.quote-right-visible {
  opacity: 1;
}

/* Анимация судорожной дрожи */
/* держим угол около -15deg, добавляем мелкие смещения */

@keyframes quoteJitter {
  0%   { transform: rotate(-15deg) translate(0, 0); }
  25%  { transform: rotate(-14deg) translate(1px, -1px); }
  50%  { transform: rotate(-16deg) translate(-1px, 1px); }
  75%  { transform: rotate(-15deg) translate(1px, 1px); }
  100% { transform: rotate(-15deg) translate(0, 0); }
}

/* ЦЕНТРАЛЬНЫЙ BUY с зелёным свечением */

.buy-logo-wrapper {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.buy-logo {
  width: 250px;
  height: 210px;
  display: block;

  /* ПУЛЬС */
  animation: buyPulse 4s ease-in-out infinite;

  /* зелёное свечение под кнопкой */
  filter: drop-shadow(0 0 22px rgba(0, 255, 0, 0.55))
          drop-shadow(0 0 38px rgba(0, 255, 0, 0.35));

  transition: transform 0.15s ease-out, filter 0.15s ease-out;
}

/* hover — только увеличение, без доп. белого света */
.buy-logo:hover {
  transform: scale(1.08);
}

/* состояние "кликабельно" — меняем курсор */
.buy-logo.clickable {
  cursor: pointer;
}

@keyframes buyPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
