*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: linear-gradient(-45deg, #1fb12e, #0f0f73, #2364d5, #d523c0, #d52344);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  color: #fff;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh; /* melhor em mobile que 100vh */
  margin: 0;
  line-height: 1.6;
  text-align: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

@keyframes gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: min(92vw, 500px); /* ocupa ~92% no mobile e limita no desktop */
  margin-inline: auto;
  padding: 20px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.username {
  font-size: clamp(1.3rem, 5.5vw, 2rem);
  font-weight: 600;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
  font-size: 1.05rem;
  color: #f0f0f0;
  margin-top: 6px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.link-btn {
  display: block;
  width: 100%;
  padding: 18px;
  margin: 15px 0;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.link-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 360px) {
  .container { width: 94vw; }
  .link-btn { padding: 16px; }
}
