* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #050505;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: 20px;
  background: rgba(0, 0, 0, 0.28);
}

.top {
  width: min(460px, 100%);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(8, 16, 11, 0.82), rgba(10, 10, 10, 0.58));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.contract {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.sound {
  appearance: none;
  font-family: inherit;
}

.btn:hover,
.copy:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.txt {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copy[data-copied="true"] {
  background: rgba(45, 212, 191, 0.34);
}

@media (max-width: 640px) {
  .page {
    padding: 20px;
  }

  .card {
    padding: 12px;
    border-radius: 24px;
  }

  .contract {
    gap: 10px;
    padding: 9px 10px 9px 14px;
    border-radius: 18px;
  }

  .btn {
    flex-basis: calc(50% - 6px);
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .sound {
    flex-basis: 100%;
  }

  .txt {
    font-size: 18px;
  }

  .copy {
    width: 42px;
    height: 42px;
  }
}
