:root {
  --bg1:#0b1020;
  --bg2:#111b3a;
  --card:#0f1733cc;
  --border:rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.75);
  --accent:#ff9f2d;
  --accent2:#7c5cff;
  --shadow:0 18px 60px rgba(0,0,0,.55);
}

* { box-sizing:border-box; }

body {
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow:hidden;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(1000px 700px at 90% 20%, rgba(255,159,45,.18), transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}

/* Confetti */
#confetti {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

/* Balloons */
.balloons {
  position:fixed;
  inset:0;
  pointer-events:none;
}

.balloon {
  position:absolute;
  bottom:-160px;
  width:64px;
  height:84px;
  border-radius:50% 50% 45% 45%;
  border:1px solid rgba(255,255,255,.18);
  animation:floatUp var(--dur) linear infinite;
  transform:translateX(-50%);
}

.balloon::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:-14px;
  width:12px;
  height:12px;
  transform:translateX(-50%) rotate(45deg);
  border-radius:2px;
}

.string {
  position:absolute;
  left:50%;
  bottom:-150px;
  width:1px;
  height:140px;
  background:rgba(255,255,255,.25);
}

/* Colors */
.orange { background:rgba(255,159,45,.6); }
.purple { background:rgba(124,92,255,.6); }
.blue   { background:rgba(97,214,255,.6); }
.pink   { background:rgba(255,110,199,.6); }
.green  { background:rgba(126,255,178,.6); }

@keyframes floatUp {
  0%   { transform:translate(-50%,0); opacity:0; }
  10%  { opacity:1; }
  100% { transform:translate(-50%,-120vh); opacity:0; }
}

/* Card */
.wrap {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.card {
  width:min(750px,92vw);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:clamp(20px,6vw,36px);
  backdrop-filter:blur(10px);
}

/* Avatar flotante */
.avatarWrap{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -55%); /* lo sube para que “salga” de la card */
  width: 110px;
  height: 110px;
  border-radius: 999px;
  padding: 6px;

  background: rgba(15, 23, 51, .9); /* similar al card */
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 0 6px rgba(124,92,255,.08);

  backdrop-filter: blur(8px);
  z-index: 5;
}

@media (max-width: 580px){
  .card{
    padding-top: 50px;
  }
}

.avatarImg{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}

.badge {
  display:inline-flex;
  gap:10px;
  padding:8px 12px;
  border-radius:10px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted);
}

.dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
}

h1 {
  margin:16px 0 8px;
  font-size:clamp(34px,5vw,54px);
}

.name {
  font-weight:900;
  background:linear-gradient(90deg,var(--accent),#ffd28c,var(--accent2));
  -webkit-background-clip:text;
  color:transparent;
}

p {
  color:var(--muted);
  line-height:1.6;
}

.footer {
  margin-top:16px;
  display:flex;
  justify-content:right;
  gap:12px;
  font-size:13px;
  color:rgba(234,240,255,.65);
}

.hint {
  border:1px dashed rgba(255,255,255,.18);
  padding:8px 10px;
  border-radius:12px;
}