* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("cursor-brunetto.png") 32 32, auto;
}

/* Фон */
body {
  min-height: 100vh;
  background: #000 url("bg-brunetto.png") center / cover no-repeat fixed;
  font-family: "Lacquer", sans-serif;
  overflow: hidden;
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
}

.overlay {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* ========================= */
/*   Верхняя надпись         */
/* ========================= */

.title-top {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(60px, 12vw, 160px);
  font-family: "Lacquer", sans-serif;
  color: #fff;
  white-space: nowrap;

  text-shadow:
    -4px -4px 0 #000,
     4px -4px 0 #000,
    -4px  4px 0 #000,
     4px  4px 0 #000,
     0 0 12px rgba(0,0,0,0.9);
}

/* ========================= */
/*  Низ — COMING SOON        */
/* ========================= */

.title-bottom {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Lacquer", sans-serif;
  font-size: clamp(50px, 10vw, 130px);
  letter-spacing: 0.10em;
  white-space: nowrap;
  color: #fff;

  text-shadow:
    -4px -4px 0 #000,
     4px -4px 0 #000,
    -4px  4px 0 #000,
     4px  4px 0 #000,
     0 0 12px rgba(0,0,0,0.9);
}

/* ========================= */
/*       X и CA              */
/* ========================= */

.cta-row {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 800px;
}

.cta-btn {
  background: transparent;
  border: none;
  font-family: "Lacquer", sans-serif;
  font-size: clamp(150px, 25vw, 220px);
  color: #fff;

  text-shadow:
    -4px -4px 0 #000,
     4px -4px 0 #000,
    -4px  4px 0 #000,
     4px  4px 0 #000,
     0 0 10px rgba(0,0,0,0.9);

  transition: 0.15s ease;
}

.cta-btn:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* ========================= */
/*         ТОСТЕР            */
/* ========================= */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  padding: 10px 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.9);
  color: #fff;

  font-family: "Lacquer", sans-serif;
  font-size: 24px;
  letter-spacing: 0.16em;

  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease-out;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================= */
/*    ЧЁРНЫЙ ЗАГРУЗЧИК       */
/* ========================= */

#loader-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* скрыть после падения */
#loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Блок с человечком и текстом */
.loader-inner {
  position: absolute;
  top: 0;
  left: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Человечек */
.loader-guy {
  width: 130px;
  user-select: none;
  touch-action: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
}

/* CUT THE ROPE текст */
.loader-label {
  margin-top: 18px;
  font-family: "Lacquer", sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.12em;

  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0 0 10px rgba(0,0,0,0.8);

  animation: labelWiggle 2.4s ease-in-out infinite;
}

/* Шевеление текста */
@keyframes labelWiggle {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(3px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Падение — теперь медленнее: 1s */
#loader-overlay.falling .loader-guy {
  animation: guyFall 1s ease-in forwards;
}

@keyframes guyFall {
  0%   { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* ========================= */
/*  Мобильная адаптация      */
/* ========================= */

@media (max-width: 600px) {
  .cta-row {
    gap: 200px;
    top: 50%;
  }

  .cta-btn {
    font-size: clamp(90px, 28vw, 150px);
  }

  .title-top {
    top: 6%;
    font-size: clamp(40px, 15vw, 100px);
  }

  .title-bottom {
    bottom: 6%;
    font-size: clamp(34px, 13vw, 90px);
  }

  .loader-guy {
    width: 100px;
  }

  .loader-label {
    font-size: clamp(20px, 4vw, 30px);
  }

  .toast {
    bottom: 20px;
    font-size: 18px;
    padding: 8px 20px;
  }
}
