.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 0;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(0, 0, 0, 0.72);
  border: 4px solid rgba(255, 255, 255, 0.08);
  padding: 36px 44px;
  text-align: center;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.75) translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-name {
  font-size: clamp(13px, 2.5vw, 20px);
  color: var(--gold);
  text-shadow: 2px 2px #7a5800;
  margin-bottom: 10px;
}

.hero-sub {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

#typewriter {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #A8E6CF;
  min-height: 28px;
  text-shadow: 0 0 8px rgba(168, 230, 207, 0.5);
}

.xp-bar {
  margin: 22px auto 0;
  width: 100%;
  max-width: 280px;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.xp-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, #22cc22, #55ff55);
  animation: xpGrow 1.5s 0.4s ease-out both;
}

@keyframes xpGrow {
  from {
    width: 0;
  }
}

.xp-label {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
}

.character {
  width: 64px;
  margin: 0 auto 20px;
  animation: float 2s ease-in-out infinite;
  position: relative;
}

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

.char-hair-back {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 90px;
  background: #111;
  border: 3px solid #000;
  z-index: 0;

  clip-path: polygon(
    8% 0%,
    92% 0%,
    100% 60%,
    95% 100%,
    5% 100%,
    0% 60%
  );
}

.char-head {
  width: 48px;
  height: 44px;
  background: #8D5524;
  border: 4px solid #6B3A1F;
  position: relative;
  margin: 0 auto;
  z-index: 2;
  overflow: visible;
}

.char-head::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -6.5px;
  right: -6.5px;
  height: 18px;
  background: #111;
  border: 3px solid #000;
  z-index: 3;

  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    64% 100%,
    56% 55%,
    44% 55%,
    36% 100%,
    0% 100%
  );
}

.char-head::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 7px;
  width: 9px;
  height: 9px;
  background: #1a1a1a;

  box-shadow:
    1px 1px 0 #444,
    19px 0 0 #1a1a1a,
    20px 1px 0 #444;
}

.char-hair-front-left,
.char-hair-front-right {
  position: absolute;
  width: 12px;
  height: 38px;
  background: #111;
  border: 2px solid #111;
  top: 10px;
  z-index: 4;
}

.char-hair-front-left {
  left: 6px;

  clip-path: polygon(
    0% 0%,
    100% 0%,
    80% 100%,
    0% 100%
  );
}

.char-hair-front-right {
  right: 6px;

  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    20% 100%
  );
}

.char-body {
  width: 36px;
  height: 28px;
  background: #dd8a9a;
  border: 4px solid #000;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.char-body::before,
.char-body::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px;
  height: 28px;
  background: #8D5524;
  border: 4px solid #6B3A1F;
}

.char-body::before {
  left: -14px;
  border-right: none;
}

.char-body::after {
  right: -14px;
  border-left: none;
}