html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  user-select: none;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -1;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.center-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  border-radius: 15px;
  background-color: transparent;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.center-block h1 {
  grid-column: 1;
  color: #ffffff;
  font-size: 2.4rem;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.wallet-label {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}

.wallet-address {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.wallet-block {
  padding: 15px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}

.copy-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background-color: #404be0;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.copy-btn:hover {
  background-color: #6430dd;
  /* темнее фон */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
  /* чуть сильнее тень */
  transform: translateY(-2px);
  /* лёгкий "подъём" */
  transition: all 0.2s ease-in-out;
}

.wallet-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  /* расстояние между ссылками */
}

.wallet-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
}

#paypal-link {
  color: white;
  /* текст всегда белый */
  text-decoration: none;
  /* убираем подчеркивание */
}

#paypal-link:hover {
  text-decoration: underline;
  /* подчеркивание только при наведении */
}

#paypal-link img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  /* расстояние между иконкой и текстом */
}

/* только мобильный размер */
@media (max-width: 900px) {
  .wallet-links a {
    font-size: 14px;
    /* уменьшенный шрифт */
  }
}

@media (max-width: 1400px) and (min-width: 901px) {
  .center-block {
    padding: 8px 30px;
    max-width: 700px;
    min-height: auto;
    height: auto;
    overflow-y: visible;
    box-sizing: border-box;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .center-block h1 {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.1;
  }

  .wallet-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px 50px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .wallet-label,
  .wallet-address,
  .copy-btn {
    margin: 0;
  }

  .wallet-label {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .wallet-address {
    font-size: 0.75rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .copy-btn {
    font-size: 0.75rem;
    padding: 5px 0;
    line-height: 1.1;
  }
}

@media (max-width: 900px) {
  html canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    z-index: -1;
    display: block;
    box-sizing: border-box;
  }

  .center-block {
    top: 45%;
    width: 90%;
    max-width: 400px;
    padding: 10px 5px;
  }

  .center-block h1 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.1;
  }

  .wallet-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .wallet-address {
    font-size: 0.6rem;
    margin-bottom: 5px;
  }

  .wallet-block {
    padding: 5px 8px;
    width: 100%;
    margin-bottom: 5px;
    overflow: hidden;
  }

  .copy-btn {
    font-size: 0.85rem;
    padding: 8px 0;
    margin-bottom: 0;
  }
}
