* {
  box-sizing: border-box;
}

:root {
  --bg: #f3faf7;
  --panel: #fffdf8;
  --ink: #18332d;
  --muted: #6d7d78;
  --mint: #bfe9d9;
  --mint-strong: #2d8f74;
  --cream: #fff2c9;
  --peach: #ffd9c8;
  --blue: #dcecff;
  --line: rgba(24, 51, 45, 0.10);
}

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

body {
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(191, 233, 217, 0.65), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(220, 236, 255, 0.75), transparent 28%),
    radial-gradient(circle at 85% 85%, rgba(255, 217, 200, 0.55), transparent 28%),
    var(--bg);
}

button {
  font: inherit;
}

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.hero-card {
  position: relative;
  width: min(100%, 620px);
  overflow: hidden;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 80px rgba(39, 83, 71, 0.14);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: 90px;
  border-radius: 50%;
  background: rgba(191, 233, 217, 0.42);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: -45px;
  bottom: -45px;
  border-radius: 36px;
  transform: rotate(20deg);
  background: rgba(255, 217, 200, 0.42);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-pill,
.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-pill {
  color: #246b58;
  background: #e8f8f2;
}

.mini-badge {
  color: #64748b;
  background: #eef5ff;
}

.visual-badge {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, #d8f4e9, #fff1bc);
  box-shadow: inset 0 0 0 1px rgba(45, 143, 116, 0.08);
  transform: rotate(-4deg);
}

.coin {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf8;
  color: #2d8f74;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(45, 143, 116, 0.12);
}

.kicker {
  margin: 0 0 8px;
  color: #3f8b77;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.lead {
  margin: 18px 0 28px;
  max-width: 470px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.code-box {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f1fbf7, #fff9e8);
  border: 1px solid rgba(45, 143, 116, 0.12);
}

.code-label {
  display: block;
  margin-bottom: 10px;
  color: #72827c;
  font-size: 12px;
  font-weight: 700;
}

#referralCode {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1;
  letter-spacing: 0.12em;
  color: #1f5f50;
}

#copyButton {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  color: white;
  background: #2f8f74;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(47, 143, 116, 0.20);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

#copyButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(47, 143, 116, 0.24);
}

#copyButton:active {
  transform: translateY(0);
}

.info-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f4ff;
  color: #626173;
}

.info-strip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8d82d8;
}

.disclaimer {
  margin: 16px 2px 0;
  color: #929d99;
  font-size: 11px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 12px 17px;
  border-radius: 999px;
  background: rgba(24, 51, 45, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 520px) {
  .hero-card {
    padding: 26px 20px;
    border-radius: 26px;
  }

  .topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .visual-badge {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  #referralCode {
    letter-spacing: 0.08em;
  }
}
