* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0f0c1b;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* 피그마의 1440x900 main_frame 기준 고정 레이아웃 */
.main_frame {
  width: 1440px;
  height: 900px;
  background-image: url('images/background.png'); /* background_group 내부의 배경 이미지 */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

/* 우측 상단 날짜 텍스트 */
.top_date_time {
  position: absolute;
  right: 40px;
  top: 30px;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

/* profile_block (우측 멘토 토글 아이콘들) */
.profile_block {
  position: absolute;
  right: 40px;
  top: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
}
.mentor_toggle img { width: 140px; }

/* gnb_sidebar (좌측 메뉴 영역) */
.gnb_sidebar {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 60px;
  height: 852px;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  z-index: 10;
}
.menu_icon_group { display: flex; flex-direction: column; gap: 20px; }
.icon_item img { width: 32px; height: 32px; cursor: pointer; }
.user_profile_block img { width: 44px; border-radius: 50%; }
.user_tag { font-size: 11px; font-weight: bold; text-align: center; margin-top: 4px; }

/* col_tasks (좌측 퀘스트 패널) */
.col_tasks {
  position: absolute;
  left: 108px;
  top: 24px;
  width: 400px;
  height: 852px;
  z-index: 4;
}
.col_tasks_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #5A189A;
  border: 4px solid #3c096c;
  border-radius: 24px;
  opacity: 0.9;
}
.col_tasks_contents {
  position: relative;
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gauge_bar { background: #3c096c; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 5px; }
.gauge_fill { background: #CCFF00; width: 40%; height: 100%; transition: width 0.4s; }
.complete_btn { width: 100%; padding: 12px; background: #CCFF00; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; margin-top: 10px; }
.days_grid { display: flex; gap: 12px; }
.day_card { flex: 1; background: white; color: #333; padding: 12px; border-radius: 12px; font-size: 11px; }
.day_card.active { border: 3px solid #CCFF00; }

/* col_character (중앙 캐릭터 영역) */
.col_character {
  position: absolute;
  left: 540px;
  top: 24px;
  width: 520px;
  height: 852px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}
.hero_img { height: 320px; object-fit: contain; }
.level_display_block { display: flex; align-items: center; gap: 10px; width: 100%; }
.lv_badge { color: #CCFF00; font-size: 24px; font-weight: bold; }
.xp_bar_group { flex: 1; background: #240046; height: 16px; border-radius: 8px; overflow: hidden; }
.xp_fill_bar { background: #ff6b6b; width: 35%; height: 100%; transition: width 0.4s; }

/* 인벤토리 스타일 */
.item_slots_group { width: 100%; background: #f4f4f9; border: 4px solid #333; border-radius: 20px; padding: 16px; }
.inv_tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { padding: 4px 12px; background: #ddd; border-radius: 8px; font-size: 12px; font-weight: bold; cursor: pointer; }
.tab.active { background: #7B2CBF; color: white; }
.slots_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.slot { aspect-ratio: 1; background: #e0e0e0; border: 2px solid #bbb; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.slot img { width: 70%; }
.gold_display { margin-top: 10px; font-weight: bold; }
.upgrade_button_block { width: 100%; padding: 16px; background: white; border: 4px solid #7B2CBF; border-radius: 16px; font-size: 20px; font-weight: bold; color: #7B2CBF; cursor: pointer; }

/* chat_window_widget (우측 하단 미니 채팅창) */
.chat_window_widget {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 320px;
  height: 350px;
  z-index: 10;
}
.chat_widget_bg { position: absolute; width: 100%; height: 100%; background: #5A189A; border-radius: 24px; border: 4px solid #3c096c; opacity: 0.95; }
.chat_widget_contents { position: relative; padding: 16px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; color: white; }
.chat_header_badge { background: #CCFF00; color: #333; padding: 4px 12px; border-radius: 12px; display: inline-block; font-size: 12px; font-weight: bold; width: fit-content; }
.chat_logs { flex: 1; margin: 12px 0; font-size: 13px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.user_msg { color: #CCFF00; }
.chat_input_area { display: flex; gap: 6px; }
.chat_input_area input { flex: 1; padding: 8px; border-radius: 8px; border: none; }
.send_btn { background: #CCFF00; border: none; padding: 0 12px; border-radius: 8px; cursor: pointer; }