:root {
  --orange-1: #f7a145;
  --orange-2: #ef8d2e;
  --white: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background:
    radial-gradient(900px 600px at 50% 30%, #ffb15a, transparent 62%),
    linear-gradient(135deg, var(--orange-1), var(--orange-2));
  color: var(--white);
  overflow: hidden;
}

/* X link */
.topbar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.x-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.x-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

/* Center layout */
.center {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.stack {
  width: min(560px, 92vw);
  display: grid;
  justify-items: center;
  gap: 10px; /* tighter */
}

/* Title */
.title {
  font-size: clamp(22px, 4.2vw, 40px);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;

  text-shadow:
    0 0 10px rgba(255, 120, 0, 0.35),
    0 0 22px rgba(220, 90, 0, 0.25);
}

/* Floating glowing logo */
.logo-wrap {
  width: min(320px, 72vw); /* slightly smaller = cleaner */
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: grid;
  place-items: center;

  animation: floaty 3.8s ease-in-out infinite, glowPulse 3.0s ease-in-out infinite;
  filter:
    drop-shadow(0 0 18px rgba(255, 120, 0, 0.60))
    drop-shadow(0 0 38px rgba(210, 80, 0, 0.55))
    drop-shadow(0 26px 40px rgba(0, 0, 0, 0.28));
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Contract section */
.contract {
  width: 100%;
  display: grid;
  gap: 8px; /* tighter */
  justify-items: center;
  text-align: center;
  margin-top: 2px; /* tighter */
}

.contract-row {
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 6px;
}

.address {
  display: block;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

/* Copy button */
.copy-btn {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.copy-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.28);
}
.copy-btn:active {
  transform: translateY(0);
}

/* Toast */
.copied {
  opacity: 0;
  transform: translateY(6px);
  transition: 0.22s ease;
  font-weight: 800;
}
.copied.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); } /* less float = cleaner */
}

@keyframes glowPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 16px rgba(255, 110, 0, 0.55))
      drop-shadow(0 0 34px rgba(200, 70, 0, 0.50))
      drop-shadow(0 26px 40px rgba(0, 0, 0, 0.28));
  }
  50% {
    filter:
      drop-shadow(0 0 26px rgba(255, 120, 0, 0.80))
      drop-shadow(0 0 52px rgba(190, 60, 0, 0.62))
      drop-shadow(0 26px 40px rgba(0, 0, 0, 0.28));
  }
}

/* Small screens */
@media (max-height: 650px) {
  body { overflow: auto; }
  .center { padding-top: 72px; padding-bottom: 34px; }
}