body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: #000000;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


.hidden {
  opacity: 0;
}


.fade-in {
  opacity: 1;
  animation: fadeIn 1.2s ease forwards;
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  height: 100%;
  justify-content: center;
}


.mantra {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 5.625vw, 3.375rem);
  text-shadow:
    0 0 10px rgba(255,255,255,0.8),
    0 0 20px rgba(255,255,255,0.6),
    0 0 30px rgba(255,255,255,0.4);
}


.pepetia-video {
  width: min(114vmin, 1280px);
  height: auto;
  display: block;
  box-shadow: none;
  filter: none;
  background: transparent;
  animation: float 6s ease-in-out infinite;
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 768px) {
  body {
    align-items: center;
  }

  .container {
    justify-content: center;
    height: 100vh;
    gap: 22px;
  }

  .mantra {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 6px;
  }

  .pepetia-video {
    width: 92vw;
    max-width: 520px;
    animation: float 7s ease-in-out infinite;
  }
}


.corner-actions {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}
.buy-btn {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,20,20,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  pointer-events: auto;      
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.buy-btn img {
  width: 22px;
  height: 22px;
  display: block;
}
.buy-btn.left  { left: 16px; }
.buy-btn.right { right: 16px; }

.buy-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); background: rgba(28,28,28,0.65); }
.buy-btn:active { transform: translateY(0); }


.contracts {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}
.contract-chip {
  position: absolute;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(44vw, 560px);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(18,18,18,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #eaeaea;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  user-select: none;
}
.contract-chip.left  { left: 16px; }
.contract-chip.right { right: 16px; }

.contract-chip:hover { border-color: rgba(255,255,255,0.25); background: rgba(24,24,24,0.65); transform: translateY(-1px); }
.contract-chip:active { transform: translateY(0); }

.contract-chip .label {
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 12px;
  color: #9efca6; 
  padding: 2px 6px;
  border: 1px solid rgba(158,252,166,0.35);
  border-radius: 6px;
  background: rgba(10,40,10,0.25);
}
.contract-chip .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  opacity: .9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch; 
}
.contract-chip .copy {
  margin-left: auto;
  font-size: 12px;
  color: #bdbdbd;
  opacity: .9;
}


.contract-chip.copied {
  border-color: rgba(158,252,166,0.6);
  box-shadow: 0 0 0 2px rgba(158,252,166,0.12) inset;
}
.contract-chip.copied .copy {
  color: #9efca6;
}


.x-link {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  pointer-events: auto;
  z-index: 10;
}
.x-link img {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.x-link:hover {
  transform: translateX(-50%) translateY(-1px);
  border-color: rgba(255,255,255,0.25);
  background: rgba(28,28,28,0.65);
}
.x-link:hover img {
  opacity: 1;
}
.x-link:active {
  transform: translateX(-50%) translateY(0);
}


@media (max-width: 768px) {
  .buy-btn   { height: 40px; padding: 8px 12px; }
  .buy-btn img { width: 20px; height: 20px; }
  .buy-btn span { font-size: 13px; }

  .contract-chip {
    max-width: calc(50vw - 28px);
    padding: 9px 12px;
    gap: 8px;
  }
  .contract-chip .addr { max-width: 26ch; font-size: 12px; }

  .x-link {
    bottom: 70px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
  }
  .x-link img {
    width: 20px;
    height: 20px;
  }
}

.container-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}


@media (max-width: 768px) {
  .container-wrapper {
    transform: translateY(-100px); 
  }
}
