* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background: #090909;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  padding: 24px 14px;
  position: relative;
  overflow-x: hidden;
}

.bg-overlay {
  position: fixed;
  inset: -12px;
  background: url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=1000") center/cover no-repeat;
  filter: grayscale(100%) brightness(0.32) contrast(1.18);
  z-index: -1;
  animation: bgDrift 14s ease-in-out infinite alternate;
}

#enter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

#enter-overlay .typewriter-text {
  font-family: "Press Start 2P", monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #ffffff;
  letter-spacing: 1px;
  border-right: 3px solid #ffffff;
  padding-right: 8px;
  animation:
    pixelBlink 0.75s steps(1, end) infinite,
    pixelFloat 2.6s ease-in-out infinite;
}

.wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pill-btn {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pill-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  transform: skewX(-20deg);
  animation: glassSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.music-pill {
  cursor: pointer;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-song-title,
#live-clock {
  font-family: "VT323", monospace;
  font-size: 1.08rem;
  letter-spacing: 0.8px;
}

/* Chiều sâu viền & lớp kính đa tầng */
.glass-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(14, 14, 14, 0.24) 45%, rgba(8, 8, 8, 0.42) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border-radius: 24px;
  padding: 20px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    transparent 65%
  );
  pointer-events: none;
}

.glass-card.reveal-init {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.glass-card.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glass-card.is-visible {
  animation: cardFloat 6.5s ease-in-out infinite;
}

.glass-card:nth-child(even).is-visible {
  animation-delay: -3.2s;
}

.glass-card:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(20, 20, 20, 0.32) 45%, rgba(10, 10, 10, 0.48) 100%);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.56),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Khung Profile tối giản tông đen + phản chiếu ánh sáng */
.profile-card {
  --spot-x: 50%;
  --spot-y: 20%;
  --light-pos: 0% 50%;
  --ambient-x: -120%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(14, 14, 14, 0.46) 45%, rgba(7, 7, 7, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.75),
    0 4px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle 155px at var(--spot-x) var(--spot-y),
      rgba(255, 255, 255, 0.36) 0%,
      rgba(220, 220, 220, 0.14) 42%,
      transparent 72%
    ),
    linear-gradient(
      110deg,
      transparent 20%,
      rgba(255, 255, 255, 0.09) 48%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(255, 255, 255, 0.09) 52%,
      transparent 80%
    );
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, var(--ambient-x) 0;
  pointer-events: none;
  z-index: 2;
  animation: ambientSweep 8s ease-in-out infinite;
  transition: background 0.08s linear;
}

.profile-card > * {
  position: relative;
  z-index: 3;
}

.profile-card .avatar-box {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid transparent;
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    linear-gradient(
      125deg,
      rgba(90, 90, 90, 0.4) 0%,
      rgba(255, 255, 255, 0.98) 50%,
      rgba(90, 90, 90, 0.4) 100%
    ) border-box;
  background-size: 100% 100%, 240% 240%;
  background-position: 0 0, var(--light-pos);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
  animation: avatarFloat 4.2s ease-in-out infinite;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1.5px;
  animation: textFloat 3.4s ease-in-out infinite;
}

.profile-card .name {
  background: linear-gradient(
    110deg,
    #555555 0%,
    #8c8c8c 32%,
    #ffffff 50%,
    #8c8c8c 68%,
    #555555 100%
  );
  background-size: 240% 240%;
  background-position: var(--light-pos);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 700;
  animation: textFloat 3.4s ease-in-out infinite;
}

.bio {
  font-size: 0.85rem;
  color: #bcbcbc;
  margin: 6px 0 12px;
  line-height: 1.45;
}

.italic-bold,
.profile-card .name,
.profile-card .bio {
  font-style: italic !important;
  font-weight: 700 !important;
}

.sub-tag {
  padding: 4px 14px;
  font-size: 0.75rem;
}

.profile-card .sub-tag {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.04) 80%
  );
  background-size: 240% 240%;
  background-position: var(--light-pos);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-header {
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #b5b5b5;
  margin-bottom: 14px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.social-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.social-item:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.social-item i {
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
}

.social-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-text .title {
  font-size: 0.85rem;
  font-weight: 600;
}

.social-text .sub {
  font-size: 0.7rem;
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  padding: 4px 2px;
  transition: transform 0.25s ease;
}

.info-row:hover {
  transform: translateX(3px);
}

.info-row .label {
  color: #b8b8b8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.info-row .value {
  font-weight: 600;
  color: #fff;
}

.footer-bar {
  text-align: center;
  font-size: 0.72rem;
  color: #777;
  margin-top: 8px;
  letter-spacing: 0.6px;
}

@keyframes ambientSweep {
  0%, 62% {
    --ambient-x: -140%;
  }
  100% {
    --ambient-x: 180%;
  }
}

@keyframes pixelBlink {
  0%, 49% { border-right-color: #ffffff; }
  50%, 100% { border-right-color: transparent; }
}

@keyframes pixelFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes textFloat {
  0%, 100% {
    transform: translateY(0px);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: translateY(-3px);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes glassSweep {
  0%, 70% {
    left: -120%;
  }
  100% {
    left: 160%;
  }
}

@keyframes bgDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-8px, -10px, 0);
  }
}