* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ================= BODY ================= */

body {
  background: url("image/bg.png") no-repeat center center;
  background-size: cover;
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;

  position: relative;
  padding: 20px;
}

/* Optional dark overlay */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* ================= CONTAINER ================= */

.container {
  text-align: center;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  z-index: 2;
  position: relative;
}

/* ================= TYPOGRAPHY ================= */

h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.percentage {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  font-weight: bold;
}

/* ================= INPUT & BUTTON ================= */

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 1rem;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #ff2e55;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

button:hover {
  background: #ff1744;
}

/* ================= HEART ================= */

.heart-wrapper {
  margin: 2rem auto;
  width: 60%;
  max-width: 220px;
  min-width: 160px;
}

.heart-svg {
  width: 100%;
}

#heartFill {
  transition: y 2s ease, height 2s ease;
}

/* ================= SCANNER TEXT ================= */

.scanner-text {
  height: 24px;
  font-size: 0.9rem;
  color: #ff758f;
  opacity: 0;
}

/* ================= GLITCH ================= */

.glitch {
  animation: glitch 0.2s infinite;
}

@keyframes glitch {
  0% { transform: translate(1px,1px); }
  25% { transform: translate(-1px,1px); }
  50% { transform: translate(1px,-1px); }
  75% { transform: translate(-1px,-1px); }
  100% { transform: translate(0); }
}

/* ================= FLOATING HEARTS ================= */

.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-hearts span {
  position: absolute;
  color: #ff2e55;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-10vh); opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ================= SHARE ================= */

.share-buttons {
  display: none;
  margin-top: 20px;
}

/* ================= ICON LINKS ================= */

.icon-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.icon-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.icon-links a:hover {
  transform: translateY(-4px);
  background: rgba(255, 46, 85, 0.25);
}

.icon-links img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ================= CONTRACT ADDRESS ================= */

.ca-section {
  margin-bottom: 25px;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
  justify-content: center;
}

.ca-label {
  opacity: 0.6;
}

.ca-value {
  font-family: monospace;
  letter-spacing: 0.3px;
  word-break: break-all;
}

.copy-ca {
  background: #ff2e55;
  border: none;
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.copy-ca:hover {
  background: #ff1744;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  body {
    align-items: flex-start;
  }

  .container {
    margin-top: 60px;
  }
}

@media (max-width: 480px) {

  .container {
    padding: 20px 16px;
  }

  input,
  button {
    font-size: 0.95rem;
  }

  .icon-links {
    gap: 12px;
  }

  .icon-links a {
    width: 44px;
    height: 44px;
  }

  .icon-links img {
    width: 22px;
    height: 22px;
  }

  .ca-section {
    flex-direction: column;
    text-align: center;
  }

  .copy-ca {
    width: 100%;
  }
}

@media (max-width: 360px) {

  .heart-wrapper {
    width: 75%;
  }

  .icon-links {
    flex-wrap: wrap;
  }
}
