/* Base */
body {
  font-family: Arial, sans-serif;
  background-color: #fdfaf5;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

/* Title */
.title {
  font-family: "Bitcount Grid Double Ink", sans-serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
}

/* Main box */
.mama-box {
  background-color: #f5efe6;
  border: 2px solid #e6d8c3;
  border-radius: 16px;
  padding: 20px;
  width: 360px;
  position: relative;
}

/* Top row */
.top-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

/* XP bar */
.xp-bar {
  width: 100%;
  height: 18px;
  background-color: #e8dfd1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* Fill grows from LEFT */
.xp-fill {
  height: 100%;
  width: 0%;
  background-color: #cbbba0;
  transition: width 0.3s ease;
  border-radius: 10px 0 0 10px; /* rounded only on left */
}

/* Input */
.input-area {
  margin-top: 14px;
  display: flex;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d6c7b2;
  background-color: #fffaf3;
}

button {
  margin-left: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d6c7b2;
  background-color: #efe6d8;
  cursor: pointer;
}

button:hover {
  background-color: #e4d8c7;
}

/* Reset */
.reset-area {
  margin-top: 10px;
  text-align: right;
}

.reset-area button {
  padding: 6px 10px;
  font-size: 12px;
  background-color: #f2d6b3;
}

.reset-area button:hover {
  background-color: #e0c7a1;
}

/* Tasks */
.quest-list {
  margin-top: 15px;
  width: 360px;
}

.task {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background-color: #fffaf3;
  border: 1px solid #e0d4c2;
  display: flex;
  justify-content: space-between;
}

.task.done span {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Level up popup */
.level-up {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffeaa7;
  padding: 6px 12px;
  border-radius: 12px;
  opacity: 0;
  transition: 0.3s;
}

.level-up.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}