@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html, body {
  margin: 0px;
  min-height: 100%;
  background: #fff4f9;
}

@font-face {
  font-family: "Single Day-Regular";
  src: local("Single Day-Regular");
}

@font-face {
  font-family: "Vividly-Regular";
  src: local("Vividly-Regular");
}
@font-face {
    font-family: "Vividly-Regular";
    src: url("./Vividly-Regular.otf") format("woff2"),
         url("./Vividly-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.screen {
  background-color: #fff4f9;
  overflow-x: hidden;
  width: 100%;
  min-width: 390px;
  min-height: 1023px;
  position: relative;
  font-family: "Single Day", cursive;
  padding-bottom: 120px;
}

/* --- HEADER --- */
.header-group {
  position: relative;
  height: 220px;
}

.ellipse {
  position: absolute;
  top: 69px;
  left: calc(50.00% - 132px);
  width: 265px;
  height: 262px;
  background-color: #ffffff;
  border-radius: 132.3px / 130.89px;
  transform: rotate(0.88deg);
  filter: blur(55.5px);
  z-index: 1;
}

.text-wrapper {
  position: absolute;
  top: 92px;
  left: calc(50.00% - 69px);
  font-size: 32px;
  text-align: center;
  font-weight: 400;
  color: #5a1132;
  letter-spacing: 0;
  z-index: 2;
}

.div {
  position: absolute;
  top: 129px;
  left: calc(50.00% - 34px);
  font-family: "Vividly-Regular", sans-serif;
  font-weight: 400;
  color: #5a1132;
  font-size: 17px;
  text-align: center;
  letter-spacing: 0;
  z-index: 2;
}

.back-btn {
  position: absolute;
  top: 35px;
  left: 25px;
  font-family: "Single Day";
  font-size: 15px;
  color: #5a1132;
  text-decoration: none;
  z-index: 5;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(2px);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #ffe2ee;
  transform: scale(1.03);
}

/* ===== SCROLL ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- PROFILE CARD (Super Cute!) --- */
.profile-card {
  position: relative;
  top: 15px;
  max-width: 320px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 35px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(255, 168, 209, 0.15);
  z-index: 5;
  text-align: center;
  border: 2px solid #ffeef4;
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 168, 209, 0.25);
}

.profile-img-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffeef4;
  border: 4px solid #ffa8d1;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: rotate(-5deg) scale(1.05);
}

.level-badge {
  position: absolute;
  bottom: -5px;
  right: -10px;
  background: #ffa8d1;
  color: #5a1132;
  font-family: "Single Day";
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(255, 168, 209, 0.3);
}

.profile-name {
  font-family: "Single Day";
  font-size: 24px;
  color: #5a1132;
}

.profile-eng {
  font-family: "Vividly-Regular", sans-serif;
  font-size: 14px;
  color: #b37b96;
  margin-bottom: 5px;
}

.profile-bio {
  font-family: "Single Day";
  font-size: 13px;
  color: #ffa8d1;
}

/* --- STATS SECTION --- */
.stats-container {
  position: relative;
  max-width: 320px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}

.stat-box {
  background: #ffffff;
  width: 90px;
  padding: 15px 0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(90, 17, 50, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #ffeef4;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 168, 209, 0.15);
}

.stat-number {
  font-family: "Single Day";
  font-size: 22px;
  color: #5a1132;
  font-weight: bold;
}

.stat-label {
  font-family: "Single Day";
  font-size: 11px;
  color: #b37b96;
  margin-top: 4px;
}

/* --- MENU LIST --- */
.menu-list {
  position: relative;
  max-width: 320px;
  margin: 20px auto 0;
  background: #ffffff;
  border-radius: 25px;
  padding: 10px 15px;
  box-shadow: 0 4px 15px rgba(90, 17, 50, 0.04);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #ffeef4;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid #fce4ed;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #fff4f9;
  transform: translateX(6px);
}

.menu-icon {
  font-size: 20px;
  margin-right: 15px;
  width: 28px;
  text-align: center;
}

.menu-text {
  flex: 1;
  font-family: "Single Day";
  font-size: 17px;
  color: #5a1132;
}

.menu-arrow {
  font-family: "Single Day";
  font-size: 18px;
  color: #b37b96;
  transition: all 0.2s ease;
}

.menu-item:hover .menu-arrow {
  transform: translateX(4px);
  color: #ffa8d1;
}

/* --- CUTE FOOTER --- */
.cute-footer {
  position: relative;
  max-width: 280px;
  margin: 25px auto 0;
  font-family: "Single Day";
  font-size: 14px;
  color: #b37b96;
  text-align: center;
  z-index: 5;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 15px;
  border-radius: 20px;
  backdrop-filter: blur(2px);
  border: 1px solid #ffeef4;
  transition: all 0.3s ease;
}

.cute-footer:hover {
  background: rgba(255, 168, 209, 0.15);
  transform: scale(1.02);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 96px;
  z-index: 10;
  margin-top: 30px;
}

.rectangle-3 {
  position: absolute;
  bottom: 0;
  left: calc(50.00% - 205px);
  width: 410px;
  height: 96px;
  background-color: #ffffff;
  border-radius: 33px;
}

.gingerbread-house, .restart-love, .cinnamon-roll, .menu {
  position: absolute;
  bottom: 35px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.gingerbread-house { left: 39px; }
.restart-love { left: 128px; }
.cinnamon-roll { left: 224px; }
.menu { left: 319px; }

.text-wrapper-10, .text-wrapper-11, .text-wrapper-12, .text-wrapper-13 {
  position: absolute;
  bottom: 15px;
  font-family: "Single Day";
  font-weight: 400;
  color: #5a1132;
  font-size: 10px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.text-wrapper-10 { left: calc(50.00% - 146px); }
.text-wrapper-11 { left: calc(50.00% - 59px); }
.text-wrapper-12 { left: calc(50.00% + 18px); }
.text-wrapper-13 { left: calc(50.00% + 119px); }

.text-wrapper-13.active {
  font-weight: bold;
  color: #ffa8d1;
}

a { text-decoration: none; color: inherit; }

/* responsive */
@media (max-width: 420px) {
  .rectangle-3 {
    left: 0;
    width: 100%;
    border-radius: 33px 33px 0 0;
  }
  
  .stat-box {
    width: 80px;
  }
}