* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: white;
}

.wrap {
  display: grid;
  place-items: center;
  padding: 32px 16px 80px;
}

.card {
  width: min(100%, 520px);
  text-align: center;
}

.avatar {
  width: clamp(140px, 35vw, 240px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

h1 {
  margin: 24px 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 18px 56px;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 900;
  color: white;
  background: #00b341;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 179, 65, .35);
}

button:disabled {
  opacity: .7;
  cursor: wait;
}

#thanks {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.verse {
  position: relative;
  display: inline-block;
  color: #7cff9e;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: help;
  outline: none;
}

.verse-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(280px, 80vw);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  z-index: 10;
}

.verse-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(255, 255, 255, .96);
}

.verse:hover .verse-bubble,
.verse:focus .verse-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  position: sticky;
  bottom: 0;
  padding: 14px 16px;
  text-align: center;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  font-weight: 700;
}
