:root {
  --glass: rgba(20, 22, 40, 0.45);
  --glass-border: rgba(255, 255, 255, 0.18);
  --accent: #ff6a88;
  --accent2: #7f7fff;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: url("https://i.pinimg.com/originals/b2/5d/13/b25d139b22637810e820e458142798b9.jpg") center / cover fixed no-repeat #151722;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(140deg, rgba(61, 66, 96, 0.55) 15%, rgba(10, 11, 20, 0.85));
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px 28px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 30px rgba(255, 106, 136, 0.4);
  transition: transform 0.6s ease;
}
.avatar:hover { transform: rotate(360deg) scale(1.05); }

h1 {
  margin-top: 20px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
}

.links {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.link .ico {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.link .ico img { width: 28px; height: 28px; border-radius: 50%; }
.link .arrow { margin-left: auto; opacity: 0.5; font-size: 0.85rem; transition: transform 0.25s, opacity 0.25s; }
.link:hover .arrow { opacity: 1; transform: translateX(4px); }

.footer {
  margin-top: 26px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating widgets */
#playMusicBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  padding: 12px 20px;
  font: 600 15px/1 inherit;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  animation: pulse 1.8s infinite;
}
#playMusicBtn:hover { transform: scale(1.05); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 75, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

#cornerGif {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 80px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 520px) {
  .card { padding: 32px 20px 22px; border-radius: 22px; }
  h1 { font-size: 1.6rem; }
  #cornerGif { width: 56px; left: 12px; bottom: 12px; }
  #playMusicBtn { right: 12px; bottom: 12px; font-size: 13px; padding: 10px 14px; }
}


/* Music button: equalizer bars */
#playMusicBtn { display: inline-flex; align-items: center; gap: 10px; }
#playMusicBtn .eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
#playMusicBtn .eq i { display: block; width: 3px; height: 4px; background: currentColor; border-radius: 2px; }
#playMusicBtn.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
#playMusicBtn.playing .eq i:nth-child(1) { animation-delay: -0.2s; }
#playMusicBtn.playing .eq i:nth-child(2) { animation-delay: -0.6s; }
#playMusicBtn.playing .eq i:nth-child(3) { animation-delay: -0.4s; }
#playMusicBtn.playing .eq i:nth-child(4) { animation-delay: -0.8s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* Link hover / press effects */
.link { position: relative; overflow: hidden; --b: 255, 255, 255; will-change: transform; }
.fb { --b: 24, 119, 242; }
.lk { --b: 255, 184, 0; }
.tt { --b: 37, 244, 238; }
.zl { --b: 0, 104, 255; }
.tg { --b: 34, 158, 217; }

/* light sweep */
.link::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.link:hover::before { left: 130%; }

.link:hover, .link:focus-visible {
  transform: translateY(-5px) scale(1.03);
  background: linear-gradient(90deg, rgba(var(--b), 0.28), rgba(255, 255, 255, 0.12));
  border-color: rgba(var(--b), 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 22px rgba(var(--b), 0.45);
  outline: none;
}
.link:hover .ico, .link:focus-visible .ico { animation: icon-pop 0.5s ease; }
.link:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), 0 0 12px rgba(var(--b), 0.4);
  transition-duration: 0.08s;
}
@keyframes icon-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-10deg); }
  100% { transform: scale(1.1) rotate(0); }
}

.badge .flag { vertical-align: -2px; margin-left: 6px; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }


/* LED border around the card */
.card::before, .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, #00e5ff, #7f7fff, #ff5fa2, #ffb347, #00e5ff);
  background-size: 300% 300%;
  animation: led 7s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.card::after {
  filter: blur(7px);
  opacity: 0.55;
  padding: 3px;
}
@keyframes led { to { background-position: 300% 50%; } }

/* Rotating LED (conic) */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-ang { to { --ang: 360deg; } }

.card::before, .card::after {
  background: conic-gradient(from var(--ang), #00e5ff, #7f7fff, #ff5fa2, #ffb347, #4dff9a, #00e5ff);
  background-size: auto;
  animation: spin-ang 3.5s linear infinite;
}

/* LED ring on link buttons */
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), rgba(var(--b), 0) 0deg, rgba(var(--b), 0.95) 70deg, rgba(255, 255, 255, 0.9) 100deg, rgba(var(--b), 0) 160deg, rgba(var(--b), 0) 360deg);
  animation: spin-ang 3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.3s;
}
.link:hover::after, .link:focus-visible::after { opacity: 1; animation-duration: 1.6s; }