/* БАЗА */
* {
  box-sizing: border-box;
}
@font-face {
  font-family: "lucky";
  src: url("./LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "lucky";
}

/* Фон БЕЗ fixed */
body {
  background-color: #f5bd22;
  background-image: url(./images/Texture.png);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Секции-триггеры на всю высоту экрана */
.section {
  height: 100vh;
  height: 100svh; /* iOS */
  height: 100dvh; /* современные браузеры */
  position: relative;
  z-index: 0;
}

/* Фикс-центр и слои (не блокируют скролл) */
.fixed-center {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
  pointer-events: none; /* сам контейнер клики не ловит */
}

.pane {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 380ms ease;
  will-change: opacity;
  pointer-events: none; /* слой не ловит клики */
}
.pane.visible {
  opacity: 1;
}

/* Карточка — кликабельная область */
.card {
  pointer-events: auto;
  position: relative;
  border-radius: 20px;
  width: min(92vw, 1500px);
  color: #fff;
  text-align: center;
}

/* Соцсети */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2.5vw, 18px);
  justify-content: center;
  align-items: center;
  padding-top: 5vh;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.social-img {
  display: block;
  width: 10vw;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  transition: transform 0.15s ease;
}
.social-img:hover {
  transform: scale(1.06);
}

/* Копируемый текст */
.copyText {
  cursor: pointer;
  margin-top: 12px;
  font-weight: 600;
  word-break: break-all;
  user-select: text;
  color: #fefcd8;
  font-size: 1.6vw;
  padding-bottom: 5vh;
}
.text-2 {
  font-size: 50px;
  color: #fefcd8;
}
@media (max-width: 780px) {
  .copyText {
    font-size: 3.4vw;
  }
  .social-img {
    width: 18vw;
  }
  .text-2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pane {
    transition: none;
  }
  .social-img {
    transition: none;
  }
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  border-radius: 20px;
  overflow: hidden;
}
.first-img {
  width: min(92vw, 800px);
  height: auto;
}
.footer {
  position: relative;
  height: 70vh;
  width: min(92vw, 1000px);
  margin-bottom: 10vh;
  margin-top: -30vh;
  z-index: 20;
  margin-left: auto;
  margin-right: auto;
}

.dex-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
