body {
  background-image: url('images/bg-main1.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Verdana, sans-serif;
}

.wrapper {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.nameplaceholder {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 45px;
}

.header {
  width: 100%;
  height: auto;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.header-btn {
  background: linear-gradient(178deg, rgba(77, 77, 77, 0.94), rgba(49, 52, 59, 0.9));
  color: white;
  border: 2px solid black;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  transition: background 0.3s, transform 0.2s;
}

.header-btn:hover {
  background: rgba(77, 77, 77, 0.9);
  transform: translateY(-2px);
}

.container {
  background: linear-gradient(178deg, rgba(77, 77, 77, 0.94), rgba(49, 52, 59, 0.9));
  padding: 10px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 10px rgba(200, 200, 200, 0.4),
    0 0 20px rgba(230, 230, 230, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 100%;
}

.top {
  height: 125px;
  border: 2px solid black;
  margin-bottom: 10px;
}

.middle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.left, .center, .right {
  border: 2px solid black;
  padding-top: 15px;
}

.left, .right {
  width: 100%;
  max-width: 250px;
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center {
  flex: 2 1 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
  margin-bottom: 15px;
}

.nickname-list h3 {
  margin-bottom: 10px;
  color: white;
  font-size: 1.1rem;
}

.nickname-list ul {
  padding: 0;
  list-style-type: none;
  text-align: left;
  color: white;
  font-size: 0.95rem;
}
.nickname-list li {
  margin-bottom: 6px;
}

.invisible-end {
  width: 100%;
  height: 100px;
  visibility: hidden;
}

/* 📱 Mobile-friendly layout */
@media (min-width: 768px) {
  .middle {
    flex-wrap: nowrap;
  }

  .left, .right {
    width: 20%;
    flex: none;
  }

  .center {
    width: 55.7%;
    flex: none;
  }
}